Documentation
¶
Index ¶
- Constants
- Variables
- func Authorize(client *Client, authorizationStateHandler AuthorizationStateHandler) error
- func BotAuthorizer(token string) *botAuthorizer
- func CheckCommand(text string, entities []*TextEntity) string
- func CliInteractor(clientAuthorizer *clientAuthorizer)
- func ClientAuthorizer() *clientAuthorizer
- func CommandArgument(text string) string
- func IsCommand(text string) bool
- func SetFilePath(path string)
- func SetLogLevel(level int32)
- func SetPendingUpdateType(update ...Type)
- type AcceptCallRequest
- type AcceptTermsOfServiceRequest
- type AccountTtl
- type AddApplicationChangelogRequest
- type AddChatFolderByInviteLinkRequest
- type AddChatMemberRequest
- type AddChatMembersRequest
- type AddChatToListRequest
- type AddContactRequest
- type AddCustomServerLanguagePackRequest
- type AddFavoriteStickerRequest
- type AddFileToDownloadsRequest
- type AddLocalMessageRequest
- type AddLogMessageRequest
- type AddMessageReactionRequest
- type AddNetworkStatisticsRequest
- type AddProxyRequest
- type AddRecentStickerRequest
- type AddRecentlyFoundChatRequest
- type AddSavedAnimationRequest
- type AddSavedNotificationSoundRequest
- type AddStickerToSetRequest
- type AddedReaction
- type AddedReactions
- type Address
- type AllowBotToSendMessagesRequest
- type AnimatedChatPhoto
- type AnimatedEmoji
- type Animation
- type Animations
- type AnswerCallbackQueryRequest
- type AnswerCustomQueryRequest
- type AnswerInlineQueryRequest
- type AnswerPreCheckoutQueryRequest
- type AnswerShippingQueryRequest
- type AnswerWebAppQueryRequest
- type ArchiveChatListSettings
- type AssignAppStoreTransactionRequest
- type AssignGooglePlayTransactionRequest
- type AttachmentMenuBot
- type AttachmentMenuBotColor
- type Audio
- type AuthenticationCodeInfo
- type AuthenticationCodeType
- type AuthenticationCodeTypeCall
- type AuthenticationCodeTypeFirebaseAndroid
- type AuthenticationCodeTypeFirebaseIos
- type AuthenticationCodeTypeFlashCall
- type AuthenticationCodeTypeFragment
- type AuthenticationCodeTypeMissedCall
- type AuthenticationCodeTypeSms
- type AuthenticationCodeTypeTelegramMessage
- type AuthorizationState
- type AuthorizationStateClosed
- type AuthorizationStateClosing
- type AuthorizationStateHandler
- type AuthorizationStateLoggingOut
- type AuthorizationStateReady
- type AuthorizationStateWaitCode
- type AuthorizationStateWaitEmailAddress
- type AuthorizationStateWaitEmailCode
- func (*AuthorizationStateWaitEmailCode) AuthorizationStateType() string
- func (*AuthorizationStateWaitEmailCode) GetClass() string
- func (*AuthorizationStateWaitEmailCode) GetType() string
- func (entity *AuthorizationStateWaitEmailCode) MarshalJSON() ([]byte, error)
- func (authorizationStateWaitEmailCode *AuthorizationStateWaitEmailCode) UnmarshalJSON(data []byte) error
- type AuthorizationStateWaitOtherDeviceConfirmation
- func (*AuthorizationStateWaitOtherDeviceConfirmation) AuthorizationStateType() string
- func (*AuthorizationStateWaitOtherDeviceConfirmation) GetClass() string
- func (*AuthorizationStateWaitOtherDeviceConfirmation) GetType() string
- func (entity *AuthorizationStateWaitOtherDeviceConfirmation) MarshalJSON() ([]byte, error)
- type AuthorizationStateWaitPassword
- type AuthorizationStateWaitPhoneNumber
- type AuthorizationStateWaitRegistration
- type AuthorizationStateWaitTdlibParameters
- type AutoDownloadSettings
- type AutoDownloadSettingsPresets
- type AutosaveSettings
- type AutosaveSettingsException
- type AutosaveSettingsScope
- type AutosaveSettingsScopeChannelChats
- type AutosaveSettingsScopeChat
- type AutosaveSettingsScopeGroupChats
- type AutosaveSettingsScopePrivateChats
- type AvailableReaction
- type AvailableReactions
- type Background
- type BackgroundFill
- type BackgroundFillFreeformGradient
- type BackgroundFillGradient
- type BackgroundFillSolid
- type BackgroundType
- type BackgroundTypeFill
- type BackgroundTypePattern
- func (*BackgroundTypePattern) BackgroundTypeType() string
- func (*BackgroundTypePattern) GetClass() string
- func (*BackgroundTypePattern) GetType() string
- func (entity *BackgroundTypePattern) MarshalJSON() ([]byte, error)
- func (backgroundTypePattern *BackgroundTypePattern) UnmarshalJSON(data []byte) error
- type BackgroundTypeWallpaper
- type Backgrounds
- type BanChatMemberRequest
- type BankCardActionOpenUrl
- type BankCardInfo
- type BasicGroup
- type BasicGroupFullInfo
- type BlockList
- type BlockListMain
- type BlockListStories
- type BlockMessageSenderFromRepliesRequest
- type BotCommand
- type BotCommandScope
- type BotCommandScopeAllChatAdministrators
- type BotCommandScopeAllGroupChats
- type BotCommandScopeAllPrivateChats
- type BotCommandScopeChat
- type BotCommandScopeChatAdministrators
- type BotCommandScopeChatMember
- type BotCommandScopeDefault
- type BotCommands
- type BotInfo
- type BotMenuButton
- type Call
- type CallDiscardReason
- type CallDiscardReasonDeclined
- type CallDiscardReasonDisconnected
- type CallDiscardReasonEmpty
- type CallDiscardReasonHungUp
- type CallDiscardReasonMissed
- type CallId
- type CallProblem
- type CallProblemDistortedSpeech
- type CallProblemDistortedVideo
- type CallProblemDropped
- type CallProblemEcho
- type CallProblemInterruptions
- type CallProblemNoise
- type CallProblemPixelatedVideo
- type CallProblemSilentLocal
- type CallProblemSilentRemote
- type CallProtocol
- type CallServer
- type CallServerType
- type CallServerTypeTelegramReflector
- type CallServerTypeWebrtc
- type CallState
- type CallStateDiscarded
- type CallStateError
- type CallStateExchangingKeys
- type CallStateHangingUp
- type CallStatePending
- type CallStateReady
- type CallbackQueryAnswer
- type CallbackQueryPayload
- type CallbackQueryPayloadData
- type CallbackQueryPayloadDataWithPassword
- type CallbackQueryPayloadGame
- type CanBotSendMessagesRequest
- type CanPurchasePremiumRequest
- type CanSendStoryResult
- type CanSendStoryResultActiveStoryLimitExceeded
- func (*CanSendStoryResultActiveStoryLimitExceeded) CanSendStoryResultType() string
- func (*CanSendStoryResultActiveStoryLimitExceeded) GetClass() string
- func (*CanSendStoryResultActiveStoryLimitExceeded) GetType() string
- func (entity *CanSendStoryResultActiveStoryLimitExceeded) MarshalJSON() ([]byte, error)
- type CanSendStoryResultMonthlyLimitExceeded
- type CanSendStoryResultOk
- type CanSendStoryResultPremiumNeeded
- type CanSendStoryResultWeeklyLimitExceeded
- type CanTransferOwnershipResult
- type CanTransferOwnershipResultOk
- type CanTransferOwnershipResultPasswordNeeded
- func (*CanTransferOwnershipResultPasswordNeeded) CanTransferOwnershipResultType() string
- func (*CanTransferOwnershipResultPasswordNeeded) GetClass() string
- func (*CanTransferOwnershipResultPasswordNeeded) GetType() string
- func (entity *CanTransferOwnershipResultPasswordNeeded) MarshalJSON() ([]byte, error)
- type CanTransferOwnershipResultPasswordTooFresh
- func (*CanTransferOwnershipResultPasswordTooFresh) CanTransferOwnershipResultType() string
- func (*CanTransferOwnershipResultPasswordTooFresh) GetClass() string
- func (*CanTransferOwnershipResultPasswordTooFresh) GetType() string
- func (entity *CanTransferOwnershipResultPasswordTooFresh) MarshalJSON() ([]byte, error)
- type CanTransferOwnershipResultSessionTooFresh
- func (*CanTransferOwnershipResultSessionTooFresh) CanTransferOwnershipResultType() string
- func (*CanTransferOwnershipResultSessionTooFresh) GetClass() string
- func (*CanTransferOwnershipResultSessionTooFresh) GetType() string
- func (entity *CanTransferOwnershipResultSessionTooFresh) MarshalJSON() ([]byte, error)
- type CancelDownloadFileRequest
- type CancelPreliminaryUploadFileRequest
- type ChangeImportedContactsRequest
- type ChangePhoneNumberRequest
- type ChangeStickerSetRequest
- type Chat
- type ChatAction
- type ChatActionBar
- type ChatActionBarAddContact
- type ChatActionBarInviteMembers
- type ChatActionBarJoinRequest
- type ChatActionBarReportAddBlock
- type ChatActionBarReportSpam
- type ChatActionBarReportUnrelatedLocation
- type ChatActionBarSharePhoneNumber
- type ChatActionCancel
- type ChatActionChoosingContact
- type ChatActionChoosingLocation
- type ChatActionChoosingSticker
- type ChatActionRecordingVideo
- type ChatActionRecordingVideoNote
- type ChatActionRecordingVoiceNote
- type ChatActionStartPlayingGame
- type ChatActionTyping
- type ChatActionUploadingDocument
- type ChatActionUploadingPhoto
- type ChatActionUploadingVideo
- type ChatActionUploadingVideoNote
- type ChatActionUploadingVoiceNote
- type ChatActionWatchingAnimations
- type ChatActiveStories
- type ChatAdministrator
- type ChatAdministratorRights
- type ChatAdministrators
- type ChatAvailableReactions
- type ChatAvailableReactionsAll
- type ChatAvailableReactionsSome
- func (*ChatAvailableReactionsSome) ChatAvailableReactionsType() string
- func (*ChatAvailableReactionsSome) GetClass() string
- func (*ChatAvailableReactionsSome) GetType() string
- func (entity *ChatAvailableReactionsSome) MarshalJSON() ([]byte, error)
- func (chatAvailableReactionsSome *ChatAvailableReactionsSome) UnmarshalJSON(data []byte) error
- type ChatBackground
- type ChatEvent
- type ChatEventAction
- type ChatEventActiveUsernamesChanged
- type ChatEventAvailableReactionsChanged
- func (*ChatEventAvailableReactionsChanged) ChatEventActionType() string
- func (*ChatEventAvailableReactionsChanged) GetClass() string
- func (*ChatEventAvailableReactionsChanged) GetType() string
- func (entity *ChatEventAvailableReactionsChanged) MarshalJSON() ([]byte, error)
- func (chatEventAvailableReactionsChanged *ChatEventAvailableReactionsChanged) UnmarshalJSON(data []byte) error
- type ChatEventDescriptionChanged
- type ChatEventForumTopicCreated
- type ChatEventForumTopicDeleted
- type ChatEventForumTopicEdited
- type ChatEventForumTopicPinned
- type ChatEventForumTopicToggleIsClosed
- type ChatEventForumTopicToggleIsHidden
- type ChatEventHasAggressiveAntiSpamEnabledToggled
- func (*ChatEventHasAggressiveAntiSpamEnabledToggled) ChatEventActionType() string
- func (*ChatEventHasAggressiveAntiSpamEnabledToggled) GetClass() string
- func (*ChatEventHasAggressiveAntiSpamEnabledToggled) GetType() string
- func (entity *ChatEventHasAggressiveAntiSpamEnabledToggled) MarshalJSON() ([]byte, error)
- type ChatEventHasProtectedContentToggled
- type ChatEventInviteLinkDeleted
- type ChatEventInviteLinkEdited
- type ChatEventInviteLinkRevoked
- type ChatEventInvitesToggled
- type ChatEventIsAllHistoryAvailableToggled
- type ChatEventIsForumToggled
- type ChatEventLinkedChatChanged
- type ChatEventLocationChanged
- type ChatEventLogFilters
- type ChatEventMemberInvited
- func (*ChatEventMemberInvited) ChatEventActionType() string
- func (*ChatEventMemberInvited) GetClass() string
- func (*ChatEventMemberInvited) GetType() string
- func (entity *ChatEventMemberInvited) MarshalJSON() ([]byte, error)
- func (chatEventMemberInvited *ChatEventMemberInvited) UnmarshalJSON(data []byte) error
- type ChatEventMemberJoined
- type ChatEventMemberJoinedByInviteLink
- type ChatEventMemberJoinedByRequest
- type ChatEventMemberLeft
- type ChatEventMemberPromoted
- func (*ChatEventMemberPromoted) ChatEventActionType() string
- func (*ChatEventMemberPromoted) GetClass() string
- func (*ChatEventMemberPromoted) GetType() string
- func (entity *ChatEventMemberPromoted) MarshalJSON() ([]byte, error)
- func (chatEventMemberPromoted *ChatEventMemberPromoted) UnmarshalJSON(data []byte) error
- type ChatEventMemberRestricted
- func (*ChatEventMemberRestricted) ChatEventActionType() string
- func (*ChatEventMemberRestricted) GetClass() string
- func (*ChatEventMemberRestricted) GetType() string
- func (entity *ChatEventMemberRestricted) MarshalJSON() ([]byte, error)
- func (chatEventMemberRestricted *ChatEventMemberRestricted) UnmarshalJSON(data []byte) error
- type ChatEventMessageAutoDeleteTimeChanged
- type ChatEventMessageDeleted
- type ChatEventMessageEdited
- type ChatEventMessagePinned
- type ChatEventMessageUnpinned
- type ChatEventPermissionsChanged
- type ChatEventPhotoChanged
- type ChatEventPollStopped
- type ChatEventSignMessagesToggled
- type ChatEventSlowModeDelayChanged
- type ChatEventStickerSetChanged
- type ChatEventTitleChanged
- type ChatEventUsernameChanged
- type ChatEventVideoChatCreated
- type ChatEventVideoChatEnded
- type ChatEventVideoChatMuteNewParticipantsToggled
- func (*ChatEventVideoChatMuteNewParticipantsToggled) ChatEventActionType() string
- func (*ChatEventVideoChatMuteNewParticipantsToggled) GetClass() string
- func (*ChatEventVideoChatMuteNewParticipantsToggled) GetType() string
- func (entity *ChatEventVideoChatMuteNewParticipantsToggled) MarshalJSON() ([]byte, error)
- type ChatEventVideoChatParticipantIsMutedToggled
- func (*ChatEventVideoChatParticipantIsMutedToggled) ChatEventActionType() string
- func (*ChatEventVideoChatParticipantIsMutedToggled) GetClass() string
- func (*ChatEventVideoChatParticipantIsMutedToggled) GetType() string
- func (entity *ChatEventVideoChatParticipantIsMutedToggled) MarshalJSON() ([]byte, error)
- func (chatEventVideoChatParticipantIsMutedToggled *ChatEventVideoChatParticipantIsMutedToggled) UnmarshalJSON(data []byte) error
- type ChatEventVideoChatParticipantVolumeLevelChanged
- func (*ChatEventVideoChatParticipantVolumeLevelChanged) ChatEventActionType() string
- func (*ChatEventVideoChatParticipantVolumeLevelChanged) GetClass() string
- func (*ChatEventVideoChatParticipantVolumeLevelChanged) GetType() string
- func (entity *ChatEventVideoChatParticipantVolumeLevelChanged) MarshalJSON() ([]byte, error)
- func (chatEventVideoChatParticipantVolumeLevelChanged *ChatEventVideoChatParticipantVolumeLevelChanged) UnmarshalJSON(data []byte) error
- type ChatEvents
- type ChatFolder
- type ChatFolderIcon
- type ChatFolderInfo
- type ChatFolderInviteLink
- type ChatFolderInviteLinkInfo
- type ChatFolderInviteLinks
- type ChatInviteLink
- type ChatInviteLinkCount
- type ChatInviteLinkCounts
- type ChatInviteLinkInfo
- type ChatInviteLinkMember
- type ChatInviteLinkMembers
- type ChatInviteLinks
- type ChatJoinRequest
- type ChatJoinRequests
- type ChatJoinRequestsInfo
- type ChatList
- type ChatListArchive
- type ChatListFolder
- type ChatListMain
- type ChatLists
- type ChatLocation
- type ChatMember
- type ChatMemberStatus
- type ChatMemberStatusAdministrator
- type ChatMemberStatusBanned
- type ChatMemberStatusCreator
- type ChatMemberStatusLeft
- type ChatMemberStatusMember
- type ChatMemberStatusRestricted
- type ChatMembers
- type ChatMembersFilter
- type ChatMembersFilterAdministrators
- type ChatMembersFilterBanned
- type ChatMembersFilterBots
- type ChatMembersFilterContacts
- type ChatMembersFilterMembers
- type ChatMembersFilterMention
- type ChatMembersFilterRestricted
- type ChatMessageSender
- type ChatMessageSenders
- type ChatNearby
- type ChatNotificationSettings
- type ChatPermissions
- type ChatPhoto
- type ChatPhotoInfo
- type ChatPhotoSticker
- type ChatPhotoStickerType
- type ChatPhotoStickerTypeCustomEmoji
- type ChatPhotoStickerTypeRegularOrMask
- type ChatPhotos
- type ChatPosition
- type ChatSource
- type ChatSourceMtprotoProxy
- type ChatSourcePublicServiceAnnouncement
- type ChatStatistics
- type ChatStatisticsAdministratorActionsInfo
- type ChatStatisticsChannel
- func (*ChatStatisticsChannel) ChatStatisticsType() string
- func (*ChatStatisticsChannel) GetClass() string
- func (*ChatStatisticsChannel) GetType() string
- func (entity *ChatStatisticsChannel) MarshalJSON() ([]byte, error)
- func (chatStatisticsChannel *ChatStatisticsChannel) UnmarshalJSON(data []byte) error
- type ChatStatisticsInviterInfo
- type ChatStatisticsMessageInteractionInfo
- type ChatStatisticsMessageSenderInfo
- type ChatStatisticsSupergroup
- func (*ChatStatisticsSupergroup) ChatStatisticsType() string
- func (*ChatStatisticsSupergroup) GetClass() string
- func (*ChatStatisticsSupergroup) GetType() string
- func (entity *ChatStatisticsSupergroup) MarshalJSON() ([]byte, error)
- func (chatStatisticsSupergroup *ChatStatisticsSupergroup) UnmarshalJSON(data []byte) error
- type ChatTheme
- type ChatType
- type ChatTypeBasicGroup
- type ChatTypePrivate
- type ChatTypeSecret
- type ChatTypeSupergroup
- type Chats
- type ChatsNearby
- type CheckAuthenticationBotTokenRequest
- type CheckAuthenticationCodeRequest
- type CheckAuthenticationEmailCodeRequest
- type CheckAuthenticationPasswordRecoveryCodeRequest
- type CheckAuthenticationPasswordRequest
- type CheckChangePhoneNumberCodeRequest
- type CheckChatFolderInviteLinkRequest
- type CheckChatInviteLinkRequest
- type CheckChatUsernameRequest
- type CheckChatUsernameResult
- type CheckChatUsernameResultOk
- type CheckChatUsernameResultPublicChatsTooMany
- func (*CheckChatUsernameResultPublicChatsTooMany) CheckChatUsernameResultType() string
- func (*CheckChatUsernameResultPublicChatsTooMany) GetClass() string
- func (*CheckChatUsernameResultPublicChatsTooMany) GetType() string
- func (entity *CheckChatUsernameResultPublicChatsTooMany) MarshalJSON() ([]byte, error)
- type CheckChatUsernameResultPublicGroupsUnavailable
- func (*CheckChatUsernameResultPublicGroupsUnavailable) CheckChatUsernameResultType() string
- func (*CheckChatUsernameResultPublicGroupsUnavailable) GetClass() string
- func (*CheckChatUsernameResultPublicGroupsUnavailable) GetType() string
- func (entity *CheckChatUsernameResultPublicGroupsUnavailable) MarshalJSON() ([]byte, error)
- type CheckChatUsernameResultUsernameInvalid
- type CheckChatUsernameResultUsernameOccupied
- func (*CheckChatUsernameResultUsernameOccupied) CheckChatUsernameResultType() string
- func (*CheckChatUsernameResultUsernameOccupied) GetClass() string
- func (*CheckChatUsernameResultUsernameOccupied) GetType() string
- func (entity *CheckChatUsernameResultUsernameOccupied) MarshalJSON() ([]byte, error)
- type CheckChatUsernameResultUsernamePurchasable
- func (*CheckChatUsernameResultUsernamePurchasable) CheckChatUsernameResultType() string
- func (*CheckChatUsernameResultUsernamePurchasable) GetClass() string
- func (*CheckChatUsernameResultUsernamePurchasable) GetType() string
- func (entity *CheckChatUsernameResultUsernamePurchasable) MarshalJSON() ([]byte, error)
- type CheckCreatedPublicChatsLimitRequest
- type CheckEmailAddressVerificationCodeRequest
- type CheckLoginEmailAddressCodeRequest
- type CheckPasswordRecoveryCodeRequest
- type CheckPhoneNumberConfirmationCodeRequest
- type CheckPhoneNumberVerificationCodeRequest
- type CheckRecoveryEmailAddressCodeRequest
- type CheckStickerSetNameRequest
- type CheckStickerSetNameResult
- type CheckStickerSetNameResultNameInvalid
- type CheckStickerSetNameResultNameOccupied
- type CheckStickerSetNameResultOk
- type CleanFileNameRequest
- type ClearAllDraftMessagesRequest
- type ClearRecentStickersRequest
- type ClickAnimatedEmojiMessageRequest
- type ClickChatSponsoredMessageRequest
- type Client
- func (client *Client) AcceptCall(req *AcceptCallRequest) (*Ok, error)
- func (client *Client) AcceptTermsOfService(req *AcceptTermsOfServiceRequest) (*Ok, error)
- func (client *Client) ActivateStoryStealthMode() (*Ok, error)
- func (client *Client) AddApplicationChangelog(req *AddApplicationChangelogRequest) (*Ok, error)
- func (client *Client) AddChatFolderByInviteLink(req *AddChatFolderByInviteLinkRequest) (*Ok, error)
- func (client *Client) AddChatMember(req *AddChatMemberRequest) (*Ok, error)
- func (client *Client) AddChatMembers(req *AddChatMembersRequest) (*Ok, error)
- func (client *Client) AddChatToList(req *AddChatToListRequest) (*Ok, error)
- func (client *Client) AddContact(req *AddContactRequest) (*Ok, error)
- func (client *Client) AddCustomServerLanguagePack(req *AddCustomServerLanguagePackRequest) (*Ok, error)
- func (client *Client) AddEventReceiver(msgType Type, channelCapacity int) *Listener
- func (client *Client) AddFavoriteSticker(req *AddFavoriteStickerRequest) (*Ok, error)
- func (client *Client) AddFileToDownloads(req *AddFileToDownloadsRequest) (*File, error)
- func (client *Client) AddLocalMessage(req *AddLocalMessageRequest) (*Message, error)
- func (client *Client) AddLogMessage(req *AddLogMessageRequest) (*Ok, error)
- func (client *Client) AddMessageReaction(req *AddMessageReactionRequest) (*Ok, error)
- func (client *Client) AddNetworkStatistics(req *AddNetworkStatisticsRequest) (*Ok, error)
- func (client *Client) AddProxy(req *AddProxyRequest) (*Proxy, error)
- func (client *Client) AddRecentSticker(req *AddRecentStickerRequest) (*Stickers, error)
- func (client *Client) AddRecentlyFoundChat(req *AddRecentlyFoundChatRequest) (*Ok, error)
- func (client *Client) AddSavedAnimation(req *AddSavedAnimationRequest) (*Ok, error)
- func (client *Client) AddSavedNotificationSound(req *AddSavedNotificationSoundRequest) (*NotificationSound, error)
- func (client *Client) AddStickerToSet(req *AddStickerToSetRequest) (*Ok, error)
- func (client *Client) AllowBotToSendMessages(req *AllowBotToSendMessagesRequest) (*Ok, error)
- func (client *Client) AnswerCallbackQuery(req *AnswerCallbackQueryRequest) (*Ok, error)
- func (client *Client) AnswerCustomQuery(req *AnswerCustomQueryRequest) (*Ok, error)
- func (client *Client) AnswerInlineQuery(req *AnswerInlineQueryRequest) (*Ok, error)
- func (client *Client) AnswerPreCheckoutQuery(req *AnswerPreCheckoutQueryRequest) (*Ok, error)
- func (client *Client) AnswerShippingQuery(req *AnswerShippingQueryRequest) (*Ok, error)
- func (client *Client) AnswerWebAppQuery(req *AnswerWebAppQueryRequest) (*SentWebAppMessage, error)
- func (client *Client) AssignAppStoreTransaction(req *AssignAppStoreTransactionRequest) (*Ok, error)
- func (client *Client) AssignGooglePlayTransaction(req *AssignGooglePlayTransactionRequest) (*Ok, error)
- func (client *Client) BanChatMember(req *BanChatMemberRequest) (*Ok, error)
- func (client *Client) BlockMessageSenderFromReplies(req *BlockMessageSenderFromRepliesRequest) (*Ok, error)
- func (client *Client) CanBotSendMessages(req *CanBotSendMessagesRequest) (*Ok, error)
- func (client *Client) CanPurchasePremium(req *CanPurchasePremiumRequest) (*Ok, error)
- func (client *Client) CanSendStory() (CanSendStoryResult, error)
- func (client *Client) CanTransferOwnership() (CanTransferOwnershipResult, error)
- func (client *Client) CancelDownloadFile(req *CancelDownloadFileRequest) (*Ok, error)
- func (client *Client) CancelPasswordReset() (*Ok, error)
- func (client *Client) CancelPreliminaryUploadFile(req *CancelPreliminaryUploadFileRequest) (*Ok, error)
- func (client *Client) ChangeImportedContacts(req *ChangeImportedContactsRequest) (*ImportedContacts, error)
- func (client *Client) ChangePhoneNumber(req *ChangePhoneNumberRequest) (*AuthenticationCodeInfo, error)
- func (client *Client) ChangeStickerSet(req *ChangeStickerSetRequest) (*Ok, error)
- func (client *Client) CheckAuthenticationBotToken(req *CheckAuthenticationBotTokenRequest) (*Ok, error)
- func (client *Client) CheckAuthenticationCode(req *CheckAuthenticationCodeRequest) (*Ok, error)
- func (client *Client) CheckAuthenticationEmailCode(req *CheckAuthenticationEmailCodeRequest) (*Ok, error)
- func (client *Client) CheckAuthenticationPassword(req *CheckAuthenticationPasswordRequest) (*Ok, error)
- func (client *Client) CheckAuthenticationPasswordRecoveryCode(req *CheckAuthenticationPasswordRecoveryCodeRequest) (*Ok, error)
- func (client *Client) CheckChangePhoneNumberCode(req *CheckChangePhoneNumberCodeRequest) (*Ok, error)
- func (client *Client) CheckChatFolderInviteLink(req *CheckChatFolderInviteLinkRequest) (*ChatFolderInviteLinkInfo, error)
- func (client *Client) CheckChatInviteLink(req *CheckChatInviteLinkRequest) (*ChatInviteLinkInfo, error)
- func (client *Client) CheckChatUsername(req *CheckChatUsernameRequest) (CheckChatUsernameResult, error)
- func (client *Client) CheckCreatedPublicChatsLimit(req *CheckCreatedPublicChatsLimitRequest) (*Ok, error)
- func (client *Client) CheckEmailAddressVerificationCode(req *CheckEmailAddressVerificationCodeRequest) (*Ok, error)
- func (client *Client) CheckLoginEmailAddressCode(req *CheckLoginEmailAddressCodeRequest) (*Ok, error)
- func (client *Client) CheckPasswordRecoveryCode(req *CheckPasswordRecoveryCodeRequest) (*Ok, error)
- func (client *Client) CheckPhoneNumberConfirmationCode(req *CheckPhoneNumberConfirmationCodeRequest) (*Ok, error)
- func (client *Client) CheckPhoneNumberVerificationCode(req *CheckPhoneNumberVerificationCodeRequest) (*Ok, error)
- func (client *Client) CheckRecoveryEmailAddressCode(req *CheckRecoveryEmailAddressCodeRequest) (*PasswordState, error)
- func (client *Client) CheckStickerSetName(req *CheckStickerSetNameRequest) (CheckStickerSetNameResult, error)
- func (client *Client) CleanFileName(req *CleanFileNameRequest) (*Text, error)
- func (client *Client) ClearAllDraftMessages(req *ClearAllDraftMessagesRequest) (*Ok, error)
- func (client *Client) ClearAutosaveSettingsExceptions() (*Ok, error)
- func (client *Client) ClearImportedContacts() (*Ok, error)
- func (client *Client) ClearRecentEmojiStatuses() (*Ok, error)
- func (client *Client) ClearRecentReactions() (*Ok, error)
- func (client *Client) ClearRecentStickers(req *ClearRecentStickersRequest) (*Ok, error)
- func (client *Client) ClearRecentlyFoundChats() (*Ok, error)
- func (client *Client) ClickAnimatedEmojiMessage(req *ClickAnimatedEmojiMessageRequest) (*Sticker, error)
- func (client *Client) ClickChatSponsoredMessage(req *ClickChatSponsoredMessageRequest) (*Ok, error)
- func (client *Client) ClickPremiumSubscriptionButton() (*Ok, error)
- func (client *Client) Close() (*Ok, error)
- func (client *Client) CloseChat(req *CloseChatRequest) (*Ok, error)
- func (client *Client) CloseSecretChat(req *CloseSecretChatRequest) (*Ok, error)
- func (client *Client) CloseStory(req *CloseStoryRequest) (*Ok, error)
- func (client *Client) CloseWebApp(req *CloseWebAppRequest) (*Ok, error)
- func (client *Client) ConfirmQrCodeAuthentication(req *ConfirmQrCodeAuthenticationRequest) (*Session, error)
- func (client *Client) ConfirmSession(req *ConfirmSessionRequest) (*Ok, error)
- func (client *Client) CreateBasicGroupChat(req *CreateBasicGroupChatRequest) (*Chat, error)
- func (client *Client) CreateCall(req *CreateCallRequest) (*CallId, error)
- func (client *Client) CreateChatFolder(req *CreateChatFolderRequest) (*ChatFolderInfo, error)
- func (client *Client) CreateChatFolderInviteLink(req *CreateChatFolderInviteLinkRequest) (*ChatFolderInviteLink, error)
- func (client *Client) CreateChatInviteLink(req *CreateChatInviteLinkRequest) (*ChatInviteLink, error)
- func (client *Client) CreateForumTopic(req *CreateForumTopicRequest) (*ForumTopicInfo, error)
- func (client *Client) CreateInvoiceLink(req *CreateInvoiceLinkRequest) (*HttpUrl, error)
- func (client *Client) CreateNewBasicGroupChat(req *CreateNewBasicGroupChatRequest) (*Chat, error)
- func (client *Client) CreateNewSecretChat(req *CreateNewSecretChatRequest) (*Chat, error)
- func (client *Client) CreateNewStickerSet(req *CreateNewStickerSetRequest) (*StickerSet, error)
- func (client *Client) CreateNewSupergroupChat(req *CreateNewSupergroupChatRequest) (*Chat, error)
- func (client *Client) CreatePrivateChat(req *CreatePrivateChatRequest) (*Chat, error)
- func (client *Client) CreateSecretChat(req *CreateSecretChatRequest) (*Chat, error)
- func (client *Client) CreateSupergroupChat(req *CreateSupergroupChatRequest) (*Chat, error)
- func (client *Client) CreateTemporaryPassword(req *CreateTemporaryPasswordRequest) (*TemporaryPasswordState, error)
- func (client *Client) CreateVideoChat(req *CreateVideoChatRequest) (*GroupCallId, error)
- func (client *Client) DeleteAccount(req *DeleteAccountRequest) (*Ok, error)
- func (client *Client) DeleteAllCallMessages(req *DeleteAllCallMessagesRequest) (*Ok, error)
- func (client *Client) DeleteAllRevokedChatInviteLinks(req *DeleteAllRevokedChatInviteLinksRequest) (*Ok, error)
- func (client *Client) DeleteChat(req *DeleteChatRequest) (*Ok, error)
- func (client *Client) DeleteChatFolder(req *DeleteChatFolderRequest) (*Ok, error)
- func (client *Client) DeleteChatFolderInviteLink(req *DeleteChatFolderInviteLinkRequest) (*Ok, error)
- func (client *Client) DeleteChatHistory(req *DeleteChatHistoryRequest) (*Ok, error)
- func (client *Client) DeleteChatMessagesByDate(req *DeleteChatMessagesByDateRequest) (*Ok, error)
- func (client *Client) DeleteChatMessagesBySender(req *DeleteChatMessagesBySenderRequest) (*Ok, error)
- func (client *Client) DeleteChatReplyMarkup(req *DeleteChatReplyMarkupRequest) (*Ok, error)
- func (client *Client) DeleteCommands(req *DeleteCommandsRequest) (*Ok, error)
- func (client *Client) DeleteFile(req *DeleteFileRequest) (*Ok, error)
- func (client *Client) DeleteForumTopic(req *DeleteForumTopicRequest) (*Ok, error)
- func (client *Client) DeleteLanguagePack(req *DeleteLanguagePackRequest) (*Ok, error)
- func (client *Client) DeleteMessages(req *DeleteMessagesRequest) (*Ok, error)
- func (client *Client) DeletePassportElement(req *DeletePassportElementRequest) (*Ok, error)
- func (client *Client) DeleteProfilePhoto(req *DeleteProfilePhotoRequest) (*Ok, error)
- func (client *Client) DeleteRevokedChatInviteLink(req *DeleteRevokedChatInviteLinkRequest) (*Ok, error)
- func (client *Client) DeleteSavedCredentials() (*Ok, error)
- func (client *Client) DeleteSavedOrderInfo() (*Ok, error)
- func (client *Client) DeleteStickerSet(req *DeleteStickerSetRequest) (*Ok, error)
- func (client *Client) DeleteStory(req *DeleteStoryRequest) (*Ok, error)
- func (client *Client) Destroy() (*Ok, error)
- func (client *Client) DisableAllSupergroupUsernames(req *DisableAllSupergroupUsernamesRequest) (*Ok, error)
- func (client *Client) DisableProxy() (*Ok, error)
- func (client *Client) DiscardCall(req *DiscardCallRequest) (*Ok, error)
- func (client *Client) DisconnectAllWebsites() (*Ok, error)
- func (client *Client) DisconnectWebsite(req *DisconnectWebsiteRequest) (*Ok, error)
- func (client *Client) DownloadFile(req *DownloadFileRequest) (*File, error)
- func (client *Client) EditChatFolder(req *EditChatFolderRequest) (*ChatFolderInfo, error)
- func (client *Client) EditChatFolderInviteLink(req *EditChatFolderInviteLinkRequest) (*ChatFolderInviteLink, error)
- func (client *Client) EditChatInviteLink(req *EditChatInviteLinkRequest) (*ChatInviteLink, error)
- func (client *Client) EditCustomLanguagePackInfo(req *EditCustomLanguagePackInfoRequest) (*Ok, error)
- func (client *Client) EditForumTopic(req *EditForumTopicRequest) (*Ok, error)
- func (client *Client) EditInlineMessageCaption(req *EditInlineMessageCaptionRequest) (*Ok, error)
- func (client *Client) EditInlineMessageLiveLocation(req *EditInlineMessageLiveLocationRequest) (*Ok, error)
- func (client *Client) EditInlineMessageMedia(req *EditInlineMessageMediaRequest) (*Ok, error)
- func (client *Client) EditInlineMessageReplyMarkup(req *EditInlineMessageReplyMarkupRequest) (*Ok, error)
- func (client *Client) EditInlineMessageText(req *EditInlineMessageTextRequest) (*Ok, error)
- func (client *Client) EditMessageCaption(req *EditMessageCaptionRequest) (*Message, error)
- func (client *Client) EditMessageLiveLocation(req *EditMessageLiveLocationRequest) (*Message, error)
- func (client *Client) EditMessageMedia(req *EditMessageMediaRequest) (*Message, error)
- func (client *Client) EditMessageReplyMarkup(req *EditMessageReplyMarkupRequest) (*Message, error)
- func (client *Client) EditMessageSchedulingState(req *EditMessageSchedulingStateRequest) (*Ok, error)
- func (client *Client) EditMessageText(req *EditMessageTextRequest) (*Message, error)
- func (client *Client) EditProxy(req *EditProxyRequest) (*Proxy, error)
- func (client *Client) EditStory(req *EditStoryRequest) (*Ok, error)
- func (client *Client) EnableProxy(req *EnableProxyRequest) (*Ok, error)
- func (client *Client) EndGroupCall(req *EndGroupCallRequest) (*Ok, error)
- func (client *Client) EndGroupCallRecording(req *EndGroupCallRecordingRequest) (*Ok, error)
- func (client *Client) EndGroupCallScreenSharing(req *EndGroupCallScreenSharingRequest) (*Ok, error)
- func (client *Client) FinishFileGeneration(req *FinishFileGenerationRequest) (*Ok, error)
- func (client *Client) ForwardMessages(req *ForwardMessagesRequest) (*Messages, error)
- func (client *Client) GetAccountTtl() (*AccountTtl, error)
- func (client *Client) GetActiveLiveLocationMessages() (*Messages, error)
- func (client *Client) GetActiveSessions() (*Sessions, error)
- func (client *Client) GetAllPassportElements(req *GetAllPassportElementsRequest) (*PassportElements, error)
- func (client *Client) GetAllStickerEmojis(req *GetAllStickerEmojisRequest) (*Emojis, error)
- func (client *Client) GetAnimatedEmoji(req *GetAnimatedEmojiRequest) (*AnimatedEmoji, error)
- func (client *Client) GetApplicationConfig() (JsonValue, error)
- func (client *Client) GetApplicationDownloadLink() (*HttpUrl, error)
- func (client *Client) GetArchiveChatListSettings() (*ArchiveChatListSettings, error)
- func (client *Client) GetArchivedStickerSets(req *GetArchivedStickerSetsRequest) (*StickerSets, error)
- func (client *Client) GetArchivedStories(req *GetArchivedStoriesRequest) (*Stories, error)
- func (client *Client) GetAttachedStickerSets(req *GetAttachedStickerSetsRequest) (*StickerSets, error)
- func (client *Client) GetAttachmentMenuBot(req *GetAttachmentMenuBotRequest) (*AttachmentMenuBot, error)
- func (client *Client) GetAuthorizationState() (AuthorizationState, error)
- func (client *Client) GetAutoDownloadSettingsPresets() (*AutoDownloadSettingsPresets, error)
- func (client *Client) GetAutosaveSettings() (*AutosaveSettings, error)
- func (client *Client) GetBackgroundUrl(req *GetBackgroundUrlRequest) (*HttpUrl, error)
- func (client *Client) GetBackgrounds(req *GetBackgroundsRequest) (*Backgrounds, error)
- func (client *Client) GetBankCardInfo(req *GetBankCardInfoRequest) (*BankCardInfo, error)
- func (client *Client) GetBasicGroup(req *GetBasicGroupRequest) (*BasicGroup, error)
- func (client *Client) GetBasicGroupFullInfo(req *GetBasicGroupFullInfoRequest) (*BasicGroupFullInfo, error)
- func (client *Client) GetBlockedMessageSenders(req *GetBlockedMessageSendersRequest) (*MessageSenders, error)
- func (client *Client) GetBotInfoDescription(req *GetBotInfoDescriptionRequest) (*Text, error)
- func (client *Client) GetBotInfoShortDescription(req *GetBotInfoShortDescriptionRequest) (*Text, error)
- func (client *Client) GetBotName(req *GetBotNameRequest) (*Text, error)
- func (client *Client) GetCallbackQueryAnswer(req *GetCallbackQueryAnswerRequest) (*CallbackQueryAnswer, error)
- func (client *Client) GetCallbackQueryMessage(req *GetCallbackQueryMessageRequest) (*Message, error)
- func (client *Client) GetChat(req *GetChatRequest) (*Chat, error)
- func (client *Client) GetChatActiveStories(req *GetChatActiveStoriesRequest) (*ChatActiveStories, error)
- func (client *Client) GetChatAdministrators(req *GetChatAdministratorsRequest) (*ChatAdministrators, error)
- func (client *Client) GetChatAvailableMessageSenders(req *GetChatAvailableMessageSendersRequest) (*ChatMessageSenders, error)
- func (client *Client) GetChatEventLog(req *GetChatEventLogRequest) (*ChatEvents, error)
- func (client *Client) GetChatFolder(req *GetChatFolderRequest) (*ChatFolder, error)
- func (client *Client) GetChatFolderChatCount(req *GetChatFolderChatCountRequest) (*Count, error)
- func (client *Client) GetChatFolderChatsToLeave(req *GetChatFolderChatsToLeaveRequest) (*Chats, error)
- func (client *Client) GetChatFolderDefaultIconName(req *GetChatFolderDefaultIconNameRequest) (*ChatFolderIcon, error)
- func (client *Client) GetChatFolderInviteLinks(req *GetChatFolderInviteLinksRequest) (*ChatFolderInviteLinks, error)
- func (client *Client) GetChatFolderNewChats(req *GetChatFolderNewChatsRequest) (*Chats, error)
- func (client *Client) GetChatHistory(req *GetChatHistoryRequest) (*Messages, error)
- func (client *Client) GetChatInviteLink(req *GetChatInviteLinkRequest) (*ChatInviteLink, error)
- func (client *Client) GetChatInviteLinkCounts(req *GetChatInviteLinkCountsRequest) (*ChatInviteLinkCounts, error)
- func (client *Client) GetChatInviteLinkMembers(req *GetChatInviteLinkMembersRequest) (*ChatInviteLinkMembers, error)
- func (client *Client) GetChatInviteLinks(req *GetChatInviteLinksRequest) (*ChatInviteLinks, error)
- func (client *Client) GetChatJoinRequests(req *GetChatJoinRequestsRequest) (*ChatJoinRequests, error)
- func (client *Client) GetChatListsToAddChat(req *GetChatListsToAddChatRequest) (*ChatLists, error)
- func (client *Client) GetChatMember(req *GetChatMemberRequest) (*ChatMember, error)
- func (client *Client) GetChatMessageByDate(req *GetChatMessageByDateRequest) (*Message, error)
- func (client *Client) GetChatMessageCalendar(req *GetChatMessageCalendarRequest) (*MessageCalendar, error)
- func (client *Client) GetChatMessageCount(req *GetChatMessageCountRequest) (*Count, error)
- func (client *Client) GetChatMessagePosition(req *GetChatMessagePositionRequest) (*Count, error)
- func (client *Client) GetChatNotificationSettingsExceptions(req *GetChatNotificationSettingsExceptionsRequest) (*Chats, error)
- func (client *Client) GetChatPinnedMessage(req *GetChatPinnedMessageRequest) (*Message, error)
- func (client *Client) GetChatPinnedStories(req *GetChatPinnedStoriesRequest) (*Stories, error)
- func (client *Client) GetChatScheduledMessages(req *GetChatScheduledMessagesRequest) (*Messages, error)
- func (client *Client) GetChatSparseMessagePositions(req *GetChatSparseMessagePositionsRequest) (*MessagePositions, error)
- func (client *Client) GetChatSponsoredMessages(req *GetChatSponsoredMessagesRequest) (*SponsoredMessages, error)
- func (client *Client) GetChatStatistics(req *GetChatStatisticsRequest) (ChatStatistics, error)
- func (client *Client) GetChats(req *GetChatsRequest) (*Chats, error)
- func (client *Client) GetChatsForChatFolderInviteLink(req *GetChatsForChatFolderInviteLinkRequest) (*Chats, error)
- func (client *Client) GetCloseFriends() (*Users, error)
- func (client *Client) GetCommands(req *GetCommandsRequest) (*BotCommands, error)
- func (client *Client) GetConnectedWebsites() (*ConnectedWebsites, error)
- func (client *Client) GetContacts() (*Users, error)
- func (client *Client) GetCountries() (*Countries, error)
- func (client *Client) GetCountryCode() (*Text, error)
- func (client *Client) GetCreatedPublicChats(req *GetCreatedPublicChatsRequest) (*Chats, error)
- func (client *Client) GetCurrentState() (*Updates, error)
- func (client *Client) GetCustomEmojiReactionAnimations() (*Stickers, error)
- func (client *Client) GetCustomEmojiStickers(req *GetCustomEmojiStickersRequest) (*Stickers, error)
- func (client *Client) GetDatabaseStatistics() (*DatabaseStatistics, error)
- func (client *Client) GetDeepLinkInfo(req *GetDeepLinkInfoRequest) (*DeepLinkInfo, error)
- func (client *Client) GetDefaultChatPhotoCustomEmojiStickers() (*Stickers, error)
- func (client *Client) GetDefaultEmojiStatuses() (*EmojiStatuses, error)
- func (client *Client) GetDefaultMessageAutoDeleteTime() (*MessageAutoDeleteTime, error)
- func (client *Client) GetDefaultProfilePhotoCustomEmojiStickers() (*Stickers, error)
- func (client *Client) GetEmojiCategories(req *GetEmojiCategoriesRequest) (*EmojiCategories, error)
- func (client *Client) GetEmojiReaction(req *GetEmojiReactionRequest) (*EmojiReaction, error)
- func (client *Client) GetEmojiSuggestionsUrl(req *GetEmojiSuggestionsUrlRequest) (*HttpUrl, error)
- func (client *Client) GetExternalLink(req *GetExternalLinkRequest) (*HttpUrl, error)
- func (client *Client) GetExternalLinkInfo(req *GetExternalLinkInfoRequest) (LoginUrlInfo, error)
- func (client *Client) GetFavoriteStickers() (*Stickers, error)
- func (client *Client) GetFile(req *GetFileRequest) (*File, error)
- func (client *Client) GetFileDownloadedPrefixSize(req *GetFileDownloadedPrefixSizeRequest) (*FileDownloadedPrefixSize, error)
- func (client *Client) GetFileExtension(req *GetFileExtensionRequest) (*Text, error)
- func (client *Client) GetFileMimeType(req *GetFileMimeTypeRequest) (*Text, error)
- func (client *Client) GetForumTopic(req *GetForumTopicRequest) (*ForumTopic, error)
- func (client *Client) GetForumTopicDefaultIcons() (*Stickers, error)
- func (client *Client) GetForumTopicLink(req *GetForumTopicLinkRequest) (*MessageLink, error)
- func (client *Client) GetForumTopics(req *GetForumTopicsRequest) (*ForumTopics, error)
- func (client *Client) GetGameHighScores(req *GetGameHighScoresRequest) (*GameHighScores, error)
- func (client *Client) GetGroupCall(req *GetGroupCallRequest) (*GroupCall, error)
- func (client *Client) GetGroupCallInviteLink(req *GetGroupCallInviteLinkRequest) (*HttpUrl, error)
- func (client *Client) GetGroupCallStreamSegment(req *GetGroupCallStreamSegmentRequest) (*FilePart, error)
- func (client *Client) GetGroupCallStreams(req *GetGroupCallStreamsRequest) (*GroupCallStreams, error)
- func (client *Client) GetGroupsInCommon(req *GetGroupsInCommonRequest) (*Chats, error)
- func (client *Client) GetImportedContactCount() (*Count, error)
- func (client *Client) GetInactiveSupergroupChats() (*Chats, error)
- func (client *Client) GetInlineGameHighScores(req *GetInlineGameHighScoresRequest) (*GameHighScores, error)
- func (client *Client) GetInlineQueryResults(req *GetInlineQueryResultsRequest) (*InlineQueryResults, error)
- func (client *Client) GetInstalledStickerSets(req *GetInstalledStickerSetsRequest) (*StickerSets, error)
- func (client *Client) GetInternalLink(req *GetInternalLinkRequest) (*HttpUrl, error)
- func (client *Client) GetInternalLinkType(req *GetInternalLinkTypeRequest) (InternalLinkType, error)
- func (client *Client) GetJsonString(req *GetJsonStringRequest) (*Text, error)
- func (client *Client) GetJsonValue(req *GetJsonValueRequest) (JsonValue, error)
- func (client *Client) GetLanguagePackInfo(req *GetLanguagePackInfoRequest) (*LanguagePackInfo, error)
- func (client *Client) GetLanguagePackString(req *GetLanguagePackStringRequest) (LanguagePackStringValue, error)
- func (client *Client) GetLanguagePackStrings(req *GetLanguagePackStringsRequest) (*LanguagePackStrings, error)
- func (client *Client) GetListener() *Listener
- func (client *Client) GetLocalizationTargetInfo(req *GetLocalizationTargetInfoRequest) (*LocalizationTargetInfo, error)
- func (client *Client) GetLogStream() (LogStream, error)
- func (client *Client) GetLogTagVerbosityLevel(req *GetLogTagVerbosityLevelRequest) (*LogVerbosityLevel, error)
- func (client *Client) GetLogTags() (*LogTags, error)
- func (client *Client) GetLogVerbosityLevel() (*LogVerbosityLevel, error)
- func (client *Client) GetLoginUrl(req *GetLoginUrlRequest) (*HttpUrl, error)
- func (client *Client) GetLoginUrlInfo(req *GetLoginUrlInfoRequest) (LoginUrlInfo, error)
- func (client *Client) GetMapThumbnailFile(req *GetMapThumbnailFileRequest) (*File, error)
- func (client *Client) GetMarkdownText(req *GetMarkdownTextRequest) (*FormattedText, error)
- func (client *Client) GetMe() (*User, error)
- func (client *Client) GetMenuButton(req *GetMenuButtonRequest) (*BotMenuButton, error)
- func (client *Client) GetMessage(req *GetMessageRequest) (*Message, error)
- func (client *Client) GetMessageAddedReactions(req *GetMessageAddedReactionsRequest) (*AddedReactions, error)
- func (client *Client) GetMessageAvailableReactions(req *GetMessageAvailableReactionsRequest) (*AvailableReactions, error)
- func (client *Client) GetMessageEmbeddingCode(req *GetMessageEmbeddingCodeRequest) (*Text, error)
- func (client *Client) GetMessageFileType(req *GetMessageFileTypeRequest) (MessageFileType, error)
- func (client *Client) GetMessageImportConfirmationText(req *GetMessageImportConfirmationTextRequest) (*Text, error)
- func (client *Client) GetMessageLink(req *GetMessageLinkRequest) (*MessageLink, error)
- func (client *Client) GetMessageLinkInfo(req *GetMessageLinkInfoRequest) (*MessageLinkInfo, error)
- func (client *Client) GetMessageLocally(req *GetMessageLocallyRequest) (*Message, error)
- func (client *Client) GetMessagePublicForwards(req *GetMessagePublicForwardsRequest) (*FoundMessages, error)
- func (client *Client) GetMessageStatistics(req *GetMessageStatisticsRequest) (*MessageStatistics, error)
- func (client *Client) GetMessageThread(req *GetMessageThreadRequest) (*MessageThreadInfo, error)
- func (client *Client) GetMessageThreadHistory(req *GetMessageThreadHistoryRequest) (*Messages, error)
- func (client *Client) GetMessageViewers(req *GetMessageViewersRequest) (*MessageViewers, error)
- func (client *Client) GetMessages(req *GetMessagesRequest) (*Messages, error)
- func (client *Client) GetNetworkStatistics(req *GetNetworkStatisticsRequest) (*NetworkStatistics, error)
- func (client *Client) GetOption(req *GetOptionRequest) (OptionValue, error)
- func (client *Client) GetPassportAuthorizationForm(req *GetPassportAuthorizationFormRequest) (*PassportAuthorizationForm, error)
- func (client *Client) GetPassportAuthorizationFormAvailableElements(req *GetPassportAuthorizationFormAvailableElementsRequest) (*PassportElementsWithErrors, error)
- func (client *Client) GetPassportElement(req *GetPassportElementRequest) (PassportElement, error)
- func (client *Client) GetPasswordState() (*PasswordState, error)
- func (client *Client) GetPaymentForm(req *GetPaymentFormRequest) (*PaymentForm, error)
- func (client *Client) GetPaymentReceipt(req *GetPaymentReceiptRequest) (*PaymentReceipt, error)
- func (client *Client) GetPhoneNumberInfo(req *GetPhoneNumberInfoRequest) (*PhoneNumberInfo, error)
- func (client *Client) GetPhoneNumberInfoSync(req *GetPhoneNumberInfoSyncRequest) (*PhoneNumberInfo, error)
- func (client *Client) GetPollVoters(req *GetPollVotersRequest) (*MessageSenders, error)
- func (client *Client) GetPreferredCountryLanguage(req *GetPreferredCountryLanguageRequest) (*Text, error)
- func (client *Client) GetPremiumFeatures(req *GetPremiumFeaturesRequest) (*PremiumFeatures, error)
- func (client *Client) GetPremiumLimit(req *GetPremiumLimitRequest) (*PremiumLimit, error)
- func (client *Client) GetPremiumState() (*PremiumState, error)
- func (client *Client) GetPremiumStickerExamples() (*Stickers, error)
- func (client *Client) GetPremiumStickers(req *GetPremiumStickersRequest) (*Stickers, error)
- func (client *Client) GetProxies() (*Proxies, error)
- func (client *Client) GetProxyLink(req *GetProxyLinkRequest) (*HttpUrl, error)
- func (client *Client) GetPushReceiverId(req *GetPushReceiverIdRequest) (*PushReceiverId, error)
- func (client *Client) GetRecentEmojiStatuses() (*EmojiStatuses, error)
- func (client *Client) GetRecentInlineBots() (*Users, error)
- func (client *Client) GetRecentStickers(req *GetRecentStickersRequest) (*Stickers, error)
- func (client *Client) GetRecentlyOpenedChats(req *GetRecentlyOpenedChatsRequest) (*Chats, error)
- func (client *Client) GetRecentlyVisitedTMeUrls(req *GetRecentlyVisitedTMeUrlsRequest) (*TMeUrls, error)
- func (client *Client) GetRecommendedChatFolders() (*RecommendedChatFolders, error)
- func (client *Client) GetRecoveryEmailAddress(req *GetRecoveryEmailAddressRequest) (*RecoveryEmailAddress, error)
- func (client *Client) GetRemoteFile(req *GetRemoteFileRequest) (*File, error)
- func (client *Client) GetRepliedMessage(req *GetRepliedMessageRequest) (*Message, error)
- func (client *Client) GetSavedAnimations() (*Animations, error)
- func (client *Client) GetSavedNotificationSound(req *GetSavedNotificationSoundRequest) (*NotificationSounds, error)
- func (client *Client) GetSavedNotificationSounds() (*NotificationSounds, error)
- func (client *Client) GetSavedOrderInfo() (*OrderInfo, error)
- func (client *Client) GetScopeNotificationSettings(req *GetScopeNotificationSettingsRequest) (*ScopeNotificationSettings, error)
- func (client *Client) GetSecretChat(req *GetSecretChatRequest) (*SecretChat, error)
- func (client *Client) GetStatisticalGraph(req *GetStatisticalGraphRequest) (StatisticalGraph, error)
- func (client *Client) GetStickerEmojis(req *GetStickerEmojisRequest) (*Emojis, error)
- func (client *Client) GetStickerSet(req *GetStickerSetRequest) (*StickerSet, error)
- func (client *Client) GetStickers(req *GetStickersRequest) (*Stickers, error)
- func (client *Client) GetStorageStatistics(req *GetStorageStatisticsRequest) (*StorageStatistics, error)
- func (client *Client) GetStorageStatisticsFast() (*StorageStatisticsFast, error)
- func (client *Client) GetStory(req *GetStoryRequest) (*Story, error)
- func (client *Client) GetStoryAvailableReactions(req *GetStoryAvailableReactionsRequest) (*AvailableReactions, error)
- func (client *Client) GetStoryNotificationSettingsExceptions() (*Chats, error)
- func (client *Client) GetStoryViewers(req *GetStoryViewersRequest) (*StoryViewers, error)
- func (client *Client) GetSuggestedFileName(req *GetSuggestedFileNameRequest) (*Text, error)
- func (client *Client) GetSuggestedStickerSetName(req *GetSuggestedStickerSetNameRequest) (*Text, error)
- func (client *Client) GetSuitableDiscussionChats() (*Chats, error)
- func (client *Client) GetSupergroup(req *GetSupergroupRequest) (*Supergroup, error)
- func (client *Client) GetSupergroupFullInfo(req *GetSupergroupFullInfoRequest) (*SupergroupFullInfo, error)
- func (client *Client) GetSupergroupMembers(req *GetSupergroupMembersRequest) (*ChatMembers, error)
- func (client *Client) GetSupportName() (*Text, error)
- func (client *Client) GetSupportUser() (*User, error)
- func (client *Client) GetTemporaryPasswordState() (*TemporaryPasswordState, error)
- func (client *Client) GetTextEntities(req *GetTextEntitiesRequest) (*TextEntities, error)
- func (client *Client) GetThemeParametersJsonString(req *GetThemeParametersJsonStringRequest) (*Text, error)
- func (client *Client) GetThemedEmojiStatuses() (*EmojiStatuses, error)
- func (client *Client) GetTopChats(req *GetTopChatsRequest) (*Chats, error)
- func (client *Client) GetTrendingStickerSets(req *GetTrendingStickerSetsRequest) (*TrendingStickerSets, error)
- func (client *Client) GetUser(req *GetUserRequest) (*User, error)
- func (client *Client) GetUserFullInfo(req *GetUserFullInfoRequest) (*UserFullInfo, error)
- func (client *Client) GetUserLink() (*UserLink, error)
- func (client *Client) GetUserPrivacySettingRules(req *GetUserPrivacySettingRulesRequest) (*UserPrivacySettingRules, error)
- func (client *Client) GetUserProfilePhotos(req *GetUserProfilePhotosRequest) (*ChatPhotos, error)
- func (client *Client) GetUserSupportInfo(req *GetUserSupportInfoRequest) (*UserSupportInfo, error)
- func (client *Client) GetVideoChatAvailableParticipants(req *GetVideoChatAvailableParticipantsRequest) (*MessageSenders, error)
- func (client *Client) GetVideoChatRtmpUrl(req *GetVideoChatRtmpUrlRequest) (*RtmpUrl, error)
- func (client *Client) GetWebAppLinkUrl(req *GetWebAppLinkUrlRequest) (*HttpUrl, error)
- func (client *Client) GetWebAppUrl(req *GetWebAppUrlRequest) (*HttpUrl, error)
- func (client *Client) GetWebPageInstantView(req *GetWebPageInstantViewRequest) (*WebPageInstantView, error)
- func (client *Client) GetWebPagePreview(req *GetWebPagePreviewRequest) (*WebPage, error)
- func (client *Client) HideSuggestedAction(req *HideSuggestedActionRequest) (*Ok, error)
- func (client *Client) ImportContacts(req *ImportContactsRequest) (*ImportedContacts, error)
- func (client *Client) ImportMessages(req *ImportMessagesRequest) (*Ok, error)
- func (client *Client) InviteGroupCallParticipants(req *InviteGroupCallParticipantsRequest) (*Ok, error)
- func (client *Client) JoinChat(req *JoinChatRequest) (*Ok, error)
- func (client *Client) JoinChatByInviteLink(req *JoinChatByInviteLinkRequest) (*Chat, error)
- func (client *Client) JoinGroupCall(req *JoinGroupCallRequest) (*Text, error)
- func (client *Client) LeaveChat(req *LeaveChatRequest) (*Ok, error)
- func (client *Client) LeaveGroupCall(req *LeaveGroupCallRequest) (*Ok, error)
- func (client *Client) LoadActiveStories(req *LoadActiveStoriesRequest) (*Ok, error)
- func (client *Client) LoadChats(req *LoadChatsRequest) (*Ok, error)
- func (client *Client) LoadGroupCallParticipants(req *LoadGroupCallParticipantsRequest) (*Ok, error)
- func (client *Client) LogOut() (*Ok, error)
- func (client *Client) OpenChat(req *OpenChatRequest) (*Ok, error)
- func (client *Client) OpenMessageContent(req *OpenMessageContentRequest) (*Ok, error)
- func (client *Client) OpenStory(req *OpenStoryRequest) (*Ok, error)
- func (client *Client) OpenWebApp(req *OpenWebAppRequest) (*WebAppInfo, error)
- func (client *Client) OptimizeStorage(req *OptimizeStorageRequest) (*StorageStatistics, error)
- func (client *Client) ParseMarkdown(req *ParseMarkdownRequest) (*FormattedText, error)
- func (client *Client) ParseTextEntities(req *ParseTextEntitiesRequest) (*FormattedText, error)
- func (client *Client) PinChatMessage(req *PinChatMessageRequest) (*Ok, error)
- func (client *Client) PingProxy(req *PingProxyRequest) (*Seconds, error)
- func (client *Client) PreliminaryUploadFile(req *PreliminaryUploadFileRequest) (*File, error)
- func (client *Client) ProcessChatFolderNewChats(req *ProcessChatFolderNewChatsRequest) (*Ok, error)
- func (client *Client) ProcessChatJoinRequest(req *ProcessChatJoinRequestRequest) (*Ok, error)
- func (client *Client) ProcessChatJoinRequests(req *ProcessChatJoinRequestsRequest) (*Ok, error)
- func (client *Client) ProcessPushNotification(req *ProcessPushNotificationRequest) (*Ok, error)
- func (client *Client) RateSpeechRecognition(req *RateSpeechRecognitionRequest) (*Ok, error)
- func (client *Client) ReadAllChatMentions(req *ReadAllChatMentionsRequest) (*Ok, error)
- func (client *Client) ReadAllChatReactions(req *ReadAllChatReactionsRequest) (*Ok, error)
- func (client *Client) ReadAllMessageThreadMentions(req *ReadAllMessageThreadMentionsRequest) (*Ok, error)
- func (client *Client) ReadAllMessageThreadReactions(req *ReadAllMessageThreadReactionsRequest) (*Ok, error)
- func (client *Client) ReadChatList(req *ReadChatListRequest) (*Ok, error)
- func (client *Client) ReadFilePart(req *ReadFilePartRequest) (*FilePart, error)
- func (client *Client) RecognizeSpeech(req *RecognizeSpeechRequest) (*Ok, error)
- func (client *Client) RecoverAuthenticationPassword(req *RecoverAuthenticationPasswordRequest) (*Ok, error)
- func (client *Client) RecoverPassword(req *RecoverPasswordRequest) (*PasswordState, error)
- func (client *Client) RegisterDevice(req *RegisterDeviceRequest) (*PushReceiverId, error)
- func (client *Client) RegisterUser(req *RegisterUserRequest) (*Ok, error)
- func (client *Client) RemoveAllFilesFromDownloads(req *RemoveAllFilesFromDownloadsRequest) (*Ok, error)
- func (client *Client) RemoveBackground(req *RemoveBackgroundRequest) (*Ok, error)
- func (client *Client) RemoveChatActionBar(req *RemoveChatActionBarRequest) (*Ok, error)
- func (client *Client) RemoveContacts(req *RemoveContactsRequest) (*Ok, error)
- func (client *Client) RemoveFavoriteSticker(req *RemoveFavoriteStickerRequest) (*Ok, error)
- func (client *Client) RemoveFileFromDownloads(req *RemoveFileFromDownloadsRequest) (*Ok, error)
- func (client *Client) RemoveMessageReaction(req *RemoveMessageReactionRequest) (*Ok, error)
- func (client *Client) RemoveNotification(req *RemoveNotificationRequest) (*Ok, error)
- func (client *Client) RemoveNotificationGroup(req *RemoveNotificationGroupRequest) (*Ok, error)
- func (client *Client) RemoveProxy(req *RemoveProxyRequest) (*Ok, error)
- func (client *Client) RemoveRecentHashtag(req *RemoveRecentHashtagRequest) (*Ok, error)
- func (client *Client) RemoveRecentSticker(req *RemoveRecentStickerRequest) (*Ok, error)
- func (client *Client) RemoveRecentlyFoundChat(req *RemoveRecentlyFoundChatRequest) (*Ok, error)
- func (client *Client) RemoveSavedAnimation(req *RemoveSavedAnimationRequest) (*Ok, error)
- func (client *Client) RemoveSavedNotificationSound(req *RemoveSavedNotificationSoundRequest) (*Ok, error)
- func (client *Client) RemoveStickerFromSet(req *RemoveStickerFromSetRequest) (*Ok, error)
- func (client *Client) RemoveTopChat(req *RemoveTopChatRequest) (*Ok, error)
- func (client *Client) ReorderActiveUsernames(req *ReorderActiveUsernamesRequest) (*Ok, error)
- func (client *Client) ReorderBotActiveUsernames(req *ReorderBotActiveUsernamesRequest) (*Ok, error)
- func (client *Client) ReorderChatFolders(req *ReorderChatFoldersRequest) (*Ok, error)
- func (client *Client) ReorderInstalledStickerSets(req *ReorderInstalledStickerSetsRequest) (*Ok, error)
- func (client *Client) ReorderSupergroupActiveUsernames(req *ReorderSupergroupActiveUsernamesRequest) (*Ok, error)
- func (client *Client) ReplacePrimaryChatInviteLink(req *ReplacePrimaryChatInviteLinkRequest) (*ChatInviteLink, error)
- func (client *Client) ReplaceVideoChatRtmpUrl(req *ReplaceVideoChatRtmpUrlRequest) (*RtmpUrl, error)
- func (client *Client) ReportChat(req *ReportChatRequest) (*Ok, error)
- func (client *Client) ReportChatPhoto(req *ReportChatPhotoRequest) (*Ok, error)
- func (client *Client) ReportMessageReactions(req *ReportMessageReactionsRequest) (*Ok, error)
- func (client *Client) ReportStory(req *ReportStoryRequest) (*Ok, error)
- func (client *Client) ReportSupergroupAntiSpamFalsePositive(req *ReportSupergroupAntiSpamFalsePositiveRequest) (*Ok, error)
- func (client *Client) ReportSupergroupSpam(req *ReportSupergroupSpamRequest) (*Ok, error)
- func (client *Client) RequestAuthenticationPasswordRecovery() (*Ok, error)
- func (client *Client) RequestPasswordRecovery() (*EmailAddressAuthenticationCodeInfo, error)
- func (client *Client) RequestQrCodeAuthentication(req *RequestQrCodeAuthenticationRequest) (*Ok, error)
- func (client *Client) ResendAuthenticationCode() (*Ok, error)
- func (client *Client) ResendChangePhoneNumberCode() (*AuthenticationCodeInfo, error)
- func (client *Client) ResendEmailAddressVerificationCode() (*EmailAddressAuthenticationCodeInfo, error)
- func (client *Client) ResendLoginEmailAddressCode() (*EmailAddressAuthenticationCodeInfo, error)
- func (client *Client) ResendMessages(req *ResendMessagesRequest) (*Messages, error)
- func (client *Client) ResendPhoneNumberConfirmationCode() (*AuthenticationCodeInfo, error)
- func (client *Client) ResendPhoneNumberVerificationCode() (*AuthenticationCodeInfo, error)
- func (client *Client) ResendRecoveryEmailAddressCode() (*PasswordState, error)
- func (client *Client) ResetAllNotificationSettings() (*Ok, error)
- func (client *Client) ResetAuthenticationEmailAddress() (*Ok, error)
- func (client *Client) ResetBackgrounds() (*Ok, error)
- func (client *Client) ResetNetworkStatistics() (*Ok, error)
- func (client *Client) ResetPassword() (ResetPasswordResult, error)
- func (client *Client) RevokeChatInviteLink(req *RevokeChatInviteLinkRequest) (*ChatInviteLinks, error)
- func (client *Client) RevokeGroupCallInviteLink(req *RevokeGroupCallInviteLinkRequest) (*Ok, error)
- func (client *Client) SaveApplicationLogEvent(req *SaveApplicationLogEventRequest) (*Ok, error)
- func (client *Client) SearchBackground(req *SearchBackgroundRequest) (*Background, error)
- func (client *Client) SearchCallMessages(req *SearchCallMessagesRequest) (*FoundMessages, error)
- func (client *Client) SearchChatMembers(req *SearchChatMembersRequest) (*ChatMembers, error)
- func (client *Client) SearchChatMessages(req *SearchChatMessagesRequest) (*FoundChatMessages, error)
- func (client *Client) SearchChatRecentLocationMessages(req *SearchChatRecentLocationMessagesRequest) (*Messages, error)
- func (client *Client) SearchChats(req *SearchChatsRequest) (*Chats, error)
- func (client *Client) SearchChatsNearby(req *SearchChatsNearbyRequest) (*ChatsNearby, error)
- func (client *Client) SearchChatsOnServer(req *SearchChatsOnServerRequest) (*Chats, error)
- func (client *Client) SearchContacts(req *SearchContactsRequest) (*Users, error)
- func (client *Client) SearchEmojis(req *SearchEmojisRequest) (*Emojis, error)
- func (client *Client) SearchFileDownloads(req *SearchFileDownloadsRequest) (*FoundFileDownloads, error)
- func (client *Client) SearchHashtags(req *SearchHashtagsRequest) (*Hashtags, error)
- func (client *Client) SearchInstalledStickerSets(req *SearchInstalledStickerSetsRequest) (*StickerSets, error)
- func (client *Client) SearchMessages(req *SearchMessagesRequest) (*FoundMessages, error)
- func (client *Client) SearchOutgoingDocumentMessages(req *SearchOutgoingDocumentMessagesRequest) (*FoundMessages, error)
- func (client *Client) SearchPublicChat(req *SearchPublicChatRequest) (*Chat, error)
- func (client *Client) SearchPublicChats(req *SearchPublicChatsRequest) (*Chats, error)
- func (client *Client) SearchRecentlyFoundChats(req *SearchRecentlyFoundChatsRequest) (*Chats, error)
- func (client *Client) SearchSecretMessages(req *SearchSecretMessagesRequest) (*FoundMessages, error)
- func (client *Client) SearchStickerSet(req *SearchStickerSetRequest) (*StickerSet, error)
- func (client *Client) SearchStickerSets(req *SearchStickerSetsRequest) (*StickerSets, error)
- func (client *Client) SearchStickers(req *SearchStickersRequest) (*Stickers, error)
- func (client *Client) SearchStringsByPrefix(req *SearchStringsByPrefixRequest) (*FoundPositions, error)
- func (client *Client) SearchUserByPhoneNumber(req *SearchUserByPhoneNumberRequest) (*User, error)
- func (client *Client) SearchUserByToken(req *SearchUserByTokenRequest) (*User, error)
- func (client *Client) SearchWebApp(req *SearchWebAppRequest) (*FoundWebApp, error)
- func (client *Client) Send(req Request) (*Response, error)
- func (client *Client) SendAuthenticationFirebaseSms(req *SendAuthenticationFirebaseSmsRequest) (*Ok, error)
- func (client *Client) SendBotStartMessage(req *SendBotStartMessageRequest) (*Message, error)
- func (client *Client) SendCallDebugInformation(req *SendCallDebugInformationRequest) (*Ok, error)
- func (client *Client) SendCallLog(req *SendCallLogRequest) (*Ok, error)
- func (client *Client) SendCallRating(req *SendCallRatingRequest) (*Ok, error)
- func (client *Client) SendCallSignalingData(req *SendCallSignalingDataRequest) (*Ok, error)
- func (client *Client) SendChatAction(req *SendChatActionRequest) (*Ok, error)
- func (client *Client) SendChatScreenshotTakenNotification(req *SendChatScreenshotTakenNotificationRequest) (*Ok, error)
- func (client *Client) SendCustomRequest(req *SendCustomRequestRequest) (*CustomRequestResult, error)
- func (client *Client) SendEmailAddressVerificationCode(req *SendEmailAddressVerificationCodeRequest) (*EmailAddressAuthenticationCodeInfo, error)
- func (client *Client) SendInlineQueryResultMessage(req *SendInlineQueryResultMessageRequest) (*Message, error)
- func (client *Client) SendMessage(req *SendMessageRequest) (*Message, error)
- func (client *Client) SendMessageAlbum(req *SendMessageAlbumRequest) (*Messages, error)
- func (client *Client) SendPassportAuthorizationForm(req *SendPassportAuthorizationFormRequest) (*Ok, error)
- func (client *Client) SendPaymentForm(req *SendPaymentFormRequest) (*PaymentResult, error)
- func (client *Client) SendPhoneNumberConfirmationCode(req *SendPhoneNumberConfirmationCodeRequest) (*AuthenticationCodeInfo, error)
- func (client *Client) SendPhoneNumberVerificationCode(req *SendPhoneNumberVerificationCodeRequest) (*AuthenticationCodeInfo, error)
- func (client *Client) SendStory(req *SendStoryRequest) (*Story, error)
- func (client *Client) SendWebAppCustomRequest(req *SendWebAppCustomRequestRequest) (*CustomRequestResult, error)
- func (client *Client) SendWebAppData(req *SendWebAppDataRequest) (*Ok, error)
- func (client *Client) SetAccountTtl(req *SetAccountTtlRequest) (*Ok, error)
- func (client *Client) SetAlarm(req *SetAlarmRequest) (*Ok, error)
- func (client *Client) SetArchiveChatListSettings(req *SetArchiveChatListSettingsRequest) (*Ok, error)
- func (client *Client) SetAuthenticationEmailAddress(req *SetAuthenticationEmailAddressRequest) (*Ok, error)
- func (client *Client) SetAuthenticationPhoneNumber(req *SetAuthenticationPhoneNumberRequest) (*Ok, error)
- func (client *Client) SetAutoDownloadSettings(req *SetAutoDownloadSettingsRequest) (*Ok, error)
- func (client *Client) SetAutosaveSettings(req *SetAutosaveSettingsRequest) (*Ok, error)
- func (client *Client) SetBackground(req *SetBackgroundRequest) (*Background, error)
- func (client *Client) SetBio(req *SetBioRequest) (*Ok, error)
- func (client *Client) SetBotInfoDescription(req *SetBotInfoDescriptionRequest) (*Ok, error)
- func (client *Client) SetBotInfoShortDescription(req *SetBotInfoShortDescriptionRequest) (*Ok, error)
- func (client *Client) SetBotName(req *SetBotNameRequest) (*Ok, error)
- func (client *Client) SetBotProfilePhoto(req *SetBotProfilePhotoRequest) (*Ok, error)
- func (client *Client) SetBotUpdatesStatus(req *SetBotUpdatesStatusRequest) (*Ok, error)
- func (client *Client) SetChatActiveStoriesList(req *SetChatActiveStoriesListRequest) (*Ok, error)
- func (client *Client) SetChatAvailableReactions(req *SetChatAvailableReactionsRequest) (*Ok, error)
- func (client *Client) SetChatBackground(req *SetChatBackgroundRequest) (*Ok, error)
- func (client *Client) SetChatClientData(req *SetChatClientDataRequest) (*Ok, error)
- func (client *Client) SetChatDescription(req *SetChatDescriptionRequest) (*Ok, error)
- func (client *Client) SetChatDiscussionGroup(req *SetChatDiscussionGroupRequest) (*Ok, error)
- func (client *Client) SetChatDraftMessage(req *SetChatDraftMessageRequest) (*Ok, error)
- func (client *Client) SetChatLocation(req *SetChatLocationRequest) (*Ok, error)
- func (client *Client) SetChatMemberStatus(req *SetChatMemberStatusRequest) (*Ok, error)
- func (client *Client) SetChatMessageAutoDeleteTime(req *SetChatMessageAutoDeleteTimeRequest) (*Ok, error)
- func (client *Client) SetChatMessageSender(req *SetChatMessageSenderRequest) (*Ok, error)
- func (client *Client) SetChatNotificationSettings(req *SetChatNotificationSettingsRequest) (*Ok, error)
- func (client *Client) SetChatPermissions(req *SetChatPermissionsRequest) (*Ok, error)
- func (client *Client) SetChatPhoto(req *SetChatPhotoRequest) (*Ok, error)
- func (client *Client) SetChatSlowModeDelay(req *SetChatSlowModeDelayRequest) (*Ok, error)
- func (client *Client) SetChatTheme(req *SetChatThemeRequest) (*Ok, error)
- func (client *Client) SetChatTitle(req *SetChatTitleRequest) (*Ok, error)
- func (client *Client) SetCloseFriends(req *SetCloseFriendsRequest) (*Ok, error)
- func (client *Client) SetCommands(req *SetCommandsRequest) (*Ok, error)
- func (client *Client) SetCustomEmojiStickerSetThumbnail(req *SetCustomEmojiStickerSetThumbnailRequest) (*Ok, error)
- func (client *Client) SetCustomLanguagePack(req *SetCustomLanguagePackRequest) (*Ok, error)
- func (client *Client) SetCustomLanguagePackString(req *SetCustomLanguagePackStringRequest) (*Ok, error)
- func (client *Client) SetDatabaseEncryptionKey(req *SetDatabaseEncryptionKeyRequest) (*Ok, error)
- func (client *Client) SetDefaultChannelAdministratorRights(req *SetDefaultChannelAdministratorRightsRequest) (*Ok, error)
- func (client *Client) SetDefaultGroupAdministratorRights(req *SetDefaultGroupAdministratorRightsRequest) (*Ok, error)
- func (client *Client) SetDefaultMessageAutoDeleteTime(req *SetDefaultMessageAutoDeleteTimeRequest) (*Ok, error)
- func (client *Client) SetDefaultReactionType(req *SetDefaultReactionTypeRequest) (*Ok, error)
- func (client *Client) SetEmojiStatus(req *SetEmojiStatusRequest) (*Ok, error)
- func (client *Client) SetFileGenerationProgress(req *SetFileGenerationProgressRequest) (*Ok, error)
- func (client *Client) SetForumTopicNotificationSettings(req *SetForumTopicNotificationSettingsRequest) (*Ok, error)
- func (client *Client) SetGameScore(req *SetGameScoreRequest) (*Message, error)
- func (client *Client) SetGroupCallParticipantIsSpeaking(req *SetGroupCallParticipantIsSpeakingRequest) (*Ok, error)
- func (client *Client) SetGroupCallParticipantVolumeLevel(req *SetGroupCallParticipantVolumeLevelRequest) (*Ok, error)
- func (client *Client) SetGroupCallTitle(req *SetGroupCallTitleRequest) (*Ok, error)
- func (client *Client) SetInactiveSessionTtl(req *SetInactiveSessionTtlRequest) (*Ok, error)
- func (client *Client) SetInlineGameScore(req *SetInlineGameScoreRequest) (*Ok, error)
- func (client *Client) SetLocation(req *SetLocationRequest) (*Ok, error)
- func (client *Client) SetLogStream(req *SetLogStreamRequest) (*Ok, error)
- func (client *Client) SetLogTagVerbosityLevel(req *SetLogTagVerbosityLevelRequest) (*Ok, error)
- func (client *Client) SetLogVerbosityLevel(req *SetLogVerbosityLevelRequest) (*Ok, error)
- func (client *Client) SetLoginEmailAddress(req *SetLoginEmailAddressRequest) (*EmailAddressAuthenticationCodeInfo, error)
- func (client *Client) SetMenuButton(req *SetMenuButtonRequest) (*Ok, error)
- func (client *Client) SetMessageSenderBlockList(req *SetMessageSenderBlockListRequest) (*Ok, error)
- func (client *Client) SetName(req *SetNameRequest) (*Ok, error)
- func (client *Client) SetNetworkType(req *SetNetworkTypeRequest) (*Ok, error)
- func (client *Client) SetOption(req *SetOptionRequest) (*Ok, error)
- func (client *Client) SetPassportElement(req *SetPassportElementRequest) (PassportElement, error)
- func (client *Client) SetPassportElementErrors(req *SetPassportElementErrorsRequest) (*Ok, error)
- func (client *Client) SetPassword(req *SetPasswordRequest) (*PasswordState, error)
- func (client *Client) SetPinnedChats(req *SetPinnedChatsRequest) (*Ok, error)
- func (client *Client) SetPinnedForumTopics(req *SetPinnedForumTopicsRequest) (*Ok, error)
- func (client *Client) SetPollAnswer(req *SetPollAnswerRequest) (*Ok, error)
- func (client *Client) SetProfilePhoto(req *SetProfilePhotoRequest) (*Ok, error)
- func (client *Client) SetRecoveryEmailAddress(req *SetRecoveryEmailAddressRequest) (*PasswordState, error)
- func (client *Client) SetScopeNotificationSettings(req *SetScopeNotificationSettingsRequest) (*Ok, error)
- func (client *Client) SetStickerEmojis(req *SetStickerEmojisRequest) (*Ok, error)
- func (client *Client) SetStickerKeywords(req *SetStickerKeywordsRequest) (*Ok, error)
- func (client *Client) SetStickerMaskPosition(req *SetStickerMaskPositionRequest) (*Ok, error)
- func (client *Client) SetStickerPositionInSet(req *SetStickerPositionInSetRequest) (*Ok, error)
- func (client *Client) SetStickerSetThumbnail(req *SetStickerSetThumbnailRequest) (*Ok, error)
- func (client *Client) SetStickerSetTitle(req *SetStickerSetTitleRequest) (*Ok, error)
- func (client *Client) SetStoryPrivacySettings(req *SetStoryPrivacySettingsRequest) (*Ok, error)
- func (client *Client) SetStoryReaction(req *SetStoryReactionRequest) (*Ok, error)
- func (client *Client) SetSupergroupStickerSet(req *SetSupergroupStickerSetRequest) (*Ok, error)
- func (client *Client) SetSupergroupUsername(req *SetSupergroupUsernameRequest) (*Ok, error)
- func (client *Client) SetTdlibParameters(req *SetTdlibParametersRequest) (*Ok, error)
- func (client *Client) SetUserPersonalProfilePhoto(req *SetUserPersonalProfilePhotoRequest) (*Ok, error)
- func (client *Client) SetUserPrivacySettingRules(req *SetUserPrivacySettingRulesRequest) (*Ok, error)
- func (client *Client) SetUserSupportInfo(req *SetUserSupportInfoRequest) (*UserSupportInfo, error)
- func (client *Client) SetUsername(req *SetUsernameRequest) (*Ok, error)
- func (client *Client) SetVideoChatDefaultParticipant(req *SetVideoChatDefaultParticipantRequest) (*Ok, error)
- func (client *Client) ShareChatWithBot(req *ShareChatWithBotRequest) (*Ok, error)
- func (client *Client) SharePhoneNumber(req *SharePhoneNumberRequest) (*Ok, error)
- func (client *Client) ShareUserWithBot(req *ShareUserWithBotRequest) (*Ok, error)
- func (client *Client) StartGroupCallRecording(req *StartGroupCallRecordingRequest) (*Ok, error)
- func (client *Client) StartGroupCallScreenSharing(req *StartGroupCallScreenSharingRequest) (*Text, error)
- func (client *Client) StartScheduledGroupCall(req *StartScheduledGroupCallRequest) (*Ok, error)
- func (client *Client) Stop()
- func (client *Client) StopPoll(req *StopPollRequest) (*Ok, error)
- func (client *Client) SuggestUserProfilePhoto(req *SuggestUserProfilePhotoRequest) (*Ok, error)
- func (client *Client) SynchronizeLanguagePack(req *SynchronizeLanguagePackRequest) (*Ok, error)
- func (client *Client) TerminateAllOtherSessions() (*Ok, error)
- func (client *Client) TerminateSession(req *TerminateSessionRequest) (*Ok, error)
- func (client *Client) TestCallBytes(req *TestCallBytesRequest) (*TestBytes, error)
- func (client *Client) TestCallEmpty() (*Ok, error)
- func (client *Client) TestCallString(req *TestCallStringRequest) (*TestString, error)
- func (client *Client) TestCallVectorInt(req *TestCallVectorIntRequest) (*TestVectorInt, error)
- func (client *Client) TestCallVectorIntObject(req *TestCallVectorIntObjectRequest) (*TestVectorIntObject, error)
- func (client *Client) TestCallVectorString(req *TestCallVectorStringRequest) (*TestVectorString, error)
- func (client *Client) TestCallVectorStringObject(req *TestCallVectorStringObjectRequest) (*TestVectorStringObject, error)
- func (client *Client) TestGetDifference() (*Ok, error)
- func (client *Client) TestNetwork() (*Ok, error)
- func (client *Client) TestProxy(req *TestProxyRequest) (*Ok, error)
- func (client *Client) TestReturnError(req *TestReturnErrorRequest) (*Error, error)
- func (client *Client) TestSquareInt(req *TestSquareIntRequest) (*TestInt, error)
- func (client *Client) TestUseUpdate() (Update, error)
- func (client *Client) ToggleAllDownloadsArePaused(req *ToggleAllDownloadsArePausedRequest) (*Ok, error)
- func (client *Client) ToggleBotIsAddedToAttachmentMenu(req *ToggleBotIsAddedToAttachmentMenuRequest) (*Ok, error)
- func (client *Client) ToggleBotUsernameIsActive(req *ToggleBotUsernameIsActiveRequest) (*Ok, error)
- func (client *Client) ToggleChatDefaultDisableNotification(req *ToggleChatDefaultDisableNotificationRequest) (*Ok, error)
- func (client *Client) ToggleChatHasProtectedContent(req *ToggleChatHasProtectedContentRequest) (*Ok, error)
- func (client *Client) ToggleChatIsMarkedAsUnread(req *ToggleChatIsMarkedAsUnreadRequest) (*Ok, error)
- func (client *Client) ToggleChatIsPinned(req *ToggleChatIsPinnedRequest) (*Ok, error)
- func (client *Client) ToggleChatIsTranslatable(req *ToggleChatIsTranslatableRequest) (*Ok, error)
- func (client *Client) ToggleDownloadIsPaused(req *ToggleDownloadIsPausedRequest) (*Ok, error)
- func (client *Client) ToggleForumTopicIsClosed(req *ToggleForumTopicIsClosedRequest) (*Ok, error)
- func (client *Client) ToggleForumTopicIsPinned(req *ToggleForumTopicIsPinnedRequest) (*Ok, error)
- func (client *Client) ToggleGeneralForumTopicIsHidden(req *ToggleGeneralForumTopicIsHiddenRequest) (*Ok, error)
- func (client *Client) ToggleGroupCallEnabledStartNotification(req *ToggleGroupCallEnabledStartNotificationRequest) (*Ok, error)
- func (client *Client) ToggleGroupCallIsMyVideoEnabled(req *ToggleGroupCallIsMyVideoEnabledRequest) (*Ok, error)
- func (client *Client) ToggleGroupCallIsMyVideoPaused(req *ToggleGroupCallIsMyVideoPausedRequest) (*Ok, error)
- func (client *Client) ToggleGroupCallMuteNewParticipants(req *ToggleGroupCallMuteNewParticipantsRequest) (*Ok, error)
- func (client *Client) ToggleGroupCallParticipantIsHandRaised(req *ToggleGroupCallParticipantIsHandRaisedRequest) (*Ok, error)
- func (client *Client) ToggleGroupCallParticipantIsMuted(req *ToggleGroupCallParticipantIsMutedRequest) (*Ok, error)
- func (client *Client) ToggleGroupCallScreenSharingIsPaused(req *ToggleGroupCallScreenSharingIsPausedRequest) (*Ok, error)
- func (client *Client) ToggleSessionCanAcceptCalls(req *ToggleSessionCanAcceptCallsRequest) (*Ok, error)
- func (client *Client) ToggleSessionCanAcceptSecretChats(req *ToggleSessionCanAcceptSecretChatsRequest) (*Ok, error)
- func (client *Client) ToggleStoryIsPinned(req *ToggleStoryIsPinnedRequest) (*Ok, error)
- func (client *Client) ToggleSupergroupHasAggressiveAntiSpamEnabled(req *ToggleSupergroupHasAggressiveAntiSpamEnabledRequest) (*Ok, error)
- func (client *Client) ToggleSupergroupHasHiddenMembers(req *ToggleSupergroupHasHiddenMembersRequest) (*Ok, error)
- func (client *Client) ToggleSupergroupIsAllHistoryAvailable(req *ToggleSupergroupIsAllHistoryAvailableRequest) (*Ok, error)
- func (client *Client) ToggleSupergroupIsBroadcastGroup(req *ToggleSupergroupIsBroadcastGroupRequest) (*Ok, error)
- func (client *Client) ToggleSupergroupIsForum(req *ToggleSupergroupIsForumRequest) (*Ok, error)
- func (client *Client) ToggleSupergroupJoinByRequest(req *ToggleSupergroupJoinByRequestRequest) (*Ok, error)
- func (client *Client) ToggleSupergroupJoinToSendMessages(req *ToggleSupergroupJoinToSendMessagesRequest) (*Ok, error)
- func (client *Client) ToggleSupergroupSignMessages(req *ToggleSupergroupSignMessagesRequest) (*Ok, error)
- func (client *Client) ToggleSupergroupUsernameIsActive(req *ToggleSupergroupUsernameIsActiveRequest) (*Ok, error)
- func (client *Client) ToggleUsernameIsActive(req *ToggleUsernameIsActiveRequest) (*Ok, error)
- func (client *Client) TransferChatOwnership(req *TransferChatOwnershipRequest) (*Ok, error)
- func (client *Client) TranslateMessageText(req *TranslateMessageTextRequest) (*FormattedText, error)
- func (client *Client) TranslateText(req *TranslateTextRequest) (*FormattedText, error)
- func (client *Client) UnpinAllChatMessages(req *UnpinAllChatMessagesRequest) (*Ok, error)
- func (client *Client) UnpinAllMessageThreadMessages(req *UnpinAllMessageThreadMessagesRequest) (*Ok, error)
- func (client *Client) UnpinChatMessage(req *UnpinChatMessageRequest) (*Ok, error)
- func (client *Client) UpgradeBasicGroupChatToSupergroupChat(req *UpgradeBasicGroupChatToSupergroupChatRequest) (*Chat, error)
- func (client *Client) UploadStickerFile(req *UploadStickerFileRequest) (*File, error)
- func (client *Client) ValidateOrderInfo(req *ValidateOrderInfoRequest) (*ValidatedOrderInfo, error)
- func (client *Client) ViewMessages(req *ViewMessagesRequest) (*Ok, error)
- func (client *Client) ViewPremiumFeature(req *ViewPremiumFeatureRequest) (*Ok, error)
- func (client *Client) ViewTrendingStickerSets(req *ViewTrendingStickerSetsRequest) (*Ok, error)
- func (client *Client) WriteGeneratedFilePart(req *WriteGeneratedFilePartRequest) (*Ok, error)
- type CloseChatRequest
- type CloseSecretChatRequest
- type CloseStoryRequest
- type CloseWebAppRequest
- type ClosedVectorPath
- type ConfirmQrCodeAuthenticationRequest
- type ConfirmSessionRequest
- type ConnectedWebsite
- type ConnectedWebsites
- type ConnectionState
- type ConnectionStateConnecting
- type ConnectionStateConnectingToProxy
- type ConnectionStateReady
- type ConnectionStateUpdating
- type ConnectionStateWaitingForNetwork
- type Contact
- type Count
- type Countries
- type CountryInfo
- type CreateBasicGroupChatRequest
- type CreateCallRequest
- type CreateChatFolderInviteLinkRequest
- type CreateChatFolderRequest
- type CreateChatInviteLinkRequest
- type CreateForumTopicRequest
- type CreateInvoiceLinkRequest
- type CreateNewBasicGroupChatRequest
- type CreateNewSecretChatRequest
- type CreateNewStickerSetRequest
- type CreateNewSupergroupChatRequest
- type CreatePrivateChatRequest
- type CreateSecretChatRequest
- type CreateSupergroupChatRequest
- type CreateTemporaryPasswordRequest
- type CreateVideoChatRequest
- type CustomRequestResult
- type DatabaseStatistics
- type Date
- type DateRange
- type DatedFile
- type DeepLinkInfo
- type DeleteAccountRequest
- type DeleteAllCallMessagesRequest
- type DeleteAllRevokedChatInviteLinksRequest
- type DeleteChatFolderInviteLinkRequest
- type DeleteChatFolderRequest
- type DeleteChatHistoryRequest
- type DeleteChatMessagesByDateRequest
- type DeleteChatMessagesBySenderRequest
- type DeleteChatReplyMarkupRequest
- type DeleteChatRequest
- type DeleteCommandsRequest
- type DeleteFileRequest
- type DeleteForumTopicRequest
- type DeleteLanguagePackRequest
- type DeleteMessagesRequest
- type DeletePassportElementRequest
- type DeleteProfilePhotoRequest
- type DeleteRevokedChatInviteLinkRequest
- type DeleteStickerSetRequest
- type DeleteStoryRequest
- type DeviceToken
- type DeviceTokenApplePush
- type DeviceTokenApplePushVoIP
- type DeviceTokenBlackBerryPush
- type DeviceTokenFirebaseCloudMessaging
- type DeviceTokenHuaweiPush
- type DeviceTokenMicrosoftPush
- type DeviceTokenMicrosoftPushVoIP
- type DeviceTokenSimplePush
- type DeviceTokenTizenPush
- type DeviceTokenUbuntuPush
- type DeviceTokenWebPush
- type DeviceTokenWindowsPush
- type DiceStickers
- type DiceStickersRegular
- type DiceStickersSlotMachine
- type DisableAllSupergroupUsernamesRequest
- type DiscardCallRequest
- type DisconnectWebsiteRequest
- type Document
- type DownloadFileRequest
- type DownloadedFileCounts
- type DraftMessage
- type EditChatFolderInviteLinkRequest
- type EditChatFolderRequest
- type EditChatInviteLinkRequest
- type EditCustomLanguagePackInfoRequest
- type EditForumTopicRequest
- type EditInlineMessageCaptionRequest
- type EditInlineMessageLiveLocationRequest
- type EditInlineMessageMediaRequest
- type EditInlineMessageReplyMarkupRequest
- type EditInlineMessageTextRequest
- type EditMessageCaptionRequest
- type EditMessageLiveLocationRequest
- type EditMessageMediaRequest
- type EditMessageReplyMarkupRequest
- type EditMessageSchedulingStateRequest
- type EditMessageTextRequest
- type EditProxyRequest
- type EditStoryRequest
- type EmailAddressAuthentication
- type EmailAddressAuthenticationAppleId
- type EmailAddressAuthenticationCode
- type EmailAddressAuthenticationCodeInfo
- type EmailAddressAuthenticationGoogleId
- type EmailAddressResetState
- type EmailAddressResetStateAvailable
- type EmailAddressResetStatePending
- type EmojiCategories
- type EmojiCategory
- type EmojiCategoryType
- type EmojiCategoryTypeChatPhoto
- type EmojiCategoryTypeDefault
- type EmojiCategoryTypeEmojiStatus
- type EmojiReaction
- type EmojiStatus
- type EmojiStatuses
- type Emojis
- type EnableProxyRequest
- type EncryptedCredentials
- type EncryptedPassportElement
- type EndGroupCallRecordingRequest
- type EndGroupCallRequest
- type EndGroupCallScreenSharingRequest
- type Error
- type ExtraGenerator
- type File
- type FileDownload
- type FileDownloadedPrefixSize
- type FilePart
- type FileType
- type FileTypeAnimation
- type FileTypeAudio
- type FileTypeDocument
- type FileTypeNone
- type FileTypeNotificationSound
- type FileTypePhoto
- type FileTypePhotoStory
- type FileTypeProfilePhoto
- type FileTypeSecret
- type FileTypeSecretThumbnail
- type FileTypeSecure
- type FileTypeSticker
- type FileTypeThumbnail
- type FileTypeUnknown
- type FileTypeVideo
- type FileTypeVideoNote
- type FileTypeVideoStory
- type FileTypeVoiceNote
- type FileTypeWallpaper
- type FinishFileGenerationRequest
- type FirebaseAuthenticationSettings
- type FirebaseAuthenticationSettingsAndroid
- type FirebaseAuthenticationSettingsIos
- type FormattedText
- type ForumTopic
- type ForumTopicIcon
- type ForumTopicInfo
- type ForumTopics
- type ForwardMessagesRequest
- type FoundChatMessages
- type FoundFileDownloads
- type FoundMessages
- type FoundPositions
- type FoundWebApp
- type Game
- type GameHighScore
- type GameHighScores
- type GetAllPassportElementsRequest
- type GetAllStickerEmojisRequest
- type GetAnimatedEmojiRequest
- type GetArchivedStickerSetsRequest
- type GetArchivedStoriesRequest
- type GetAttachedStickerSetsRequest
- type GetAttachmentMenuBotRequest
- type GetBackgroundUrlRequest
- type GetBackgroundsRequest
- type GetBankCardInfoRequest
- type GetBasicGroupFullInfoRequest
- type GetBasicGroupRequest
- type GetBlockedMessageSendersRequest
- type GetBotInfoDescriptionRequest
- type GetBotInfoShortDescriptionRequest
- type GetBotNameRequest
- type GetCallbackQueryAnswerRequest
- type GetCallbackQueryMessageRequest
- type GetChatActiveStoriesRequest
- type GetChatAdministratorsRequest
- type GetChatAvailableMessageSendersRequest
- type GetChatEventLogRequest
- type GetChatFolderChatCountRequest
- type GetChatFolderChatsToLeaveRequest
- type GetChatFolderDefaultIconNameRequest
- type GetChatFolderInviteLinksRequest
- type GetChatFolderNewChatsRequest
- type GetChatFolderRequest
- type GetChatHistoryRequest
- type GetChatInviteLinkCountsRequest
- type GetChatInviteLinkMembersRequest
- type GetChatInviteLinkRequest
- type GetChatInviteLinksRequest
- type GetChatJoinRequestsRequest
- type GetChatListsToAddChatRequest
- type GetChatMemberRequest
- type GetChatMessageByDateRequest
- type GetChatMessageCalendarRequest
- type GetChatMessageCountRequest
- type GetChatMessagePositionRequest
- type GetChatNotificationSettingsExceptionsRequest
- type GetChatPinnedMessageRequest
- type GetChatPinnedStoriesRequest
- type GetChatRequest
- type GetChatScheduledMessagesRequest
- type GetChatSparseMessagePositionsRequest
- type GetChatSponsoredMessagesRequest
- type GetChatStatisticsRequest
- type GetChatsForChatFolderInviteLinkRequest
- type GetChatsRequest
- type GetCommandsRequest
- type GetCreatedPublicChatsRequest
- type GetCustomEmojiStickersRequest
- type GetDeepLinkInfoRequest
- type GetEmojiCategoriesRequest
- type GetEmojiReactionRequest
- type GetEmojiSuggestionsUrlRequest
- type GetExternalLinkInfoRequest
- type GetExternalLinkRequest
- type GetFileDownloadedPrefixSizeRequest
- type GetFileExtensionRequest
- type GetFileMimeTypeRequest
- type GetFileRequest
- type GetForumTopicLinkRequest
- type GetForumTopicRequest
- type GetForumTopicsRequest
- type GetGameHighScoresRequest
- type GetGroupCallInviteLinkRequest
- type GetGroupCallRequest
- type GetGroupCallStreamSegmentRequest
- type GetGroupCallStreamsRequest
- type GetGroupsInCommonRequest
- type GetInlineGameHighScoresRequest
- type GetInlineQueryResultsRequest
- type GetInstalledStickerSetsRequest
- type GetInternalLinkRequest
- type GetInternalLinkTypeRequest
- type GetJsonStringRequest
- type GetJsonValueRequest
- type GetLanguagePackInfoRequest
- type GetLanguagePackStringRequest
- type GetLanguagePackStringsRequest
- type GetLocalizationTargetInfoRequest
- type GetLogTagVerbosityLevelRequest
- type GetLoginUrlInfoRequest
- type GetLoginUrlRequest
- type GetMapThumbnailFileRequest
- type GetMarkdownTextRequest
- type GetMenuButtonRequest
- type GetMessageAddedReactionsRequest
- type GetMessageAvailableReactionsRequest
- type GetMessageEmbeddingCodeRequest
- type GetMessageFileTypeRequest
- type GetMessageImportConfirmationTextRequest
- type GetMessageLinkInfoRequest
- type GetMessageLinkRequest
- type GetMessageLocallyRequest
- type GetMessagePublicForwardsRequest
- type GetMessageRequest
- type GetMessageStatisticsRequest
- type GetMessageThreadHistoryRequest
- type GetMessageThreadRequest
- type GetMessageViewersRequest
- type GetMessagesRequest
- type GetNetworkStatisticsRequest
- type GetOptionRequest
- type GetPassportAuthorizationFormAvailableElementsRequest
- type GetPassportAuthorizationFormRequest
- type GetPassportElementRequest
- type GetPaymentFormRequest
- type GetPaymentReceiptRequest
- type GetPhoneNumberInfoRequest
- type GetPhoneNumberInfoSyncRequest
- type GetPollVotersRequest
- type GetPreferredCountryLanguageRequest
- type GetPremiumFeaturesRequest
- type GetPremiumLimitRequest
- type GetPremiumStickersRequest
- type GetProxyLinkRequest
- type GetPushReceiverIdRequest
- type GetRecentStickersRequest
- type GetRecentlyOpenedChatsRequest
- type GetRecentlyVisitedTMeUrlsRequest
- type GetRecoveryEmailAddressRequest
- type GetRemoteFileRequest
- type GetRepliedMessageRequest
- type GetSavedNotificationSoundRequest
- type GetScopeNotificationSettingsRequest
- type GetSecretChatRequest
- type GetStatisticalGraphRequest
- type GetStickerEmojisRequest
- type GetStickerSetRequest
- type GetStickersRequest
- type GetStorageStatisticsRequest
- type GetStoryAvailableReactionsRequest
- type GetStoryRequest
- type GetStoryViewersRequest
- type GetSuggestedFileNameRequest
- type GetSuggestedStickerSetNameRequest
- type GetSupergroupFullInfoRequest
- type GetSupergroupMembersRequest
- type GetSupergroupRequest
- type GetTextEntitiesRequest
- type GetThemeParametersJsonStringRequest
- type GetTopChatsRequest
- type GetTrendingStickerSetsRequest
- type GetUserFullInfoRequest
- type GetUserPrivacySettingRulesRequest
- type GetUserProfilePhotosRequest
- type GetUserRequest
- type GetUserSupportInfoRequest
- type GetVideoChatAvailableParticipantsRequest
- type GetVideoChatRtmpUrlRequest
- type GetWebAppLinkUrlRequest
- type GetWebAppUrlRequest
- type GetWebPageInstantViewRequest
- type GetWebPagePreviewRequest
- type GroupCall
- type GroupCallId
- type GroupCallParticipant
- type GroupCallParticipantVideoInfo
- type GroupCallRecentSpeaker
- type GroupCallStream
- type GroupCallStreams
- type GroupCallVideoQuality
- type GroupCallVideoQualityFull
- type GroupCallVideoQualityMedium
- type GroupCallVideoQualityThumbnail
- type GroupCallVideoSourceGroup
- type Hashtags
- type HideSuggestedActionRequest
- type HttpUrl
- type IdentityDocument
- type ImportContactsRequest
- type ImportMessagesRequest
- type ImportedContacts
- type InlineKeyboardButton
- type InlineKeyboardButtonType
- type InlineKeyboardButtonTypeBuy
- type InlineKeyboardButtonTypeCallback
- type InlineKeyboardButtonTypeCallbackGame
- type InlineKeyboardButtonTypeCallbackWithPassword
- func (*InlineKeyboardButtonTypeCallbackWithPassword) GetClass() string
- func (*InlineKeyboardButtonTypeCallbackWithPassword) GetType() string
- func (*InlineKeyboardButtonTypeCallbackWithPassword) InlineKeyboardButtonTypeType() string
- func (entity *InlineKeyboardButtonTypeCallbackWithPassword) MarshalJSON() ([]byte, error)
- type InlineKeyboardButtonTypeLoginUrl
- type InlineKeyboardButtonTypeSwitchInline
- func (*InlineKeyboardButtonTypeSwitchInline) GetClass() string
- func (*InlineKeyboardButtonTypeSwitchInline) GetType() string
- func (*InlineKeyboardButtonTypeSwitchInline) InlineKeyboardButtonTypeType() string
- func (entity *InlineKeyboardButtonTypeSwitchInline) MarshalJSON() ([]byte, error)
- func (inlineKeyboardButtonTypeSwitchInline *InlineKeyboardButtonTypeSwitchInline) UnmarshalJSON(data []byte) error
- type InlineKeyboardButtonTypeUrl
- type InlineKeyboardButtonTypeUser
- type InlineKeyboardButtonTypeWebApp
- type InlineQueryResult
- type InlineQueryResultAnimation
- type InlineQueryResultArticle
- type InlineQueryResultAudio
- type InlineQueryResultContact
- type InlineQueryResultDocument
- type InlineQueryResultGame
- type InlineQueryResultLocation
- type InlineQueryResultPhoto
- type InlineQueryResultSticker
- type InlineQueryResultVenue
- type InlineQueryResultVideo
- type InlineQueryResultVoiceNote
- type InlineQueryResults
- type InlineQueryResultsButton
- type InlineQueryResultsButtonType
- type InlineQueryResultsButtonTypeStartBot
- type InlineQueryResultsButtonTypeWebApp
- type InputBackground
- type InputBackgroundLocal
- type InputBackgroundPrevious
- type InputBackgroundRemote
- type InputChatPhoto
- type InputChatPhotoAnimation
- func (*InputChatPhotoAnimation) GetClass() string
- func (*InputChatPhotoAnimation) GetType() string
- func (*InputChatPhotoAnimation) InputChatPhotoType() string
- func (entity *InputChatPhotoAnimation) MarshalJSON() ([]byte, error)
- func (inputChatPhotoAnimation *InputChatPhotoAnimation) UnmarshalJSON(data []byte) error
- type InputChatPhotoPrevious
- type InputChatPhotoStatic
- type InputChatPhotoSticker
- type InputCredentials
- type InputCredentialsApplePay
- type InputCredentialsGooglePay
- type InputCredentialsNew
- type InputCredentialsSaved
- type InputFile
- type InputFileGenerated
- type InputFileId
- type InputFileLocal
- type InputFileRemote
- type InputIdentityDocument
- type InputInlineQueryResult
- type InputInlineQueryResultAnimation
- func (*InputInlineQueryResultAnimation) GetClass() string
- func (*InputInlineQueryResultAnimation) GetType() string
- func (*InputInlineQueryResultAnimation) InputInlineQueryResultType() string
- func (entity *InputInlineQueryResultAnimation) MarshalJSON() ([]byte, error)
- func (inputInlineQueryResultAnimation *InputInlineQueryResultAnimation) UnmarshalJSON(data []byte) error
- type InputInlineQueryResultArticle
- func (*InputInlineQueryResultArticle) GetClass() string
- func (*InputInlineQueryResultArticle) GetType() string
- func (*InputInlineQueryResultArticle) InputInlineQueryResultType() string
- func (entity *InputInlineQueryResultArticle) MarshalJSON() ([]byte, error)
- func (inputInlineQueryResultArticle *InputInlineQueryResultArticle) UnmarshalJSON(data []byte) error
- type InputInlineQueryResultAudio
- func (*InputInlineQueryResultAudio) GetClass() string
- func (*InputInlineQueryResultAudio) GetType() string
- func (*InputInlineQueryResultAudio) InputInlineQueryResultType() string
- func (entity *InputInlineQueryResultAudio) MarshalJSON() ([]byte, error)
- func (inputInlineQueryResultAudio *InputInlineQueryResultAudio) UnmarshalJSON(data []byte) error
- type InputInlineQueryResultContact
- func (*InputInlineQueryResultContact) GetClass() string
- func (*InputInlineQueryResultContact) GetType() string
- func (*InputInlineQueryResultContact) InputInlineQueryResultType() string
- func (entity *InputInlineQueryResultContact) MarshalJSON() ([]byte, error)
- func (inputInlineQueryResultContact *InputInlineQueryResultContact) UnmarshalJSON(data []byte) error
- type InputInlineQueryResultDocument
- func (*InputInlineQueryResultDocument) GetClass() string
- func (*InputInlineQueryResultDocument) GetType() string
- func (*InputInlineQueryResultDocument) InputInlineQueryResultType() string
- func (entity *InputInlineQueryResultDocument) MarshalJSON() ([]byte, error)
- func (inputInlineQueryResultDocument *InputInlineQueryResultDocument) UnmarshalJSON(data []byte) error
- type InputInlineQueryResultGame
- func (*InputInlineQueryResultGame) GetClass() string
- func (*InputInlineQueryResultGame) GetType() string
- func (*InputInlineQueryResultGame) InputInlineQueryResultType() string
- func (entity *InputInlineQueryResultGame) MarshalJSON() ([]byte, error)
- func (inputInlineQueryResultGame *InputInlineQueryResultGame) UnmarshalJSON(data []byte) error
- type InputInlineQueryResultLocation
- func (*InputInlineQueryResultLocation) GetClass() string
- func (*InputInlineQueryResultLocation) GetType() string
- func (*InputInlineQueryResultLocation) InputInlineQueryResultType() string
- func (entity *InputInlineQueryResultLocation) MarshalJSON() ([]byte, error)
- func (inputInlineQueryResultLocation *InputInlineQueryResultLocation) UnmarshalJSON(data []byte) error
- type InputInlineQueryResultPhoto
- func (*InputInlineQueryResultPhoto) GetClass() string
- func (*InputInlineQueryResultPhoto) GetType() string
- func (*InputInlineQueryResultPhoto) InputInlineQueryResultType() string
- func (entity *InputInlineQueryResultPhoto) MarshalJSON() ([]byte, error)
- func (inputInlineQueryResultPhoto *InputInlineQueryResultPhoto) UnmarshalJSON(data []byte) error
- type InputInlineQueryResultSticker
- func (*InputInlineQueryResultSticker) GetClass() string
- func (*InputInlineQueryResultSticker) GetType() string
- func (*InputInlineQueryResultSticker) InputInlineQueryResultType() string
- func (entity *InputInlineQueryResultSticker) MarshalJSON() ([]byte, error)
- func (inputInlineQueryResultSticker *InputInlineQueryResultSticker) UnmarshalJSON(data []byte) error
- type InputInlineQueryResultVenue
- func (*InputInlineQueryResultVenue) GetClass() string
- func (*InputInlineQueryResultVenue) GetType() string
- func (*InputInlineQueryResultVenue) InputInlineQueryResultType() string
- func (entity *InputInlineQueryResultVenue) MarshalJSON() ([]byte, error)
- func (inputInlineQueryResultVenue *InputInlineQueryResultVenue) UnmarshalJSON(data []byte) error
- type InputInlineQueryResultVideo
- func (*InputInlineQueryResultVideo) GetClass() string
- func (*InputInlineQueryResultVideo) GetType() string
- func (*InputInlineQueryResultVideo) InputInlineQueryResultType() string
- func (entity *InputInlineQueryResultVideo) MarshalJSON() ([]byte, error)
- func (inputInlineQueryResultVideo *InputInlineQueryResultVideo) UnmarshalJSON(data []byte) error
- type InputInlineQueryResultVoiceNote
- func (*InputInlineQueryResultVoiceNote) GetClass() string
- func (*InputInlineQueryResultVoiceNote) GetType() string
- func (*InputInlineQueryResultVoiceNote) InputInlineQueryResultType() string
- func (entity *InputInlineQueryResultVoiceNote) MarshalJSON() ([]byte, error)
- func (inputInlineQueryResultVoiceNote *InputInlineQueryResultVoiceNote) UnmarshalJSON(data []byte) error
- type InputInvoice
- type InputInvoiceMessage
- type InputInvoiceName
- type InputMessageAnimation
- func (*InputMessageAnimation) GetClass() string
- func (*InputMessageAnimation) GetType() string
- func (*InputMessageAnimation) InputMessageContentType() string
- func (entity *InputMessageAnimation) MarshalJSON() ([]byte, error)
- func (inputMessageAnimation *InputMessageAnimation) UnmarshalJSON(data []byte) error
- type InputMessageAudio
- type InputMessageContact
- type InputMessageContent
- type InputMessageDice
- type InputMessageDocument
- func (*InputMessageDocument) GetClass() string
- func (*InputMessageDocument) GetType() string
- func (*InputMessageDocument) InputMessageContentType() string
- func (entity *InputMessageDocument) MarshalJSON() ([]byte, error)
- func (inputMessageDocument *InputMessageDocument) UnmarshalJSON(data []byte) error
- type InputMessageForwarded
- type InputMessageGame
- type InputMessageInvoice
- type InputMessageLocation
- type InputMessagePhoto
- type InputMessagePoll
- type InputMessageSticker
- type InputMessageStory
- type InputMessageText
- type InputMessageVenue
- type InputMessageVideo
- type InputMessageVideoNote
- func (*InputMessageVideoNote) GetClass() string
- func (*InputMessageVideoNote) GetType() string
- func (*InputMessageVideoNote) InputMessageContentType() string
- func (entity *InputMessageVideoNote) MarshalJSON() ([]byte, error)
- func (inputMessageVideoNote *InputMessageVideoNote) UnmarshalJSON(data []byte) error
- type InputMessageVoiceNote
- func (*InputMessageVoiceNote) GetClass() string
- func (*InputMessageVoiceNote) GetType() string
- func (*InputMessageVoiceNote) InputMessageContentType() string
- func (entity *InputMessageVoiceNote) MarshalJSON() ([]byte, error)
- func (inputMessageVoiceNote *InputMessageVoiceNote) UnmarshalJSON(data []byte) error
- type InputPassportElement
- type InputPassportElementAddress
- type InputPassportElementBankStatement
- type InputPassportElementDriverLicense
- type InputPassportElementEmailAddress
- type InputPassportElementError
- type InputPassportElementErrorSource
- type InputPassportElementErrorSourceDataField
- func (*InputPassportElementErrorSourceDataField) GetClass() string
- func (*InputPassportElementErrorSourceDataField) GetType() string
- func (*InputPassportElementErrorSourceDataField) InputPassportElementErrorSourceType() string
- func (entity *InputPassportElementErrorSourceDataField) MarshalJSON() ([]byte, error)
- type InputPassportElementErrorSourceFile
- type InputPassportElementErrorSourceFiles
- type InputPassportElementErrorSourceFrontSide
- func (*InputPassportElementErrorSourceFrontSide) GetClass() string
- func (*InputPassportElementErrorSourceFrontSide) GetType() string
- func (*InputPassportElementErrorSourceFrontSide) InputPassportElementErrorSourceType() string
- func (entity *InputPassportElementErrorSourceFrontSide) MarshalJSON() ([]byte, error)
- type InputPassportElementErrorSourceReverseSide
- func (*InputPassportElementErrorSourceReverseSide) GetClass() string
- func (*InputPassportElementErrorSourceReverseSide) GetType() string
- func (*InputPassportElementErrorSourceReverseSide) InputPassportElementErrorSourceType() string
- func (entity *InputPassportElementErrorSourceReverseSide) MarshalJSON() ([]byte, error)
- type InputPassportElementErrorSourceSelfie
- func (*InputPassportElementErrorSourceSelfie) GetClass() string
- func (*InputPassportElementErrorSourceSelfie) GetType() string
- func (*InputPassportElementErrorSourceSelfie) InputPassportElementErrorSourceType() string
- func (entity *InputPassportElementErrorSourceSelfie) MarshalJSON() ([]byte, error)
- type InputPassportElementErrorSourceTranslationFile
- func (*InputPassportElementErrorSourceTranslationFile) GetClass() string
- func (*InputPassportElementErrorSourceTranslationFile) GetType() string
- func (*InputPassportElementErrorSourceTranslationFile) InputPassportElementErrorSourceType() string
- func (entity *InputPassportElementErrorSourceTranslationFile) MarshalJSON() ([]byte, error)
- type InputPassportElementErrorSourceTranslationFiles
- func (*InputPassportElementErrorSourceTranslationFiles) GetClass() string
- func (*InputPassportElementErrorSourceTranslationFiles) GetType() string
- func (*InputPassportElementErrorSourceTranslationFiles) InputPassportElementErrorSourceType() string
- func (entity *InputPassportElementErrorSourceTranslationFiles) MarshalJSON() ([]byte, error)
- type InputPassportElementErrorSourceUnspecified
- func (*InputPassportElementErrorSourceUnspecified) GetClass() string
- func (*InputPassportElementErrorSourceUnspecified) GetType() string
- func (*InputPassportElementErrorSourceUnspecified) InputPassportElementErrorSourceType() string
- func (entity *InputPassportElementErrorSourceUnspecified) MarshalJSON() ([]byte, error)
- type InputPassportElementIdentityCard
- type InputPassportElementInternalPassport
- type InputPassportElementPassport
- type InputPassportElementPassportRegistration
- func (*InputPassportElementPassportRegistration) GetClass() string
- func (*InputPassportElementPassportRegistration) GetType() string
- func (*InputPassportElementPassportRegistration) InputPassportElementType() string
- func (entity *InputPassportElementPassportRegistration) MarshalJSON() ([]byte, error)
- type InputPassportElementPersonalDetails
- type InputPassportElementPhoneNumber
- type InputPassportElementRentalAgreement
- type InputPassportElementTemporaryRegistration
- func (*InputPassportElementTemporaryRegistration) GetClass() string
- func (*InputPassportElementTemporaryRegistration) GetType() string
- func (*InputPassportElementTemporaryRegistration) InputPassportElementType() string
- func (entity *InputPassportElementTemporaryRegistration) MarshalJSON() ([]byte, error)
- type InputPassportElementUtilityBill
- type InputPersonalDocument
- type InputSticker
- type InputStoryArea
- type InputStoryAreaType
- type InputStoryAreaTypeFoundVenue
- type InputStoryAreaTypeLocation
- type InputStoryAreaTypePreviousVenue
- type InputStoryAreas
- type InputStoryContent
- type InputStoryContentPhoto
- func (*InputStoryContentPhoto) GetClass() string
- func (*InputStoryContentPhoto) GetType() string
- func (*InputStoryContentPhoto) InputStoryContentType() string
- func (entity *InputStoryContentPhoto) MarshalJSON() ([]byte, error)
- func (inputStoryContentPhoto *InputStoryContentPhoto) UnmarshalJSON(data []byte) error
- type InputStoryContentVideo
- func (*InputStoryContentVideo) GetClass() string
- func (*InputStoryContentVideo) GetType() string
- func (*InputStoryContentVideo) InputStoryContentType() string
- func (entity *InputStoryContentVideo) MarshalJSON() ([]byte, error)
- func (inputStoryContentVideo *InputStoryContentVideo) UnmarshalJSON(data []byte) error
- type InputThumbnail
- type InternalLinkType
- type InternalLinkTypeActiveSessions
- type InternalLinkTypeAttachmentMenuBot
- func (*InternalLinkTypeAttachmentMenuBot) GetClass() string
- func (*InternalLinkTypeAttachmentMenuBot) GetType() string
- func (*InternalLinkTypeAttachmentMenuBot) InternalLinkTypeType() string
- func (entity *InternalLinkTypeAttachmentMenuBot) MarshalJSON() ([]byte, error)
- func (internalLinkTypeAttachmentMenuBot *InternalLinkTypeAttachmentMenuBot) UnmarshalJSON(data []byte) error
- type InternalLinkTypeAuthenticationCode
- type InternalLinkTypeBackground
- type InternalLinkTypeBotAddToChannel
- type InternalLinkTypeBotStart
- type InternalLinkTypeBotStartInGroup
- type InternalLinkTypeChangePhoneNumber
- type InternalLinkTypeChatFolderInvite
- type InternalLinkTypeChatFolderSettings
- type InternalLinkTypeChatInvite
- type InternalLinkTypeDefaultMessageAutoDeleteTimerSettings
- func (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) GetClass() string
- func (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) GetType() string
- func (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) InternalLinkTypeType() string
- func (entity *InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) MarshalJSON() ([]byte, error)
- type InternalLinkTypeEditProfileSettings
- type InternalLinkTypeGame
- type InternalLinkTypeInstantView
- type InternalLinkTypeInvoice
- type InternalLinkTypeLanguagePack
- type InternalLinkTypeLanguageSettings
- type InternalLinkTypeMessage
- type InternalLinkTypeMessageDraft
- type InternalLinkTypePassportDataRequest
- type InternalLinkTypePhoneNumberConfirmation
- type InternalLinkTypePremiumFeatures
- type InternalLinkTypePrivacyAndSecuritySettings
- func (*InternalLinkTypePrivacyAndSecuritySettings) GetClass() string
- func (*InternalLinkTypePrivacyAndSecuritySettings) GetType() string
- func (*InternalLinkTypePrivacyAndSecuritySettings) InternalLinkTypeType() string
- func (entity *InternalLinkTypePrivacyAndSecuritySettings) MarshalJSON() ([]byte, error)
- type InternalLinkTypeProxy
- func (*InternalLinkTypeProxy) GetClass() string
- func (*InternalLinkTypeProxy) GetType() string
- func (*InternalLinkTypeProxy) InternalLinkTypeType() string
- func (entity *InternalLinkTypeProxy) MarshalJSON() ([]byte, error)
- func (internalLinkTypeProxy *InternalLinkTypeProxy) UnmarshalJSON(data []byte) error
- type InternalLinkTypePublicChat
- type InternalLinkTypeQrCodeAuthentication
- type InternalLinkTypeRestorePurchases
- type InternalLinkTypeSettings
- type InternalLinkTypeSideMenuBot
- type InternalLinkTypeStickerSet
- type InternalLinkTypeStory
- type InternalLinkTypeTheme
- type InternalLinkTypeThemeSettings
- type InternalLinkTypeUnknownDeepLink
- type InternalLinkTypeUnsupportedProxy
- type InternalLinkTypeUserPhoneNumber
- type InternalLinkTypeUserToken
- type InternalLinkTypeVideoChat
- type InternalLinkTypeWebApp
- type InviteGroupCallParticipantsRequest
- type InviteLinkChatType
- type InviteLinkChatTypeBasicGroup
- type InviteLinkChatTypeChannel
- type InviteLinkChatTypeSupergroup
- type Invoice
- type JoinChatByInviteLinkRequest
- type JoinChatRequest
- type JoinGroupCallRequest
- type JsonClient
- type JsonInt64
- type JsonObjectMember
- type JsonValue
- type JsonValueArray
- type JsonValueBoolean
- type JsonValueNull
- type JsonValueNumber
- type JsonValueObject
- type JsonValueString
- type KeyboardButton
- type KeyboardButtonType
- type KeyboardButtonTypeRequestChat
- type KeyboardButtonTypeRequestLocation
- type KeyboardButtonTypeRequestPhoneNumber
- type KeyboardButtonTypeRequestPoll
- type KeyboardButtonTypeRequestUser
- type KeyboardButtonTypeText
- type KeyboardButtonTypeWebApp
- type LabeledPricePart
- type LanguagePackInfo
- type LanguagePackString
- type LanguagePackStringValue
- type LanguagePackStringValueDeleted
- type LanguagePackStringValueOrdinary
- type LanguagePackStringValuePluralized
- type LanguagePackStrings
- type LeaveChatRequest
- type LeaveGroupCallRequest
- type Listener
- type LoadActiveStoriesRequest
- type LoadChatsRequest
- type LoadGroupCallParticipantsRequest
- type LocalFile
- type LocalizationTargetInfo
- type Location
- type LogStream
- type LogStreamDefault
- type LogStreamEmpty
- type LogStreamFile
- type LogTags
- type LogVerbosityLevel
- type LoginUrlInfo
- type LoginUrlInfoOpen
- type LoginUrlInfoRequestConfirmation
- type MaskPoint
- type MaskPointChin
- type MaskPointEyes
- type MaskPointForehead
- type MaskPointMouth
- type MaskPosition
- type Message
- type MessageAnimatedEmoji
- type MessageAnimation
- type MessageAudio
- type MessageAutoDeleteTime
- type MessageBasicGroupChatCreate
- type MessageBotWriteAccessAllowed
- type MessageCalendar
- type MessageCalendarDay
- type MessageCall
- type MessageChatAddMembers
- type MessageChatChangePhoto
- type MessageChatChangeTitle
- type MessageChatDeleteMember
- type MessageChatDeletePhoto
- type MessageChatJoinByLink
- type MessageChatJoinByRequest
- type MessageChatSetBackground
- type MessageChatSetMessageAutoDeleteTime
- type MessageChatSetTheme
- type MessageChatShared
- type MessageChatUpgradeFrom
- type MessageChatUpgradeTo
- type MessageContact
- type MessageContactRegistered
- type MessageContent
- type MessageCopyOptions
- type MessageCustomServiceAction
- type MessageDice
- type MessageDocument
- type MessageExpiredPhoto
- type MessageExpiredVideo
- type MessageExtendedMedia
- type MessageExtendedMediaPhoto
- type MessageExtendedMediaPreview
- type MessageExtendedMediaUnsupported
- type MessageExtendedMediaVideo
- type MessageFileType
- type MessageFileTypeGroup
- type MessageFileTypePrivate
- type MessageFileTypeUnknown
- type MessageForumTopicCreated
- type MessageForumTopicEdited
- type MessageForumTopicIsClosedToggled
- type MessageForumTopicIsHiddenToggled
- type MessageForwardInfo
- type MessageForwardOrigin
- type MessageForwardOriginChannel
- type MessageForwardOriginChat
- type MessageForwardOriginHiddenUser
- type MessageForwardOriginMessageImport
- type MessageForwardOriginUser
- type MessageGame
- type MessageGameScore
- type MessageGiftedPremium
- type MessageInteractionInfo
- type MessageInviteVideoChatParticipants
- type MessageInvoice
- type MessageLink
- type MessageLinkInfo
- type MessageLocation
- type MessagePassportDataReceived
- type MessagePassportDataSent
- func (*MessagePassportDataSent) GetClass() string
- func (*MessagePassportDataSent) GetType() string
- func (entity *MessagePassportDataSent) MarshalJSON() ([]byte, error)
- func (*MessagePassportDataSent) MessageContentType() string
- func (messagePassportDataSent *MessagePassportDataSent) UnmarshalJSON(data []byte) error
- type MessagePaymentSuccessful
- type MessagePaymentSuccessfulBot
- type MessagePhoto
- type MessagePinMessage
- type MessagePoll
- type MessagePosition
- type MessagePositions
- type MessageProximityAlertTriggered
- func (*MessageProximityAlertTriggered) GetClass() string
- func (*MessageProximityAlertTriggered) GetType() string
- func (entity *MessageProximityAlertTriggered) MarshalJSON() ([]byte, error)
- func (*MessageProximityAlertTriggered) MessageContentType() string
- func (messageProximityAlertTriggered *MessageProximityAlertTriggered) UnmarshalJSON(data []byte) error
- type MessageReaction
- type MessageReplyInfo
- type MessageReplyTo
- type MessageReplyToMessage
- type MessageReplyToStory
- type MessageSchedulingState
- type MessageSchedulingStateSendAtDate
- type MessageSchedulingStateSendWhenOnline
- type MessageScreenshotTaken
- type MessageSelfDestructType
- type MessageSelfDestructTypeImmediately
- type MessageSelfDestructTypeTimer
- type MessageSendOptions
- type MessageSender
- type MessageSenderChat
- type MessageSenderUser
- type MessageSenders
- type MessageSendingState
- type MessageSendingStateFailed
- type MessageSendingStatePending
- type MessageSource
- type MessageSourceChatEventLog
- type MessageSourceChatHistory
- type MessageSourceChatList
- type MessageSourceForumTopicHistory
- type MessageSourceHistoryPreview
- type MessageSourceMessageThreadHistory
- type MessageSourceNotification
- type MessageSourceOther
- type MessageSourceScreenshot
- type MessageSourceSearch
- type MessageSponsor
- type MessageSponsorType
- type MessageSponsorTypeBot
- func (*MessageSponsorTypeBot) GetClass() string
- func (*MessageSponsorTypeBot) GetType() string
- func (entity *MessageSponsorTypeBot) MarshalJSON() ([]byte, error)
- func (*MessageSponsorTypeBot) MessageSponsorTypeType() string
- func (messageSponsorTypeBot *MessageSponsorTypeBot) UnmarshalJSON(data []byte) error
- type MessageSponsorTypePrivateChannel
- type MessageSponsorTypePublicChannel
- func (*MessageSponsorTypePublicChannel) GetClass() string
- func (*MessageSponsorTypePublicChannel) GetType() string
- func (entity *MessageSponsorTypePublicChannel) MarshalJSON() ([]byte, error)
- func (*MessageSponsorTypePublicChannel) MessageSponsorTypeType() string
- func (messageSponsorTypePublicChannel *MessageSponsorTypePublicChannel) UnmarshalJSON(data []byte) error
- type MessageSponsorTypeWebsite
- type MessageStatistics
- type MessageSticker
- type MessageStory
- type MessageSuggestProfilePhoto
- type MessageSupergroupChatCreate
- type MessageText
- type MessageThreadInfo
- type MessageUnsupported
- type MessageUserShared
- type MessageVenue
- type MessageVideo
- type MessageVideoChatEnded
- type MessageVideoChatScheduled
- type MessageVideoChatStarted
- type MessageVideoNote
- type MessageViewer
- type MessageViewers
- type MessageVoiceNote
- type MessageWebAppDataReceived
- type MessageWebAppDataSent
- type MessageWebsiteConnected
- type Messages
- type Minithumbnail
- type NetworkStatistics
- type NetworkStatisticsEntry
- type NetworkStatisticsEntryCall
- func (*NetworkStatisticsEntryCall) GetClass() string
- func (*NetworkStatisticsEntryCall) GetType() string
- func (entity *NetworkStatisticsEntryCall) MarshalJSON() ([]byte, error)
- func (*NetworkStatisticsEntryCall) NetworkStatisticsEntryType() string
- func (networkStatisticsEntryCall *NetworkStatisticsEntryCall) UnmarshalJSON(data []byte) error
- type NetworkStatisticsEntryFile
- func (*NetworkStatisticsEntryFile) GetClass() string
- func (*NetworkStatisticsEntryFile) GetType() string
- func (entity *NetworkStatisticsEntryFile) MarshalJSON() ([]byte, error)
- func (*NetworkStatisticsEntryFile) NetworkStatisticsEntryType() string
- func (networkStatisticsEntryFile *NetworkStatisticsEntryFile) UnmarshalJSON(data []byte) error
- type NetworkType
- type NetworkTypeMobile
- type NetworkTypeMobileRoaming
- type NetworkTypeNone
- type NetworkTypeOther
- type NetworkTypeWiFi
- type Notification
- type NotificationGroup
- type NotificationGroupType
- type NotificationGroupTypeCalls
- type NotificationGroupTypeMentions
- type NotificationGroupTypeMessages
- type NotificationGroupTypeSecretChat
- type NotificationSettingsScope
- type NotificationSettingsScopeChannelChats
- type NotificationSettingsScopeGroupChats
- type NotificationSettingsScopePrivateChats
- type NotificationSound
- type NotificationSounds
- type NotificationType
- type NotificationTypeNewCall
- type NotificationTypeNewMessage
- type NotificationTypeNewPushMessage
- func (*NotificationTypeNewPushMessage) GetClass() string
- func (*NotificationTypeNewPushMessage) GetType() string
- func (entity *NotificationTypeNewPushMessage) MarshalJSON() ([]byte, error)
- func (*NotificationTypeNewPushMessage) NotificationTypeType() string
- func (notificationTypeNewPushMessage *NotificationTypeNewPushMessage) UnmarshalJSON(data []byte) error
- type NotificationTypeNewSecretChat
- type Ok
- func AddLogMessage(req *AddLogMessageRequest) (*Ok, error)
- func SetLogStream(req *SetLogStreamRequest) (*Ok, error)
- func SetLogTagVerbosityLevel(req *SetLogTagVerbosityLevelRequest) (*Ok, error)
- func SetLogVerbosityLevel(req *SetLogVerbosityLevelRequest) (*Ok, error)
- func UnmarshalOk(data json.RawMessage) (*Ok, error)
- type OpenChatRequest
- type OpenMessageContentRequest
- type OpenStoryRequest
- type OpenWebAppRequest
- type OptimizeStorageRequest
- type Option
- type OptionValue
- type OptionValueBoolean
- type OptionValueEmpty
- type OptionValueInteger
- type OptionValueString
- type OrderInfo
- type PageBlock
- type PageBlockAnchor
- type PageBlockAnimation
- type PageBlockAudio
- type PageBlockAuthorDate
- type PageBlockBlockQuote
- type PageBlockCaption
- type PageBlockChatLink
- type PageBlockCollage
- type PageBlockCover
- type PageBlockDetails
- type PageBlockDivider
- type PageBlockEmbedded
- type PageBlockEmbeddedPost
- type PageBlockFooter
- type PageBlockHeader
- type PageBlockHorizontalAlignment
- type PageBlockHorizontalAlignmentCenter
- type PageBlockHorizontalAlignmentLeft
- type PageBlockHorizontalAlignmentRight
- type PageBlockKicker
- type PageBlockList
- type PageBlockListItem
- type PageBlockMap
- type PageBlockParagraph
- type PageBlockPhoto
- type PageBlockPreformatted
- type PageBlockPullQuote
- type PageBlockRelatedArticle
- type PageBlockRelatedArticles
- func (*PageBlockRelatedArticles) GetClass() string
- func (*PageBlockRelatedArticles) GetType() string
- func (entity *PageBlockRelatedArticles) MarshalJSON() ([]byte, error)
- func (*PageBlockRelatedArticles) PageBlockType() string
- func (pageBlockRelatedArticles *PageBlockRelatedArticles) UnmarshalJSON(data []byte) error
- type PageBlockSlideshow
- type PageBlockSubheader
- type PageBlockSubtitle
- type PageBlockTable
- type PageBlockTableCell
- type PageBlockTitle
- type PageBlockVerticalAlignment
- type PageBlockVerticalAlignmentBottom
- type PageBlockVerticalAlignmentMiddle
- type PageBlockVerticalAlignmentTop
- type PageBlockVideo
- type PageBlockVoiceNote
- type ParseMarkdownRequest
- type ParseTextEntitiesRequest
- type PassportAuthorizationForm
- type PassportElement
- type PassportElementAddress
- type PassportElementBankStatement
- type PassportElementDriverLicense
- type PassportElementEmailAddress
- type PassportElementError
- type PassportElementErrorSource
- type PassportElementErrorSourceDataField
- type PassportElementErrorSourceFile
- type PassportElementErrorSourceFiles
- type PassportElementErrorSourceFrontSide
- type PassportElementErrorSourceReverseSide
- type PassportElementErrorSourceSelfie
- type PassportElementErrorSourceTranslationFile
- func (*PassportElementErrorSourceTranslationFile) GetClass() string
- func (*PassportElementErrorSourceTranslationFile) GetType() string
- func (entity *PassportElementErrorSourceTranslationFile) MarshalJSON() ([]byte, error)
- func (*PassportElementErrorSourceTranslationFile) PassportElementErrorSourceType() string
- type PassportElementErrorSourceTranslationFiles
- func (*PassportElementErrorSourceTranslationFiles) GetClass() string
- func (*PassportElementErrorSourceTranslationFiles) GetType() string
- func (entity *PassportElementErrorSourceTranslationFiles) MarshalJSON() ([]byte, error)
- func (*PassportElementErrorSourceTranslationFiles) PassportElementErrorSourceType() string
- type PassportElementErrorSourceUnspecified
- type PassportElementIdentityCard
- type PassportElementInternalPassport
- type PassportElementPassport
- type PassportElementPassportRegistration
- type PassportElementPersonalDetails
- type PassportElementPhoneNumber
- type PassportElementRentalAgreement
- type PassportElementTemporaryRegistration
- type PassportElementType
- type PassportElementTypeAddress
- type PassportElementTypeBankStatement
- type PassportElementTypeDriverLicense
- type PassportElementTypeEmailAddress
- type PassportElementTypeIdentityCard
- type PassportElementTypeInternalPassport
- type PassportElementTypePassport
- type PassportElementTypePassportRegistration
- type PassportElementTypePersonalDetails
- type PassportElementTypePhoneNumber
- type PassportElementTypeRentalAgreement
- type PassportElementTypeTemporaryRegistration
- func (*PassportElementTypeTemporaryRegistration) GetClass() string
- func (*PassportElementTypeTemporaryRegistration) GetType() string
- func (entity *PassportElementTypeTemporaryRegistration) MarshalJSON() ([]byte, error)
- func (*PassportElementTypeTemporaryRegistration) PassportElementTypeType() string
- type PassportElementTypeUtilityBill
- type PassportElementUtilityBill
- type PassportElements
- type PassportElementsWithErrors
- type PassportRequiredElement
- type PassportSuitableElement
- type PasswordState
- type PaymentForm
- type PaymentOption
- type PaymentProvider
- type PaymentProviderOther
- type PaymentProviderSmartGlocal
- type PaymentProviderStripe
- type PaymentReceipt
- type PaymentResult
- type PersonalDetails
- type PersonalDocument
- type PhoneNumberAuthenticationSettings
- func (*PhoneNumberAuthenticationSettings) GetClass() string
- func (*PhoneNumberAuthenticationSettings) GetType() string
- func (entity *PhoneNumberAuthenticationSettings) MarshalJSON() ([]byte, error)
- func (phoneNumberAuthenticationSettings *PhoneNumberAuthenticationSettings) UnmarshalJSON(data []byte) error
- type PhoneNumberInfo
- type Photo
- type PhotoSize
- type PinChatMessageRequest
- type PingProxyRequest
- type Point
- type Poll
- type PollOption
- type PollType
- type PollTypeQuiz
- type PollTypeRegular
- type PreliminaryUploadFileRequest
- type PremiumFeature
- type PremiumFeatureAdvancedChatManagement
- type PremiumFeatureAnimatedProfilePhoto
- type PremiumFeatureAppIcons
- type PremiumFeatureCustomEmoji
- type PremiumFeatureDisabledAds
- type PremiumFeatureEmojiStatus
- type PremiumFeatureForumTopicIcon
- type PremiumFeatureImprovedDownloadSpeed
- type PremiumFeatureIncreasedLimits
- type PremiumFeatureIncreasedUploadFileSize
- type PremiumFeatureProfileBadge
- type PremiumFeaturePromotionAnimation
- func (*PremiumFeaturePromotionAnimation) GetClass() string
- func (*PremiumFeaturePromotionAnimation) GetType() string
- func (entity *PremiumFeaturePromotionAnimation) MarshalJSON() ([]byte, error)
- func (premiumFeaturePromotionAnimation *PremiumFeaturePromotionAnimation) UnmarshalJSON(data []byte) error
- type PremiumFeatureRealTimeChatTranslation
- type PremiumFeatureUniqueReactions
- type PremiumFeatureUniqueStickers
- type PremiumFeatureUpgradedStories
- type PremiumFeatureVoiceRecognition
- type PremiumFeatures
- type PremiumLimit
- type PremiumLimitType
- type PremiumLimitTypeActiveStoryCount
- type PremiumLimitTypeBioLength
- type PremiumLimitTypeCaptionLength
- type PremiumLimitTypeChatFolderChosenChatCount
- func (*PremiumLimitTypeChatFolderChosenChatCount) GetClass() string
- func (*PremiumLimitTypeChatFolderChosenChatCount) GetType() string
- func (entity *PremiumLimitTypeChatFolderChosenChatCount) MarshalJSON() ([]byte, error)
- func (*PremiumLimitTypeChatFolderChosenChatCount) PremiumLimitTypeType() string
- type PremiumLimitTypeChatFolderCount
- type PremiumLimitTypeChatFolderInviteLinkCount
- func (*PremiumLimitTypeChatFolderInviteLinkCount) GetClass() string
- func (*PremiumLimitTypeChatFolderInviteLinkCount) GetType() string
- func (entity *PremiumLimitTypeChatFolderInviteLinkCount) MarshalJSON() ([]byte, error)
- func (*PremiumLimitTypeChatFolderInviteLinkCount) PremiumLimitTypeType() string
- type PremiumLimitTypeCreatedPublicChatCount
- type PremiumLimitTypeFavoriteStickerCount
- type PremiumLimitTypeMonthlySentStoryCount
- type PremiumLimitTypePinnedArchivedChatCount
- type PremiumLimitTypePinnedChatCount
- type PremiumLimitTypeSavedAnimationCount
- type PremiumLimitTypeShareableChatFolderCount
- type PremiumLimitTypeStoryCaptionLength
- type PremiumLimitTypeSupergroupCount
- type PremiumLimitTypeWeeklySentStoryCount
- type PremiumPaymentOption
- type PremiumSource
- type PremiumSourceFeature
- type PremiumSourceLimitExceeded
- func (*PremiumSourceLimitExceeded) GetClass() string
- func (*PremiumSourceLimitExceeded) GetType() string
- func (entity *PremiumSourceLimitExceeded) MarshalJSON() ([]byte, error)
- func (*PremiumSourceLimitExceeded) PremiumSourceType() string
- func (premiumSourceLimitExceeded *PremiumSourceLimitExceeded) UnmarshalJSON(data []byte) error
- type PremiumSourceLink
- type PremiumSourceSettings
- type PremiumSourceStoryFeature
- func (*PremiumSourceStoryFeature) GetClass() string
- func (*PremiumSourceStoryFeature) GetType() string
- func (entity *PremiumSourceStoryFeature) MarshalJSON() ([]byte, error)
- func (*PremiumSourceStoryFeature) PremiumSourceType() string
- func (premiumSourceStoryFeature *PremiumSourceStoryFeature) UnmarshalJSON(data []byte) error
- type PremiumState
- type PremiumStatePaymentOption
- type PremiumStoryFeature
- type PremiumStoryFeatureCustomExpirationDuration
- func (*PremiumStoryFeatureCustomExpirationDuration) GetClass() string
- func (*PremiumStoryFeatureCustomExpirationDuration) GetType() string
- func (entity *PremiumStoryFeatureCustomExpirationDuration) MarshalJSON() ([]byte, error)
- func (*PremiumStoryFeatureCustomExpirationDuration) PremiumStoryFeatureType() string
- type PremiumStoryFeatureLinksAndFormatting
- type PremiumStoryFeaturePermanentViewsHistory
- func (*PremiumStoryFeaturePermanentViewsHistory) GetClass() string
- func (*PremiumStoryFeaturePermanentViewsHistory) GetType() string
- func (entity *PremiumStoryFeaturePermanentViewsHistory) MarshalJSON() ([]byte, error)
- func (*PremiumStoryFeaturePermanentViewsHistory) PremiumStoryFeatureType() string
- type PremiumStoryFeaturePriorityOrder
- type PremiumStoryFeatureSaveStories
- type PremiumStoryFeatureStealthMode
- type ProcessChatFolderNewChatsRequest
- type ProcessChatJoinRequestRequest
- type ProcessChatJoinRequestsRequest
- type ProcessPushNotificationRequest
- type ProfilePhoto
- type Proxies
- type Proxy
- type ProxyType
- type ProxyTypeHttp
- type ProxyTypeMtproto
- type ProxyTypeSocks5
- type PublicChatType
- type PublicChatTypeHasUsername
- type PublicChatTypeIsLocationBased
- type PushMessageContent
- type PushMessageContentAnimation
- type PushMessageContentAudio
- type PushMessageContentBasicGroupChatCreate
- type PushMessageContentChatAddMembers
- type PushMessageContentChatChangePhoto
- type PushMessageContentChatChangeTitle
- type PushMessageContentChatDeleteMember
- type PushMessageContentChatJoinByLink
- type PushMessageContentChatJoinByRequest
- type PushMessageContentChatSetBackground
- type PushMessageContentChatSetTheme
- type PushMessageContentContact
- type PushMessageContentContactRegistered
- type PushMessageContentDocument
- type PushMessageContentGame
- type PushMessageContentGameScore
- type PushMessageContentHidden
- type PushMessageContentInvoice
- type PushMessageContentLocation
- type PushMessageContentMediaAlbum
- type PushMessageContentMessageForwards
- type PushMessageContentPhoto
- type PushMessageContentPoll
- type PushMessageContentRecurringPayment
- type PushMessageContentScreenshotTaken
- type PushMessageContentSticker
- type PushMessageContentStory
- type PushMessageContentSuggestProfilePhoto
- type PushMessageContentText
- type PushMessageContentVideo
- type PushMessageContentVideoNote
- type PushMessageContentVoiceNote
- type PushReceiverId
- type RateSpeechRecognitionRequest
- type ReactionType
- type ReactionTypeCustomEmoji
- type ReactionTypeEmoji
- type ReadAllChatMentionsRequest
- type ReadAllChatReactionsRequest
- type ReadAllMessageThreadMentionsRequest
- type ReadAllMessageThreadReactionsRequest
- type ReadChatListRequest
- type ReadFilePartRequest
- type RecognizeSpeechRequest
- type RecommendedChatFolder
- type RecommendedChatFolders
- type RecoverAuthenticationPasswordRequest
- type RecoverPasswordRequest
- type RecoveryEmailAddress
- type RegisterDeviceRequest
- type RegisterUserRequest
- type RemoteFile
- type RemoveAllFilesFromDownloadsRequest
- type RemoveBackgroundRequest
- type RemoveChatActionBarRequest
- type RemoveContactsRequest
- type RemoveFavoriteStickerRequest
- type RemoveFileFromDownloadsRequest
- type RemoveMessageReactionRequest
- type RemoveNotificationGroupRequest
- type RemoveNotificationRequest
- type RemoveProxyRequest
- type RemoveRecentHashtagRequest
- type RemoveRecentStickerRequest
- type RemoveRecentlyFoundChatRequest
- type RemoveSavedAnimationRequest
- type RemoveSavedNotificationSoundRequest
- type RemoveStickerFromSetRequest
- type RemoveTopChatRequest
- type ReorderActiveUsernamesRequest
- type ReorderBotActiveUsernamesRequest
- type ReorderChatFoldersRequest
- type ReorderInstalledStickerSetsRequest
- type ReorderSupergroupActiveUsernamesRequest
- type ReplacePrimaryChatInviteLinkRequest
- type ReplaceVideoChatRtmpUrlRequest
- type ReplyMarkup
- type ReplyMarkupForceReply
- type ReplyMarkupInlineKeyboard
- type ReplyMarkupRemoveKeyboard
- type ReplyMarkupShowKeyboard
- type ReportChatPhotoRequest
- type ReportChatRequest
- type ReportMessageReactionsRequest
- type ReportReason
- type ReportReasonChildAbuse
- type ReportReasonCopyright
- type ReportReasonCustom
- type ReportReasonFake
- type ReportReasonIllegalDrugs
- type ReportReasonPersonalDetails
- type ReportReasonPornography
- type ReportReasonSpam
- type ReportReasonUnrelatedLocation
- type ReportReasonViolence
- type ReportStoryRequest
- type ReportSupergroupAntiSpamFalsePositiveRequest
- type ReportSupergroupSpamRequest
- type Request
- type RequestQrCodeAuthenticationRequest
- type ResendMessagesRequest
- type ResetPasswordResult
- type ResetPasswordResultDeclined
- type ResetPasswordResultOk
- type ResetPasswordResultPending
- type Response
- type ResponseError
- type RevokeChatInviteLinkRequest
- type RevokeGroupCallInviteLinkRequest
- type RichText
- type RichTextAnchor
- type RichTextAnchorLink
- type RichTextBold
- type RichTextEmailAddress
- type RichTextFixed
- type RichTextIcon
- type RichTextItalic
- type RichTextMarked
- type RichTextPhoneNumber
- type RichTextPlain
- type RichTextReference
- type RichTextStrikethrough
- type RichTextSubscript
- type RichTextSuperscript
- type RichTextUnderline
- type RichTextUrl
- type RichTexts
- type RtmpUrl
- type SaveApplicationLogEventRequest
- type SavedCredentials
- type ScopeAutosaveSettings
- type ScopeNotificationSettings
- type SearchBackgroundRequest
- type SearchCallMessagesRequest
- type SearchChatMembersRequest
- type SearchChatMessagesRequest
- type SearchChatRecentLocationMessagesRequest
- type SearchChatsNearbyRequest
- type SearchChatsOnServerRequest
- type SearchChatsRequest
- type SearchContactsRequest
- type SearchEmojisRequest
- type SearchFileDownloadsRequest
- type SearchHashtagsRequest
- type SearchInstalledStickerSetsRequest
- type SearchMessagesFilter
- type SearchMessagesFilterAnimation
- type SearchMessagesFilterAudio
- type SearchMessagesFilterChatPhoto
- type SearchMessagesFilterDocument
- type SearchMessagesFilterEmpty
- type SearchMessagesFilterFailedToSend
- type SearchMessagesFilterMention
- type SearchMessagesFilterPhoto
- type SearchMessagesFilterPhotoAndVideo
- type SearchMessagesFilterPinned
- type SearchMessagesFilterUnreadMention
- type SearchMessagesFilterUnreadReaction
- type SearchMessagesFilterUrl
- type SearchMessagesFilterVideo
- type SearchMessagesFilterVideoNote
- type SearchMessagesFilterVoiceAndVideoNote
- type SearchMessagesFilterVoiceNote
- type SearchMessagesRequest
- type SearchOutgoingDocumentMessagesRequest
- type SearchPublicChatRequest
- type SearchPublicChatsRequest
- type SearchRecentlyFoundChatsRequest
- type SearchSecretMessagesRequest
- type SearchStickerSetRequest
- type SearchStickerSetsRequest
- type SearchStickersRequest
- type SearchStringsByPrefixRequest
- type SearchUserByPhoneNumberRequest
- type SearchUserByTokenRequest
- type SearchWebAppRequest
- type Seconds
- type SecretChat
- type SecretChatState
- type SecretChatStateClosed
- type SecretChatStatePending
- type SecretChatStateReady
- type SendAuthenticationFirebaseSmsRequest
- type SendBotStartMessageRequest
- type SendCallDebugInformationRequest
- type SendCallLogRequest
- type SendCallRatingRequest
- type SendCallSignalingDataRequest
- type SendChatActionRequest
- type SendChatScreenshotTakenNotificationRequest
- type SendCustomRequestRequest
- type SendEmailAddressVerificationCodeRequest
- type SendInlineQueryResultMessageRequest
- type SendMessageAlbumRequest
- type SendMessageRequest
- type SendPassportAuthorizationFormRequest
- type SendPaymentFormRequest
- type SendPhoneNumberConfirmationCodeRequest
- type SendPhoneNumberVerificationCodeRequest
- type SendStoryRequest
- type SendWebAppCustomRequestRequest
- type SendWebAppDataRequest
- type SentWebAppMessage
- type Session
- type SessionType
- type SessionTypeAndroid
- type SessionTypeApple
- type SessionTypeBrave
- type SessionTypeChrome
- type SessionTypeEdge
- type SessionTypeFirefox
- type SessionTypeIpad
- type SessionTypeIphone
- type SessionTypeLinux
- type SessionTypeMac
- type SessionTypeOpera
- type SessionTypeSafari
- type SessionTypeUbuntu
- type SessionTypeUnknown
- type SessionTypeVivaldi
- type SessionTypeWindows
- type SessionTypeXbox
- type Sessions
- type SetAccountTtlRequest
- type SetAlarmRequest
- type SetArchiveChatListSettingsRequest
- type SetAuthenticationEmailAddressRequest
- type SetAuthenticationPhoneNumberRequest
- type SetAutoDownloadSettingsRequest
- type SetAutosaveSettingsRequest
- type SetBackgroundRequest
- type SetBioRequest
- type SetBotInfoDescriptionRequest
- type SetBotInfoShortDescriptionRequest
- type SetBotNameRequest
- type SetBotProfilePhotoRequest
- type SetBotUpdatesStatusRequest
- type SetChatActiveStoriesListRequest
- type SetChatAvailableReactionsRequest
- type SetChatBackgroundRequest
- type SetChatClientDataRequest
- type SetChatDescriptionRequest
- type SetChatDiscussionGroupRequest
- type SetChatDraftMessageRequest
- type SetChatLocationRequest
- type SetChatMemberStatusRequest
- type SetChatMessageAutoDeleteTimeRequest
- type SetChatMessageSenderRequest
- type SetChatNotificationSettingsRequest
- type SetChatPermissionsRequest
- type SetChatPhotoRequest
- type SetChatSlowModeDelayRequest
- type SetChatThemeRequest
- type SetChatTitleRequest
- type SetCloseFriendsRequest
- type SetCommandsRequest
- type SetCustomEmojiStickerSetThumbnailRequest
- type SetCustomLanguagePackRequest
- type SetCustomLanguagePackStringRequest
- type SetDatabaseEncryptionKeyRequest
- type SetDefaultChannelAdministratorRightsRequest
- type SetDefaultGroupAdministratorRightsRequest
- type SetDefaultMessageAutoDeleteTimeRequest
- type SetDefaultReactionTypeRequest
- type SetEmojiStatusRequest
- type SetFileGenerationProgressRequest
- type SetForumTopicNotificationSettingsRequest
- type SetGameScoreRequest
- type SetGroupCallParticipantIsSpeakingRequest
- type SetGroupCallParticipantVolumeLevelRequest
- type SetGroupCallTitleRequest
- type SetInactiveSessionTtlRequest
- type SetInlineGameScoreRequest
- type SetLocationRequest
- type SetLogStreamRequest
- type SetLogTagVerbosityLevelRequest
- type SetLogVerbosityLevelRequest
- type SetLoginEmailAddressRequest
- type SetMenuButtonRequest
- type SetMessageSenderBlockListRequest
- type SetNameRequest
- type SetNetworkTypeRequest
- type SetOptionRequest
- type SetPassportElementErrorsRequest
- type SetPassportElementRequest
- type SetPasswordRequest
- type SetPinnedChatsRequest
- type SetPinnedForumTopicsRequest
- type SetPollAnswerRequest
- type SetProfilePhotoRequest
- type SetRecoveryEmailAddressRequest
- type SetScopeNotificationSettingsRequest
- type SetStickerEmojisRequest
- type SetStickerKeywordsRequest
- type SetStickerMaskPositionRequest
- type SetStickerPositionInSetRequest
- type SetStickerSetThumbnailRequest
- type SetStickerSetTitleRequest
- type SetStoryPrivacySettingsRequest
- type SetStoryReactionRequest
- type SetSupergroupStickerSetRequest
- type SetSupergroupUsernameRequest
- type SetTdlibParametersRequest
- type SetUserPersonalProfilePhotoRequest
- type SetUserPrivacySettingRulesRequest
- type SetUserSupportInfoRequest
- type SetUsernameRequest
- type SetVideoChatDefaultParticipantRequest
- type ShareChatWithBotRequest
- type SharePhoneNumberRequest
- type ShareUserWithBotRequest
- type ShippingOption
- type SpeechRecognitionResult
- type SpeechRecognitionResultError
- type SpeechRecognitionResultPending
- type SpeechRecognitionResultText
- type SponsoredMessage
- type SponsoredMessages
- type StartGroupCallRecordingRequest
- type StartGroupCallScreenSharingRequest
- type StartScheduledGroupCallRequest
- type StatisticalGraph
- type StatisticalGraphAsync
- type StatisticalGraphData
- type StatisticalGraphError
- type StatisticalValue
- type Sticker
- type StickerFormat
- type StickerFormatTgs
- type StickerFormatWebm
- type StickerFormatWebp
- type StickerFullType
- type StickerFullTypeCustomEmoji
- type StickerFullTypeMask
- type StickerFullTypeRegular
- type StickerSet
- type StickerSetInfo
- type StickerSets
- type StickerType
- type StickerTypeCustomEmoji
- type StickerTypeMask
- type StickerTypeRegular
- type Stickers
- type StopPollRequest
- type StorageStatistics
- type StorageStatisticsByChat
- type StorageStatisticsByFileType
- type StorageStatisticsFast
- type StorePaymentPurpose
- type StorePaymentPurposeGiftedPremium
- type StorePaymentPurposePremiumSubscription
- type Stories
- type Story
- type StoryArea
- type StoryAreaPosition
- type StoryAreaType
- type StoryAreaTypeLocation
- type StoryAreaTypeVenue
- type StoryContent
- type StoryContentPhoto
- type StoryContentUnsupported
- type StoryContentVideo
- type StoryInfo
- type StoryInteractionInfo
- type StoryList
- type StoryListArchive
- type StoryListMain
- type StoryPrivacySettings
- type StoryPrivacySettingsCloseFriends
- type StoryPrivacySettingsContacts
- type StoryPrivacySettingsEveryone
- type StoryPrivacySettingsSelectedUsers
- type StoryVideo
- type StoryViewer
- type StoryViewers
- type SuggestUserProfilePhotoRequest
- type SuggestedAction
- type SuggestedActionCheckPassword
- type SuggestedActionCheckPhoneNumber
- type SuggestedActionConvertToBroadcastGroup
- type SuggestedActionEnableArchiveAndMuteNewChats
- func (*SuggestedActionEnableArchiveAndMuteNewChats) GetClass() string
- func (*SuggestedActionEnableArchiveAndMuteNewChats) GetType() string
- func (entity *SuggestedActionEnableArchiveAndMuteNewChats) MarshalJSON() ([]byte, error)
- func (*SuggestedActionEnableArchiveAndMuteNewChats) SuggestedActionType() string
- type SuggestedActionRestorePremium
- type SuggestedActionSetPassword
- type SuggestedActionSubscribeToAnnualPremium
- type SuggestedActionUpgradePremium
- type SuggestedActionViewChecksHint
- type Supergroup
- type SupergroupFullInfo
- type SupergroupMembersFilter
- type SupergroupMembersFilterAdministrators
- type SupergroupMembersFilterBanned
- type SupergroupMembersFilterBots
- type SupergroupMembersFilterContacts
- type SupergroupMembersFilterMention
- type SupergroupMembersFilterRecent
- type SupergroupMembersFilterRestricted
- type SupergroupMembersFilterSearch
- type SynchronizeLanguagePackRequest
- type TMeUrl
- type TMeUrlType
- type TMeUrlTypeChatInvite
- type TMeUrlTypeStickerSet
- type TMeUrlTypeSupergroup
- type TMeUrlTypeUser
- type TMeUrls
- type TargetChat
- type TargetChatChosen
- type TargetChatCurrent
- type TargetChatInternalLink
- func (*TargetChatInternalLink) GetClass() string
- func (*TargetChatInternalLink) GetType() string
- func (entity *TargetChatInternalLink) MarshalJSON() ([]byte, error)
- func (*TargetChatInternalLink) TargetChatType() string
- func (targetChatInternalLink *TargetChatInternalLink) UnmarshalJSON(data []byte) error
- type TemporaryPasswordState
- type TerminateSessionRequest
- type TermsOfService
- type TestBytes
- type TestCallBytesRequest
- type TestCallStringRequest
- type TestCallVectorIntObjectRequest
- type TestCallVectorIntRequest
- type TestCallVectorStringObjectRequest
- type TestCallVectorStringRequest
- type TestInt
- type TestProxyRequest
- type TestReturnErrorRequest
- type TestSquareIntRequest
- type TestString
- type TestVectorInt
- type TestVectorIntObject
- type TestVectorString
- type TestVectorStringObject
- type Text
- func CleanFileName(req *CleanFileNameRequest) (*Text, error)
- func GetFileExtension(req *GetFileExtensionRequest) (*Text, error)
- func GetFileMimeType(req *GetFileMimeTypeRequest) (*Text, error)
- func GetJsonString(req *GetJsonStringRequest) (*Text, error)
- func GetThemeParametersJsonString(req *GetThemeParametersJsonStringRequest) (*Text, error)
- func UnmarshalText(data json.RawMessage) (*Text, error)
- type TextEntities
- type TextEntity
- type TextEntityType
- type TextEntityTypeBankCardNumber
- type TextEntityTypeBold
- type TextEntityTypeBotCommand
- type TextEntityTypeCashtag
- type TextEntityTypeCode
- type TextEntityTypeCustomEmoji
- type TextEntityTypeEmailAddress
- type TextEntityTypeHashtag
- type TextEntityTypeItalic
- type TextEntityTypeMediaTimestamp
- type TextEntityTypeMention
- type TextEntityTypeMentionName
- type TextEntityTypePhoneNumber
- type TextEntityTypePre
- type TextEntityTypePreCode
- type TextEntityTypeSpoiler
- type TextEntityTypeStrikethrough
- type TextEntityTypeTextUrl
- type TextEntityTypeUnderline
- type TextEntityTypeUrl
- type TextParseMode
- type TextParseModeHTML
- type TextParseModeMarkdown
- type ThemeParameters
- type ThemeSettings
- type Thumbnail
- type ThumbnailFormat
- type ThumbnailFormatGif
- type ThumbnailFormatJpeg
- type ThumbnailFormatMpeg4
- type ThumbnailFormatPng
- type ThumbnailFormatTgs
- type ThumbnailFormatWebm
- type ThumbnailFormatWebp
- type ToggleAllDownloadsArePausedRequest
- type ToggleBotIsAddedToAttachmentMenuRequest
- type ToggleBotUsernameIsActiveRequest
- type ToggleChatDefaultDisableNotificationRequest
- type ToggleChatHasProtectedContentRequest
- type ToggleChatIsMarkedAsUnreadRequest
- type ToggleChatIsPinnedRequest
- type ToggleChatIsTranslatableRequest
- type ToggleDownloadIsPausedRequest
- type ToggleForumTopicIsClosedRequest
- type ToggleForumTopicIsPinnedRequest
- type ToggleGeneralForumTopicIsHiddenRequest
- type ToggleGroupCallEnabledStartNotificationRequest
- type ToggleGroupCallIsMyVideoEnabledRequest
- type ToggleGroupCallIsMyVideoPausedRequest
- type ToggleGroupCallMuteNewParticipantsRequest
- type ToggleGroupCallParticipantIsHandRaisedRequest
- type ToggleGroupCallParticipantIsMutedRequest
- type ToggleGroupCallScreenSharingIsPausedRequest
- type ToggleSessionCanAcceptCallsRequest
- type ToggleSessionCanAcceptSecretChatsRequest
- type ToggleStoryIsPinnedRequest
- type ToggleSupergroupHasAggressiveAntiSpamEnabledRequest
- type ToggleSupergroupHasHiddenMembersRequest
- type ToggleSupergroupIsAllHistoryAvailableRequest
- type ToggleSupergroupIsBroadcastGroupRequest
- type ToggleSupergroupIsForumRequest
- type ToggleSupergroupJoinByRequestRequest
- type ToggleSupergroupJoinToSendMessagesRequest
- type ToggleSupergroupSignMessagesRequest
- type ToggleSupergroupUsernameIsActiveRequest
- type ToggleUsernameIsActiveRequest
- type TopChatCategory
- type TopChatCategoryBots
- type TopChatCategoryCalls
- type TopChatCategoryChannels
- type TopChatCategoryForwardChats
- type TopChatCategoryGroups
- type TopChatCategoryInlineBots
- type TopChatCategoryUsers
- type TransferChatOwnershipRequest
- type TranslateMessageTextRequest
- type TranslateTextRequest
- type TrendingStickerSets
- type Type
- type UnconfirmedSession
- type UnpinAllChatMessagesRequest
- type UnpinAllMessageThreadMessagesRequest
- type UnpinChatMessageRequest
- type UnreadReaction
- type Update
- type UpdateActiveEmojiReactions
- type UpdateActiveNotifications
- type UpdateAddChatMembersPrivacyForbidden
- type UpdateAnimatedEmojiMessageClicked
- type UpdateAnimationSearchParameters
- type UpdateAttachmentMenuBots
- type UpdateAuthorizationState
- func (*UpdateAuthorizationState) GetClass() string
- func (*UpdateAuthorizationState) GetType() string
- func (entity *UpdateAuthorizationState) MarshalJSON() ([]byte, error)
- func (updateAuthorizationState *UpdateAuthorizationState) UnmarshalJSON(data []byte) error
- func (*UpdateAuthorizationState) UpdateType() string
- type UpdateAutosaveSettings
- func (*UpdateAutosaveSettings) GetClass() string
- func (*UpdateAutosaveSettings) GetType() string
- func (entity *UpdateAutosaveSettings) MarshalJSON() ([]byte, error)
- func (updateAutosaveSettings *UpdateAutosaveSettings) UnmarshalJSON(data []byte) error
- func (*UpdateAutosaveSettings) UpdateType() string
- type UpdateBasicGroup
- type UpdateBasicGroupFullInfo
- type UpdateCall
- type UpdateChatAction
- type UpdateChatActionBar
- type UpdateChatActiveStories
- type UpdateChatAvailableReactions
- func (*UpdateChatAvailableReactions) GetClass() string
- func (*UpdateChatAvailableReactions) GetType() string
- func (entity *UpdateChatAvailableReactions) MarshalJSON() ([]byte, error)
- func (updateChatAvailableReactions *UpdateChatAvailableReactions) UnmarshalJSON(data []byte) error
- func (*UpdateChatAvailableReactions) UpdateType() string
- type UpdateChatBackground
- type UpdateChatBlockList
- type UpdateChatDefaultDisableNotification
- type UpdateChatDraftMessage
- type UpdateChatFolders
- type UpdateChatHasProtectedContent
- type UpdateChatHasScheduledMessages
- type UpdateChatIsMarkedAsUnread
- type UpdateChatIsTranslatable
- type UpdateChatLastMessage
- type UpdateChatMember
- type UpdateChatMessageAutoDeleteTime
- type UpdateChatMessageSender
- func (*UpdateChatMessageSender) GetClass() string
- func (*UpdateChatMessageSender) GetType() string
- func (entity *UpdateChatMessageSender) MarshalJSON() ([]byte, error)
- func (updateChatMessageSender *UpdateChatMessageSender) UnmarshalJSON(data []byte) error
- func (*UpdateChatMessageSender) UpdateType() string
- type UpdateChatNotificationSettings
- type UpdateChatOnlineMemberCount
- type UpdateChatPendingJoinRequests
- type UpdateChatPermissions
- type UpdateChatPhoto
- type UpdateChatPosition
- type UpdateChatReadInbox
- type UpdateChatReadOutbox
- type UpdateChatReplyMarkup
- type UpdateChatTheme
- type UpdateChatThemes
- type UpdateChatTitle
- type UpdateChatUnreadMentionCount
- type UpdateChatUnreadReactionCount
- type UpdateChatVideoChat
- type UpdateConnectionState
- type UpdateDefaultReactionType
- func (*UpdateDefaultReactionType) GetClass() string
- func (*UpdateDefaultReactionType) GetType() string
- func (entity *UpdateDefaultReactionType) MarshalJSON() ([]byte, error)
- func (updateDefaultReactionType *UpdateDefaultReactionType) UnmarshalJSON(data []byte) error
- func (*UpdateDefaultReactionType) UpdateType() string
- type UpdateDeleteMessages
- type UpdateDiceEmojis
- type UpdateFavoriteStickers
- type UpdateFile
- type UpdateFileAddedToDownloads
- type UpdateFileDownload
- type UpdateFileDownloads
- type UpdateFileGenerationStart
- type UpdateFileGenerationStop
- type UpdateFileRemovedFromDownloads
- type UpdateForumTopicInfo
- type UpdateGroupCall
- type UpdateGroupCallParticipant
- type UpdateHavePendingNotifications
- type UpdateInstalledStickerSets
- func (*UpdateInstalledStickerSets) GetClass() string
- func (*UpdateInstalledStickerSets) GetType() string
- func (entity *UpdateInstalledStickerSets) MarshalJSON() ([]byte, error)
- func (updateInstalledStickerSets *UpdateInstalledStickerSets) UnmarshalJSON(data []byte) error
- func (*UpdateInstalledStickerSets) UpdateType() string
- type UpdateLanguagePackStrings
- type UpdateMessageContent
- type UpdateMessageContentOpened
- type UpdateMessageEdited
- type UpdateMessageInteractionInfo
- type UpdateMessageIsPinned
- type UpdateMessageLiveLocationViewed
- type UpdateMessageMentionRead
- type UpdateMessageSendAcknowledged
- type UpdateMessageSendFailed
- type UpdateMessageSendSucceeded
- type UpdateMessageUnreadReactions
- type UpdateNewCallSignalingData
- type UpdateNewCallbackQuery
- func (*UpdateNewCallbackQuery) GetClass() string
- func (*UpdateNewCallbackQuery) GetType() string
- func (entity *UpdateNewCallbackQuery) MarshalJSON() ([]byte, error)
- func (updateNewCallbackQuery *UpdateNewCallbackQuery) UnmarshalJSON(data []byte) error
- func (*UpdateNewCallbackQuery) UpdateType() string
- type UpdateNewChat
- type UpdateNewChatJoinRequest
- type UpdateNewChosenInlineResult
- type UpdateNewCustomEvent
- type UpdateNewCustomQuery
- type UpdateNewInlineCallbackQuery
- func (*UpdateNewInlineCallbackQuery) GetClass() string
- func (*UpdateNewInlineCallbackQuery) GetType() string
- func (entity *UpdateNewInlineCallbackQuery) MarshalJSON() ([]byte, error)
- func (updateNewInlineCallbackQuery *UpdateNewInlineCallbackQuery) UnmarshalJSON(data []byte) error
- func (*UpdateNewInlineCallbackQuery) UpdateType() string
- type UpdateNewInlineQuery
- type UpdateNewMessage
- type UpdateNewPreCheckoutQuery
- type UpdateNewShippingQuery
- type UpdateNotification
- type UpdateNotificationGroup
- func (*UpdateNotificationGroup) GetClass() string
- func (*UpdateNotificationGroup) GetType() string
- func (entity *UpdateNotificationGroup) MarshalJSON() ([]byte, error)
- func (updateNotificationGroup *UpdateNotificationGroup) UnmarshalJSON(data []byte) error
- func (*UpdateNotificationGroup) UpdateType() string
- type UpdateOption
- type UpdatePoll
- type UpdatePollAnswer
- type UpdateRecentStickers
- type UpdateSavedAnimations
- type UpdateSavedNotificationSounds
- type UpdateScopeNotificationSettings
- func (*UpdateScopeNotificationSettings) GetClass() string
- func (*UpdateScopeNotificationSettings) GetType() string
- func (entity *UpdateScopeNotificationSettings) MarshalJSON() ([]byte, error)
- func (updateScopeNotificationSettings *UpdateScopeNotificationSettings) UnmarshalJSON(data []byte) error
- func (*UpdateScopeNotificationSettings) UpdateType() string
- type UpdateSecretChat
- type UpdateSelectedBackground
- type UpdateServiceNotification
- func (*UpdateServiceNotification) GetClass() string
- func (*UpdateServiceNotification) GetType() string
- func (entity *UpdateServiceNotification) MarshalJSON() ([]byte, error)
- func (updateServiceNotification *UpdateServiceNotification) UnmarshalJSON(data []byte) error
- func (*UpdateServiceNotification) UpdateType() string
- type UpdateStickerSet
- type UpdateStory
- type UpdateStoryDeleted
- type UpdateStoryListChatCount
- func (*UpdateStoryListChatCount) GetClass() string
- func (*UpdateStoryListChatCount) GetType() string
- func (entity *UpdateStoryListChatCount) MarshalJSON() ([]byte, error)
- func (updateStoryListChatCount *UpdateStoryListChatCount) UnmarshalJSON(data []byte) error
- func (*UpdateStoryListChatCount) UpdateType() string
- type UpdateStorySendFailed
- type UpdateStorySendSucceeded
- type UpdateStoryStealthMode
- type UpdateSuggestedActions
- func (*UpdateSuggestedActions) GetClass() string
- func (*UpdateSuggestedActions) GetType() string
- func (entity *UpdateSuggestedActions) MarshalJSON() ([]byte, error)
- func (updateSuggestedActions *UpdateSuggestedActions) UnmarshalJSON(data []byte) error
- func (*UpdateSuggestedActions) UpdateType() string
- type UpdateSupergroup
- type UpdateSupergroupFullInfo
- type UpdateTermsOfService
- type UpdateTrendingStickerSets
- func (*UpdateTrendingStickerSets) GetClass() string
- func (*UpdateTrendingStickerSets) GetType() string
- func (entity *UpdateTrendingStickerSets) MarshalJSON() ([]byte, error)
- func (updateTrendingStickerSets *UpdateTrendingStickerSets) UnmarshalJSON(data []byte) error
- func (*UpdateTrendingStickerSets) UpdateType() string
- type UpdateUnconfirmedSession
- type UpdateUnreadChatCount
- type UpdateUnreadMessageCount
- func (*UpdateUnreadMessageCount) GetClass() string
- func (*UpdateUnreadMessageCount) GetType() string
- func (entity *UpdateUnreadMessageCount) MarshalJSON() ([]byte, error)
- func (updateUnreadMessageCount *UpdateUnreadMessageCount) UnmarshalJSON(data []byte) error
- func (*UpdateUnreadMessageCount) UpdateType() string
- type UpdateUser
- type UpdateUserFullInfo
- type UpdateUserPrivacySettingRules
- func (*UpdateUserPrivacySettingRules) GetClass() string
- func (*UpdateUserPrivacySettingRules) GetType() string
- func (entity *UpdateUserPrivacySettingRules) MarshalJSON() ([]byte, error)
- func (updateUserPrivacySettingRules *UpdateUserPrivacySettingRules) UnmarshalJSON(data []byte) error
- func (*UpdateUserPrivacySettingRules) UpdateType() string
- type UpdateUserStatus
- type UpdateUsersNearby
- type UpdateWebAppMessageSent
- type Updates
- type UpgradeBasicGroupChatToSupergroupChatRequest
- type UploadStickerFileRequest
- type User
- type UserFullInfo
- type UserLink
- type UserPrivacySetting
- type UserPrivacySettingAllowCalls
- type UserPrivacySettingAllowChatInvites
- type UserPrivacySettingAllowFindingByPhoneNumber
- func (*UserPrivacySettingAllowFindingByPhoneNumber) GetClass() string
- func (*UserPrivacySettingAllowFindingByPhoneNumber) GetType() string
- func (entity *UserPrivacySettingAllowFindingByPhoneNumber) MarshalJSON() ([]byte, error)
- func (*UserPrivacySettingAllowFindingByPhoneNumber) UserPrivacySettingType() string
- type UserPrivacySettingAllowPeerToPeerCalls
- type UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages
- func (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) GetClass() string
- func (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) GetType() string
- func (entity *UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) MarshalJSON() ([]byte, error)
- func (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) UserPrivacySettingType() string
- type UserPrivacySettingRule
- type UserPrivacySettingRuleAllowAll
- type UserPrivacySettingRuleAllowChatMembers
- type UserPrivacySettingRuleAllowContacts
- type UserPrivacySettingRuleAllowUsers
- type UserPrivacySettingRuleRestrictAll
- type UserPrivacySettingRuleRestrictChatMembers
- func (*UserPrivacySettingRuleRestrictChatMembers) GetClass() string
- func (*UserPrivacySettingRuleRestrictChatMembers) GetType() string
- func (entity *UserPrivacySettingRuleRestrictChatMembers) MarshalJSON() ([]byte, error)
- func (*UserPrivacySettingRuleRestrictChatMembers) UserPrivacySettingRuleType() string
- type UserPrivacySettingRuleRestrictContacts
- type UserPrivacySettingRuleRestrictUsers
- type UserPrivacySettingRules
- type UserPrivacySettingShowBio
- type UserPrivacySettingShowLinkInForwardedMessages
- func (*UserPrivacySettingShowLinkInForwardedMessages) GetClass() string
- func (*UserPrivacySettingShowLinkInForwardedMessages) GetType() string
- func (entity *UserPrivacySettingShowLinkInForwardedMessages) MarshalJSON() ([]byte, error)
- func (*UserPrivacySettingShowLinkInForwardedMessages) UserPrivacySettingType() string
- type UserPrivacySettingShowPhoneNumber
- type UserPrivacySettingShowProfilePhoto
- type UserPrivacySettingShowStatus
- type UserStatus
- type UserStatusEmpty
- type UserStatusLastMonth
- type UserStatusLastWeek
- type UserStatusOffline
- type UserStatusOnline
- type UserStatusRecently
- type UserSupportInfo
- type UserType
- type UserTypeBot
- type UserTypeDeleted
- type UserTypeRegular
- type UserTypeUnknown
- type Usernames
- type Users
- type ValidateOrderInfoRequest
- type ValidatedOrderInfo
- type VectorPathCommand
- type VectorPathCommandCubicBezierCurve
- type VectorPathCommandLine
- type Venue
- type Video
- type VideoChat
- type VideoNote
- type ViewMessagesRequest
- type ViewPremiumFeatureRequest
- type ViewTrendingStickerSetsRequest
- type VoiceNote
- type WebApp
- type WebAppInfo
- type WebPage
- type WebPageInstantView
- type WriteGeneratedFilePartRequest
Constants ¶
const ( ClassAuthenticationCodeType = "AuthenticationCodeType" ClassEmailAddressAuthentication = "EmailAddressAuthentication" ClassEmailAddressResetState = "EmailAddressResetState" ClassAuthorizationState = "AuthorizationState" ClassInputFile = "InputFile" ClassThumbnailFormat = "ThumbnailFormat" ClassMaskPoint = "MaskPoint" ClassStickerFormat = "StickerFormat" ClassStickerType = "StickerType" ClassStickerFullType = "StickerFullType" ClassPollType = "PollType" ClassUserType = "UserType" ClassChatPhotoStickerType = "ChatPhotoStickerType" ClassInputChatPhoto = "InputChatPhoto" ClassChatMemberStatus = "ChatMemberStatus" ClassChatMembersFilter = "ChatMembersFilter" ClassSupergroupMembersFilter = "SupergroupMembersFilter" ClassInviteLinkChatType = "InviteLinkChatType" ClassSecretChatState = "SecretChatState" ClassMessageSender = "MessageSender" ClassMessageForwardOrigin = "MessageForwardOrigin" ClassReactionType = "ReactionType" ClassMessageSendingState = "MessageSendingState" ClassMessageReplyTo = "MessageReplyTo" ClassMessageSource = "MessageSource" ClassMessageSponsorType = "MessageSponsorType" ClassNotificationSettingsScope = "NotificationSettingsScope" ClassChatType = "ChatType" ClassChatList = "ChatList" ClassChatSource = "ChatSource" ClassChatAvailableReactions = "ChatAvailableReactions" ClassPublicChatType = "PublicChatType" ClassChatActionBar = "ChatActionBar" ClassKeyboardButtonType = "KeyboardButtonType" ClassInlineKeyboardButtonType = "InlineKeyboardButtonType" ClassReplyMarkup = "ReplyMarkup" ClassLoginUrlInfo = "LoginUrlInfo" ClassRichText = "RichText" ClassPageBlockHorizontalAlignment = "PageBlockHorizontalAlignment" ClassPageBlockVerticalAlignment = "PageBlockVerticalAlignment" ClassPageBlock = "PageBlock" ClassInputCredentials = "InputCredentials" ClassPaymentProvider = "PaymentProvider" ClassInputInvoice = "InputInvoice" ClassMessageExtendedMedia = "MessageExtendedMedia" ClassPassportElementType = "PassportElementType" ClassPassportElement = "PassportElement" ClassInputPassportElement = "InputPassportElement" ClassPassportElementErrorSource = "PassportElementErrorSource" ClassInputPassportElementErrorSource = "InputPassportElementErrorSource" ClassMessageContent = "MessageContent" ClassTextEntityType = "TextEntityType" ClassMessageSchedulingState = "MessageSchedulingState" ClassMessageSelfDestructType = "MessageSelfDestructType" ClassInputMessageContent = "InputMessageContent" ClassSearchMessagesFilter = "SearchMessagesFilter" ClassChatAction = "ChatAction" ClassUserStatus = "UserStatus" ClassEmojiCategoryType = "EmojiCategoryType" ClassStoryAreaType = "StoryAreaType" ClassInputStoryAreaType = "InputStoryAreaType" ClassStoryContent = "StoryContent" ClassInputStoryContent = "InputStoryContent" ClassStoryList = "StoryList" ClassCallDiscardReason = "CallDiscardReason" ClassCallServerType = "CallServerType" ClassCallState = "CallState" ClassGroupCallVideoQuality = "GroupCallVideoQuality" ClassCallProblem = "CallProblem" ClassFirebaseAuthenticationSettings = "FirebaseAuthenticationSettings" ClassDiceStickers = "DiceStickers" ClassSpeechRecognitionResult = "SpeechRecognitionResult" ClassInputInlineQueryResult = "InputInlineQueryResult" ClassInlineQueryResult = "InlineQueryResult" ClassInlineQueryResultsButtonType = "InlineQueryResultsButtonType" ClassCallbackQueryPayload = "CallbackQueryPayload" ClassChatEventAction = "ChatEventAction" ClassLanguagePackStringValue = "LanguagePackStringValue" ClassPremiumLimitType = "PremiumLimitType" ClassPremiumFeature = "PremiumFeature" ClassPremiumStoryFeature = "PremiumStoryFeature" ClassPremiumSource = "PremiumSource" ClassStorePaymentPurpose = "StorePaymentPurpose" ClassDeviceToken = "DeviceToken" ClassBackgroundFill = "BackgroundFill" ClassBackgroundType = "BackgroundType" ClassInputBackground = "InputBackground" ClassCanSendStoryResult = "CanSendStoryResult" ClassCanTransferOwnershipResult = "CanTransferOwnershipResult" ClassCheckChatUsernameResult = "CheckChatUsernameResult" ClassCheckStickerSetNameResult = "CheckStickerSetNameResult" ClassResetPasswordResult = "ResetPasswordResult" ClassMessageFileType = "MessageFileType" ClassPushMessageContent = "PushMessageContent" ClassNotificationType = "NotificationType" ClassNotificationGroupType = "NotificationGroupType" ClassOptionValue = "OptionValue" ClassJsonValue = "JsonValue" ClassStoryPrivacySettings = "StoryPrivacySettings" ClassUserPrivacySettingRule = "UserPrivacySettingRule" ClassUserPrivacySetting = "UserPrivacySetting" ClassSessionType = "SessionType" ClassReportReason = "ReportReason" ClassTargetChat = "TargetChat" ClassInternalLinkType = "InternalLinkType" ClassBlockList = "BlockList" ClassFileType = "FileType" ClassNetworkType = "NetworkType" ClassNetworkStatisticsEntry = "NetworkStatisticsEntry" ClassAutosaveSettingsScope = "AutosaveSettingsScope" ClassConnectionState = "ConnectionState" ClassTopChatCategory = "TopChatCategory" ClassTMeUrlType = "TMeUrlType" ClassSuggestedAction = "SuggestedAction" ClassTextParseMode = "TextParseMode" ClassProxyType = "ProxyType" ClassStatisticalGraph = "StatisticalGraph" ClassChatStatistics = "ChatStatistics" ClassVectorPathCommand = "VectorPathCommand" ClassBotCommandScope = "BotCommandScope" ClassUpdate = "Update" ClassLogStream = "LogStream" ClassError = "Error" ClassOk = "Ok" ClassAuthenticationCodeInfo = "AuthenticationCodeInfo" ClassEmailAddressAuthenticationCodeInfo = "EmailAddressAuthenticationCodeInfo" ClassTextEntity = "TextEntity" ClassTextEntities = "TextEntities" ClassFormattedText = "FormattedText" ClassTermsOfService = "TermsOfService" ClassPasswordState = "PasswordState" ClassRecoveryEmailAddress = "RecoveryEmailAddress" ClassTemporaryPasswordState = "TemporaryPasswordState" ClassLocalFile = "LocalFile" ClassRemoteFile = "RemoteFile" ClassFile = "File" ClassPhotoSize = "PhotoSize" ClassMinithumbnail = "Minithumbnail" ClassThumbnail = "Thumbnail" ClassMaskPosition = "MaskPosition" ClassClosedVectorPath = "ClosedVectorPath" ClassPollOption = "PollOption" ClassAnimation = "Animation" ClassAudio = "Audio" ClassDocument = "Document" ClassPhoto = "Photo" ClassSticker = "Sticker" ClassVideo = "Video" ClassVideoNote = "VideoNote" ClassVoiceNote = "VoiceNote" ClassAnimatedEmoji = "AnimatedEmoji" ClassContact = "Contact" ClassLocation = "Location" ClassVenue = "Venue" ClassGame = "Game" ClassWebApp = "WebApp" ClassPoll = "Poll" ClassBackground = "Background" ClassBackgrounds = "Backgrounds" ClassChatBackground = "ChatBackground" ClassProfilePhoto = "ProfilePhoto" ClassChatPhotoInfo = "ChatPhotoInfo" ClassBotCommand = "BotCommand" ClassBotCommands = "BotCommands" ClassBotMenuButton = "BotMenuButton" ClassChatLocation = "ChatLocation" ClassChatPhotoSticker = "ChatPhotoSticker" ClassAnimatedChatPhoto = "AnimatedChatPhoto" ClassChatPhoto = "ChatPhoto" ClassChatPhotos = "ChatPhotos" ClassChatPermissions = "ChatPermissions" ClassChatAdministratorRights = "ChatAdministratorRights" ClassPremiumPaymentOption = "PremiumPaymentOption" ClassPremiumStatePaymentOption = "PremiumStatePaymentOption" ClassEmojiStatus = "EmojiStatus" ClassEmojiStatuses = "EmojiStatuses" ClassUsernames = "Usernames" ClassUser = "User" ClassBotInfo = "BotInfo" ClassUserFullInfo = "UserFullInfo" ClassUsers = "Users" ClassChatAdministrator = "ChatAdministrator" ClassChatAdministrators = "ChatAdministrators" ClassChatMember = "ChatMember" ClassChatMembers = "ChatMembers" ClassChatInviteLink = "ChatInviteLink" ClassChatInviteLinks = "ChatInviteLinks" ClassChatInviteLinkCount = "ChatInviteLinkCount" ClassChatInviteLinkCounts = "ChatInviteLinkCounts" ClassChatInviteLinkMember = "ChatInviteLinkMember" ClassChatInviteLinkMembers = "ChatInviteLinkMembers" ClassChatInviteLinkInfo = "ChatInviteLinkInfo" ClassChatJoinRequest = "ChatJoinRequest" ClassChatJoinRequests = "ChatJoinRequests" ClassChatJoinRequestsInfo = "ChatJoinRequestsInfo" ClassBasicGroup = "BasicGroup" ClassBasicGroupFullInfo = "BasicGroupFullInfo" ClassSupergroup = "Supergroup" ClassSupergroupFullInfo = "SupergroupFullInfo" ClassSecretChat = "SecretChat" ClassMessageSenders = "MessageSenders" ClassChatMessageSender = "ChatMessageSender" ClassChatMessageSenders = "ChatMessageSenders" ClassMessageViewer = "MessageViewer" ClassMessageViewers = "MessageViewers" ClassMessageForwardInfo = "MessageForwardInfo" ClassMessageReplyInfo = "MessageReplyInfo" ClassMessageReaction = "MessageReaction" ClassMessageInteractionInfo = "MessageInteractionInfo" ClassUnreadReaction = "UnreadReaction" ClassMessage = "Message" ClassMessages = "Messages" ClassFoundMessages = "FoundMessages" ClassFoundChatMessages = "FoundChatMessages" ClassMessagePosition = "MessagePosition" ClassMessagePositions = "MessagePositions" ClassMessageCalendarDay = "MessageCalendarDay" ClassMessageCalendar = "MessageCalendar" ClassMessageSponsor = "MessageSponsor" ClassSponsoredMessage = "SponsoredMessage" ClassSponsoredMessages = "SponsoredMessages" ClassFileDownload = "FileDownload" ClassDownloadedFileCounts = "DownloadedFileCounts" ClassFoundFileDownloads = "FoundFileDownloads" ClassChatNotificationSettings = "ChatNotificationSettings" ClassScopeNotificationSettings = "ScopeNotificationSettings" ClassDraftMessage = "DraftMessage" ClassChatFolderIcon = "ChatFolderIcon" ClassChatFolder = "ChatFolder" ClassChatFolderInfo = "ChatFolderInfo" ClassChatFolderInviteLink = "ChatFolderInviteLink" ClassChatFolderInviteLinks = "ChatFolderInviteLinks" ClassChatFolderInviteLinkInfo = "ChatFolderInviteLinkInfo" ClassRecommendedChatFolder = "RecommendedChatFolder" ClassRecommendedChatFolders = "RecommendedChatFolders" ClassArchiveChatListSettings = "ArchiveChatListSettings" ClassChatLists = "ChatLists" ClassChatPosition = "ChatPosition" ClassVideoChat = "VideoChat" ClassChat = "Chat" ClassChats = "Chats" ClassChatNearby = "ChatNearby" ClassChatsNearby = "ChatsNearby" ClassKeyboardButton = "KeyboardButton" ClassInlineKeyboardButton = "InlineKeyboardButton" ClassFoundWebApp = "FoundWebApp" ClassWebAppInfo = "WebAppInfo" ClassMessageThreadInfo = "MessageThreadInfo" ClassForumTopicIcon = "ForumTopicIcon" ClassForumTopicInfo = "ForumTopicInfo" ClassForumTopic = "ForumTopic" ClassForumTopics = "ForumTopics" ClassPageBlockCaption = "PageBlockCaption" ClassPageBlockListItem = "PageBlockListItem" ClassPageBlockTableCell = "PageBlockTableCell" ClassPageBlockRelatedArticle = "PageBlockRelatedArticle" ClassWebPageInstantView = "WebPageInstantView" ClassWebPage = "WebPage" ClassCountryInfo = "CountryInfo" ClassCountries = "Countries" ClassPhoneNumberInfo = "PhoneNumberInfo" ClassBankCardActionOpenUrl = "BankCardActionOpenUrl" ClassBankCardInfo = "BankCardInfo" ClassAddress = "Address" ClassThemeParameters = "ThemeParameters" ClassLabeledPricePart = "LabeledPricePart" ClassInvoice = "Invoice" ClassOrderInfo = "OrderInfo" ClassShippingOption = "ShippingOption" ClassSavedCredentials = "SavedCredentials" ClassPaymentOption = "PaymentOption" ClassPaymentForm = "PaymentForm" ClassValidatedOrderInfo = "ValidatedOrderInfo" ClassPaymentResult = "PaymentResult" ClassPaymentReceipt = "PaymentReceipt" ClassDatedFile = "DatedFile" ClassDate = "Date" ClassPersonalDetails = "PersonalDetails" ClassIdentityDocument = "IdentityDocument" ClassInputIdentityDocument = "InputIdentityDocument" ClassPersonalDocument = "PersonalDocument" ClassInputPersonalDocument = "InputPersonalDocument" ClassPassportElements = "PassportElements" ClassPassportElementError = "PassportElementError" ClassPassportSuitableElement = "PassportSuitableElement" ClassPassportRequiredElement = "PassportRequiredElement" ClassPassportAuthorizationForm = "PassportAuthorizationForm" ClassPassportElementsWithErrors = "PassportElementsWithErrors" ClassEncryptedCredentials = "EncryptedCredentials" ClassEncryptedPassportElement = "EncryptedPassportElement" ClassInputPassportElementError = "InputPassportElementError" ClassInputThumbnail = "InputThumbnail" ClassMessageSendOptions = "MessageSendOptions" ClassMessageCopyOptions = "MessageCopyOptions" ClassStickers = "Stickers" ClassEmojis = "Emojis" ClassStickerSet = "StickerSet" ClassStickerSetInfo = "StickerSetInfo" ClassStickerSets = "StickerSets" ClassTrendingStickerSets = "TrendingStickerSets" ClassEmojiCategory = "EmojiCategory" ClassEmojiCategories = "EmojiCategories" ClassStoryViewer = "StoryViewer" ClassStoryViewers = "StoryViewers" ClassStoryAreaPosition = "StoryAreaPosition" ClassStoryArea = "StoryArea" ClassInputStoryArea = "InputStoryArea" ClassInputStoryAreas = "InputStoryAreas" ClassStoryVideo = "StoryVideo" ClassStoryInteractionInfo = "StoryInteractionInfo" ClassStory = "Story" ClassStories = "Stories" ClassStoryInfo = "StoryInfo" ClassChatActiveStories = "ChatActiveStories" ClassCallProtocol = "CallProtocol" ClassCallServer = "CallServer" ClassCallId = "CallId" ClassGroupCallId = "GroupCallId" ClassGroupCallStream = "GroupCallStream" ClassGroupCallStreams = "GroupCallStreams" ClassRtmpUrl = "RtmpUrl" ClassGroupCallRecentSpeaker = "GroupCallRecentSpeaker" ClassGroupCall = "GroupCall" ClassGroupCallVideoSourceGroup = "GroupCallVideoSourceGroup" ClassGroupCallParticipantVideoInfo = "GroupCallParticipantVideoInfo" ClassGroupCallParticipant = "GroupCallParticipant" ClassCall = "Call" ClassPhoneNumberAuthenticationSettings = "PhoneNumberAuthenticationSettings" ClassAddedReaction = "AddedReaction" ClassAddedReactions = "AddedReactions" ClassAvailableReaction = "AvailableReaction" ClassAvailableReactions = "AvailableReactions" ClassEmojiReaction = "EmojiReaction" ClassAnimations = "Animations" ClassImportedContacts = "ImportedContacts" ClassAttachmentMenuBotColor = "AttachmentMenuBotColor" ClassAttachmentMenuBot = "AttachmentMenuBot" ClassSentWebAppMessage = "SentWebAppMessage" ClassHttpUrl = "HttpUrl" ClassUserLink = "UserLink" ClassInlineQueryResultsButton = "InlineQueryResultsButton" ClassInlineQueryResults = "InlineQueryResults" ClassCallbackQueryAnswer = "CallbackQueryAnswer" ClassCustomRequestResult = "CustomRequestResult" ClassGameHighScore = "GameHighScore" ClassGameHighScores = "GameHighScores" ClassChatEvent = "ChatEvent" ClassChatEvents = "ChatEvents" ClassChatEventLogFilters = "ChatEventLogFilters" ClassLanguagePackString = "LanguagePackString" ClassLanguagePackStrings = "LanguagePackStrings" ClassLanguagePackInfo = "LanguagePackInfo" ClassLocalizationTargetInfo = "LocalizationTargetInfo" ClassPremiumLimit = "PremiumLimit" ClassPremiumFeatures = "PremiumFeatures" ClassPremiumFeaturePromotionAnimation = "PremiumFeaturePromotionAnimation" ClassPremiumState = "PremiumState" ClassPushReceiverId = "PushReceiverId" ClassThemeSettings = "ThemeSettings" ClassChatTheme = "ChatTheme" ClassNotificationSound = "NotificationSound" ClassNotificationSounds = "NotificationSounds" ClassNotification = "Notification" ClassNotificationGroup = "NotificationGroup" ClassJsonObjectMember = "JsonObjectMember" ClassUserPrivacySettingRules = "UserPrivacySettingRules" ClassAccountTtl = "AccountTtl" ClassMessageAutoDeleteTime = "MessageAutoDeleteTime" ClassSession = "Session" ClassSessions = "Sessions" ClassUnconfirmedSession = "UnconfirmedSession" ClassConnectedWebsite = "ConnectedWebsite" ClassConnectedWebsites = "ConnectedWebsites" ClassMessageLink = "MessageLink" ClassMessageLinkInfo = "MessageLinkInfo" ClassFilePart = "FilePart" ClassStorageStatisticsByFileType = "StorageStatisticsByFileType" ClassStorageStatisticsByChat = "StorageStatisticsByChat" ClassStorageStatistics = "StorageStatistics" ClassStorageStatisticsFast = "StorageStatisticsFast" ClassDatabaseStatistics = "DatabaseStatistics" ClassNetworkStatistics = "NetworkStatistics" ClassAutoDownloadSettings = "AutoDownloadSettings" ClassAutoDownloadSettingsPresets = "AutoDownloadSettingsPresets" ClassScopeAutosaveSettings = "ScopeAutosaveSettings" ClassAutosaveSettingsException = "AutosaveSettingsException" ClassAutosaveSettings = "AutosaveSettings" ClassFoundPositions = "FoundPositions" ClassTMeUrl = "TMeUrl" ClassTMeUrls = "TMeUrls" ClassCount = "Count" ClassText = "Text" ClassSeconds = "Seconds" ClassFileDownloadedPrefixSize = "FileDownloadedPrefixSize" ClassDeepLinkInfo = "DeepLinkInfo" ClassProxy = "Proxy" ClassProxies = "Proxies" ClassInputSticker = "InputSticker" ClassDateRange = "DateRange" ClassStatisticalValue = "StatisticalValue" ClassChatStatisticsMessageInteractionInfo = "ChatStatisticsMessageInteractionInfo" ClassChatStatisticsMessageSenderInfo = "ChatStatisticsMessageSenderInfo" ClassChatStatisticsAdministratorActionsInfo = "ChatStatisticsAdministratorActionsInfo" ClassChatStatisticsInviterInfo = "ChatStatisticsInviterInfo" ClassMessageStatistics = "MessageStatistics" ClassPoint = "Point" ClassUpdates = "Updates" ClassLogVerbosityLevel = "LogVerbosityLevel" ClassLogTags = "LogTags" ClassUserSupportInfo = "UserSupportInfo" ClassTestInt = "TestInt" ClassTestString = "TestString" ClassTestBytes = "TestBytes" ClassTestVectorInt = "TestVectorInt" ClassTestVectorIntObject = "TestVectorIntObject" ClassTestVectorString = "TestVectorString" ClassTestVectorStringObject = "TestVectorStringObject" )
const ( TypeError = "error" TypeOk = "ok" TypeAuthenticationCodeTypeTelegramMessage = "authenticationCodeTypeTelegramMessage" TypeAuthenticationCodeTypeSms = "authenticationCodeTypeSms" TypeAuthenticationCodeTypeCall = "authenticationCodeTypeCall" TypeAuthenticationCodeTypeFlashCall = "authenticationCodeTypeFlashCall" TypeAuthenticationCodeTypeMissedCall = "authenticationCodeTypeMissedCall" TypeAuthenticationCodeTypeFragment = "authenticationCodeTypeFragment" TypeAuthenticationCodeTypeFirebaseAndroid = "authenticationCodeTypeFirebaseAndroid" TypeAuthenticationCodeTypeFirebaseIos = "authenticationCodeTypeFirebaseIos" TypeAuthenticationCodeInfo = "authenticationCodeInfo" TypeEmailAddressAuthenticationCodeInfo = "emailAddressAuthenticationCodeInfo" TypeEmailAddressAuthenticationCode = "emailAddressAuthenticationCode" TypeEmailAddressAuthenticationAppleId = "emailAddressAuthenticationAppleId" TypeEmailAddressAuthenticationGoogleId = "emailAddressAuthenticationGoogleId" TypeEmailAddressResetStateAvailable = "emailAddressResetStateAvailable" TypeEmailAddressResetStatePending = "emailAddressResetStatePending" TypeTextEntity = "textEntity" TypeTextEntities = "textEntities" TypeFormattedText = "formattedText" TypeTermsOfService = "termsOfService" TypeAuthorizationStateWaitTdlibParameters = "authorizationStateWaitTdlibParameters" TypeAuthorizationStateWaitPhoneNumber = "authorizationStateWaitPhoneNumber" TypeAuthorizationStateWaitEmailAddress = "authorizationStateWaitEmailAddress" TypeAuthorizationStateWaitEmailCode = "authorizationStateWaitEmailCode" TypeAuthorizationStateWaitCode = "authorizationStateWaitCode" TypeAuthorizationStateWaitOtherDeviceConfirmation = "authorizationStateWaitOtherDeviceConfirmation" TypeAuthorizationStateWaitRegistration = "authorizationStateWaitRegistration" TypeAuthorizationStateWaitPassword = "authorizationStateWaitPassword" TypeAuthorizationStateReady = "authorizationStateReady" TypeAuthorizationStateLoggingOut = "authorizationStateLoggingOut" TypeAuthorizationStateClosing = "authorizationStateClosing" TypeAuthorizationStateClosed = "authorizationStateClosed" TypePasswordState = "passwordState" TypeRecoveryEmailAddress = "recoveryEmailAddress" TypeTemporaryPasswordState = "temporaryPasswordState" TypeLocalFile = "localFile" TypeRemoteFile = "remoteFile" TypeFile = "file" TypeInputFileId = "inputFileId" TypeInputFileRemote = "inputFileRemote" TypeInputFileLocal = "inputFileLocal" TypeInputFileGenerated = "inputFileGenerated" TypePhotoSize = "photoSize" TypeMinithumbnail = "minithumbnail" TypeThumbnailFormatJpeg = "thumbnailFormatJpeg" TypeThumbnailFormatGif = "thumbnailFormatGif" TypeThumbnailFormatMpeg4 = "thumbnailFormatMpeg4" TypeThumbnailFormatPng = "thumbnailFormatPng" TypeThumbnailFormatTgs = "thumbnailFormatTgs" TypeThumbnailFormatWebm = "thumbnailFormatWebm" TypeThumbnailFormatWebp = "thumbnailFormatWebp" TypeThumbnail = "thumbnail" TypeMaskPointForehead = "maskPointForehead" TypeMaskPointEyes = "maskPointEyes" TypeMaskPointMouth = "maskPointMouth" TypeMaskPointChin = "maskPointChin" TypeMaskPosition = "maskPosition" TypeStickerFormatWebp = "stickerFormatWebp" TypeStickerFormatTgs = "stickerFormatTgs" TypeStickerFormatWebm = "stickerFormatWebm" TypeStickerTypeRegular = "stickerTypeRegular" TypeStickerTypeMask = "stickerTypeMask" TypeStickerTypeCustomEmoji = "stickerTypeCustomEmoji" TypeStickerFullTypeRegular = "stickerFullTypeRegular" TypeStickerFullTypeMask = "stickerFullTypeMask" TypeStickerFullTypeCustomEmoji = "stickerFullTypeCustomEmoji" TypeClosedVectorPath = "closedVectorPath" TypePollOption = "pollOption" TypePollTypeRegular = "pollTypeRegular" TypePollTypeQuiz = "pollTypeQuiz" TypeAnimation = "animation" TypeAudio = "audio" TypeDocument = "document" TypePhoto = "photo" TypeSticker = "sticker" TypeVideo = "video" TypeVideoNote = "videoNote" TypeVoiceNote = "voiceNote" TypeAnimatedEmoji = "animatedEmoji" TypeContact = "contact" TypeLocation = "location" TypeVenue = "venue" TypeGame = "game" TypeWebApp = "webApp" TypePoll = "poll" TypeBackground = "background" TypeBackgrounds = "backgrounds" TypeChatBackground = "chatBackground" TypeProfilePhoto = "profilePhoto" TypeChatPhotoInfo = "chatPhotoInfo" TypeUserTypeRegular = "userTypeRegular" TypeUserTypeDeleted = "userTypeDeleted" TypeUserTypeBot = "userTypeBot" TypeUserTypeUnknown = "userTypeUnknown" TypeBotCommand = "botCommand" TypeBotCommands = "botCommands" TypeBotMenuButton = "botMenuButton" TypeChatLocation = "chatLocation" TypeChatPhotoStickerTypeRegularOrMask = "chatPhotoStickerTypeRegularOrMask" TypeChatPhotoStickerTypeCustomEmoji = "chatPhotoStickerTypeCustomEmoji" TypeChatPhotoSticker = "chatPhotoSticker" TypeAnimatedChatPhoto = "animatedChatPhoto" TypeChatPhoto = "chatPhoto" TypeChatPhotos = "chatPhotos" TypeInputChatPhotoPrevious = "inputChatPhotoPrevious" TypeInputChatPhotoStatic = "inputChatPhotoStatic" TypeInputChatPhotoAnimation = "inputChatPhotoAnimation" TypeInputChatPhotoSticker = "inputChatPhotoSticker" TypeChatPermissions = "chatPermissions" TypeChatAdministratorRights = "chatAdministratorRights" TypePremiumPaymentOption = "premiumPaymentOption" TypePremiumStatePaymentOption = "premiumStatePaymentOption" TypeEmojiStatus = "emojiStatus" TypeEmojiStatuses = "emojiStatuses" TypeUsernames = "usernames" TypeUser = "user" TypeBotInfo = "botInfo" TypeUserFullInfo = "userFullInfo" TypeUsers = "users" TypeChatAdministrator = "chatAdministrator" TypeChatAdministrators = "chatAdministrators" TypeChatMemberStatusCreator = "chatMemberStatusCreator" TypeChatMemberStatusAdministrator = "chatMemberStatusAdministrator" TypeChatMemberStatusMember = "chatMemberStatusMember" TypeChatMemberStatusRestricted = "chatMemberStatusRestricted" TypeChatMemberStatusLeft = "chatMemberStatusLeft" TypeChatMemberStatusBanned = "chatMemberStatusBanned" TypeChatMember = "chatMember" TypeChatMembers = "chatMembers" TypeChatMembersFilterContacts = "chatMembersFilterContacts" TypeChatMembersFilterAdministrators = "chatMembersFilterAdministrators" TypeChatMembersFilterMembers = "chatMembersFilterMembers" TypeChatMembersFilterMention = "chatMembersFilterMention" TypeChatMembersFilterRestricted = "chatMembersFilterRestricted" TypeChatMembersFilterBanned = "chatMembersFilterBanned" TypeChatMembersFilterBots = "chatMembersFilterBots" TypeSupergroupMembersFilterRecent = "supergroupMembersFilterRecent" TypeSupergroupMembersFilterContacts = "supergroupMembersFilterContacts" TypeSupergroupMembersFilterAdministrators = "supergroupMembersFilterAdministrators" TypeSupergroupMembersFilterSearch = "supergroupMembersFilterSearch" TypeSupergroupMembersFilterRestricted = "supergroupMembersFilterRestricted" TypeSupergroupMembersFilterBanned = "supergroupMembersFilterBanned" TypeSupergroupMembersFilterMention = "supergroupMembersFilterMention" TypeSupergroupMembersFilterBots = "supergroupMembersFilterBots" TypeChatInviteLink = "chatInviteLink" TypeChatInviteLinks = "chatInviteLinks" TypeChatInviteLinkCount = "chatInviteLinkCount" TypeChatInviteLinkCounts = "chatInviteLinkCounts" TypeChatInviteLinkMember = "chatInviteLinkMember" TypeChatInviteLinkMembers = "chatInviteLinkMembers" TypeInviteLinkChatTypeBasicGroup = "inviteLinkChatTypeBasicGroup" TypeInviteLinkChatTypeSupergroup = "inviteLinkChatTypeSupergroup" TypeInviteLinkChatTypeChannel = "inviteLinkChatTypeChannel" TypeChatInviteLinkInfo = "chatInviteLinkInfo" TypeChatJoinRequest = "chatJoinRequest" TypeChatJoinRequests = "chatJoinRequests" TypeChatJoinRequestsInfo = "chatJoinRequestsInfo" TypeBasicGroup = "basicGroup" TypeBasicGroupFullInfo = "basicGroupFullInfo" TypeSupergroup = "supergroup" TypeSupergroupFullInfo = "supergroupFullInfo" TypeSecretChatStatePending = "secretChatStatePending" TypeSecretChatStateReady = "secretChatStateReady" TypeSecretChatStateClosed = "secretChatStateClosed" TypeSecretChat = "secretChat" TypeMessageSenderUser = "messageSenderUser" TypeMessageSenderChat = "messageSenderChat" TypeMessageSenders = "messageSenders" TypeChatMessageSender = "chatMessageSender" TypeChatMessageSenders = "chatMessageSenders" TypeMessageViewer = "messageViewer" TypeMessageViewers = "messageViewers" TypeMessageForwardOriginUser = "messageForwardOriginUser" TypeMessageForwardOriginChat = "messageForwardOriginChat" TypeMessageForwardOriginHiddenUser = "messageForwardOriginHiddenUser" TypeMessageForwardOriginChannel = "messageForwardOriginChannel" TypeMessageForwardOriginMessageImport = "messageForwardOriginMessageImport" TypeReactionTypeEmoji = "reactionTypeEmoji" TypeReactionTypeCustomEmoji = "reactionTypeCustomEmoji" TypeMessageForwardInfo = "messageForwardInfo" TypeMessageReplyInfo = "messageReplyInfo" TypeMessageReaction = "messageReaction" TypeMessageInteractionInfo = "messageInteractionInfo" TypeUnreadReaction = "unreadReaction" TypeMessageSendingStatePending = "messageSendingStatePending" TypeMessageSendingStateFailed = "messageSendingStateFailed" TypeMessageReplyToMessage = "messageReplyToMessage" TypeMessageReplyToStory = "messageReplyToStory" TypeMessage = "message" TypeMessages = "messages" TypeFoundMessages = "foundMessages" TypeFoundChatMessages = "foundChatMessages" TypeMessagePosition = "messagePosition" TypeMessagePositions = "messagePositions" TypeMessageCalendarDay = "messageCalendarDay" TypeMessageCalendar = "messageCalendar" TypeMessageSourceChatHistory = "messageSourceChatHistory" TypeMessageSourceMessageThreadHistory = "messageSourceMessageThreadHistory" TypeMessageSourceForumTopicHistory = "messageSourceForumTopicHistory" TypeMessageSourceHistoryPreview = "messageSourceHistoryPreview" TypeMessageSourceChatList = "messageSourceChatList" TypeMessageSourceSearch = "messageSourceSearch" TypeMessageSourceChatEventLog = "messageSourceChatEventLog" TypeMessageSourceNotification = "messageSourceNotification" TypeMessageSourceScreenshot = "messageSourceScreenshot" TypeMessageSourceOther = "messageSourceOther" TypeMessageSponsorTypeBot = "messageSponsorTypeBot" TypeMessageSponsorTypePublicChannel = "messageSponsorTypePublicChannel" TypeMessageSponsorTypePrivateChannel = "messageSponsorTypePrivateChannel" TypeMessageSponsorTypeWebsite = "messageSponsorTypeWebsite" TypeMessageSponsor = "messageSponsor" TypeSponsoredMessage = "sponsoredMessage" TypeSponsoredMessages = "sponsoredMessages" TypeFileDownload = "fileDownload" TypeDownloadedFileCounts = "downloadedFileCounts" TypeFoundFileDownloads = "foundFileDownloads" TypeNotificationSettingsScopePrivateChats = "notificationSettingsScopePrivateChats" TypeNotificationSettingsScopeGroupChats = "notificationSettingsScopeGroupChats" TypeNotificationSettingsScopeChannelChats = "notificationSettingsScopeChannelChats" TypeChatNotificationSettings = "chatNotificationSettings" TypeScopeNotificationSettings = "scopeNotificationSettings" TypeDraftMessage = "draftMessage" TypeChatTypePrivate = "chatTypePrivate" TypeChatTypeBasicGroup = "chatTypeBasicGroup" TypeChatTypeSupergroup = "chatTypeSupergroup" TypeChatTypeSecret = "chatTypeSecret" TypeChatFolderIcon = "chatFolderIcon" TypeChatFolder = "chatFolder" TypeChatFolderInfo = "chatFolderInfo" TypeChatFolderInviteLink = "chatFolderInviteLink" TypeChatFolderInviteLinks = "chatFolderInviteLinks" TypeChatFolderInviteLinkInfo = "chatFolderInviteLinkInfo" TypeRecommendedChatFolder = "recommendedChatFolder" TypeRecommendedChatFolders = "recommendedChatFolders" TypeArchiveChatListSettings = "archiveChatListSettings" TypeChatListMain = "chatListMain" TypeChatListArchive = "chatListArchive" TypeChatListFolder = "chatListFolder" TypeChatLists = "chatLists" TypeChatSourceMtprotoProxy = "chatSourceMtprotoProxy" TypeChatSourcePublicServiceAnnouncement = "chatSourcePublicServiceAnnouncement" TypeChatPosition = "chatPosition" TypeChatAvailableReactionsAll = "chatAvailableReactionsAll" TypeChatAvailableReactionsSome = "chatAvailableReactionsSome" TypeVideoChat = "videoChat" TypeChat = "chat" TypeChats = "chats" TypeChatNearby = "chatNearby" TypeChatsNearby = "chatsNearby" TypePublicChatTypeHasUsername = "publicChatTypeHasUsername" TypePublicChatTypeIsLocationBased = "publicChatTypeIsLocationBased" TypeChatActionBarReportSpam = "chatActionBarReportSpam" TypeChatActionBarInviteMembers = "chatActionBarInviteMembers" TypeChatActionBarReportAddBlock = "chatActionBarReportAddBlock" TypeChatActionBarAddContact = "chatActionBarAddContact" TypeChatActionBarJoinRequest = "chatActionBarJoinRequest" TypeKeyboardButtonTypeText = "keyboardButtonTypeText" TypeKeyboardButtonTypeRequestPhoneNumber = "keyboardButtonTypeRequestPhoneNumber" TypeKeyboardButtonTypeRequestLocation = "keyboardButtonTypeRequestLocation" TypeKeyboardButtonTypeRequestPoll = "keyboardButtonTypeRequestPoll" TypeKeyboardButtonTypeRequestUser = "keyboardButtonTypeRequestUser" TypeKeyboardButtonTypeRequestChat = "keyboardButtonTypeRequestChat" TypeKeyboardButtonTypeWebApp = "keyboardButtonTypeWebApp" TypeKeyboardButton = "keyboardButton" TypeInlineKeyboardButtonTypeUrl = "inlineKeyboardButtonTypeUrl" TypeInlineKeyboardButtonTypeLoginUrl = "inlineKeyboardButtonTypeLoginUrl" TypeInlineKeyboardButtonTypeWebApp = "inlineKeyboardButtonTypeWebApp" TypeInlineKeyboardButtonTypeCallback = "inlineKeyboardButtonTypeCallback" TypeInlineKeyboardButtonTypeCallbackWithPassword = "inlineKeyboardButtonTypeCallbackWithPassword" TypeInlineKeyboardButtonTypeCallbackGame = "inlineKeyboardButtonTypeCallbackGame" TypeInlineKeyboardButtonTypeSwitchInline = "inlineKeyboardButtonTypeSwitchInline" TypeInlineKeyboardButtonTypeBuy = "inlineKeyboardButtonTypeBuy" TypeInlineKeyboardButtonTypeUser = "inlineKeyboardButtonTypeUser" TypeInlineKeyboardButton = "inlineKeyboardButton" TypeReplyMarkupRemoveKeyboard = "replyMarkupRemoveKeyboard" TypeReplyMarkupForceReply = "replyMarkupForceReply" TypeReplyMarkupShowKeyboard = "replyMarkupShowKeyboard" TypeReplyMarkupInlineKeyboard = "replyMarkupInlineKeyboard" TypeLoginUrlInfoOpen = "loginUrlInfoOpen" TypeLoginUrlInfoRequestConfirmation = "loginUrlInfoRequestConfirmation" TypeFoundWebApp = "foundWebApp" TypeWebAppInfo = "webAppInfo" TypeMessageThreadInfo = "messageThreadInfo" TypeForumTopicIcon = "forumTopicIcon" TypeForumTopicInfo = "forumTopicInfo" TypeForumTopic = "forumTopic" TypeForumTopics = "forumTopics" TypeRichTextPlain = "richTextPlain" TypeRichTextBold = "richTextBold" TypeRichTextItalic = "richTextItalic" TypeRichTextUnderline = "richTextUnderline" TypeRichTextStrikethrough = "richTextStrikethrough" TypeRichTextFixed = "richTextFixed" TypeRichTextUrl = "richTextUrl" TypeRichTextEmailAddress = "richTextEmailAddress" TypeRichTextSubscript = "richTextSubscript" TypeRichTextSuperscript = "richTextSuperscript" TypeRichTextMarked = "richTextMarked" TypeRichTextPhoneNumber = "richTextPhoneNumber" TypeRichTextIcon = "richTextIcon" TypeRichTextReference = "richTextReference" TypeRichTextAnchor = "richTextAnchor" TypeRichTextAnchorLink = "richTextAnchorLink" TypeRichTexts = "richTexts" TypePageBlockCaption = "pageBlockCaption" TypePageBlockListItem = "pageBlockListItem" TypePageBlockHorizontalAlignmentLeft = "pageBlockHorizontalAlignmentLeft" TypePageBlockHorizontalAlignmentCenter = "pageBlockHorizontalAlignmentCenter" TypePageBlockHorizontalAlignmentRight = "pageBlockHorizontalAlignmentRight" TypePageBlockVerticalAlignmentTop = "pageBlockVerticalAlignmentTop" TypePageBlockVerticalAlignmentMiddle = "pageBlockVerticalAlignmentMiddle" TypePageBlockVerticalAlignmentBottom = "pageBlockVerticalAlignmentBottom" TypePageBlockTableCell = "pageBlockTableCell" TypePageBlockRelatedArticle = "pageBlockRelatedArticle" TypePageBlockTitle = "pageBlockTitle" TypePageBlockSubtitle = "pageBlockSubtitle" TypePageBlockAuthorDate = "pageBlockAuthorDate" TypePageBlockHeader = "pageBlockHeader" TypePageBlockSubheader = "pageBlockSubheader" TypePageBlockKicker = "pageBlockKicker" TypePageBlockParagraph = "pageBlockParagraph" TypePageBlockPreformatted = "pageBlockPreformatted" TypePageBlockDivider = "pageBlockDivider" TypePageBlockAnchor = "pageBlockAnchor" TypePageBlockList = "pageBlockList" TypePageBlockBlockQuote = "pageBlockBlockQuote" TypePageBlockPullQuote = "pageBlockPullQuote" TypePageBlockAnimation = "pageBlockAnimation" TypePageBlockAudio = "pageBlockAudio" TypePageBlockPhoto = "pageBlockPhoto" TypePageBlockVideo = "pageBlockVideo" TypePageBlockVoiceNote = "pageBlockVoiceNote" TypePageBlockCover = "pageBlockCover" TypePageBlockEmbedded = "pageBlockEmbedded" TypePageBlockEmbeddedPost = "pageBlockEmbeddedPost" TypePageBlockCollage = "pageBlockCollage" TypePageBlockSlideshow = "pageBlockSlideshow" TypePageBlockChatLink = "pageBlockChatLink" TypePageBlockTable = "pageBlockTable" TypePageBlockDetails = "pageBlockDetails" TypePageBlockRelatedArticles = "pageBlockRelatedArticles" TypePageBlockMap = "pageBlockMap" TypeWebPageInstantView = "webPageInstantView" TypeWebPage = "webPage" TypeCountryInfo = "countryInfo" TypeCountries = "countries" TypePhoneNumberInfo = "phoneNumberInfo" TypeBankCardActionOpenUrl = "bankCardActionOpenUrl" TypeBankCardInfo = "bankCardInfo" TypeAddress = "address" TypeThemeParameters = "themeParameters" TypeLabeledPricePart = "labeledPricePart" TypeInvoice = "invoice" TypeOrderInfo = "orderInfo" TypeShippingOption = "shippingOption" TypeSavedCredentials = "savedCredentials" TypeInputCredentialsSaved = "inputCredentialsSaved" TypeInputCredentialsNew = "inputCredentialsNew" TypeInputCredentialsApplePay = "inputCredentialsApplePay" TypeInputCredentialsGooglePay = "inputCredentialsGooglePay" TypePaymentProviderSmartGlocal = "paymentProviderSmartGlocal" TypePaymentProviderStripe = "paymentProviderStripe" TypePaymentProviderOther = "paymentProviderOther" TypePaymentOption = "paymentOption" TypePaymentForm = "paymentForm" TypeValidatedOrderInfo = "validatedOrderInfo" TypePaymentResult = "paymentResult" TypePaymentReceipt = "paymentReceipt" TypeInputInvoiceMessage = "inputInvoiceMessage" TypeInputInvoiceName = "inputInvoiceName" TypeMessageExtendedMediaPreview = "messageExtendedMediaPreview" TypeMessageExtendedMediaPhoto = "messageExtendedMediaPhoto" TypeMessageExtendedMediaVideo = "messageExtendedMediaVideo" TypeMessageExtendedMediaUnsupported = "messageExtendedMediaUnsupported" TypeDatedFile = "datedFile" TypePassportElementTypePersonalDetails = "passportElementTypePersonalDetails" TypePassportElementTypePassport = "passportElementTypePassport" TypePassportElementTypeDriverLicense = "passportElementTypeDriverLicense" TypePassportElementTypeIdentityCard = "passportElementTypeIdentityCard" TypePassportElementTypeInternalPassport = "passportElementTypeInternalPassport" TypePassportElementTypeAddress = "passportElementTypeAddress" TypePassportElementTypeUtilityBill = "passportElementTypeUtilityBill" TypePassportElementTypeBankStatement = "passportElementTypeBankStatement" TypePassportElementTypeRentalAgreement = "passportElementTypeRentalAgreement" TypePassportElementTypePassportRegistration = "passportElementTypePassportRegistration" TypePassportElementTypeTemporaryRegistration = "passportElementTypeTemporaryRegistration" TypePassportElementTypePhoneNumber = "passportElementTypePhoneNumber" TypePassportElementTypeEmailAddress = "passportElementTypeEmailAddress" TypeDate = "date" TypePersonalDetails = "personalDetails" TypeIdentityDocument = "identityDocument" TypeInputIdentityDocument = "inputIdentityDocument" TypePersonalDocument = "personalDocument" TypeInputPersonalDocument = "inputPersonalDocument" TypePassportElementPersonalDetails = "passportElementPersonalDetails" TypePassportElementPassport = "passportElementPassport" TypePassportElementDriverLicense = "passportElementDriverLicense" TypePassportElementIdentityCard = "passportElementIdentityCard" TypePassportElementInternalPassport = "passportElementInternalPassport" TypePassportElementAddress = "passportElementAddress" TypePassportElementUtilityBill = "passportElementUtilityBill" TypePassportElementBankStatement = "passportElementBankStatement" TypePassportElementRentalAgreement = "passportElementRentalAgreement" TypePassportElementPassportRegistration = "passportElementPassportRegistration" TypePassportElementTemporaryRegistration = "passportElementTemporaryRegistration" TypePassportElementPhoneNumber = "passportElementPhoneNumber" TypePassportElementEmailAddress = "passportElementEmailAddress" TypeInputPassportElementPersonalDetails = "inputPassportElementPersonalDetails" TypeInputPassportElementPassport = "inputPassportElementPassport" TypeInputPassportElementDriverLicense = "inputPassportElementDriverLicense" TypeInputPassportElementIdentityCard = "inputPassportElementIdentityCard" TypeInputPassportElementInternalPassport = "inputPassportElementInternalPassport" TypeInputPassportElementAddress = "inputPassportElementAddress" TypeInputPassportElementUtilityBill = "inputPassportElementUtilityBill" TypeInputPassportElementBankStatement = "inputPassportElementBankStatement" TypeInputPassportElementRentalAgreement = "inputPassportElementRentalAgreement" TypeInputPassportElementPassportRegistration = "inputPassportElementPassportRegistration" TypeInputPassportElementTemporaryRegistration = "inputPassportElementTemporaryRegistration" TypeInputPassportElementPhoneNumber = "inputPassportElementPhoneNumber" TypeInputPassportElementEmailAddress = "inputPassportElementEmailAddress" TypePassportElements = "passportElements" TypePassportElementErrorSourceUnspecified = "passportElementErrorSourceUnspecified" TypePassportElementErrorSourceDataField = "passportElementErrorSourceDataField" TypePassportElementErrorSourceFrontSide = "passportElementErrorSourceFrontSide" TypePassportElementErrorSourceReverseSide = "passportElementErrorSourceReverseSide" TypePassportElementErrorSourceSelfie = "passportElementErrorSourceSelfie" TypePassportElementErrorSourceTranslationFile = "passportElementErrorSourceTranslationFile" TypePassportElementErrorSourceTranslationFiles = "passportElementErrorSourceTranslationFiles" TypePassportElementErrorSourceFile = "passportElementErrorSourceFile" TypePassportElementErrorSourceFiles = "passportElementErrorSourceFiles" TypePassportElementError = "passportElementError" TypePassportSuitableElement = "passportSuitableElement" TypePassportRequiredElement = "passportRequiredElement" TypePassportAuthorizationForm = "passportAuthorizationForm" TypePassportElementsWithErrors = "passportElementsWithErrors" TypeEncryptedCredentials = "encryptedCredentials" TypeEncryptedPassportElement = "encryptedPassportElement" TypeInputPassportElementErrorSourceUnspecified = "inputPassportElementErrorSourceUnspecified" TypeInputPassportElementErrorSourceDataField = "inputPassportElementErrorSourceDataField" TypeInputPassportElementErrorSourceFrontSide = "inputPassportElementErrorSourceFrontSide" TypeInputPassportElementErrorSourceReverseSide = "inputPassportElementErrorSourceReverseSide" TypeInputPassportElementErrorSourceSelfie = "inputPassportElementErrorSourceSelfie" TypeInputPassportElementErrorSourceTranslationFile = "inputPassportElementErrorSourceTranslationFile" TypeInputPassportElementErrorSourceTranslationFiles = "inputPassportElementErrorSourceTranslationFiles" TypeInputPassportElementErrorSourceFile = "inputPassportElementErrorSourceFile" TypeInputPassportElementErrorSourceFiles = "inputPassportElementErrorSourceFiles" TypeInputPassportElementError = "inputPassportElementError" TypeMessageText = "messageText" TypeMessageAnimation = "messageAnimation" TypeMessageAudio = "messageAudio" TypeMessageDocument = "messageDocument" TypeMessagePhoto = "messagePhoto" TypeMessageExpiredPhoto = "messageExpiredPhoto" TypeMessageSticker = "messageSticker" TypeMessageVideo = "messageVideo" TypeMessageExpiredVideo = "messageExpiredVideo" TypeMessageVideoNote = "messageVideoNote" TypeMessageVoiceNote = "messageVoiceNote" TypeMessageLocation = "messageLocation" TypeMessageVenue = "messageVenue" TypeMessageContact = "messageContact" TypeMessageAnimatedEmoji = "messageAnimatedEmoji" TypeMessageDice = "messageDice" TypeMessageGame = "messageGame" TypeMessagePoll = "messagePoll" TypeMessageStory = "messageStory" TypeMessageInvoice = "messageInvoice" TypeMessageCall = "messageCall" TypeMessageVideoChatScheduled = "messageVideoChatScheduled" TypeMessageVideoChatStarted = "messageVideoChatStarted" TypeMessageVideoChatEnded = "messageVideoChatEnded" TypeMessageInviteVideoChatParticipants = "messageInviteVideoChatParticipants" TypeMessageBasicGroupChatCreate = "messageBasicGroupChatCreate" TypeMessageSupergroupChatCreate = "messageSupergroupChatCreate" TypeMessageChatChangeTitle = "messageChatChangeTitle" TypeMessageChatChangePhoto = "messageChatChangePhoto" TypeMessageChatDeletePhoto = "messageChatDeletePhoto" TypeMessageChatAddMembers = "messageChatAddMembers" TypeMessageChatJoinByLink = "messageChatJoinByLink" TypeMessageChatJoinByRequest = "messageChatJoinByRequest" TypeMessageChatDeleteMember = "messageChatDeleteMember" TypeMessageChatUpgradeTo = "messageChatUpgradeTo" TypeMessageChatUpgradeFrom = "messageChatUpgradeFrom" TypeMessagePinMessage = "messagePinMessage" TypeMessageScreenshotTaken = "messageScreenshotTaken" TypeMessageChatSetBackground = "messageChatSetBackground" TypeMessageChatSetTheme = "messageChatSetTheme" TypeMessageChatSetMessageAutoDeleteTime = "messageChatSetMessageAutoDeleteTime" TypeMessageForumTopicCreated = "messageForumTopicCreated" TypeMessageForumTopicEdited = "messageForumTopicEdited" TypeMessageForumTopicIsClosedToggled = "messageForumTopicIsClosedToggled" TypeMessageForumTopicIsHiddenToggled = "messageForumTopicIsHiddenToggled" TypeMessageSuggestProfilePhoto = "messageSuggestProfilePhoto" TypeMessageCustomServiceAction = "messageCustomServiceAction" TypeMessageGameScore = "messageGameScore" TypeMessagePaymentSuccessful = "messagePaymentSuccessful" TypeMessagePaymentSuccessfulBot = "messagePaymentSuccessfulBot" TypeMessageGiftedPremium = "messageGiftedPremium" TypeMessageContactRegistered = "messageContactRegistered" TypeMessageWebsiteConnected = "messageWebsiteConnected" TypeMessageBotWriteAccessAllowed = "messageBotWriteAccessAllowed" TypeMessageWebAppDataSent = "messageWebAppDataSent" TypeMessageWebAppDataReceived = "messageWebAppDataReceived" TypeMessagePassportDataSent = "messagePassportDataSent" TypeMessagePassportDataReceived = "messagePassportDataReceived" TypeMessageProximityAlertTriggered = "messageProximityAlertTriggered" TypeMessageUnsupported = "messageUnsupported" TypeTextEntityTypeMention = "textEntityTypeMention" TypeTextEntityTypeHashtag = "textEntityTypeHashtag" TypeTextEntityTypeCashtag = "textEntityTypeCashtag" TypeTextEntityTypeBotCommand = "textEntityTypeBotCommand" TypeTextEntityTypeUrl = "textEntityTypeUrl" TypeTextEntityTypeEmailAddress = "textEntityTypeEmailAddress" TypeTextEntityTypePhoneNumber = "textEntityTypePhoneNumber" TypeTextEntityTypeBankCardNumber = "textEntityTypeBankCardNumber" TypeTextEntityTypeBold = "textEntityTypeBold" TypeTextEntityTypeItalic = "textEntityTypeItalic" TypeTextEntityTypeUnderline = "textEntityTypeUnderline" TypeTextEntityTypeStrikethrough = "textEntityTypeStrikethrough" TypeTextEntityTypeSpoiler = "textEntityTypeSpoiler" TypeTextEntityTypeCode = "textEntityTypeCode" TypeTextEntityTypePre = "textEntityTypePre" TypeTextEntityTypePreCode = "textEntityTypePreCode" TypeTextEntityTypeTextUrl = "textEntityTypeTextUrl" TypeTextEntityTypeMentionName = "textEntityTypeMentionName" TypeTextEntityTypeCustomEmoji = "textEntityTypeCustomEmoji" TypeTextEntityTypeMediaTimestamp = "textEntityTypeMediaTimestamp" TypeInputThumbnail = "inputThumbnail" TypeMessageSchedulingStateSendAtDate = "messageSchedulingStateSendAtDate" TypeMessageSchedulingStateSendWhenOnline = "messageSchedulingStateSendWhenOnline" TypeMessageSelfDestructTypeTimer = "messageSelfDestructTypeTimer" TypeMessageSelfDestructTypeImmediately = "messageSelfDestructTypeImmediately" TypeMessageSendOptions = "messageSendOptions" TypeMessageCopyOptions = "messageCopyOptions" TypeInputMessageText = "inputMessageText" TypeInputMessageAnimation = "inputMessageAnimation" TypeInputMessageAudio = "inputMessageAudio" TypeInputMessageDocument = "inputMessageDocument" TypeInputMessagePhoto = "inputMessagePhoto" TypeInputMessageSticker = "inputMessageSticker" TypeInputMessageVideo = "inputMessageVideo" TypeInputMessageVideoNote = "inputMessageVideoNote" TypeInputMessageVoiceNote = "inputMessageVoiceNote" TypeInputMessageLocation = "inputMessageLocation" TypeInputMessageVenue = "inputMessageVenue" TypeInputMessageContact = "inputMessageContact" TypeInputMessageDice = "inputMessageDice" TypeInputMessageGame = "inputMessageGame" TypeInputMessageInvoice = "inputMessageInvoice" TypeInputMessagePoll = "inputMessagePoll" TypeInputMessageStory = "inputMessageStory" TypeInputMessageForwarded = "inputMessageForwarded" TypeSearchMessagesFilterEmpty = "searchMessagesFilterEmpty" TypeSearchMessagesFilterAnimation = "searchMessagesFilterAnimation" TypeSearchMessagesFilterAudio = "searchMessagesFilterAudio" TypeSearchMessagesFilterDocument = "searchMessagesFilterDocument" TypeSearchMessagesFilterPhoto = "searchMessagesFilterPhoto" TypeSearchMessagesFilterVideo = "searchMessagesFilterVideo" TypeSearchMessagesFilterVoiceNote = "searchMessagesFilterVoiceNote" TypeSearchMessagesFilterPhotoAndVideo = "searchMessagesFilterPhotoAndVideo" TypeSearchMessagesFilterUrl = "searchMessagesFilterUrl" TypeSearchMessagesFilterChatPhoto = "searchMessagesFilterChatPhoto" TypeSearchMessagesFilterVideoNote = "searchMessagesFilterVideoNote" TypeSearchMessagesFilterVoiceAndVideoNote = "searchMessagesFilterVoiceAndVideoNote" TypeSearchMessagesFilterMention = "searchMessagesFilterMention" TypeSearchMessagesFilterUnreadMention = "searchMessagesFilterUnreadMention" TypeSearchMessagesFilterUnreadReaction = "searchMessagesFilterUnreadReaction" TypeSearchMessagesFilterFailedToSend = "searchMessagesFilterFailedToSend" TypeSearchMessagesFilterPinned = "searchMessagesFilterPinned" TypeChatActionTyping = "chatActionTyping" TypeChatActionRecordingVideo = "chatActionRecordingVideo" TypeChatActionUploadingVideo = "chatActionUploadingVideo" TypeChatActionRecordingVoiceNote = "chatActionRecordingVoiceNote" TypeChatActionUploadingVoiceNote = "chatActionUploadingVoiceNote" TypeChatActionUploadingPhoto = "chatActionUploadingPhoto" TypeChatActionUploadingDocument = "chatActionUploadingDocument" TypeChatActionChoosingSticker = "chatActionChoosingSticker" TypeChatActionChoosingLocation = "chatActionChoosingLocation" TypeChatActionChoosingContact = "chatActionChoosingContact" TypeChatActionStartPlayingGame = "chatActionStartPlayingGame" TypeChatActionRecordingVideoNote = "chatActionRecordingVideoNote" TypeChatActionUploadingVideoNote = "chatActionUploadingVideoNote" TypeChatActionWatchingAnimations = "chatActionWatchingAnimations" TypeChatActionCancel = "chatActionCancel" TypeUserStatusEmpty = "userStatusEmpty" TypeUserStatusOnline = "userStatusOnline" TypeUserStatusOffline = "userStatusOffline" TypeUserStatusRecently = "userStatusRecently" TypeUserStatusLastWeek = "userStatusLastWeek" TypeUserStatusLastMonth = "userStatusLastMonth" TypeStickers = "stickers" TypeEmojis = "emojis" TypeStickerSet = "stickerSet" TypeStickerSetInfo = "stickerSetInfo" TypeStickerSets = "stickerSets" TypeTrendingStickerSets = "trendingStickerSets" TypeEmojiCategory = "emojiCategory" TypeEmojiCategories = "emojiCategories" TypeEmojiCategoryTypeDefault = "emojiCategoryTypeDefault" TypeEmojiCategoryTypeEmojiStatus = "emojiCategoryTypeEmojiStatus" TypeEmojiCategoryTypeChatPhoto = "emojiCategoryTypeChatPhoto" TypeStoryViewer = "storyViewer" TypeStoryViewers = "storyViewers" TypeStoryAreaPosition = "storyAreaPosition" TypeStoryAreaTypeLocation = "storyAreaTypeLocation" TypeStoryAreaTypeVenue = "storyAreaTypeVenue" TypeStoryArea = "storyArea" TypeInputStoryAreaTypeLocation = "inputStoryAreaTypeLocation" TypeInputStoryAreaTypeFoundVenue = "inputStoryAreaTypeFoundVenue" TypeInputStoryAreaTypePreviousVenue = "inputStoryAreaTypePreviousVenue" TypeInputStoryArea = "inputStoryArea" TypeInputStoryAreas = "inputStoryAreas" TypeStoryVideo = "storyVideo" TypeStoryContentPhoto = "storyContentPhoto" TypeStoryContentVideo = "storyContentVideo" TypeStoryContentUnsupported = "storyContentUnsupported" TypeInputStoryContentPhoto = "inputStoryContentPhoto" TypeInputStoryContentVideo = "inputStoryContentVideo" TypeStoryListMain = "storyListMain" TypeStoryListArchive = "storyListArchive" TypeStoryInteractionInfo = "storyInteractionInfo" TypeStory = "story" TypeStories = "stories" TypeStoryInfo = "storyInfo" TypeChatActiveStories = "chatActiveStories" TypeCallDiscardReasonEmpty = "callDiscardReasonEmpty" TypeCallDiscardReasonMissed = "callDiscardReasonMissed" TypeCallDiscardReasonDeclined = "callDiscardReasonDeclined" TypeCallDiscardReasonDisconnected = "callDiscardReasonDisconnected" TypeCallDiscardReasonHungUp = "callDiscardReasonHungUp" TypeCallProtocol = "callProtocol" TypeCallServerTypeTelegramReflector = "callServerTypeTelegramReflector" TypeCallServerTypeWebrtc = "callServerTypeWebrtc" TypeCallServer = "callServer" TypeCallId = "callId" TypeGroupCallId = "groupCallId" TypeCallStatePending = "callStatePending" TypeCallStateExchangingKeys = "callStateExchangingKeys" TypeCallStateReady = "callStateReady" TypeCallStateHangingUp = "callStateHangingUp" TypeCallStateDiscarded = "callStateDiscarded" TypeCallStateError = "callStateError" TypeGroupCallVideoQualityThumbnail = "groupCallVideoQualityThumbnail" TypeGroupCallVideoQualityMedium = "groupCallVideoQualityMedium" TypeGroupCallVideoQualityFull = "groupCallVideoQualityFull" TypeGroupCallStream = "groupCallStream" TypeGroupCallStreams = "groupCallStreams" TypeRtmpUrl = "rtmpUrl" TypeGroupCallRecentSpeaker = "groupCallRecentSpeaker" TypeGroupCall = "groupCall" TypeGroupCallVideoSourceGroup = "groupCallVideoSourceGroup" TypeGroupCallParticipantVideoInfo = "groupCallParticipantVideoInfo" TypeGroupCallParticipant = "groupCallParticipant" TypeCallProblemEcho = "callProblemEcho" TypeCallProblemNoise = "callProblemNoise" TypeCallProblemInterruptions = "callProblemInterruptions" TypeCallProblemDistortedSpeech = "callProblemDistortedSpeech" TypeCallProblemSilentLocal = "callProblemSilentLocal" TypeCallProblemSilentRemote = "callProblemSilentRemote" TypeCallProblemDropped = "callProblemDropped" TypeCallProblemDistortedVideo = "callProblemDistortedVideo" TypeCallProblemPixelatedVideo = "callProblemPixelatedVideo" TypeCall = "call" TypeFirebaseAuthenticationSettingsAndroid = "firebaseAuthenticationSettingsAndroid" TypeFirebaseAuthenticationSettingsIos = "firebaseAuthenticationSettingsIos" TypePhoneNumberAuthenticationSettings = "phoneNumberAuthenticationSettings" TypeAddedReaction = "addedReaction" TypeAddedReactions = "addedReactions" TypeAvailableReaction = "availableReaction" TypeAvailableReactions = "availableReactions" TypeEmojiReaction = "emojiReaction" TypeAnimations = "animations" TypeDiceStickersRegular = "diceStickersRegular" TypeDiceStickersSlotMachine = "diceStickersSlotMachine" TypeImportedContacts = "importedContacts" TypeSpeechRecognitionResultPending = "speechRecognitionResultPending" TypeSpeechRecognitionResultText = "speechRecognitionResultText" TypeSpeechRecognitionResultError = "speechRecognitionResultError" TypeAttachmentMenuBotColor = "attachmentMenuBotColor" TypeAttachmentMenuBot = "attachmentMenuBot" TypeSentWebAppMessage = "sentWebAppMessage" TypeHttpUrl = "httpUrl" TypeUserLink = "userLink" TypeInputInlineQueryResultAnimation = "inputInlineQueryResultAnimation" TypeInputInlineQueryResultArticle = "inputInlineQueryResultArticle" TypeInputInlineQueryResultAudio = "inputInlineQueryResultAudio" TypeInputInlineQueryResultContact = "inputInlineQueryResultContact" TypeInputInlineQueryResultDocument = "inputInlineQueryResultDocument" TypeInputInlineQueryResultGame = "inputInlineQueryResultGame" TypeInputInlineQueryResultLocation = "inputInlineQueryResultLocation" TypeInputInlineQueryResultPhoto = "inputInlineQueryResultPhoto" TypeInputInlineQueryResultSticker = "inputInlineQueryResultSticker" TypeInputInlineQueryResultVenue = "inputInlineQueryResultVenue" TypeInputInlineQueryResultVideo = "inputInlineQueryResultVideo" TypeInputInlineQueryResultVoiceNote = "inputInlineQueryResultVoiceNote" TypeInlineQueryResultArticle = "inlineQueryResultArticle" TypeInlineQueryResultContact = "inlineQueryResultContact" TypeInlineQueryResultLocation = "inlineQueryResultLocation" TypeInlineQueryResultVenue = "inlineQueryResultVenue" TypeInlineQueryResultGame = "inlineQueryResultGame" TypeInlineQueryResultAnimation = "inlineQueryResultAnimation" TypeInlineQueryResultAudio = "inlineQueryResultAudio" TypeInlineQueryResultDocument = "inlineQueryResultDocument" TypeInlineQueryResultPhoto = "inlineQueryResultPhoto" TypeInlineQueryResultSticker = "inlineQueryResultSticker" TypeInlineQueryResultVideo = "inlineQueryResultVideo" TypeInlineQueryResultVoiceNote = "inlineQueryResultVoiceNote" TypeInlineQueryResultsButtonTypeStartBot = "inlineQueryResultsButtonTypeStartBot" TypeInlineQueryResultsButtonTypeWebApp = "inlineQueryResultsButtonTypeWebApp" TypeInlineQueryResultsButton = "inlineQueryResultsButton" TypeInlineQueryResults = "inlineQueryResults" TypeCallbackQueryPayloadData = "callbackQueryPayloadData" TypeCallbackQueryPayloadDataWithPassword = "callbackQueryPayloadDataWithPassword" TypeCallbackQueryPayloadGame = "callbackQueryPayloadGame" TypeCallbackQueryAnswer = "callbackQueryAnswer" TypeCustomRequestResult = "customRequestResult" TypeGameHighScore = "gameHighScore" TypeGameHighScores = "gameHighScores" TypeChatEventMessageEdited = "chatEventMessageEdited" TypeChatEventMessageDeleted = "chatEventMessageDeleted" TypeChatEventMessagePinned = "chatEventMessagePinned" TypeChatEventMessageUnpinned = "chatEventMessageUnpinned" TypeChatEventPollStopped = "chatEventPollStopped" TypeChatEventMemberJoined = "chatEventMemberJoined" TypeChatEventMemberJoinedByInviteLink = "chatEventMemberJoinedByInviteLink" TypeChatEventMemberJoinedByRequest = "chatEventMemberJoinedByRequest" TypeChatEventMemberInvited = "chatEventMemberInvited" TypeChatEventMemberLeft = "chatEventMemberLeft" TypeChatEventMemberPromoted = "chatEventMemberPromoted" TypeChatEventMemberRestricted = "chatEventMemberRestricted" TypeChatEventAvailableReactionsChanged = "chatEventAvailableReactionsChanged" TypeChatEventDescriptionChanged = "chatEventDescriptionChanged" TypeChatEventLinkedChatChanged = "chatEventLinkedChatChanged" TypeChatEventLocationChanged = "chatEventLocationChanged" TypeChatEventMessageAutoDeleteTimeChanged = "chatEventMessageAutoDeleteTimeChanged" TypeChatEventPermissionsChanged = "chatEventPermissionsChanged" TypeChatEventPhotoChanged = "chatEventPhotoChanged" TypeChatEventSlowModeDelayChanged = "chatEventSlowModeDelayChanged" TypeChatEventStickerSetChanged = "chatEventStickerSetChanged" TypeChatEventTitleChanged = "chatEventTitleChanged" TypeChatEventUsernameChanged = "chatEventUsernameChanged" TypeChatEventActiveUsernamesChanged = "chatEventActiveUsernamesChanged" TypeChatEventHasProtectedContentToggled = "chatEventHasProtectedContentToggled" TypeChatEventInvitesToggled = "chatEventInvitesToggled" TypeChatEventIsAllHistoryAvailableToggled = "chatEventIsAllHistoryAvailableToggled" TypeChatEventHasAggressiveAntiSpamEnabledToggled = "chatEventHasAggressiveAntiSpamEnabledToggled" TypeChatEventSignMessagesToggled = "chatEventSignMessagesToggled" TypeChatEventInviteLinkEdited = "chatEventInviteLinkEdited" TypeChatEventInviteLinkRevoked = "chatEventInviteLinkRevoked" TypeChatEventInviteLinkDeleted = "chatEventInviteLinkDeleted" TypeChatEventVideoChatCreated = "chatEventVideoChatCreated" TypeChatEventVideoChatEnded = "chatEventVideoChatEnded" TypeChatEventVideoChatMuteNewParticipantsToggled = "chatEventVideoChatMuteNewParticipantsToggled" TypeChatEventVideoChatParticipantIsMutedToggled = "chatEventVideoChatParticipantIsMutedToggled" TypeChatEventVideoChatParticipantVolumeLevelChanged = "chatEventVideoChatParticipantVolumeLevelChanged" TypeChatEventIsForumToggled = "chatEventIsForumToggled" TypeChatEventForumTopicCreated = "chatEventForumTopicCreated" TypeChatEventForumTopicEdited = "chatEventForumTopicEdited" TypeChatEventForumTopicToggleIsClosed = "chatEventForumTopicToggleIsClosed" TypeChatEventForumTopicToggleIsHidden = "chatEventForumTopicToggleIsHidden" TypeChatEventForumTopicDeleted = "chatEventForumTopicDeleted" TypeChatEventForumTopicPinned = "chatEventForumTopicPinned" TypeChatEvent = "chatEvent" TypeChatEvents = "chatEvents" TypeChatEventLogFilters = "chatEventLogFilters" TypeLanguagePackStringValueOrdinary = "languagePackStringValueOrdinary" TypeLanguagePackStringValuePluralized = "languagePackStringValuePluralized" TypeLanguagePackStringValueDeleted = "languagePackStringValueDeleted" TypeLanguagePackString = "languagePackString" TypeLanguagePackStrings = "languagePackStrings" TypeLanguagePackInfo = "languagePackInfo" TypeLocalizationTargetInfo = "localizationTargetInfo" TypePremiumLimitTypeSupergroupCount = "premiumLimitTypeSupergroupCount" TypePremiumLimitTypePinnedChatCount = "premiumLimitTypePinnedChatCount" TypePremiumLimitTypeCreatedPublicChatCount = "premiumLimitTypeCreatedPublicChatCount" TypePremiumLimitTypeSavedAnimationCount = "premiumLimitTypeSavedAnimationCount" TypePremiumLimitTypeFavoriteStickerCount = "premiumLimitTypeFavoriteStickerCount" TypePremiumLimitTypeChatFolderCount = "premiumLimitTypeChatFolderCount" TypePremiumLimitTypeChatFolderChosenChatCount = "premiumLimitTypeChatFolderChosenChatCount" TypePremiumLimitTypePinnedArchivedChatCount = "premiumLimitTypePinnedArchivedChatCount" TypePremiumLimitTypeCaptionLength = "premiumLimitTypeCaptionLength" TypePremiumLimitTypeBioLength = "premiumLimitTypeBioLength" TypePremiumLimitTypeChatFolderInviteLinkCount = "premiumLimitTypeChatFolderInviteLinkCount" TypePremiumLimitTypeActiveStoryCount = "premiumLimitTypeActiveStoryCount" TypePremiumLimitTypeWeeklySentStoryCount = "premiumLimitTypeWeeklySentStoryCount" TypePremiumLimitTypeMonthlySentStoryCount = "premiumLimitTypeMonthlySentStoryCount" TypePremiumLimitTypeStoryCaptionLength = "premiumLimitTypeStoryCaptionLength" TypePremiumFeatureIncreasedLimits = "premiumFeatureIncreasedLimits" TypePremiumFeatureIncreasedUploadFileSize = "premiumFeatureIncreasedUploadFileSize" TypePremiumFeatureImprovedDownloadSpeed = "premiumFeatureImprovedDownloadSpeed" TypePremiumFeatureVoiceRecognition = "premiumFeatureVoiceRecognition" TypePremiumFeatureDisabledAds = "premiumFeatureDisabledAds" TypePremiumFeatureUniqueReactions = "premiumFeatureUniqueReactions" TypePremiumFeatureUniqueStickers = "premiumFeatureUniqueStickers" TypePremiumFeatureCustomEmoji = "premiumFeatureCustomEmoji" TypePremiumFeatureAdvancedChatManagement = "premiumFeatureAdvancedChatManagement" TypePremiumFeatureProfileBadge = "premiumFeatureProfileBadge" TypePremiumFeatureEmojiStatus = "premiumFeatureEmojiStatus" TypePremiumFeatureAnimatedProfilePhoto = "premiumFeatureAnimatedProfilePhoto" TypePremiumFeatureForumTopicIcon = "premiumFeatureForumTopicIcon" TypePremiumFeatureAppIcons = "premiumFeatureAppIcons" TypePremiumFeatureRealTimeChatTranslation = "premiumFeatureRealTimeChatTranslation" TypePremiumFeatureUpgradedStories = "premiumFeatureUpgradedStories" TypePremiumStoryFeaturePriorityOrder = "premiumStoryFeaturePriorityOrder" TypePremiumStoryFeatureStealthMode = "premiumStoryFeatureStealthMode" TypePremiumStoryFeaturePermanentViewsHistory = "premiumStoryFeaturePermanentViewsHistory" TypePremiumStoryFeatureCustomExpirationDuration = "premiumStoryFeatureCustomExpirationDuration" TypePremiumStoryFeatureSaveStories = "premiumStoryFeatureSaveStories" TypePremiumStoryFeatureLinksAndFormatting = "premiumStoryFeatureLinksAndFormatting" TypePremiumLimit = "premiumLimit" TypePremiumFeatures = "premiumFeatures" TypePremiumSourceLimitExceeded = "premiumSourceLimitExceeded" TypePremiumSourceFeature = "premiumSourceFeature" TypePremiumSourceStoryFeature = "premiumSourceStoryFeature" TypePremiumSourceLink = "premiumSourceLink" TypePremiumSourceSettings = "premiumSourceSettings" TypePremiumFeaturePromotionAnimation = "premiumFeaturePromotionAnimation" TypePremiumState = "premiumState" TypeStorePaymentPurposePremiumSubscription = "storePaymentPurposePremiumSubscription" TypeStorePaymentPurposeGiftedPremium = "storePaymentPurposeGiftedPremium" TypeDeviceTokenFirebaseCloudMessaging = "deviceTokenFirebaseCloudMessaging" TypeDeviceTokenApplePush = "deviceTokenApplePush" TypeDeviceTokenApplePushVoIP = "deviceTokenApplePushVoIP" TypeDeviceTokenWindowsPush = "deviceTokenWindowsPush" TypeDeviceTokenMicrosoftPush = "deviceTokenMicrosoftPush" TypeDeviceTokenMicrosoftPushVoIP = "deviceTokenMicrosoftPushVoIP" TypeDeviceTokenWebPush = "deviceTokenWebPush" TypeDeviceTokenSimplePush = "deviceTokenSimplePush" TypeDeviceTokenUbuntuPush = "deviceTokenUbuntuPush" TypeDeviceTokenBlackBerryPush = "deviceTokenBlackBerryPush" TypeDeviceTokenTizenPush = "deviceTokenTizenPush" TypeDeviceTokenHuaweiPush = "deviceTokenHuaweiPush" TypePushReceiverId = "pushReceiverId" TypeBackgroundFillSolid = "backgroundFillSolid" TypeBackgroundFillGradient = "backgroundFillGradient" TypeBackgroundFillFreeformGradient = "backgroundFillFreeformGradient" TypeBackgroundTypeWallpaper = "backgroundTypeWallpaper" TypeBackgroundTypePattern = "backgroundTypePattern" TypeBackgroundTypeFill = "backgroundTypeFill" TypeInputBackgroundLocal = "inputBackgroundLocal" TypeInputBackgroundRemote = "inputBackgroundRemote" TypeInputBackgroundPrevious = "inputBackgroundPrevious" TypeThemeSettings = "themeSettings" TypeChatTheme = "chatTheme" TypeCanSendStoryResultOk = "canSendStoryResultOk" TypeCanSendStoryResultPremiumNeeded = "canSendStoryResultPremiumNeeded" TypeCanSendStoryResultActiveStoryLimitExceeded = "canSendStoryResultActiveStoryLimitExceeded" TypeCanSendStoryResultWeeklyLimitExceeded = "canSendStoryResultWeeklyLimitExceeded" TypeCanSendStoryResultMonthlyLimitExceeded = "canSendStoryResultMonthlyLimitExceeded" TypeCanTransferOwnershipResultOk = "canTransferOwnershipResultOk" TypeCanTransferOwnershipResultPasswordNeeded = "canTransferOwnershipResultPasswordNeeded" TypeCanTransferOwnershipResultPasswordTooFresh = "canTransferOwnershipResultPasswordTooFresh" TypeCanTransferOwnershipResultSessionTooFresh = "canTransferOwnershipResultSessionTooFresh" TypeCheckChatUsernameResultOk = "checkChatUsernameResultOk" TypeCheckChatUsernameResultUsernameInvalid = "checkChatUsernameResultUsernameInvalid" TypeCheckChatUsernameResultUsernameOccupied = "checkChatUsernameResultUsernameOccupied" TypeCheckChatUsernameResultUsernamePurchasable = "checkChatUsernameResultUsernamePurchasable" TypeCheckChatUsernameResultPublicChatsTooMany = "checkChatUsernameResultPublicChatsTooMany" TypeCheckStickerSetNameResultOk = "checkStickerSetNameResultOk" TypeCheckStickerSetNameResultNameInvalid = "checkStickerSetNameResultNameInvalid" TypeCheckStickerSetNameResultNameOccupied = "checkStickerSetNameResultNameOccupied" TypeResetPasswordResultOk = "resetPasswordResultOk" TypeResetPasswordResultPending = "resetPasswordResultPending" TypeResetPasswordResultDeclined = "resetPasswordResultDeclined" TypeMessageFileTypePrivate = "messageFileTypePrivate" TypeMessageFileTypeGroup = "messageFileTypeGroup" TypeMessageFileTypeUnknown = "messageFileTypeUnknown" TypePushMessageContentHidden = "pushMessageContentHidden" TypePushMessageContentAnimation = "pushMessageContentAnimation" TypePushMessageContentAudio = "pushMessageContentAudio" TypePushMessageContentContact = "pushMessageContentContact" TypePushMessageContentContactRegistered = "pushMessageContentContactRegistered" TypePushMessageContentDocument = "pushMessageContentDocument" TypePushMessageContentGame = "pushMessageContentGame" TypePushMessageContentGameScore = "pushMessageContentGameScore" TypePushMessageContentInvoice = "pushMessageContentInvoice" TypePushMessageContentLocation = "pushMessageContentLocation" TypePushMessageContentPhoto = "pushMessageContentPhoto" TypePushMessageContentPoll = "pushMessageContentPoll" TypePushMessageContentScreenshotTaken = "pushMessageContentScreenshotTaken" TypePushMessageContentSticker = "pushMessageContentSticker" TypePushMessageContentStory = "pushMessageContentStory" TypePushMessageContentText = "pushMessageContentText" TypePushMessageContentVideo = "pushMessageContentVideo" TypePushMessageContentVideoNote = "pushMessageContentVideoNote" TypePushMessageContentVoiceNote = "pushMessageContentVoiceNote" TypePushMessageContentBasicGroupChatCreate = "pushMessageContentBasicGroupChatCreate" TypePushMessageContentChatAddMembers = "pushMessageContentChatAddMembers" TypePushMessageContentChatChangePhoto = "pushMessageContentChatChangePhoto" TypePushMessageContentChatChangeTitle = "pushMessageContentChatChangeTitle" TypePushMessageContentChatSetBackground = "pushMessageContentChatSetBackground" TypePushMessageContentChatSetTheme = "pushMessageContentChatSetTheme" TypePushMessageContentChatDeleteMember = "pushMessageContentChatDeleteMember" TypePushMessageContentChatJoinByLink = "pushMessageContentChatJoinByLink" TypePushMessageContentChatJoinByRequest = "pushMessageContentChatJoinByRequest" TypePushMessageContentRecurringPayment = "pushMessageContentRecurringPayment" TypePushMessageContentSuggestProfilePhoto = "pushMessageContentSuggestProfilePhoto" TypePushMessageContentMessageForwards = "pushMessageContentMessageForwards" TypePushMessageContentMediaAlbum = "pushMessageContentMediaAlbum" TypeNotificationTypeNewMessage = "notificationTypeNewMessage" TypeNotificationTypeNewSecretChat = "notificationTypeNewSecretChat" TypeNotificationTypeNewCall = "notificationTypeNewCall" TypeNotificationTypeNewPushMessage = "notificationTypeNewPushMessage" TypeNotificationGroupTypeMessages = "notificationGroupTypeMessages" TypeNotificationGroupTypeMentions = "notificationGroupTypeMentions" TypeNotificationGroupTypeSecretChat = "notificationGroupTypeSecretChat" TypeNotificationGroupTypeCalls = "notificationGroupTypeCalls" TypeNotificationSound = "notificationSound" TypeNotificationSounds = "notificationSounds" TypeNotification = "notification" TypeNotificationGroup = "notificationGroup" TypeOptionValueBoolean = "optionValueBoolean" TypeOptionValueEmpty = "optionValueEmpty" TypeOptionValueInteger = "optionValueInteger" TypeOptionValueString = "optionValueString" TypeJsonObjectMember = "jsonObjectMember" TypeJsonValueNull = "jsonValueNull" TypeJsonValueBoolean = "jsonValueBoolean" TypeJsonValueNumber = "jsonValueNumber" TypeJsonValueString = "jsonValueString" TypeJsonValueArray = "jsonValueArray" TypeJsonValueObject = "jsonValueObject" TypeStoryPrivacySettingsEveryone = "storyPrivacySettingsEveryone" TypeStoryPrivacySettingsContacts = "storyPrivacySettingsContacts" TypeStoryPrivacySettingsCloseFriends = "storyPrivacySettingsCloseFriends" TypeStoryPrivacySettingsSelectedUsers = "storyPrivacySettingsSelectedUsers" TypeUserPrivacySettingRuleAllowAll = "userPrivacySettingRuleAllowAll" TypeUserPrivacySettingRuleAllowContacts = "userPrivacySettingRuleAllowContacts" TypeUserPrivacySettingRuleAllowUsers = "userPrivacySettingRuleAllowUsers" TypeUserPrivacySettingRuleAllowChatMembers = "userPrivacySettingRuleAllowChatMembers" TypeUserPrivacySettingRuleRestrictAll = "userPrivacySettingRuleRestrictAll" TypeUserPrivacySettingRuleRestrictContacts = "userPrivacySettingRuleRestrictContacts" TypeUserPrivacySettingRuleRestrictUsers = "userPrivacySettingRuleRestrictUsers" TypeUserPrivacySettingRuleRestrictChatMembers = "userPrivacySettingRuleRestrictChatMembers" TypeUserPrivacySettingRules = "userPrivacySettingRules" TypeUserPrivacySettingShowStatus = "userPrivacySettingShowStatus" TypeUserPrivacySettingShowProfilePhoto = "userPrivacySettingShowProfilePhoto" TypeUserPrivacySettingShowLinkInForwardedMessages = "userPrivacySettingShowLinkInForwardedMessages" TypeUserPrivacySettingShowPhoneNumber = "userPrivacySettingShowPhoneNumber" TypeUserPrivacySettingShowBio = "userPrivacySettingShowBio" TypeUserPrivacySettingAllowChatInvites = "userPrivacySettingAllowChatInvites" TypeUserPrivacySettingAllowCalls = "userPrivacySettingAllowCalls" TypeUserPrivacySettingAllowPeerToPeerCalls = "userPrivacySettingAllowPeerToPeerCalls" TypeUserPrivacySettingAllowFindingByPhoneNumber = "userPrivacySettingAllowFindingByPhoneNumber" TypeUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages = "userPrivacySettingAllowPrivateVoiceAndVideoNoteMessages" TypeAccountTtl = "accountTtl" TypeMessageAutoDeleteTime = "messageAutoDeleteTime" TypeSessionTypeAndroid = "sessionTypeAndroid" TypeSessionTypeApple = "sessionTypeApple" TypeSessionTypeBrave = "sessionTypeBrave" TypeSessionTypeChrome = "sessionTypeChrome" TypeSessionTypeEdge = "sessionTypeEdge" TypeSessionTypeFirefox = "sessionTypeFirefox" TypeSessionTypeIpad = "sessionTypeIpad" TypeSessionTypeIphone = "sessionTypeIphone" TypeSessionTypeLinux = "sessionTypeLinux" TypeSessionTypeMac = "sessionTypeMac" TypeSessionTypeOpera = "sessionTypeOpera" TypeSessionTypeSafari = "sessionTypeSafari" TypeSessionTypeUbuntu = "sessionTypeUbuntu" TypeSessionTypeUnknown = "sessionTypeUnknown" TypeSessionTypeVivaldi = "sessionTypeVivaldi" TypeSessionTypeWindows = "sessionTypeWindows" TypeSessionTypeXbox = "sessionTypeXbox" TypeSession = "session" TypeSessions = "sessions" TypeUnconfirmedSession = "unconfirmedSession" TypeConnectedWebsite = "connectedWebsite" TypeConnectedWebsites = "connectedWebsites" TypeReportReasonSpam = "reportReasonSpam" TypeReportReasonViolence = "reportReasonViolence" TypeReportReasonPornography = "reportReasonPornography" TypeReportReasonChildAbuse = "reportReasonChildAbuse" TypeReportReasonCopyright = "reportReasonCopyright" TypeReportReasonFake = "reportReasonFake" TypeReportReasonIllegalDrugs = "reportReasonIllegalDrugs" TypeReportReasonPersonalDetails = "reportReasonPersonalDetails" TypeReportReasonCustom = "reportReasonCustom" TypeTargetChatCurrent = "targetChatCurrent" TypeTargetChatChosen = "targetChatChosen" TypeTargetChatInternalLink = "targetChatInternalLink" TypeInternalLinkTypeActiveSessions = "internalLinkTypeActiveSessions" TypeInternalLinkTypeAttachmentMenuBot = "internalLinkTypeAttachmentMenuBot" TypeInternalLinkTypeAuthenticationCode = "internalLinkTypeAuthenticationCode" TypeInternalLinkTypeBackground = "internalLinkTypeBackground" TypeInternalLinkTypeBotAddToChannel = "internalLinkTypeBotAddToChannel" TypeInternalLinkTypeBotStart = "internalLinkTypeBotStart" TypeInternalLinkTypeBotStartInGroup = "internalLinkTypeBotStartInGroup" TypeInternalLinkTypeChangePhoneNumber = "internalLinkTypeChangePhoneNumber" TypeInternalLinkTypeChatFolderInvite = "internalLinkTypeChatFolderInvite" TypeInternalLinkTypeChatFolderSettings = "internalLinkTypeChatFolderSettings" TypeInternalLinkTypeChatInvite = "internalLinkTypeChatInvite" TypeInternalLinkTypeDefaultMessageAutoDeleteTimerSettings = "internalLinkTypeDefaultMessageAutoDeleteTimerSettings" TypeInternalLinkTypeEditProfileSettings = "internalLinkTypeEditProfileSettings" TypeInternalLinkTypeGame = "internalLinkTypeGame" TypeInternalLinkTypeInstantView = "internalLinkTypeInstantView" TypeInternalLinkTypeInvoice = "internalLinkTypeInvoice" TypeInternalLinkTypeLanguagePack = "internalLinkTypeLanguagePack" TypeInternalLinkTypeLanguageSettings = "internalLinkTypeLanguageSettings" TypeInternalLinkTypeMessage = "internalLinkTypeMessage" TypeInternalLinkTypeMessageDraft = "internalLinkTypeMessageDraft" TypeInternalLinkTypePassportDataRequest = "internalLinkTypePassportDataRequest" TypeInternalLinkTypePhoneNumberConfirmation = "internalLinkTypePhoneNumberConfirmation" TypeInternalLinkTypePremiumFeatures = "internalLinkTypePremiumFeatures" TypeInternalLinkTypePrivacyAndSecuritySettings = "internalLinkTypePrivacyAndSecuritySettings" TypeInternalLinkTypeProxy = "internalLinkTypeProxy" TypeInternalLinkTypePublicChat = "internalLinkTypePublicChat" TypeInternalLinkTypeQrCodeAuthentication = "internalLinkTypeQrCodeAuthentication" TypeInternalLinkTypeRestorePurchases = "internalLinkTypeRestorePurchases" TypeInternalLinkTypeSettings = "internalLinkTypeSettings" TypeInternalLinkTypeSideMenuBot = "internalLinkTypeSideMenuBot" TypeInternalLinkTypeStickerSet = "internalLinkTypeStickerSet" TypeInternalLinkTypeStory = "internalLinkTypeStory" TypeInternalLinkTypeTheme = "internalLinkTypeTheme" TypeInternalLinkTypeThemeSettings = "internalLinkTypeThemeSettings" TypeInternalLinkTypeUnknownDeepLink = "internalLinkTypeUnknownDeepLink" TypeInternalLinkTypeUnsupportedProxy = "internalLinkTypeUnsupportedProxy" TypeInternalLinkTypeUserPhoneNumber = "internalLinkTypeUserPhoneNumber" TypeInternalLinkTypeUserToken = "internalLinkTypeUserToken" TypeInternalLinkTypeVideoChat = "internalLinkTypeVideoChat" TypeInternalLinkTypeWebApp = "internalLinkTypeWebApp" TypeMessageLink = "messageLink" TypeMessageLinkInfo = "messageLinkInfo" TypeBlockListMain = "blockListMain" TypeBlockListStories = "blockListStories" TypeFilePart = "filePart" TypeFileTypeNone = "fileTypeNone" TypeFileTypeAnimation = "fileTypeAnimation" TypeFileTypeAudio = "fileTypeAudio" TypeFileTypeDocument = "fileTypeDocument" TypeFileTypeNotificationSound = "fileTypeNotificationSound" TypeFileTypePhoto = "fileTypePhoto" TypeFileTypePhotoStory = "fileTypePhotoStory" TypeFileTypeProfilePhoto = "fileTypeProfilePhoto" TypeFileTypeSecret = "fileTypeSecret" TypeFileTypeSecretThumbnail = "fileTypeSecretThumbnail" TypeFileTypeSecure = "fileTypeSecure" TypeFileTypeSticker = "fileTypeSticker" TypeFileTypeThumbnail = "fileTypeThumbnail" TypeFileTypeUnknown = "fileTypeUnknown" TypeFileTypeVideo = "fileTypeVideo" TypeFileTypeVideoNote = "fileTypeVideoNote" TypeFileTypeVideoStory = "fileTypeVideoStory" TypeFileTypeVoiceNote = "fileTypeVoiceNote" TypeFileTypeWallpaper = "fileTypeWallpaper" TypeStorageStatisticsByFileType = "storageStatisticsByFileType" TypeStorageStatisticsByChat = "storageStatisticsByChat" TypeStorageStatistics = "storageStatistics" TypeStorageStatisticsFast = "storageStatisticsFast" TypeDatabaseStatistics = "databaseStatistics" TypeNetworkTypeNone = "networkTypeNone" TypeNetworkTypeMobile = "networkTypeMobile" TypeNetworkTypeMobileRoaming = "networkTypeMobileRoaming" TypeNetworkTypeWiFi = "networkTypeWiFi" TypeNetworkTypeOther = "networkTypeOther" TypeNetworkStatisticsEntryFile = "networkStatisticsEntryFile" TypeNetworkStatisticsEntryCall = "networkStatisticsEntryCall" TypeNetworkStatistics = "networkStatistics" TypeAutoDownloadSettings = "autoDownloadSettings" TypeAutoDownloadSettingsPresets = "autoDownloadSettingsPresets" TypeAutosaveSettingsScopePrivateChats = "autosaveSettingsScopePrivateChats" TypeAutosaveSettingsScopeGroupChats = "autosaveSettingsScopeGroupChats" TypeAutosaveSettingsScopeChannelChats = "autosaveSettingsScopeChannelChats" TypeAutosaveSettingsScopeChat = "autosaveSettingsScopeChat" TypeScopeAutosaveSettings = "scopeAutosaveSettings" TypeAutosaveSettingsException = "autosaveSettingsException" TypeAutosaveSettings = "autosaveSettings" TypeConnectionStateWaitingForNetwork = "connectionStateWaitingForNetwork" TypeConnectionStateConnectingToProxy = "connectionStateConnectingToProxy" TypeConnectionStateConnecting = "connectionStateConnecting" TypeConnectionStateUpdating = "connectionStateUpdating" TypeConnectionStateReady = "connectionStateReady" TypeTopChatCategoryUsers = "topChatCategoryUsers" TypeTopChatCategoryBots = "topChatCategoryBots" TypeTopChatCategoryGroups = "topChatCategoryGroups" TypeTopChatCategoryChannels = "topChatCategoryChannels" TypeTopChatCategoryInlineBots = "topChatCategoryInlineBots" TypeTopChatCategoryCalls = "topChatCategoryCalls" TypeTopChatCategoryForwardChats = "topChatCategoryForwardChats" TypeFoundPositions = "foundPositions" TypeTMeUrlTypeUser = "tMeUrlTypeUser" TypeTMeUrlTypeSupergroup = "tMeUrlTypeSupergroup" TypeTMeUrlTypeChatInvite = "tMeUrlTypeChatInvite" TypeTMeUrlTypeStickerSet = "tMeUrlTypeStickerSet" TypeTMeUrl = "tMeUrl" TypeTMeUrls = "tMeUrls" TypeSuggestedActionEnableArchiveAndMuteNewChats = "suggestedActionEnableArchiveAndMuteNewChats" TypeSuggestedActionCheckPassword = "suggestedActionCheckPassword" TypeSuggestedActionCheckPhoneNumber = "suggestedActionCheckPhoneNumber" TypeSuggestedActionViewChecksHint = "suggestedActionViewChecksHint" TypeSuggestedActionConvertToBroadcastGroup = "suggestedActionConvertToBroadcastGroup" TypeSuggestedActionSetPassword = "suggestedActionSetPassword" TypeSuggestedActionUpgradePremium = "suggestedActionUpgradePremium" TypeSuggestedActionRestorePremium = "suggestedActionRestorePremium" TypeSuggestedActionSubscribeToAnnualPremium = "suggestedActionSubscribeToAnnualPremium" TypeCount = "count" TypeText = "text" TypeSeconds = "seconds" TypeFileDownloadedPrefixSize = "fileDownloadedPrefixSize" TypeDeepLinkInfo = "deepLinkInfo" TypeTextParseModeMarkdown = "textParseModeMarkdown" TypeTextParseModeHTML = "textParseModeHTML" TypeProxyTypeSocks5 = "proxyTypeSocks5" TypeProxyTypeHttp = "proxyTypeHttp" TypeProxyTypeMtproto = "proxyTypeMtproto" TypeProxy = "proxy" TypeProxies = "proxies" TypeInputSticker = "inputSticker" TypeDateRange = "dateRange" TypeStatisticalValue = "statisticalValue" TypeStatisticalGraphData = "statisticalGraphData" TypeStatisticalGraphAsync = "statisticalGraphAsync" TypeStatisticalGraphError = "statisticalGraphError" TypeChatStatisticsMessageInteractionInfo = "chatStatisticsMessageInteractionInfo" TypeChatStatisticsMessageSenderInfo = "chatStatisticsMessageSenderInfo" TypeChatStatisticsAdministratorActionsInfo = "chatStatisticsAdministratorActionsInfo" TypeChatStatisticsInviterInfo = "chatStatisticsInviterInfo" TypeChatStatisticsSupergroup = "chatStatisticsSupergroup" TypeChatStatisticsChannel = "chatStatisticsChannel" TypeMessageStatistics = "messageStatistics" TypePoint = "point" TypeVectorPathCommandLine = "vectorPathCommandLine" TypeVectorPathCommandCubicBezierCurve = "vectorPathCommandCubicBezierCurve" TypeBotCommandScopeDefault = "botCommandScopeDefault" TypeBotCommandScopeAllPrivateChats = "botCommandScopeAllPrivateChats" TypeBotCommandScopeAllGroupChats = "botCommandScopeAllGroupChats" TypeBotCommandScopeAllChatAdministrators = "botCommandScopeAllChatAdministrators" TypeBotCommandScopeChat = "botCommandScopeChat" TypeBotCommandScopeChatAdministrators = "botCommandScopeChatAdministrators" TypeBotCommandScopeChatMember = "botCommandScopeChatMember" TypeUpdateAuthorizationState = "updateAuthorizationState" TypeUpdateNewMessage = "updateNewMessage" TypeUpdateMessageSendAcknowledged = "updateMessageSendAcknowledged" TypeUpdateMessageSendSucceeded = "updateMessageSendSucceeded" TypeUpdateMessageSendFailed = "updateMessageSendFailed" TypeUpdateMessageContent = "updateMessageContent" TypeUpdateMessageEdited = "updateMessageEdited" TypeUpdateMessageIsPinned = "updateMessageIsPinned" TypeUpdateMessageInteractionInfo = "updateMessageInteractionInfo" TypeUpdateMessageContentOpened = "updateMessageContentOpened" TypeUpdateMessageMentionRead = "updateMessageMentionRead" TypeUpdateMessageUnreadReactions = "updateMessageUnreadReactions" TypeUpdateMessageLiveLocationViewed = "updateMessageLiveLocationViewed" TypeUpdateNewChat = "updateNewChat" TypeUpdateChatTitle = "updateChatTitle" TypeUpdateChatPhoto = "updateChatPhoto" TypeUpdateChatPermissions = "updateChatPermissions" TypeUpdateChatLastMessage = "updateChatLastMessage" TypeUpdateChatPosition = "updateChatPosition" TypeUpdateChatReadInbox = "updateChatReadInbox" TypeUpdateChatReadOutbox = "updateChatReadOutbox" TypeUpdateChatActionBar = "updateChatActionBar" TypeUpdateChatAvailableReactions = "updateChatAvailableReactions" TypeUpdateChatDraftMessage = "updateChatDraftMessage" TypeUpdateChatMessageSender = "updateChatMessageSender" TypeUpdateChatMessageAutoDeleteTime = "updateChatMessageAutoDeleteTime" TypeUpdateChatNotificationSettings = "updateChatNotificationSettings" TypeUpdateChatPendingJoinRequests = "updateChatPendingJoinRequests" TypeUpdateChatReplyMarkup = "updateChatReplyMarkup" TypeUpdateChatBackground = "updateChatBackground" TypeUpdateChatTheme = "updateChatTheme" TypeUpdateChatUnreadMentionCount = "updateChatUnreadMentionCount" TypeUpdateChatUnreadReactionCount = "updateChatUnreadReactionCount" TypeUpdateChatVideoChat = "updateChatVideoChat" TypeUpdateChatDefaultDisableNotification = "updateChatDefaultDisableNotification" TypeUpdateChatHasProtectedContent = "updateChatHasProtectedContent" TypeUpdateChatIsTranslatable = "updateChatIsTranslatable" TypeUpdateChatIsMarkedAsUnread = "updateChatIsMarkedAsUnread" TypeUpdateChatBlockList = "updateChatBlockList" TypeUpdateChatHasScheduledMessages = "updateChatHasScheduledMessages" TypeUpdateChatFolders = "updateChatFolders" TypeUpdateChatOnlineMemberCount = "updateChatOnlineMemberCount" TypeUpdateForumTopicInfo = "updateForumTopicInfo" TypeUpdateScopeNotificationSettings = "updateScopeNotificationSettings" TypeUpdateNotification = "updateNotification" TypeUpdateNotificationGroup = "updateNotificationGroup" TypeUpdateActiveNotifications = "updateActiveNotifications" TypeUpdateHavePendingNotifications = "updateHavePendingNotifications" TypeUpdateDeleteMessages = "updateDeleteMessages" TypeUpdateChatAction = "updateChatAction" TypeUpdateUserStatus = "updateUserStatus" TypeUpdateUser = "updateUser" TypeUpdateBasicGroup = "updateBasicGroup" TypeUpdateSupergroup = "updateSupergroup" TypeUpdateSecretChat = "updateSecretChat" TypeUpdateUserFullInfo = "updateUserFullInfo" TypeUpdateBasicGroupFullInfo = "updateBasicGroupFullInfo" TypeUpdateSupergroupFullInfo = "updateSupergroupFullInfo" TypeUpdateServiceNotification = "updateServiceNotification" TypeUpdateFile = "updateFile" TypeUpdateFileGenerationStart = "updateFileGenerationStart" TypeUpdateFileGenerationStop = "updateFileGenerationStop" TypeUpdateFileDownloads = "updateFileDownloads" TypeUpdateFileAddedToDownloads = "updateFileAddedToDownloads" TypeUpdateFileDownload = "updateFileDownload" TypeUpdateFileRemovedFromDownloads = "updateFileRemovedFromDownloads" TypeUpdateCall = "updateCall" TypeUpdateGroupCall = "updateGroupCall" TypeUpdateGroupCallParticipant = "updateGroupCallParticipant" TypeUpdateNewCallSignalingData = "updateNewCallSignalingData" TypeUpdateUserPrivacySettingRules = "updateUserPrivacySettingRules" TypeUpdateUnreadMessageCount = "updateUnreadMessageCount" TypeUpdateUnreadChatCount = "updateUnreadChatCount" TypeUpdateStory = "updateStory" TypeUpdateStoryDeleted = "updateStoryDeleted" TypeUpdateStorySendSucceeded = "updateStorySendSucceeded" TypeUpdateStorySendFailed = "updateStorySendFailed" TypeUpdateChatActiveStories = "updateChatActiveStories" TypeUpdateStoryListChatCount = "updateStoryListChatCount" TypeUpdateStoryStealthMode = "updateStoryStealthMode" TypeUpdateOption = "updateOption" TypeUpdateStickerSet = "updateStickerSet" TypeUpdateInstalledStickerSets = "updateInstalledStickerSets" TypeUpdateTrendingStickerSets = "updateTrendingStickerSets" TypeUpdateRecentStickers = "updateRecentStickers" TypeUpdateFavoriteStickers = "updateFavoriteStickers" TypeUpdateSavedAnimations = "updateSavedAnimations" TypeUpdateSavedNotificationSounds = "updateSavedNotificationSounds" TypeUpdateSelectedBackground = "updateSelectedBackground" TypeUpdateChatThemes = "updateChatThemes" TypeUpdateLanguagePackStrings = "updateLanguagePackStrings" TypeUpdateConnectionState = "updateConnectionState" TypeUpdateTermsOfService = "updateTermsOfService" TypeUpdateUsersNearby = "updateUsersNearby" TypeUpdateUnconfirmedSession = "updateUnconfirmedSession" TypeUpdateAttachmentMenuBots = "updateAttachmentMenuBots" TypeUpdateWebAppMessageSent = "updateWebAppMessageSent" TypeUpdateActiveEmojiReactions = "updateActiveEmojiReactions" TypeUpdateDefaultReactionType = "updateDefaultReactionType" TypeUpdateDiceEmojis = "updateDiceEmojis" TypeUpdateAnimatedEmojiMessageClicked = "updateAnimatedEmojiMessageClicked" TypeUpdateAnimationSearchParameters = "updateAnimationSearchParameters" TypeUpdateSuggestedActions = "updateSuggestedActions" TypeUpdateAddChatMembersPrivacyForbidden = "updateAddChatMembersPrivacyForbidden" TypeUpdateAutosaveSettings = "updateAutosaveSettings" TypeUpdateNewInlineQuery = "updateNewInlineQuery" TypeUpdateNewChosenInlineResult = "updateNewChosenInlineResult" TypeUpdateNewCallbackQuery = "updateNewCallbackQuery" TypeUpdateNewInlineCallbackQuery = "updateNewInlineCallbackQuery" TypeUpdateNewShippingQuery = "updateNewShippingQuery" TypeUpdateNewPreCheckoutQuery = "updateNewPreCheckoutQuery" TypeUpdateNewCustomEvent = "updateNewCustomEvent" TypeUpdateNewCustomQuery = "updateNewCustomQuery" TypeUpdatePoll = "updatePoll" TypeUpdatePollAnswer = "updatePollAnswer" TypeUpdateChatMember = "updateChatMember" TypeUpdateNewChatJoinRequest = "updateNewChatJoinRequest" TypeUpdates = "updates" TypeLogStreamDefault = "logStreamDefault" TypeLogStreamFile = "logStreamFile" TypeLogStreamEmpty = "logStreamEmpty" TypeLogVerbosityLevel = "logVerbosityLevel" TypeLogTags = "logTags" TypeUserSupportInfo = "userSupportInfo" TypeTestInt = "testInt" TypeTestString = "testString" TypeTestBytes = "testBytes" TypeTestVectorInt = "testVectorInt" TypeTestVectorIntObject = "testVectorIntObject" TypeTestVectorString = "testVectorString" TypeTestVectorStringObject = "testVectorStringObject" )
Variables ¶
var ErrNotSupportedAuthorizationState = errors.New("not supported state")
Functions ¶
func Authorize ¶
func Authorize(client *Client, authorizationStateHandler AuthorizationStateHandler) error
func BotAuthorizer ¶
func BotAuthorizer(token string) *botAuthorizer
func CheckCommand ¶
func CheckCommand(text string, entities []*TextEntity) string
func CliInteractor ¶
func CliInteractor(clientAuthorizer *clientAuthorizer)
func ClientAuthorizer ¶
func ClientAuthorizer() *clientAuthorizer
func CommandArgument ¶
func SetFilePath ¶
func SetFilePath(path string)
func SetLogLevel ¶
func SetLogLevel(level int32)
func SetPendingUpdateType ¶ added in v1.0.6
func SetPendingUpdateType(update ...Type)
Keep specific update type in memory when listener is not ready.
Types ¶
type AcceptCallRequest ¶
type AcceptCallRequest struct { // Call identifier CallId int32 `json:"call_id"` // The call protocols supported by the application Protocol *CallProtocol `json:"protocol"` }
type AcceptTermsOfServiceRequest ¶
type AcceptTermsOfServiceRequest struct { // Terms of service identifier TermsOfServiceId string `json:"terms_of_service_id"` }
type AccountTtl ¶
type AccountTtl struct { // Number of days of inactivity before the account will be flagged for deletion; 30-366 days Days int32 `json:"days"` // contains filtered or unexported fields }
Contains information about the period of inactivity after which the current user's account will automatically be deleted
func UnmarshalAccountTtl ¶
func UnmarshalAccountTtl(data json.RawMessage) (*AccountTtl, error)
func (*AccountTtl) GetClass ¶
func (*AccountTtl) GetClass() string
func (*AccountTtl) GetType ¶
func (*AccountTtl) GetType() string
func (*AccountTtl) MarshalJSON ¶
func (entity *AccountTtl) MarshalJSON() ([]byte, error)
type AddApplicationChangelogRequest ¶ added in v1.2.3
type AddApplicationChangelogRequest struct { // The previous application version PreviousApplicationVersion string `json:"previous_application_version"` }
type AddChatFolderByInviteLinkRequest ¶ added in v1.2.3
type AddChatMemberRequest ¶
type AddChatMemberRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Identifier of the user UserId int64 `json:"user_id"` // The number of earlier messages from the chat to be forwarded to the new member; up to 100. Ignored for supergroups and channels, or if the added user is a bot ForwardLimit int32 `json:"forward_limit"` }
type AddChatMembersRequest ¶
type AddChatToListRequest ¶
type AddContactRequest ¶
type AddCustomServerLanguagePackRequest ¶
type AddCustomServerLanguagePackRequest struct { // Identifier of a language pack to be added LanguagePackId string `json:"language_pack_id"` }
type AddFavoriteStickerRequest ¶
type AddFavoriteStickerRequest struct { // Sticker file to add Sticker InputFile `json:"sticker"` }
type AddFileToDownloadsRequest ¶ added in v1.0.6
type AddFileToDownloadsRequest struct { // Identifier of the file to download FileId int32 `json:"file_id"` // Chat identifier of the message with the file ChatId int64 `json:"chat_id"` // Message identifier MessageId int64 `json:"message_id"` // Priority of the download (1-32). The higher the priority, the earlier the file will be downloaded. If the priorities of two files are equal, then the last one for which downloadFile/addFileToDownloads was called will be downloaded first Priority int32 `json:"priority"` }
type AddLocalMessageRequest ¶
type AddLocalMessageRequest struct { // Target chat ChatId int64 `json:"chat_id"` // Identifier of the sender of the message SenderId MessageSender `json:"sender_id"` // Identifier of the replied message or story; pass null if none ReplyTo MessageReplyTo `json:"reply_to"` // Pass true to disable notification for the message DisableNotification bool `json:"disable_notification"` // The content of the message to be added InputMessageContent InputMessageContent `json:"input_message_content"` }
type AddLogMessageRequest ¶
type AddMessageReactionRequest ¶ added in v1.2.3
type AddMessageReactionRequest struct { // Identifier of the chat to which the message belongs ChatId int64 `json:"chat_id"` // Identifier of the message MessageId int64 `json:"message_id"` // Type of the reaction to add ReactionType ReactionType `json:"reaction_type"` // Pass true if the reaction is added with a big animation IsBig bool `json:"is_big"` // Pass true if the reaction needs to be added to recent reactions UpdateRecentReactions bool `json:"update_recent_reactions"` }
type AddNetworkStatisticsRequest ¶
type AddNetworkStatisticsRequest struct { // The network statistics entry with the data to be added to statistics Entry NetworkStatisticsEntry `json:"entry"` }
type AddProxyRequest ¶
type AddRecentStickerRequest ¶
type AddRecentStickerRequest struct { // Pass true to add the sticker to the list of stickers recently attached to photo or video files; pass false to add the sticker to the list of recently sent stickers IsAttached bool `json:"is_attached"` // Sticker file to add Sticker InputFile `json:"sticker"` }
type AddRecentlyFoundChatRequest ¶
type AddRecentlyFoundChatRequest struct { // Identifier of the chat to add ChatId int64 `json:"chat_id"` }
type AddSavedAnimationRequest ¶
type AddSavedAnimationRequest struct { // The animation file to be added. Only animations known to the server (i.e., successfully sent via a message) can be added to the list Animation InputFile `json:"animation"` }
type AddSavedNotificationSoundRequest ¶ added in v1.0.6
type AddSavedNotificationSoundRequest struct { // Notification sound file to add Sound InputFile `json:"sound"` }
type AddStickerToSetRequest ¶
type AddStickerToSetRequest struct { // Sticker set owner UserId int64 `json:"user_id"` // Sticker set name Name string `json:"name"` // Sticker to add to the set Sticker *InputSticker `json:"sticker"` }
type AddedReaction ¶ added in v1.0.6
type AddedReaction struct { // Type of the reaction Type ReactionType `json:"type"` // Identifier of the chat member, applied the reaction SenderId MessageSender `json:"sender_id"` // Point in time (Unix timestamp) when the reaction was added Date int32 `json:"date"` // contains filtered or unexported fields }
Represents a reaction applied to a message
func UnmarshalAddedReaction ¶ added in v1.0.6
func UnmarshalAddedReaction(data json.RawMessage) (*AddedReaction, error)
func (*AddedReaction) GetClass ¶ added in v1.0.6
func (*AddedReaction) GetClass() string
func (*AddedReaction) GetType ¶ added in v1.0.6
func (*AddedReaction) GetType() string
func (*AddedReaction) MarshalJSON ¶ added in v1.0.6
func (entity *AddedReaction) MarshalJSON() ([]byte, error)
func (*AddedReaction) UnmarshalJSON ¶ added in v1.0.6
func (addedReaction *AddedReaction) UnmarshalJSON(data []byte) error
type AddedReactions ¶ added in v1.0.6
type AddedReactions struct { // The total number of found reactions TotalCount int32 `json:"total_count"` // The list of added reactions Reactions []*AddedReaction `json:"reactions"` // The offset for the next request. If empty, there are no more results NextOffset string `json:"next_offset"` // contains filtered or unexported fields }
Represents a list of reactions added to a message
func UnmarshalAddedReactions ¶ added in v1.0.6
func UnmarshalAddedReactions(data json.RawMessage) (*AddedReactions, error)
func (*AddedReactions) GetClass ¶ added in v1.0.6
func (*AddedReactions) GetClass() string
func (*AddedReactions) GetType ¶ added in v1.0.6
func (*AddedReactions) GetType() string
func (*AddedReactions) MarshalJSON ¶ added in v1.0.6
func (entity *AddedReactions) MarshalJSON() ([]byte, error)
type Address ¶
type Address struct { // A two-letter ISO 3166-1 alpha-2 country code CountryCode string `json:"country_code"` // State, if applicable State string `json:"state"` // City City string `json:"city"` // First line of the address StreetLine1 string `json:"street_line1"` // Second line of the address StreetLine2 string `json:"street_line2"` // Address postal code PostalCode string `json:"postal_code"` // contains filtered or unexported fields }
Describes an address
func UnmarshalAddress ¶
func UnmarshalAddress(data json.RawMessage) (*Address, error)
func (*Address) MarshalJSON ¶
type AllowBotToSendMessagesRequest ¶ added in v1.2.3
type AllowBotToSendMessagesRequest struct { // Identifier of the target bot BotUserId int64 `json:"bot_user_id"` }
type AnimatedChatPhoto ¶
type AnimatedChatPhoto struct { // Animation width and height Length int32 `json:"length"` // Information about the animation file File *File `json:"file"` // Timestamp of the frame, used as a static chat photo MainFrameTimestamp float64 `json:"main_frame_timestamp"` // contains filtered or unexported fields }
Animated variant of a chat photo in MPEG4 format
func UnmarshalAnimatedChatPhoto ¶
func UnmarshalAnimatedChatPhoto(data json.RawMessage) (*AnimatedChatPhoto, error)
func (*AnimatedChatPhoto) GetClass ¶
func (*AnimatedChatPhoto) GetClass() string
func (*AnimatedChatPhoto) GetType ¶
func (*AnimatedChatPhoto) GetType() string
func (*AnimatedChatPhoto) MarshalJSON ¶
func (entity *AnimatedChatPhoto) MarshalJSON() ([]byte, error)
type AnimatedEmoji ¶
type AnimatedEmoji struct { // Sticker for the emoji; may be null if yet unknown for a custom emoji. If the sticker is a custom emoji, it can have arbitrary format different from stickerFormatTgs Sticker *Sticker `json:"sticker"` // Expected width of the sticker, which can be used if the sticker is null StickerWidth int32 `json:"sticker_width"` // Expected height of the sticker, which can be used if the sticker is null StickerHeight int32 `json:"sticker_height"` // Emoji modifier fitzpatrick type; 0-6; 0 if none FitzpatrickType int32 `json:"fitzpatrick_type"` // File containing the sound to be played when the sticker is clicked; may be null. The sound is encoded with the Opus codec, and stored inside an OGG container Sound *File `json:"sound"` // contains filtered or unexported fields }
Describes an animated or custom representation of an emoji
func UnmarshalAnimatedEmoji ¶
func UnmarshalAnimatedEmoji(data json.RawMessage) (*AnimatedEmoji, error)
func (*AnimatedEmoji) GetClass ¶
func (*AnimatedEmoji) GetClass() string
func (*AnimatedEmoji) GetType ¶
func (*AnimatedEmoji) GetType() string
func (*AnimatedEmoji) MarshalJSON ¶
func (entity *AnimatedEmoji) MarshalJSON() ([]byte, error)
type Animation ¶
type Animation struct { // Duration of the animation, in seconds; as defined by the sender Duration int32 `json:"duration"` // Width of the animation Width int32 `json:"width"` // Height of the animation Height int32 `json:"height"` // Original name of the file; as defined by the sender FileName string `json:"file_name"` // MIME type of the file, usually "image/gif" or "video/mp4" MimeType string `json:"mime_type"` // True, if stickers were added to the animation. The list of corresponding sticker set can be received using getAttachedStickerSets HasStickers bool `json:"has_stickers"` // Animation minithumbnail; may be null Minithumbnail *Minithumbnail `json:"minithumbnail"` // Animation thumbnail in JPEG or MPEG4 format; may be null Thumbnail *Thumbnail `json:"thumbnail"` // File containing the animation Animation *File `json:"animation"` // contains filtered or unexported fields }
Describes an animation file. The animation must be encoded in GIF or MPEG4 format
func UnmarshalAnimation ¶
func UnmarshalAnimation(data json.RawMessage) (*Animation, error)
func (*Animation) MarshalJSON ¶
type Animations ¶
type Animations struct { // List of animations Animations []*Animation `json:"animations"` // contains filtered or unexported fields }
Represents a list of animations
func UnmarshalAnimations ¶
func UnmarshalAnimations(data json.RawMessage) (*Animations, error)
func (*Animations) GetClass ¶
func (*Animations) GetClass() string
func (*Animations) GetType ¶
func (*Animations) GetType() string
func (*Animations) MarshalJSON ¶
func (entity *Animations) MarshalJSON() ([]byte, error)
type AnswerCallbackQueryRequest ¶
type AnswerCallbackQueryRequest struct { // Identifier of the callback query CallbackQueryId JsonInt64 `json:"callback_query_id"` // Text of the answer Text string `json:"text"` // Pass true to show an alert to the user instead of a toast notification ShowAlert bool `json:"show_alert"` // URL to be opened Url string `json:"url"` // Time during which the result of the query can be cached, in seconds CacheTime int32 `json:"cache_time"` }
type AnswerInlineQueryRequest ¶
type AnswerInlineQueryRequest struct { // Identifier of the inline query InlineQueryId JsonInt64 `json:"inline_query_id"` // Pass true if results may be cached and returned only for the user that sent the query. By default, results may be returned to any user who sends the same query IsPersonal bool `json:"is_personal"` // Button to be shown above inline query results; pass null if none Button *InlineQueryResultsButton `json:"button"` // The results of the query Results []InputInlineQueryResult `json:"results"` // Allowed time to cache the results of the query, in seconds CacheTime int32 `json:"cache_time"` // Offset for the next inline query; pass an empty string if there are no more results NextOffset string `json:"next_offset"` }
type AnswerShippingQueryRequest ¶
type AnswerShippingQueryRequest struct { // Identifier of the shipping query ShippingQueryId JsonInt64 `json:"shipping_query_id"` // Available shipping options ShippingOptions []*ShippingOption `json:"shipping_options"` // An error message, empty on success ErrorMessage string `json:"error_message"` }
type AnswerWebAppQueryRequest ¶ added in v1.0.6
type AnswerWebAppQueryRequest struct { // Identifier of the Web App query WebAppQueryId string `json:"web_app_query_id"` // The result of the query Result InputInlineQueryResult `json:"result"` }
type ArchiveChatListSettings ¶ added in v1.2.3
type ArchiveChatListSettings struct { // True, if new chats from non-contacts will be automatically archived and muted. Can be set to true only if the option "can_archive_and_mute_new_chats_from_unknown_users" is true ArchiveAndMuteNewChatsFromUnknownUsers bool `json:"archive_and_mute_new_chats_from_unknown_users"` // True, if unmuted chats will be kept in the Archive chat list when they get a new message KeepUnmutedChatsArchived bool `json:"keep_unmuted_chats_archived"` // True, if unmuted chats, that are always included or pinned in a folder, will be kept in the Archive chat list when they get a new message. Ignored if keep_unmuted_chats_archived == true KeepChatsFromFoldersArchived bool `json:"keep_chats_from_folders_archived"` // contains filtered or unexported fields }
Contains settings for automatic moving of chats to and from the Archive chat lists
func UnmarshalArchiveChatListSettings ¶ added in v1.2.3
func UnmarshalArchiveChatListSettings(data json.RawMessage) (*ArchiveChatListSettings, error)
func (*ArchiveChatListSettings) GetClass ¶ added in v1.2.3
func (*ArchiveChatListSettings) GetClass() string
func (*ArchiveChatListSettings) GetType ¶ added in v1.2.3
func (*ArchiveChatListSettings) GetType() string
func (*ArchiveChatListSettings) MarshalJSON ¶ added in v1.2.3
func (entity *ArchiveChatListSettings) MarshalJSON() ([]byte, error)
type AssignAppStoreTransactionRequest ¶ added in v1.2.3
type AssignAppStoreTransactionRequest struct { // App Store receipt Receipt []byte `json:"receipt"` // Transaction purpose Purpose StorePaymentPurpose `json:"purpose"` }
type AssignGooglePlayTransactionRequest ¶ added in v1.2.3
type AssignGooglePlayTransactionRequest struct { // Application package name PackageName string `json:"package_name"` // Identifier of the purchased store product StoreProductId string `json:"store_product_id"` // Google Play purchase token PurchaseToken string `json:"purchase_token"` // Transaction purpose Purpose StorePaymentPurpose `json:"purpose"` }
type AttachmentMenuBot ¶ added in v1.0.6
type AttachmentMenuBot struct { // User identifier of the bot BotUserId int64 `json:"bot_user_id"` // True, if the bot supports opening from attachment menu in the chat with the bot SupportsSelfChat bool `json:"supports_self_chat"` // True, if the bot supports opening from attachment menu in private chats with ordinary users SupportsUserChats bool `json:"supports_user_chats"` // True, if the bot supports opening from attachment menu in private chats with other bots SupportsBotChats bool `json:"supports_bot_chats"` // True, if the bot supports opening from attachment menu in basic group and supergroup chats SupportsGroupChats bool `json:"supports_group_chats"` // True, if the bot supports opening from attachment menu in channel chats SupportsChannelChats bool `json:"supports_channel_chats"` // True, if the bot supports "settings_button_pressed" event SupportsSettings bool `json:"supports_settings"` // True, if the user must be asked for the permission to send messages to the bot RequestWriteAccess bool `json:"request_write_access"` // True, if the bot was explicitly added by the user. If the bot isn't added, then on the first bot launch toggleBotIsAddedToAttachmentMenu must be called and the bot must be added or removed IsAdded bool `json:"is_added"` // True, if the bot must be shown in the attachment menu ShowInAttachmentMenu bool `json:"show_in_attachment_menu"` // True, if the bot must be shown in the side menu ShowInSideMenu bool `json:"show_in_side_menu"` // True, if a disclaimer, why the bot is shown in the side menu, is needed ShowDisclaimerInSideMenu bool `json:"show_disclaimer_in_side_menu"` // Name for the bot in attachment menu Name string `json:"name"` // Color to highlight selected name of the bot if appropriate; may be null NameColor *AttachmentMenuBotColor `json:"name_color"` // Default icon for the bot in SVG format; may be null DefaultIcon *File `json:"default_icon"` // Icon for the bot in SVG format for the official iOS app; may be null IosStaticIcon *File `json:"ios_static_icon"` // Icon for the bot in TGS format for the official iOS app; may be null IosAnimatedIcon *File `json:"ios_animated_icon"` // Icon for the bot in PNG format for the official iOS app side menu; may be null IosSideMenuIcon *File `json:"ios_side_menu_icon"` // Icon for the bot in TGS format for the official Android app; may be null AndroidIcon *File `json:"android_icon"` // Icon for the bot in SVG format for the official Android app side menu; may be null AndroidSideMenuIcon *File `json:"android_side_menu_icon"` // Icon for the bot in TGS format for the official native macOS app; may be null MacosIcon *File `json:"macos_icon"` // Icon for the bot in PNG format for the official macOS app side menu; may be null MacosSideMenuIcon *File `json:"macos_side_menu_icon"` // Color to highlight selected icon of the bot if appropriate; may be null IconColor *AttachmentMenuBotColor `json:"icon_color"` // Default placeholder for opened Web Apps in SVG format; may be null WebAppPlaceholder *File `json:"web_app_placeholder"` // contains filtered or unexported fields }
Represents a bot, which can be added to attachment or side menu
func UnmarshalAttachmentMenuBot ¶ added in v1.0.6
func UnmarshalAttachmentMenuBot(data json.RawMessage) (*AttachmentMenuBot, error)
func (*AttachmentMenuBot) GetClass ¶ added in v1.0.6
func (*AttachmentMenuBot) GetClass() string
func (*AttachmentMenuBot) GetType ¶ added in v1.0.6
func (*AttachmentMenuBot) GetType() string
func (*AttachmentMenuBot) MarshalJSON ¶ added in v1.0.6
func (entity *AttachmentMenuBot) MarshalJSON() ([]byte, error)
type AttachmentMenuBotColor ¶ added in v1.0.6
type AttachmentMenuBotColor struct { // Color in the RGB24 format for light themes LightColor int32 `json:"light_color"` // Color in the RGB24 format for dark themes DarkColor int32 `json:"dark_color"` // contains filtered or unexported fields }
Describes a color to highlight a bot added to attachment menu
func UnmarshalAttachmentMenuBotColor ¶ added in v1.0.6
func UnmarshalAttachmentMenuBotColor(data json.RawMessage) (*AttachmentMenuBotColor, error)
func (*AttachmentMenuBotColor) GetClass ¶ added in v1.0.6
func (*AttachmentMenuBotColor) GetClass() string
func (*AttachmentMenuBotColor) GetType ¶ added in v1.0.6
func (*AttachmentMenuBotColor) GetType() string
func (*AttachmentMenuBotColor) MarshalJSON ¶ added in v1.0.6
func (entity *AttachmentMenuBotColor) MarshalJSON() ([]byte, error)
type Audio ¶
type Audio struct { // Duration of the audio, in seconds; as defined by the sender Duration int32 `json:"duration"` // Title of the audio; as defined by the sender Title string `json:"title"` // Performer of the audio; as defined by the sender Performer string `json:"performer"` // Original name of the file; as defined by the sender FileName string `json:"file_name"` // The MIME type of the file; as defined by the sender MimeType string `json:"mime_type"` // The minithumbnail of the album cover; may be null AlbumCoverMinithumbnail *Minithumbnail `json:"album_cover_minithumbnail"` // The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail is supposed to be extracted from the downloaded audio file; may be null AlbumCoverThumbnail *Thumbnail `json:"album_cover_thumbnail"` // Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate ExternalAlbumCovers []*Thumbnail `json:"external_album_covers"` // File containing the audio Audio *File `json:"audio"` // contains filtered or unexported fields }
Describes an audio file. Audio is usually in MP3 or M4A format
func UnmarshalAudio ¶
func UnmarshalAudio(data json.RawMessage) (*Audio, error)
func (*Audio) MarshalJSON ¶
type AuthenticationCodeInfo ¶
type AuthenticationCodeInfo struct { // A phone number that is being authenticated PhoneNumber string `json:"phone_number"` // The way the code was sent to the user Type AuthenticationCodeType `json:"type"` // The way the next code will be sent to the user; may be null NextType AuthenticationCodeType `json:"next_type"` // Timeout before the code can be re-sent, in seconds Timeout int32 `json:"timeout"` // contains filtered or unexported fields }
Information about the authentication code that was sent
func UnmarshalAuthenticationCodeInfo ¶
func UnmarshalAuthenticationCodeInfo(data json.RawMessage) (*AuthenticationCodeInfo, error)
func (*AuthenticationCodeInfo) GetClass ¶
func (*AuthenticationCodeInfo) GetClass() string
func (*AuthenticationCodeInfo) GetType ¶
func (*AuthenticationCodeInfo) GetType() string
func (*AuthenticationCodeInfo) MarshalJSON ¶
func (entity *AuthenticationCodeInfo) MarshalJSON() ([]byte, error)
func (*AuthenticationCodeInfo) UnmarshalJSON ¶
func (authenticationCodeInfo *AuthenticationCodeInfo) UnmarshalJSON(data []byte) error
type AuthenticationCodeType ¶
type AuthenticationCodeType interface {
AuthenticationCodeTypeType() string
}
Provides information about the method by which an authentication code is delivered to the user
func UnmarshalAuthenticationCodeType ¶
func UnmarshalAuthenticationCodeType(data json.RawMessage) (AuthenticationCodeType, error)
func UnmarshalListOfAuthenticationCodeType ¶
func UnmarshalListOfAuthenticationCodeType(dataList []json.RawMessage) ([]AuthenticationCodeType, error)
type AuthenticationCodeTypeCall ¶
type AuthenticationCodeTypeCall struct { // Length of the code Length int32 `json:"length"` // contains filtered or unexported fields }
An authentication code is delivered via a phone call to the specified phone number
func UnmarshalAuthenticationCodeTypeCall ¶
func UnmarshalAuthenticationCodeTypeCall(data json.RawMessage) (*AuthenticationCodeTypeCall, error)
func (*AuthenticationCodeTypeCall) AuthenticationCodeTypeType ¶
func (*AuthenticationCodeTypeCall) AuthenticationCodeTypeType() string
func (*AuthenticationCodeTypeCall) GetClass ¶
func (*AuthenticationCodeTypeCall) GetClass() string
func (*AuthenticationCodeTypeCall) GetType ¶
func (*AuthenticationCodeTypeCall) GetType() string
func (*AuthenticationCodeTypeCall) MarshalJSON ¶
func (entity *AuthenticationCodeTypeCall) MarshalJSON() ([]byte, error)
type AuthenticationCodeTypeFirebaseAndroid ¶ added in v1.2.3
type AuthenticationCodeTypeFirebaseAndroid struct { // Nonce to pass to the SafetyNet Attestation API Nonce []byte `json:"nonce"` // Length of the code Length int32 `json:"length"` // contains filtered or unexported fields }
An authentication code is delivered via Firebase Authentication to the official Android application
func UnmarshalAuthenticationCodeTypeFirebaseAndroid ¶ added in v1.2.3
func UnmarshalAuthenticationCodeTypeFirebaseAndroid(data json.RawMessage) (*AuthenticationCodeTypeFirebaseAndroid, error)
func (*AuthenticationCodeTypeFirebaseAndroid) AuthenticationCodeTypeType ¶ added in v1.2.3
func (*AuthenticationCodeTypeFirebaseAndroid) AuthenticationCodeTypeType() string
func (*AuthenticationCodeTypeFirebaseAndroid) GetClass ¶ added in v1.2.3
func (*AuthenticationCodeTypeFirebaseAndroid) GetClass() string
func (*AuthenticationCodeTypeFirebaseAndroid) GetType ¶ added in v1.2.3
func (*AuthenticationCodeTypeFirebaseAndroid) GetType() string
func (*AuthenticationCodeTypeFirebaseAndroid) MarshalJSON ¶ added in v1.2.3
func (entity *AuthenticationCodeTypeFirebaseAndroid) MarshalJSON() ([]byte, error)
type AuthenticationCodeTypeFirebaseIos ¶ added in v1.2.3
type AuthenticationCodeTypeFirebaseIos struct { // Receipt of successful application token validation to compare with receipt from push notification Receipt string `json:"receipt"` // Time after the next authentication method is supposed to be used if verification push notification isn't received, in seconds PushTimeout int32 `json:"push_timeout"` // Length of the code Length int32 `json:"length"` // contains filtered or unexported fields }
An authentication code is delivered via Firebase Authentication to the official iOS application
func UnmarshalAuthenticationCodeTypeFirebaseIos ¶ added in v1.2.3
func UnmarshalAuthenticationCodeTypeFirebaseIos(data json.RawMessage) (*AuthenticationCodeTypeFirebaseIos, error)
func (*AuthenticationCodeTypeFirebaseIos) AuthenticationCodeTypeType ¶ added in v1.2.3
func (*AuthenticationCodeTypeFirebaseIos) AuthenticationCodeTypeType() string
func (*AuthenticationCodeTypeFirebaseIos) GetClass ¶ added in v1.2.3
func (*AuthenticationCodeTypeFirebaseIos) GetClass() string
func (*AuthenticationCodeTypeFirebaseIos) GetType ¶ added in v1.2.3
func (*AuthenticationCodeTypeFirebaseIos) GetType() string
func (*AuthenticationCodeTypeFirebaseIos) MarshalJSON ¶ added in v1.2.3
func (entity *AuthenticationCodeTypeFirebaseIos) MarshalJSON() ([]byte, error)
type AuthenticationCodeTypeFlashCall ¶
type AuthenticationCodeTypeFlashCall struct { // Pattern of the phone number from which the call will be made Pattern string `json:"pattern"` // contains filtered or unexported fields }
An authentication code is delivered by an immediately canceled call to the specified phone number. The phone number that calls is the code that must be entered automatically
func UnmarshalAuthenticationCodeTypeFlashCall ¶
func UnmarshalAuthenticationCodeTypeFlashCall(data json.RawMessage) (*AuthenticationCodeTypeFlashCall, error)
func (*AuthenticationCodeTypeFlashCall) AuthenticationCodeTypeType ¶
func (*AuthenticationCodeTypeFlashCall) AuthenticationCodeTypeType() string
func (*AuthenticationCodeTypeFlashCall) GetClass ¶
func (*AuthenticationCodeTypeFlashCall) GetClass() string
func (*AuthenticationCodeTypeFlashCall) GetType ¶
func (*AuthenticationCodeTypeFlashCall) GetType() string
func (*AuthenticationCodeTypeFlashCall) MarshalJSON ¶
func (entity *AuthenticationCodeTypeFlashCall) MarshalJSON() ([]byte, error)
type AuthenticationCodeTypeFragment ¶ added in v1.2.3
type AuthenticationCodeTypeFragment struct { // URL to open to receive the code Url string `json:"url"` // Length of the code Length int32 `json:"length"` // contains filtered or unexported fields }
An authentication code is delivered to https://fragment.com. The user must be logged in there via a wallet owning the phone number's NFT
func UnmarshalAuthenticationCodeTypeFragment ¶ added in v1.2.3
func UnmarshalAuthenticationCodeTypeFragment(data json.RawMessage) (*AuthenticationCodeTypeFragment, error)
func (*AuthenticationCodeTypeFragment) AuthenticationCodeTypeType ¶ added in v1.2.3
func (*AuthenticationCodeTypeFragment) AuthenticationCodeTypeType() string
func (*AuthenticationCodeTypeFragment) GetClass ¶ added in v1.2.3
func (*AuthenticationCodeTypeFragment) GetClass() string
func (*AuthenticationCodeTypeFragment) GetType ¶ added in v1.2.3
func (*AuthenticationCodeTypeFragment) GetType() string
func (*AuthenticationCodeTypeFragment) MarshalJSON ¶ added in v1.2.3
func (entity *AuthenticationCodeTypeFragment) MarshalJSON() ([]byte, error)
type AuthenticationCodeTypeMissedCall ¶
type AuthenticationCodeTypeMissedCall struct { // Prefix of the phone number from which the call will be made PhoneNumberPrefix string `json:"phone_number_prefix"` // Number of digits in the code, excluding the prefix Length int32 `json:"length"` // contains filtered or unexported fields }
An authentication code is delivered by an immediately canceled call to the specified phone number. The last digits of the phone number that calls are the code that must be entered manually by the user
func UnmarshalAuthenticationCodeTypeMissedCall ¶
func UnmarshalAuthenticationCodeTypeMissedCall(data json.RawMessage) (*AuthenticationCodeTypeMissedCall, error)
func (*AuthenticationCodeTypeMissedCall) AuthenticationCodeTypeType ¶
func (*AuthenticationCodeTypeMissedCall) AuthenticationCodeTypeType() string
func (*AuthenticationCodeTypeMissedCall) GetClass ¶
func (*AuthenticationCodeTypeMissedCall) GetClass() string
func (*AuthenticationCodeTypeMissedCall) GetType ¶
func (*AuthenticationCodeTypeMissedCall) GetType() string
func (*AuthenticationCodeTypeMissedCall) MarshalJSON ¶
func (entity *AuthenticationCodeTypeMissedCall) MarshalJSON() ([]byte, error)
type AuthenticationCodeTypeSms ¶
type AuthenticationCodeTypeSms struct { // Length of the code Length int32 `json:"length"` // contains filtered or unexported fields }
An authentication code is delivered via an SMS message to the specified phone number; applications may not receive this type of code
func UnmarshalAuthenticationCodeTypeSms ¶
func UnmarshalAuthenticationCodeTypeSms(data json.RawMessage) (*AuthenticationCodeTypeSms, error)
func (*AuthenticationCodeTypeSms) AuthenticationCodeTypeType ¶
func (*AuthenticationCodeTypeSms) AuthenticationCodeTypeType() string
func (*AuthenticationCodeTypeSms) GetClass ¶
func (*AuthenticationCodeTypeSms) GetClass() string
func (*AuthenticationCodeTypeSms) GetType ¶
func (*AuthenticationCodeTypeSms) GetType() string
func (*AuthenticationCodeTypeSms) MarshalJSON ¶
func (entity *AuthenticationCodeTypeSms) MarshalJSON() ([]byte, error)
type AuthenticationCodeTypeTelegramMessage ¶
type AuthenticationCodeTypeTelegramMessage struct { // Length of the code Length int32 `json:"length"` // contains filtered or unexported fields }
An authentication code is delivered via a private Telegram message, which can be viewed from another active session
func UnmarshalAuthenticationCodeTypeTelegramMessage ¶
func UnmarshalAuthenticationCodeTypeTelegramMessage(data json.RawMessage) (*AuthenticationCodeTypeTelegramMessage, error)
func (*AuthenticationCodeTypeTelegramMessage) AuthenticationCodeTypeType ¶
func (*AuthenticationCodeTypeTelegramMessage) AuthenticationCodeTypeType() string
func (*AuthenticationCodeTypeTelegramMessage) GetClass ¶
func (*AuthenticationCodeTypeTelegramMessage) GetClass() string
func (*AuthenticationCodeTypeTelegramMessage) GetType ¶
func (*AuthenticationCodeTypeTelegramMessage) GetType() string
func (*AuthenticationCodeTypeTelegramMessage) MarshalJSON ¶
func (entity *AuthenticationCodeTypeTelegramMessage) MarshalJSON() ([]byte, error)
type AuthorizationState ¶
type AuthorizationState interface {
AuthorizationStateType() string
}
Represents the current authorization state of the TDLib client
func UnmarshalAuthorizationState ¶
func UnmarshalAuthorizationState(data json.RawMessage) (AuthorizationState, error)
func UnmarshalListOfAuthorizationState ¶
func UnmarshalListOfAuthorizationState(dataList []json.RawMessage) ([]AuthorizationState, error)
type AuthorizationStateClosed ¶
type AuthorizationStateClosed struct {
// contains filtered or unexported fields
}
TDLib client is in its final state. All databases are closed and all resources are released. No other updates will be received after this. All queries will be responded to with error code 500. To continue working, one must create a new instance of the TDLib client
func UnmarshalAuthorizationStateClosed ¶
func UnmarshalAuthorizationStateClosed(data json.RawMessage) (*AuthorizationStateClosed, error)
func (*AuthorizationStateClosed) AuthorizationStateType ¶
func (*AuthorizationStateClosed) AuthorizationStateType() string
func (*AuthorizationStateClosed) GetClass ¶
func (*AuthorizationStateClosed) GetClass() string
func (*AuthorizationStateClosed) GetType ¶
func (*AuthorizationStateClosed) GetType() string
func (*AuthorizationStateClosed) MarshalJSON ¶
func (entity *AuthorizationStateClosed) MarshalJSON() ([]byte, error)
type AuthorizationStateClosing ¶
type AuthorizationStateClosing struct {
// contains filtered or unexported fields
}
TDLib is closing, all subsequent queries will be answered with the error 500. Note that closing TDLib can take a while. All resources will be freed only after authorizationStateClosed has been received
func UnmarshalAuthorizationStateClosing ¶
func UnmarshalAuthorizationStateClosing(data json.RawMessage) (*AuthorizationStateClosing, error)
func (*AuthorizationStateClosing) AuthorizationStateType ¶
func (*AuthorizationStateClosing) AuthorizationStateType() string
func (*AuthorizationStateClosing) GetClass ¶
func (*AuthorizationStateClosing) GetClass() string
func (*AuthorizationStateClosing) GetType ¶
func (*AuthorizationStateClosing) GetType() string
func (*AuthorizationStateClosing) MarshalJSON ¶
func (entity *AuthorizationStateClosing) MarshalJSON() ([]byte, error)
type AuthorizationStateHandler ¶
type AuthorizationStateHandler interface { Handle(client *Client, state AuthorizationState) error Close() }
type AuthorizationStateLoggingOut ¶
type AuthorizationStateLoggingOut struct {
// contains filtered or unexported fields
}
The user is currently logging out
func UnmarshalAuthorizationStateLoggingOut ¶
func UnmarshalAuthorizationStateLoggingOut(data json.RawMessage) (*AuthorizationStateLoggingOut, error)
func (*AuthorizationStateLoggingOut) AuthorizationStateType ¶
func (*AuthorizationStateLoggingOut) AuthorizationStateType() string
func (*AuthorizationStateLoggingOut) GetClass ¶
func (*AuthorizationStateLoggingOut) GetClass() string
func (*AuthorizationStateLoggingOut) GetType ¶
func (*AuthorizationStateLoggingOut) GetType() string
func (*AuthorizationStateLoggingOut) MarshalJSON ¶
func (entity *AuthorizationStateLoggingOut) MarshalJSON() ([]byte, error)
type AuthorizationStateReady ¶
type AuthorizationStateReady struct {
// contains filtered or unexported fields
}
The user has been successfully authorized. TDLib is now ready to answer general requests
func UnmarshalAuthorizationStateReady ¶
func UnmarshalAuthorizationStateReady(data json.RawMessage) (*AuthorizationStateReady, error)
func (*AuthorizationStateReady) AuthorizationStateType ¶
func (*AuthorizationStateReady) AuthorizationStateType() string
func (*AuthorizationStateReady) GetClass ¶
func (*AuthorizationStateReady) GetClass() string
func (*AuthorizationStateReady) GetType ¶
func (*AuthorizationStateReady) GetType() string
func (*AuthorizationStateReady) MarshalJSON ¶
func (entity *AuthorizationStateReady) MarshalJSON() ([]byte, error)
type AuthorizationStateWaitCode ¶
type AuthorizationStateWaitCode struct { // Information about the authorization code that was sent CodeInfo *AuthenticationCodeInfo `json:"code_info"` // contains filtered or unexported fields }
TDLib needs the user's authentication code to authorize. Call checkAuthenticationCode to check the code
func UnmarshalAuthorizationStateWaitCode ¶
func UnmarshalAuthorizationStateWaitCode(data json.RawMessage) (*AuthorizationStateWaitCode, error)
func (*AuthorizationStateWaitCode) AuthorizationStateType ¶
func (*AuthorizationStateWaitCode) AuthorizationStateType() string
func (*AuthorizationStateWaitCode) GetClass ¶
func (*AuthorizationStateWaitCode) GetClass() string
func (*AuthorizationStateWaitCode) GetType ¶
func (*AuthorizationStateWaitCode) GetType() string
func (*AuthorizationStateWaitCode) MarshalJSON ¶
func (entity *AuthorizationStateWaitCode) MarshalJSON() ([]byte, error)
type AuthorizationStateWaitEmailAddress ¶ added in v1.2.3
type AuthorizationStateWaitEmailAddress struct { // True, if authorization through Apple ID is allowed AllowAppleId bool `json:"allow_apple_id"` // True, if authorization through Google ID is allowed AllowGoogleId bool `json:"allow_google_id"` // contains filtered or unexported fields }
TDLib needs the user's email address to authorize. Call setAuthenticationEmailAddress to provide the email address, or directly call checkAuthenticationEmailCode with Apple ID/Google ID token if allowed
func UnmarshalAuthorizationStateWaitEmailAddress ¶ added in v1.2.3
func UnmarshalAuthorizationStateWaitEmailAddress(data json.RawMessage) (*AuthorizationStateWaitEmailAddress, error)
func (*AuthorizationStateWaitEmailAddress) AuthorizationStateType ¶ added in v1.2.3
func (*AuthorizationStateWaitEmailAddress) AuthorizationStateType() string
func (*AuthorizationStateWaitEmailAddress) GetClass ¶ added in v1.2.3
func (*AuthorizationStateWaitEmailAddress) GetClass() string
func (*AuthorizationStateWaitEmailAddress) GetType ¶ added in v1.2.3
func (*AuthorizationStateWaitEmailAddress) GetType() string
func (*AuthorizationStateWaitEmailAddress) MarshalJSON ¶ added in v1.2.3
func (entity *AuthorizationStateWaitEmailAddress) MarshalJSON() ([]byte, error)
type AuthorizationStateWaitEmailCode ¶ added in v1.2.3
type AuthorizationStateWaitEmailCode struct { // True, if authorization through Apple ID is allowed AllowAppleId bool `json:"allow_apple_id"` // True, if authorization through Google ID is allowed AllowGoogleId bool `json:"allow_google_id"` // Information about the sent authentication code CodeInfo *EmailAddressAuthenticationCodeInfo `json:"code_info"` // Reset state of the email address; may be null if the email address can't be reset EmailAddressResetState EmailAddressResetState `json:"email_address_reset_state"` // contains filtered or unexported fields }
TDLib needs the user's authentication code sent to an email address to authorize. Call checkAuthenticationEmailCode to provide the code
func UnmarshalAuthorizationStateWaitEmailCode ¶ added in v1.2.3
func UnmarshalAuthorizationStateWaitEmailCode(data json.RawMessage) (*AuthorizationStateWaitEmailCode, error)
func (*AuthorizationStateWaitEmailCode) AuthorizationStateType ¶ added in v1.2.3
func (*AuthorizationStateWaitEmailCode) AuthorizationStateType() string
func (*AuthorizationStateWaitEmailCode) GetClass ¶ added in v1.2.3
func (*AuthorizationStateWaitEmailCode) GetClass() string
func (*AuthorizationStateWaitEmailCode) GetType ¶ added in v1.2.3
func (*AuthorizationStateWaitEmailCode) GetType() string
func (*AuthorizationStateWaitEmailCode) MarshalJSON ¶ added in v1.2.3
func (entity *AuthorizationStateWaitEmailCode) MarshalJSON() ([]byte, error)
func (*AuthorizationStateWaitEmailCode) UnmarshalJSON ¶ added in v1.2.3
func (authorizationStateWaitEmailCode *AuthorizationStateWaitEmailCode) UnmarshalJSON(data []byte) error
type AuthorizationStateWaitOtherDeviceConfirmation ¶
type AuthorizationStateWaitOtherDeviceConfirmation struct { // A tg:// URL for the QR code. The link will be updated frequently Link string `json:"link"` // contains filtered or unexported fields }
The user needs to confirm authorization on another logged in device by scanning a QR code with the provided link
func UnmarshalAuthorizationStateWaitOtherDeviceConfirmation ¶
func UnmarshalAuthorizationStateWaitOtherDeviceConfirmation(data json.RawMessage) (*AuthorizationStateWaitOtherDeviceConfirmation, error)
func (*AuthorizationStateWaitOtherDeviceConfirmation) AuthorizationStateType ¶
func (*AuthorizationStateWaitOtherDeviceConfirmation) AuthorizationStateType() string
func (*AuthorizationStateWaitOtherDeviceConfirmation) GetClass ¶
func (*AuthorizationStateWaitOtherDeviceConfirmation) GetClass() string
func (*AuthorizationStateWaitOtherDeviceConfirmation) GetType ¶
func (*AuthorizationStateWaitOtherDeviceConfirmation) GetType() string
func (*AuthorizationStateWaitOtherDeviceConfirmation) MarshalJSON ¶
func (entity *AuthorizationStateWaitOtherDeviceConfirmation) MarshalJSON() ([]byte, error)
type AuthorizationStateWaitPassword ¶
type AuthorizationStateWaitPassword struct { // Hint for the password; may be empty PasswordHint string `json:"password_hint"` // True, if a recovery email address has been set up HasRecoveryEmailAddress bool `json:"has_recovery_email_address"` // True, if some Telegram Passport elements were saved HasPassportData bool `json:"has_passport_data"` // Pattern of the email address to which the recovery email was sent; empty until a recovery email has been sent RecoveryEmailAddressPattern string `json:"recovery_email_address_pattern"` // contains filtered or unexported fields }
The user has been authorized, but needs to enter a 2-step verification password to start using the application. Call checkAuthenticationPassword to provide the password, or requestAuthenticationPasswordRecovery to recover the password, or deleteAccount to delete the account after a week
func UnmarshalAuthorizationStateWaitPassword ¶
func UnmarshalAuthorizationStateWaitPassword(data json.RawMessage) (*AuthorizationStateWaitPassword, error)
func (*AuthorizationStateWaitPassword) AuthorizationStateType ¶
func (*AuthorizationStateWaitPassword) AuthorizationStateType() string
func (*AuthorizationStateWaitPassword) GetClass ¶
func (*AuthorizationStateWaitPassword) GetClass() string
func (*AuthorizationStateWaitPassword) GetType ¶
func (*AuthorizationStateWaitPassword) GetType() string
func (*AuthorizationStateWaitPassword) MarshalJSON ¶
func (entity *AuthorizationStateWaitPassword) MarshalJSON() ([]byte, error)
type AuthorizationStateWaitPhoneNumber ¶
type AuthorizationStateWaitPhoneNumber struct {
// contains filtered or unexported fields
}
TDLib needs the user's phone number to authorize. Call setAuthenticationPhoneNumber to provide the phone number, or use requestQrCodeAuthentication or checkAuthenticationBotToken for other authentication options
func UnmarshalAuthorizationStateWaitPhoneNumber ¶
func UnmarshalAuthorizationStateWaitPhoneNumber(data json.RawMessage) (*AuthorizationStateWaitPhoneNumber, error)
func (*AuthorizationStateWaitPhoneNumber) AuthorizationStateType ¶
func (*AuthorizationStateWaitPhoneNumber) AuthorizationStateType() string
func (*AuthorizationStateWaitPhoneNumber) GetClass ¶
func (*AuthorizationStateWaitPhoneNumber) GetClass() string
func (*AuthorizationStateWaitPhoneNumber) GetType ¶
func (*AuthorizationStateWaitPhoneNumber) GetType() string
func (*AuthorizationStateWaitPhoneNumber) MarshalJSON ¶
func (entity *AuthorizationStateWaitPhoneNumber) MarshalJSON() ([]byte, error)
type AuthorizationStateWaitRegistration ¶
type AuthorizationStateWaitRegistration struct { // Telegram terms of service TermsOfService *TermsOfService `json:"terms_of_service"` // contains filtered or unexported fields }
The user is unregistered and need to accept terms of service and enter their first name and last name to finish registration. Call registerUser to accept the terms of service and provide the data
func UnmarshalAuthorizationStateWaitRegistration ¶
func UnmarshalAuthorizationStateWaitRegistration(data json.RawMessage) (*AuthorizationStateWaitRegistration, error)
func (*AuthorizationStateWaitRegistration) AuthorizationStateType ¶
func (*AuthorizationStateWaitRegistration) AuthorizationStateType() string
func (*AuthorizationStateWaitRegistration) GetClass ¶
func (*AuthorizationStateWaitRegistration) GetClass() string
func (*AuthorizationStateWaitRegistration) GetType ¶
func (*AuthorizationStateWaitRegistration) GetType() string
func (*AuthorizationStateWaitRegistration) MarshalJSON ¶
func (entity *AuthorizationStateWaitRegistration) MarshalJSON() ([]byte, error)
type AuthorizationStateWaitTdlibParameters ¶
type AuthorizationStateWaitTdlibParameters struct {
// contains filtered or unexported fields
}
Initialization parameters are needed. Call setTdlibParameters to provide them
func UnmarshalAuthorizationStateWaitTdlibParameters ¶
func UnmarshalAuthorizationStateWaitTdlibParameters(data json.RawMessage) (*AuthorizationStateWaitTdlibParameters, error)
func (*AuthorizationStateWaitTdlibParameters) AuthorizationStateType ¶
func (*AuthorizationStateWaitTdlibParameters) AuthorizationStateType() string
func (*AuthorizationStateWaitTdlibParameters) GetClass ¶
func (*AuthorizationStateWaitTdlibParameters) GetClass() string
func (*AuthorizationStateWaitTdlibParameters) GetType ¶
func (*AuthorizationStateWaitTdlibParameters) GetType() string
func (*AuthorizationStateWaitTdlibParameters) MarshalJSON ¶
func (entity *AuthorizationStateWaitTdlibParameters) MarshalJSON() ([]byte, error)
type AutoDownloadSettings ¶
type AutoDownloadSettings struct { // True, if the auto-download is enabled IsAutoDownloadEnabled bool `json:"is_auto_download_enabled"` // The maximum size of a photo file to be auto-downloaded, in bytes MaxPhotoFileSize int32 `json:"max_photo_file_size"` // The maximum size of a video file to be auto-downloaded, in bytes MaxVideoFileSize int64 `json:"max_video_file_size"` // The maximum size of other file types to be auto-downloaded, in bytes MaxOtherFileSize int64 `json:"max_other_file_size"` // The maximum suggested bitrate for uploaded videos, in kbit/s VideoUploadBitrate int32 `json:"video_upload_bitrate"` // True, if the beginning of video files needs to be preloaded for instant playback PreloadLargeVideos bool `json:"preload_large_videos"` // True, if the next audio track needs to be preloaded while the user is listening to an audio file PreloadNextAudio bool `json:"preload_next_audio"` // True, if stories needs to be preloaded PreloadStories bool `json:"preload_stories"` // True, if "use less data for calls" option needs to be enabled UseLessDataForCalls bool `json:"use_less_data_for_calls"` // contains filtered or unexported fields }
Contains auto-download settings
func UnmarshalAutoDownloadSettings ¶
func UnmarshalAutoDownloadSettings(data json.RawMessage) (*AutoDownloadSettings, error)
func (*AutoDownloadSettings) GetClass ¶
func (*AutoDownloadSettings) GetClass() string
func (*AutoDownloadSettings) GetType ¶
func (*AutoDownloadSettings) GetType() string
func (*AutoDownloadSettings) MarshalJSON ¶
func (entity *AutoDownloadSettings) MarshalJSON() ([]byte, error)
type AutoDownloadSettingsPresets ¶
type AutoDownloadSettingsPresets struct { // Preset with lowest settings; supposed to be used by default when roaming Low *AutoDownloadSettings `json:"low"` // Preset with medium settings; supposed to be used by default when using mobile data Medium *AutoDownloadSettings `json:"medium"` // Preset with highest settings; supposed to be used by default when connected on Wi-Fi High *AutoDownloadSettings `json:"high"` // contains filtered or unexported fields }
Contains auto-download settings presets for the current user
func UnmarshalAutoDownloadSettingsPresets ¶
func UnmarshalAutoDownloadSettingsPresets(data json.RawMessage) (*AutoDownloadSettingsPresets, error)
func (*AutoDownloadSettingsPresets) GetClass ¶
func (*AutoDownloadSettingsPresets) GetClass() string
func (*AutoDownloadSettingsPresets) GetType ¶
func (*AutoDownloadSettingsPresets) GetType() string
func (*AutoDownloadSettingsPresets) MarshalJSON ¶
func (entity *AutoDownloadSettingsPresets) MarshalJSON() ([]byte, error)
type AutosaveSettings ¶ added in v1.2.3
type AutosaveSettings struct { // Default autosave settings for private chats PrivateChatSettings *ScopeAutosaveSettings `json:"private_chat_settings"` // Default autosave settings for basic group and supergroup chats GroupSettings *ScopeAutosaveSettings `json:"group_settings"` // Default autosave settings for channel chats ChannelSettings *ScopeAutosaveSettings `json:"channel_settings"` // Autosave settings for specific chats Exceptions []*AutosaveSettingsException `json:"exceptions"` // contains filtered or unexported fields }
Describes autosave settings
func UnmarshalAutosaveSettings ¶ added in v1.2.3
func UnmarshalAutosaveSettings(data json.RawMessage) (*AutosaveSettings, error)
func (*AutosaveSettings) GetClass ¶ added in v1.2.3
func (*AutosaveSettings) GetClass() string
func (*AutosaveSettings) GetType ¶ added in v1.2.3
func (*AutosaveSettings) GetType() string
func (*AutosaveSettings) MarshalJSON ¶ added in v1.2.3
func (entity *AutosaveSettings) MarshalJSON() ([]byte, error)
type AutosaveSettingsException ¶ added in v1.2.3
type AutosaveSettingsException struct { // Chat identifier ChatId int64 `json:"chat_id"` // Autosave settings for the chat Settings *ScopeAutosaveSettings `json:"settings"` // contains filtered or unexported fields }
Contains autosave settings for a chat, which overrides default settings for the corresponding scope
func UnmarshalAutosaveSettingsException ¶ added in v1.2.3
func UnmarshalAutosaveSettingsException(data json.RawMessage) (*AutosaveSettingsException, error)
func (*AutosaveSettingsException) GetClass ¶ added in v1.2.3
func (*AutosaveSettingsException) GetClass() string
func (*AutosaveSettingsException) GetType ¶ added in v1.2.3
func (*AutosaveSettingsException) GetType() string
func (*AutosaveSettingsException) MarshalJSON ¶ added in v1.2.3
func (entity *AutosaveSettingsException) MarshalJSON() ([]byte, error)
type AutosaveSettingsScope ¶ added in v1.2.3
type AutosaveSettingsScope interface {
AutosaveSettingsScopeType() string
}
Describes scope of autosave settings
func UnmarshalAutosaveSettingsScope ¶ added in v1.2.3
func UnmarshalAutosaveSettingsScope(data json.RawMessage) (AutosaveSettingsScope, error)
func UnmarshalListOfAutosaveSettingsScope ¶ added in v1.2.3
func UnmarshalListOfAutosaveSettingsScope(dataList []json.RawMessage) ([]AutosaveSettingsScope, error)
type AutosaveSettingsScopeChannelChats ¶ added in v1.2.3
type AutosaveSettingsScopeChannelChats struct {
// contains filtered or unexported fields
}
Autosave settings applied to all channel chats without chat-specific settings
func UnmarshalAutosaveSettingsScopeChannelChats ¶ added in v1.2.3
func UnmarshalAutosaveSettingsScopeChannelChats(data json.RawMessage) (*AutosaveSettingsScopeChannelChats, error)
func (*AutosaveSettingsScopeChannelChats) AutosaveSettingsScopeType ¶ added in v1.2.3
func (*AutosaveSettingsScopeChannelChats) AutosaveSettingsScopeType() string
func (*AutosaveSettingsScopeChannelChats) GetClass ¶ added in v1.2.3
func (*AutosaveSettingsScopeChannelChats) GetClass() string
func (*AutosaveSettingsScopeChannelChats) GetType ¶ added in v1.2.3
func (*AutosaveSettingsScopeChannelChats) GetType() string
func (*AutosaveSettingsScopeChannelChats) MarshalJSON ¶ added in v1.2.3
func (entity *AutosaveSettingsScopeChannelChats) MarshalJSON() ([]byte, error)
type AutosaveSettingsScopeChat ¶ added in v1.2.3
type AutosaveSettingsScopeChat struct { // Chat identifier ChatId int64 `json:"chat_id"` // contains filtered or unexported fields }
Autosave settings applied to a chat
func UnmarshalAutosaveSettingsScopeChat ¶ added in v1.2.3
func UnmarshalAutosaveSettingsScopeChat(data json.RawMessage) (*AutosaveSettingsScopeChat, error)
func (*AutosaveSettingsScopeChat) AutosaveSettingsScopeType ¶ added in v1.2.3
func (*AutosaveSettingsScopeChat) AutosaveSettingsScopeType() string
func (*AutosaveSettingsScopeChat) GetClass ¶ added in v1.2.3
func (*AutosaveSettingsScopeChat) GetClass() string
func (*AutosaveSettingsScopeChat) GetType ¶ added in v1.2.3
func (*AutosaveSettingsScopeChat) GetType() string
func (*AutosaveSettingsScopeChat) MarshalJSON ¶ added in v1.2.3
func (entity *AutosaveSettingsScopeChat) MarshalJSON() ([]byte, error)
type AutosaveSettingsScopeGroupChats ¶ added in v1.2.3
type AutosaveSettingsScopeGroupChats struct {
// contains filtered or unexported fields
}
Autosave settings applied to all basic group and supergroup chats without chat-specific settings
func UnmarshalAutosaveSettingsScopeGroupChats ¶ added in v1.2.3
func UnmarshalAutosaveSettingsScopeGroupChats(data json.RawMessage) (*AutosaveSettingsScopeGroupChats, error)
func (*AutosaveSettingsScopeGroupChats) AutosaveSettingsScopeType ¶ added in v1.2.3
func (*AutosaveSettingsScopeGroupChats) AutosaveSettingsScopeType() string
func (*AutosaveSettingsScopeGroupChats) GetClass ¶ added in v1.2.3
func (*AutosaveSettingsScopeGroupChats) GetClass() string
func (*AutosaveSettingsScopeGroupChats) GetType ¶ added in v1.2.3
func (*AutosaveSettingsScopeGroupChats) GetType() string
func (*AutosaveSettingsScopeGroupChats) MarshalJSON ¶ added in v1.2.3
func (entity *AutosaveSettingsScopeGroupChats) MarshalJSON() ([]byte, error)
type AutosaveSettingsScopePrivateChats ¶ added in v1.2.3
type AutosaveSettingsScopePrivateChats struct {
// contains filtered or unexported fields
}
Autosave settings applied to all private chats without chat-specific settings
func UnmarshalAutosaveSettingsScopePrivateChats ¶ added in v1.2.3
func UnmarshalAutosaveSettingsScopePrivateChats(data json.RawMessage) (*AutosaveSettingsScopePrivateChats, error)
func (*AutosaveSettingsScopePrivateChats) AutosaveSettingsScopeType ¶ added in v1.2.3
func (*AutosaveSettingsScopePrivateChats) AutosaveSettingsScopeType() string
func (*AutosaveSettingsScopePrivateChats) GetClass ¶ added in v1.2.3
func (*AutosaveSettingsScopePrivateChats) GetClass() string
func (*AutosaveSettingsScopePrivateChats) GetType ¶ added in v1.2.3
func (*AutosaveSettingsScopePrivateChats) GetType() string
func (*AutosaveSettingsScopePrivateChats) MarshalJSON ¶ added in v1.2.3
func (entity *AutosaveSettingsScopePrivateChats) MarshalJSON() ([]byte, error)
type AvailableReaction ¶ added in v1.2.3
type AvailableReaction struct { // Type of the reaction Type ReactionType `json:"type"` // True, if Telegram Premium is needed to send the reaction NeedsPremium bool `json:"needs_premium"` // contains filtered or unexported fields }
Represents an available reaction
func UnmarshalAvailableReaction ¶ added in v1.2.3
func UnmarshalAvailableReaction(data json.RawMessage) (*AvailableReaction, error)
func (*AvailableReaction) GetClass ¶ added in v1.2.3
func (*AvailableReaction) GetClass() string
func (*AvailableReaction) GetType ¶ added in v1.2.3
func (*AvailableReaction) GetType() string
func (*AvailableReaction) MarshalJSON ¶ added in v1.2.3
func (entity *AvailableReaction) MarshalJSON() ([]byte, error)
func (*AvailableReaction) UnmarshalJSON ¶ added in v1.2.3
func (availableReaction *AvailableReaction) UnmarshalJSON(data []byte) error
type AvailableReactions ¶ added in v1.0.6
type AvailableReactions struct { // List of reactions to be shown at the top TopReactions []*AvailableReaction `json:"top_reactions"` // List of recently used reactions RecentReactions []*AvailableReaction `json:"recent_reactions"` // List of popular reactions PopularReactions []*AvailableReaction `json:"popular_reactions"` // True, if custom emoji reactions could be added by Telegram Premium subscribers AllowCustomEmoji bool `json:"allow_custom_emoji"` // contains filtered or unexported fields }
Represents a list of reactions that can be added to a message
func UnmarshalAvailableReactions ¶ added in v1.0.6
func UnmarshalAvailableReactions(data json.RawMessage) (*AvailableReactions, error)
func (*AvailableReactions) GetClass ¶ added in v1.0.6
func (*AvailableReactions) GetClass() string
func (*AvailableReactions) GetType ¶ added in v1.0.6
func (*AvailableReactions) GetType() string
func (*AvailableReactions) MarshalJSON ¶ added in v1.0.6
func (entity *AvailableReactions) MarshalJSON() ([]byte, error)
type Background ¶
type Background struct { // Unique background identifier Id JsonInt64 `json:"id"` // True, if this is one of default backgrounds IsDefault bool `json:"is_default"` // True, if the background is dark and is recommended to be used with dark theme IsDark bool `json:"is_dark"` // Unique background name Name string `json:"name"` // Document with the background; may be null. Null only for filled backgrounds Document *Document `json:"document"` // Type of the background Type BackgroundType `json:"type"` // contains filtered or unexported fields }
Describes a chat background
func UnmarshalBackground ¶
func UnmarshalBackground(data json.RawMessage) (*Background, error)
func (*Background) GetClass ¶
func (*Background) GetClass() string
func (*Background) GetType ¶
func (*Background) GetType() string
func (*Background) MarshalJSON ¶
func (entity *Background) MarshalJSON() ([]byte, error)
func (*Background) UnmarshalJSON ¶
func (background *Background) UnmarshalJSON(data []byte) error
type BackgroundFill ¶
type BackgroundFill interface {
BackgroundFillType() string
}
Describes a fill of a background
func UnmarshalBackgroundFill ¶
func UnmarshalBackgroundFill(data json.RawMessage) (BackgroundFill, error)
func UnmarshalListOfBackgroundFill ¶
func UnmarshalListOfBackgroundFill(dataList []json.RawMessage) ([]BackgroundFill, error)
type BackgroundFillFreeformGradient ¶
type BackgroundFillFreeformGradient struct { // A list of 3 or 4 colors of the freeform gradients in the RGB24 format Colors []int32 `json:"colors"` // contains filtered or unexported fields }
Describes a freeform gradient fill of a background
func UnmarshalBackgroundFillFreeformGradient ¶
func UnmarshalBackgroundFillFreeformGradient(data json.RawMessage) (*BackgroundFillFreeformGradient, error)
func (*BackgroundFillFreeformGradient) BackgroundFillType ¶
func (*BackgroundFillFreeformGradient) BackgroundFillType() string
func (*BackgroundFillFreeformGradient) GetClass ¶
func (*BackgroundFillFreeformGradient) GetClass() string
func (*BackgroundFillFreeformGradient) GetType ¶
func (*BackgroundFillFreeformGradient) GetType() string
func (*BackgroundFillFreeformGradient) MarshalJSON ¶
func (entity *BackgroundFillFreeformGradient) MarshalJSON() ([]byte, error)
type BackgroundFillGradient ¶
type BackgroundFillGradient struct { // A top color of the background in the RGB24 format TopColor int32 `json:"top_color"` // A bottom color of the background in the RGB24 format BottomColor int32 `json:"bottom_color"` // Clockwise rotation angle of the gradient, in degrees; 0-359. Must always be divisible by 45 RotationAngle int32 `json:"rotation_angle"` // contains filtered or unexported fields }
Describes a gradient fill of a background
func UnmarshalBackgroundFillGradient ¶
func UnmarshalBackgroundFillGradient(data json.RawMessage) (*BackgroundFillGradient, error)
func (*BackgroundFillGradient) BackgroundFillType ¶
func (*BackgroundFillGradient) BackgroundFillType() string
func (*BackgroundFillGradient) GetClass ¶
func (*BackgroundFillGradient) GetClass() string
func (*BackgroundFillGradient) GetType ¶
func (*BackgroundFillGradient) GetType() string
func (*BackgroundFillGradient) MarshalJSON ¶
func (entity *BackgroundFillGradient) MarshalJSON() ([]byte, error)
type BackgroundFillSolid ¶
type BackgroundFillSolid struct { // A color of the background in the RGB24 format Color int32 `json:"color"` // contains filtered or unexported fields }
Describes a solid fill of a background
func UnmarshalBackgroundFillSolid ¶
func UnmarshalBackgroundFillSolid(data json.RawMessage) (*BackgroundFillSolid, error)
func (*BackgroundFillSolid) BackgroundFillType ¶
func (*BackgroundFillSolid) BackgroundFillType() string
func (*BackgroundFillSolid) GetClass ¶
func (*BackgroundFillSolid) GetClass() string
func (*BackgroundFillSolid) GetType ¶
func (*BackgroundFillSolid) GetType() string
func (*BackgroundFillSolid) MarshalJSON ¶
func (entity *BackgroundFillSolid) MarshalJSON() ([]byte, error)
type BackgroundType ¶
type BackgroundType interface {
BackgroundTypeType() string
}
Describes the type of a background
func UnmarshalBackgroundType ¶
func UnmarshalBackgroundType(data json.RawMessage) (BackgroundType, error)
func UnmarshalListOfBackgroundType ¶
func UnmarshalListOfBackgroundType(dataList []json.RawMessage) ([]BackgroundType, error)
type BackgroundTypeFill ¶
type BackgroundTypeFill struct { // The background fill Fill BackgroundFill `json:"fill"` // contains filtered or unexported fields }
A filled background
func UnmarshalBackgroundTypeFill ¶
func UnmarshalBackgroundTypeFill(data json.RawMessage) (*BackgroundTypeFill, error)
func (*BackgroundTypeFill) BackgroundTypeType ¶
func (*BackgroundTypeFill) BackgroundTypeType() string
func (*BackgroundTypeFill) GetClass ¶
func (*BackgroundTypeFill) GetClass() string
func (*BackgroundTypeFill) GetType ¶
func (*BackgroundTypeFill) GetType() string
func (*BackgroundTypeFill) MarshalJSON ¶
func (entity *BackgroundTypeFill) MarshalJSON() ([]byte, error)
func (*BackgroundTypeFill) UnmarshalJSON ¶
func (backgroundTypeFill *BackgroundTypeFill) UnmarshalJSON(data []byte) error
type BackgroundTypePattern ¶
type BackgroundTypePattern struct { // Fill of the background Fill BackgroundFill `json:"fill"` // Intensity of the pattern when it is shown above the filled background; 0-100. Intensity int32 `json:"intensity"` // True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only IsInverted bool `json:"is_inverted"` // True, if the background needs to be slightly moved when device is tilted IsMoving bool `json:"is_moving"` // contains filtered or unexported fields }
A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user
func UnmarshalBackgroundTypePattern ¶
func UnmarshalBackgroundTypePattern(data json.RawMessage) (*BackgroundTypePattern, error)
func (*BackgroundTypePattern) BackgroundTypeType ¶
func (*BackgroundTypePattern) BackgroundTypeType() string
func (*BackgroundTypePattern) GetClass ¶
func (*BackgroundTypePattern) GetClass() string
func (*BackgroundTypePattern) GetType ¶
func (*BackgroundTypePattern) GetType() string
func (*BackgroundTypePattern) MarshalJSON ¶
func (entity *BackgroundTypePattern) MarshalJSON() ([]byte, error)
func (*BackgroundTypePattern) UnmarshalJSON ¶
func (backgroundTypePattern *BackgroundTypePattern) UnmarshalJSON(data []byte) error
type BackgroundTypeWallpaper ¶
type BackgroundTypeWallpaper struct { // True, if the wallpaper must be downscaled to fit in 450x450 square and then box-blurred with radius 12 IsBlurred bool `json:"is_blurred"` // True, if the background needs to be slightly moved when device is tilted IsMoving bool `json:"is_moving"` // contains filtered or unexported fields }
A wallpaper in JPEG format
func UnmarshalBackgroundTypeWallpaper ¶
func UnmarshalBackgroundTypeWallpaper(data json.RawMessage) (*BackgroundTypeWallpaper, error)
func (*BackgroundTypeWallpaper) BackgroundTypeType ¶
func (*BackgroundTypeWallpaper) BackgroundTypeType() string
func (*BackgroundTypeWallpaper) GetClass ¶
func (*BackgroundTypeWallpaper) GetClass() string
func (*BackgroundTypeWallpaper) GetType ¶
func (*BackgroundTypeWallpaper) GetType() string
func (*BackgroundTypeWallpaper) MarshalJSON ¶
func (entity *BackgroundTypeWallpaper) MarshalJSON() ([]byte, error)
type Backgrounds ¶
type Backgrounds struct { // A list of backgrounds Backgrounds []*Background `json:"backgrounds"` // contains filtered or unexported fields }
Contains a list of backgrounds
func UnmarshalBackgrounds ¶
func UnmarshalBackgrounds(data json.RawMessage) (*Backgrounds, error)
func (*Backgrounds) GetClass ¶
func (*Backgrounds) GetClass() string
func (*Backgrounds) GetType ¶
func (*Backgrounds) GetType() string
func (*Backgrounds) MarshalJSON ¶
func (entity *Backgrounds) MarshalJSON() ([]byte, error)
type BanChatMemberRequest ¶
type BanChatMemberRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Member identifier MemberId MessageSender `json:"member_id"` // Point in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days or for less than 30 seconds from the current time, the user is considered to be banned forever. Ignored in basic groups and if a chat is banned BannedUntilDate int32 `json:"banned_until_date"` // Pass true to delete all messages in the chat for the user that is being removed. Always true for supergroups and channels RevokeMessages bool `json:"revoke_messages"` }
type BankCardActionOpenUrl ¶
type BankCardActionOpenUrl struct { // Action text Text string `json:"text"` // The URL to be opened Url string `json:"url"` // contains filtered or unexported fields }
Describes an action associated with a bank card number
func UnmarshalBankCardActionOpenUrl ¶
func UnmarshalBankCardActionOpenUrl(data json.RawMessage) (*BankCardActionOpenUrl, error)
func (*BankCardActionOpenUrl) GetClass ¶
func (*BankCardActionOpenUrl) GetClass() string
func (*BankCardActionOpenUrl) GetType ¶
func (*BankCardActionOpenUrl) GetType() string
func (*BankCardActionOpenUrl) MarshalJSON ¶
func (entity *BankCardActionOpenUrl) MarshalJSON() ([]byte, error)
type BankCardInfo ¶
type BankCardInfo struct { // Title of the bank card description Title string `json:"title"` // Actions that can be done with the bank card number Actions []*BankCardActionOpenUrl `json:"actions"` // contains filtered or unexported fields }
Information about a bank card
func UnmarshalBankCardInfo ¶
func UnmarshalBankCardInfo(data json.RawMessage) (*BankCardInfo, error)
func (*BankCardInfo) GetClass ¶
func (*BankCardInfo) GetClass() string
func (*BankCardInfo) GetType ¶
func (*BankCardInfo) GetType() string
func (*BankCardInfo) MarshalJSON ¶
func (entity *BankCardInfo) MarshalJSON() ([]byte, error)
type BasicGroup ¶
type BasicGroup struct { // Group identifier Id int64 `json:"id"` // Group access hash AccessHash JsonInt64 `json:"access_hash"` // Number of members in the group MemberCount int32 `json:"member_count"` // Status of the current user in the group Status ChatMemberStatus `json:"status"` // True, if the group is active IsActive bool `json:"is_active"` // Identifier of the supergroup to which this group was upgraded; 0 if none UpgradedToSupergroupId int64 `json:"upgraded_to_supergroup_id"` // contains filtered or unexported fields }
Represents a basic group of 0-200 users (must be upgraded to a supergroup to accommodate more than 200 users)
func UnmarshalBasicGroup ¶
func UnmarshalBasicGroup(data json.RawMessage) (*BasicGroup, error)
func (*BasicGroup) GetClass ¶
func (*BasicGroup) GetClass() string
func (*BasicGroup) GetType ¶
func (*BasicGroup) GetType() string
func (*BasicGroup) MarshalJSON ¶
func (entity *BasicGroup) MarshalJSON() ([]byte, error)
func (*BasicGroup) UnmarshalJSON ¶
func (basicGroup *BasicGroup) UnmarshalJSON(data []byte) error
type BasicGroupFullInfo ¶
type BasicGroupFullInfo struct { // Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo Photo *ChatPhoto `json:"photo"` // Group description. Updated only after the basic group is opened Description string `json:"description"` // User identifier of the creator of the group; 0 if unknown CreatorUserId int64 `json:"creator_user_id"` // Group members Members []*ChatMember `json:"members"` // True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators after upgrading the basic group to a supergroup CanHideMembers bool `json:"can_hide_members"` // True, if aggressive anti-spam checks can be enabled or disabled in the supergroup after upgrading the basic group to a supergroup CanToggleAggressiveAntiSpam bool `json:"can_toggle_aggressive_anti_spam"` // Primary invite link for this group; may be null. For chat administrators with can_invite_users right only. Updated only after the basic group is opened InviteLink *ChatInviteLink `json:"invite_link"` // List of commands of bots in the group BotCommands []*BotCommands `json:"bot_commands"` // contains filtered or unexported fields }
Contains full information about a basic group
func UnmarshalBasicGroupFullInfo ¶
func UnmarshalBasicGroupFullInfo(data json.RawMessage) (*BasicGroupFullInfo, error)
func (*BasicGroupFullInfo) GetClass ¶
func (*BasicGroupFullInfo) GetClass() string
func (*BasicGroupFullInfo) GetType ¶
func (*BasicGroupFullInfo) GetType() string
func (*BasicGroupFullInfo) MarshalJSON ¶
func (entity *BasicGroupFullInfo) MarshalJSON() ([]byte, error)
type BlockList ¶ added in v1.2.3
type BlockList interface {
BlockListType() string
}
Describes a type of a block list
func UnmarshalBlockList ¶ added in v1.2.3
func UnmarshalBlockList(data json.RawMessage) (BlockList, error)
func UnmarshalListOfBlockList ¶ added in v1.2.3
func UnmarshalListOfBlockList(dataList []json.RawMessage) ([]BlockList, error)
type BlockListMain ¶ added in v1.2.3
type BlockListMain struct {
// contains filtered or unexported fields
}
The main block list that disallows writing messages to the current user, receiving their status and photo, viewing of stories, and some other actions
func UnmarshalBlockListMain ¶ added in v1.2.3
func UnmarshalBlockListMain(data json.RawMessage) (*BlockListMain, error)
func (*BlockListMain) BlockListType ¶ added in v1.2.3
func (*BlockListMain) BlockListType() string
func (*BlockListMain) GetClass ¶ added in v1.2.3
func (*BlockListMain) GetClass() string
func (*BlockListMain) GetType ¶ added in v1.2.3
func (*BlockListMain) GetType() string
func (*BlockListMain) MarshalJSON ¶ added in v1.2.3
func (entity *BlockListMain) MarshalJSON() ([]byte, error)
type BlockListStories ¶ added in v1.2.3
type BlockListStories struct {
// contains filtered or unexported fields
}
The block list that disallows viewing of stories of the current user
func UnmarshalBlockListStories ¶ added in v1.2.3
func UnmarshalBlockListStories(data json.RawMessage) (*BlockListStories, error)
func (*BlockListStories) BlockListType ¶ added in v1.2.3
func (*BlockListStories) BlockListType() string
func (*BlockListStories) GetClass ¶ added in v1.2.3
func (*BlockListStories) GetClass() string
func (*BlockListStories) GetType ¶ added in v1.2.3
func (*BlockListStories) GetType() string
func (*BlockListStories) MarshalJSON ¶ added in v1.2.3
func (entity *BlockListStories) MarshalJSON() ([]byte, error)
type BlockMessageSenderFromRepliesRequest ¶
type BlockMessageSenderFromRepliesRequest struct { // The identifier of an incoming message in the Replies chat MessageId int64 `json:"message_id"` // Pass true to delete the message DeleteMessage bool `json:"delete_message"` // Pass true to delete all messages from the same sender DeleteAllMessages bool `json:"delete_all_messages"` // Pass true to report the sender to the Telegram moderators ReportSpam bool `json:"report_spam"` }
type BotCommand ¶
type BotCommand struct { // Text of the bot command Command string `json:"command"` // Description of the bot command Description string `json:"description"` // contains filtered or unexported fields }
Represents a command supported by a bot
func UnmarshalBotCommand ¶
func UnmarshalBotCommand(data json.RawMessage) (*BotCommand, error)
func (*BotCommand) GetClass ¶
func (*BotCommand) GetClass() string
func (*BotCommand) GetType ¶
func (*BotCommand) GetType() string
func (*BotCommand) MarshalJSON ¶
func (entity *BotCommand) MarshalJSON() ([]byte, error)
type BotCommandScope ¶
type BotCommandScope interface {
BotCommandScopeType() string
}
Represents the scope to which bot commands are relevant
func UnmarshalBotCommandScope ¶
func UnmarshalBotCommandScope(data json.RawMessage) (BotCommandScope, error)
func UnmarshalListOfBotCommandScope ¶
func UnmarshalListOfBotCommandScope(dataList []json.RawMessage) ([]BotCommandScope, error)
type BotCommandScopeAllChatAdministrators ¶
type BotCommandScopeAllChatAdministrators struct {
// contains filtered or unexported fields
}
A scope covering all group and supergroup chat administrators
func UnmarshalBotCommandScopeAllChatAdministrators ¶
func UnmarshalBotCommandScopeAllChatAdministrators(data json.RawMessage) (*BotCommandScopeAllChatAdministrators, error)
func (*BotCommandScopeAllChatAdministrators) BotCommandScopeType ¶
func (*BotCommandScopeAllChatAdministrators) BotCommandScopeType() string
func (*BotCommandScopeAllChatAdministrators) GetClass ¶
func (*BotCommandScopeAllChatAdministrators) GetClass() string
func (*BotCommandScopeAllChatAdministrators) GetType ¶
func (*BotCommandScopeAllChatAdministrators) GetType() string
func (*BotCommandScopeAllChatAdministrators) MarshalJSON ¶
func (entity *BotCommandScopeAllChatAdministrators) MarshalJSON() ([]byte, error)
type BotCommandScopeAllGroupChats ¶
type BotCommandScopeAllGroupChats struct {
// contains filtered or unexported fields
}
A scope covering all group and supergroup chats
func UnmarshalBotCommandScopeAllGroupChats ¶
func UnmarshalBotCommandScopeAllGroupChats(data json.RawMessage) (*BotCommandScopeAllGroupChats, error)
func (*BotCommandScopeAllGroupChats) BotCommandScopeType ¶
func (*BotCommandScopeAllGroupChats) BotCommandScopeType() string
func (*BotCommandScopeAllGroupChats) GetClass ¶
func (*BotCommandScopeAllGroupChats) GetClass() string
func (*BotCommandScopeAllGroupChats) GetType ¶
func (*BotCommandScopeAllGroupChats) GetType() string
func (*BotCommandScopeAllGroupChats) MarshalJSON ¶
func (entity *BotCommandScopeAllGroupChats) MarshalJSON() ([]byte, error)
type BotCommandScopeAllPrivateChats ¶
type BotCommandScopeAllPrivateChats struct {
// contains filtered or unexported fields
}
A scope covering all private chats
func UnmarshalBotCommandScopeAllPrivateChats ¶
func UnmarshalBotCommandScopeAllPrivateChats(data json.RawMessage) (*BotCommandScopeAllPrivateChats, error)
func (*BotCommandScopeAllPrivateChats) BotCommandScopeType ¶
func (*BotCommandScopeAllPrivateChats) BotCommandScopeType() string
func (*BotCommandScopeAllPrivateChats) GetClass ¶
func (*BotCommandScopeAllPrivateChats) GetClass() string
func (*BotCommandScopeAllPrivateChats) GetType ¶
func (*BotCommandScopeAllPrivateChats) GetType() string
func (*BotCommandScopeAllPrivateChats) MarshalJSON ¶
func (entity *BotCommandScopeAllPrivateChats) MarshalJSON() ([]byte, error)
type BotCommandScopeChat ¶
type BotCommandScopeChat struct { // Chat identifier ChatId int64 `json:"chat_id"` // contains filtered or unexported fields }
A scope covering all members of a chat
func UnmarshalBotCommandScopeChat ¶
func UnmarshalBotCommandScopeChat(data json.RawMessage) (*BotCommandScopeChat, error)
func (*BotCommandScopeChat) BotCommandScopeType ¶
func (*BotCommandScopeChat) BotCommandScopeType() string
func (*BotCommandScopeChat) GetClass ¶
func (*BotCommandScopeChat) GetClass() string
func (*BotCommandScopeChat) GetType ¶
func (*BotCommandScopeChat) GetType() string
func (*BotCommandScopeChat) MarshalJSON ¶
func (entity *BotCommandScopeChat) MarshalJSON() ([]byte, error)
type BotCommandScopeChatAdministrators ¶
type BotCommandScopeChatAdministrators struct { // Chat identifier ChatId int64 `json:"chat_id"` // contains filtered or unexported fields }
A scope covering all administrators of a chat
func UnmarshalBotCommandScopeChatAdministrators ¶
func UnmarshalBotCommandScopeChatAdministrators(data json.RawMessage) (*BotCommandScopeChatAdministrators, error)
func (*BotCommandScopeChatAdministrators) BotCommandScopeType ¶
func (*BotCommandScopeChatAdministrators) BotCommandScopeType() string
func (*BotCommandScopeChatAdministrators) GetClass ¶
func (*BotCommandScopeChatAdministrators) GetClass() string
func (*BotCommandScopeChatAdministrators) GetType ¶
func (*BotCommandScopeChatAdministrators) GetType() string
func (*BotCommandScopeChatAdministrators) MarshalJSON ¶
func (entity *BotCommandScopeChatAdministrators) MarshalJSON() ([]byte, error)
type BotCommandScopeChatMember ¶
type BotCommandScopeChatMember struct { // Chat identifier ChatId int64 `json:"chat_id"` // User identifier UserId int64 `json:"user_id"` // contains filtered or unexported fields }
A scope covering a member of a chat
func UnmarshalBotCommandScopeChatMember ¶
func UnmarshalBotCommandScopeChatMember(data json.RawMessage) (*BotCommandScopeChatMember, error)
func (*BotCommandScopeChatMember) BotCommandScopeType ¶
func (*BotCommandScopeChatMember) BotCommandScopeType() string
func (*BotCommandScopeChatMember) GetClass ¶
func (*BotCommandScopeChatMember) GetClass() string
func (*BotCommandScopeChatMember) GetType ¶
func (*BotCommandScopeChatMember) GetType() string
func (*BotCommandScopeChatMember) MarshalJSON ¶
func (entity *BotCommandScopeChatMember) MarshalJSON() ([]byte, error)
type BotCommandScopeDefault ¶
type BotCommandScopeDefault struct {
// contains filtered or unexported fields
}
A scope covering all users
func UnmarshalBotCommandScopeDefault ¶
func UnmarshalBotCommandScopeDefault(data json.RawMessage) (*BotCommandScopeDefault, error)
func (*BotCommandScopeDefault) BotCommandScopeType ¶
func (*BotCommandScopeDefault) BotCommandScopeType() string
func (*BotCommandScopeDefault) GetClass ¶
func (*BotCommandScopeDefault) GetClass() string
func (*BotCommandScopeDefault) GetType ¶
func (*BotCommandScopeDefault) GetType() string
func (*BotCommandScopeDefault) MarshalJSON ¶
func (entity *BotCommandScopeDefault) MarshalJSON() ([]byte, error)
type BotCommands ¶
type BotCommands struct { // Bot's user identifier BotUserId int64 `json:"bot_user_id"` // List of bot commands Commands []*BotCommand `json:"commands"` // contains filtered or unexported fields }
Contains a list of bot commands
func UnmarshalBotCommands ¶
func UnmarshalBotCommands(data json.RawMessage) (*BotCommands, error)
func (*BotCommands) GetClass ¶
func (*BotCommands) GetClass() string
func (*BotCommands) GetType ¶
func (*BotCommands) GetType() string
func (*BotCommands) MarshalJSON ¶
func (entity *BotCommands) MarshalJSON() ([]byte, error)
type BotInfo ¶ added in v1.0.6
type BotInfo struct { // The text that is shown on the bot's profile page and is sent together with the link when users share the bot ShortDescription string `json:"short_description"` // The text shown in the chat with the bot if the chat is empty Description string `json:"description"` // Photo shown in the chat with the bot if the chat is empty; may be null Photo *Photo `json:"photo"` // Animation shown in the chat with the bot if the chat is empty; may be null Animation *Animation `json:"animation"` // Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown MenuButton *BotMenuButton `json:"menu_button"` // List of the bot commands Commands []*BotCommand `json:"commands"` // Default administrator rights for adding the bot to basic group and supergroup chats; may be null DefaultGroupAdministratorRights *ChatAdministratorRights `json:"default_group_administrator_rights"` // Default administrator rights for adding the bot to channels; may be null DefaultChannelAdministratorRights *ChatAdministratorRights `json:"default_channel_administrator_rights"` // The internal link, which can be used to edit bot commands; may be null EditCommandsLink InternalLinkType `json:"edit_commands_link"` // The internal link, which can be used to edit bot description; may be null EditDescriptionLink InternalLinkType `json:"edit_description_link"` // The internal link, which can be used to edit the photo or animation shown in the chat with the bot if the chat is empty; may be null EditDescriptionMediaLink InternalLinkType `json:"edit_description_media_link"` // The internal link, which can be used to edit bot settings; may be null EditSettingsLink InternalLinkType `json:"edit_settings_link"` // contains filtered or unexported fields }
Contains information about a bot
func UnmarshalBotInfo ¶ added in v1.0.6
func UnmarshalBotInfo(data json.RawMessage) (*BotInfo, error)
func (*BotInfo) MarshalJSON ¶ added in v1.0.6
func (*BotInfo) UnmarshalJSON ¶ added in v1.2.3
type BotMenuButton ¶ added in v1.0.6
type BotMenuButton struct { // Text of the button Text string `json:"text"` // URL to be passed to openWebApp Url string `json:"url"` // contains filtered or unexported fields }
Describes a button to be shown instead of bot commands menu button
func UnmarshalBotMenuButton ¶ added in v1.0.6
func UnmarshalBotMenuButton(data json.RawMessage) (*BotMenuButton, error)
func (*BotMenuButton) GetClass ¶ added in v1.0.6
func (*BotMenuButton) GetClass() string
func (*BotMenuButton) GetType ¶ added in v1.0.6
func (*BotMenuButton) GetType() string
func (*BotMenuButton) MarshalJSON ¶ added in v1.0.6
func (entity *BotMenuButton) MarshalJSON() ([]byte, error)
type Call ¶
type Call struct { // Call identifier, not persistent Id int32 `json:"id"` // Peer user identifier UserId int64 `json:"user_id"` // True, if the call is outgoing IsOutgoing bool `json:"is_outgoing"` // True, if the call is a video call IsVideo bool `json:"is_video"` // Call state State CallState `json:"state"` // contains filtered or unexported fields }
Describes a call
func UnmarshalCall ¶
func UnmarshalCall(data json.RawMessage) (*Call, error)
func (*Call) MarshalJSON ¶
func (*Call) UnmarshalJSON ¶
type CallDiscardReason ¶
type CallDiscardReason interface {
CallDiscardReasonType() string
}
Describes the reason why a call was discarded
func UnmarshalCallDiscardReason ¶
func UnmarshalCallDiscardReason(data json.RawMessage) (CallDiscardReason, error)
func UnmarshalListOfCallDiscardReason ¶
func UnmarshalListOfCallDiscardReason(dataList []json.RawMessage) ([]CallDiscardReason, error)
type CallDiscardReasonDeclined ¶
type CallDiscardReasonDeclined struct {
// contains filtered or unexported fields
}
The call was ended before the conversation started. It was declined by the other party
func UnmarshalCallDiscardReasonDeclined ¶
func UnmarshalCallDiscardReasonDeclined(data json.RawMessage) (*CallDiscardReasonDeclined, error)
func (*CallDiscardReasonDeclined) CallDiscardReasonType ¶
func (*CallDiscardReasonDeclined) CallDiscardReasonType() string
func (*CallDiscardReasonDeclined) GetClass ¶
func (*CallDiscardReasonDeclined) GetClass() string
func (*CallDiscardReasonDeclined) GetType ¶
func (*CallDiscardReasonDeclined) GetType() string
func (*CallDiscardReasonDeclined) MarshalJSON ¶
func (entity *CallDiscardReasonDeclined) MarshalJSON() ([]byte, error)
type CallDiscardReasonDisconnected ¶
type CallDiscardReasonDisconnected struct {
// contains filtered or unexported fields
}
The call was ended during the conversation because the users were disconnected
func UnmarshalCallDiscardReasonDisconnected ¶
func UnmarshalCallDiscardReasonDisconnected(data json.RawMessage) (*CallDiscardReasonDisconnected, error)
func (*CallDiscardReasonDisconnected) CallDiscardReasonType ¶
func (*CallDiscardReasonDisconnected) CallDiscardReasonType() string
func (*CallDiscardReasonDisconnected) GetClass ¶
func (*CallDiscardReasonDisconnected) GetClass() string
func (*CallDiscardReasonDisconnected) GetType ¶
func (*CallDiscardReasonDisconnected) GetType() string
func (*CallDiscardReasonDisconnected) MarshalJSON ¶
func (entity *CallDiscardReasonDisconnected) MarshalJSON() ([]byte, error)
type CallDiscardReasonEmpty ¶
type CallDiscardReasonEmpty struct {
// contains filtered or unexported fields
}
The call wasn't discarded, or the reason is unknown
func UnmarshalCallDiscardReasonEmpty ¶
func UnmarshalCallDiscardReasonEmpty(data json.RawMessage) (*CallDiscardReasonEmpty, error)
func (*CallDiscardReasonEmpty) CallDiscardReasonType ¶
func (*CallDiscardReasonEmpty) CallDiscardReasonType() string
func (*CallDiscardReasonEmpty) GetClass ¶
func (*CallDiscardReasonEmpty) GetClass() string
func (*CallDiscardReasonEmpty) GetType ¶
func (*CallDiscardReasonEmpty) GetType() string
func (*CallDiscardReasonEmpty) MarshalJSON ¶
func (entity *CallDiscardReasonEmpty) MarshalJSON() ([]byte, error)
type CallDiscardReasonHungUp ¶
type CallDiscardReasonHungUp struct {
// contains filtered or unexported fields
}
The call was ended because one of the parties hung up
func UnmarshalCallDiscardReasonHungUp ¶
func UnmarshalCallDiscardReasonHungUp(data json.RawMessage) (*CallDiscardReasonHungUp, error)
func (*CallDiscardReasonHungUp) CallDiscardReasonType ¶
func (*CallDiscardReasonHungUp) CallDiscardReasonType() string
func (*CallDiscardReasonHungUp) GetClass ¶
func (*CallDiscardReasonHungUp) GetClass() string
func (*CallDiscardReasonHungUp) GetType ¶
func (*CallDiscardReasonHungUp) GetType() string
func (*CallDiscardReasonHungUp) MarshalJSON ¶
func (entity *CallDiscardReasonHungUp) MarshalJSON() ([]byte, error)
type CallDiscardReasonMissed ¶
type CallDiscardReasonMissed struct {
// contains filtered or unexported fields
}
The call was ended before the conversation started. It was canceled by the caller or missed by the other party
func UnmarshalCallDiscardReasonMissed ¶
func UnmarshalCallDiscardReasonMissed(data json.RawMessage) (*CallDiscardReasonMissed, error)
func (*CallDiscardReasonMissed) CallDiscardReasonType ¶
func (*CallDiscardReasonMissed) CallDiscardReasonType() string
func (*CallDiscardReasonMissed) GetClass ¶
func (*CallDiscardReasonMissed) GetClass() string
func (*CallDiscardReasonMissed) GetType ¶
func (*CallDiscardReasonMissed) GetType() string
func (*CallDiscardReasonMissed) MarshalJSON ¶
func (entity *CallDiscardReasonMissed) MarshalJSON() ([]byte, error)
type CallId ¶
type CallId struct { // Call identifier Id int32 `json:"id"` // contains filtered or unexported fields }
Contains the call identifier
func UnmarshalCallId ¶
func UnmarshalCallId(data json.RawMessage) (*CallId, error)
func (*CallId) MarshalJSON ¶
type CallProblem ¶
type CallProblem interface {
CallProblemType() string
}
Describes the exact type of a problem with a call
func UnmarshalCallProblem ¶
func UnmarshalCallProblem(data json.RawMessage) (CallProblem, error)
func UnmarshalListOfCallProblem ¶
func UnmarshalListOfCallProblem(dataList []json.RawMessage) ([]CallProblem, error)
type CallProblemDistortedSpeech ¶
type CallProblemDistortedSpeech struct {
// contains filtered or unexported fields
}
The speech was distorted
func UnmarshalCallProblemDistortedSpeech ¶
func UnmarshalCallProblemDistortedSpeech(data json.RawMessage) (*CallProblemDistortedSpeech, error)
func (*CallProblemDistortedSpeech) CallProblemType ¶
func (*CallProblemDistortedSpeech) CallProblemType() string
func (*CallProblemDistortedSpeech) GetClass ¶
func (*CallProblemDistortedSpeech) GetClass() string
func (*CallProblemDistortedSpeech) GetType ¶
func (*CallProblemDistortedSpeech) GetType() string
func (*CallProblemDistortedSpeech) MarshalJSON ¶
func (entity *CallProblemDistortedSpeech) MarshalJSON() ([]byte, error)
type CallProblemDistortedVideo ¶
type CallProblemDistortedVideo struct {
// contains filtered or unexported fields
}
The video was distorted
func UnmarshalCallProblemDistortedVideo ¶
func UnmarshalCallProblemDistortedVideo(data json.RawMessage) (*CallProblemDistortedVideo, error)
func (*CallProblemDistortedVideo) CallProblemType ¶
func (*CallProblemDistortedVideo) CallProblemType() string
func (*CallProblemDistortedVideo) GetClass ¶
func (*CallProblemDistortedVideo) GetClass() string
func (*CallProblemDistortedVideo) GetType ¶
func (*CallProblemDistortedVideo) GetType() string
func (*CallProblemDistortedVideo) MarshalJSON ¶
func (entity *CallProblemDistortedVideo) MarshalJSON() ([]byte, error)
type CallProblemDropped ¶
type CallProblemDropped struct {
// contains filtered or unexported fields
}
The call ended unexpectedly
func UnmarshalCallProblemDropped ¶
func UnmarshalCallProblemDropped(data json.RawMessage) (*CallProblemDropped, error)
func (*CallProblemDropped) CallProblemType ¶
func (*CallProblemDropped) CallProblemType() string
func (*CallProblemDropped) GetClass ¶
func (*CallProblemDropped) GetClass() string
func (*CallProblemDropped) GetType ¶
func (*CallProblemDropped) GetType() string
func (*CallProblemDropped) MarshalJSON ¶
func (entity *CallProblemDropped) MarshalJSON() ([]byte, error)
type CallProblemEcho ¶
type CallProblemEcho struct {
// contains filtered or unexported fields
}
The user heard their own voice
func UnmarshalCallProblemEcho ¶
func UnmarshalCallProblemEcho(data json.RawMessage) (*CallProblemEcho, error)
func (*CallProblemEcho) CallProblemType ¶
func (*CallProblemEcho) CallProblemType() string
func (*CallProblemEcho) GetClass ¶
func (*CallProblemEcho) GetClass() string
func (*CallProblemEcho) GetType ¶
func (*CallProblemEcho) GetType() string
func (*CallProblemEcho) MarshalJSON ¶
func (entity *CallProblemEcho) MarshalJSON() ([]byte, error)
type CallProblemInterruptions ¶
type CallProblemInterruptions struct {
// contains filtered or unexported fields
}
The other side kept disappearing
func UnmarshalCallProblemInterruptions ¶
func UnmarshalCallProblemInterruptions(data json.RawMessage) (*CallProblemInterruptions, error)
func (*CallProblemInterruptions) CallProblemType ¶
func (*CallProblemInterruptions) CallProblemType() string
func (*CallProblemInterruptions) GetClass ¶
func (*CallProblemInterruptions) GetClass() string
func (*CallProblemInterruptions) GetType ¶
func (*CallProblemInterruptions) GetType() string
func (*CallProblemInterruptions) MarshalJSON ¶
func (entity *CallProblemInterruptions) MarshalJSON() ([]byte, error)
type CallProblemNoise ¶
type CallProblemNoise struct {
// contains filtered or unexported fields
}
The user heard background noise
func UnmarshalCallProblemNoise ¶
func UnmarshalCallProblemNoise(data json.RawMessage) (*CallProblemNoise, error)
func (*CallProblemNoise) CallProblemType ¶
func (*CallProblemNoise) CallProblemType() string
func (*CallProblemNoise) GetClass ¶
func (*CallProblemNoise) GetClass() string
func (*CallProblemNoise) GetType ¶
func (*CallProblemNoise) GetType() string
func (*CallProblemNoise) MarshalJSON ¶
func (entity *CallProblemNoise) MarshalJSON() ([]byte, error)
type CallProblemPixelatedVideo ¶
type CallProblemPixelatedVideo struct {
// contains filtered or unexported fields
}
The video was pixelated
func UnmarshalCallProblemPixelatedVideo ¶
func UnmarshalCallProblemPixelatedVideo(data json.RawMessage) (*CallProblemPixelatedVideo, error)
func (*CallProblemPixelatedVideo) CallProblemType ¶
func (*CallProblemPixelatedVideo) CallProblemType() string
func (*CallProblemPixelatedVideo) GetClass ¶
func (*CallProblemPixelatedVideo) GetClass() string
func (*CallProblemPixelatedVideo) GetType ¶
func (*CallProblemPixelatedVideo) GetType() string
func (*CallProblemPixelatedVideo) MarshalJSON ¶
func (entity *CallProblemPixelatedVideo) MarshalJSON() ([]byte, error)
type CallProblemSilentLocal ¶
type CallProblemSilentLocal struct {
// contains filtered or unexported fields
}
The user couldn't hear the other side
func UnmarshalCallProblemSilentLocal ¶
func UnmarshalCallProblemSilentLocal(data json.RawMessage) (*CallProblemSilentLocal, error)
func (*CallProblemSilentLocal) CallProblemType ¶
func (*CallProblemSilentLocal) CallProblemType() string
func (*CallProblemSilentLocal) GetClass ¶
func (*CallProblemSilentLocal) GetClass() string
func (*CallProblemSilentLocal) GetType ¶
func (*CallProblemSilentLocal) GetType() string
func (*CallProblemSilentLocal) MarshalJSON ¶
func (entity *CallProblemSilentLocal) MarshalJSON() ([]byte, error)
type CallProblemSilentRemote ¶
type CallProblemSilentRemote struct {
// contains filtered or unexported fields
}
The other side couldn't hear the user
func UnmarshalCallProblemSilentRemote ¶
func UnmarshalCallProblemSilentRemote(data json.RawMessage) (*CallProblemSilentRemote, error)
func (*CallProblemSilentRemote) CallProblemType ¶
func (*CallProblemSilentRemote) CallProblemType() string
func (*CallProblemSilentRemote) GetClass ¶
func (*CallProblemSilentRemote) GetClass() string
func (*CallProblemSilentRemote) GetType ¶
func (*CallProblemSilentRemote) GetType() string
func (*CallProblemSilentRemote) MarshalJSON ¶
func (entity *CallProblemSilentRemote) MarshalJSON() ([]byte, error)
type CallProtocol ¶
type CallProtocol struct { // True, if UDP peer-to-peer connections are supported UdpP2p bool `json:"udp_p2p"` // True, if connection through UDP reflectors is supported UdpReflector bool `json:"udp_reflector"` // The minimum supported API layer; use 65 MinLayer int32 `json:"min_layer"` // The maximum supported API layer; use 92 MaxLayer int32 `json:"max_layer"` // List of supported tgcalls versions LibraryVersions []string `json:"library_versions"` // contains filtered or unexported fields }
Specifies the supported call protocols
func UnmarshalCallProtocol ¶
func UnmarshalCallProtocol(data json.RawMessage) (*CallProtocol, error)
func (*CallProtocol) GetClass ¶
func (*CallProtocol) GetClass() string
func (*CallProtocol) GetType ¶
func (*CallProtocol) GetType() string
func (*CallProtocol) MarshalJSON ¶
func (entity *CallProtocol) MarshalJSON() ([]byte, error)
type CallServer ¶
type CallServer struct { // Server identifier Id JsonInt64 `json:"id"` // Server IPv4 address IpAddress string `json:"ip_address"` // Server IPv6 address Ipv6Address string `json:"ipv6_address"` // Server port number Port int32 `json:"port"` // Server type Type CallServerType `json:"type"` // contains filtered or unexported fields }
Describes a server for relaying call data
func UnmarshalCallServer ¶
func UnmarshalCallServer(data json.RawMessage) (*CallServer, error)
func (*CallServer) GetClass ¶
func (*CallServer) GetClass() string
func (*CallServer) GetType ¶
func (*CallServer) GetType() string
func (*CallServer) MarshalJSON ¶
func (entity *CallServer) MarshalJSON() ([]byte, error)
func (*CallServer) UnmarshalJSON ¶
func (callServer *CallServer) UnmarshalJSON(data []byte) error
type CallServerType ¶
type CallServerType interface {
CallServerTypeType() string
}
Describes the type of a call server
func UnmarshalCallServerType ¶
func UnmarshalCallServerType(data json.RawMessage) (CallServerType, error)
func UnmarshalListOfCallServerType ¶
func UnmarshalListOfCallServerType(dataList []json.RawMessage) ([]CallServerType, error)
type CallServerTypeTelegramReflector ¶
type CallServerTypeTelegramReflector struct { // A peer tag to be used with the reflector PeerTag []byte `json:"peer_tag"` // True, if the server uses TCP instead of UDP IsTcp bool `json:"is_tcp"` // contains filtered or unexported fields }
A Telegram call reflector
func UnmarshalCallServerTypeTelegramReflector ¶
func UnmarshalCallServerTypeTelegramReflector(data json.RawMessage) (*CallServerTypeTelegramReflector, error)
func (*CallServerTypeTelegramReflector) CallServerTypeType ¶
func (*CallServerTypeTelegramReflector) CallServerTypeType() string
func (*CallServerTypeTelegramReflector) GetClass ¶
func (*CallServerTypeTelegramReflector) GetClass() string
func (*CallServerTypeTelegramReflector) GetType ¶
func (*CallServerTypeTelegramReflector) GetType() string
func (*CallServerTypeTelegramReflector) MarshalJSON ¶
func (entity *CallServerTypeTelegramReflector) MarshalJSON() ([]byte, error)
type CallServerTypeWebrtc ¶
type CallServerTypeWebrtc struct { // Username to be used for authentication Username string `json:"username"` // Authentication password Password string `json:"password"` // True, if the server supports TURN SupportsTurn bool `json:"supports_turn"` // True, if the server supports STUN SupportsStun bool `json:"supports_stun"` // contains filtered or unexported fields }
A WebRTC server
func UnmarshalCallServerTypeWebrtc ¶
func UnmarshalCallServerTypeWebrtc(data json.RawMessage) (*CallServerTypeWebrtc, error)
func (*CallServerTypeWebrtc) CallServerTypeType ¶
func (*CallServerTypeWebrtc) CallServerTypeType() string
func (*CallServerTypeWebrtc) GetClass ¶
func (*CallServerTypeWebrtc) GetClass() string
func (*CallServerTypeWebrtc) GetType ¶
func (*CallServerTypeWebrtc) GetType() string
func (*CallServerTypeWebrtc) MarshalJSON ¶
func (entity *CallServerTypeWebrtc) MarshalJSON() ([]byte, error)
type CallState ¶
type CallState interface {
CallStateType() string
}
Describes the current call state
func UnmarshalCallState ¶
func UnmarshalCallState(data json.RawMessage) (CallState, error)
func UnmarshalListOfCallState ¶
func UnmarshalListOfCallState(dataList []json.RawMessage) ([]CallState, error)
type CallStateDiscarded ¶
type CallStateDiscarded struct { // The reason, why the call has ended Reason CallDiscardReason `json:"reason"` // True, if the call rating must be sent to the server NeedRating bool `json:"need_rating"` // True, if the call debug information must be sent to the server NeedDebugInformation bool `json:"need_debug_information"` // True, if the call log must be sent to the server NeedLog bool `json:"need_log"` // contains filtered or unexported fields }
The call has ended successfully
func UnmarshalCallStateDiscarded ¶
func UnmarshalCallStateDiscarded(data json.RawMessage) (*CallStateDiscarded, error)
func (*CallStateDiscarded) CallStateType ¶
func (*CallStateDiscarded) CallStateType() string
func (*CallStateDiscarded) GetClass ¶
func (*CallStateDiscarded) GetClass() string
func (*CallStateDiscarded) GetType ¶
func (*CallStateDiscarded) GetType() string
func (*CallStateDiscarded) MarshalJSON ¶
func (entity *CallStateDiscarded) MarshalJSON() ([]byte, error)
func (*CallStateDiscarded) UnmarshalJSON ¶
func (callStateDiscarded *CallStateDiscarded) UnmarshalJSON(data []byte) error
type CallStateError ¶
type CallStateError struct { // Error. An error with the code 4005000 will be returned if an outgoing call is missed because of an expired timeout Error *Error `json:"error"` // contains filtered or unexported fields }
The call has ended with an error
func UnmarshalCallStateError ¶
func UnmarshalCallStateError(data json.RawMessage) (*CallStateError, error)
func (*CallStateError) CallStateType ¶
func (*CallStateError) CallStateType() string
func (*CallStateError) GetClass ¶
func (*CallStateError) GetClass() string
func (*CallStateError) GetType ¶
func (*CallStateError) GetType() string
func (*CallStateError) MarshalJSON ¶
func (entity *CallStateError) MarshalJSON() ([]byte, error)
type CallStateExchangingKeys ¶
type CallStateExchangingKeys struct {
// contains filtered or unexported fields
}
The call has been answered and encryption keys are being exchanged
func UnmarshalCallStateExchangingKeys ¶
func UnmarshalCallStateExchangingKeys(data json.RawMessage) (*CallStateExchangingKeys, error)
func (*CallStateExchangingKeys) CallStateType ¶
func (*CallStateExchangingKeys) CallStateType() string
func (*CallStateExchangingKeys) GetClass ¶
func (*CallStateExchangingKeys) GetClass() string
func (*CallStateExchangingKeys) GetType ¶
func (*CallStateExchangingKeys) GetType() string
func (*CallStateExchangingKeys) MarshalJSON ¶
func (entity *CallStateExchangingKeys) MarshalJSON() ([]byte, error)
type CallStateHangingUp ¶
type CallStateHangingUp struct {
// contains filtered or unexported fields
}
The call is hanging up after discardCall has been called
func UnmarshalCallStateHangingUp ¶
func UnmarshalCallStateHangingUp(data json.RawMessage) (*CallStateHangingUp, error)
func (*CallStateHangingUp) CallStateType ¶
func (*CallStateHangingUp) CallStateType() string
func (*CallStateHangingUp) GetClass ¶
func (*CallStateHangingUp) GetClass() string
func (*CallStateHangingUp) GetType ¶
func (*CallStateHangingUp) GetType() string
func (*CallStateHangingUp) MarshalJSON ¶
func (entity *CallStateHangingUp) MarshalJSON() ([]byte, error)
type CallStatePending ¶
type CallStatePending struct { // True, if the call has already been created by the server IsCreated bool `json:"is_created"` // True, if the call has already been received by the other party IsReceived bool `json:"is_received"` // contains filtered or unexported fields }
The call is pending, waiting to be accepted by a user
func UnmarshalCallStatePending ¶
func UnmarshalCallStatePending(data json.RawMessage) (*CallStatePending, error)
func (*CallStatePending) CallStateType ¶
func (*CallStatePending) CallStateType() string
func (*CallStatePending) GetClass ¶
func (*CallStatePending) GetClass() string
func (*CallStatePending) GetType ¶
func (*CallStatePending) GetType() string
func (*CallStatePending) MarshalJSON ¶
func (entity *CallStatePending) MarshalJSON() ([]byte, error)
type CallStateReady ¶
type CallStateReady struct { // Call protocols supported by the peer Protocol *CallProtocol `json:"protocol"` // List of available call servers Servers []*CallServer `json:"servers"` // A JSON-encoded call config Config string `json:"config"` // Call encryption key EncryptionKey []byte `json:"encryption_key"` // Encryption key emojis fingerprint Emojis []string `json:"emojis"` // True, if peer-to-peer connection is allowed by users privacy settings AllowP2p bool `json:"allow_p2p"` // contains filtered or unexported fields }
The call is ready to use
func UnmarshalCallStateReady ¶
func UnmarshalCallStateReady(data json.RawMessage) (*CallStateReady, error)
func (*CallStateReady) CallStateType ¶
func (*CallStateReady) CallStateType() string
func (*CallStateReady) GetClass ¶
func (*CallStateReady) GetClass() string
func (*CallStateReady) GetType ¶
func (*CallStateReady) GetType() string
func (*CallStateReady) MarshalJSON ¶
func (entity *CallStateReady) MarshalJSON() ([]byte, error)
type CallbackQueryAnswer ¶
type CallbackQueryAnswer struct { // Text of the answer Text string `json:"text"` // True, if an alert must be shown to the user instead of a toast notification ShowAlert bool `json:"show_alert"` // URL to be opened Url string `json:"url"` // contains filtered or unexported fields }
Contains a bot's answer to a callback query
func UnmarshalCallbackQueryAnswer ¶
func UnmarshalCallbackQueryAnswer(data json.RawMessage) (*CallbackQueryAnswer, error)
func (*CallbackQueryAnswer) GetClass ¶
func (*CallbackQueryAnswer) GetClass() string
func (*CallbackQueryAnswer) GetType ¶
func (*CallbackQueryAnswer) GetType() string
func (*CallbackQueryAnswer) MarshalJSON ¶
func (entity *CallbackQueryAnswer) MarshalJSON() ([]byte, error)
type CallbackQueryPayload ¶
type CallbackQueryPayload interface {
CallbackQueryPayloadType() string
}
Represents a payload of a callback query
func UnmarshalCallbackQueryPayload ¶
func UnmarshalCallbackQueryPayload(data json.RawMessage) (CallbackQueryPayload, error)
func UnmarshalListOfCallbackQueryPayload ¶
func UnmarshalListOfCallbackQueryPayload(dataList []json.RawMessage) ([]CallbackQueryPayload, error)
type CallbackQueryPayloadData ¶
type CallbackQueryPayloadData struct { // Data that was attached to the callback button Data []byte `json:"data"` // contains filtered or unexported fields }
The payload for a general callback button
func UnmarshalCallbackQueryPayloadData ¶
func UnmarshalCallbackQueryPayloadData(data json.RawMessage) (*CallbackQueryPayloadData, error)
func (*CallbackQueryPayloadData) CallbackQueryPayloadType ¶
func (*CallbackQueryPayloadData) CallbackQueryPayloadType() string
func (*CallbackQueryPayloadData) GetClass ¶
func (*CallbackQueryPayloadData) GetClass() string
func (*CallbackQueryPayloadData) GetType ¶
func (*CallbackQueryPayloadData) GetType() string
func (*CallbackQueryPayloadData) MarshalJSON ¶
func (entity *CallbackQueryPayloadData) MarshalJSON() ([]byte, error)
type CallbackQueryPayloadDataWithPassword ¶
type CallbackQueryPayloadDataWithPassword struct { // The 2-step verification password for the current user Password string `json:"password"` // Data that was attached to the callback button Data []byte `json:"data"` // contains filtered or unexported fields }
The payload for a callback button requiring password
func UnmarshalCallbackQueryPayloadDataWithPassword ¶
func UnmarshalCallbackQueryPayloadDataWithPassword(data json.RawMessage) (*CallbackQueryPayloadDataWithPassword, error)
func (*CallbackQueryPayloadDataWithPassword) CallbackQueryPayloadType ¶
func (*CallbackQueryPayloadDataWithPassword) CallbackQueryPayloadType() string
func (*CallbackQueryPayloadDataWithPassword) GetClass ¶
func (*CallbackQueryPayloadDataWithPassword) GetClass() string
func (*CallbackQueryPayloadDataWithPassword) GetType ¶
func (*CallbackQueryPayloadDataWithPassword) GetType() string
func (*CallbackQueryPayloadDataWithPassword) MarshalJSON ¶
func (entity *CallbackQueryPayloadDataWithPassword) MarshalJSON() ([]byte, error)
type CallbackQueryPayloadGame ¶
type CallbackQueryPayloadGame struct { // A short name of the game that was attached to the callback button GameShortName string `json:"game_short_name"` // contains filtered or unexported fields }
The payload for a game callback button
func UnmarshalCallbackQueryPayloadGame ¶
func UnmarshalCallbackQueryPayloadGame(data json.RawMessage) (*CallbackQueryPayloadGame, error)
func (*CallbackQueryPayloadGame) CallbackQueryPayloadType ¶
func (*CallbackQueryPayloadGame) CallbackQueryPayloadType() string
func (*CallbackQueryPayloadGame) GetClass ¶
func (*CallbackQueryPayloadGame) GetClass() string
func (*CallbackQueryPayloadGame) GetType ¶
func (*CallbackQueryPayloadGame) GetType() string
func (*CallbackQueryPayloadGame) MarshalJSON ¶
func (entity *CallbackQueryPayloadGame) MarshalJSON() ([]byte, error)
type CanBotSendMessagesRequest ¶ added in v1.2.3
type CanBotSendMessagesRequest struct { // Identifier of the target bot BotUserId int64 `json:"bot_user_id"` }
type CanPurchasePremiumRequest ¶ added in v1.2.3
type CanPurchasePremiumRequest struct { // Transaction purpose Purpose StorePaymentPurpose `json:"purpose"` }
type CanSendStoryResult ¶ added in v1.2.3
type CanSendStoryResult interface {
CanSendStoryResultType() string
}
Represents result of checking whether the current user can send a story
func UnmarshalCanSendStoryResult ¶ added in v1.2.3
func UnmarshalCanSendStoryResult(data json.RawMessage) (CanSendStoryResult, error)
func UnmarshalListOfCanSendStoryResult ¶ added in v1.2.3
func UnmarshalListOfCanSendStoryResult(dataList []json.RawMessage) ([]CanSendStoryResult, error)
type CanSendStoryResultActiveStoryLimitExceeded ¶ added in v1.2.3
type CanSendStoryResultActiveStoryLimitExceeded struct {
// contains filtered or unexported fields
}
The limit for the number of active stories exceeded. The user can buy Telegram Premium, delete an active story, or wait for the oldest story to expire
func UnmarshalCanSendStoryResultActiveStoryLimitExceeded ¶ added in v1.2.3
func UnmarshalCanSendStoryResultActiveStoryLimitExceeded(data json.RawMessage) (*CanSendStoryResultActiveStoryLimitExceeded, error)
func (*CanSendStoryResultActiveStoryLimitExceeded) CanSendStoryResultType ¶ added in v1.2.3
func (*CanSendStoryResultActiveStoryLimitExceeded) CanSendStoryResultType() string
func (*CanSendStoryResultActiveStoryLimitExceeded) GetClass ¶ added in v1.2.3
func (*CanSendStoryResultActiveStoryLimitExceeded) GetClass() string
func (*CanSendStoryResultActiveStoryLimitExceeded) GetType ¶ added in v1.2.3
func (*CanSendStoryResultActiveStoryLimitExceeded) GetType() string
func (*CanSendStoryResultActiveStoryLimitExceeded) MarshalJSON ¶ added in v1.2.3
func (entity *CanSendStoryResultActiveStoryLimitExceeded) MarshalJSON() ([]byte, error)
type CanSendStoryResultMonthlyLimitExceeded ¶ added in v1.2.3
type CanSendStoryResultMonthlyLimitExceeded struct { // Time left before the user can send the next story RetryAfter int32 `json:"retry_after"` // contains filtered or unexported fields }
The monthly limit for the number of posted stories exceeded. The user needs to buy Telegram Premium or wait specified time
func UnmarshalCanSendStoryResultMonthlyLimitExceeded ¶ added in v1.2.3
func UnmarshalCanSendStoryResultMonthlyLimitExceeded(data json.RawMessage) (*CanSendStoryResultMonthlyLimitExceeded, error)
func (*CanSendStoryResultMonthlyLimitExceeded) CanSendStoryResultType ¶ added in v1.2.3
func (*CanSendStoryResultMonthlyLimitExceeded) CanSendStoryResultType() string
func (*CanSendStoryResultMonthlyLimitExceeded) GetClass ¶ added in v1.2.3
func (*CanSendStoryResultMonthlyLimitExceeded) GetClass() string
func (*CanSendStoryResultMonthlyLimitExceeded) GetType ¶ added in v1.2.3
func (*CanSendStoryResultMonthlyLimitExceeded) GetType() string
func (*CanSendStoryResultMonthlyLimitExceeded) MarshalJSON ¶ added in v1.2.3
func (entity *CanSendStoryResultMonthlyLimitExceeded) MarshalJSON() ([]byte, error)
type CanSendStoryResultOk ¶ added in v1.2.3
type CanSendStoryResultOk struct {
// contains filtered or unexported fields
}
A story can be sent
func UnmarshalCanSendStoryResultOk ¶ added in v1.2.3
func UnmarshalCanSendStoryResultOk(data json.RawMessage) (*CanSendStoryResultOk, error)
func (*CanSendStoryResultOk) CanSendStoryResultType ¶ added in v1.2.3
func (*CanSendStoryResultOk) CanSendStoryResultType() string
func (*CanSendStoryResultOk) GetClass ¶ added in v1.2.3
func (*CanSendStoryResultOk) GetClass() string
func (*CanSendStoryResultOk) GetType ¶ added in v1.2.3
func (*CanSendStoryResultOk) GetType() string
func (*CanSendStoryResultOk) MarshalJSON ¶ added in v1.2.3
func (entity *CanSendStoryResultOk) MarshalJSON() ([]byte, error)
type CanSendStoryResultPremiumNeeded ¶ added in v1.2.3
type CanSendStoryResultPremiumNeeded struct {
// contains filtered or unexported fields
}
The user must subscribe to Telegram Premium to be able to post stories
func UnmarshalCanSendStoryResultPremiumNeeded ¶ added in v1.2.3
func UnmarshalCanSendStoryResultPremiumNeeded(data json.RawMessage) (*CanSendStoryResultPremiumNeeded, error)
func (*CanSendStoryResultPremiumNeeded) CanSendStoryResultType ¶ added in v1.2.3
func (*CanSendStoryResultPremiumNeeded) CanSendStoryResultType() string
func (*CanSendStoryResultPremiumNeeded) GetClass ¶ added in v1.2.3
func (*CanSendStoryResultPremiumNeeded) GetClass() string
func (*CanSendStoryResultPremiumNeeded) GetType ¶ added in v1.2.3
func (*CanSendStoryResultPremiumNeeded) GetType() string
func (*CanSendStoryResultPremiumNeeded) MarshalJSON ¶ added in v1.2.3
func (entity *CanSendStoryResultPremiumNeeded) MarshalJSON() ([]byte, error)
type CanSendStoryResultWeeklyLimitExceeded ¶ added in v1.2.3
type CanSendStoryResultWeeklyLimitExceeded struct { // Time left before the user can send the next story RetryAfter int32 `json:"retry_after"` // contains filtered or unexported fields }
The weekly limit for the number of posted stories exceeded. The user needs to buy Telegram Premium or wait specified time
func UnmarshalCanSendStoryResultWeeklyLimitExceeded ¶ added in v1.2.3
func UnmarshalCanSendStoryResultWeeklyLimitExceeded(data json.RawMessage) (*CanSendStoryResultWeeklyLimitExceeded, error)
func (*CanSendStoryResultWeeklyLimitExceeded) CanSendStoryResultType ¶ added in v1.2.3
func (*CanSendStoryResultWeeklyLimitExceeded) CanSendStoryResultType() string
func (*CanSendStoryResultWeeklyLimitExceeded) GetClass ¶ added in v1.2.3
func (*CanSendStoryResultWeeklyLimitExceeded) GetClass() string
func (*CanSendStoryResultWeeklyLimitExceeded) GetType ¶ added in v1.2.3
func (*CanSendStoryResultWeeklyLimitExceeded) GetType() string
func (*CanSendStoryResultWeeklyLimitExceeded) MarshalJSON ¶ added in v1.2.3
func (entity *CanSendStoryResultWeeklyLimitExceeded) MarshalJSON() ([]byte, error)
type CanTransferOwnershipResult ¶
type CanTransferOwnershipResult interface {
CanTransferOwnershipResultType() string
}
Represents result of checking whether the current session can be used to transfer a chat ownership to another user
func UnmarshalCanTransferOwnershipResult ¶
func UnmarshalCanTransferOwnershipResult(data json.RawMessage) (CanTransferOwnershipResult, error)
func UnmarshalListOfCanTransferOwnershipResult ¶
func UnmarshalListOfCanTransferOwnershipResult(dataList []json.RawMessage) ([]CanTransferOwnershipResult, error)
type CanTransferOwnershipResultOk ¶
type CanTransferOwnershipResultOk struct {
// contains filtered or unexported fields
}
The session can be used
func UnmarshalCanTransferOwnershipResultOk ¶
func UnmarshalCanTransferOwnershipResultOk(data json.RawMessage) (*CanTransferOwnershipResultOk, error)
func (*CanTransferOwnershipResultOk) CanTransferOwnershipResultType ¶
func (*CanTransferOwnershipResultOk) CanTransferOwnershipResultType() string
func (*CanTransferOwnershipResultOk) GetClass ¶
func (*CanTransferOwnershipResultOk) GetClass() string
func (*CanTransferOwnershipResultOk) GetType ¶
func (*CanTransferOwnershipResultOk) GetType() string
func (*CanTransferOwnershipResultOk) MarshalJSON ¶
func (entity *CanTransferOwnershipResultOk) MarshalJSON() ([]byte, error)
type CanTransferOwnershipResultPasswordNeeded ¶
type CanTransferOwnershipResultPasswordNeeded struct {
// contains filtered or unexported fields
}
The 2-step verification needs to be enabled first
func UnmarshalCanTransferOwnershipResultPasswordNeeded ¶
func UnmarshalCanTransferOwnershipResultPasswordNeeded(data json.RawMessage) (*CanTransferOwnershipResultPasswordNeeded, error)
func (*CanTransferOwnershipResultPasswordNeeded) CanTransferOwnershipResultType ¶
func (*CanTransferOwnershipResultPasswordNeeded) CanTransferOwnershipResultType() string
func (*CanTransferOwnershipResultPasswordNeeded) GetClass ¶
func (*CanTransferOwnershipResultPasswordNeeded) GetClass() string
func (*CanTransferOwnershipResultPasswordNeeded) GetType ¶
func (*CanTransferOwnershipResultPasswordNeeded) GetType() string
func (*CanTransferOwnershipResultPasswordNeeded) MarshalJSON ¶
func (entity *CanTransferOwnershipResultPasswordNeeded) MarshalJSON() ([]byte, error)
type CanTransferOwnershipResultPasswordTooFresh ¶
type CanTransferOwnershipResultPasswordTooFresh struct { // Time left before the session can be used to transfer ownership of a chat, in seconds RetryAfter int32 `json:"retry_after"` // contains filtered or unexported fields }
The 2-step verification was enabled recently, user needs to wait
func UnmarshalCanTransferOwnershipResultPasswordTooFresh ¶
func UnmarshalCanTransferOwnershipResultPasswordTooFresh(data json.RawMessage) (*CanTransferOwnershipResultPasswordTooFresh, error)
func (*CanTransferOwnershipResultPasswordTooFresh) CanTransferOwnershipResultType ¶
func (*CanTransferOwnershipResultPasswordTooFresh) CanTransferOwnershipResultType() string
func (*CanTransferOwnershipResultPasswordTooFresh) GetClass ¶
func (*CanTransferOwnershipResultPasswordTooFresh) GetClass() string
func (*CanTransferOwnershipResultPasswordTooFresh) GetType ¶
func (*CanTransferOwnershipResultPasswordTooFresh) GetType() string
func (*CanTransferOwnershipResultPasswordTooFresh) MarshalJSON ¶
func (entity *CanTransferOwnershipResultPasswordTooFresh) MarshalJSON() ([]byte, error)
type CanTransferOwnershipResultSessionTooFresh ¶
type CanTransferOwnershipResultSessionTooFresh struct { // Time left before the session can be used to transfer ownership of a chat, in seconds RetryAfter int32 `json:"retry_after"` // contains filtered or unexported fields }
The session was created recently, user needs to wait
func UnmarshalCanTransferOwnershipResultSessionTooFresh ¶
func UnmarshalCanTransferOwnershipResultSessionTooFresh(data json.RawMessage) (*CanTransferOwnershipResultSessionTooFresh, error)
func (*CanTransferOwnershipResultSessionTooFresh) CanTransferOwnershipResultType ¶
func (*CanTransferOwnershipResultSessionTooFresh) CanTransferOwnershipResultType() string
func (*CanTransferOwnershipResultSessionTooFresh) GetClass ¶
func (*CanTransferOwnershipResultSessionTooFresh) GetClass() string
func (*CanTransferOwnershipResultSessionTooFresh) GetType ¶
func (*CanTransferOwnershipResultSessionTooFresh) GetType() string
func (*CanTransferOwnershipResultSessionTooFresh) MarshalJSON ¶
func (entity *CanTransferOwnershipResultSessionTooFresh) MarshalJSON() ([]byte, error)
type CancelPreliminaryUploadFileRequest ¶ added in v1.2.3
type CancelPreliminaryUploadFileRequest struct { // Identifier of the file to stop uploading FileId int32 `json:"file_id"` }
type ChangeImportedContactsRequest ¶
type ChangeImportedContactsRequest struct { // The new list of contacts, contact's vCard are ignored and are not imported Contacts []*Contact `json:"contacts"` }
type ChangePhoneNumberRequest ¶
type ChangePhoneNumberRequest struct { // The new phone number of the user in international format PhoneNumber string `json:"phone_number"` // Settings for the authentication of the user's phone number; pass null to use default settings Settings *PhoneNumberAuthenticationSettings `json:"settings"` }
type ChangeStickerSetRequest ¶
type ChangeStickerSetRequest struct { // Identifier of the sticker set SetId JsonInt64 `json:"set_id"` // The new value of is_installed IsInstalled bool `json:"is_installed"` // The new value of is_archived. A sticker set can't be installed and archived simultaneously IsArchived bool `json:"is_archived"` }
type Chat ¶
type Chat struct { // Chat unique identifier Id int64 `json:"id"` // Type of the chat Type ChatType `json:"type"` // Chat title Title string `json:"title"` // Chat photo; may be null Photo *ChatPhotoInfo `json:"photo"` // Actions that non-administrator chat members are allowed to take in the chat Permissions *ChatPermissions `json:"permissions"` // Last message in the chat; may be null if none or unknown LastMessage *Message `json:"last_message"` // Positions of the chat in chat lists Positions []*ChatPosition `json:"positions"` // Identifier of a user or chat that is selected to send messages in the chat; may be null if the user can't change message sender MessageSenderId MessageSender `json:"message_sender_id"` // Block list to which the chat is added; may be null if none BlockList BlockList `json:"block_list"` // True, if chat content can't be saved locally, forwarded, or copied HasProtectedContent bool `json:"has_protected_content"` // True, if translation of all messages in the chat must be suggested to the user IsTranslatable bool `json:"is_translatable"` // True, if the chat is marked as unread IsMarkedAsUnread bool `json:"is_marked_as_unread"` // True, if the chat has scheduled messages HasScheduledMessages bool `json:"has_scheduled_messages"` // True, if the chat messages can be deleted only for the current user while other users will continue to see the messages CanBeDeletedOnlyForSelf bool `json:"can_be_deleted_only_for_self"` // True, if the chat messages can be deleted for all users CanBeDeletedForAllUsers bool `json:"can_be_deleted_for_all_users"` // True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto CanBeReported bool `json:"can_be_reported"` // Default value of the disable_notification parameter, used when a message is sent to the chat DefaultDisableNotification bool `json:"default_disable_notification"` // Number of unread messages in the chat UnreadCount int32 `json:"unread_count"` // Identifier of the last read incoming message LastReadInboxMessageId int64 `json:"last_read_inbox_message_id"` // Identifier of the last read outgoing message LastReadOutboxMessageId int64 `json:"last_read_outbox_message_id"` // Number of unread messages with a mention/reply in the chat UnreadMentionCount int32 `json:"unread_mention_count"` // Number of messages with unread reactions in the chat UnreadReactionCount int32 `json:"unread_reaction_count"` // Notification settings for the chat NotificationSettings *ChatNotificationSettings `json:"notification_settings"` // Types of reaction, available in the chat AvailableReactions ChatAvailableReactions `json:"available_reactions"` // Current message auto-delete or self-destruct timer setting for the chat, in seconds; 0 if disabled. Self-destruct timer in secret chats starts after the message or its content is viewed. Auto-delete timer in other chats starts from the send date MessageAutoDeleteTime int32 `json:"message_auto_delete_time"` // Background set for the chat; may be null if none Background *ChatBackground `json:"background"` // If non-empty, name of a theme, set for the chat ThemeName string `json:"theme_name"` // Information about actions which must be possible to do through the chat action bar; may be null if none ActionBar ChatActionBar `json:"action_bar"` // Information about video chat of the chat VideoChat *VideoChat `json:"video_chat"` // Information about pending join requests; may be null if none PendingJoinRequests *ChatJoinRequestsInfo `json:"pending_join_requests"` // Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat ReplyMarkupMessageId int64 `json:"reply_markup_message_id"` // A draft of a message in the chat; may be null if none DraftMessage *DraftMessage `json:"draft_message"` // Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used ClientData string `json:"client_data"` // contains filtered or unexported fields }
A chat. (Can be a private chat, basic group, supergroup, or secret chat)
func UnmarshalChat ¶
func UnmarshalChat(data json.RawMessage) (*Chat, error)
func (*Chat) MarshalJSON ¶
func (*Chat) UnmarshalJSON ¶
type ChatAction ¶
type ChatAction interface {
ChatActionType() string
}
Describes the different types of activity in a chat
func UnmarshalChatAction ¶
func UnmarshalChatAction(data json.RawMessage) (ChatAction, error)
func UnmarshalListOfChatAction ¶
func UnmarshalListOfChatAction(dataList []json.RawMessage) ([]ChatAction, error)
type ChatActionBar ¶
type ChatActionBar interface {
ChatActionBarType() string
}
Describes actions which must be possible to do through a chat action bar
func UnmarshalChatActionBar ¶
func UnmarshalChatActionBar(data json.RawMessage) (ChatActionBar, error)
func UnmarshalListOfChatActionBar ¶
func UnmarshalListOfChatActionBar(dataList []json.RawMessage) ([]ChatActionBar, error)
type ChatActionBarAddContact ¶
type ChatActionBarAddContact struct {
// contains filtered or unexported fields
}
The chat is a private or secret chat and the other user can be added to the contact list using the method addContact
func UnmarshalChatActionBarAddContact ¶
func UnmarshalChatActionBarAddContact(data json.RawMessage) (*ChatActionBarAddContact, error)
func (*ChatActionBarAddContact) ChatActionBarType ¶
func (*ChatActionBarAddContact) ChatActionBarType() string
func (*ChatActionBarAddContact) GetClass ¶
func (*ChatActionBarAddContact) GetClass() string
func (*ChatActionBarAddContact) GetType ¶
func (*ChatActionBarAddContact) GetType() string
func (*ChatActionBarAddContact) MarshalJSON ¶
func (entity *ChatActionBarAddContact) MarshalJSON() ([]byte, error)
type ChatActionBarInviteMembers ¶
type ChatActionBarInviteMembers struct {
// contains filtered or unexported fields
}
The chat is a recently created group chat to which new members can be invited
func UnmarshalChatActionBarInviteMembers ¶
func UnmarshalChatActionBarInviteMembers(data json.RawMessage) (*ChatActionBarInviteMembers, error)
func (*ChatActionBarInviteMembers) ChatActionBarType ¶
func (*ChatActionBarInviteMembers) ChatActionBarType() string
func (*ChatActionBarInviteMembers) GetClass ¶
func (*ChatActionBarInviteMembers) GetClass() string
func (*ChatActionBarInviteMembers) GetType ¶
func (*ChatActionBarInviteMembers) GetType() string
func (*ChatActionBarInviteMembers) MarshalJSON ¶
func (entity *ChatActionBarInviteMembers) MarshalJSON() ([]byte, error)
type ChatActionBarJoinRequest ¶
type ChatActionBarJoinRequest struct { // Title of the chat to which the join request was sent Title string `json:"title"` // True, if the join request was sent to a channel chat IsChannel bool `json:"is_channel"` // Point in time (Unix timestamp) when the join request was sent RequestDate int32 `json:"request_date"` // contains filtered or unexported fields }
The chat is a private chat with an administrator of a chat to which the user sent join request
func UnmarshalChatActionBarJoinRequest ¶
func UnmarshalChatActionBarJoinRequest(data json.RawMessage) (*ChatActionBarJoinRequest, error)
func (*ChatActionBarJoinRequest) ChatActionBarType ¶
func (*ChatActionBarJoinRequest) ChatActionBarType() string
func (*ChatActionBarJoinRequest) GetClass ¶
func (*ChatActionBarJoinRequest) GetClass() string
func (*ChatActionBarJoinRequest) GetType ¶
func (*ChatActionBarJoinRequest) GetType() string
func (*ChatActionBarJoinRequest) MarshalJSON ¶
func (entity *ChatActionBarJoinRequest) MarshalJSON() ([]byte, error)
type ChatActionBarReportAddBlock ¶
type ChatActionBarReportAddBlock struct { // If true, the chat was automatically archived and can be moved back to the main chat list using addChatToList simultaneously with setting chat notification settings to default using setChatNotificationSettings CanUnarchive bool `json:"can_unarchive"` // If non-negative, the current user was found by the peer through searchChatsNearby and this is the distance between the users Distance int32 `json:"distance"` // contains filtered or unexported fields }
The chat is a private or secret chat, which can be reported using the method reportChat, or the other user can be blocked using the method setMessageSenderBlockList, or the other user can be added to the contact list using the method addContact. If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must be shown
func UnmarshalChatActionBarReportAddBlock ¶
func UnmarshalChatActionBarReportAddBlock(data json.RawMessage) (*ChatActionBarReportAddBlock, error)
func (*ChatActionBarReportAddBlock) ChatActionBarType ¶
func (*ChatActionBarReportAddBlock) ChatActionBarType() string
func (*ChatActionBarReportAddBlock) GetClass ¶
func (*ChatActionBarReportAddBlock) GetClass() string
func (*ChatActionBarReportAddBlock) GetType ¶
func (*ChatActionBarReportAddBlock) GetType() string
func (*ChatActionBarReportAddBlock) MarshalJSON ¶
func (entity *ChatActionBarReportAddBlock) MarshalJSON() ([]byte, error)
type ChatActionBarReportSpam ¶
type ChatActionBarReportSpam struct { // If true, the chat was automatically archived and can be moved back to the main chat list using addChatToList simultaneously with setting chat notification settings to default using setChatNotificationSettings CanUnarchive bool `json:"can_unarchive"` // contains filtered or unexported fields }
The chat can be reported as spam using the method reportChat with the reason reportReasonSpam. If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must be shown
func UnmarshalChatActionBarReportSpam ¶
func UnmarshalChatActionBarReportSpam(data json.RawMessage) (*ChatActionBarReportSpam, error)
func (*ChatActionBarReportSpam) ChatActionBarType ¶
func (*ChatActionBarReportSpam) ChatActionBarType() string
func (*ChatActionBarReportSpam) GetClass ¶
func (*ChatActionBarReportSpam) GetClass() string
func (*ChatActionBarReportSpam) GetType ¶
func (*ChatActionBarReportSpam) GetType() string
func (*ChatActionBarReportSpam) MarshalJSON ¶
func (entity *ChatActionBarReportSpam) MarshalJSON() ([]byte, error)
type ChatActionBarReportUnrelatedLocation ¶
type ChatActionBarReportUnrelatedLocation struct {
// contains filtered or unexported fields
}
The chat is a location-based supergroup, which can be reported as having unrelated location using the method reportChat with the reason reportReasonUnrelatedLocation
func UnmarshalChatActionBarReportUnrelatedLocation ¶
func UnmarshalChatActionBarReportUnrelatedLocation(data json.RawMessage) (*ChatActionBarReportUnrelatedLocation, error)
func (*ChatActionBarReportUnrelatedLocation) ChatActionBarType ¶
func (*ChatActionBarReportUnrelatedLocation) ChatActionBarType() string
func (*ChatActionBarReportUnrelatedLocation) GetClass ¶
func (*ChatActionBarReportUnrelatedLocation) GetClass() string
func (*ChatActionBarReportUnrelatedLocation) GetType ¶
func (*ChatActionBarReportUnrelatedLocation) GetType() string
func (*ChatActionBarReportUnrelatedLocation) MarshalJSON ¶
func (entity *ChatActionBarReportUnrelatedLocation) MarshalJSON() ([]byte, error)
type ChatActionBarSharePhoneNumber ¶
type ChatActionBarSharePhoneNumber struct {
// contains filtered or unexported fields
}
The chat is a private or secret chat with a mutual contact and the user's phone number can be shared with the other user using the method sharePhoneNumber
func UnmarshalChatActionBarSharePhoneNumber ¶
func UnmarshalChatActionBarSharePhoneNumber(data json.RawMessage) (*ChatActionBarSharePhoneNumber, error)
func (*ChatActionBarSharePhoneNumber) ChatActionBarType ¶
func (*ChatActionBarSharePhoneNumber) ChatActionBarType() string
func (*ChatActionBarSharePhoneNumber) GetClass ¶
func (*ChatActionBarSharePhoneNumber) GetClass() string
func (*ChatActionBarSharePhoneNumber) GetType ¶
func (*ChatActionBarSharePhoneNumber) GetType() string
func (*ChatActionBarSharePhoneNumber) MarshalJSON ¶
func (entity *ChatActionBarSharePhoneNumber) MarshalJSON() ([]byte, error)
type ChatActionCancel ¶
type ChatActionCancel struct {
// contains filtered or unexported fields
}
The user has canceled the previous action
func UnmarshalChatActionCancel ¶
func UnmarshalChatActionCancel(data json.RawMessage) (*ChatActionCancel, error)
func (*ChatActionCancel) ChatActionType ¶
func (*ChatActionCancel) ChatActionType() string
func (*ChatActionCancel) GetClass ¶
func (*ChatActionCancel) GetClass() string
func (*ChatActionCancel) GetType ¶
func (*ChatActionCancel) GetType() string
func (*ChatActionCancel) MarshalJSON ¶
func (entity *ChatActionCancel) MarshalJSON() ([]byte, error)
type ChatActionChoosingContact ¶
type ChatActionChoosingContact struct {
// contains filtered or unexported fields
}
The user is picking a contact to send
func UnmarshalChatActionChoosingContact ¶
func UnmarshalChatActionChoosingContact(data json.RawMessage) (*ChatActionChoosingContact, error)
func (*ChatActionChoosingContact) ChatActionType ¶
func (*ChatActionChoosingContact) ChatActionType() string
func (*ChatActionChoosingContact) GetClass ¶
func (*ChatActionChoosingContact) GetClass() string
func (*ChatActionChoosingContact) GetType ¶
func (*ChatActionChoosingContact) GetType() string
func (*ChatActionChoosingContact) MarshalJSON ¶
func (entity *ChatActionChoosingContact) MarshalJSON() ([]byte, error)
type ChatActionChoosingLocation ¶
type ChatActionChoosingLocation struct {
// contains filtered or unexported fields
}
The user is picking a location or venue to send
func UnmarshalChatActionChoosingLocation ¶
func UnmarshalChatActionChoosingLocation(data json.RawMessage) (*ChatActionChoosingLocation, error)
func (*ChatActionChoosingLocation) ChatActionType ¶
func (*ChatActionChoosingLocation) ChatActionType() string
func (*ChatActionChoosingLocation) GetClass ¶
func (*ChatActionChoosingLocation) GetClass() string
func (*ChatActionChoosingLocation) GetType ¶
func (*ChatActionChoosingLocation) GetType() string
func (*ChatActionChoosingLocation) MarshalJSON ¶
func (entity *ChatActionChoosingLocation) MarshalJSON() ([]byte, error)
type ChatActionChoosingSticker ¶
type ChatActionChoosingSticker struct {
// contains filtered or unexported fields
}
The user is picking a sticker to send
func UnmarshalChatActionChoosingSticker ¶
func UnmarshalChatActionChoosingSticker(data json.RawMessage) (*ChatActionChoosingSticker, error)
func (*ChatActionChoosingSticker) ChatActionType ¶
func (*ChatActionChoosingSticker) ChatActionType() string
func (*ChatActionChoosingSticker) GetClass ¶
func (*ChatActionChoosingSticker) GetClass() string
func (*ChatActionChoosingSticker) GetType ¶
func (*ChatActionChoosingSticker) GetType() string
func (*ChatActionChoosingSticker) MarshalJSON ¶
func (entity *ChatActionChoosingSticker) MarshalJSON() ([]byte, error)
type ChatActionRecordingVideo ¶
type ChatActionRecordingVideo struct {
// contains filtered or unexported fields
}
The user is recording a video
func UnmarshalChatActionRecordingVideo ¶
func UnmarshalChatActionRecordingVideo(data json.RawMessage) (*ChatActionRecordingVideo, error)
func (*ChatActionRecordingVideo) ChatActionType ¶
func (*ChatActionRecordingVideo) ChatActionType() string
func (*ChatActionRecordingVideo) GetClass ¶
func (*ChatActionRecordingVideo) GetClass() string
func (*ChatActionRecordingVideo) GetType ¶
func (*ChatActionRecordingVideo) GetType() string
func (*ChatActionRecordingVideo) MarshalJSON ¶
func (entity *ChatActionRecordingVideo) MarshalJSON() ([]byte, error)
type ChatActionRecordingVideoNote ¶
type ChatActionRecordingVideoNote struct {
// contains filtered or unexported fields
}
The user is recording a video note
func UnmarshalChatActionRecordingVideoNote ¶
func UnmarshalChatActionRecordingVideoNote(data json.RawMessage) (*ChatActionRecordingVideoNote, error)
func (*ChatActionRecordingVideoNote) ChatActionType ¶
func (*ChatActionRecordingVideoNote) ChatActionType() string
func (*ChatActionRecordingVideoNote) GetClass ¶
func (*ChatActionRecordingVideoNote) GetClass() string
func (*ChatActionRecordingVideoNote) GetType ¶
func (*ChatActionRecordingVideoNote) GetType() string
func (*ChatActionRecordingVideoNote) MarshalJSON ¶
func (entity *ChatActionRecordingVideoNote) MarshalJSON() ([]byte, error)
type ChatActionRecordingVoiceNote ¶
type ChatActionRecordingVoiceNote struct {
// contains filtered or unexported fields
}
The user is recording a voice note
func UnmarshalChatActionRecordingVoiceNote ¶
func UnmarshalChatActionRecordingVoiceNote(data json.RawMessage) (*ChatActionRecordingVoiceNote, error)
func (*ChatActionRecordingVoiceNote) ChatActionType ¶
func (*ChatActionRecordingVoiceNote) ChatActionType() string
func (*ChatActionRecordingVoiceNote) GetClass ¶
func (*ChatActionRecordingVoiceNote) GetClass() string
func (*ChatActionRecordingVoiceNote) GetType ¶
func (*ChatActionRecordingVoiceNote) GetType() string
func (*ChatActionRecordingVoiceNote) MarshalJSON ¶
func (entity *ChatActionRecordingVoiceNote) MarshalJSON() ([]byte, error)
type ChatActionStartPlayingGame ¶
type ChatActionStartPlayingGame struct {
// contains filtered or unexported fields
}
The user has started to play a game
func UnmarshalChatActionStartPlayingGame ¶
func UnmarshalChatActionStartPlayingGame(data json.RawMessage) (*ChatActionStartPlayingGame, error)
func (*ChatActionStartPlayingGame) ChatActionType ¶
func (*ChatActionStartPlayingGame) ChatActionType() string
func (*ChatActionStartPlayingGame) GetClass ¶
func (*ChatActionStartPlayingGame) GetClass() string
func (*ChatActionStartPlayingGame) GetType ¶
func (*ChatActionStartPlayingGame) GetType() string
func (*ChatActionStartPlayingGame) MarshalJSON ¶
func (entity *ChatActionStartPlayingGame) MarshalJSON() ([]byte, error)
type ChatActionTyping ¶
type ChatActionTyping struct {
// contains filtered or unexported fields
}
The user is typing a message
func UnmarshalChatActionTyping ¶
func UnmarshalChatActionTyping(data json.RawMessage) (*ChatActionTyping, error)
func (*ChatActionTyping) ChatActionType ¶
func (*ChatActionTyping) ChatActionType() string
func (*ChatActionTyping) GetClass ¶
func (*ChatActionTyping) GetClass() string
func (*ChatActionTyping) GetType ¶
func (*ChatActionTyping) GetType() string
func (*ChatActionTyping) MarshalJSON ¶
func (entity *ChatActionTyping) MarshalJSON() ([]byte, error)
type ChatActionUploadingDocument ¶
type ChatActionUploadingDocument struct { // Upload progress, as a percentage Progress int32 `json:"progress"` // contains filtered or unexported fields }
The user is uploading a document
func UnmarshalChatActionUploadingDocument ¶
func UnmarshalChatActionUploadingDocument(data json.RawMessage) (*ChatActionUploadingDocument, error)
func (*ChatActionUploadingDocument) ChatActionType ¶
func (*ChatActionUploadingDocument) ChatActionType() string
func (*ChatActionUploadingDocument) GetClass ¶
func (*ChatActionUploadingDocument) GetClass() string
func (*ChatActionUploadingDocument) GetType ¶
func (*ChatActionUploadingDocument) GetType() string
func (*ChatActionUploadingDocument) MarshalJSON ¶
func (entity *ChatActionUploadingDocument) MarshalJSON() ([]byte, error)
type ChatActionUploadingPhoto ¶
type ChatActionUploadingPhoto struct { // Upload progress, as a percentage Progress int32 `json:"progress"` // contains filtered or unexported fields }
The user is uploading a photo
func UnmarshalChatActionUploadingPhoto ¶
func UnmarshalChatActionUploadingPhoto(data json.RawMessage) (*ChatActionUploadingPhoto, error)
func (*ChatActionUploadingPhoto) ChatActionType ¶
func (*ChatActionUploadingPhoto) ChatActionType() string
func (*ChatActionUploadingPhoto) GetClass ¶
func (*ChatActionUploadingPhoto) GetClass() string
func (*ChatActionUploadingPhoto) GetType ¶
func (*ChatActionUploadingPhoto) GetType() string
func (*ChatActionUploadingPhoto) MarshalJSON ¶
func (entity *ChatActionUploadingPhoto) MarshalJSON() ([]byte, error)
type ChatActionUploadingVideo ¶
type ChatActionUploadingVideo struct { // Upload progress, as a percentage Progress int32 `json:"progress"` // contains filtered or unexported fields }
The user is uploading a video
func UnmarshalChatActionUploadingVideo ¶
func UnmarshalChatActionUploadingVideo(data json.RawMessage) (*ChatActionUploadingVideo, error)
func (*ChatActionUploadingVideo) ChatActionType ¶
func (*ChatActionUploadingVideo) ChatActionType() string
func (*ChatActionUploadingVideo) GetClass ¶
func (*ChatActionUploadingVideo) GetClass() string
func (*ChatActionUploadingVideo) GetType ¶
func (*ChatActionUploadingVideo) GetType() string
func (*ChatActionUploadingVideo) MarshalJSON ¶
func (entity *ChatActionUploadingVideo) MarshalJSON() ([]byte, error)
type ChatActionUploadingVideoNote ¶
type ChatActionUploadingVideoNote struct { // Upload progress, as a percentage Progress int32 `json:"progress"` // contains filtered or unexported fields }
The user is uploading a video note
func UnmarshalChatActionUploadingVideoNote ¶
func UnmarshalChatActionUploadingVideoNote(data json.RawMessage) (*ChatActionUploadingVideoNote, error)
func (*ChatActionUploadingVideoNote) ChatActionType ¶
func (*ChatActionUploadingVideoNote) ChatActionType() string
func (*ChatActionUploadingVideoNote) GetClass ¶
func (*ChatActionUploadingVideoNote) GetClass() string
func (*ChatActionUploadingVideoNote) GetType ¶
func (*ChatActionUploadingVideoNote) GetType() string
func (*ChatActionUploadingVideoNote) MarshalJSON ¶
func (entity *ChatActionUploadingVideoNote) MarshalJSON() ([]byte, error)
type ChatActionUploadingVoiceNote ¶
type ChatActionUploadingVoiceNote struct { // Upload progress, as a percentage Progress int32 `json:"progress"` // contains filtered or unexported fields }
The user is uploading a voice note
func UnmarshalChatActionUploadingVoiceNote ¶
func UnmarshalChatActionUploadingVoiceNote(data json.RawMessage) (*ChatActionUploadingVoiceNote, error)
func (*ChatActionUploadingVoiceNote) ChatActionType ¶
func (*ChatActionUploadingVoiceNote) ChatActionType() string
func (*ChatActionUploadingVoiceNote) GetClass ¶
func (*ChatActionUploadingVoiceNote) GetClass() string
func (*ChatActionUploadingVoiceNote) GetType ¶
func (*ChatActionUploadingVoiceNote) GetType() string
func (*ChatActionUploadingVoiceNote) MarshalJSON ¶
func (entity *ChatActionUploadingVoiceNote) MarshalJSON() ([]byte, error)
type ChatActionWatchingAnimations ¶
type ChatActionWatchingAnimations struct { // The animated emoji Emoji string `json:"emoji"` // contains filtered or unexported fields }
The user is watching animations sent by the other party by clicking on an animated emoji
func UnmarshalChatActionWatchingAnimations ¶
func UnmarshalChatActionWatchingAnimations(data json.RawMessage) (*ChatActionWatchingAnimations, error)
func (*ChatActionWatchingAnimations) ChatActionType ¶
func (*ChatActionWatchingAnimations) ChatActionType() string
func (*ChatActionWatchingAnimations) GetClass ¶
func (*ChatActionWatchingAnimations) GetClass() string
func (*ChatActionWatchingAnimations) GetType ¶
func (*ChatActionWatchingAnimations) GetType() string
func (*ChatActionWatchingAnimations) MarshalJSON ¶
func (entity *ChatActionWatchingAnimations) MarshalJSON() ([]byte, error)
type ChatActiveStories ¶ added in v1.2.3
type ChatActiveStories struct { // Identifier of the chat that posted the stories ChatId int64 `json:"chat_id"` // Identifier of the story list in which the stories are shown; may be null if the stories aren't shown in a story list List StoryList `json:"list"` // A parameter used to determine order of the stories in the story list; 0 if the stories doesn't need to be shown in the story list. Stories must be sorted by the pair (order, story_sender_chat_id) in descending order Order int64 `json:"order"` // Identifier of the last read active story MaxReadStoryId int32 `json:"max_read_story_id"` // Basic information about the stories; use getStory to get full information about the stories. The stories are in a chronological order (i.e., in order of increasing story identifiers) Stories []*StoryInfo `json:"stories"` // contains filtered or unexported fields }
Describes active stories posted by a chat
func UnmarshalChatActiveStories ¶ added in v1.2.3
func UnmarshalChatActiveStories(data json.RawMessage) (*ChatActiveStories, error)
func (*ChatActiveStories) GetClass ¶ added in v1.2.3
func (*ChatActiveStories) GetClass() string
func (*ChatActiveStories) GetType ¶ added in v1.2.3
func (*ChatActiveStories) GetType() string
func (*ChatActiveStories) MarshalJSON ¶ added in v1.2.3
func (entity *ChatActiveStories) MarshalJSON() ([]byte, error)
func (*ChatActiveStories) UnmarshalJSON ¶ added in v1.2.3
func (chatActiveStories *ChatActiveStories) UnmarshalJSON(data []byte) error
type ChatAdministrator ¶
type ChatAdministrator struct { // User identifier of the administrator UserId int64 `json:"user_id"` // Custom title of the administrator CustomTitle string `json:"custom_title"` // True, if the user is the owner of the chat IsOwner bool `json:"is_owner"` // contains filtered or unexported fields }
Contains information about a chat administrator
func UnmarshalChatAdministrator ¶
func UnmarshalChatAdministrator(data json.RawMessage) (*ChatAdministrator, error)
func (*ChatAdministrator) GetClass ¶
func (*ChatAdministrator) GetClass() string
func (*ChatAdministrator) GetType ¶
func (*ChatAdministrator) GetType() string
func (*ChatAdministrator) MarshalJSON ¶
func (entity *ChatAdministrator) MarshalJSON() ([]byte, error)
type ChatAdministratorRights ¶ added in v1.0.6
type ChatAdministratorRights struct { // True, if the administrator can get chat event log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other privilege; applicable to supergroups and channels only CanManageChat bool `json:"can_manage_chat"` // True, if the administrator can change the chat title, photo, and other settings CanChangeInfo bool `json:"can_change_info"` // True, if the administrator can create channel posts; applicable to channels only CanPostMessages bool `json:"can_post_messages"` // True, if the administrator can edit messages of other users and pin messages; applicable to channels only CanEditMessages bool `json:"can_edit_messages"` // True, if the administrator can delete messages of other users CanDeleteMessages bool `json:"can_delete_messages"` // True, if the administrator can invite new users to the chat CanInviteUsers bool `json:"can_invite_users"` // True, if the administrator can restrict, ban, or unban chat members; always true for channels CanRestrictMembers bool `json:"can_restrict_members"` // True, if the administrator can pin messages; applicable to basic groups and supergroups only CanPinMessages bool `json:"can_pin_messages"` // True, if the administrator can manage topics; applicable to forum supergroups only CanManageTopics bool `json:"can_manage_topics"` // True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them CanPromoteMembers bool `json:"can_promote_members"` // True, if the administrator can manage video chats CanManageVideoChats bool `json:"can_manage_video_chats"` // True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only IsAnonymous bool `json:"is_anonymous"` // contains filtered or unexported fields }
Describes rights of the administrator
func UnmarshalChatAdministratorRights ¶ added in v1.0.6
func UnmarshalChatAdministratorRights(data json.RawMessage) (*ChatAdministratorRights, error)
func (*ChatAdministratorRights) GetClass ¶ added in v1.0.6
func (*ChatAdministratorRights) GetClass() string
func (*ChatAdministratorRights) GetType ¶ added in v1.0.6
func (*ChatAdministratorRights) GetType() string
func (*ChatAdministratorRights) MarshalJSON ¶ added in v1.0.6
func (entity *ChatAdministratorRights) MarshalJSON() ([]byte, error)
type ChatAdministrators ¶
type ChatAdministrators struct { // A list of chat administrators Administrators []*ChatAdministrator `json:"administrators"` // contains filtered or unexported fields }
Represents a list of chat administrators
func UnmarshalChatAdministrators ¶
func UnmarshalChatAdministrators(data json.RawMessage) (*ChatAdministrators, error)
func (*ChatAdministrators) GetClass ¶
func (*ChatAdministrators) GetClass() string
func (*ChatAdministrators) GetType ¶
func (*ChatAdministrators) GetType() string
func (*ChatAdministrators) MarshalJSON ¶
func (entity *ChatAdministrators) MarshalJSON() ([]byte, error)
type ChatAvailableReactions ¶ added in v1.2.3
type ChatAvailableReactions interface {
ChatAvailableReactionsType() string
}
Describes reactions available in the chat
func UnmarshalChatAvailableReactions ¶ added in v1.2.3
func UnmarshalChatAvailableReactions(data json.RawMessage) (ChatAvailableReactions, error)
func UnmarshalListOfChatAvailableReactions ¶ added in v1.2.3
func UnmarshalListOfChatAvailableReactions(dataList []json.RawMessage) ([]ChatAvailableReactions, error)
type ChatAvailableReactionsAll ¶ added in v1.2.3
type ChatAvailableReactionsAll struct {
// contains filtered or unexported fields
}
All reactions are available in the chat
func UnmarshalChatAvailableReactionsAll ¶ added in v1.2.3
func UnmarshalChatAvailableReactionsAll(data json.RawMessage) (*ChatAvailableReactionsAll, error)
func (*ChatAvailableReactionsAll) ChatAvailableReactionsType ¶ added in v1.2.3
func (*ChatAvailableReactionsAll) ChatAvailableReactionsType() string
func (*ChatAvailableReactionsAll) GetClass ¶ added in v1.2.3
func (*ChatAvailableReactionsAll) GetClass() string
func (*ChatAvailableReactionsAll) GetType ¶ added in v1.2.3
func (*ChatAvailableReactionsAll) GetType() string
func (*ChatAvailableReactionsAll) MarshalJSON ¶ added in v1.2.3
func (entity *ChatAvailableReactionsAll) MarshalJSON() ([]byte, error)
type ChatAvailableReactionsSome ¶ added in v1.2.3
type ChatAvailableReactionsSome struct { // The list of reactions Reactions []ReactionType `json:"reactions"` // contains filtered or unexported fields }
Only specific reactions are available in the chat
func UnmarshalChatAvailableReactionsSome ¶ added in v1.2.3
func UnmarshalChatAvailableReactionsSome(data json.RawMessage) (*ChatAvailableReactionsSome, error)
func (*ChatAvailableReactionsSome) ChatAvailableReactionsType ¶ added in v1.2.3
func (*ChatAvailableReactionsSome) ChatAvailableReactionsType() string
func (*ChatAvailableReactionsSome) GetClass ¶ added in v1.2.3
func (*ChatAvailableReactionsSome) GetClass() string
func (*ChatAvailableReactionsSome) GetType ¶ added in v1.2.3
func (*ChatAvailableReactionsSome) GetType() string
func (*ChatAvailableReactionsSome) MarshalJSON ¶ added in v1.2.3
func (entity *ChatAvailableReactionsSome) MarshalJSON() ([]byte, error)
func (*ChatAvailableReactionsSome) UnmarshalJSON ¶ added in v1.2.3
func (chatAvailableReactionsSome *ChatAvailableReactionsSome) UnmarshalJSON(data []byte) error
type ChatBackground ¶ added in v1.2.3
type ChatBackground struct { // The background Background *Background `json:"background"` // Dimming of the background in dark themes, as a percentage; 0-100 DarkThemeDimming int32 `json:"dark_theme_dimming"` // contains filtered or unexported fields }
Describes a background set for a specific chat
func UnmarshalChatBackground ¶ added in v1.2.3
func UnmarshalChatBackground(data json.RawMessage) (*ChatBackground, error)
func (*ChatBackground) GetClass ¶ added in v1.2.3
func (*ChatBackground) GetClass() string
func (*ChatBackground) GetType ¶ added in v1.2.3
func (*ChatBackground) GetType() string
func (*ChatBackground) MarshalJSON ¶ added in v1.2.3
func (entity *ChatBackground) MarshalJSON() ([]byte, error)
type ChatEvent ¶
type ChatEvent struct { // Chat event identifier Id JsonInt64 `json:"id"` // Point in time (Unix timestamp) when the event happened Date int32 `json:"date"` // Identifier of the user or chat who performed the action MemberId MessageSender `json:"member_id"` // The action Action ChatEventAction `json:"action"` // contains filtered or unexported fields }
Represents a chat event
func UnmarshalChatEvent ¶
func UnmarshalChatEvent(data json.RawMessage) (*ChatEvent, error)
func (*ChatEvent) MarshalJSON ¶
func (*ChatEvent) UnmarshalJSON ¶
type ChatEventAction ¶
type ChatEventAction interface {
ChatEventActionType() string
}
Represents a chat event
func UnmarshalChatEventAction ¶
func UnmarshalChatEventAction(data json.RawMessage) (ChatEventAction, error)
func UnmarshalListOfChatEventAction ¶
func UnmarshalListOfChatEventAction(dataList []json.RawMessage) ([]ChatEventAction, error)
type ChatEventActiveUsernamesChanged ¶ added in v1.2.3
type ChatEventActiveUsernamesChanged struct { // Previous list of active usernames OldUsernames []string `json:"old_usernames"` // New list of active usernames NewUsernames []string `json:"new_usernames"` // contains filtered or unexported fields }
The chat active usernames were changed
func UnmarshalChatEventActiveUsernamesChanged ¶ added in v1.2.3
func UnmarshalChatEventActiveUsernamesChanged(data json.RawMessage) (*ChatEventActiveUsernamesChanged, error)
func (*ChatEventActiveUsernamesChanged) ChatEventActionType ¶ added in v1.2.3
func (*ChatEventActiveUsernamesChanged) ChatEventActionType() string
func (*ChatEventActiveUsernamesChanged) GetClass ¶ added in v1.2.3
func (*ChatEventActiveUsernamesChanged) GetClass() string
func (*ChatEventActiveUsernamesChanged) GetType ¶ added in v1.2.3
func (*ChatEventActiveUsernamesChanged) GetType() string
func (*ChatEventActiveUsernamesChanged) MarshalJSON ¶ added in v1.2.3
func (entity *ChatEventActiveUsernamesChanged) MarshalJSON() ([]byte, error)
type ChatEventAvailableReactionsChanged ¶ added in v1.0.6
type ChatEventAvailableReactionsChanged struct { // Previous chat available reactions OldAvailableReactions ChatAvailableReactions `json:"old_available_reactions"` // New chat available reactions NewAvailableReactions ChatAvailableReactions `json:"new_available_reactions"` // contains filtered or unexported fields }
The chat available reactions were changed
func UnmarshalChatEventAvailableReactionsChanged ¶ added in v1.0.6
func UnmarshalChatEventAvailableReactionsChanged(data json.RawMessage) (*ChatEventAvailableReactionsChanged, error)
func (*ChatEventAvailableReactionsChanged) ChatEventActionType ¶ added in v1.0.6
func (*ChatEventAvailableReactionsChanged) ChatEventActionType() string
func (*ChatEventAvailableReactionsChanged) GetClass ¶ added in v1.0.6
func (*ChatEventAvailableReactionsChanged) GetClass() string
func (*ChatEventAvailableReactionsChanged) GetType ¶ added in v1.0.6
func (*ChatEventAvailableReactionsChanged) GetType() string
func (*ChatEventAvailableReactionsChanged) MarshalJSON ¶ added in v1.0.6
func (entity *ChatEventAvailableReactionsChanged) MarshalJSON() ([]byte, error)
func (*ChatEventAvailableReactionsChanged) UnmarshalJSON ¶ added in v1.2.3
func (chatEventAvailableReactionsChanged *ChatEventAvailableReactionsChanged) UnmarshalJSON(data []byte) error
type ChatEventDescriptionChanged ¶
type ChatEventDescriptionChanged struct { // Previous chat description OldDescription string `json:"old_description"` // New chat description NewDescription string `json:"new_description"` // contains filtered or unexported fields }
The chat description was changed
func UnmarshalChatEventDescriptionChanged ¶
func UnmarshalChatEventDescriptionChanged(data json.RawMessage) (*ChatEventDescriptionChanged, error)
func (*ChatEventDescriptionChanged) ChatEventActionType ¶
func (*ChatEventDescriptionChanged) ChatEventActionType() string
func (*ChatEventDescriptionChanged) GetClass ¶
func (*ChatEventDescriptionChanged) GetClass() string
func (*ChatEventDescriptionChanged) GetType ¶
func (*ChatEventDescriptionChanged) GetType() string
func (*ChatEventDescriptionChanged) MarshalJSON ¶
func (entity *ChatEventDescriptionChanged) MarshalJSON() ([]byte, error)
type ChatEventForumTopicCreated ¶ added in v1.2.3
type ChatEventForumTopicCreated struct { // Information about the topic TopicInfo *ForumTopicInfo `json:"topic_info"` // contains filtered or unexported fields }
A new forum topic was created
func UnmarshalChatEventForumTopicCreated ¶ added in v1.2.3
func UnmarshalChatEventForumTopicCreated(data json.RawMessage) (*ChatEventForumTopicCreated, error)
func (*ChatEventForumTopicCreated) ChatEventActionType ¶ added in v1.2.3
func (*ChatEventForumTopicCreated) ChatEventActionType() string
func (*ChatEventForumTopicCreated) GetClass ¶ added in v1.2.3
func (*ChatEventForumTopicCreated) GetClass() string
func (*ChatEventForumTopicCreated) GetType ¶ added in v1.2.3
func (*ChatEventForumTopicCreated) GetType() string
func (*ChatEventForumTopicCreated) MarshalJSON ¶ added in v1.2.3
func (entity *ChatEventForumTopicCreated) MarshalJSON() ([]byte, error)
type ChatEventForumTopicDeleted ¶ added in v1.2.3
type ChatEventForumTopicDeleted struct { // Information about the topic TopicInfo *ForumTopicInfo `json:"topic_info"` // contains filtered or unexported fields }
A forum topic was deleted
func UnmarshalChatEventForumTopicDeleted ¶ added in v1.2.3
func UnmarshalChatEventForumTopicDeleted(data json.RawMessage) (*ChatEventForumTopicDeleted, error)
func (*ChatEventForumTopicDeleted) ChatEventActionType ¶ added in v1.2.3
func (*ChatEventForumTopicDeleted) ChatEventActionType() string
func (*ChatEventForumTopicDeleted) GetClass ¶ added in v1.2.3
func (*ChatEventForumTopicDeleted) GetClass() string
func (*ChatEventForumTopicDeleted) GetType ¶ added in v1.2.3
func (*ChatEventForumTopicDeleted) GetType() string
func (*ChatEventForumTopicDeleted) MarshalJSON ¶ added in v1.2.3
func (entity *ChatEventForumTopicDeleted) MarshalJSON() ([]byte, error)
type ChatEventForumTopicEdited ¶ added in v1.2.3
type ChatEventForumTopicEdited struct { // Old information about the topic OldTopicInfo *ForumTopicInfo `json:"old_topic_info"` // New information about the topic NewTopicInfo *ForumTopicInfo `json:"new_topic_info"` // contains filtered or unexported fields }
A forum topic was edited
func UnmarshalChatEventForumTopicEdited ¶ added in v1.2.3
func UnmarshalChatEventForumTopicEdited(data json.RawMessage) (*ChatEventForumTopicEdited, error)
func (*ChatEventForumTopicEdited) ChatEventActionType ¶ added in v1.2.3
func (*ChatEventForumTopicEdited) ChatEventActionType() string
func (*ChatEventForumTopicEdited) GetClass ¶ added in v1.2.3
func (*ChatEventForumTopicEdited) GetClass() string
func (*ChatEventForumTopicEdited) GetType ¶ added in v1.2.3
func (*ChatEventForumTopicEdited) GetType() string
func (*ChatEventForumTopicEdited) MarshalJSON ¶ added in v1.2.3
func (entity *ChatEventForumTopicEdited) MarshalJSON() ([]byte, error)
type ChatEventForumTopicPinned ¶ added in v1.2.3
type ChatEventForumTopicPinned struct { // Information about the old pinned topic; may be null OldTopicInfo *ForumTopicInfo `json:"old_topic_info"` // Information about the new pinned topic; may be null NewTopicInfo *ForumTopicInfo `json:"new_topic_info"` // contains filtered or unexported fields }
A pinned forum topic was changed
func UnmarshalChatEventForumTopicPinned ¶ added in v1.2.3
func UnmarshalChatEventForumTopicPinned(data json.RawMessage) (*ChatEventForumTopicPinned, error)
func (*ChatEventForumTopicPinned) ChatEventActionType ¶ added in v1.2.3
func (*ChatEventForumTopicPinned) ChatEventActionType() string
func (*ChatEventForumTopicPinned) GetClass ¶ added in v1.2.3
func (*ChatEventForumTopicPinned) GetClass() string
func (*ChatEventForumTopicPinned) GetType ¶ added in v1.2.3
func (*ChatEventForumTopicPinned) GetType() string
func (*ChatEventForumTopicPinned) MarshalJSON ¶ added in v1.2.3
func (entity *ChatEventForumTopicPinned) MarshalJSON() ([]byte, error)
type ChatEventForumTopicToggleIsClosed ¶ added in v1.2.3
type ChatEventForumTopicToggleIsClosed struct { // New information about the topic TopicInfo *ForumTopicInfo `json:"topic_info"` // contains filtered or unexported fields }
A forum topic was closed or reopened
func UnmarshalChatEventForumTopicToggleIsClosed ¶ added in v1.2.3
func UnmarshalChatEventForumTopicToggleIsClosed(data json.RawMessage) (*ChatEventForumTopicToggleIsClosed, error)
func (*ChatEventForumTopicToggleIsClosed) ChatEventActionType ¶ added in v1.2.3
func (*ChatEventForumTopicToggleIsClosed) ChatEventActionType() string
func (*ChatEventForumTopicToggleIsClosed) GetClass ¶ added in v1.2.3
func (*ChatEventForumTopicToggleIsClosed) GetClass() string
func (*ChatEventForumTopicToggleIsClosed) GetType ¶ added in v1.2.3
func (*ChatEventForumTopicToggleIsClosed) GetType() string
func (*ChatEventForumTopicToggleIsClosed) MarshalJSON ¶ added in v1.2.3
func (entity *ChatEventForumTopicToggleIsClosed) MarshalJSON() ([]byte, error)
type ChatEventForumTopicToggleIsHidden ¶ added in v1.2.3
type ChatEventForumTopicToggleIsHidden struct { // New information about the topic TopicInfo *ForumTopicInfo `json:"topic_info"` // contains filtered or unexported fields }
The General forum topic was hidden or unhidden
func UnmarshalChatEventForumTopicToggleIsHidden ¶ added in v1.2.3
func UnmarshalChatEventForumTopicToggleIsHidden(data json.RawMessage) (*ChatEventForumTopicToggleIsHidden, error)
func (*ChatEventForumTopicToggleIsHidden) ChatEventActionType ¶ added in v1.2.3
func (*ChatEventForumTopicToggleIsHidden) ChatEventActionType() string
func (*ChatEventForumTopicToggleIsHidden) GetClass ¶ added in v1.2.3
func (*ChatEventForumTopicToggleIsHidden) GetClass() string
func (*ChatEventForumTopicToggleIsHidden) GetType ¶ added in v1.2.3
func (*ChatEventForumTopicToggleIsHidden) GetType() string
func (*ChatEventForumTopicToggleIsHidden) MarshalJSON ¶ added in v1.2.3
func (entity *ChatEventForumTopicToggleIsHidden) MarshalJSON() ([]byte, error)
type ChatEventHasAggressiveAntiSpamEnabledToggled ¶ added in v1.2.3
type ChatEventHasAggressiveAntiSpamEnabledToggled struct { // New value of has_aggressive_anti_spam_enabled HasAggressiveAntiSpamEnabled bool `json:"has_aggressive_anti_spam_enabled"` // contains filtered or unexported fields }
The has_aggressive_anti_spam_enabled setting of a supergroup was toggled
func UnmarshalChatEventHasAggressiveAntiSpamEnabledToggled ¶ added in v1.2.3
func UnmarshalChatEventHasAggressiveAntiSpamEnabledToggled(data json.RawMessage) (*ChatEventHasAggressiveAntiSpamEnabledToggled, error)
func (*ChatEventHasAggressiveAntiSpamEnabledToggled) ChatEventActionType ¶ added in v1.2.3
func (*ChatEventHasAggressiveAntiSpamEnabledToggled) ChatEventActionType() string
func (*ChatEventHasAggressiveAntiSpamEnabledToggled) GetClass ¶ added in v1.2.3
func (*ChatEventHasAggressiveAntiSpamEnabledToggled) GetClass() string
func (*ChatEventHasAggressiveAntiSpamEnabledToggled) GetType ¶ added in v1.2.3
func (*ChatEventHasAggressiveAntiSpamEnabledToggled) GetType() string
func (*ChatEventHasAggressiveAntiSpamEnabledToggled) MarshalJSON ¶ added in v1.2.3
func (entity *ChatEventHasAggressiveAntiSpamEnabledToggled) MarshalJSON() ([]byte, error)
type ChatEventHasProtectedContentToggled ¶
type ChatEventHasProtectedContentToggled struct { // New value of has_protected_content HasProtectedContent bool `json:"has_protected_content"` // contains filtered or unexported fields }
The has_protected_content setting of a channel was toggled
func UnmarshalChatEventHasProtectedContentToggled ¶
func UnmarshalChatEventHasProtectedContentToggled(data json.RawMessage) (*ChatEventHasProtectedContentToggled, error)
func (*ChatEventHasProtectedContentToggled) ChatEventActionType ¶
func (*ChatEventHasProtectedContentToggled) ChatEventActionType() string
func (*ChatEventHasProtectedContentToggled) GetClass ¶
func (*ChatEventHasProtectedContentToggled) GetClass() string
func (*ChatEventHasProtectedContentToggled) GetType ¶
func (*ChatEventHasProtectedContentToggled) GetType() string
func (*ChatEventHasProtectedContentToggled) MarshalJSON ¶
func (entity *ChatEventHasProtectedContentToggled) MarshalJSON() ([]byte, error)
type ChatEventInviteLinkDeleted ¶
type ChatEventInviteLinkDeleted struct { // The invite link InviteLink *ChatInviteLink `json:"invite_link"` // contains filtered or unexported fields }
A revoked chat invite link was deleted
func UnmarshalChatEventInviteLinkDeleted ¶
func UnmarshalChatEventInviteLinkDeleted(data json.RawMessage) (*ChatEventInviteLinkDeleted, error)
func (*ChatEventInviteLinkDeleted) ChatEventActionType ¶
func (*ChatEventInviteLinkDeleted) ChatEventActionType() string
func (*ChatEventInviteLinkDeleted) GetClass ¶
func (*ChatEventInviteLinkDeleted) GetClass() string
func (*ChatEventInviteLinkDeleted) GetType ¶
func (*ChatEventInviteLinkDeleted) GetType() string
func (*ChatEventInviteLinkDeleted) MarshalJSON ¶
func (entity *ChatEventInviteLinkDeleted) MarshalJSON() ([]byte, error)
type ChatEventInviteLinkEdited ¶
type ChatEventInviteLinkEdited struct { // Previous information about the invite link OldInviteLink *ChatInviteLink `json:"old_invite_link"` // New information about the invite link NewInviteLink *ChatInviteLink `json:"new_invite_link"` // contains filtered or unexported fields }
A chat invite link was edited
func UnmarshalChatEventInviteLinkEdited ¶
func UnmarshalChatEventInviteLinkEdited(data json.RawMessage) (*ChatEventInviteLinkEdited, error)
func (*ChatEventInviteLinkEdited) ChatEventActionType ¶
func (*ChatEventInviteLinkEdited) ChatEventActionType() string
func (*ChatEventInviteLinkEdited) GetClass ¶
func (*ChatEventInviteLinkEdited) GetClass() string
func (*ChatEventInviteLinkEdited) GetType ¶
func (*ChatEventInviteLinkEdited) GetType() string
func (*ChatEventInviteLinkEdited) MarshalJSON ¶
func (entity *ChatEventInviteLinkEdited) MarshalJSON() ([]byte, error)
type ChatEventInviteLinkRevoked ¶
type ChatEventInviteLinkRevoked struct { // The invite link InviteLink *ChatInviteLink `json:"invite_link"` // contains filtered or unexported fields }
A chat invite link was revoked
func UnmarshalChatEventInviteLinkRevoked ¶
func UnmarshalChatEventInviteLinkRevoked(data json.RawMessage) (*ChatEventInviteLinkRevoked, error)
func (*ChatEventInviteLinkRevoked) ChatEventActionType ¶
func (*ChatEventInviteLinkRevoked) ChatEventActionType() string
func (*ChatEventInviteLinkRevoked) GetClass ¶
func (*ChatEventInviteLinkRevoked) GetClass() string
func (*ChatEventInviteLinkRevoked) GetType ¶
func (*ChatEventInviteLinkRevoked) GetType() string
func (*ChatEventInviteLinkRevoked) MarshalJSON ¶
func (entity *ChatEventInviteLinkRevoked) MarshalJSON() ([]byte, error)
type ChatEventInvitesToggled ¶
type ChatEventInvitesToggled struct { // New value of can_invite_users permission CanInviteUsers bool `json:"can_invite_users"` // contains filtered or unexported fields }
The can_invite_users permission of a supergroup chat was toggled
func UnmarshalChatEventInvitesToggled ¶
func UnmarshalChatEventInvitesToggled(data json.RawMessage) (*ChatEventInvitesToggled, error)
func (*ChatEventInvitesToggled) ChatEventActionType ¶
func (*ChatEventInvitesToggled) ChatEventActionType() string
func (*ChatEventInvitesToggled) GetClass ¶
func (*ChatEventInvitesToggled) GetClass() string
func (*ChatEventInvitesToggled) GetType ¶
func (*ChatEventInvitesToggled) GetType() string
func (*ChatEventInvitesToggled) MarshalJSON ¶
func (entity *ChatEventInvitesToggled) MarshalJSON() ([]byte, error)
type ChatEventIsAllHistoryAvailableToggled ¶
type ChatEventIsAllHistoryAvailableToggled struct { // New value of is_all_history_available IsAllHistoryAvailable bool `json:"is_all_history_available"` // contains filtered or unexported fields }
The is_all_history_available setting of a supergroup was toggled
func UnmarshalChatEventIsAllHistoryAvailableToggled ¶
func UnmarshalChatEventIsAllHistoryAvailableToggled(data json.RawMessage) (*ChatEventIsAllHistoryAvailableToggled, error)
func (*ChatEventIsAllHistoryAvailableToggled) ChatEventActionType ¶
func (*ChatEventIsAllHistoryAvailableToggled) ChatEventActionType() string
func (*ChatEventIsAllHistoryAvailableToggled) GetClass ¶
func (*ChatEventIsAllHistoryAvailableToggled) GetClass() string
func (*ChatEventIsAllHistoryAvailableToggled) GetType ¶
func (*ChatEventIsAllHistoryAvailableToggled) GetType() string
func (*ChatEventIsAllHistoryAvailableToggled) MarshalJSON ¶
func (entity *ChatEventIsAllHistoryAvailableToggled) MarshalJSON() ([]byte, error)
type ChatEventIsForumToggled ¶ added in v1.2.3
type ChatEventIsForumToggled struct { // New value of is_forum IsForum bool `json:"is_forum"` // contains filtered or unexported fields }
The is_forum setting of a channel was toggled
func UnmarshalChatEventIsForumToggled ¶ added in v1.2.3
func UnmarshalChatEventIsForumToggled(data json.RawMessage) (*ChatEventIsForumToggled, error)
func (*ChatEventIsForumToggled) ChatEventActionType ¶ added in v1.2.3
func (*ChatEventIsForumToggled) ChatEventActionType() string
func (*ChatEventIsForumToggled) GetClass ¶ added in v1.2.3
func (*ChatEventIsForumToggled) GetClass() string
func (*ChatEventIsForumToggled) GetType ¶ added in v1.2.3
func (*ChatEventIsForumToggled) GetType() string
func (*ChatEventIsForumToggled) MarshalJSON ¶ added in v1.2.3
func (entity *ChatEventIsForumToggled) MarshalJSON() ([]byte, error)
type ChatEventLinkedChatChanged ¶
type ChatEventLinkedChatChanged struct { // Previous supergroup linked chat identifier OldLinkedChatId int64 `json:"old_linked_chat_id"` // New supergroup linked chat identifier NewLinkedChatId int64 `json:"new_linked_chat_id"` // contains filtered or unexported fields }
The linked chat of a supergroup was changed
func UnmarshalChatEventLinkedChatChanged ¶
func UnmarshalChatEventLinkedChatChanged(data json.RawMessage) (*ChatEventLinkedChatChanged, error)
func (*ChatEventLinkedChatChanged) ChatEventActionType ¶
func (*ChatEventLinkedChatChanged) ChatEventActionType() string
func (*ChatEventLinkedChatChanged) GetClass ¶
func (*ChatEventLinkedChatChanged) GetClass() string
func (*ChatEventLinkedChatChanged) GetType ¶
func (*ChatEventLinkedChatChanged) GetType() string
func (*ChatEventLinkedChatChanged) MarshalJSON ¶
func (entity *ChatEventLinkedChatChanged) MarshalJSON() ([]byte, error)
type ChatEventLocationChanged ¶
type ChatEventLocationChanged struct { // Previous location; may be null OldLocation *ChatLocation `json:"old_location"` // New location; may be null NewLocation *ChatLocation `json:"new_location"` // contains filtered or unexported fields }
The supergroup location was changed
func UnmarshalChatEventLocationChanged ¶
func UnmarshalChatEventLocationChanged(data json.RawMessage) (*ChatEventLocationChanged, error)
func (*ChatEventLocationChanged) ChatEventActionType ¶
func (*ChatEventLocationChanged) ChatEventActionType() string
func (*ChatEventLocationChanged) GetClass ¶
func (*ChatEventLocationChanged) GetClass() string
func (*ChatEventLocationChanged) GetType ¶
func (*ChatEventLocationChanged) GetType() string
func (*ChatEventLocationChanged) MarshalJSON ¶
func (entity *ChatEventLocationChanged) MarshalJSON() ([]byte, error)
type ChatEventLogFilters ¶
type ChatEventLogFilters struct { // True, if message edits need to be returned MessageEdits bool `json:"message_edits"` // True, if message deletions need to be returned MessageDeletions bool `json:"message_deletions"` // True, if pin/unpin events need to be returned MessagePins bool `json:"message_pins"` // True, if members joining events need to be returned MemberJoins bool `json:"member_joins"` // True, if members leaving events need to be returned MemberLeaves bool `json:"member_leaves"` // True, if invited member events need to be returned MemberInvites bool `json:"member_invites"` // True, if member promotion/demotion events need to be returned MemberPromotions bool `json:"member_promotions"` // True, if member restricted/unrestricted/banned/unbanned events need to be returned MemberRestrictions bool `json:"member_restrictions"` // True, if changes in chat information need to be returned InfoChanges bool `json:"info_changes"` // True, if changes in chat settings need to be returned SettingChanges bool `json:"setting_changes"` // True, if changes to invite links need to be returned InviteLinkChanges bool `json:"invite_link_changes"` // True, if video chat actions need to be returned VideoChatChanges bool `json:"video_chat_changes"` // True, if forum-related actions need to be returned ForumChanges bool `json:"forum_changes"` // contains filtered or unexported fields }
Represents a set of filters used to obtain a chat event log
func UnmarshalChatEventLogFilters ¶
func UnmarshalChatEventLogFilters(data json.RawMessage) (*ChatEventLogFilters, error)
func (*ChatEventLogFilters) GetClass ¶
func (*ChatEventLogFilters) GetClass() string
func (*ChatEventLogFilters) GetType ¶
func (*ChatEventLogFilters) GetType() string
func (*ChatEventLogFilters) MarshalJSON ¶
func (entity *ChatEventLogFilters) MarshalJSON() ([]byte, error)
type ChatEventMemberInvited ¶
type ChatEventMemberInvited struct { // New member user identifier UserId int64 `json:"user_id"` // New member status Status ChatMemberStatus `json:"status"` // contains filtered or unexported fields }
A new chat member was invited
func UnmarshalChatEventMemberInvited ¶
func UnmarshalChatEventMemberInvited(data json.RawMessage) (*ChatEventMemberInvited, error)
func (*ChatEventMemberInvited) ChatEventActionType ¶
func (*ChatEventMemberInvited) ChatEventActionType() string
func (*ChatEventMemberInvited) GetClass ¶
func (*ChatEventMemberInvited) GetClass() string
func (*ChatEventMemberInvited) GetType ¶
func (*ChatEventMemberInvited) GetType() string
func (*ChatEventMemberInvited) MarshalJSON ¶
func (entity *ChatEventMemberInvited) MarshalJSON() ([]byte, error)
func (*ChatEventMemberInvited) UnmarshalJSON ¶
func (chatEventMemberInvited *ChatEventMemberInvited) UnmarshalJSON(data []byte) error
type ChatEventMemberJoined ¶
type ChatEventMemberJoined struct {
// contains filtered or unexported fields
}
A new member joined the chat
func UnmarshalChatEventMemberJoined ¶
func UnmarshalChatEventMemberJoined(data json.RawMessage) (*ChatEventMemberJoined, error)
func (*ChatEventMemberJoined) ChatEventActionType ¶
func (*ChatEventMemberJoined) ChatEventActionType() string
func (*ChatEventMemberJoined) GetClass ¶
func (*ChatEventMemberJoined) GetClass() string
func (*ChatEventMemberJoined) GetType ¶
func (*ChatEventMemberJoined) GetType() string
func (*ChatEventMemberJoined) MarshalJSON ¶
func (entity *ChatEventMemberJoined) MarshalJSON() ([]byte, error)
type ChatEventMemberJoinedByInviteLink ¶
type ChatEventMemberJoinedByInviteLink struct { // Invite link used to join the chat InviteLink *ChatInviteLink `json:"invite_link"` // True, if the user has joined the chat using an invite link for a chat folder ViaChatFolderInviteLink bool `json:"via_chat_folder_invite_link"` // contains filtered or unexported fields }
A new member joined the chat via an invite link
func UnmarshalChatEventMemberJoinedByInviteLink ¶
func UnmarshalChatEventMemberJoinedByInviteLink(data json.RawMessage) (*ChatEventMemberJoinedByInviteLink, error)
func (*ChatEventMemberJoinedByInviteLink) ChatEventActionType ¶
func (*ChatEventMemberJoinedByInviteLink) ChatEventActionType() string
func (*ChatEventMemberJoinedByInviteLink) GetClass ¶
func (*ChatEventMemberJoinedByInviteLink) GetClass() string
func (*ChatEventMemberJoinedByInviteLink) GetType ¶
func (*ChatEventMemberJoinedByInviteLink) GetType() string
func (*ChatEventMemberJoinedByInviteLink) MarshalJSON ¶
func (entity *ChatEventMemberJoinedByInviteLink) MarshalJSON() ([]byte, error)
type ChatEventMemberJoinedByRequest ¶
type ChatEventMemberJoinedByRequest struct { // User identifier of the chat administrator, approved user join request ApproverUserId int64 `json:"approver_user_id"` // Invite link used to join the chat; may be null InviteLink *ChatInviteLink `json:"invite_link"` // contains filtered or unexported fields }
A new member was accepted to the chat by an administrator
func UnmarshalChatEventMemberJoinedByRequest ¶
func UnmarshalChatEventMemberJoinedByRequest(data json.RawMessage) (*ChatEventMemberJoinedByRequest, error)
func (*ChatEventMemberJoinedByRequest) ChatEventActionType ¶
func (*ChatEventMemberJoinedByRequest) ChatEventActionType() string
func (*ChatEventMemberJoinedByRequest) GetClass ¶
func (*ChatEventMemberJoinedByRequest) GetClass() string
func (*ChatEventMemberJoinedByRequest) GetType ¶
func (*ChatEventMemberJoinedByRequest) GetType() string
func (*ChatEventMemberJoinedByRequest) MarshalJSON ¶
func (entity *ChatEventMemberJoinedByRequest) MarshalJSON() ([]byte, error)
type ChatEventMemberLeft ¶
type ChatEventMemberLeft struct {
// contains filtered or unexported fields
}
A member left the chat
func UnmarshalChatEventMemberLeft ¶
func UnmarshalChatEventMemberLeft(data json.RawMessage) (*ChatEventMemberLeft, error)
func (*ChatEventMemberLeft) ChatEventActionType ¶
func (*ChatEventMemberLeft) ChatEventActionType() string
func (*ChatEventMemberLeft) GetClass ¶
func (*ChatEventMemberLeft) GetClass() string
func (*ChatEventMemberLeft) GetType ¶
func (*ChatEventMemberLeft) GetType() string
func (*ChatEventMemberLeft) MarshalJSON ¶
func (entity *ChatEventMemberLeft) MarshalJSON() ([]byte, error)
type ChatEventMemberPromoted ¶
type ChatEventMemberPromoted struct { // Affected chat member user identifier UserId int64 `json:"user_id"` // Previous status of the chat member OldStatus ChatMemberStatus `json:"old_status"` // New status of the chat member NewStatus ChatMemberStatus `json:"new_status"` // contains filtered or unexported fields }
A chat member has gained/lost administrator status, or the list of their administrator privileges has changed
func UnmarshalChatEventMemberPromoted ¶
func UnmarshalChatEventMemberPromoted(data json.RawMessage) (*ChatEventMemberPromoted, error)
func (*ChatEventMemberPromoted) ChatEventActionType ¶
func (*ChatEventMemberPromoted) ChatEventActionType() string
func (*ChatEventMemberPromoted) GetClass ¶
func (*ChatEventMemberPromoted) GetClass() string
func (*ChatEventMemberPromoted) GetType ¶
func (*ChatEventMemberPromoted) GetType() string
func (*ChatEventMemberPromoted) MarshalJSON ¶
func (entity *ChatEventMemberPromoted) MarshalJSON() ([]byte, error)
func (*ChatEventMemberPromoted) UnmarshalJSON ¶
func (chatEventMemberPromoted *ChatEventMemberPromoted) UnmarshalJSON(data []byte) error
type ChatEventMemberRestricted ¶
type ChatEventMemberRestricted struct { // Affected chat member identifier MemberId MessageSender `json:"member_id"` // Previous status of the chat member OldStatus ChatMemberStatus `json:"old_status"` // New status of the chat member NewStatus ChatMemberStatus `json:"new_status"` // contains filtered or unexported fields }
A chat member was restricted/unrestricted or banned/unbanned, or the list of their restrictions has changed
func UnmarshalChatEventMemberRestricted ¶
func UnmarshalChatEventMemberRestricted(data json.RawMessage) (*ChatEventMemberRestricted, error)
func (*ChatEventMemberRestricted) ChatEventActionType ¶
func (*ChatEventMemberRestricted) ChatEventActionType() string
func (*ChatEventMemberRestricted) GetClass ¶
func (*ChatEventMemberRestricted) GetClass() string
func (*ChatEventMemberRestricted) GetType ¶
func (*ChatEventMemberRestricted) GetType() string
func (*ChatEventMemberRestricted) MarshalJSON ¶
func (entity *ChatEventMemberRestricted) MarshalJSON() ([]byte, error)
func (*ChatEventMemberRestricted) UnmarshalJSON ¶
func (chatEventMemberRestricted *ChatEventMemberRestricted) UnmarshalJSON(data []byte) error
type ChatEventMessageAutoDeleteTimeChanged ¶ added in v1.2.3
type ChatEventMessageAutoDeleteTimeChanged struct { // Previous value of message_auto_delete_time OldMessageAutoDeleteTime int32 `json:"old_message_auto_delete_time"` // New value of message_auto_delete_time NewMessageAutoDeleteTime int32 `json:"new_message_auto_delete_time"` // contains filtered or unexported fields }
The message auto-delete timer was changed
func UnmarshalChatEventMessageAutoDeleteTimeChanged ¶ added in v1.2.3
func UnmarshalChatEventMessageAutoDeleteTimeChanged(data json.RawMessage) (*ChatEventMessageAutoDeleteTimeChanged, error)
func (*ChatEventMessageAutoDeleteTimeChanged) ChatEventActionType ¶ added in v1.2.3
func (*ChatEventMessageAutoDeleteTimeChanged) ChatEventActionType() string
func (*ChatEventMessageAutoDeleteTimeChanged) GetClass ¶ added in v1.2.3
func (*ChatEventMessageAutoDeleteTimeChanged) GetClass() string
func (*ChatEventMessageAutoDeleteTimeChanged) GetType ¶ added in v1.2.3
func (*ChatEventMessageAutoDeleteTimeChanged) GetType() string
func (*ChatEventMessageAutoDeleteTimeChanged) MarshalJSON ¶ added in v1.2.3
func (entity *ChatEventMessageAutoDeleteTimeChanged) MarshalJSON() ([]byte, error)
type ChatEventMessageDeleted ¶
type ChatEventMessageDeleted struct { // Deleted message Message *Message `json:"message"` // True, if the message deletion can be reported via reportSupergroupAntiSpamFalsePositive CanReportAntiSpamFalsePositive bool `json:"can_report_anti_spam_false_positive"` // contains filtered or unexported fields }
A message was deleted
func UnmarshalChatEventMessageDeleted ¶
func UnmarshalChatEventMessageDeleted(data json.RawMessage) (*ChatEventMessageDeleted, error)
func (*ChatEventMessageDeleted) ChatEventActionType ¶
func (*ChatEventMessageDeleted) ChatEventActionType() string
func (*ChatEventMessageDeleted) GetClass ¶
func (*ChatEventMessageDeleted) GetClass() string
func (*ChatEventMessageDeleted) GetType ¶
func (*ChatEventMessageDeleted) GetType() string
func (*ChatEventMessageDeleted) MarshalJSON ¶
func (entity *ChatEventMessageDeleted) MarshalJSON() ([]byte, error)
type ChatEventMessageEdited ¶
type ChatEventMessageEdited struct { // The original message before the edit OldMessage *Message `json:"old_message"` // The message after it was edited NewMessage *Message `json:"new_message"` // contains filtered or unexported fields }
A message was edited
func UnmarshalChatEventMessageEdited ¶
func UnmarshalChatEventMessageEdited(data json.RawMessage) (*ChatEventMessageEdited, error)
func (*ChatEventMessageEdited) ChatEventActionType ¶
func (*ChatEventMessageEdited) ChatEventActionType() string
func (*ChatEventMessageEdited) GetClass ¶
func (*ChatEventMessageEdited) GetClass() string
func (*ChatEventMessageEdited) GetType ¶
func (*ChatEventMessageEdited) GetType() string
func (*ChatEventMessageEdited) MarshalJSON ¶
func (entity *ChatEventMessageEdited) MarshalJSON() ([]byte, error)
type ChatEventMessagePinned ¶
type ChatEventMessagePinned struct { // Pinned message Message *Message `json:"message"` // contains filtered or unexported fields }
A message was pinned
func UnmarshalChatEventMessagePinned ¶
func UnmarshalChatEventMessagePinned(data json.RawMessage) (*ChatEventMessagePinned, error)
func (*ChatEventMessagePinned) ChatEventActionType ¶
func (*ChatEventMessagePinned) ChatEventActionType() string
func (*ChatEventMessagePinned) GetClass ¶
func (*ChatEventMessagePinned) GetClass() string
func (*ChatEventMessagePinned) GetType ¶
func (*ChatEventMessagePinned) GetType() string
func (*ChatEventMessagePinned) MarshalJSON ¶
func (entity *ChatEventMessagePinned) MarshalJSON() ([]byte, error)
type ChatEventMessageUnpinned ¶
type ChatEventMessageUnpinned struct { // Unpinned message Message *Message `json:"message"` // contains filtered or unexported fields }
A message was unpinned
func UnmarshalChatEventMessageUnpinned ¶
func UnmarshalChatEventMessageUnpinned(data json.RawMessage) (*ChatEventMessageUnpinned, error)
func (*ChatEventMessageUnpinned) ChatEventActionType ¶
func (*ChatEventMessageUnpinned) ChatEventActionType() string
func (*ChatEventMessageUnpinned) GetClass ¶
func (*ChatEventMessageUnpinned) GetClass() string
func (*ChatEventMessageUnpinned) GetType ¶
func (*ChatEventMessageUnpinned) GetType() string
func (*ChatEventMessageUnpinned) MarshalJSON ¶
func (entity *ChatEventMessageUnpinned) MarshalJSON() ([]byte, error)
type ChatEventPermissionsChanged ¶
type ChatEventPermissionsChanged struct { // Previous chat permissions OldPermissions *ChatPermissions `json:"old_permissions"` // New chat permissions NewPermissions *ChatPermissions `json:"new_permissions"` // contains filtered or unexported fields }
The chat permissions was changed
func UnmarshalChatEventPermissionsChanged ¶
func UnmarshalChatEventPermissionsChanged(data json.RawMessage) (*ChatEventPermissionsChanged, error)
func (*ChatEventPermissionsChanged) ChatEventActionType ¶
func (*ChatEventPermissionsChanged) ChatEventActionType() string
func (*ChatEventPermissionsChanged) GetClass ¶
func (*ChatEventPermissionsChanged) GetClass() string
func (*ChatEventPermissionsChanged) GetType ¶
func (*ChatEventPermissionsChanged) GetType() string
func (*ChatEventPermissionsChanged) MarshalJSON ¶
func (entity *ChatEventPermissionsChanged) MarshalJSON() ([]byte, error)
type ChatEventPhotoChanged ¶
type ChatEventPhotoChanged struct { // Previous chat photo value; may be null OldPhoto *ChatPhoto `json:"old_photo"` // New chat photo value; may be null NewPhoto *ChatPhoto `json:"new_photo"` // contains filtered or unexported fields }
The chat photo was changed
func UnmarshalChatEventPhotoChanged ¶
func UnmarshalChatEventPhotoChanged(data json.RawMessage) (*ChatEventPhotoChanged, error)
func (*ChatEventPhotoChanged) ChatEventActionType ¶
func (*ChatEventPhotoChanged) ChatEventActionType() string
func (*ChatEventPhotoChanged) GetClass ¶
func (*ChatEventPhotoChanged) GetClass() string
func (*ChatEventPhotoChanged) GetType ¶
func (*ChatEventPhotoChanged) GetType() string
func (*ChatEventPhotoChanged) MarshalJSON ¶
func (entity *ChatEventPhotoChanged) MarshalJSON() ([]byte, error)
type ChatEventPollStopped ¶
type ChatEventPollStopped struct { // The message with the poll Message *Message `json:"message"` // contains filtered or unexported fields }
A poll in a message was stopped
func UnmarshalChatEventPollStopped ¶
func UnmarshalChatEventPollStopped(data json.RawMessage) (*ChatEventPollStopped, error)
func (*ChatEventPollStopped) ChatEventActionType ¶
func (*ChatEventPollStopped) ChatEventActionType() string
func (*ChatEventPollStopped) GetClass ¶
func (*ChatEventPollStopped) GetClass() string
func (*ChatEventPollStopped) GetType ¶
func (*ChatEventPollStopped) GetType() string
func (*ChatEventPollStopped) MarshalJSON ¶
func (entity *ChatEventPollStopped) MarshalJSON() ([]byte, error)
type ChatEventSignMessagesToggled ¶
type ChatEventSignMessagesToggled struct { // New value of sign_messages SignMessages bool `json:"sign_messages"` // contains filtered or unexported fields }
The sign_messages setting of a channel was toggled
func UnmarshalChatEventSignMessagesToggled ¶
func UnmarshalChatEventSignMessagesToggled(data json.RawMessage) (*ChatEventSignMessagesToggled, error)
func (*ChatEventSignMessagesToggled) ChatEventActionType ¶
func (*ChatEventSignMessagesToggled) ChatEventActionType() string
func (*ChatEventSignMessagesToggled) GetClass ¶
func (*ChatEventSignMessagesToggled) GetClass() string
func (*ChatEventSignMessagesToggled) GetType ¶
func (*ChatEventSignMessagesToggled) GetType() string
func (*ChatEventSignMessagesToggled) MarshalJSON ¶
func (entity *ChatEventSignMessagesToggled) MarshalJSON() ([]byte, error)
type ChatEventSlowModeDelayChanged ¶
type ChatEventSlowModeDelayChanged struct { // Previous value of slow_mode_delay, in seconds OldSlowModeDelay int32 `json:"old_slow_mode_delay"` // New value of slow_mode_delay, in seconds NewSlowModeDelay int32 `json:"new_slow_mode_delay"` // contains filtered or unexported fields }
The slow_mode_delay setting of a supergroup was changed
func UnmarshalChatEventSlowModeDelayChanged ¶
func UnmarshalChatEventSlowModeDelayChanged(data json.RawMessage) (*ChatEventSlowModeDelayChanged, error)
func (*ChatEventSlowModeDelayChanged) ChatEventActionType ¶
func (*ChatEventSlowModeDelayChanged) ChatEventActionType() string
func (*ChatEventSlowModeDelayChanged) GetClass ¶
func (*ChatEventSlowModeDelayChanged) GetClass() string
func (*ChatEventSlowModeDelayChanged) GetType ¶
func (*ChatEventSlowModeDelayChanged) GetType() string
func (*ChatEventSlowModeDelayChanged) MarshalJSON ¶
func (entity *ChatEventSlowModeDelayChanged) MarshalJSON() ([]byte, error)
type ChatEventStickerSetChanged ¶
type ChatEventStickerSetChanged struct { // Previous identifier of the chat sticker set; 0 if none OldStickerSetId JsonInt64 `json:"old_sticker_set_id"` // New identifier of the chat sticker set; 0 if none NewStickerSetId JsonInt64 `json:"new_sticker_set_id"` // contains filtered or unexported fields }
The supergroup sticker set was changed
func UnmarshalChatEventStickerSetChanged ¶
func UnmarshalChatEventStickerSetChanged(data json.RawMessage) (*ChatEventStickerSetChanged, error)
func (*ChatEventStickerSetChanged) ChatEventActionType ¶
func (*ChatEventStickerSetChanged) ChatEventActionType() string
func (*ChatEventStickerSetChanged) GetClass ¶
func (*ChatEventStickerSetChanged) GetClass() string
func (*ChatEventStickerSetChanged) GetType ¶
func (*ChatEventStickerSetChanged) GetType() string
func (*ChatEventStickerSetChanged) MarshalJSON ¶
func (entity *ChatEventStickerSetChanged) MarshalJSON() ([]byte, error)
type ChatEventTitleChanged ¶
type ChatEventTitleChanged struct { // Previous chat title OldTitle string `json:"old_title"` // New chat title NewTitle string `json:"new_title"` // contains filtered or unexported fields }
The chat title was changed
func UnmarshalChatEventTitleChanged ¶
func UnmarshalChatEventTitleChanged(data json.RawMessage) (*ChatEventTitleChanged, error)
func (*ChatEventTitleChanged) ChatEventActionType ¶
func (*ChatEventTitleChanged) ChatEventActionType() string
func (*ChatEventTitleChanged) GetClass ¶
func (*ChatEventTitleChanged) GetClass() string
func (*ChatEventTitleChanged) GetType ¶
func (*ChatEventTitleChanged) GetType() string
func (*ChatEventTitleChanged) MarshalJSON ¶
func (entity *ChatEventTitleChanged) MarshalJSON() ([]byte, error)
type ChatEventUsernameChanged ¶
type ChatEventUsernameChanged struct { // Previous chat username OldUsername string `json:"old_username"` // New chat username NewUsername string `json:"new_username"` // contains filtered or unexported fields }
The chat editable username was changed
func UnmarshalChatEventUsernameChanged ¶
func UnmarshalChatEventUsernameChanged(data json.RawMessage) (*ChatEventUsernameChanged, error)
func (*ChatEventUsernameChanged) ChatEventActionType ¶
func (*ChatEventUsernameChanged) ChatEventActionType() string
func (*ChatEventUsernameChanged) GetClass ¶
func (*ChatEventUsernameChanged) GetClass() string
func (*ChatEventUsernameChanged) GetType ¶
func (*ChatEventUsernameChanged) GetType() string
func (*ChatEventUsernameChanged) MarshalJSON ¶
func (entity *ChatEventUsernameChanged) MarshalJSON() ([]byte, error)
type ChatEventVideoChatCreated ¶
type ChatEventVideoChatCreated struct { // Identifier of the video chat. The video chat can be received through the method getGroupCall GroupCallId int32 `json:"group_call_id"` // contains filtered or unexported fields }
A video chat was created
func UnmarshalChatEventVideoChatCreated ¶
func UnmarshalChatEventVideoChatCreated(data json.RawMessage) (*ChatEventVideoChatCreated, error)
func (*ChatEventVideoChatCreated) ChatEventActionType ¶
func (*ChatEventVideoChatCreated) ChatEventActionType() string
func (*ChatEventVideoChatCreated) GetClass ¶
func (*ChatEventVideoChatCreated) GetClass() string
func (*ChatEventVideoChatCreated) GetType ¶
func (*ChatEventVideoChatCreated) GetType() string
func (*ChatEventVideoChatCreated) MarshalJSON ¶
func (entity *ChatEventVideoChatCreated) MarshalJSON() ([]byte, error)
type ChatEventVideoChatEnded ¶
type ChatEventVideoChatEnded struct { // Identifier of the video chat. The video chat can be received through the method getGroupCall GroupCallId int32 `json:"group_call_id"` // contains filtered or unexported fields }
A video chat was ended
func UnmarshalChatEventVideoChatEnded ¶
func UnmarshalChatEventVideoChatEnded(data json.RawMessage) (*ChatEventVideoChatEnded, error)
func (*ChatEventVideoChatEnded) ChatEventActionType ¶
func (*ChatEventVideoChatEnded) ChatEventActionType() string
func (*ChatEventVideoChatEnded) GetClass ¶
func (*ChatEventVideoChatEnded) GetClass() string
func (*ChatEventVideoChatEnded) GetType ¶
func (*ChatEventVideoChatEnded) GetType() string
func (*ChatEventVideoChatEnded) MarshalJSON ¶
func (entity *ChatEventVideoChatEnded) MarshalJSON() ([]byte, error)
type ChatEventVideoChatMuteNewParticipantsToggled ¶
type ChatEventVideoChatMuteNewParticipantsToggled struct { // New value of the mute_new_participants setting MuteNewParticipants bool `json:"mute_new_participants"` // contains filtered or unexported fields }
The mute_new_participants setting of a video chat was toggled
func UnmarshalChatEventVideoChatMuteNewParticipantsToggled ¶
func UnmarshalChatEventVideoChatMuteNewParticipantsToggled(data json.RawMessage) (*ChatEventVideoChatMuteNewParticipantsToggled, error)
func (*ChatEventVideoChatMuteNewParticipantsToggled) ChatEventActionType ¶
func (*ChatEventVideoChatMuteNewParticipantsToggled) ChatEventActionType() string
func (*ChatEventVideoChatMuteNewParticipantsToggled) GetClass ¶
func (*ChatEventVideoChatMuteNewParticipantsToggled) GetClass() string
func (*ChatEventVideoChatMuteNewParticipantsToggled) GetType ¶
func (*ChatEventVideoChatMuteNewParticipantsToggled) GetType() string
func (*ChatEventVideoChatMuteNewParticipantsToggled) MarshalJSON ¶
func (entity *ChatEventVideoChatMuteNewParticipantsToggled) MarshalJSON() ([]byte, error)
type ChatEventVideoChatParticipantIsMutedToggled ¶
type ChatEventVideoChatParticipantIsMutedToggled struct { // Identifier of the affected group call participant ParticipantId MessageSender `json:"participant_id"` // New value of is_muted IsMuted bool `json:"is_muted"` // contains filtered or unexported fields }
A video chat participant was muted or unmuted
func UnmarshalChatEventVideoChatParticipantIsMutedToggled ¶
func UnmarshalChatEventVideoChatParticipantIsMutedToggled(data json.RawMessage) (*ChatEventVideoChatParticipantIsMutedToggled, error)
func (*ChatEventVideoChatParticipantIsMutedToggled) ChatEventActionType ¶
func (*ChatEventVideoChatParticipantIsMutedToggled) ChatEventActionType() string
func (*ChatEventVideoChatParticipantIsMutedToggled) GetClass ¶
func (*ChatEventVideoChatParticipantIsMutedToggled) GetClass() string
func (*ChatEventVideoChatParticipantIsMutedToggled) GetType ¶
func (*ChatEventVideoChatParticipantIsMutedToggled) GetType() string
func (*ChatEventVideoChatParticipantIsMutedToggled) MarshalJSON ¶
func (entity *ChatEventVideoChatParticipantIsMutedToggled) MarshalJSON() ([]byte, error)
func (*ChatEventVideoChatParticipantIsMutedToggled) UnmarshalJSON ¶
func (chatEventVideoChatParticipantIsMutedToggled *ChatEventVideoChatParticipantIsMutedToggled) UnmarshalJSON(data []byte) error
type ChatEventVideoChatParticipantVolumeLevelChanged ¶
type ChatEventVideoChatParticipantVolumeLevelChanged struct { // Identifier of the affected group call participant ParticipantId MessageSender `json:"participant_id"` // New value of volume_level; 1-20000 in hundreds of percents VolumeLevel int32 `json:"volume_level"` // contains filtered or unexported fields }
A video chat participant volume level was changed
func UnmarshalChatEventVideoChatParticipantVolumeLevelChanged ¶
func UnmarshalChatEventVideoChatParticipantVolumeLevelChanged(data json.RawMessage) (*ChatEventVideoChatParticipantVolumeLevelChanged, error)
func (*ChatEventVideoChatParticipantVolumeLevelChanged) ChatEventActionType ¶
func (*ChatEventVideoChatParticipantVolumeLevelChanged) ChatEventActionType() string
func (*ChatEventVideoChatParticipantVolumeLevelChanged) GetClass ¶
func (*ChatEventVideoChatParticipantVolumeLevelChanged) GetClass() string
func (*ChatEventVideoChatParticipantVolumeLevelChanged) GetType ¶
func (*ChatEventVideoChatParticipantVolumeLevelChanged) GetType() string
func (*ChatEventVideoChatParticipantVolumeLevelChanged) MarshalJSON ¶
func (entity *ChatEventVideoChatParticipantVolumeLevelChanged) MarshalJSON() ([]byte, error)
func (*ChatEventVideoChatParticipantVolumeLevelChanged) UnmarshalJSON ¶
func (chatEventVideoChatParticipantVolumeLevelChanged *ChatEventVideoChatParticipantVolumeLevelChanged) UnmarshalJSON(data []byte) error
type ChatEvents ¶
type ChatEvents struct { // List of events Events []*ChatEvent `json:"events"` // contains filtered or unexported fields }
Contains a list of chat events
func UnmarshalChatEvents ¶
func UnmarshalChatEvents(data json.RawMessage) (*ChatEvents, error)
func (*ChatEvents) GetClass ¶
func (*ChatEvents) GetClass() string
func (*ChatEvents) GetType ¶
func (*ChatEvents) GetType() string
func (*ChatEvents) MarshalJSON ¶
func (entity *ChatEvents) MarshalJSON() ([]byte, error)
type ChatFolder ¶ added in v1.2.3
type ChatFolder struct { // The title of the folder; 1-12 characters without line feeds Title string `json:"title"` // The chosen icon for the chat folder; may be null. If null, use getChatFolderDefaultIconName to get default icon name for the folder Icon *ChatFolderIcon `json:"icon"` IsShareable bool `json:"is_shareable"` // The chat identifiers of pinned chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium PinnedChatIds []int64 `json:"pinned_chat_ids"` // The chat identifiers of always included chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium IncludedChatIds []int64 `json:"included_chat_ids"` // The chat identifiers of always excluded chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") always excluded non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium ExcludedChatIds []int64 `json:"excluded_chat_ids"` // True, if muted chats need to be excluded ExcludeMuted bool `json:"exclude_muted"` // True, if read chats need to be excluded ExcludeRead bool `json:"exclude_read"` // True, if archived chats need to be excluded ExcludeArchived bool `json:"exclude_archived"` // True, if contacts need to be included IncludeContacts bool `json:"include_contacts"` // True, if non-contact users need to be included IncludeNonContacts bool `json:"include_non_contacts"` // True, if bots need to be included IncludeBots bool `json:"include_bots"` // True, if basic groups and supergroups need to be included IncludeGroups bool `json:"include_groups"` // True, if channels need to be included IncludeChannels bool `json:"include_channels"` // contains filtered or unexported fields }
Represents a folder for user chats
func UnmarshalChatFolder ¶ added in v1.2.3
func UnmarshalChatFolder(data json.RawMessage) (*ChatFolder, error)
func (*ChatFolder) GetClass ¶ added in v1.2.3
func (*ChatFolder) GetClass() string
func (*ChatFolder) GetType ¶ added in v1.2.3
func (*ChatFolder) GetType() string
func (*ChatFolder) MarshalJSON ¶ added in v1.2.3
func (entity *ChatFolder) MarshalJSON() ([]byte, error)
type ChatFolderIcon ¶ added in v1.2.3
type ChatFolderIcon struct { // The chosen icon name for short folder representation; one of "All", "Unread", "Unmuted", "Bots", "Channels", "Groups", "Private", "Custom", "Setup", "Cat", "Crown", "Favorite", "Flower", "Game", "Home", "Love", "Mask", "Party", "Sport", "Study", "Trade", "Travel", "Work", "Airplane", "Book", "Light", "Like", "Money", "Note", "Palette" Name string `json:"name"` // contains filtered or unexported fields }
Represents an icon for a chat folder
func GetChatFolderDefaultIconName ¶ added in v1.2.3
func GetChatFolderDefaultIconName(req *GetChatFolderDefaultIconNameRequest) (*ChatFolderIcon, error)
Returns default icon name for a folder. Can be called synchronously
func UnmarshalChatFolderIcon ¶ added in v1.2.3
func UnmarshalChatFolderIcon(data json.RawMessage) (*ChatFolderIcon, error)
func (*ChatFolderIcon) GetClass ¶ added in v1.2.3
func (*ChatFolderIcon) GetClass() string
func (*ChatFolderIcon) GetType ¶ added in v1.2.3
func (*ChatFolderIcon) GetType() string
func (*ChatFolderIcon) MarshalJSON ¶ added in v1.2.3
func (entity *ChatFolderIcon) MarshalJSON() ([]byte, error)
type ChatFolderInfo ¶ added in v1.2.3
type ChatFolderInfo struct { // Unique chat folder identifier Id int32 `json:"id"` // The title of the folder; 1-12 characters without line feeds Title string `json:"title"` // The chosen or default icon for the chat folder Icon *ChatFolderIcon `json:"icon"` IsShareable bool `json:"is_shareable"` // True, if the chat folder has invite links created by the current user HasMyInviteLinks bool `json:"has_my_invite_links"` // contains filtered or unexported fields }
Contains basic information about a chat folder
func UnmarshalChatFolderInfo ¶ added in v1.2.3
func UnmarshalChatFolderInfo(data json.RawMessage) (*ChatFolderInfo, error)
func (*ChatFolderInfo) GetClass ¶ added in v1.2.3
func (*ChatFolderInfo) GetClass() string
func (*ChatFolderInfo) GetType ¶ added in v1.2.3
func (*ChatFolderInfo) GetType() string
func (*ChatFolderInfo) MarshalJSON ¶ added in v1.2.3
func (entity *ChatFolderInfo) MarshalJSON() ([]byte, error)
type ChatFolderInviteLink ¶ added in v1.2.3
type ChatFolderInviteLink struct { // The chat folder invite link InviteLink string `json:"invite_link"` // Name of the link Name string `json:"name"` // Identifiers of chats, included in the link ChatIds []int64 `json:"chat_ids"` // contains filtered or unexported fields }
Contains a chat folder invite link
func UnmarshalChatFolderInviteLink ¶ added in v1.2.3
func UnmarshalChatFolderInviteLink(data json.RawMessage) (*ChatFolderInviteLink, error)
func (*ChatFolderInviteLink) GetClass ¶ added in v1.2.3
func (*ChatFolderInviteLink) GetClass() string
func (*ChatFolderInviteLink) GetType ¶ added in v1.2.3
func (*ChatFolderInviteLink) GetType() string
func (*ChatFolderInviteLink) MarshalJSON ¶ added in v1.2.3
func (entity *ChatFolderInviteLink) MarshalJSON() ([]byte, error)
type ChatFolderInviteLinkInfo ¶ added in v1.2.3
type ChatFolderInviteLinkInfo struct { // Basic information about the chat folder; chat folder identifier will be 0 if the user didn't have the chat folder yet ChatFolderInfo *ChatFolderInfo `json:"chat_folder_info"` // Identifiers of the chats from the link, which aren't added to the folder yet MissingChatIds []int64 `json:"missing_chat_ids"` // Identifiers of the chats from the link, which are added to the folder already AddedChatIds []int64 `json:"added_chat_ids"` // contains filtered or unexported fields }
Contains information about an invite link to a chat folder
func UnmarshalChatFolderInviteLinkInfo ¶ added in v1.2.3
func UnmarshalChatFolderInviteLinkInfo(data json.RawMessage) (*ChatFolderInviteLinkInfo, error)
func (*ChatFolderInviteLinkInfo) GetClass ¶ added in v1.2.3
func (*ChatFolderInviteLinkInfo) GetClass() string
func (*ChatFolderInviteLinkInfo) GetType ¶ added in v1.2.3
func (*ChatFolderInviteLinkInfo) GetType() string
func (*ChatFolderInviteLinkInfo) MarshalJSON ¶ added in v1.2.3
func (entity *ChatFolderInviteLinkInfo) MarshalJSON() ([]byte, error)
type ChatFolderInviteLinks ¶ added in v1.2.3
type ChatFolderInviteLinks struct { // List of the invite links InviteLinks []*ChatFolderInviteLink `json:"invite_links"` // contains filtered or unexported fields }
Represents a list of chat folder invite links
func UnmarshalChatFolderInviteLinks ¶ added in v1.2.3
func UnmarshalChatFolderInviteLinks(data json.RawMessage) (*ChatFolderInviteLinks, error)
func (*ChatFolderInviteLinks) GetClass ¶ added in v1.2.3
func (*ChatFolderInviteLinks) GetClass() string
func (*ChatFolderInviteLinks) GetType ¶ added in v1.2.3
func (*ChatFolderInviteLinks) GetType() string
func (*ChatFolderInviteLinks) MarshalJSON ¶ added in v1.2.3
func (entity *ChatFolderInviteLinks) MarshalJSON() ([]byte, error)
type ChatInviteLink ¶
type ChatInviteLink struct { // Chat invite link InviteLink string `json:"invite_link"` // Name of the link Name string `json:"name"` // User identifier of an administrator created the link CreatorUserId int64 `json:"creator_user_id"` // Point in time (Unix timestamp) when the link was created Date int32 `json:"date"` // Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown EditDate int32 `json:"edit_date"` // Point in time (Unix timestamp) when the link will expire; 0 if never ExpirationDate int32 `json:"expiration_date"` // The maximum number of members, which can join the chat using the link simultaneously; 0 if not limited. Always 0 if the link requires approval MemberLimit int32 `json:"member_limit"` // Number of chat members, which joined the chat using the link MemberCount int32 `json:"member_count"` // Number of pending join requests created using this link PendingJoinRequestCount int32 `json:"pending_join_request_count"` // True, if the link only creates join request. If true, total number of joining members will be unlimited CreatesJoinRequest bool `json:"creates_join_request"` // True, if the link is primary. Primary invite link can't have name, expiration date, or usage limit. There is exactly one primary invite link for each administrator with can_invite_users right at a given time IsPrimary bool `json:"is_primary"` // True, if the link was revoked IsRevoked bool `json:"is_revoked"` // contains filtered or unexported fields }
Contains a chat invite link
func UnmarshalChatInviteLink ¶
func UnmarshalChatInviteLink(data json.RawMessage) (*ChatInviteLink, error)
func (*ChatInviteLink) GetClass ¶
func (*ChatInviteLink) GetClass() string
func (*ChatInviteLink) GetType ¶
func (*ChatInviteLink) GetType() string
func (*ChatInviteLink) MarshalJSON ¶
func (entity *ChatInviteLink) MarshalJSON() ([]byte, error)
type ChatInviteLinkCount ¶
type ChatInviteLinkCount struct { // Administrator's user identifier UserId int64 `json:"user_id"` // Number of active invite links InviteLinkCount int32 `json:"invite_link_count"` // Number of revoked invite links RevokedInviteLinkCount int32 `json:"revoked_invite_link_count"` // contains filtered or unexported fields }
Describes a chat administrator with a number of active and revoked chat invite links
func UnmarshalChatInviteLinkCount ¶
func UnmarshalChatInviteLinkCount(data json.RawMessage) (*ChatInviteLinkCount, error)
func (*ChatInviteLinkCount) GetClass ¶
func (*ChatInviteLinkCount) GetClass() string
func (*ChatInviteLinkCount) GetType ¶
func (*ChatInviteLinkCount) GetType() string
func (*ChatInviteLinkCount) MarshalJSON ¶
func (entity *ChatInviteLinkCount) MarshalJSON() ([]byte, error)
type ChatInviteLinkCounts ¶
type ChatInviteLinkCounts struct { // List of invite link counts InviteLinkCounts []*ChatInviteLinkCount `json:"invite_link_counts"` // contains filtered or unexported fields }
Contains a list of chat invite link counts
func UnmarshalChatInviteLinkCounts ¶
func UnmarshalChatInviteLinkCounts(data json.RawMessage) (*ChatInviteLinkCounts, error)
func (*ChatInviteLinkCounts) GetClass ¶
func (*ChatInviteLinkCounts) GetClass() string
func (*ChatInviteLinkCounts) GetType ¶
func (*ChatInviteLinkCounts) GetType() string
func (*ChatInviteLinkCounts) MarshalJSON ¶
func (entity *ChatInviteLinkCounts) MarshalJSON() ([]byte, error)
type ChatInviteLinkInfo ¶
type ChatInviteLinkInfo struct { // Chat identifier of the invite link; 0 if the user has no access to the chat before joining ChatId int64 `json:"chat_id"` // If non-zero, the amount of time for which read access to the chat will remain available, in seconds AccessibleFor int32 `json:"accessible_for"` // Type of the chat Type InviteLinkChatType `json:"type"` // Title of the chat Title string `json:"title"` // Chat photo; may be null Photo *ChatPhotoInfo `json:"photo"` // Chat description Description string `json:"description"` // Number of members in the chat MemberCount int32 `json:"member_count"` // User identifiers of some chat members that may be known to the current user MemberUserIds []int64 `json:"member_user_ids"` // True, if the link only creates join request CreatesJoinRequest bool `json:"creates_join_request"` // True, if the chat is a public supergroup or channel, i.e. it has a username or it is a location-based supergroup IsPublic bool `json:"is_public"` // True, if the chat is verified IsVerified bool `json:"is_verified"` // True, if many users reported this chat as a scam IsScam bool `json:"is_scam"` // True, if many users reported this chat as a fake account IsFake bool `json:"is_fake"` // contains filtered or unexported fields }
Contains information about a chat invite link
func UnmarshalChatInviteLinkInfo ¶
func UnmarshalChatInviteLinkInfo(data json.RawMessage) (*ChatInviteLinkInfo, error)
func (*ChatInviteLinkInfo) GetClass ¶
func (*ChatInviteLinkInfo) GetClass() string
func (*ChatInviteLinkInfo) GetType ¶
func (*ChatInviteLinkInfo) GetType() string
func (*ChatInviteLinkInfo) MarshalJSON ¶
func (entity *ChatInviteLinkInfo) MarshalJSON() ([]byte, error)
func (*ChatInviteLinkInfo) UnmarshalJSON ¶
func (chatInviteLinkInfo *ChatInviteLinkInfo) UnmarshalJSON(data []byte) error
type ChatInviteLinkMember ¶
type ChatInviteLinkMember struct { // User identifier UserId int64 `json:"user_id"` // Point in time (Unix timestamp) when the user joined the chat JoinedChatDate int32 `json:"joined_chat_date"` // True, if the user has joined the chat using an invite link for a chat folder ViaChatFolderInviteLink bool `json:"via_chat_folder_invite_link"` // User identifier of the chat administrator, approved user join request ApproverUserId int64 `json:"approver_user_id"` // contains filtered or unexported fields }
Describes a chat member joined a chat via an invite link
func UnmarshalChatInviteLinkMember ¶
func UnmarshalChatInviteLinkMember(data json.RawMessage) (*ChatInviteLinkMember, error)
func (*ChatInviteLinkMember) GetClass ¶
func (*ChatInviteLinkMember) GetClass() string
func (*ChatInviteLinkMember) GetType ¶
func (*ChatInviteLinkMember) GetType() string
func (*ChatInviteLinkMember) MarshalJSON ¶
func (entity *ChatInviteLinkMember) MarshalJSON() ([]byte, error)
type ChatInviteLinkMembers ¶
type ChatInviteLinkMembers struct { // Approximate total number of chat members found TotalCount int32 `json:"total_count"` // List of chat members, joined a chat via an invite link Members []*ChatInviteLinkMember `json:"members"` // contains filtered or unexported fields }
Contains a list of chat members joined a chat via an invite link
func UnmarshalChatInviteLinkMembers ¶
func UnmarshalChatInviteLinkMembers(data json.RawMessage) (*ChatInviteLinkMembers, error)
func (*ChatInviteLinkMembers) GetClass ¶
func (*ChatInviteLinkMembers) GetClass() string
func (*ChatInviteLinkMembers) GetType ¶
func (*ChatInviteLinkMembers) GetType() string
func (*ChatInviteLinkMembers) MarshalJSON ¶
func (entity *ChatInviteLinkMembers) MarshalJSON() ([]byte, error)
type ChatInviteLinks ¶
type ChatInviteLinks struct { // Approximate total number of chat invite links found TotalCount int32 `json:"total_count"` // List of invite links InviteLinks []*ChatInviteLink `json:"invite_links"` // contains filtered or unexported fields }
Contains a list of chat invite links
func UnmarshalChatInviteLinks ¶
func UnmarshalChatInviteLinks(data json.RawMessage) (*ChatInviteLinks, error)
func (*ChatInviteLinks) GetClass ¶
func (*ChatInviteLinks) GetClass() string
func (*ChatInviteLinks) GetType ¶
func (*ChatInviteLinks) GetType() string
func (*ChatInviteLinks) MarshalJSON ¶
func (entity *ChatInviteLinks) MarshalJSON() ([]byte, error)
type ChatJoinRequest ¶
type ChatJoinRequest struct { // User identifier UserId int64 `json:"user_id"` // Point in time (Unix timestamp) when the user sent the join request Date int32 `json:"date"` // A short bio of the user Bio string `json:"bio"` // contains filtered or unexported fields }
Describes a user that sent a join request and waits for administrator approval
func UnmarshalChatJoinRequest ¶
func UnmarshalChatJoinRequest(data json.RawMessage) (*ChatJoinRequest, error)
func (*ChatJoinRequest) GetClass ¶
func (*ChatJoinRequest) GetClass() string
func (*ChatJoinRequest) GetType ¶
func (*ChatJoinRequest) GetType() string
func (*ChatJoinRequest) MarshalJSON ¶
func (entity *ChatJoinRequest) MarshalJSON() ([]byte, error)
type ChatJoinRequests ¶
type ChatJoinRequests struct { // Approximate total number of requests found TotalCount int32 `json:"total_count"` // List of the requests Requests []*ChatJoinRequest `json:"requests"` // contains filtered or unexported fields }
Contains a list of requests to join a chat
func UnmarshalChatJoinRequests ¶
func UnmarshalChatJoinRequests(data json.RawMessage) (*ChatJoinRequests, error)
func (*ChatJoinRequests) GetClass ¶
func (*ChatJoinRequests) GetClass() string
func (*ChatJoinRequests) GetType ¶
func (*ChatJoinRequests) GetType() string
func (*ChatJoinRequests) MarshalJSON ¶
func (entity *ChatJoinRequests) MarshalJSON() ([]byte, error)
type ChatJoinRequestsInfo ¶
type ChatJoinRequestsInfo struct { // Total number of pending join requests TotalCount int32 `json:"total_count"` // Identifiers of at most 3 users sent the newest pending join requests UserIds []int64 `json:"user_ids"` // contains filtered or unexported fields }
Contains information about pending join requests for a chat
func UnmarshalChatJoinRequestsInfo ¶
func UnmarshalChatJoinRequestsInfo(data json.RawMessage) (*ChatJoinRequestsInfo, error)
func (*ChatJoinRequestsInfo) GetClass ¶
func (*ChatJoinRequestsInfo) GetClass() string
func (*ChatJoinRequestsInfo) GetType ¶
func (*ChatJoinRequestsInfo) GetType() string
func (*ChatJoinRequestsInfo) MarshalJSON ¶
func (entity *ChatJoinRequestsInfo) MarshalJSON() ([]byte, error)
type ChatList ¶
type ChatList interface {
ChatListType() string
}
Describes a list of chats
func UnmarshalChatList ¶
func UnmarshalChatList(data json.RawMessage) (ChatList, error)
func UnmarshalListOfChatList ¶
func UnmarshalListOfChatList(dataList []json.RawMessage) ([]ChatList, error)
type ChatListArchive ¶
type ChatListArchive struct {
// contains filtered or unexported fields
}
A list of chats usually located at the top of the main chat list. Unmuted chats are automatically moved from the Archive to the Main chat list when a new message arrives
func UnmarshalChatListArchive ¶
func UnmarshalChatListArchive(data json.RawMessage) (*ChatListArchive, error)
func (*ChatListArchive) ChatListType ¶
func (*ChatListArchive) ChatListType() string
func (*ChatListArchive) GetClass ¶
func (*ChatListArchive) GetClass() string
func (*ChatListArchive) GetType ¶
func (*ChatListArchive) GetType() string
func (*ChatListArchive) MarshalJSON ¶
func (entity *ChatListArchive) MarshalJSON() ([]byte, error)
type ChatListFolder ¶ added in v1.2.3
type ChatListFolder struct { // Chat folder identifier ChatFolderId int32 `json:"chat_folder_id"` // contains filtered or unexported fields }
A list of chats added to a chat folder
func UnmarshalChatListFolder ¶ added in v1.2.3
func UnmarshalChatListFolder(data json.RawMessage) (*ChatListFolder, error)
func (*ChatListFolder) ChatListType ¶ added in v1.2.3
func (*ChatListFolder) ChatListType() string
func (*ChatListFolder) GetClass ¶ added in v1.2.3
func (*ChatListFolder) GetClass() string
func (*ChatListFolder) GetType ¶ added in v1.2.3
func (*ChatListFolder) GetType() string
func (*ChatListFolder) MarshalJSON ¶ added in v1.2.3
func (entity *ChatListFolder) MarshalJSON() ([]byte, error)
type ChatListMain ¶
type ChatListMain struct {
// contains filtered or unexported fields
}
A main list of chats
func UnmarshalChatListMain ¶
func UnmarshalChatListMain(data json.RawMessage) (*ChatListMain, error)
func (*ChatListMain) ChatListType ¶
func (*ChatListMain) ChatListType() string
func (*ChatListMain) GetClass ¶
func (*ChatListMain) GetClass() string
func (*ChatListMain) GetType ¶
func (*ChatListMain) GetType() string
func (*ChatListMain) MarshalJSON ¶
func (entity *ChatListMain) MarshalJSON() ([]byte, error)
type ChatLists ¶
type ChatLists struct { // List of chat lists ChatLists []ChatList `json:"chat_lists"` // contains filtered or unexported fields }
Contains a list of chat lists
func UnmarshalChatLists ¶
func UnmarshalChatLists(data json.RawMessage) (*ChatLists, error)
func (*ChatLists) MarshalJSON ¶
func (*ChatLists) UnmarshalJSON ¶
type ChatLocation ¶
type ChatLocation struct { // The location Location *Location `json:"location"` // Location address; 1-64 characters, as defined by the chat owner Address string `json:"address"` // contains filtered or unexported fields }
Represents a location to which a chat is connected
func UnmarshalChatLocation ¶
func UnmarshalChatLocation(data json.RawMessage) (*ChatLocation, error)
func (*ChatLocation) GetClass ¶
func (*ChatLocation) GetClass() string
func (*ChatLocation) GetType ¶
func (*ChatLocation) GetType() string
func (*ChatLocation) MarshalJSON ¶
func (entity *ChatLocation) MarshalJSON() ([]byte, error)
type ChatMember ¶
type ChatMember struct { // Identifier of the chat member. Currently, other chats can be only Left or Banned. Only supergroups and channels can have other chats as Left or Banned members and these chats must be supergroups or channels MemberId MessageSender `json:"member_id"` // Identifier of a user that invited/promoted/banned this member in the chat; 0 if unknown InviterUserId int64 `json:"inviter_user_id"` // Point in time (Unix timestamp) when the user joined/was promoted/was banned in the chat JoinedChatDate int32 `json:"joined_chat_date"` // Status of the member in the chat Status ChatMemberStatus `json:"status"` // contains filtered or unexported fields }
Describes a user or a chat as a member of another chat
func UnmarshalChatMember ¶
func UnmarshalChatMember(data json.RawMessage) (*ChatMember, error)
func (*ChatMember) GetClass ¶
func (*ChatMember) GetClass() string
func (*ChatMember) GetType ¶
func (*ChatMember) GetType() string
func (*ChatMember) MarshalJSON ¶
func (entity *ChatMember) MarshalJSON() ([]byte, error)
func (*ChatMember) UnmarshalJSON ¶
func (chatMember *ChatMember) UnmarshalJSON(data []byte) error
type ChatMemberStatus ¶
type ChatMemberStatus interface {
ChatMemberStatusType() string
}
Provides information about the status of a member in a chat
func UnmarshalChatMemberStatus ¶
func UnmarshalChatMemberStatus(data json.RawMessage) (ChatMemberStatus, error)
func UnmarshalListOfChatMemberStatus ¶
func UnmarshalListOfChatMemberStatus(dataList []json.RawMessage) ([]ChatMemberStatus, error)
type ChatMemberStatusAdministrator ¶
type ChatMemberStatusAdministrator struct { // A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only CustomTitle string `json:"custom_title"` // True, if the current user can edit the administrator privileges for the called user CanBeEdited bool `json:"can_be_edited"` // Rights of the administrator Rights *ChatAdministratorRights `json:"rights"` // contains filtered or unexported fields }
The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage video chats. In supergroups and channels, there are more detailed options for administrator privileges
func UnmarshalChatMemberStatusAdministrator ¶
func UnmarshalChatMemberStatusAdministrator(data json.RawMessage) (*ChatMemberStatusAdministrator, error)
func (*ChatMemberStatusAdministrator) ChatMemberStatusType ¶
func (*ChatMemberStatusAdministrator) ChatMemberStatusType() string
func (*ChatMemberStatusAdministrator) GetClass ¶
func (*ChatMemberStatusAdministrator) GetClass() string
func (*ChatMemberStatusAdministrator) GetType ¶
func (*ChatMemberStatusAdministrator) GetType() string
func (*ChatMemberStatusAdministrator) MarshalJSON ¶
func (entity *ChatMemberStatusAdministrator) MarshalJSON() ([]byte, error)
type ChatMemberStatusBanned ¶
type ChatMemberStatusBanned struct { // Point in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days or for less than 30 seconds from the current time, the user is considered to be banned forever. Always 0 in basic groups BannedUntilDate int32 `json:"banned_until_date"` // contains filtered or unexported fields }
The user or the chat was banned (and hence is not a member of the chat). Implies the user can't return to the chat, view messages, or be used as a participant identifier to join a video chat of the chat
func UnmarshalChatMemberStatusBanned ¶
func UnmarshalChatMemberStatusBanned(data json.RawMessage) (*ChatMemberStatusBanned, error)
func (*ChatMemberStatusBanned) ChatMemberStatusType ¶
func (*ChatMemberStatusBanned) ChatMemberStatusType() string
func (*ChatMemberStatusBanned) GetClass ¶
func (*ChatMemberStatusBanned) GetClass() string
func (*ChatMemberStatusBanned) GetType ¶
func (*ChatMemberStatusBanned) GetType() string
func (*ChatMemberStatusBanned) MarshalJSON ¶
func (entity *ChatMemberStatusBanned) MarshalJSON() ([]byte, error)
type ChatMemberStatusCreator ¶
type ChatMemberStatusCreator struct { // A custom title of the owner; 0-16 characters without emojis; applicable to supergroups only CustomTitle string `json:"custom_title"` // True, if the creator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only IsAnonymous bool `json:"is_anonymous"` // True, if the user is a member of the chat IsMember bool `json:"is_member"` // contains filtered or unexported fields }
The user is the owner of the chat and has all the administrator privileges
func UnmarshalChatMemberStatusCreator ¶
func UnmarshalChatMemberStatusCreator(data json.RawMessage) (*ChatMemberStatusCreator, error)
func (*ChatMemberStatusCreator) ChatMemberStatusType ¶
func (*ChatMemberStatusCreator) ChatMemberStatusType() string
func (*ChatMemberStatusCreator) GetClass ¶
func (*ChatMemberStatusCreator) GetClass() string
func (*ChatMemberStatusCreator) GetType ¶
func (*ChatMemberStatusCreator) GetType() string
func (*ChatMemberStatusCreator) MarshalJSON ¶
func (entity *ChatMemberStatusCreator) MarshalJSON() ([]byte, error)
type ChatMemberStatusLeft ¶
type ChatMemberStatusLeft struct {
// contains filtered or unexported fields
}
The user or the chat is not a chat member
func UnmarshalChatMemberStatusLeft ¶
func UnmarshalChatMemberStatusLeft(data json.RawMessage) (*ChatMemberStatusLeft, error)
func (*ChatMemberStatusLeft) ChatMemberStatusType ¶
func (*ChatMemberStatusLeft) ChatMemberStatusType() string
func (*ChatMemberStatusLeft) GetClass ¶
func (*ChatMemberStatusLeft) GetClass() string
func (*ChatMemberStatusLeft) GetType ¶
func (*ChatMemberStatusLeft) GetType() string
func (*ChatMemberStatusLeft) MarshalJSON ¶
func (entity *ChatMemberStatusLeft) MarshalJSON() ([]byte, error)
type ChatMemberStatusMember ¶
type ChatMemberStatusMember struct {
// contains filtered or unexported fields
}
The user is a member of the chat, without any additional privileges or restrictions
func UnmarshalChatMemberStatusMember ¶
func UnmarshalChatMemberStatusMember(data json.RawMessage) (*ChatMemberStatusMember, error)
func (*ChatMemberStatusMember) ChatMemberStatusType ¶
func (*ChatMemberStatusMember) ChatMemberStatusType() string
func (*ChatMemberStatusMember) GetClass ¶
func (*ChatMemberStatusMember) GetClass() string
func (*ChatMemberStatusMember) GetType ¶
func (*ChatMemberStatusMember) GetType() string
func (*ChatMemberStatusMember) MarshalJSON ¶
func (entity *ChatMemberStatusMember) MarshalJSON() ([]byte, error)
type ChatMemberStatusRestricted ¶
type ChatMemberStatusRestricted struct { // True, if the user is a member of the chat IsMember bool `json:"is_member"` // Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. If the user is restricted for more than 366 days or for less than 30 seconds from the current time, the user is considered to be restricted forever RestrictedUntilDate int32 `json:"restricted_until_date"` // User permissions in the chat Permissions *ChatPermissions `json:"permissions"` // contains filtered or unexported fields }
The user is under certain restrictions in the chat. Not supported in basic groups and channels
func UnmarshalChatMemberStatusRestricted ¶
func UnmarshalChatMemberStatusRestricted(data json.RawMessage) (*ChatMemberStatusRestricted, error)
func (*ChatMemberStatusRestricted) ChatMemberStatusType ¶
func (*ChatMemberStatusRestricted) ChatMemberStatusType() string
func (*ChatMemberStatusRestricted) GetClass ¶
func (*ChatMemberStatusRestricted) GetClass() string
func (*ChatMemberStatusRestricted) GetType ¶
func (*ChatMemberStatusRestricted) GetType() string
func (*ChatMemberStatusRestricted) MarshalJSON ¶
func (entity *ChatMemberStatusRestricted) MarshalJSON() ([]byte, error)
type ChatMembers ¶
type ChatMembers struct { // Approximate total number of chat members found TotalCount int32 `json:"total_count"` // A list of chat members Members []*ChatMember `json:"members"` // contains filtered or unexported fields }
Contains a list of chat members
func UnmarshalChatMembers ¶
func UnmarshalChatMembers(data json.RawMessage) (*ChatMembers, error)
func (*ChatMembers) GetClass ¶
func (*ChatMembers) GetClass() string
func (*ChatMembers) GetType ¶
func (*ChatMembers) GetType() string
func (*ChatMembers) MarshalJSON ¶
func (entity *ChatMembers) MarshalJSON() ([]byte, error)
type ChatMembersFilter ¶
type ChatMembersFilter interface {
ChatMembersFilterType() string
}
Specifies the kind of chat members to return in searchChatMembers
func UnmarshalChatMembersFilter ¶
func UnmarshalChatMembersFilter(data json.RawMessage) (ChatMembersFilter, error)
func UnmarshalListOfChatMembersFilter ¶
func UnmarshalListOfChatMembersFilter(dataList []json.RawMessage) ([]ChatMembersFilter, error)
type ChatMembersFilterAdministrators ¶
type ChatMembersFilterAdministrators struct {
// contains filtered or unexported fields
}
Returns the owner and administrators
func UnmarshalChatMembersFilterAdministrators ¶
func UnmarshalChatMembersFilterAdministrators(data json.RawMessage) (*ChatMembersFilterAdministrators, error)
func (*ChatMembersFilterAdministrators) ChatMembersFilterType ¶
func (*ChatMembersFilterAdministrators) ChatMembersFilterType() string
func (*ChatMembersFilterAdministrators) GetClass ¶
func (*ChatMembersFilterAdministrators) GetClass() string
func (*ChatMembersFilterAdministrators) GetType ¶
func (*ChatMembersFilterAdministrators) GetType() string
func (*ChatMembersFilterAdministrators) MarshalJSON ¶
func (entity *ChatMembersFilterAdministrators) MarshalJSON() ([]byte, error)
type ChatMembersFilterBanned ¶
type ChatMembersFilterBanned struct {
// contains filtered or unexported fields
}
Returns users banned from the chat; can be used only by administrators in a supergroup or in a channel
func UnmarshalChatMembersFilterBanned ¶
func UnmarshalChatMembersFilterBanned(data json.RawMessage) (*ChatMembersFilterBanned, error)
func (*ChatMembersFilterBanned) ChatMembersFilterType ¶
func (*ChatMembersFilterBanned) ChatMembersFilterType() string
func (*ChatMembersFilterBanned) GetClass ¶
func (*ChatMembersFilterBanned) GetClass() string
func (*ChatMembersFilterBanned) GetType ¶
func (*ChatMembersFilterBanned) GetType() string
func (*ChatMembersFilterBanned) MarshalJSON ¶
func (entity *ChatMembersFilterBanned) MarshalJSON() ([]byte, error)
type ChatMembersFilterBots ¶
type ChatMembersFilterBots struct {
// contains filtered or unexported fields
}
Returns bot members of the chat
func UnmarshalChatMembersFilterBots ¶
func UnmarshalChatMembersFilterBots(data json.RawMessage) (*ChatMembersFilterBots, error)
func (*ChatMembersFilterBots) ChatMembersFilterType ¶
func (*ChatMembersFilterBots) ChatMembersFilterType() string
func (*ChatMembersFilterBots) GetClass ¶
func (*ChatMembersFilterBots) GetClass() string
func (*ChatMembersFilterBots) GetType ¶
func (*ChatMembersFilterBots) GetType() string
func (*ChatMembersFilterBots) MarshalJSON ¶
func (entity *ChatMembersFilterBots) MarshalJSON() ([]byte, error)
type ChatMembersFilterContacts ¶
type ChatMembersFilterContacts struct {
// contains filtered or unexported fields
}
Returns contacts of the user
func UnmarshalChatMembersFilterContacts ¶
func UnmarshalChatMembersFilterContacts(data json.RawMessage) (*ChatMembersFilterContacts, error)
func (*ChatMembersFilterContacts) ChatMembersFilterType ¶
func (*ChatMembersFilterContacts) ChatMembersFilterType() string
func (*ChatMembersFilterContacts) GetClass ¶
func (*ChatMembersFilterContacts) GetClass() string
func (*ChatMembersFilterContacts) GetType ¶
func (*ChatMembersFilterContacts) GetType() string
func (*ChatMembersFilterContacts) MarshalJSON ¶
func (entity *ChatMembersFilterContacts) MarshalJSON() ([]byte, error)
type ChatMembersFilterMembers ¶
type ChatMembersFilterMembers struct {
// contains filtered or unexported fields
}
Returns all chat members, including restricted chat members
func UnmarshalChatMembersFilterMembers ¶
func UnmarshalChatMembersFilterMembers(data json.RawMessage) (*ChatMembersFilterMembers, error)
func (*ChatMembersFilterMembers) ChatMembersFilterType ¶
func (*ChatMembersFilterMembers) ChatMembersFilterType() string
func (*ChatMembersFilterMembers) GetClass ¶
func (*ChatMembersFilterMembers) GetClass() string
func (*ChatMembersFilterMembers) GetType ¶
func (*ChatMembersFilterMembers) GetType() string
func (*ChatMembersFilterMembers) MarshalJSON ¶
func (entity *ChatMembersFilterMembers) MarshalJSON() ([]byte, error)
type ChatMembersFilterMention ¶
type ChatMembersFilterMention struct { // If non-zero, the identifier of the current message thread MessageThreadId int64 `json:"message_thread_id"` // contains filtered or unexported fields }
Returns users which can be mentioned in the chat
func UnmarshalChatMembersFilterMention ¶
func UnmarshalChatMembersFilterMention(data json.RawMessage) (*ChatMembersFilterMention, error)
func (*ChatMembersFilterMention) ChatMembersFilterType ¶
func (*ChatMembersFilterMention) ChatMembersFilterType() string
func (*ChatMembersFilterMention) GetClass ¶
func (*ChatMembersFilterMention) GetClass() string
func (*ChatMembersFilterMention) GetType ¶
func (*ChatMembersFilterMention) GetType() string
func (*ChatMembersFilterMention) MarshalJSON ¶
func (entity *ChatMembersFilterMention) MarshalJSON() ([]byte, error)
type ChatMembersFilterRestricted ¶
type ChatMembersFilterRestricted struct {
// contains filtered or unexported fields
}
Returns users under certain restrictions in the chat; can be used only by administrators in a supergroup
func UnmarshalChatMembersFilterRestricted ¶
func UnmarshalChatMembersFilterRestricted(data json.RawMessage) (*ChatMembersFilterRestricted, error)
func (*ChatMembersFilterRestricted) ChatMembersFilterType ¶
func (*ChatMembersFilterRestricted) ChatMembersFilterType() string
func (*ChatMembersFilterRestricted) GetClass ¶
func (*ChatMembersFilterRestricted) GetClass() string
func (*ChatMembersFilterRestricted) GetType ¶
func (*ChatMembersFilterRestricted) GetType() string
func (*ChatMembersFilterRestricted) MarshalJSON ¶
func (entity *ChatMembersFilterRestricted) MarshalJSON() ([]byte, error)
type ChatMessageSender ¶ added in v1.2.3
type ChatMessageSender struct { // Available message senders Sender MessageSender `json:"sender"` // True, if Telegram Premium is needed to use the message sender NeedsPremium bool `json:"needs_premium"` // contains filtered or unexported fields }
Represents a message sender, which can be used to send messages in a chat
func UnmarshalChatMessageSender ¶ added in v1.2.3
func UnmarshalChatMessageSender(data json.RawMessage) (*ChatMessageSender, error)
func (*ChatMessageSender) GetClass ¶ added in v1.2.3
func (*ChatMessageSender) GetClass() string
func (*ChatMessageSender) GetType ¶ added in v1.2.3
func (*ChatMessageSender) GetType() string
func (*ChatMessageSender) MarshalJSON ¶ added in v1.2.3
func (entity *ChatMessageSender) MarshalJSON() ([]byte, error)
func (*ChatMessageSender) UnmarshalJSON ¶ added in v1.2.3
func (chatMessageSender *ChatMessageSender) UnmarshalJSON(data []byte) error
type ChatMessageSenders ¶ added in v1.2.3
type ChatMessageSenders struct { // List of available message senders Senders []*ChatMessageSender `json:"senders"` // contains filtered or unexported fields }
Represents a list of message senders, which can be used to send messages in a chat
func UnmarshalChatMessageSenders ¶ added in v1.2.3
func UnmarshalChatMessageSenders(data json.RawMessage) (*ChatMessageSenders, error)
func (*ChatMessageSenders) GetClass ¶ added in v1.2.3
func (*ChatMessageSenders) GetClass() string
func (*ChatMessageSenders) GetType ¶ added in v1.2.3
func (*ChatMessageSenders) GetType() string
func (*ChatMessageSenders) MarshalJSON ¶ added in v1.2.3
func (entity *ChatMessageSenders) MarshalJSON() ([]byte, error)
type ChatNearby ¶
type ChatNearby struct { // Chat identifier ChatId int64 `json:"chat_id"` // Distance to the chat location, in meters Distance int32 `json:"distance"` // contains filtered or unexported fields }
Describes a chat located nearby
func UnmarshalChatNearby ¶
func UnmarshalChatNearby(data json.RawMessage) (*ChatNearby, error)
func (*ChatNearby) GetClass ¶
func (*ChatNearby) GetClass() string
func (*ChatNearby) GetType ¶
func (*ChatNearby) GetType() string
func (*ChatNearby) MarshalJSON ¶
func (entity *ChatNearby) MarshalJSON() ([]byte, error)
type ChatNotificationSettings ¶
type ChatNotificationSettings struct { // If true, mute_for is ignored and the value for the relevant type of chat or the forum chat is used instead UseDefaultMuteFor bool `json:"use_default_mute_for"` // Time left before notifications will be unmuted, in seconds MuteFor int32 `json:"mute_for"` // If true, the value for the relevant type of chat or the forum chat is used instead of sound_id UseDefaultSound bool `json:"use_default_sound"` // Identifier of the notification sound to be played for messages; 0 if sound is disabled SoundId JsonInt64 `json:"sound_id"` // If true, show_preview is ignored and the value for the relevant type of chat or the forum chat is used instead UseDefaultShowPreview bool `json:"use_default_show_preview"` // True, if message content must be displayed in notifications ShowPreview bool `json:"show_preview"` // If true, mute_stories is ignored and the value for the relevant type of chat is used instead UseDefaultMuteStories bool `json:"use_default_mute_stories"` // True, if story notifications are disabled for the chat MuteStories bool `json:"mute_stories"` // If true, the value for the relevant type of chat is used instead of story_sound_id UseDefaultStorySound bool `json:"use_default_story_sound"` // Identifier of the notification sound to be played for stories; 0 if sound is disabled StorySoundId JsonInt64 `json:"story_sound_id"` // If true, show_story_sender is ignored and the value for the relevant type of chat is used instead UseDefaultShowStorySender bool `json:"use_default_show_story_sender"` // True, if the sender of stories must be displayed in notifications ShowStorySender bool `json:"show_story_sender"` // If true, disable_pinned_message_notifications is ignored and the value for the relevant type of chat or the forum chat is used instead UseDefaultDisablePinnedMessageNotifications bool `json:"use_default_disable_pinned_message_notifications"` // If true, notifications for incoming pinned messages will be created as for an ordinary unread message DisablePinnedMessageNotifications bool `json:"disable_pinned_message_notifications"` // If true, disable_mention_notifications is ignored and the value for the relevant type of chat or the forum chat is used instead UseDefaultDisableMentionNotifications bool `json:"use_default_disable_mention_notifications"` // If true, notifications for messages with mentions will be created as for an ordinary unread message DisableMentionNotifications bool `json:"disable_mention_notifications"` // contains filtered or unexported fields }
Contains information about notification settings for a chat or a forum topic
func UnmarshalChatNotificationSettings ¶
func UnmarshalChatNotificationSettings(data json.RawMessage) (*ChatNotificationSettings, error)
func (*ChatNotificationSettings) GetClass ¶
func (*ChatNotificationSettings) GetClass() string
func (*ChatNotificationSettings) GetType ¶
func (*ChatNotificationSettings) GetType() string
func (*ChatNotificationSettings) MarshalJSON ¶
func (entity *ChatNotificationSettings) MarshalJSON() ([]byte, error)
type ChatPermissions ¶
type ChatPermissions struct { // True, if the user can send text messages, contacts, invoices, locations, and venues CanSendBasicMessages bool `json:"can_send_basic_messages"` // True, if the user can send music files CanSendAudios bool `json:"can_send_audios"` // True, if the user can send documents CanSendDocuments bool `json:"can_send_documents"` // True, if the user can send audio photos CanSendPhotos bool `json:"can_send_photos"` // True, if the user can send audio videos CanSendVideos bool `json:"can_send_videos"` // True, if the user can send video notes CanSendVideoNotes bool `json:"can_send_video_notes"` // True, if the user can send voice notes CanSendVoiceNotes bool `json:"can_send_voice_notes"` // True, if the user can send polls CanSendPolls bool `json:"can_send_polls"` // True, if the user can send stickers. Implies can_send_messages permissions CanSendStickers bool `json:"can_send_stickers"` // True, if the user can send animations. Implies can_send_messages permissions CanSendAnimations bool `json:"can_send_animations"` // True, if the user can send games. Implies can_send_messages permissions CanSendGames bool `json:"can_send_games"` // True, if the user can use inline bots. Implies can_send_messages permissions CanUseInlineBots bool `json:"can_use_inline_bots"` // True, if the user may add a web page preview to their messages CanAddWebPagePreviews bool `json:"can_add_web_page_previews"` // True, if the user can change the chat title, photo, and other settings CanChangeInfo bool `json:"can_change_info"` // True, if the user can invite new users to the chat CanInviteUsers bool `json:"can_invite_users"` // True, if the user can pin messages CanPinMessages bool `json:"can_pin_messages"` // True, if the user can manage topics CanManageTopics bool `json:"can_manage_topics"` // contains filtered or unexported fields }
Describes actions that a user is allowed to take in a chat
func UnmarshalChatPermissions ¶
func UnmarshalChatPermissions(data json.RawMessage) (*ChatPermissions, error)
func (*ChatPermissions) GetClass ¶
func (*ChatPermissions) GetClass() string
func (*ChatPermissions) GetType ¶
func (*ChatPermissions) GetType() string
func (*ChatPermissions) MarshalJSON ¶
func (entity *ChatPermissions) MarshalJSON() ([]byte, error)
type ChatPhoto ¶
type ChatPhoto struct { // Unique photo identifier Id JsonInt64 `json:"id"` // Point in time (Unix timestamp) when the photo has been added AddedDate int32 `json:"added_date"` // Photo minithumbnail; may be null Minithumbnail *Minithumbnail `json:"minithumbnail"` // Available variants of the photo in JPEG format, in different size Sizes []*PhotoSize `json:"sizes"` // A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null Animation *AnimatedChatPhoto `json:"animation"` // A small (160x160) animated variant of the photo in MPEG4 format; may be null even the big animation is available SmallAnimation *AnimatedChatPhoto `json:"small_animation"` // Sticker-based version of the chat photo; may be null Sticker *ChatPhotoSticker `json:"sticker"` // contains filtered or unexported fields }
Describes a chat or user profile photo
func UnmarshalChatPhoto ¶
func UnmarshalChatPhoto(data json.RawMessage) (*ChatPhoto, error)
func (*ChatPhoto) MarshalJSON ¶
type ChatPhotoInfo ¶
type ChatPhotoInfo struct { // A small (160x160) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed Small *File `json:"small"` // A big (640x640) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed Big *File `json:"big"` // Chat photo minithumbnail; may be null Minithumbnail *Minithumbnail `json:"minithumbnail"` // True, if the photo has animated variant HasAnimation bool `json:"has_animation"` // True, if the photo is visible only for the current user IsPersonal bool `json:"is_personal"` // contains filtered or unexported fields }
Contains basic information about the photo of a chat
func UnmarshalChatPhotoInfo ¶
func UnmarshalChatPhotoInfo(data json.RawMessage) (*ChatPhotoInfo, error)
func (*ChatPhotoInfo) GetClass ¶
func (*ChatPhotoInfo) GetClass() string
func (*ChatPhotoInfo) GetType ¶
func (*ChatPhotoInfo) GetType() string
func (*ChatPhotoInfo) MarshalJSON ¶
func (entity *ChatPhotoInfo) MarshalJSON() ([]byte, error)
type ChatPhotoSticker ¶ added in v1.2.3
type ChatPhotoSticker struct { // Type of the sticker Type ChatPhotoStickerType `json:"type"` // The fill to be used as background for the sticker; rotation angle in backgroundFillGradient isn't supported BackgroundFill BackgroundFill `json:"background_fill"` // contains filtered or unexported fields }
Information about the sticker, which was used to create the chat photo. The sticker is shown at the center of the photo and occupies at most 67% of it
func UnmarshalChatPhotoSticker ¶ added in v1.2.3
func UnmarshalChatPhotoSticker(data json.RawMessage) (*ChatPhotoSticker, error)
func (*ChatPhotoSticker) GetClass ¶ added in v1.2.3
func (*ChatPhotoSticker) GetClass() string
func (*ChatPhotoSticker) GetType ¶ added in v1.2.3
func (*ChatPhotoSticker) GetType() string
func (*ChatPhotoSticker) MarshalJSON ¶ added in v1.2.3
func (entity *ChatPhotoSticker) MarshalJSON() ([]byte, error)
func (*ChatPhotoSticker) UnmarshalJSON ¶ added in v1.2.3
func (chatPhotoSticker *ChatPhotoSticker) UnmarshalJSON(data []byte) error
type ChatPhotoStickerType ¶ added in v1.2.3
type ChatPhotoStickerType interface {
ChatPhotoStickerTypeType() string
}
Describes type of a sticker, which was used to create a chat photo
func UnmarshalChatPhotoStickerType ¶ added in v1.2.3
func UnmarshalChatPhotoStickerType(data json.RawMessage) (ChatPhotoStickerType, error)
func UnmarshalListOfChatPhotoStickerType ¶ added in v1.2.3
func UnmarshalListOfChatPhotoStickerType(dataList []json.RawMessage) ([]ChatPhotoStickerType, error)
type ChatPhotoStickerTypeCustomEmoji ¶ added in v1.2.3
type ChatPhotoStickerTypeCustomEmoji struct { // Identifier of the custom emoji CustomEmojiId JsonInt64 `json:"custom_emoji_id"` // contains filtered or unexported fields }
Information about the custom emoji, which was used to create the chat photo
func UnmarshalChatPhotoStickerTypeCustomEmoji ¶ added in v1.2.3
func UnmarshalChatPhotoStickerTypeCustomEmoji(data json.RawMessage) (*ChatPhotoStickerTypeCustomEmoji, error)
func (*ChatPhotoStickerTypeCustomEmoji) ChatPhotoStickerTypeType ¶ added in v1.2.3
func (*ChatPhotoStickerTypeCustomEmoji) ChatPhotoStickerTypeType() string
func (*ChatPhotoStickerTypeCustomEmoji) GetClass ¶ added in v1.2.3
func (*ChatPhotoStickerTypeCustomEmoji) GetClass() string
func (*ChatPhotoStickerTypeCustomEmoji) GetType ¶ added in v1.2.3
func (*ChatPhotoStickerTypeCustomEmoji) GetType() string
func (*ChatPhotoStickerTypeCustomEmoji) MarshalJSON ¶ added in v1.2.3
func (entity *ChatPhotoStickerTypeCustomEmoji) MarshalJSON() ([]byte, error)
type ChatPhotoStickerTypeRegularOrMask ¶ added in v1.2.3
type ChatPhotoStickerTypeRegularOrMask struct { // Sticker set identifier StickerSetId JsonInt64 `json:"sticker_set_id"` // Identifier of the sticker in the set StickerId JsonInt64 `json:"sticker_id"` // contains filtered or unexported fields }
Information about the sticker, which was used to create the chat photo
func UnmarshalChatPhotoStickerTypeRegularOrMask ¶ added in v1.2.3
func UnmarshalChatPhotoStickerTypeRegularOrMask(data json.RawMessage) (*ChatPhotoStickerTypeRegularOrMask, error)
func (*ChatPhotoStickerTypeRegularOrMask) ChatPhotoStickerTypeType ¶ added in v1.2.3
func (*ChatPhotoStickerTypeRegularOrMask) ChatPhotoStickerTypeType() string
func (*ChatPhotoStickerTypeRegularOrMask) GetClass ¶ added in v1.2.3
func (*ChatPhotoStickerTypeRegularOrMask) GetClass() string
func (*ChatPhotoStickerTypeRegularOrMask) GetType ¶ added in v1.2.3
func (*ChatPhotoStickerTypeRegularOrMask) GetType() string
func (*ChatPhotoStickerTypeRegularOrMask) MarshalJSON ¶ added in v1.2.3
func (entity *ChatPhotoStickerTypeRegularOrMask) MarshalJSON() ([]byte, error)
type ChatPhotos ¶
type ChatPhotos struct { // Total number of photos TotalCount int32 `json:"total_count"` // List of photos Photos []*ChatPhoto `json:"photos"` // contains filtered or unexported fields }
Contains a list of chat or user profile photos
func UnmarshalChatPhotos ¶
func UnmarshalChatPhotos(data json.RawMessage) (*ChatPhotos, error)
func (*ChatPhotos) GetClass ¶
func (*ChatPhotos) GetClass() string
func (*ChatPhotos) GetType ¶
func (*ChatPhotos) GetType() string
func (*ChatPhotos) MarshalJSON ¶
func (entity *ChatPhotos) MarshalJSON() ([]byte, error)
type ChatPosition ¶
type ChatPosition struct { // The chat list List ChatList `json:"list"` // A parameter used to determine order of the chat in the chat list. Chats must be sorted by the pair (order, chat.id) in descending order Order JsonInt64 `json:"order"` // True, if the chat is pinned in the chat list IsPinned bool `json:"is_pinned"` // Source of the chat in the chat list; may be null Source ChatSource `json:"source"` // contains filtered or unexported fields }
Describes a position of a chat in a chat list
func UnmarshalChatPosition ¶
func UnmarshalChatPosition(data json.RawMessage) (*ChatPosition, error)
func (*ChatPosition) GetClass ¶
func (*ChatPosition) GetClass() string
func (*ChatPosition) GetType ¶
func (*ChatPosition) GetType() string
func (*ChatPosition) MarshalJSON ¶
func (entity *ChatPosition) MarshalJSON() ([]byte, error)
func (*ChatPosition) UnmarshalJSON ¶
func (chatPosition *ChatPosition) UnmarshalJSON(data []byte) error
type ChatSource ¶
type ChatSource interface {
ChatSourceType() string
}
Describes a reason why an external chat is shown in a chat list
func UnmarshalChatSource ¶
func UnmarshalChatSource(data json.RawMessage) (ChatSource, error)
func UnmarshalListOfChatSource ¶
func UnmarshalListOfChatSource(dataList []json.RawMessage) ([]ChatSource, error)
type ChatSourceMtprotoProxy ¶
type ChatSourceMtprotoProxy struct {
// contains filtered or unexported fields
}
The chat is sponsored by the user's MTProxy server
func UnmarshalChatSourceMtprotoProxy ¶
func UnmarshalChatSourceMtprotoProxy(data json.RawMessage) (*ChatSourceMtprotoProxy, error)
func (*ChatSourceMtprotoProxy) ChatSourceType ¶
func (*ChatSourceMtprotoProxy) ChatSourceType() string
func (*ChatSourceMtprotoProxy) GetClass ¶
func (*ChatSourceMtprotoProxy) GetClass() string
func (*ChatSourceMtprotoProxy) GetType ¶
func (*ChatSourceMtprotoProxy) GetType() string
func (*ChatSourceMtprotoProxy) MarshalJSON ¶
func (entity *ChatSourceMtprotoProxy) MarshalJSON() ([]byte, error)
type ChatSourcePublicServiceAnnouncement ¶
type ChatSourcePublicServiceAnnouncement struct { // The type of the announcement Type string `json:"type"` // The text of the announcement Text string `json:"text"` // contains filtered or unexported fields }
The chat contains a public service announcement
func UnmarshalChatSourcePublicServiceAnnouncement ¶
func UnmarshalChatSourcePublicServiceAnnouncement(data json.RawMessage) (*ChatSourcePublicServiceAnnouncement, error)
func (*ChatSourcePublicServiceAnnouncement) ChatSourceType ¶
func (*ChatSourcePublicServiceAnnouncement) ChatSourceType() string
func (*ChatSourcePublicServiceAnnouncement) GetClass ¶
func (*ChatSourcePublicServiceAnnouncement) GetClass() string
func (*ChatSourcePublicServiceAnnouncement) GetType ¶
func (*ChatSourcePublicServiceAnnouncement) GetType() string
func (*ChatSourcePublicServiceAnnouncement) MarshalJSON ¶
func (entity *ChatSourcePublicServiceAnnouncement) MarshalJSON() ([]byte, error)
type ChatStatistics ¶
type ChatStatistics interface {
ChatStatisticsType() string
}
Contains a detailed statistics about a chat
func UnmarshalChatStatistics ¶
func UnmarshalChatStatistics(data json.RawMessage) (ChatStatistics, error)
func UnmarshalListOfChatStatistics ¶
func UnmarshalListOfChatStatistics(dataList []json.RawMessage) ([]ChatStatistics, error)
type ChatStatisticsAdministratorActionsInfo ¶
type ChatStatisticsAdministratorActionsInfo struct { // Administrator user identifier UserId int64 `json:"user_id"` // Number of messages deleted by the administrator DeletedMessageCount int32 `json:"deleted_message_count"` // Number of users banned by the administrator BannedUserCount int32 `json:"banned_user_count"` // Number of users restricted by the administrator RestrictedUserCount int32 `json:"restricted_user_count"` // contains filtered or unexported fields }
Contains statistics about administrator actions done by a user
func UnmarshalChatStatisticsAdministratorActionsInfo ¶
func UnmarshalChatStatisticsAdministratorActionsInfo(data json.RawMessage) (*ChatStatisticsAdministratorActionsInfo, error)
func (*ChatStatisticsAdministratorActionsInfo) GetClass ¶
func (*ChatStatisticsAdministratorActionsInfo) GetClass() string
func (*ChatStatisticsAdministratorActionsInfo) GetType ¶
func (*ChatStatisticsAdministratorActionsInfo) GetType() string
func (*ChatStatisticsAdministratorActionsInfo) MarshalJSON ¶
func (entity *ChatStatisticsAdministratorActionsInfo) MarshalJSON() ([]byte, error)
type ChatStatisticsChannel ¶
type ChatStatisticsChannel struct { // A period to which the statistics applies Period *DateRange `json:"period"` // Number of members in the chat MemberCount *StatisticalValue `json:"member_count"` // Mean number of times the recently sent messages was viewed MeanViewCount *StatisticalValue `json:"mean_view_count"` MeanShareCount *StatisticalValue `json:"mean_share_count"` // A percentage of users with enabled notifications for the chat EnabledNotificationsPercentage float64 `json:"enabled_notifications_percentage"` // A graph containing number of members in the chat MemberCountGraph StatisticalGraph `json:"member_count_graph"` // A graph containing number of members joined and left the chat JoinGraph StatisticalGraph `json:"join_graph"` // A graph containing number of members muted and unmuted the chat MuteGraph StatisticalGraph `json:"mute_graph"` // A graph containing number of message views in a given hour in the last two weeks ViewCountByHourGraph StatisticalGraph `json:"view_count_by_hour_graph"` // A graph containing number of message views per source ViewCountBySourceGraph StatisticalGraph `json:"view_count_by_source_graph"` // A graph containing number of new member joins per source JoinBySourceGraph StatisticalGraph `json:"join_by_source_graph"` // A graph containing number of users viewed chat messages per language LanguageGraph StatisticalGraph `json:"language_graph"` // A graph containing number of chat message views and shares MessageInteractionGraph StatisticalGraph `json:"message_interaction_graph"` // A graph containing number of views of associated with the chat instant views InstantViewInteractionGraph StatisticalGraph `json:"instant_view_interaction_graph"` // Detailed statistics about number of views and shares of recently sent messages RecentMessageInteractions []*ChatStatisticsMessageInteractionInfo `json:"recent_message_interactions"` // contains filtered or unexported fields }
A detailed statistics about a channel chat
func UnmarshalChatStatisticsChannel ¶
func UnmarshalChatStatisticsChannel(data json.RawMessage) (*ChatStatisticsChannel, error)
func (*ChatStatisticsChannel) ChatStatisticsType ¶
func (*ChatStatisticsChannel) ChatStatisticsType() string
func (*ChatStatisticsChannel) GetClass ¶
func (*ChatStatisticsChannel) GetClass() string
func (*ChatStatisticsChannel) GetType ¶
func (*ChatStatisticsChannel) GetType() string
func (*ChatStatisticsChannel) MarshalJSON ¶
func (entity *ChatStatisticsChannel) MarshalJSON() ([]byte, error)
func (*ChatStatisticsChannel) UnmarshalJSON ¶
func (chatStatisticsChannel *ChatStatisticsChannel) UnmarshalJSON(data []byte) error
type ChatStatisticsInviterInfo ¶
type ChatStatisticsInviterInfo struct { // User identifier UserId int64 `json:"user_id"` // Number of new members invited by the user AddedMemberCount int32 `json:"added_member_count"` // contains filtered or unexported fields }
Contains statistics about number of new members invited by a user
func UnmarshalChatStatisticsInviterInfo ¶
func UnmarshalChatStatisticsInviterInfo(data json.RawMessage) (*ChatStatisticsInviterInfo, error)
func (*ChatStatisticsInviterInfo) GetClass ¶
func (*ChatStatisticsInviterInfo) GetClass() string
func (*ChatStatisticsInviterInfo) GetType ¶
func (*ChatStatisticsInviterInfo) GetType() string
func (*ChatStatisticsInviterInfo) MarshalJSON ¶
func (entity *ChatStatisticsInviterInfo) MarshalJSON() ([]byte, error)
type ChatStatisticsMessageInteractionInfo ¶
type ChatStatisticsMessageInteractionInfo struct { // Message identifier MessageId int64 `json:"message_id"` // Number of times the message was viewed ViewCount int32 `json:"view_count"` // Number of times the message was forwarded ForwardCount int32 `json:"forward_count"` // contains filtered or unexported fields }
Contains statistics about interactions with a message
func UnmarshalChatStatisticsMessageInteractionInfo ¶
func UnmarshalChatStatisticsMessageInteractionInfo(data json.RawMessage) (*ChatStatisticsMessageInteractionInfo, error)
func (*ChatStatisticsMessageInteractionInfo) GetClass ¶
func (*ChatStatisticsMessageInteractionInfo) GetClass() string
func (*ChatStatisticsMessageInteractionInfo) GetType ¶
func (*ChatStatisticsMessageInteractionInfo) GetType() string
func (*ChatStatisticsMessageInteractionInfo) MarshalJSON ¶
func (entity *ChatStatisticsMessageInteractionInfo) MarshalJSON() ([]byte, error)
type ChatStatisticsMessageSenderInfo ¶
type ChatStatisticsMessageSenderInfo struct { // User identifier UserId int64 `json:"user_id"` // Number of sent messages SentMessageCount int32 `json:"sent_message_count"` // Average number of characters in sent messages; 0 if unknown AverageCharacterCount int32 `json:"average_character_count"` // contains filtered or unexported fields }
Contains statistics about messages sent by a user
func UnmarshalChatStatisticsMessageSenderInfo ¶
func UnmarshalChatStatisticsMessageSenderInfo(data json.RawMessage) (*ChatStatisticsMessageSenderInfo, error)
func (*ChatStatisticsMessageSenderInfo) GetClass ¶
func (*ChatStatisticsMessageSenderInfo) GetClass() string
func (*ChatStatisticsMessageSenderInfo) GetType ¶
func (*ChatStatisticsMessageSenderInfo) GetType() string
func (*ChatStatisticsMessageSenderInfo) MarshalJSON ¶
func (entity *ChatStatisticsMessageSenderInfo) MarshalJSON() ([]byte, error)
type ChatStatisticsSupergroup ¶
type ChatStatisticsSupergroup struct { // A period to which the statistics applies Period *DateRange `json:"period"` // Number of members in the chat MemberCount *StatisticalValue `json:"member_count"` // Number of messages sent to the chat MessageCount *StatisticalValue `json:"message_count"` // Number of users who viewed messages in the chat ViewerCount *StatisticalValue `json:"viewer_count"` // Number of users who sent messages to the chat SenderCount *StatisticalValue `json:"sender_count"` // A graph containing number of members in the chat MemberCountGraph StatisticalGraph `json:"member_count_graph"` // A graph containing number of members joined and left the chat JoinGraph StatisticalGraph `json:"join_graph"` // A graph containing number of new member joins per source JoinBySourceGraph StatisticalGraph `json:"join_by_source_graph"` // A graph containing distribution of active users per language LanguageGraph StatisticalGraph `json:"language_graph"` // A graph containing distribution of sent messages by content type MessageContentGraph StatisticalGraph `json:"message_content_graph"` // A graph containing number of different actions in the chat ActionGraph StatisticalGraph `json:"action_graph"` // A graph containing distribution of message views per hour DayGraph StatisticalGraph `json:"day_graph"` // A graph containing distribution of message views per day of week WeekGraph StatisticalGraph `json:"week_graph"` // List of users sent most messages in the last week TopSenders []*ChatStatisticsMessageSenderInfo `json:"top_senders"` // List of most active administrators in the last week TopAdministrators []*ChatStatisticsAdministratorActionsInfo `json:"top_administrators"` // List of most active inviters of new members in the last week TopInviters []*ChatStatisticsInviterInfo `json:"top_inviters"` // contains filtered or unexported fields }
A detailed statistics about a supergroup chat
func UnmarshalChatStatisticsSupergroup ¶
func UnmarshalChatStatisticsSupergroup(data json.RawMessage) (*ChatStatisticsSupergroup, error)
func (*ChatStatisticsSupergroup) ChatStatisticsType ¶
func (*ChatStatisticsSupergroup) ChatStatisticsType() string
func (*ChatStatisticsSupergroup) GetClass ¶
func (*ChatStatisticsSupergroup) GetClass() string
func (*ChatStatisticsSupergroup) GetType ¶
func (*ChatStatisticsSupergroup) GetType() string
func (*ChatStatisticsSupergroup) MarshalJSON ¶
func (entity *ChatStatisticsSupergroup) MarshalJSON() ([]byte, error)
func (*ChatStatisticsSupergroup) UnmarshalJSON ¶
func (chatStatisticsSupergroup *ChatStatisticsSupergroup) UnmarshalJSON(data []byte) error
type ChatTheme ¶
type ChatTheme struct { // Theme name Name string `json:"name"` // Theme settings for a light chat theme LightSettings *ThemeSettings `json:"light_settings"` // Theme settings for a dark chat theme DarkSettings *ThemeSettings `json:"dark_settings"` // contains filtered or unexported fields }
Describes a chat theme
func UnmarshalChatTheme ¶
func UnmarshalChatTheme(data json.RawMessage) (*ChatTheme, error)
func (*ChatTheme) MarshalJSON ¶
type ChatType ¶
type ChatType interface {
ChatTypeType() string
}
Describes the type of a chat
func UnmarshalChatType ¶
func UnmarshalChatType(data json.RawMessage) (ChatType, error)
func UnmarshalListOfChatType ¶
func UnmarshalListOfChatType(dataList []json.RawMessage) ([]ChatType, error)
type ChatTypeBasicGroup ¶
type ChatTypeBasicGroup struct { // Basic group identifier BasicGroupId int64 `json:"basic_group_id"` // contains filtered or unexported fields }
A basic group (a chat with 0-200 other users)
func UnmarshalChatTypeBasicGroup ¶
func UnmarshalChatTypeBasicGroup(data json.RawMessage) (*ChatTypeBasicGroup, error)
func (*ChatTypeBasicGroup) ChatTypeType ¶
func (*ChatTypeBasicGroup) ChatTypeType() string
func (*ChatTypeBasicGroup) GetClass ¶
func (*ChatTypeBasicGroup) GetClass() string
func (*ChatTypeBasicGroup) GetType ¶
func (*ChatTypeBasicGroup) GetType() string
func (*ChatTypeBasicGroup) MarshalJSON ¶
func (entity *ChatTypeBasicGroup) MarshalJSON() ([]byte, error)
type ChatTypePrivate ¶
type ChatTypePrivate struct { // User identifier UserId int64 `json:"user_id"` // contains filtered or unexported fields }
An ordinary chat with a user
func UnmarshalChatTypePrivate ¶
func UnmarshalChatTypePrivate(data json.RawMessage) (*ChatTypePrivate, error)
func (*ChatTypePrivate) ChatTypeType ¶
func (*ChatTypePrivate) ChatTypeType() string
func (*ChatTypePrivate) GetClass ¶
func (*ChatTypePrivate) GetClass() string
func (*ChatTypePrivate) GetType ¶
func (*ChatTypePrivate) GetType() string
func (*ChatTypePrivate) MarshalJSON ¶
func (entity *ChatTypePrivate) MarshalJSON() ([]byte, error)
type ChatTypeSecret ¶
type ChatTypeSecret struct { // Secret chat identifier SecretChatId int32 `json:"secret_chat_id"` // User identifier of the secret chat peer UserId int64 `json:"user_id"` // contains filtered or unexported fields }
A secret chat with a user
func UnmarshalChatTypeSecret ¶
func UnmarshalChatTypeSecret(data json.RawMessage) (*ChatTypeSecret, error)
func (*ChatTypeSecret) ChatTypeType ¶
func (*ChatTypeSecret) ChatTypeType() string
func (*ChatTypeSecret) GetClass ¶
func (*ChatTypeSecret) GetClass() string
func (*ChatTypeSecret) GetType ¶
func (*ChatTypeSecret) GetType() string
func (*ChatTypeSecret) MarshalJSON ¶
func (entity *ChatTypeSecret) MarshalJSON() ([]byte, error)
type ChatTypeSupergroup ¶
type ChatTypeSupergroup struct { // Supergroup or channel identifier SupergroupId int64 `json:"supergroup_id"` // True, if the supergroup is a channel IsChannel bool `json:"is_channel"` // contains filtered or unexported fields }
A supergroup or channel (with unlimited members)
func UnmarshalChatTypeSupergroup ¶
func UnmarshalChatTypeSupergroup(data json.RawMessage) (*ChatTypeSupergroup, error)
func (*ChatTypeSupergroup) ChatTypeType ¶
func (*ChatTypeSupergroup) ChatTypeType() string
func (*ChatTypeSupergroup) GetClass ¶
func (*ChatTypeSupergroup) GetClass() string
func (*ChatTypeSupergroup) GetType ¶
func (*ChatTypeSupergroup) GetType() string
func (*ChatTypeSupergroup) MarshalJSON ¶
func (entity *ChatTypeSupergroup) MarshalJSON() ([]byte, error)
type Chats ¶
type Chats struct { // Approximate total number of chats found TotalCount int32 `json:"total_count"` // List of chat identifiers ChatIds []int64 `json:"chat_ids"` // contains filtered or unexported fields }
Represents a list of chats
func UnmarshalChats ¶
func UnmarshalChats(data json.RawMessage) (*Chats, error)
func (*Chats) MarshalJSON ¶
type ChatsNearby ¶
type ChatsNearby struct { // List of users nearby UsersNearby []*ChatNearby `json:"users_nearby"` // List of location-based supergroups nearby SupergroupsNearby []*ChatNearby `json:"supergroups_nearby"` // contains filtered or unexported fields }
Represents a list of chats located nearby
func UnmarshalChatsNearby ¶
func UnmarshalChatsNearby(data json.RawMessage) (*ChatsNearby, error)
func (*ChatsNearby) GetClass ¶
func (*ChatsNearby) GetClass() string
func (*ChatsNearby) GetType ¶
func (*ChatsNearby) GetType() string
func (*ChatsNearby) MarshalJSON ¶
func (entity *ChatsNearby) MarshalJSON() ([]byte, error)
type CheckAuthenticationBotTokenRequest ¶
type CheckAuthenticationBotTokenRequest struct { // The bot token Token string `json:"token"` }
type CheckAuthenticationCodeRequest ¶
type CheckAuthenticationCodeRequest struct { // Authentication code to check Code string `json:"code"` }
type CheckAuthenticationEmailCodeRequest ¶ added in v1.2.3
type CheckAuthenticationEmailCodeRequest struct { // Email address authentication to check Code EmailAddressAuthentication `json:"code"` }
type CheckAuthenticationPasswordRecoveryCodeRequest ¶
type CheckAuthenticationPasswordRecoveryCodeRequest struct { // Recovery code to check RecoveryCode string `json:"recovery_code"` }
type CheckAuthenticationPasswordRequest ¶
type CheckAuthenticationPasswordRequest struct { // The 2-step verification password to check Password string `json:"password"` }
type CheckChangePhoneNumberCodeRequest ¶
type CheckChangePhoneNumberCodeRequest struct { // Authentication code to check Code string `json:"code"` }
type CheckChatFolderInviteLinkRequest ¶ added in v1.2.3
type CheckChatFolderInviteLinkRequest struct { // Invite link to be checked InviteLink string `json:"invite_link"` }
type CheckChatInviteLinkRequest ¶
type CheckChatInviteLinkRequest struct { // Invite link to be checked InviteLink string `json:"invite_link"` }
type CheckChatUsernameResult ¶
type CheckChatUsernameResult interface {
CheckChatUsernameResultType() string
}
Represents result of checking whether a username can be set for a chat
func UnmarshalCheckChatUsernameResult ¶
func UnmarshalCheckChatUsernameResult(data json.RawMessage) (CheckChatUsernameResult, error)
func UnmarshalListOfCheckChatUsernameResult ¶
func UnmarshalListOfCheckChatUsernameResult(dataList []json.RawMessage) ([]CheckChatUsernameResult, error)
type CheckChatUsernameResultOk ¶
type CheckChatUsernameResultOk struct {
// contains filtered or unexported fields
}
The username can be set
func UnmarshalCheckChatUsernameResultOk ¶
func UnmarshalCheckChatUsernameResultOk(data json.RawMessage) (*CheckChatUsernameResultOk, error)
func (*CheckChatUsernameResultOk) CheckChatUsernameResultType ¶
func (*CheckChatUsernameResultOk) CheckChatUsernameResultType() string
func (*CheckChatUsernameResultOk) GetClass ¶
func (*CheckChatUsernameResultOk) GetClass() string
func (*CheckChatUsernameResultOk) GetType ¶
func (*CheckChatUsernameResultOk) GetType() string
func (*CheckChatUsernameResultOk) MarshalJSON ¶
func (entity *CheckChatUsernameResultOk) MarshalJSON() ([]byte, error)
type CheckChatUsernameResultPublicChatsTooMany ¶ added in v1.2.3
type CheckChatUsernameResultPublicChatsTooMany struct {
// contains filtered or unexported fields
}
The user has too many chats with username, one of them must be made private first
func UnmarshalCheckChatUsernameResultPublicChatsTooMany ¶ added in v1.2.3
func UnmarshalCheckChatUsernameResultPublicChatsTooMany(data json.RawMessage) (*CheckChatUsernameResultPublicChatsTooMany, error)
func (*CheckChatUsernameResultPublicChatsTooMany) CheckChatUsernameResultType ¶ added in v1.2.3
func (*CheckChatUsernameResultPublicChatsTooMany) CheckChatUsernameResultType() string
func (*CheckChatUsernameResultPublicChatsTooMany) GetClass ¶ added in v1.2.3
func (*CheckChatUsernameResultPublicChatsTooMany) GetClass() string
func (*CheckChatUsernameResultPublicChatsTooMany) GetType ¶ added in v1.2.3
func (*CheckChatUsernameResultPublicChatsTooMany) GetType() string
func (*CheckChatUsernameResultPublicChatsTooMany) MarshalJSON ¶ added in v1.2.3
func (entity *CheckChatUsernameResultPublicChatsTooMany) MarshalJSON() ([]byte, error)
type CheckChatUsernameResultPublicGroupsUnavailable ¶
type CheckChatUsernameResultPublicGroupsUnavailable struct {
// contains filtered or unexported fields
}
The user can't be a member of a public supergroup
func UnmarshalCheckChatUsernameResultPublicGroupsUnavailable ¶
func UnmarshalCheckChatUsernameResultPublicGroupsUnavailable(data json.RawMessage) (*CheckChatUsernameResultPublicGroupsUnavailable, error)
func (*CheckChatUsernameResultPublicGroupsUnavailable) CheckChatUsernameResultType ¶
func (*CheckChatUsernameResultPublicGroupsUnavailable) CheckChatUsernameResultType() string
func (*CheckChatUsernameResultPublicGroupsUnavailable) GetClass ¶
func (*CheckChatUsernameResultPublicGroupsUnavailable) GetClass() string
func (*CheckChatUsernameResultPublicGroupsUnavailable) GetType ¶
func (*CheckChatUsernameResultPublicGroupsUnavailable) GetType() string
func (*CheckChatUsernameResultPublicGroupsUnavailable) MarshalJSON ¶
func (entity *CheckChatUsernameResultPublicGroupsUnavailable) MarshalJSON() ([]byte, error)
type CheckChatUsernameResultUsernameInvalid ¶
type CheckChatUsernameResultUsernameInvalid struct {
// contains filtered or unexported fields
}
The username is invalid
func UnmarshalCheckChatUsernameResultUsernameInvalid ¶
func UnmarshalCheckChatUsernameResultUsernameInvalid(data json.RawMessage) (*CheckChatUsernameResultUsernameInvalid, error)
func (*CheckChatUsernameResultUsernameInvalid) CheckChatUsernameResultType ¶
func (*CheckChatUsernameResultUsernameInvalid) CheckChatUsernameResultType() string
func (*CheckChatUsernameResultUsernameInvalid) GetClass ¶
func (*CheckChatUsernameResultUsernameInvalid) GetClass() string
func (*CheckChatUsernameResultUsernameInvalid) GetType ¶
func (*CheckChatUsernameResultUsernameInvalid) GetType() string
func (*CheckChatUsernameResultUsernameInvalid) MarshalJSON ¶
func (entity *CheckChatUsernameResultUsernameInvalid) MarshalJSON() ([]byte, error)
type CheckChatUsernameResultUsernameOccupied ¶
type CheckChatUsernameResultUsernameOccupied struct {
// contains filtered or unexported fields
}
The username is occupied
func UnmarshalCheckChatUsernameResultUsernameOccupied ¶
func UnmarshalCheckChatUsernameResultUsernameOccupied(data json.RawMessage) (*CheckChatUsernameResultUsernameOccupied, error)
func (*CheckChatUsernameResultUsernameOccupied) CheckChatUsernameResultType ¶
func (*CheckChatUsernameResultUsernameOccupied) CheckChatUsernameResultType() string
func (*CheckChatUsernameResultUsernameOccupied) GetClass ¶
func (*CheckChatUsernameResultUsernameOccupied) GetClass() string
func (*CheckChatUsernameResultUsernameOccupied) GetType ¶
func (*CheckChatUsernameResultUsernameOccupied) GetType() string
func (*CheckChatUsernameResultUsernameOccupied) MarshalJSON ¶
func (entity *CheckChatUsernameResultUsernameOccupied) MarshalJSON() ([]byte, error)
type CheckChatUsernameResultUsernamePurchasable ¶ added in v1.2.3
type CheckChatUsernameResultUsernamePurchasable struct {
// contains filtered or unexported fields
}
The username can be purchased at fragment.com
func UnmarshalCheckChatUsernameResultUsernamePurchasable ¶ added in v1.2.3
func UnmarshalCheckChatUsernameResultUsernamePurchasable(data json.RawMessage) (*CheckChatUsernameResultUsernamePurchasable, error)
func (*CheckChatUsernameResultUsernamePurchasable) CheckChatUsernameResultType ¶ added in v1.2.3
func (*CheckChatUsernameResultUsernamePurchasable) CheckChatUsernameResultType() string
func (*CheckChatUsernameResultUsernamePurchasable) GetClass ¶ added in v1.2.3
func (*CheckChatUsernameResultUsernamePurchasable) GetClass() string
func (*CheckChatUsernameResultUsernamePurchasable) GetType ¶ added in v1.2.3
func (*CheckChatUsernameResultUsernamePurchasable) GetType() string
func (*CheckChatUsernameResultUsernamePurchasable) MarshalJSON ¶ added in v1.2.3
func (entity *CheckChatUsernameResultUsernamePurchasable) MarshalJSON() ([]byte, error)
type CheckCreatedPublicChatsLimitRequest ¶
type CheckCreatedPublicChatsLimitRequest struct { // Type of the public chats, for which to check the limit Type PublicChatType `json:"type"` }
type CheckEmailAddressVerificationCodeRequest ¶
type CheckEmailAddressVerificationCodeRequest struct { // Verification code to check Code string `json:"code"` }
type CheckLoginEmailAddressCodeRequest ¶ added in v1.2.3
type CheckLoginEmailAddressCodeRequest struct { // Email address authentication to check Code EmailAddressAuthentication `json:"code"` }
type CheckPasswordRecoveryCodeRequest ¶
type CheckPasswordRecoveryCodeRequest struct { // Recovery code to check RecoveryCode string `json:"recovery_code"` }
type CheckPhoneNumberConfirmationCodeRequest ¶
type CheckPhoneNumberConfirmationCodeRequest struct { // Confirmation code to check Code string `json:"code"` }
type CheckPhoneNumberVerificationCodeRequest ¶
type CheckPhoneNumberVerificationCodeRequest struct { // Verification code to check Code string `json:"code"` }
type CheckRecoveryEmailAddressCodeRequest ¶
type CheckRecoveryEmailAddressCodeRequest struct { // Verification code to check Code string `json:"code"` }
type CheckStickerSetNameRequest ¶
type CheckStickerSetNameRequest struct { // Name to be checked Name string `json:"name"` }
type CheckStickerSetNameResult ¶
type CheckStickerSetNameResult interface {
CheckStickerSetNameResultType() string
}
Represents result of checking whether a name can be used for a new sticker set
func UnmarshalCheckStickerSetNameResult ¶
func UnmarshalCheckStickerSetNameResult(data json.RawMessage) (CheckStickerSetNameResult, error)
func UnmarshalListOfCheckStickerSetNameResult ¶
func UnmarshalListOfCheckStickerSetNameResult(dataList []json.RawMessage) ([]CheckStickerSetNameResult, error)
type CheckStickerSetNameResultNameInvalid ¶
type CheckStickerSetNameResultNameInvalid struct {
// contains filtered or unexported fields
}
The name is invalid
func UnmarshalCheckStickerSetNameResultNameInvalid ¶
func UnmarshalCheckStickerSetNameResultNameInvalid(data json.RawMessage) (*CheckStickerSetNameResultNameInvalid, error)
func (*CheckStickerSetNameResultNameInvalid) CheckStickerSetNameResultType ¶
func (*CheckStickerSetNameResultNameInvalid) CheckStickerSetNameResultType() string
func (*CheckStickerSetNameResultNameInvalid) GetClass ¶
func (*CheckStickerSetNameResultNameInvalid) GetClass() string
func (*CheckStickerSetNameResultNameInvalid) GetType ¶
func (*CheckStickerSetNameResultNameInvalid) GetType() string
func (*CheckStickerSetNameResultNameInvalid) MarshalJSON ¶
func (entity *CheckStickerSetNameResultNameInvalid) MarshalJSON() ([]byte, error)
type CheckStickerSetNameResultNameOccupied ¶
type CheckStickerSetNameResultNameOccupied struct {
// contains filtered or unexported fields
}
The name is occupied
func UnmarshalCheckStickerSetNameResultNameOccupied ¶
func UnmarshalCheckStickerSetNameResultNameOccupied(data json.RawMessage) (*CheckStickerSetNameResultNameOccupied, error)
func (*CheckStickerSetNameResultNameOccupied) CheckStickerSetNameResultType ¶
func (*CheckStickerSetNameResultNameOccupied) CheckStickerSetNameResultType() string
func (*CheckStickerSetNameResultNameOccupied) GetClass ¶
func (*CheckStickerSetNameResultNameOccupied) GetClass() string
func (*CheckStickerSetNameResultNameOccupied) GetType ¶
func (*CheckStickerSetNameResultNameOccupied) GetType() string
func (*CheckStickerSetNameResultNameOccupied) MarshalJSON ¶
func (entity *CheckStickerSetNameResultNameOccupied) MarshalJSON() ([]byte, error)
type CheckStickerSetNameResultOk ¶
type CheckStickerSetNameResultOk struct {
// contains filtered or unexported fields
}
The name can be set
func UnmarshalCheckStickerSetNameResultOk ¶
func UnmarshalCheckStickerSetNameResultOk(data json.RawMessage) (*CheckStickerSetNameResultOk, error)
func (*CheckStickerSetNameResultOk) CheckStickerSetNameResultType ¶
func (*CheckStickerSetNameResultOk) CheckStickerSetNameResultType() string
func (*CheckStickerSetNameResultOk) GetClass ¶
func (*CheckStickerSetNameResultOk) GetClass() string
func (*CheckStickerSetNameResultOk) GetType ¶
func (*CheckStickerSetNameResultOk) GetType() string
func (*CheckStickerSetNameResultOk) MarshalJSON ¶
func (entity *CheckStickerSetNameResultOk) MarshalJSON() ([]byte, error)
type CleanFileNameRequest ¶
type CleanFileNameRequest struct { // File name or path to the file FileName string `json:"file_name"` }
type ClearAllDraftMessagesRequest ¶
type ClearAllDraftMessagesRequest struct { // Pass true to keep local message drafts in secret chats ExcludeSecretChats bool `json:"exclude_secret_chats"` }
type ClearRecentStickersRequest ¶
type ClearRecentStickersRequest struct { // Pass true to clear the list of stickers recently attached to photo or video files; pass false to clear the list of recently sent stickers IsAttached bool `json:"is_attached"` }
type ClickChatSponsoredMessageRequest ¶ added in v1.2.3
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(authorizationStateHandler AuthorizationStateHandler, options ...Option) (*Client, error)
func (*Client) AcceptCall ¶
func (client *Client) AcceptCall(req *AcceptCallRequest) (*Ok, error)
Accepts an incoming call
func (*Client) AcceptTermsOfService ¶
func (client *Client) AcceptTermsOfService(req *AcceptTermsOfServiceRequest) (*Ok, error)
Accepts Telegram terms of services
func (*Client) ActivateStoryStealthMode ¶ added in v1.2.3
Activates stealth mode for stories, which hides all views of stories from the current user in the last "story_stealth_mode_past_period" seconds and for the next "story_stealth_mode_future_period" seconds; for Telegram Premium users only
func (*Client) AddApplicationChangelog ¶ added in v1.2.3
func (client *Client) AddApplicationChangelog(req *AddApplicationChangelogRequest) (*Ok, error)
Adds server-provided application changelog as messages to the chat 777000 (Telegram) or as a stories; for official applications only. Returns a 404 error if nothing changed
func (*Client) AddChatFolderByInviteLink ¶ added in v1.2.3
func (client *Client) AddChatFolderByInviteLink(req *AddChatFolderByInviteLinkRequest) (*Ok, error)
Adds a chat folder by an invite link
func (*Client) AddChatMember ¶
func (client *Client) AddChatMember(req *AddChatMemberRequest) (*Ok, error)
Adds a new member to a chat. Members can't be added to private or secret chats
func (*Client) AddChatMembers ¶
func (client *Client) AddChatMembers(req *AddChatMembersRequest) (*Ok, error)
Adds multiple new members to a chat. Currently, this method is only available for supergroups and channels. This method can't be used to join a chat. Members can't be added to a channel if it has more than 200 members
func (*Client) AddChatToList ¶
func (client *Client) AddChatToList(req *AddChatToListRequest) (*Ok, error)
Adds a chat to a chat list. A chat can't be simultaneously in Main and Archive chat lists, so it is automatically removed from another one if needed
func (*Client) AddContact ¶
func (client *Client) AddContact(req *AddContactRequest) (*Ok, error)
Adds a user to the contact list or edits an existing contact by their user identifier
func (*Client) AddCustomServerLanguagePack ¶
func (client *Client) AddCustomServerLanguagePack(req *AddCustomServerLanguagePackRequest) (*Ok, error)
Adds a custom server language pack to the list of installed language packs in current localization target. Can be called before authorization
func (*Client) AddEventReceiver ¶
func (*Client) AddFavoriteSticker ¶
func (client *Client) AddFavoriteSticker(req *AddFavoriteStickerRequest) (*Ok, error)
Adds a new sticker to the list of favorite stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first. Only stickers belonging to a sticker set can be added to this list. Emoji stickers can't be added to favorite stickers
func (*Client) AddFileToDownloads ¶ added in v1.0.6
func (client *Client) AddFileToDownloads(req *AddFileToDownloadsRequest) (*File, error)
Adds a file from a message to the list of file downloads. Download progress and completion of the download will be notified through updateFile updates. If message database is used, the list of file downloads is persistent across application restarts. The downloading is independent from download using downloadFile, i.e. it continues if downloadFile is canceled or is used to download a part of the file
func (*Client) AddLocalMessage ¶
func (client *Client) AddLocalMessage(req *AddLocalMessageRequest) (*Message, error)
Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message
func (*Client) AddLogMessage ¶
func (client *Client) AddLogMessage(req *AddLogMessageRequest) (*Ok, error)
deprecated Adds a message to TDLib internal log. Can be called synchronously
func (*Client) AddMessageReaction ¶ added in v1.2.3
func (client *Client) AddMessageReaction(req *AddMessageReactionRequest) (*Ok, error)
Adds a reaction to a message. Use getMessageAvailableReactions to receive the list of available reactions for the message
func (*Client) AddNetworkStatistics ¶
func (client *Client) AddNetworkStatistics(req *AddNetworkStatisticsRequest) (*Ok, error)
Adds the specified data to data usage statistics. Can be called before authorization
func (*Client) AddProxy ¶
func (client *Client) AddProxy(req *AddProxyRequest) (*Proxy, error)
Adds a proxy server for network requests. Can be called before authorization
func (*Client) AddRecentSticker ¶
func (client *Client) AddRecentSticker(req *AddRecentStickerRequest) (*Stickers, error)
Manually adds a new sticker to the list of recently used stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first. Only stickers belonging to a sticker set can be added to this list. Emoji stickers can't be added to recent stickers
func (*Client) AddRecentlyFoundChat ¶
func (client *Client) AddRecentlyFoundChat(req *AddRecentlyFoundChatRequest) (*Ok, error)
Adds a chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already in the list, it will be removed from the list first
func (*Client) AddSavedAnimation ¶
func (client *Client) AddSavedAnimation(req *AddSavedAnimationRequest) (*Ok, error)
Manually adds a new animation to the list of saved animations. The new animation is added to the beginning of the list. If the animation was already in the list, it is removed first. Only non-secret video animations with MIME type "video/mp4" can be added to the list
func (*Client) AddSavedNotificationSound ¶ added in v1.0.6
func (client *Client) AddSavedNotificationSound(req *AddSavedNotificationSoundRequest) (*NotificationSound, error)
Adds a new notification sound to the list of saved notification sounds. The new notification sound is added to the top of the list. If it is already in the list, its position isn't changed
func (*Client) AddStickerToSet ¶
func (client *Client) AddStickerToSet(req *AddStickerToSetRequest) (*Ok, error)
Adds a new sticker to a set; for bots only
func (*Client) AllowBotToSendMessages ¶ added in v1.2.3
func (client *Client) AllowBotToSendMessages(req *AllowBotToSendMessagesRequest) (*Ok, error)
Allows the specified bot to send messages to the user
func (*Client) AnswerCallbackQuery ¶
func (client *Client) AnswerCallbackQuery(req *AnswerCallbackQueryRequest) (*Ok, error)
Sets the result of a callback query; for bots only
func (*Client) AnswerCustomQuery ¶
func (client *Client) AnswerCustomQuery(req *AnswerCustomQueryRequest) (*Ok, error)
Answers a custom query; for bots only
func (*Client) AnswerInlineQuery ¶
func (client *Client) AnswerInlineQuery(req *AnswerInlineQueryRequest) (*Ok, error)
Sets the result of an inline query; for bots only
func (*Client) AnswerPreCheckoutQuery ¶
func (client *Client) AnswerPreCheckoutQuery(req *AnswerPreCheckoutQueryRequest) (*Ok, error)
Sets the result of a pre-checkout query; for bots only
func (*Client) AnswerShippingQuery ¶
func (client *Client) AnswerShippingQuery(req *AnswerShippingQueryRequest) (*Ok, error)
Sets the result of a shipping query; for bots only
func (*Client) AnswerWebAppQuery ¶ added in v1.0.6
func (client *Client) AnswerWebAppQuery(req *AnswerWebAppQueryRequest) (*SentWebAppMessage, error)
Sets the result of interaction with a Web App and sends corresponding message on behalf of the user to the chat from which the query originated; for bots only
func (*Client) AssignAppStoreTransaction ¶ added in v1.2.3
func (client *Client) AssignAppStoreTransaction(req *AssignAppStoreTransactionRequest) (*Ok, error)
Informs server about a purchase through App Store. For official applications only
func (*Client) AssignGooglePlayTransaction ¶ added in v1.2.3
func (client *Client) AssignGooglePlayTransaction(req *AssignGooglePlayTransactionRequest) (*Ok, error)
Informs server about a purchase through Google Play. For official applications only
func (*Client) BanChatMember ¶
func (client *Client) BanChatMember(req *BanChatMemberRequest) (*Ok, error)
Bans a member in a chat. Members can't be banned in private or secret chats. In supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first
func (*Client) BlockMessageSenderFromReplies ¶
func (client *Client) BlockMessageSenderFromReplies(req *BlockMessageSenderFromRepliesRequest) (*Ok, error)
Blocks an original sender of a message in the Replies chat
func (*Client) CanBotSendMessages ¶ added in v1.2.3
func (client *Client) CanBotSendMessages(req *CanBotSendMessagesRequest) (*Ok, error)
Checks whether the specified bot can send messages to the user. Returns a 404 error if can't and the access can be granted by call to allowBotToSendMessages
func (*Client) CanPurchasePremium ¶ added in v1.2.3
func (client *Client) CanPurchasePremium(req *CanPurchasePremiumRequest) (*Ok, error)
Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase
func (*Client) CanSendStory ¶ added in v1.2.3
func (client *Client) CanSendStory() (CanSendStoryResult, error)
Checks whether the current user can send a story
func (*Client) CanTransferOwnership ¶
func (client *Client) CanTransferOwnership() (CanTransferOwnershipResult, error)
Checks whether the current session can be used to transfer a chat ownership to another user
func (*Client) CancelDownloadFile ¶
func (client *Client) CancelDownloadFile(req *CancelDownloadFileRequest) (*Ok, error)
Stops the downloading of a file. If a file has already been downloaded, does nothing
func (*Client) CancelPasswordReset ¶
Cancels reset of 2-step verification password. The method can be called if passwordState.pending_reset_date > 0
func (*Client) CancelPreliminaryUploadFile ¶ added in v1.2.3
func (client *Client) CancelPreliminaryUploadFile(req *CancelPreliminaryUploadFileRequest) (*Ok, error)
Stops the preliminary uploading of a file. Supported only for files uploaded by using preliminaryUploadFile. For other files the behavior is undefined
func (*Client) ChangeImportedContacts ¶
func (client *Client) ChangeImportedContacts(req *ChangeImportedContactsRequest) (*ImportedContacts, error)
Changes imported contacts using the list of contacts saved on the device. Imports newly added contacts and, if at least the file database is enabled, deletes recently deleted contacts. Query result depends on the result of the previous query, so only one query is possible at the same time
func (*Client) ChangePhoneNumber ¶
func (client *Client) ChangePhoneNumber(req *ChangePhoneNumberRequest) (*AuthenticationCodeInfo, error)
Changes the phone number of the user and sends an authentication code to the user's new phone number; for official Android and iOS applications only. On success, returns information about the sent code
func (*Client) ChangeStickerSet ¶
func (client *Client) ChangeStickerSet(req *ChangeStickerSetRequest) (*Ok, error)
Installs/uninstalls or activates/archives a sticker set
func (*Client) CheckAuthenticationBotToken ¶
func (client *Client) CheckAuthenticationBotToken(req *CheckAuthenticationBotTokenRequest) (*Ok, error)
Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in
func (*Client) CheckAuthenticationCode ¶
func (client *Client) CheckAuthenticationCode(req *CheckAuthenticationCodeRequest) (*Ok, error)
Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode
func (*Client) CheckAuthenticationEmailCode ¶ added in v1.2.3
func (client *Client) CheckAuthenticationEmailCode(req *CheckAuthenticationEmailCodeRequest) (*Ok, error)
Checks the authentication of a email address. Works only when the current authorization state is authorizationStateWaitEmailCode
func (*Client) CheckAuthenticationPassword ¶
func (client *Client) CheckAuthenticationPassword(req *CheckAuthenticationPasswordRequest) (*Ok, error)
Checks the 2-step verification password for correctness. Works only when the current authorization state is authorizationStateWaitPassword
func (*Client) CheckAuthenticationPasswordRecoveryCode ¶
func (client *Client) CheckAuthenticationPasswordRecoveryCode(req *CheckAuthenticationPasswordRecoveryCodeRequest) (*Ok, error)
Checks whether a 2-step verification password recovery code sent to an email address is valid. Works only when the current authorization state is authorizationStateWaitPassword
func (*Client) CheckChangePhoneNumberCode ¶
func (client *Client) CheckChangePhoneNumberCode(req *CheckChangePhoneNumberCodeRequest) (*Ok, error)
Checks the authentication code sent to confirm a new phone number of the user
func (*Client) CheckChatFolderInviteLink ¶ added in v1.2.3
func (client *Client) CheckChatFolderInviteLink(req *CheckChatFolderInviteLinkRequest) (*ChatFolderInviteLinkInfo, error)
Checks the validity of an invite link for a chat folder and returns information about the corresponding chat folder
func (*Client) CheckChatInviteLink ¶
func (client *Client) CheckChatInviteLink(req *CheckChatInviteLinkRequest) (*ChatInviteLinkInfo, error)
Checks the validity of an invite link for a chat and returns information about the corresponding chat
func (*Client) CheckChatUsername ¶
func (client *Client) CheckChatUsername(req *CheckChatUsernameRequest) (CheckChatUsernameResult, error)
Checks whether a username can be set for a chat
func (*Client) CheckCreatedPublicChatsLimit ¶
func (client *Client) CheckCreatedPublicChatsLimit(req *CheckCreatedPublicChatsLimitRequest) (*Ok, error)
Checks whether the maximum number of owned public chats has been reached. Returns corresponding error if the limit was reached. The limit can be increased with Telegram Premium
func (*Client) CheckEmailAddressVerificationCode ¶
func (client *Client) CheckEmailAddressVerificationCode(req *CheckEmailAddressVerificationCodeRequest) (*Ok, error)
Checks the email address verification code for Telegram Passport
func (*Client) CheckLoginEmailAddressCode ¶ added in v1.2.3
func (client *Client) CheckLoginEmailAddressCode(req *CheckLoginEmailAddressCodeRequest) (*Ok, error)
Checks the login email address authentication
func (*Client) CheckPasswordRecoveryCode ¶
func (client *Client) CheckPasswordRecoveryCode(req *CheckPasswordRecoveryCodeRequest) (*Ok, error)
Checks whether a 2-step verification password recovery code sent to an email address is valid
func (*Client) CheckPhoneNumberConfirmationCode ¶
func (client *Client) CheckPhoneNumberConfirmationCode(req *CheckPhoneNumberConfirmationCodeRequest) (*Ok, error)
Checks phone number confirmation code
func (*Client) CheckPhoneNumberVerificationCode ¶
func (client *Client) CheckPhoneNumberVerificationCode(req *CheckPhoneNumberVerificationCodeRequest) (*Ok, error)
Checks the phone number verification code for Telegram Passport
func (*Client) CheckRecoveryEmailAddressCode ¶
func (client *Client) CheckRecoveryEmailAddressCode(req *CheckRecoveryEmailAddressCodeRequest) (*PasswordState, error)
Checks the 2-step verification recovery email address verification code
func (*Client) CheckStickerSetName ¶
func (client *Client) CheckStickerSetName(req *CheckStickerSetNameRequest) (CheckStickerSetNameResult, error)
Checks whether a name can be used for a new sticker set
func (*Client) CleanFileName ¶
func (client *Client) CleanFileName(req *CleanFileNameRequest) (*Text, error)
deprecated Removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. Can be called synchronously
func (*Client) ClearAllDraftMessages ¶
func (client *Client) ClearAllDraftMessages(req *ClearAllDraftMessagesRequest) (*Ok, error)
Clears message drafts in all chats
func (*Client) ClearAutosaveSettingsExceptions ¶ added in v1.2.3
Clears the list of all autosave settings exceptions. The method is guaranteed to work only after at least one call to getAutosaveSettings
func (*Client) ClearImportedContacts ¶
Clears all imported contacts, contact list remains unchanged
func (*Client) ClearRecentEmojiStatuses ¶ added in v1.2.3
Clears the list of recently used emoji statuses
func (*Client) ClearRecentReactions ¶ added in v1.2.3
Clears the list of recently used reactions
func (*Client) ClearRecentStickers ¶
func (client *Client) ClearRecentStickers(req *ClearRecentStickersRequest) (*Ok, error)
Clears the list of recently used stickers
func (*Client) ClearRecentlyFoundChats ¶
Clears the list of recently found chats
func (*Client) ClickAnimatedEmojiMessage ¶
func (client *Client) ClickAnimatedEmojiMessage(req *ClickAnimatedEmojiMessageRequest) (*Sticker, error)
Informs TDLib that a message with an animated emoji was clicked by the user. Returns a big animated sticker to be played or a 404 error if usual animation needs to be played
func (*Client) ClickChatSponsoredMessage ¶ added in v1.2.3
func (client *Client) ClickChatSponsoredMessage(req *ClickChatSponsoredMessageRequest) (*Ok, error)
Informs TDLib that the user opened the sponsored chat via the button, the name, the photo, or a mention in the sponsored message
func (*Client) ClickPremiumSubscriptionButton ¶ added in v1.2.3
Informs TDLib that the user clicked Premium subscription button on the Premium features screen
func (*Client) Close ¶
Closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes, updateAuthorizationState with authorizationStateClosed will be sent. Can be called before initialization
func (*Client) CloseChat ¶
func (client *Client) CloseChat(req *CloseChatRequest) (*Ok, error)
Informs TDLib that the chat is closed by the user. Many useful activities depend on the chat being opened or closed
func (*Client) CloseSecretChat ¶
func (client *Client) CloseSecretChat(req *CloseSecretChatRequest) (*Ok, error)
Closes a secret chat, effectively transferring its state to secretChatStateClosed
func (*Client) CloseStory ¶ added in v1.2.3
func (client *Client) CloseStory(req *CloseStoryRequest) (*Ok, error)
Informs TDLib that a story is closed by the user
func (*Client) CloseWebApp ¶ added in v1.0.6
func (client *Client) CloseWebApp(req *CloseWebAppRequest) (*Ok, error)
Informs TDLib that a previously opened Web App was closed
func (*Client) ConfirmQrCodeAuthentication ¶
func (client *Client) ConfirmQrCodeAuthentication(req *ConfirmQrCodeAuthenticationRequest) (*Session, error)
Confirms QR code authentication on another device. Returns created session on success
func (*Client) ConfirmSession ¶ added in v1.2.3
func (client *Client) ConfirmSession(req *ConfirmSessionRequest) (*Ok, error)
Confirms an unconfirmed session of the current user from another device
func (*Client) CreateBasicGroupChat ¶
func (client *Client) CreateBasicGroupChat(req *CreateBasicGroupChatRequest) (*Chat, error)
Returns an existing chat corresponding to a known basic group
func (*Client) CreateCall ¶
func (client *Client) CreateCall(req *CreateCallRequest) (*CallId, error)
Creates a new call
func (*Client) CreateChatFolder ¶ added in v1.2.3
func (client *Client) CreateChatFolder(req *CreateChatFolderRequest) (*ChatFolderInfo, error)
Creates new chat folder. Returns information about the created chat folder. There can be up to getOption("chat_folder_count_max") chat folders, but the limit can be increased with Telegram Premium
func (*Client) CreateChatFolderInviteLink ¶ added in v1.2.3
func (client *Client) CreateChatFolderInviteLink(req *CreateChatFolderInviteLinkRequest) (*ChatFolderInviteLink, error)
Creates a new invite link for a chat folder. A link can be created for a chat folder if it has only pinned and included chats
func (*Client) CreateChatInviteLink ¶
func (client *Client) CreateChatInviteLink(req *CreateChatInviteLinkRequest) (*ChatInviteLink, error)
Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat
func (*Client) CreateForumTopic ¶ added in v1.2.3
func (client *Client) CreateForumTopic(req *CreateForumTopicRequest) (*ForumTopicInfo, error)
Creates a topic in a forum supergroup chat; requires can_manage_topics rights in the supergroup
func (*Client) CreateInvoiceLink ¶ added in v1.2.3
func (client *Client) CreateInvoiceLink(req *CreateInvoiceLinkRequest) (*HttpUrl, error)
Creates a link for the given invoice; for bots only
func (*Client) CreateNewBasicGroupChat ¶
func (client *Client) CreateNewBasicGroupChat(req *CreateNewBasicGroupChatRequest) (*Chat, error)
Creates a new basic group and sends a corresponding messageBasicGroupChatCreate. Returns the newly created chat
func (*Client) CreateNewSecretChat ¶
func (client *Client) CreateNewSecretChat(req *CreateNewSecretChatRequest) (*Chat, error)
Creates a new secret chat. Returns the newly created chat
func (*Client) CreateNewStickerSet ¶
func (client *Client) CreateNewStickerSet(req *CreateNewStickerSetRequest) (*StickerSet, error)
Creates a new sticker set. Returns the newly created sticker set
func (*Client) CreateNewSupergroupChat ¶
func (client *Client) CreateNewSupergroupChat(req *CreateNewSupergroupChatRequest) (*Chat, error)
Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat
func (*Client) CreatePrivateChat ¶
func (client *Client) CreatePrivateChat(req *CreatePrivateChatRequest) (*Chat, error)
Returns an existing chat corresponding to a given user
func (*Client) CreateSecretChat ¶
func (client *Client) CreateSecretChat(req *CreateSecretChatRequest) (*Chat, error)
Returns an existing chat corresponding to a known secret chat
func (*Client) CreateSupergroupChat ¶
func (client *Client) CreateSupergroupChat(req *CreateSupergroupChatRequest) (*Chat, error)
Returns an existing chat corresponding to a known supergroup or channel
func (*Client) CreateTemporaryPassword ¶
func (client *Client) CreateTemporaryPassword(req *CreateTemporaryPasswordRequest) (*TemporaryPasswordState, error)
Creates a new temporary password for processing payments
func (*Client) CreateVideoChat ¶
func (client *Client) CreateVideoChat(req *CreateVideoChatRequest) (*GroupCallId, error)
Creates a video chat (a group call bound to a chat). Available only for basic groups, supergroups and channels; requires can_manage_video_chats rights
func (*Client) DeleteAccount ¶
func (client *Client) DeleteAccount(req *DeleteAccountRequest) (*Ok, error)
Deletes the account of the current user, deleting all information associated with the user from the server. The phone number of the account can be used to create a new account. Can be called before authorization when the current authorization state is authorizationStateWaitPassword
func (*Client) DeleteAllCallMessages ¶
func (client *Client) DeleteAllCallMessages(req *DeleteAllCallMessagesRequest) (*Ok, error)
Deletes all call messages
func (*Client) DeleteAllRevokedChatInviteLinks ¶
func (client *Client) DeleteAllRevokedChatInviteLinks(req *DeleteAllRevokedChatInviteLinksRequest) (*Ok, error)
Deletes all revoked chat invite links created by a given chat administrator. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links
func (*Client) DeleteChat ¶
func (client *Client) DeleteChat(req *DeleteChatRequest) (*Ok, error)
Deletes a chat along with all messages in the corresponding chat for all chat members. For group chats this will release the usernames and remove all members. Use the field chat.can_be_deleted_for_all_users to find whether the method can be applied to the chat
func (*Client) DeleteChatFolder ¶ added in v1.2.3
func (client *Client) DeleteChatFolder(req *DeleteChatFolderRequest) (*Ok, error)
Deletes existing chat folder
func (*Client) DeleteChatFolderInviteLink ¶ added in v1.2.3
func (client *Client) DeleteChatFolderInviteLink(req *DeleteChatFolderInviteLinkRequest) (*Ok, error)
Deletes an invite link for a chat folder
func (*Client) DeleteChatHistory ¶
func (client *Client) DeleteChatHistory(req *DeleteChatHistoryRequest) (*Ok, error)
Deletes all messages in the chat. Use chat.can_be_deleted_only_for_self and chat.can_be_deleted_for_all_users fields to find whether and how the method can be applied to the chat
func (*Client) DeleteChatMessagesByDate ¶
func (client *Client) DeleteChatMessagesByDate(req *DeleteChatMessagesByDateRequest) (*Ok, error)
Deletes all messages between the specified dates in a chat. Supported only for private chats and basic groups. Messages sent in the last 30 seconds will not be deleted
func (*Client) DeleteChatMessagesBySender ¶
func (client *Client) DeleteChatMessagesBySender(req *DeleteChatMessagesBySenderRequest) (*Ok, error)
Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires can_delete_messages administrator privileges
func (*Client) DeleteChatReplyMarkup ¶
func (client *Client) DeleteChatReplyMarkup(req *DeleteChatReplyMarkupRequest) (*Ok, error)
Deletes the default reply markup from a chat. Must be called after a one-time keyboard or a replyMarkupForceReply reply markup has been used. An updateChatReplyMarkup update will be sent if the reply markup is changed
func (*Client) DeleteCommands ¶
func (client *Client) DeleteCommands(req *DeleteCommandsRequest) (*Ok, error)
Deletes commands supported by the bot for the given user scope and language; for bots only
func (*Client) DeleteFile ¶
func (client *Client) DeleteFile(req *DeleteFileRequest) (*Ok, error)
Deletes a file from the TDLib file cache
func (*Client) DeleteForumTopic ¶ added in v1.2.3
func (client *Client) DeleteForumTopic(req *DeleteForumTopicRequest) (*Ok, error)
Deletes all messages in a forum topic; requires can_delete_messages administrator right in the supergroup unless the user is creator of the topic, the topic has no messages from other users and has at most 11 messages
func (*Client) DeleteLanguagePack ¶
func (client *Client) DeleteLanguagePack(req *DeleteLanguagePackRequest) (*Ok, error)
Deletes all information about a language pack in the current localization target. The language pack which is currently in use (including base language pack) or is being synchronized can't be deleted. Can be called before authorization
func (*Client) DeleteMessages ¶
func (client *Client) DeleteMessages(req *DeleteMessagesRequest) (*Ok, error)
Deletes messages
func (*Client) DeletePassportElement ¶
func (client *Client) DeletePassportElement(req *DeletePassportElementRequest) (*Ok, error)
Deletes a Telegram Passport element
func (*Client) DeleteProfilePhoto ¶
func (client *Client) DeleteProfilePhoto(req *DeleteProfilePhotoRequest) (*Ok, error)
Deletes a profile photo
func (*Client) DeleteRevokedChatInviteLink ¶
func (client *Client) DeleteRevokedChatInviteLink(req *DeleteRevokedChatInviteLinkRequest) (*Ok, error)
Deletes revoked chat invite links. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links
func (*Client) DeleteSavedCredentials ¶
Deletes saved credentials for all payment provider bots
func (*Client) DeleteSavedOrderInfo ¶
Deletes saved order information
func (*Client) DeleteStickerSet ¶ added in v1.2.3
func (client *Client) DeleteStickerSet(req *DeleteStickerSetRequest) (*Ok, error)
Deleted a sticker set; for bots only
func (*Client) DeleteStory ¶ added in v1.2.3
func (client *Client) DeleteStory(req *DeleteStoryRequest) (*Ok, error)
Deletes a previously sent story
func (*Client) Destroy ¶
Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in the list of all active sessions. All local data will be destroyed. After the destruction completes updateAuthorizationState with authorizationStateClosed will be sent. Can be called before authorization
func (*Client) DisableAllSupergroupUsernames ¶ added in v1.2.3
func (client *Client) DisableAllSupergroupUsernames(req *DisableAllSupergroupUsernamesRequest) (*Ok, error)
Disables all active non-editable usernames of a supergroup or channel, requires owner privileges in the supergroup or channel
func (*Client) DisableProxy ¶
Disables the currently enabled proxy. Can be called before authorization
func (*Client) DiscardCall ¶
func (client *Client) DiscardCall(req *DiscardCallRequest) (*Ok, error)
Discards a call
func (*Client) DisconnectAllWebsites ¶
Disconnects all websites from the current user's Telegram account
func (*Client) DisconnectWebsite ¶
func (client *Client) DisconnectWebsite(req *DisconnectWebsiteRequest) (*Ok, error)
Disconnects website from the current user's Telegram account
func (*Client) DownloadFile ¶
func (client *Client) DownloadFile(req *DownloadFileRequest) (*File, error)
Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile updates
func (*Client) EditChatFolder ¶ added in v1.2.3
func (client *Client) EditChatFolder(req *EditChatFolderRequest) (*ChatFolderInfo, error)
Edits existing chat folder. Returns information about the edited chat folder
func (*Client) EditChatFolderInviteLink ¶ added in v1.2.3
func (client *Client) EditChatFolderInviteLink(req *EditChatFolderInviteLinkRequest) (*ChatFolderInviteLink, error)
Edits an invite link for a chat folder
func (*Client) EditChatInviteLink ¶
func (client *Client) EditChatInviteLink(req *EditChatInviteLinkRequest) (*ChatInviteLink, error)
Edits a non-primary invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links
func (*Client) EditCustomLanguagePackInfo ¶
func (client *Client) EditCustomLanguagePackInfo(req *EditCustomLanguagePackInfoRequest) (*Ok, error)
Edits information about a custom local language pack in the current localization target. Can be called before authorization
func (*Client) EditForumTopic ¶ added in v1.2.3
func (client *Client) EditForumTopic(req *EditForumTopicRequest) (*Ok, error)
Edits title and icon of a topic in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup unless the user is creator of the topic
func (*Client) EditInlineMessageCaption ¶
func (client *Client) EditInlineMessageCaption(req *EditInlineMessageCaptionRequest) (*Ok, error)
Edits the caption of an inline message sent via a bot; for bots only
func (*Client) EditInlineMessageLiveLocation ¶
func (client *Client) EditInlineMessageLiveLocation(req *EditInlineMessageLiveLocationRequest) (*Ok, error)
Edits the content of a live location in an inline message sent via a bot; for bots only
func (*Client) EditInlineMessageMedia ¶
func (client *Client) EditInlineMessageMedia(req *EditInlineMessageMediaRequest) (*Ok, error)
Edits the content of a message with an animation, an audio, a document, a photo or a video in an inline message sent via a bot; for bots only
func (*Client) EditInlineMessageReplyMarkup ¶
func (client *Client) EditInlineMessageReplyMarkup(req *EditInlineMessageReplyMarkupRequest) (*Ok, error)
Edits the reply markup of an inline message sent via a bot; for bots only
func (*Client) EditInlineMessageText ¶
func (client *Client) EditInlineMessageText(req *EditInlineMessageTextRequest) (*Ok, error)
Edits the text of an inline text or game message sent via a bot; for bots only
func (*Client) EditMessageCaption ¶
func (client *Client) EditMessageCaption(req *EditMessageCaptionRequest) (*Message, error)
Edits the message content caption. Returns the edited message after the edit is completed on the server side
func (*Client) EditMessageLiveLocation ¶
func (client *Client) EditMessageLiveLocation(req *EditMessageLiveLocationRequest) (*Message, error)
Edits the message content of a live location. Messages can be edited for a limited period of time specified in the live location. Returns the edited message after the edit is completed on the server side
func (*Client) EditMessageMedia ¶
func (client *Client) EditMessageMedia(req *EditMessageMediaRequest) (*Message, error)
Edits the content of a message with an animation, an audio, a document, a photo or a video, including message caption. If only the caption needs to be edited, use editMessageCaption instead. The media can't be edited if the message was set to self-destruct or to a self-destructing media. The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa. Returns the edited message after the edit is completed on the server side
func (*Client) EditMessageReplyMarkup ¶
func (client *Client) EditMessageReplyMarkup(req *EditMessageReplyMarkupRequest) (*Message, error)
Edits the message reply markup; for bots only. Returns the edited message after the edit is completed on the server side
func (*Client) EditMessageSchedulingState ¶
func (client *Client) EditMessageSchedulingState(req *EditMessageSchedulingStateRequest) (*Ok, error)
Edits the time when a scheduled message will be sent. Scheduling state of all messages in the same album or forwarded together with the message will be also changed
func (*Client) EditMessageText ¶
func (client *Client) EditMessageText(req *EditMessageTextRequest) (*Message, error)
Edits the text of a message (or a text of a game message). Returns the edited message after the edit is completed on the server side
func (*Client) EditProxy ¶
func (client *Client) EditProxy(req *EditProxyRequest) (*Proxy, error)
Edits an existing proxy server for network requests. Can be called before authorization
func (*Client) EditStory ¶ added in v1.2.3
func (client *Client) EditStory(req *EditStoryRequest) (*Ok, error)
Changes content and caption of a previously sent story
func (*Client) EnableProxy ¶
func (client *Client) EnableProxy(req *EnableProxyRequest) (*Ok, error)
Enables a proxy. Only one proxy can be enabled at a time. Can be called before authorization
func (*Client) EndGroupCall ¶
func (client *Client) EndGroupCall(req *EndGroupCallRequest) (*Ok, error)
Ends a group call. Requires groupCall.can_be_managed
func (*Client) EndGroupCallRecording ¶
func (client *Client) EndGroupCallRecording(req *EndGroupCallRecordingRequest) (*Ok, error)
Ends recording of an active group call. Requires groupCall.can_be_managed group call flag
func (*Client) EndGroupCallScreenSharing ¶
func (client *Client) EndGroupCallScreenSharing(req *EndGroupCallScreenSharingRequest) (*Ok, error)
Ends screen sharing in a joined group call
func (*Client) FinishFileGeneration ¶
func (client *Client) FinishFileGeneration(req *FinishFileGenerationRequest) (*Ok, error)
Finishes the file generation
func (*Client) ForwardMessages ¶
func (client *Client) ForwardMessages(req *ForwardMessagesRequest) (*Messages, error)
Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can't be forwarded, null will be returned instead of the message
func (*Client) GetAccountTtl ¶
func (client *Client) GetAccountTtl() (*AccountTtl, error)
Returns the period of inactivity after which the account of the current user will automatically be deleted
func (*Client) GetActiveLiveLocationMessages ¶
Returns all active live locations that need to be updated by the application. The list is persistent across application restarts only if the message database is used
func (*Client) GetActiveSessions ¶
Returns all active sessions of the current user
func (*Client) GetAllPassportElements ¶
func (client *Client) GetAllPassportElements(req *GetAllPassportElementsRequest) (*PassportElements, error)
Returns all available Telegram Passport elements
func (*Client) GetAllStickerEmojis ¶ added in v1.2.3
func (client *Client) GetAllStickerEmojis(req *GetAllStickerEmojisRequest) (*Emojis, error)
Returns unique emoji that correspond to stickers to be found by the getStickers(sticker_type, query, 1000000, chat_id)
func (*Client) GetAnimatedEmoji ¶
func (client *Client) GetAnimatedEmoji(req *GetAnimatedEmojiRequest) (*AnimatedEmoji, error)
Returns an animated emoji corresponding to a given emoji. Returns a 404 error if the emoji has no animated emoji
func (*Client) GetApplicationConfig ¶
Returns application config, provided by the server. Can be called before authorization
func (*Client) GetApplicationDownloadLink ¶
Returns the link for downloading official Telegram application to be used when the current user invites friends to Telegram
func (*Client) GetArchiveChatListSettings ¶ added in v1.2.3
func (client *Client) GetArchiveChatListSettings() (*ArchiveChatListSettings, error)
Returns settings for automatic moving of chats to and from the Archive chat lists
func (*Client) GetArchivedStickerSets ¶
func (client *Client) GetArchivedStickerSets(req *GetArchivedStickerSetsRequest) (*StickerSets, error)
Returns a list of archived sticker sets
func (*Client) GetArchivedStories ¶ added in v1.2.3
func (client *Client) GetArchivedStories(req *GetArchivedStoriesRequest) (*Stories, error)
Returns the list of all stories of the current user. The stories are returned in a reverse chronological order (i.e., in order of decreasing story_id). For optimal performance, the number of returned stories is chosen by TDLib
func (*Client) GetAttachedStickerSets ¶
func (client *Client) GetAttachedStickerSets(req *GetAttachedStickerSetsRequest) (*StickerSets, error)
Returns a list of sticker sets attached to a file, including regular, mask, and emoji sticker sets. Currently, only animations, photos, and videos can have attached sticker sets
func (*Client) GetAttachmentMenuBot ¶ added in v1.0.6
func (client *Client) GetAttachmentMenuBot(req *GetAttachmentMenuBotRequest) (*AttachmentMenuBot, error)
Returns information about a bot that can be added to attachment or side menu
func (*Client) GetAuthorizationState ¶
func (client *Client) GetAuthorizationState() (AuthorizationState, error)
Returns the current authorization state; this is an offline request. For informational purposes only. Use updateAuthorizationState instead to maintain the current authorization state. Can be called before initialization
func (*Client) GetAutoDownloadSettingsPresets ¶
func (client *Client) GetAutoDownloadSettingsPresets() (*AutoDownloadSettingsPresets, error)
Returns auto-download settings presets for the current user
func (*Client) GetAutosaveSettings ¶ added in v1.2.3
func (client *Client) GetAutosaveSettings() (*AutosaveSettings, error)
Returns autosave settings for the current user
func (*Client) GetBackgroundUrl ¶
func (client *Client) GetBackgroundUrl(req *GetBackgroundUrlRequest) (*HttpUrl, error)
Constructs a persistent HTTP URL for a background
func (*Client) GetBackgrounds ¶
func (client *Client) GetBackgrounds(req *GetBackgroundsRequest) (*Backgrounds, error)
Returns backgrounds installed by the user
func (*Client) GetBankCardInfo ¶
func (client *Client) GetBankCardInfo(req *GetBankCardInfoRequest) (*BankCardInfo, error)
Returns information about a bank card
func (*Client) GetBasicGroup ¶
func (client *Client) GetBasicGroup(req *GetBasicGroupRequest) (*BasicGroup, error)
Returns information about a basic group by its identifier. This is an offline request if the current user is not a bot
func (*Client) GetBasicGroupFullInfo ¶
func (client *Client) GetBasicGroupFullInfo(req *GetBasicGroupFullInfoRequest) (*BasicGroupFullInfo, error)
Returns full information about a basic group by its identifier
func (*Client) GetBlockedMessageSenders ¶
func (client *Client) GetBlockedMessageSenders(req *GetBlockedMessageSendersRequest) (*MessageSenders, error)
Returns users and chats that were blocked by the current user
func (*Client) GetBotInfoDescription ¶ added in v1.2.3
func (client *Client) GetBotInfoDescription(req *GetBotInfoDescriptionRequest) (*Text, error)
Returns the text shown in the chat with a bot if the chat is empty in the given language. Can be called only if userTypeBot.can_be_edited == true
func (*Client) GetBotInfoShortDescription ¶ added in v1.2.3
func (client *Client) GetBotInfoShortDescription(req *GetBotInfoShortDescriptionRequest) (*Text, error)
Returns the text shown on a bot's profile page and sent together with the link when users share the bot in the given language. Can be called only if userTypeBot.can_be_edited == true
func (*Client) GetBotName ¶ added in v1.2.3
func (client *Client) GetBotName(req *GetBotNameRequest) (*Text, error)
Returns the name of a bot in the given language. Can be called only if userTypeBot.can_be_edited == true
func (*Client) GetCallbackQueryAnswer ¶
func (client *Client) GetCallbackQueryAnswer(req *GetCallbackQueryAnswerRequest) (*CallbackQueryAnswer, error)
Sends a callback query to a bot and returns an answer. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires
func (*Client) GetCallbackQueryMessage ¶
func (client *Client) GetCallbackQueryMessage(req *GetCallbackQueryMessageRequest) (*Message, error)
Returns information about a message with the callback button that originated a callback query; for bots only
func (*Client) GetChat ¶
func (client *Client) GetChat(req *GetChatRequest) (*Chat, error)
Returns information about a chat by its identifier; this is an offline request if the current user is not a bot
func (*Client) GetChatActiveStories ¶ added in v1.2.3
func (client *Client) GetChatActiveStories(req *GetChatActiveStoriesRequest) (*ChatActiveStories, error)
Returns the list of active stories posted by the given chat
func (*Client) GetChatAdministrators ¶
func (client *Client) GetChatAdministrators(req *GetChatAdministratorsRequest) (*ChatAdministrators, error)
Returns a list of administrators of the chat with their custom titles
func (*Client) GetChatAvailableMessageSenders ¶
func (client *Client) GetChatAvailableMessageSenders(req *GetChatAvailableMessageSendersRequest) (*ChatMessageSenders, error)
Returns list of message sender identifiers, which can be used to send messages in a chat
func (*Client) GetChatEventLog ¶
func (client *Client) GetChatEventLog(req *GetChatEventLogRequest) (*ChatEvents, error)
Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only for supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order of decreasing event_id)
func (*Client) GetChatFolder ¶ added in v1.2.3
func (client *Client) GetChatFolder(req *GetChatFolderRequest) (*ChatFolder, error)
Returns information about a chat folder by its identifier
func (*Client) GetChatFolderChatCount ¶ added in v1.2.3
func (client *Client) GetChatFolderChatCount(req *GetChatFolderChatCountRequest) (*Count, error)
Returns approximate number of chats in a being created chat folder. Main and archive chat lists must be fully preloaded for this function to work correctly
func (*Client) GetChatFolderChatsToLeave ¶ added in v1.2.3
func (client *Client) GetChatFolderChatsToLeave(req *GetChatFolderChatsToLeaveRequest) (*Chats, error)
Returns identifiers of pinned or always included chats from a chat folder, which are suggested to be left when the chat folder is deleted
func (*Client) GetChatFolderDefaultIconName ¶ added in v1.2.3
func (client *Client) GetChatFolderDefaultIconName(req *GetChatFolderDefaultIconNameRequest) (*ChatFolderIcon, error)
deprecated Returns default icon name for a folder. Can be called synchronously
func (*Client) GetChatFolderInviteLinks ¶ added in v1.2.3
func (client *Client) GetChatFolderInviteLinks(req *GetChatFolderInviteLinksRequest) (*ChatFolderInviteLinks, error)
Returns invite links created by the current user for a shareable chat folder
func (*Client) GetChatFolderNewChats ¶ added in v1.2.3
func (client *Client) GetChatFolderNewChats(req *GetChatFolderNewChatsRequest) (*Chats, error)
Returns new chats added to a shareable chat folder by its owner. The method must be called at most once in getOption("chat_folder_new_chats_update_period") for the given chat folder
func (*Client) GetChatHistory ¶
func (client *Client) GetChatHistory(req *GetChatHistoryRequest) (*Messages, error)
Returns messages in a chat. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib. This is an offline request if only_local is true
func (*Client) GetChatInviteLink ¶
func (client *Client) GetChatInviteLink(req *GetChatInviteLinkRequest) (*ChatInviteLink, error)
Returns information about an invite link. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links
func (*Client) GetChatInviteLinkCounts ¶
func (client *Client) GetChatInviteLinkCounts(req *GetChatInviteLinkCountsRequest) (*ChatInviteLinkCounts, error)
Returns list of chat administrators with number of their invite links. Requires owner privileges in the chat
func (*Client) GetChatInviteLinkMembers ¶
func (client *Client) GetChatInviteLinkMembers(req *GetChatInviteLinkMembersRequest) (*ChatInviteLinkMembers, error)
Returns chat members joined a chat via an invite link. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links
func (*Client) GetChatInviteLinks ¶
func (client *Client) GetChatInviteLinks(req *GetChatInviteLinksRequest) (*ChatInviteLinks, error)
Returns invite links for a chat created by specified administrator. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links
func (*Client) GetChatJoinRequests ¶
func (client *Client) GetChatJoinRequests(req *GetChatJoinRequestsRequest) (*ChatJoinRequests, error)
Returns pending join requests in a chat
func (*Client) GetChatListsToAddChat ¶
func (client *Client) GetChatListsToAddChat(req *GetChatListsToAddChatRequest) (*ChatLists, error)
Returns chat lists to which the chat can be added. This is an offline request
func (*Client) GetChatMember ¶
func (client *Client) GetChatMember(req *GetChatMemberRequest) (*ChatMember, error)
Returns information about a single member of a chat
func (*Client) GetChatMessageByDate ¶
func (client *Client) GetChatMessageByDate(req *GetChatMessageByDateRequest) (*Message, error)
Returns the last message sent in a chat no later than the specified date
func (*Client) GetChatMessageCalendar ¶
func (client *Client) GetChatMessageCalendar(req *GetChatMessageCalendarRequest) (*MessageCalendar, error)
Returns information about the next messages of the specified type in the chat split by days. Returns the results in reverse chronological order. Can return partial result for the last returned day. Behavior of this method depends on the value of the option "utc_time_offset"
func (*Client) GetChatMessageCount ¶
func (client *Client) GetChatMessageCount(req *GetChatMessageCountRequest) (*Count, error)
Returns approximate number of messages of the specified type in the chat
func (*Client) GetChatMessagePosition ¶ added in v1.2.3
func (client *Client) GetChatMessagePosition(req *GetChatMessagePositionRequest) (*Count, error)
Returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat. Cannot be used in secret chats
func (*Client) GetChatNotificationSettingsExceptions ¶
func (client *Client) GetChatNotificationSettingsExceptions(req *GetChatNotificationSettingsExceptionsRequest) (*Chats, error)
Returns list of chats with non-default notification settings for new messages
func (*Client) GetChatPinnedMessage ¶
func (client *Client) GetChatPinnedMessage(req *GetChatPinnedMessageRequest) (*Message, error)
Returns information about a newest pinned message in the chat
func (*Client) GetChatPinnedStories ¶ added in v1.2.3
func (client *Client) GetChatPinnedStories(req *GetChatPinnedStoriesRequest) (*Stories, error)
Returns the list of pinned stories posted by the given chat. The stories are returned in a reverse chronological order (i.e., in order of decreasing story_id). For optimal performance, the number of returned stories is chosen by TDLib
func (*Client) GetChatScheduledMessages ¶
func (client *Client) GetChatScheduledMessages(req *GetChatScheduledMessagesRequest) (*Messages, error)
Returns all scheduled messages in a chat. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id)
func (*Client) GetChatSparseMessagePositions ¶
func (client *Client) GetChatSparseMessagePositions(req *GetChatSparseMessagePositionsRequest) (*MessagePositions, error)
Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). Cannot be used in secret chats or with searchMessagesFilterFailedToSend filter without an enabled message database
func (*Client) GetChatSponsoredMessages ¶ added in v1.2.3
func (client *Client) GetChatSponsoredMessages(req *GetChatSponsoredMessagesRequest) (*SponsoredMessages, error)
Returns sponsored messages to be shown in a chat; for channel chats only
func (*Client) GetChatStatistics ¶
func (client *Client) GetChatStatistics(req *GetChatStatisticsRequest) (ChatStatistics, error)
Returns detailed statistics about a chat. Currently, this method can be used only for supergroups and channels. Can be used only if supergroupFullInfo.can_get_statistics == true
func (*Client) GetChats ¶
func (client *Client) GetChats(req *GetChatsRequest) (*Chats, error)
Returns an ordered list of chats from the beginning of a chat list. For informational purposes only. Use loadChats and updates processing instead to maintain chat lists in a consistent state
func (*Client) GetChatsForChatFolderInviteLink ¶ added in v1.2.3
func (client *Client) GetChatsForChatFolderInviteLink(req *GetChatsForChatFolderInviteLinkRequest) (*Chats, error)
Returns identifiers of chats from a chat folder, suitable for adding to a chat folder invite link
func (*Client) GetCloseFriends ¶ added in v1.2.3
Returns all close friends of the current user
func (*Client) GetCommands ¶
func (client *Client) GetCommands(req *GetCommandsRequest) (*BotCommands, error)
Returns list of commands supported by the bot for the given user scope and language; for bots only
func (*Client) GetConnectedWebsites ¶
func (client *Client) GetConnectedWebsites() (*ConnectedWebsites, error)
Returns all website where the current user used Telegram to log in
func (*Client) GetContacts ¶
Returns all contacts of the user
func (*Client) GetCountries ¶
Returns information about existing countries. Can be called before authorization
func (*Client) GetCountryCode ¶
Uses the current IP address to find the current country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be called before authorization
func (*Client) GetCreatedPublicChats ¶
func (client *Client) GetCreatedPublicChats(req *GetCreatedPublicChatsRequest) (*Chats, error)
Returns a list of public chats of the specified type, owned by the user
func (*Client) GetCurrentState ¶
Returns all updates needed to restore current TDLib state, i.e. all actual updateAuthorizationState/updateUser/updateNewChat and others. This is especially useful if TDLib is run in a separate process. Can be called before initialization
func (*Client) GetCustomEmojiReactionAnimations ¶ added in v1.2.3
Returns TGS stickers with generic animations for custom emoji reactions
func (*Client) GetCustomEmojiStickers ¶ added in v1.2.3
func (client *Client) GetCustomEmojiStickers(req *GetCustomEmojiStickersRequest) (*Stickers, error)
Returns list of custom emoji stickers by their identifiers. Stickers are returned in arbitrary order. Only found stickers are returned
func (*Client) GetDatabaseStatistics ¶
func (client *Client) GetDatabaseStatistics() (*DatabaseStatistics, error)
Returns database statistics
func (*Client) GetDeepLinkInfo ¶
func (client *Client) GetDeepLinkInfo(req *GetDeepLinkInfoRequest) (*DeepLinkInfo, error)
Returns information about a tg:// deep link. Use "tg://need_update_for_some_feature" or "tg:some_unsupported_feature" for testing. Returns a 404 error for unknown links. Can be called before authorization
func (*Client) GetDefaultChatPhotoCustomEmojiStickers ¶ added in v1.2.3
Returns default list of custom emoji stickers for placing on a chat photo
func (*Client) GetDefaultEmojiStatuses ¶ added in v1.2.3
func (client *Client) GetDefaultEmojiStatuses() (*EmojiStatuses, error)
Returns default emoji statuses
func (*Client) GetDefaultMessageAutoDeleteTime ¶ added in v1.2.3
func (client *Client) GetDefaultMessageAutoDeleteTime() (*MessageAutoDeleteTime, error)
Returns default message auto-delete time setting for new chats
func (*Client) GetDefaultProfilePhotoCustomEmojiStickers ¶ added in v1.2.3
Returns default list of custom emoji stickers for placing on a profile photo
func (*Client) GetEmojiCategories ¶ added in v1.2.3
func (client *Client) GetEmojiCategories(req *GetEmojiCategoriesRequest) (*EmojiCategories, error)
Returns available emojis categories
func (*Client) GetEmojiReaction ¶ added in v1.2.3
func (client *Client) GetEmojiReaction(req *GetEmojiReactionRequest) (*EmojiReaction, error)
Returns information about a emoji reaction. Returns a 404 error if the reaction is not found
func (*Client) GetEmojiSuggestionsUrl ¶
func (client *Client) GetEmojiSuggestionsUrl(req *GetEmojiSuggestionsUrlRequest) (*HttpUrl, error)
Returns an HTTP URL which can be used to automatically log in to the translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation
func (*Client) GetExternalLink ¶
func (client *Client) GetExternalLink(req *GetExternalLinkRequest) (*HttpUrl, error)
Returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP link. Use the method getExternalLinkInfo to find whether a prior user confirmation is needed
func (*Client) GetExternalLinkInfo ¶
func (client *Client) GetExternalLinkInfo(req *GetExternalLinkInfoRequest) (LoginUrlInfo, error)
Returns information about an action to be done when the current user clicks an external link. Don't use this method for links from secret chats if web page preview is disabled in secret chats
func (*Client) GetFavoriteStickers ¶
Returns favorite stickers
func (*Client) GetFile ¶
func (client *Client) GetFile(req *GetFileRequest) (*File, error)
Returns information about a file; this is an offline request
func (*Client) GetFileDownloadedPrefixSize ¶
func (client *Client) GetFileDownloadedPrefixSize(req *GetFileDownloadedPrefixSizeRequest) (*FileDownloadedPrefixSize, error)
Returns file downloaded prefix size from a given offset, in bytes
func (*Client) GetFileExtension ¶
func (client *Client) GetFileExtension(req *GetFileExtensionRequest) (*Text, error)
deprecated Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously
func (*Client) GetFileMimeType ¶
func (client *Client) GetFileMimeType(req *GetFileMimeTypeRequest) (*Text, error)
deprecated Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously
func (*Client) GetForumTopic ¶ added in v1.2.3
func (client *Client) GetForumTopic(req *GetForumTopicRequest) (*ForumTopic, error)
Returns information about a forum topic
func (*Client) GetForumTopicDefaultIcons ¶ added in v1.2.3
Returns list of custom emojis, which can be used as forum topic icon by all users
func (*Client) GetForumTopicLink ¶ added in v1.2.3
func (client *Client) GetForumTopicLink(req *GetForumTopicLinkRequest) (*MessageLink, error)
Returns an HTTPS link to a topic in a forum chat. This is an offline request
func (*Client) GetForumTopics ¶ added in v1.2.3
func (client *Client) GetForumTopics(req *GetForumTopicsRequest) (*ForumTopics, error)
Returns found forum topics in a forum chat. This is a temporary method for getting information about topic list from the server
func (*Client) GetGameHighScores ¶
func (client *Client) GetGameHighScores(req *GetGameHighScoresRequest) (*GameHighScores, error)
Returns the high scores for a game and some part of the high score table in the range of the specified user; for bots only
func (*Client) GetGroupCall ¶
func (client *Client) GetGroupCall(req *GetGroupCallRequest) (*GroupCall, error)
Returns information about a group call
func (*Client) GetGroupCallInviteLink ¶
func (client *Client) GetGroupCallInviteLink(req *GetGroupCallInviteLinkRequest) (*HttpUrl, error)
Returns invite link to a video chat in a public chat
func (*Client) GetGroupCallStreamSegment ¶
func (client *Client) GetGroupCallStreamSegment(req *GetGroupCallStreamSegmentRequest) (*FilePart, error)
Returns a file with a segment of a group call stream in a modified OGG format for audio or MPEG-4 format for video
func (*Client) GetGroupCallStreams ¶ added in v1.0.6
func (client *Client) GetGroupCallStreams(req *GetGroupCallStreamsRequest) (*GroupCallStreams, error)
Returns information about available group call streams
func (*Client) GetGroupsInCommon ¶
func (client *Client) GetGroupsInCommon(req *GetGroupsInCommonRequest) (*Chats, error)
Returns a list of common group chats with a given user. Chats are sorted by their type and creation date
func (*Client) GetImportedContactCount ¶
Returns the total number of imported contacts
func (*Client) GetInactiveSupergroupChats ¶
Returns a list of recently inactive supergroups and channels. Can be used when user reaches limit on the number of joined supergroups and channels and receives CHANNELS_TOO_MUCH error. Also, the limit can be increased with Telegram Premium
func (*Client) GetInlineGameHighScores ¶
func (client *Client) GetInlineGameHighScores(req *GetInlineGameHighScoresRequest) (*GameHighScores, error)
Returns game high scores and some part of the high score table in the range of the specified user; for bots only
func (*Client) GetInlineQueryResults ¶
func (client *Client) GetInlineQueryResults(req *GetInlineQueryResultsRequest) (*InlineQueryResults, error)
Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires
func (*Client) GetInstalledStickerSets ¶
func (client *Client) GetInstalledStickerSets(req *GetInstalledStickerSetsRequest) (*StickerSets, error)
Returns a list of installed sticker sets
func (*Client) GetInternalLink ¶ added in v1.2.3
func (client *Client) GetInternalLink(req *GetInternalLinkRequest) (*HttpUrl, error)
Returns an HTTPS or a tg: link with the given type. Can be called before authorization
func (*Client) GetInternalLinkType ¶
func (client *Client) GetInternalLinkType(req *GetInternalLinkTypeRequest) (InternalLinkType, error)
Returns information about the type of an internal link. Returns a 404 error if the link is not internal. Can be called before authorization
func (*Client) GetJsonString ¶
func (client *Client) GetJsonString(req *GetJsonStringRequest) (*Text, error)
deprecated Converts a JsonValue object to corresponding JSON-serialized string. Can be called synchronously
func (*Client) GetJsonValue ¶
func (client *Client) GetJsonValue(req *GetJsonValueRequest) (JsonValue, error)
deprecated Converts a JSON-serialized string to corresponding JsonValue object. Can be called synchronously
func (*Client) GetLanguagePackInfo ¶
func (client *Client) GetLanguagePackInfo(req *GetLanguagePackInfoRequest) (*LanguagePackInfo, error)
Returns information about a language pack. Returned language pack identifier may be different from a provided one. Can be called before authorization
func (*Client) GetLanguagePackString ¶
func (client *Client) GetLanguagePackString(req *GetLanguagePackStringRequest) (LanguagePackStringValue, error)
deprecated Returns a string stored in the local database from the specified localization target and language pack by its key. Returns a 404 error if the string is not found. Can be called synchronously
func (*Client) GetLanguagePackStrings ¶
func (client *Client) GetLanguagePackStrings(req *GetLanguagePackStringsRequest) (*LanguagePackStrings, error)
Returns strings from a language pack in the current localization target by their keys. Can be called before authorization
func (*Client) GetListener ¶
func (*Client) GetLocalizationTargetInfo ¶
func (client *Client) GetLocalizationTargetInfo(req *GetLocalizationTargetInfoRequest) (*LocalizationTargetInfo, error)
Returns information about the current localization target. This is an offline request if only_local is true. Can be called before authorization
func (*Client) GetLogStream ¶
deprecated Returns information about currently used log stream for internal logging of TDLib. Can be called synchronously
func (*Client) GetLogTagVerbosityLevel ¶
func (client *Client) GetLogTagVerbosityLevel(req *GetLogTagVerbosityLevelRequest) (*LogVerbosityLevel, error)
deprecated Returns current verbosity level for a specified TDLib internal log tag. Can be called synchronously
func (*Client) GetLogTags ¶
deprecated Returns list of available TDLib internal log tags, for example, ["actor", "binlog", "connections", "notifications", "proxy"]. Can be called synchronously
func (*Client) GetLogVerbosityLevel ¶
func (client *Client) GetLogVerbosityLevel() (*LogVerbosityLevel, error)
deprecated Returns current verbosity level of the internal logging of TDLib. Can be called synchronously
func (*Client) GetLoginUrl ¶
func (client *Client) GetLoginUrl(req *GetLoginUrlRequest) (*HttpUrl, error)
Returns an HTTP URL which can be used to automatically authorize the user on a website after clicking an inline button of type inlineKeyboardButtonTypeLoginUrl. Use the method getLoginUrlInfo to find whether a prior user confirmation is needed. If an error is returned, then the button must be handled as an ordinary URL button
func (*Client) GetLoginUrlInfo ¶
func (client *Client) GetLoginUrlInfo(req *GetLoginUrlInfoRequest) (LoginUrlInfo, error)
Returns information about a button of type inlineKeyboardButtonTypeLoginUrl. The method needs to be called when the user presses the button
func (*Client) GetMapThumbnailFile ¶
func (client *Client) GetMapThumbnailFile(req *GetMapThumbnailFileRequest) (*File, error)
Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded
func (*Client) GetMarkdownText ¶
func (client *Client) GetMarkdownText(req *GetMarkdownTextRequest) (*FormattedText, error)
deprecated Replaces text entities with Markdown formatting in a human-friendly format. Entities that can't be represented in Markdown unambiguously are kept as is. Can be called synchronously
func (*Client) GetMenuButton ¶ added in v1.0.6
func (client *Client) GetMenuButton(req *GetMenuButtonRequest) (*BotMenuButton, error)
Returns menu button set by the bot for the given user; for bots only
func (*Client) GetMessage ¶
func (client *Client) GetMessage(req *GetMessageRequest) (*Message, error)
Returns information about a message
func (*Client) GetMessageAddedReactions ¶ added in v1.0.6
func (client *Client) GetMessageAddedReactions(req *GetMessageAddedReactionsRequest) (*AddedReactions, error)
Returns reactions added for a message, along with their sender
func (*Client) GetMessageAvailableReactions ¶ added in v1.0.6
func (client *Client) GetMessageAvailableReactions(req *GetMessageAvailableReactionsRequest) (*AvailableReactions, error)
Returns reactions, which can be added to a message. The list can change after updateActiveEmojiReactions, updateChatAvailableReactions for the chat, or updateMessageInteractionInfo for the message
func (*Client) GetMessageEmbeddingCode ¶
func (client *Client) GetMessageEmbeddingCode(req *GetMessageEmbeddingCodeRequest) (*Text, error)
Returns an HTML code for embedding the message. Available only for messages in supergroups and channels with a username
func (*Client) GetMessageFileType ¶
func (client *Client) GetMessageFileType(req *GetMessageFileTypeRequest) (MessageFileType, error)
Returns information about a file with messages exported from another application
func (*Client) GetMessageImportConfirmationText ¶
func (client *Client) GetMessageImportConfirmationText(req *GetMessageImportConfirmationTextRequest) (*Text, error)
Returns a confirmation text to be shown to the user before starting message import
func (*Client) GetMessageLink ¶
func (client *Client) GetMessageLink(req *GetMessageLinkRequest) (*MessageLink, error)
Returns an HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels, or if message.can_get_media_timestamp_links and a media timestamp link is generated. This is an offline request
func (*Client) GetMessageLinkInfo ¶
func (client *Client) GetMessageLinkInfo(req *GetMessageLinkInfoRequest) (*MessageLinkInfo, error)
Returns information about a public or private message link. Can be called for any internal link of the type internalLinkTypeMessage
func (*Client) GetMessageLocally ¶
func (client *Client) GetMessageLocally(req *GetMessageLocallyRequest) (*Message, error)
Returns information about a message, if it is available without sending network request. This is an offline request
func (*Client) GetMessagePublicForwards ¶
func (client *Client) GetMessagePublicForwards(req *GetMessagePublicForwardsRequest) (*FoundMessages, error)
Returns forwarded copies of a channel message to different public channels. For optimal performance, the number of returned messages is chosen by TDLib
func (*Client) GetMessageStatistics ¶
func (client *Client) GetMessageStatistics(req *GetMessageStatisticsRequest) (*MessageStatistics, error)
Returns detailed statistics about a message. Can be used only if message.can_get_statistics == true
func (*Client) GetMessageThread ¶
func (client *Client) GetMessageThread(req *GetMessageThreadRequest) (*MessageThreadInfo, error)
Returns information about a message thread. Can be used only if message.can_get_message_thread == true
func (*Client) GetMessageThreadHistory ¶
func (client *Client) GetMessageThreadHistory(req *GetMessageThreadHistoryRequest) (*Messages, error)
Returns messages in a message thread of a message. Can be used only if message.can_get_message_thread == true. Message thread of a channel message is in the channel's linked supergroup. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib
func (*Client) GetMessageViewers ¶
func (client *Client) GetMessageViewers(req *GetMessageViewersRequest) (*MessageViewers, error)
Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned. The method can be called if message.can_get_viewers == true
func (*Client) GetMessages ¶
func (client *Client) GetMessages(req *GetMessagesRequest) (*Messages, error)
Returns information about messages. If a message is not found, returns null on the corresponding position of the result
func (*Client) GetNetworkStatistics ¶
func (client *Client) GetNetworkStatistics(req *GetNetworkStatisticsRequest) (*NetworkStatistics, error)
Returns network data usage statistics. Can be called before authorization
func (*Client) GetOption ¶
func (client *Client) GetOption(req *GetOptionRequest) (OptionValue, error)
deprecated Returns the value of an option by its name. (Check the list of available options on https://core.telegram.org/tdlib/options.) Can be called before authorization. Can be called synchronously for options "version" and "commit_hash"
func (*Client) GetPassportAuthorizationForm ¶
func (client *Client) GetPassportAuthorizationForm(req *GetPassportAuthorizationFormRequest) (*PassportAuthorizationForm, error)
Returns a Telegram Passport authorization form for sharing data with a service
func (*Client) GetPassportAuthorizationFormAvailableElements ¶
func (client *Client) GetPassportAuthorizationFormAvailableElements(req *GetPassportAuthorizationFormAvailableElementsRequest) (*PassportElementsWithErrors, error)
Returns already available Telegram Passport elements suitable for completing a Telegram Passport authorization form. Result can be received only once for each authorization form
func (*Client) GetPassportElement ¶
func (client *Client) GetPassportElement(req *GetPassportElementRequest) (PassportElement, error)
Returns one of the available Telegram Passport elements
func (*Client) GetPasswordState ¶
func (client *Client) GetPasswordState() (*PasswordState, error)
Returns the current state of 2-step verification
func (*Client) GetPaymentForm ¶
func (client *Client) GetPaymentForm(req *GetPaymentFormRequest) (*PaymentForm, error)
Returns an invoice payment form. This method must be called when the user presses inlineKeyboardButtonBuy
func (*Client) GetPaymentReceipt ¶
func (client *Client) GetPaymentReceipt(req *GetPaymentReceiptRequest) (*PaymentReceipt, error)
Returns information about a successful payment
func (*Client) GetPhoneNumberInfo ¶
func (client *Client) GetPhoneNumberInfo(req *GetPhoneNumberInfoRequest) (*PhoneNumberInfo, error)
Returns information about a phone number by its prefix. Can be called before authorization
func (*Client) GetPhoneNumberInfoSync ¶
func (client *Client) GetPhoneNumberInfoSync(req *GetPhoneNumberInfoSyncRequest) (*PhoneNumberInfo, error)
deprecated Returns information about a phone number by its prefix synchronously. getCountries must be called at least once after changing localization to the specified language if properly localized country information is expected. Can be called synchronously
func (*Client) GetPollVoters ¶
func (client *Client) GetPollVoters(req *GetPollVotersRequest) (*MessageSenders, error)
Returns message senders voted for the specified option in a non-anonymous polls. For optimal performance, the number of returned users is chosen by TDLib
func (*Client) GetPreferredCountryLanguage ¶
func (client *Client) GetPreferredCountryLanguage(req *GetPreferredCountryLanguageRequest) (*Text, error)
Returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown
func (*Client) GetPremiumFeatures ¶ added in v1.2.3
func (client *Client) GetPremiumFeatures(req *GetPremiumFeaturesRequest) (*PremiumFeatures, error)
Returns information about features, available to Premium users
func (*Client) GetPremiumLimit ¶ added in v1.2.3
func (client *Client) GetPremiumLimit(req *GetPremiumLimitRequest) (*PremiumLimit, error)
Returns information about a limit, increased for Premium users. Returns a 404 error if the limit is unknown
func (*Client) GetPremiumState ¶ added in v1.2.3
func (client *Client) GetPremiumState() (*PremiumState, error)
Returns state of Telegram Premium subscription and promotion videos for Premium features
func (*Client) GetPremiumStickerExamples ¶ added in v1.2.3
Returns examples of premium stickers for demonstration purposes
func (*Client) GetPremiumStickers ¶ added in v1.2.3
func (client *Client) GetPremiumStickers(req *GetPremiumStickersRequest) (*Stickers, error)
Returns premium stickers from regular sticker sets
func (*Client) GetProxies ¶
Returns list of proxies that are currently set up. Can be called before authorization
func (*Client) GetProxyLink ¶
func (client *Client) GetProxyLink(req *GetProxyLinkRequest) (*HttpUrl, error)
Returns an HTTPS link, which can be used to add a proxy. Available only for SOCKS5 and MTProto proxies. Can be called before authorization
func (*Client) GetPushReceiverId ¶
func (client *Client) GetPushReceiverId(req *GetPushReceiverIdRequest) (*PushReceiverId, error)
deprecated Returns a globally unique push notification subscription identifier for identification of an account, which has received a push notification. Can be called synchronously
func (*Client) GetRecentEmojiStatuses ¶ added in v1.2.3
func (client *Client) GetRecentEmojiStatuses() (*EmojiStatuses, error)
Returns recent emoji statuses
func (*Client) GetRecentInlineBots ¶
Returns up to 20 recently used inline bots in the order of their last usage
func (*Client) GetRecentStickers ¶
func (client *Client) GetRecentStickers(req *GetRecentStickersRequest) (*Stickers, error)
Returns a list of recently used stickers
func (*Client) GetRecentlyOpenedChats ¶
func (client *Client) GetRecentlyOpenedChats(req *GetRecentlyOpenedChatsRequest) (*Chats, error)
Returns recently opened chats; this is an offline request. Returns chats in the order of last opening
func (*Client) GetRecentlyVisitedTMeUrls ¶
func (client *Client) GetRecentlyVisitedTMeUrls(req *GetRecentlyVisitedTMeUrlsRequest) (*TMeUrls, error)
Returns t.me URLs recently visited by a newly registered user
func (*Client) GetRecommendedChatFolders ¶ added in v1.2.3
func (client *Client) GetRecommendedChatFolders() (*RecommendedChatFolders, error)
Returns recommended chat folders for the current user
func (*Client) GetRecoveryEmailAddress ¶
func (client *Client) GetRecoveryEmailAddress(req *GetRecoveryEmailAddressRequest) (*RecoveryEmailAddress, error)
Returns a 2-step verification recovery email address that was previously set up. This method can be used to verify a password provided by the user
func (*Client) GetRemoteFile ¶
func (client *Client) GetRemoteFile(req *GetRemoteFileRequest) (*File, error)
Returns information about a file by its remote identifier; this is an offline request. Can be used to register a URL as a file for further uploading, or sending as a message. Even the request succeeds, the file can be used only if it is still accessible to the user. For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the application
func (*Client) GetRepliedMessage ¶
func (client *Client) GetRepliedMessage(req *GetRepliedMessageRequest) (*Message, error)
Returns information about a message that is replied by a given message. Also, returns the pinned message, the game message, the invoice message, and the topic creation message for messages of the types messagePinMessage, messageGameScore, messagePaymentSuccessful, messageChatSetBackground and topic messages without replied message respectively
func (*Client) GetSavedAnimations ¶
func (client *Client) GetSavedAnimations() (*Animations, error)
Returns saved animations
func (*Client) GetSavedNotificationSound ¶ added in v1.0.6
func (client *Client) GetSavedNotificationSound(req *GetSavedNotificationSoundRequest) (*NotificationSounds, error)
Returns saved notification sound by its identifier. Returns a 404 error if there is no saved notification sound with the specified identifier
func (*Client) GetSavedNotificationSounds ¶ added in v1.0.6
func (client *Client) GetSavedNotificationSounds() (*NotificationSounds, error)
Returns list of saved notification sounds. If a sound isn't in the list, then default sound needs to be used
func (*Client) GetSavedOrderInfo ¶
Returns saved order information. Returns a 404 error if there is no saved order information
func (*Client) GetScopeNotificationSettings ¶
func (client *Client) GetScopeNotificationSettings(req *GetScopeNotificationSettingsRequest) (*ScopeNotificationSettings, error)
Returns the notification settings for chats of a given type
func (*Client) GetSecretChat ¶
func (client *Client) GetSecretChat(req *GetSecretChatRequest) (*SecretChat, error)
Returns information about a secret chat by its identifier. This is an offline request
func (*Client) GetStatisticalGraph ¶
func (client *Client) GetStatisticalGraph(req *GetStatisticalGraphRequest) (StatisticalGraph, error)
Loads an asynchronous or a zoomed in statistical graph
func (*Client) GetStickerEmojis ¶
func (client *Client) GetStickerEmojis(req *GetStickerEmojisRequest) (*Emojis, error)
Returns emoji corresponding to a sticker. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object
func (*Client) GetStickerSet ¶
func (client *Client) GetStickerSet(req *GetStickerSetRequest) (*StickerSet, error)
Returns information about a sticker set by its identifier
func (*Client) GetStickers ¶
func (client *Client) GetStickers(req *GetStickersRequest) (*Stickers, error)
Returns stickers from the installed sticker sets that correspond to any of the given emoji or can be found by sticker-specific keywords. If the query is non-empty, then favorite, recently used or trending stickers may also be returned
func (*Client) GetStorageStatistics ¶
func (client *Client) GetStorageStatistics(req *GetStorageStatisticsRequest) (*StorageStatistics, error)
Returns storage usage statistics. Can be called before authorization
func (*Client) GetStorageStatisticsFast ¶
func (client *Client) GetStorageStatisticsFast() (*StorageStatisticsFast, error)
Quickly returns approximate storage usage statistics. Can be called before authorization
func (*Client) GetStory ¶ added in v1.2.3
func (client *Client) GetStory(req *GetStoryRequest) (*Story, error)
Returns a story
func (*Client) GetStoryAvailableReactions ¶ added in v1.2.3
func (client *Client) GetStoryAvailableReactions(req *GetStoryAvailableReactionsRequest) (*AvailableReactions, error)
Returns reactions, which can be chosen for a story
func (*Client) GetStoryNotificationSettingsExceptions ¶ added in v1.2.3
Returns list of chats with non-default notification settings for stories
func (*Client) GetStoryViewers ¶ added in v1.2.3
func (client *Client) GetStoryViewers(req *GetStoryViewersRequest) (*StoryViewers, error)
Returns viewers of a story. The method can be called if story.can_get_viewers == true
func (*Client) GetSuggestedFileName ¶
func (client *Client) GetSuggestedFileName(req *GetSuggestedFileNameRequest) (*Text, error)
Returns suggested name for saving a file in a given directory
func (*Client) GetSuggestedStickerSetName ¶
func (client *Client) GetSuggestedStickerSetName(req *GetSuggestedStickerSetNameRequest) (*Text, error)
Returns a suggested name for a new sticker set with a given title
func (*Client) GetSuitableDiscussionChats ¶
Returns a list of basic group and supergroup chats, which can be used as a discussion group for a channel. Returned basic group chats must be first upgraded to supergroups before they can be set as a discussion group. To set a returned supergroup as a discussion group, access to its old messages must be enabled using toggleSupergroupIsAllHistoryAvailable first
func (*Client) GetSupergroup ¶
func (client *Client) GetSupergroup(req *GetSupergroupRequest) (*Supergroup, error)
Returns information about a supergroup or a channel by its identifier. This is an offline request if the current user is not a bot
func (*Client) GetSupergroupFullInfo ¶
func (client *Client) GetSupergroupFullInfo(req *GetSupergroupFullInfoRequest) (*SupergroupFullInfo, error)
Returns full information about a supergroup or a channel by its identifier, cached for up to 1 minute
func (*Client) GetSupergroupMembers ¶
func (client *Client) GetSupergroupMembers(req *GetSupergroupMembersRequest) (*ChatMembers, error)
Returns information about members or banned users in a supergroup or channel. Can be used only if supergroupFullInfo.can_get_members == true; additionally, administrator privileges may be required for some filters
func (*Client) GetSupportName ¶ added in v1.2.3
Returns localized name of the Telegram support user; for Telegram support only
func (*Client) GetSupportUser ¶
Returns a user that can be contacted to get support
func (*Client) GetTemporaryPasswordState ¶
func (client *Client) GetTemporaryPasswordState() (*TemporaryPasswordState, error)
Returns information about the current temporary password
func (*Client) GetTextEntities ¶
func (client *Client) GetTextEntities(req *GetTextEntitiesRequest) (*TextEntities, error)
deprecated Returns all entities (mentions, hashtags, cashtags, bot commands, bank card numbers, URLs, and email addresses) found in the text. Can be called synchronously
func (*Client) GetThemeParametersJsonString ¶ added in v1.0.6
func (client *Client) GetThemeParametersJsonString(req *GetThemeParametersJsonStringRequest) (*Text, error)
deprecated Converts a themeParameters object to corresponding JSON-serialized string. Can be called synchronously
func (*Client) GetThemedEmojiStatuses ¶ added in v1.2.3
func (client *Client) GetThemedEmojiStatuses() (*EmojiStatuses, error)
Returns up to 8 emoji statuses, which must be shown right after the default Premium Badge in the emoji status list
func (*Client) GetTopChats ¶
func (client *Client) GetTopChats(req *GetTopChatsRequest) (*Chats, error)
Returns a list of frequently used chats
func (*Client) GetTrendingStickerSets ¶
func (client *Client) GetTrendingStickerSets(req *GetTrendingStickerSetsRequest) (*TrendingStickerSets, error)
Returns a list of trending sticker sets. For optimal performance, the number of returned sticker sets is chosen by TDLib
func (*Client) GetUser ¶
func (client *Client) GetUser(req *GetUserRequest) (*User, error)
Returns information about a user by their identifier. This is an offline request if the current user is not a bot
func (*Client) GetUserFullInfo ¶
func (client *Client) GetUserFullInfo(req *GetUserFullInfoRequest) (*UserFullInfo, error)
Returns full information about a user by their identifier
func (*Client) GetUserLink ¶ added in v1.2.3
Returns an HTTPS link, which can be used to get information about the current user
func (*Client) GetUserPrivacySettingRules ¶
func (client *Client) GetUserPrivacySettingRules(req *GetUserPrivacySettingRulesRequest) (*UserPrivacySettingRules, error)
Returns the current privacy settings
func (*Client) GetUserProfilePhotos ¶
func (client *Client) GetUserProfilePhotos(req *GetUserProfilePhotosRequest) (*ChatPhotos, error)
Returns the profile photos of a user. Personal and public photo aren't returned
func (*Client) GetUserSupportInfo ¶ added in v1.2.3
func (client *Client) GetUserSupportInfo(req *GetUserSupportInfoRequest) (*UserSupportInfo, error)
Returns support information for the given user; for Telegram support only
func (*Client) GetVideoChatAvailableParticipants ¶
func (client *Client) GetVideoChatAvailableParticipants(req *GetVideoChatAvailableParticipantsRequest) (*MessageSenders, error)
Returns list of participant identifiers, on whose behalf a video chat in the chat can be joined
func (*Client) GetVideoChatRtmpUrl ¶ added in v1.0.6
func (client *Client) GetVideoChatRtmpUrl(req *GetVideoChatRtmpUrlRequest) (*RtmpUrl, error)
Returns RTMP URL for streaming to the chat; requires creator privileges
func (*Client) GetWebAppLinkUrl ¶ added in v1.2.3
func (client *Client) GetWebAppLinkUrl(req *GetWebAppLinkUrlRequest) (*HttpUrl, error)
Returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked
func (*Client) GetWebAppUrl ¶ added in v1.0.6
func (client *Client) GetWebAppUrl(req *GetWebAppUrlRequest) (*HttpUrl, error)
Returns an HTTPS URL of a Web App to open from the side menu, a keyboardButtonTypeWebApp button, an inlineQueryResultsButtonTypeWebApp button, or an internalLinkTypeSideMenuBot link
func (*Client) GetWebPageInstantView ¶
func (client *Client) GetWebPageInstantView(req *GetWebPageInstantViewRequest) (*WebPageInstantView, error)
Returns an instant view version of a web page if available. Returns a 404 error if the web page has no instant view page
func (*Client) GetWebPagePreview ¶
func (client *Client) GetWebPagePreview(req *GetWebPagePreviewRequest) (*WebPage, error)
Returns a web page preview by the text of the message. Do not call this function too often. Returns a 404 error if the web page has no preview
func (*Client) HideSuggestedAction ¶
func (client *Client) HideSuggestedAction(req *HideSuggestedActionRequest) (*Ok, error)
Hides a suggested action
func (*Client) ImportContacts ¶
func (client *Client) ImportContacts(req *ImportContactsRequest) (*ImportedContacts, error)
Adds new contacts or edits existing contacts by their phone numbers; contacts' user identifiers are ignored
func (*Client) ImportMessages ¶
func (client *Client) ImportMessages(req *ImportMessagesRequest) (*Ok, error)
Imports messages exported from another app
func (*Client) InviteGroupCallParticipants ¶
func (client *Client) InviteGroupCallParticipants(req *InviteGroupCallParticipantsRequest) (*Ok, error)
Invites users to an active group call. Sends a service message of type messageInviteToGroupCall for video chats
func (*Client) JoinChat ¶
func (client *Client) JoinChat(req *JoinChatRequest) (*Ok, error)
Adds the current user as a new member to a chat. Private and secret chats can't be joined using this method. May return an error with a message "INVITE_REQUEST_SENT" if only a join request was created
func (*Client) JoinChatByInviteLink ¶
func (client *Client) JoinChatByInviteLink(req *JoinChatByInviteLinkRequest) (*Chat, error)
Uses an invite link to add the current user to the chat if possible. May return an error with a message "INVITE_REQUEST_SENT" if only a join request was created
func (*Client) JoinGroupCall ¶
func (client *Client) JoinGroupCall(req *JoinGroupCallRequest) (*Text, error)
Joins an active group call. Returns join response payload for tgcalls
func (*Client) LeaveChat ¶
func (client *Client) LeaveChat(req *LeaveChatRequest) (*Ok, error)
Removes the current user from chat members. Private and secret chats can't be left using this method
func (*Client) LeaveGroupCall ¶
func (client *Client) LeaveGroupCall(req *LeaveGroupCallRequest) (*Ok, error)
Leaves a group call
func (*Client) LoadActiveStories ¶ added in v1.2.3
func (client *Client) LoadActiveStories(req *LoadActiveStoriesRequest) (*Ok, error)
Loads more active stories from a story list. The loaded stories will be sent through updates. Active stories are sorted by the pair (active_stories.order, active_stories.story_sender_chat_id) in descending order. Returns a 404 error if all active stories have been loaded
func (*Client) LoadChats ¶
func (client *Client) LoadChats(req *LoadChatsRequest) (*Ok, error)
Loads more chats from a chat list. The loaded chats and their positions in the chat list will be sent through updates. Chats are sorted by the pair (chat.position.order, chat.id) in descending order. Returns a 404 error if all chats have been loaded
func (*Client) LoadGroupCallParticipants ¶
func (client *Client) LoadGroupCallParticipants(req *LoadGroupCallParticipantsRequest) (*Ok, error)
Loads more participants of a group call. The loaded participants will be received through updates. Use the field groupCall.loaded_all_participants to check whether all participants have already been loaded
func (*Client) LogOut ¶
Closes the TDLib instance after a proper logout. Requires an available network connection. All local data will be destroyed. After the logout completes, updateAuthorizationState with authorizationStateClosed will be sent
func (*Client) OpenChat ¶
func (client *Client) OpenChat(req *OpenChatRequest) (*Ok, error)
Informs TDLib that the chat is opened by the user. Many useful activities depend on the chat being opened or closed (e.g., in supergroups and channels all updates are received only for opened chats)
func (*Client) OpenMessageContent ¶
func (client *Client) OpenMessageContent(req *OpenMessageContentRequest) (*Ok, error)
Informs TDLib that the message content has been opened (e.g., the user has opened a photo, video, document, location or venue, or has listened to an audio file or voice note message). An updateMessageContentOpened update will be generated if something has changed
func (*Client) OpenStory ¶ added in v1.2.3
func (client *Client) OpenStory(req *OpenStoryRequest) (*Ok, error)
Informs TDLib that a story is opened and is being viewed by the user
func (*Client) OpenWebApp ¶ added in v1.0.6
func (client *Client) OpenWebApp(req *OpenWebAppRequest) (*WebAppInfo, error)
Informs TDLib that a Web App is being opened from the attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. For each bot, a confirmation alert about data sent to the bot must be shown once
func (*Client) OptimizeStorage ¶
func (client *Client) OptimizeStorage(req *OptimizeStorageRequest) (*StorageStatistics, error)
Optimizes storage usage, i.e. deletes some files and returns new storage usage statistics. Secret thumbnails can't be deleted
func (*Client) ParseMarkdown ¶
func (client *Client) ParseMarkdown(req *ParseMarkdownRequest) (*FormattedText, error)
deprecated Parses Markdown entities in a human-friendly format, ignoring markup errors. Can be called synchronously
func (*Client) ParseTextEntities ¶
func (client *Client) ParseTextEntities(req *ParseTextEntitiesRequest) (*FormattedText, error)
deprecated Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, Code, Pre, PreCode, TextUrl and MentionName entities from a marked-up text. Can be called synchronously
func (*Client) PinChatMessage ¶
func (client *Client) PinChatMessage(req *PinChatMessageRequest) (*Ok, error)
Pins a message in a chat; requires can_pin_messages rights or can_edit_messages rights in the channel
func (*Client) PingProxy ¶
func (client *Client) PingProxy(req *PingProxyRequest) (*Seconds, error)
Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization
func (*Client) PreliminaryUploadFile ¶ added in v1.2.3
func (client *Client) PreliminaryUploadFile(req *PreliminaryUploadFileRequest) (*File, error)
Preliminary uploads a file to the cloud before sending it in a message, which can be useful for uploading of being recorded voice and video notes. Updates updateFile will be used to notify about upload progress and successful completion of the upload. The file will not have a persistent remote identifier until it will be sent in a message
func (*Client) ProcessChatFolderNewChats ¶ added in v1.2.3
func (client *Client) ProcessChatFolderNewChats(req *ProcessChatFolderNewChatsRequest) (*Ok, error)
Process new chats added to a shareable chat folder by its owner
func (*Client) ProcessChatJoinRequest ¶
func (client *Client) ProcessChatJoinRequest(req *ProcessChatJoinRequestRequest) (*Ok, error)
Handles a pending join request in a chat
func (*Client) ProcessChatJoinRequests ¶
func (client *Client) ProcessChatJoinRequests(req *ProcessChatJoinRequestsRequest) (*Ok, error)
Handles all pending join requests for a given link in a chat
func (*Client) ProcessPushNotification ¶
func (client *Client) ProcessPushNotification(req *ProcessPushNotificationRequest) (*Ok, error)
Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the server is required to fetch new data. Can be called before authorization
func (*Client) RateSpeechRecognition ¶ added in v1.2.3
func (client *Client) RateSpeechRecognition(req *RateSpeechRecognitionRequest) (*Ok, error)
Rates recognized speech in a video note or a voice note message
func (*Client) ReadAllChatMentions ¶
func (client *Client) ReadAllChatMentions(req *ReadAllChatMentionsRequest) (*Ok, error)
Marks all mentions in a chat as read
func (*Client) ReadAllChatReactions ¶ added in v1.0.6
func (client *Client) ReadAllChatReactions(req *ReadAllChatReactionsRequest) (*Ok, error)
Marks all reactions in a chat or a forum topic as read
func (*Client) ReadAllMessageThreadMentions ¶ added in v1.2.3
func (client *Client) ReadAllMessageThreadMentions(req *ReadAllMessageThreadMentionsRequest) (*Ok, error)
Marks all mentions in a forum topic as read
func (*Client) ReadAllMessageThreadReactions ¶ added in v1.2.3
func (client *Client) ReadAllMessageThreadReactions(req *ReadAllMessageThreadReactionsRequest) (*Ok, error)
Marks all reactions in a forum topic as read
func (*Client) ReadChatList ¶ added in v1.2.3
func (client *Client) ReadChatList(req *ReadChatListRequest) (*Ok, error)
Traverse all chats in a chat list and marks all messages in the chats as read
func (*Client) ReadFilePart ¶
func (client *Client) ReadFilePart(req *ReadFilePartRequest) (*FilePart, error)
Reads a part of a file from the TDLib file cache and returns read bytes. This method is intended to be used only if the application has no direct access to TDLib's file system, because it is usually slower than a direct read from the file
func (*Client) RecognizeSpeech ¶ added in v1.2.3
func (client *Client) RecognizeSpeech(req *RecognizeSpeechRequest) (*Ok, error)
Recognizes speech in a video note or a voice note message. The message must be successfully sent and must not be scheduled. May return an error with a message "MSG_VOICE_TOO_LONG" if media duration is too big to be recognized
func (*Client) RecoverAuthenticationPassword ¶
func (client *Client) RecoverAuthenticationPassword(req *RecoverAuthenticationPasswordRequest) (*Ok, error)
Recovers the 2-step verification password with a password recovery code sent to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword
func (*Client) RecoverPassword ¶
func (client *Client) RecoverPassword(req *RecoverPasswordRequest) (*PasswordState, error)
Recovers the 2-step verification password using a recovery code sent to an email address that was previously set up
func (*Client) RegisterDevice ¶
func (client *Client) RegisterDevice(req *RegisterDeviceRequest) (*PushReceiverId, error)
Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription
func (*Client) RegisterUser ¶
func (client *Client) RegisterUser(req *RegisterUserRequest) (*Ok, error)
Finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration
func (*Client) RemoveAllFilesFromDownloads ¶ added in v1.0.6
func (client *Client) RemoveAllFilesFromDownloads(req *RemoveAllFilesFromDownloadsRequest) (*Ok, error)
Removes all files from the file download list
func (*Client) RemoveBackground ¶
func (client *Client) RemoveBackground(req *RemoveBackgroundRequest) (*Ok, error)
Removes background from the list of installed backgrounds
func (*Client) RemoveChatActionBar ¶
func (client *Client) RemoveChatActionBar(req *RemoveChatActionBarRequest) (*Ok, error)
Removes a chat action bar without any other action
func (*Client) RemoveContacts ¶
func (client *Client) RemoveContacts(req *RemoveContactsRequest) (*Ok, error)
Removes users from the contact list
func (*Client) RemoveFavoriteSticker ¶
func (client *Client) RemoveFavoriteSticker(req *RemoveFavoriteStickerRequest) (*Ok, error)
Removes a sticker from the list of favorite stickers
func (*Client) RemoveFileFromDownloads ¶ added in v1.0.6
func (client *Client) RemoveFileFromDownloads(req *RemoveFileFromDownloadsRequest) (*Ok, error)
Removes a file from the file download list
func (*Client) RemoveMessageReaction ¶ added in v1.2.3
func (client *Client) RemoveMessageReaction(req *RemoveMessageReactionRequest) (*Ok, error)
Removes a reaction from a message. A chosen reaction can always be removed
func (*Client) RemoveNotification ¶
func (client *Client) RemoveNotification(req *RemoveNotificationRequest) (*Ok, error)
Removes an active notification from notification list. Needs to be called only if the notification is removed by the current user
func (*Client) RemoveNotificationGroup ¶
func (client *Client) RemoveNotificationGroup(req *RemoveNotificationGroupRequest) (*Ok, error)
Removes a group of active notifications. Needs to be called only if the notification group is removed by the current user
func (*Client) RemoveProxy ¶
func (client *Client) RemoveProxy(req *RemoveProxyRequest) (*Ok, error)
Removes a proxy server. Can be called before authorization
func (*Client) RemoveRecentHashtag ¶
func (client *Client) RemoveRecentHashtag(req *RemoveRecentHashtagRequest) (*Ok, error)
Removes a hashtag from the list of recently used hashtags
func (*Client) RemoveRecentSticker ¶
func (client *Client) RemoveRecentSticker(req *RemoveRecentStickerRequest) (*Ok, error)
Removes a sticker from the list of recently used stickers
func (*Client) RemoveRecentlyFoundChat ¶
func (client *Client) RemoveRecentlyFoundChat(req *RemoveRecentlyFoundChatRequest) (*Ok, error)
Removes a chat from the list of recently found chats
func (*Client) RemoveSavedAnimation ¶
func (client *Client) RemoveSavedAnimation(req *RemoveSavedAnimationRequest) (*Ok, error)
Removes an animation from the list of saved animations
func (*Client) RemoveSavedNotificationSound ¶ added in v1.0.6
func (client *Client) RemoveSavedNotificationSound(req *RemoveSavedNotificationSoundRequest) (*Ok, error)
Removes a notification sound from the list of saved notification sounds
func (*Client) RemoveStickerFromSet ¶
func (client *Client) RemoveStickerFromSet(req *RemoveStickerFromSetRequest) (*Ok, error)
Removes a sticker from the set to which it belongs; for bots only. The sticker set must have been created by the bot
func (*Client) RemoveTopChat ¶
func (client *Client) RemoveTopChat(req *RemoveTopChatRequest) (*Ok, error)
Removes a chat from the list of frequently used chats. Supported only if the chat info database is enabled
func (*Client) ReorderActiveUsernames ¶ added in v1.2.3
func (client *Client) ReorderActiveUsernames(req *ReorderActiveUsernamesRequest) (*Ok, error)
Changes order of active usernames of the current user
func (*Client) ReorderBotActiveUsernames ¶ added in v1.2.3
func (client *Client) ReorderBotActiveUsernames(req *ReorderBotActiveUsernamesRequest) (*Ok, error)
Changes order of active usernames of a bot. Can be called only if userTypeBot.can_be_edited == true
func (*Client) ReorderChatFolders ¶ added in v1.2.3
func (client *Client) ReorderChatFolders(req *ReorderChatFoldersRequest) (*Ok, error)
Changes the order of chat folders
func (*Client) ReorderInstalledStickerSets ¶
func (client *Client) ReorderInstalledStickerSets(req *ReorderInstalledStickerSetsRequest) (*Ok, error)
Changes the order of installed sticker sets
func (*Client) ReorderSupergroupActiveUsernames ¶ added in v1.2.3
func (client *Client) ReorderSupergroupActiveUsernames(req *ReorderSupergroupActiveUsernamesRequest) (*Ok, error)
Changes order of active usernames of a supergroup or channel, requires owner privileges in the supergroup or channel
func (*Client) ReplacePrimaryChatInviteLink ¶
func (client *Client) ReplacePrimaryChatInviteLink(req *ReplacePrimaryChatInviteLinkRequest) (*ChatInviteLink, error)
Replaces current primary invite link for a chat with a new primary invite link. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right
func (*Client) ReplaceVideoChatRtmpUrl ¶ added in v1.0.6
func (client *Client) ReplaceVideoChatRtmpUrl(req *ReplaceVideoChatRtmpUrlRequest) (*RtmpUrl, error)
Replaces the current RTMP URL for streaming to the chat; requires creator privileges
func (*Client) ReportChat ¶
func (client *Client) ReportChat(req *ReportChatRequest) (*Ok, error)
Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.can_be_reported
func (*Client) ReportChatPhoto ¶
func (client *Client) ReportChatPhoto(req *ReportChatPhotoRequest) (*Ok, error)
Reports a chat photo to the Telegram moderators. A chat photo can be reported only if chat.can_be_reported
func (*Client) ReportMessageReactions ¶ added in v1.2.3
func (client *Client) ReportMessageReactions(req *ReportMessageReactionsRequest) (*Ok, error)
Reports reactions set on a message to the Telegram moderators. Reactions on a message can be reported only if message.can_report_reactions
func (*Client) ReportStory ¶ added in v1.2.3
func (client *Client) ReportStory(req *ReportStoryRequest) (*Ok, error)
Reports a story to the Telegram moderators
func (*Client) ReportSupergroupAntiSpamFalsePositive ¶ added in v1.2.3
func (client *Client) ReportSupergroupAntiSpamFalsePositive(req *ReportSupergroupAntiSpamFalsePositiveRequest) (*Ok, error)
Reports a false deletion of a message by aggressive anti-spam checks; requires administrator rights in the supergroup. Can be called only for messages from chatEventMessageDeleted with can_report_anti_spam_false_positive == true
func (*Client) ReportSupergroupSpam ¶
func (client *Client) ReportSupergroupSpam(req *ReportSupergroupSpamRequest) (*Ok, error)
Reports messages in a supergroup as spam; requires administrator rights in the supergroup
func (*Client) RequestAuthenticationPasswordRecovery ¶
Requests to send a 2-step verification password recovery code to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword
func (*Client) RequestPasswordRecovery ¶
func (client *Client) RequestPasswordRecovery() (*EmailAddressAuthenticationCodeInfo, error)
Requests to send a 2-step verification password recovery code to an email address that was previously set up
func (*Client) RequestQrCodeAuthentication ¶
func (client *Client) RequestQrCodeAuthentication(req *RequestQrCodeAuthenticationRequest) (*Ok, error)
Requests QR code authentication by scanning a QR code on another logged in device. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword
func (*Client) ResendAuthenticationCode ¶
Resends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitCode, the next_code_type of the result is not null and the server-specified timeout has passed, or when the current authorization state is authorizationStateWaitEmailCode
func (*Client) ResendChangePhoneNumberCode ¶
func (client *Client) ResendChangePhoneNumberCode() (*AuthenticationCodeInfo, error)
Resends the authentication code sent to confirm a new phone number for the current user. Works only if the previously received authenticationCodeInfo next_code_type was not null and the server-specified timeout has passed
func (*Client) ResendEmailAddressVerificationCode ¶
func (client *Client) ResendEmailAddressVerificationCode() (*EmailAddressAuthenticationCodeInfo, error)
Resends the code to verify an email address to be added to a user's Telegram Passport
func (*Client) ResendLoginEmailAddressCode ¶ added in v1.2.3
func (client *Client) ResendLoginEmailAddressCode() (*EmailAddressAuthenticationCodeInfo, error)
Resends the login email address verification code
func (*Client) ResendMessages ¶
func (client *Client) ResendMessages(req *ResendMessagesRequest) (*Messages, error)
Resends messages which failed to send. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. If a message is re-sent, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be re-sent, null will be returned instead of the message
func (*Client) ResendPhoneNumberConfirmationCode ¶
func (client *Client) ResendPhoneNumberConfirmationCode() (*AuthenticationCodeInfo, error)
Resends phone number confirmation code
func (*Client) ResendPhoneNumberVerificationCode ¶
func (client *Client) ResendPhoneNumberVerificationCode() (*AuthenticationCodeInfo, error)
Resends the code to verify a phone number to be added to a user's Telegram Passport
func (*Client) ResendRecoveryEmailAddressCode ¶
func (client *Client) ResendRecoveryEmailAddressCode() (*PasswordState, error)
Resends the 2-step verification recovery email address verification code
func (*Client) ResetAllNotificationSettings ¶
Resets all notification settings to their default values. By default, all chats are unmuted and message previews are shown
func (*Client) ResetAuthenticationEmailAddress ¶ added in v1.2.3
Resets the login email address. May return an error with a message "TASK_ALREADY_EXISTS" if reset is still pending. Works only when the current authorization state is authorizationStateWaitEmailCode and authorization_state.can_reset_email_address == true
func (*Client) ResetBackgrounds ¶
Resets list of installed backgrounds to its default value
func (*Client) ResetNetworkStatistics ¶
Resets all network data usage statistics to zero. Can be called before authorization
func (*Client) ResetPassword ¶
func (client *Client) ResetPassword() (ResetPasswordResult, error)
Removes 2-step verification password without previous password and access to recovery email address. The password can't be reset immediately and the request needs to be repeated after the specified time
func (*Client) RevokeChatInviteLink ¶
func (client *Client) RevokeChatInviteLink(req *RevokeChatInviteLinkRequest) (*ChatInviteLinks, error)
Revokes invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links. If a primary link is revoked, then additionally to the revoked link returns new primary link
func (*Client) RevokeGroupCallInviteLink ¶
func (client *Client) RevokeGroupCallInviteLink(req *RevokeGroupCallInviteLinkRequest) (*Ok, error)
Revokes invite link for a group call. Requires groupCall.can_be_managed group call flag
func (*Client) SaveApplicationLogEvent ¶
func (client *Client) SaveApplicationLogEvent(req *SaveApplicationLogEventRequest) (*Ok, error)
Saves application log event on the server. Can be called before authorization
func (*Client) SearchBackground ¶
func (client *Client) SearchBackground(req *SearchBackgroundRequest) (*Background, error)
Searches for a background by its name
func (*Client) SearchCallMessages ¶
func (client *Client) SearchCallMessages(req *SearchCallMessagesRequest) (*FoundMessages, error)
Searches for call messages. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib
func (*Client) SearchChatMembers ¶
func (client *Client) SearchChatMembers(req *SearchChatMembersRequest) (*ChatMembers, error)
Searches for a specified query in the first name, last name and usernames of the members of a specified chat. Requires administrator rights in channels
func (*Client) SearchChatMessages ¶
func (client *Client) SearchChatMessages(req *SearchChatMessagesRequest) (*FoundChatMessages, error)
Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. Cannot be used in secret chats with a non-empty query (searchSecretMessages must be used instead), or without an enabled message database. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit. A combination of query, sender_id, filter and message_thread_id search criteria is expected to be supported, only if it is required for Telegram official application implementation
func (*Client) SearchChatRecentLocationMessages ¶
func (client *Client) SearchChatRecentLocationMessages(req *SearchChatRecentLocationMessagesRequest) (*Messages, error)
Returns information about the recent locations of chat members that were sent to the chat. Returns up to 1 location message per user
func (*Client) SearchChats ¶
func (client *Client) SearchChats(req *SearchChatsRequest) (*Chats, error)
Searches for the specified query in the title and username of already known chats; this is an offline request. Returns chats in the order seen in the main chat list
func (*Client) SearchChatsNearby ¶
func (client *Client) SearchChatsNearby(req *SearchChatsNearbyRequest) (*ChatsNearby, error)
Returns a list of users and location-based supergroups nearby. The list of users nearby will be updated for 60 seconds after the request by the updates updateUsersNearby. The request must be sent again every 25 seconds with adjusted location to not miss new chats
func (*Client) SearchChatsOnServer ¶
func (client *Client) SearchChatsOnServer(req *SearchChatsOnServerRequest) (*Chats, error)
Searches for the specified query in the title and username of already known chats via request to the server. Returns chats in the order seen in the main chat list
func (*Client) SearchContacts ¶
func (client *Client) SearchContacts(req *SearchContactsRequest) (*Users, error)
Searches for the specified query in the first names, last names and usernames of the known user contacts
func (*Client) SearchEmojis ¶
func (client *Client) SearchEmojis(req *SearchEmojisRequest) (*Emojis, error)
Searches for emojis by keywords. Supported only if the file database is enabled
func (*Client) SearchFileDownloads ¶ added in v1.0.6
func (client *Client) SearchFileDownloads(req *SearchFileDownloadsRequest) (*FoundFileDownloads, error)
Searches for files in the file download list or recently downloaded files from the list
func (*Client) SearchHashtags ¶
func (client *Client) SearchHashtags(req *SearchHashtagsRequest) (*Hashtags, error)
Searches for recently used hashtags by their prefix
func (*Client) SearchInstalledStickerSets ¶
func (client *Client) SearchInstalledStickerSets(req *SearchInstalledStickerSetsRequest) (*StickerSets, error)
Searches for installed sticker sets by looking for specified query in their title and name
func (*Client) SearchMessages ¶
func (client *Client) SearchMessages(req *SearchMessagesRequest) (*FoundMessages, error)
Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id)). For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
func (*Client) SearchOutgoingDocumentMessages ¶ added in v1.0.6
func (client *Client) SearchOutgoingDocumentMessages(req *SearchOutgoingDocumentMessagesRequest) (*FoundMessages, error)
Searches for outgoing messages with content of the type messageDocument in all chats except secret chats. Returns the results in reverse chronological order
func (*Client) SearchPublicChat ¶
func (client *Client) SearchPublicChat(req *SearchPublicChatRequest) (*Chat, error)
Searches a public chat by its username. Currently, only private chats, supergroups and channels can be public. Returns the chat if found; otherwise, an error is returned
func (*Client) SearchPublicChats ¶
func (client *Client) SearchPublicChats(req *SearchPublicChatsRequest) (*Chats, error)
Searches public chats by looking for specified query in their username and title. Currently, only private chats, supergroups and channels can be public. Returns a meaningful number of results. Excludes private chats with contacts and chats from the chat list from the results
func (*Client) SearchRecentlyFoundChats ¶ added in v1.2.3
func (client *Client) SearchRecentlyFoundChats(req *SearchRecentlyFoundChatsRequest) (*Chats, error)
Searches for the specified query in the title and username of up to 50 recently found chats; this is an offline request
func (*Client) SearchSecretMessages ¶
func (client *Client) SearchSecretMessages(req *SearchSecretMessagesRequest) (*FoundMessages, error)
Searches for messages in secret chats. Returns the results in reverse chronological order. For optimal performance, the number of returned messages is chosen by TDLib
func (*Client) SearchStickerSet ¶
func (client *Client) SearchStickerSet(req *SearchStickerSetRequest) (*StickerSet, error)
Searches for a sticker set by its name
func (*Client) SearchStickerSets ¶
func (client *Client) SearchStickerSets(req *SearchStickerSetsRequest) (*StickerSets, error)
Searches for ordinary sticker sets by looking for specified query in their title and name. Excludes installed sticker sets from the results
func (*Client) SearchStickers ¶
func (client *Client) SearchStickers(req *SearchStickersRequest) (*Stickers, error)
Searches for stickers from public sticker sets that correspond to any of the given emoji
func (*Client) SearchStringsByPrefix ¶ added in v1.2.3
func (client *Client) SearchStringsByPrefix(req *SearchStringsByPrefixRequest) (*FoundPositions, error)
deprecated Searches specified query by word prefixes in the provided strings. Returns 0-based positions of strings that matched. Can be called synchronously
func (*Client) SearchUserByPhoneNumber ¶ added in v1.0.6
func (client *Client) SearchUserByPhoneNumber(req *SearchUserByPhoneNumberRequest) (*User, error)
Searches a user by their phone number. Returns a 404 error if the user can't be found
func (*Client) SearchUserByToken ¶ added in v1.2.3
func (client *Client) SearchUserByToken(req *SearchUserByTokenRequest) (*User, error)
Searches a user by a token from the user's link
func (*Client) SearchWebApp ¶ added in v1.2.3
func (client *Client) SearchWebApp(req *SearchWebAppRequest) (*FoundWebApp, error)
Returns information about a Web App by its short name. Returns a 404 error if the Web App is not found
func (*Client) SendAuthenticationFirebaseSms ¶ added in v1.2.3
func (client *Client) SendAuthenticationFirebaseSms(req *SendAuthenticationFirebaseSmsRequest) (*Ok, error)
Sends Firebase Authentication SMS to the phone number of the user. Works only when the current authorization state is authorizationStateWaitCode and the server returned code of the type authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos
func (*Client) SendBotStartMessage ¶
func (client *Client) SendBotStartMessage(req *SendBotStartMessageRequest) (*Message, error)
Invites a bot to a chat (if it is not yet a member) and sends it the /start command. Bots can't be invited to a private chat other than the chat with the bot. Bots can't be invited to channels (although they can be added as admins) and secret chats. Returns the sent message
func (*Client) SendCallDebugInformation ¶
func (client *Client) SendCallDebugInformation(req *SendCallDebugInformationRequest) (*Ok, error)
Sends debug information for a call to Telegram servers
func (*Client) SendCallLog ¶ added in v1.0.6
func (client *Client) SendCallLog(req *SendCallLogRequest) (*Ok, error)
Sends log file for a call to Telegram servers
func (*Client) SendCallRating ¶
func (client *Client) SendCallRating(req *SendCallRatingRequest) (*Ok, error)
Sends a call rating
func (*Client) SendCallSignalingData ¶
func (client *Client) SendCallSignalingData(req *SendCallSignalingDataRequest) (*Ok, error)
Sends call signaling data
func (*Client) SendChatAction ¶
func (client *Client) SendChatAction(req *SendChatActionRequest) (*Ok, error)
Sends a notification about user activity in a chat
func (*Client) SendChatScreenshotTakenNotification ¶
func (client *Client) SendChatScreenshotTakenNotification(req *SendChatScreenshotTakenNotificationRequest) (*Ok, error)
Sends a notification about a screenshot taken in a chat. Supported only in private and secret chats
func (*Client) SendCustomRequest ¶
func (client *Client) SendCustomRequest(req *SendCustomRequestRequest) (*CustomRequestResult, error)
Sends a custom request; for bots only
func (*Client) SendEmailAddressVerificationCode ¶
func (client *Client) SendEmailAddressVerificationCode(req *SendEmailAddressVerificationCodeRequest) (*EmailAddressAuthenticationCodeInfo, error)
Sends a code to verify an email address to be added to a user's Telegram Passport
func (*Client) SendInlineQueryResultMessage ¶
func (client *Client) SendInlineQueryResultMessage(req *SendInlineQueryResultMessageRequest) (*Message, error)
Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message
func (*Client) SendMessage ¶
func (client *Client) SendMessage(req *SendMessageRequest) (*Message, error)
Sends a message. Returns the sent message
func (*Client) SendMessageAlbum ¶
func (client *Client) SendMessageAlbum(req *SendMessageAlbumRequest) (*Messages, error)
Sends 2-10 messages grouped together into an album. Currently, only audio, document, photo and video messages can be grouped into an album. Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages
func (*Client) SendPassportAuthorizationForm ¶
func (client *Client) SendPassportAuthorizationForm(req *SendPassportAuthorizationFormRequest) (*Ok, error)
Sends a Telegram Passport authorization form, effectively sharing data with the service. This method must be called after getPassportAuthorizationFormAvailableElements if some previously available elements are going to be reused
func (*Client) SendPaymentForm ¶
func (client *Client) SendPaymentForm(req *SendPaymentFormRequest) (*PaymentResult, error)
Sends a filled-out payment form to the bot for final verification
func (*Client) SendPhoneNumberConfirmationCode ¶
func (client *Client) SendPhoneNumberConfirmationCode(req *SendPhoneNumberConfirmationCodeRequest) (*AuthenticationCodeInfo, error)
Sends phone number confirmation code to handle links of the type internalLinkTypePhoneNumberConfirmation
func (*Client) SendPhoneNumberVerificationCode ¶
func (client *Client) SendPhoneNumberVerificationCode(req *SendPhoneNumberVerificationCodeRequest) (*AuthenticationCodeInfo, error)
Sends a code to verify a phone number to be added to a user's Telegram Passport
func (*Client) SendStory ¶ added in v1.2.3
func (client *Client) SendStory(req *SendStoryRequest) (*Story, error)
Sends a new story. Returns a temporary story
func (*Client) SendWebAppCustomRequest ¶ added in v1.2.3
func (client *Client) SendWebAppCustomRequest(req *SendWebAppCustomRequestRequest) (*CustomRequestResult, error)
Sends a custom request from a Web App
func (*Client) SendWebAppData ¶ added in v1.0.6
func (client *Client) SendWebAppData(req *SendWebAppDataRequest) (*Ok, error)
Sends data received from a keyboardButtonTypeWebApp Web App to a bot
func (*Client) SetAccountTtl ¶
func (client *Client) SetAccountTtl(req *SetAccountTtlRequest) (*Ok, error)
Changes the period of inactivity after which the account of the current user will automatically be deleted
func (*Client) SetAlarm ¶
func (client *Client) SetAlarm(req *SetAlarmRequest) (*Ok, error)
Succeeds after a specified amount of time has passed. Can be called before initialization
func (*Client) SetArchiveChatListSettings ¶ added in v1.2.3
func (client *Client) SetArchiveChatListSettings(req *SetArchiveChatListSettingsRequest) (*Ok, error)
Changes settings for automatic moving of chats to and from the Archive chat lists
func (*Client) SetAuthenticationEmailAddress ¶ added in v1.2.3
func (client *Client) SetAuthenticationEmailAddress(req *SetAuthenticationEmailAddressRequest) (*Ok, error)
Sets the email address of the user and sends an authentication code to the email address. Works only when the current authorization state is authorizationStateWaitEmailAddress
func (*Client) SetAuthenticationPhoneNumber ¶
func (client *Client) SetAuthenticationPhoneNumber(req *SetAuthenticationPhoneNumberRequest) (*Ok, error)
Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword
func (*Client) SetAutoDownloadSettings ¶
func (client *Client) SetAutoDownloadSettings(req *SetAutoDownloadSettingsRequest) (*Ok, error)
Sets auto-download settings
func (*Client) SetAutosaveSettings ¶ added in v1.2.3
func (client *Client) SetAutosaveSettings(req *SetAutosaveSettingsRequest) (*Ok, error)
Sets autosave settings for the given scope. The method is guaranteed to work only after at least one call to getAutosaveSettings
func (*Client) SetBackground ¶
func (client *Client) SetBackground(req *SetBackgroundRequest) (*Background, error)
Changes the background selected by the user; adds background to the list of installed backgrounds
func (*Client) SetBio ¶
func (client *Client) SetBio(req *SetBioRequest) (*Ok, error)
Changes the bio of the current user
func (*Client) SetBotInfoDescription ¶ added in v1.2.3
func (client *Client) SetBotInfoDescription(req *SetBotInfoDescriptionRequest) (*Ok, error)
Sets the text shown in the chat with a bot if the chat is empty. Can be called only if userTypeBot.can_be_edited == true
func (*Client) SetBotInfoShortDescription ¶ added in v1.2.3
func (client *Client) SetBotInfoShortDescription(req *SetBotInfoShortDescriptionRequest) (*Ok, error)
Sets the text shown on a bot's profile page and sent together with the link when users share the bot. Can be called only if userTypeBot.can_be_edited == true
func (*Client) SetBotName ¶ added in v1.2.3
func (client *Client) SetBotName(req *SetBotNameRequest) (*Ok, error)
Sets the name of a bot. Can be called only if userTypeBot.can_be_edited == true
func (*Client) SetBotProfilePhoto ¶ added in v1.2.3
func (client *Client) SetBotProfilePhoto(req *SetBotProfilePhotoRequest) (*Ok, error)
Changes a profile photo for a bot
func (*Client) SetBotUpdatesStatus ¶
func (client *Client) SetBotUpdatesStatus(req *SetBotUpdatesStatusRequest) (*Ok, error)
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) SetChatActiveStoriesList ¶ added in v1.2.3
func (client *Client) SetChatActiveStoriesList(req *SetChatActiveStoriesListRequest) (*Ok, error)
Changes story list in which stories from the chat are shown
func (*Client) SetChatAvailableReactions ¶ added in v1.0.6
func (client *Client) SetChatAvailableReactions(req *SetChatAvailableReactionsRequest) (*Ok, error)
Changes reactions, available in a chat. Available for basic groups, supergroups, and channels. Requires can_change_info administrator right
func (*Client) SetChatBackground ¶ added in v1.2.3
func (client *Client) SetChatBackground(req *SetChatBackgroundRequest) (*Ok, error)
Changes the background in a specific chat. Supported only in private and secret chats with non-deleted users
func (*Client) SetChatClientData ¶
func (client *Client) SetChatClientData(req *SetChatClientDataRequest) (*Ok, error)
Changes application-specific data associated with a chat
func (*Client) SetChatDescription ¶
func (client *Client) SetChatDescription(req *SetChatDescriptionRequest) (*Ok, error)
Changes information about a chat. Available for basic groups, supergroups, and channels. Requires can_change_info administrator right
func (*Client) SetChatDiscussionGroup ¶
func (client *Client) SetChatDiscussionGroup(req *SetChatDiscussionGroupRequest) (*Ok, error)
Changes the discussion group of a channel chat; requires can_change_info administrator right in the channel if it is specified
func (*Client) SetChatDraftMessage ¶
func (client *Client) SetChatDraftMessage(req *SetChatDraftMessageRequest) (*Ok, error)
Changes the draft message in a chat
func (*Client) SetChatLocation ¶
func (client *Client) SetChatLocation(req *SetChatLocationRequest) (*Ok, error)
Changes the location of a chat. Available only for some location-based supergroups, use supergroupFullInfo.can_set_location to check whether the method is allowed to use
func (*Client) SetChatMemberStatus ¶
func (client *Client) SetChatMemberStatus(req *SetChatMemberStatusRequest) (*Ok, error)
Changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for transferring chat ownership; use transferChatOwnership instead. Use addChatMember or banChatMember if some additional parameters needs to be passed
func (*Client) SetChatMessageAutoDeleteTime ¶ added in v1.2.3
func (client *Client) SetChatMessageAutoDeleteTime(req *SetChatMessageAutoDeleteTimeRequest) (*Ok, error)
Changes the message auto-delete or self-destruct (for secret chats) time in a chat. Requires change_info administrator right in basic groups, supergroups and channels Message auto-delete time can't be changed in a chat with the current user (Saved Messages) and the chat 777000 (Telegram).
func (*Client) SetChatMessageSender ¶
func (client *Client) SetChatMessageSender(req *SetChatMessageSenderRequest) (*Ok, error)
Selects a message sender to send messages in a chat
func (*Client) SetChatNotificationSettings ¶
func (client *Client) SetChatNotificationSettings(req *SetChatNotificationSettingsRequest) (*Ok, error)
Changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages) can't be changed
func (*Client) SetChatPermissions ¶
func (client *Client) SetChatPermissions(req *SetChatPermissionsRequest) (*Ok, error)
Changes the chat members permissions. Supported only for basic groups and supergroups. Requires can_restrict_members administrator right
func (*Client) SetChatPhoto ¶
func (client *Client) SetChatPhoto(req *SetChatPhotoRequest) (*Ok, error)
Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires can_change_info administrator right
func (*Client) SetChatSlowModeDelay ¶
func (client *Client) SetChatSlowModeDelay(req *SetChatSlowModeDelayRequest) (*Ok, error)
Changes the slow mode delay of a chat. Available only for supergroups; requires can_restrict_members rights
func (*Client) SetChatTheme ¶
func (client *Client) SetChatTheme(req *SetChatThemeRequest) (*Ok, error)
Changes the chat theme. Supported only in private and secret chats
func (*Client) SetChatTitle ¶
func (client *Client) SetChatTitle(req *SetChatTitleRequest) (*Ok, error)
Changes the chat title. Supported only for basic groups, supergroups and channels. Requires can_change_info administrator right
func (*Client) SetCloseFriends ¶ added in v1.2.3
func (client *Client) SetCloseFriends(req *SetCloseFriendsRequest) (*Ok, error)
Changes the list of close friends of the current user
func (*Client) SetCommands ¶
func (client *Client) SetCommands(req *SetCommandsRequest) (*Ok, error)
Sets the list of commands supported by the bot for the given user scope and language; for bots only
func (*Client) SetCustomEmojiStickerSetThumbnail ¶ added in v1.2.3
func (client *Client) SetCustomEmojiStickerSetThumbnail(req *SetCustomEmojiStickerSetThumbnailRequest) (*Ok, error)
Sets a custom emoji sticker set thumbnail; for bots only
func (*Client) SetCustomLanguagePack ¶
func (client *Client) SetCustomLanguagePack(req *SetCustomLanguagePackRequest) (*Ok, error)
Adds or changes a custom local language pack to the current localization target
func (*Client) SetCustomLanguagePackString ¶
func (client *Client) SetCustomLanguagePackString(req *SetCustomLanguagePackStringRequest) (*Ok, error)
Adds, edits or deletes a string in a custom local language pack. Can be called before authorization
func (*Client) SetDatabaseEncryptionKey ¶
func (client *Client) SetDatabaseEncryptionKey(req *SetDatabaseEncryptionKeyRequest) (*Ok, error)
Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain
func (*Client) SetDefaultChannelAdministratorRights ¶ added in v1.0.6
func (client *Client) SetDefaultChannelAdministratorRights(req *SetDefaultChannelAdministratorRightsRequest) (*Ok, error)
Sets default administrator rights for adding the bot to channel chats; for bots only
func (*Client) SetDefaultGroupAdministratorRights ¶ added in v1.0.6
func (client *Client) SetDefaultGroupAdministratorRights(req *SetDefaultGroupAdministratorRightsRequest) (*Ok, error)
Sets default administrator rights for adding the bot to basic group and supergroup chats; for bots only
func (*Client) SetDefaultMessageAutoDeleteTime ¶ added in v1.2.3
func (client *Client) SetDefaultMessageAutoDeleteTime(req *SetDefaultMessageAutoDeleteTimeRequest) (*Ok, error)
Changes the default message auto-delete time for new chats
func (*Client) SetDefaultReactionType ¶ added in v1.2.3
func (client *Client) SetDefaultReactionType(req *SetDefaultReactionTypeRequest) (*Ok, error)
Changes type of default reaction for the current user
func (*Client) SetEmojiStatus ¶ added in v1.2.3
func (client *Client) SetEmojiStatus(req *SetEmojiStatusRequest) (*Ok, error)
Changes the emoji status of the current user; for Telegram Premium users only
func (*Client) SetFileGenerationProgress ¶
func (client *Client) SetFileGenerationProgress(req *SetFileGenerationProgressRequest) (*Ok, error)
Informs TDLib on a file generation progress
func (*Client) SetForumTopicNotificationSettings ¶ added in v1.2.3
func (client *Client) SetForumTopicNotificationSettings(req *SetForumTopicNotificationSettingsRequest) (*Ok, error)
Changes the notification settings of a forum topic
func (*Client) SetGameScore ¶
func (client *Client) SetGameScore(req *SetGameScoreRequest) (*Message, error)
Updates the game score of the specified user in the game; for bots only
func (*Client) SetGroupCallParticipantIsSpeaking ¶
func (client *Client) SetGroupCallParticipantIsSpeaking(req *SetGroupCallParticipantIsSpeakingRequest) (*Ok, error)
Informs TDLib that speaking state of a participant of an active group has changed
func (*Client) SetGroupCallParticipantVolumeLevel ¶
func (client *Client) SetGroupCallParticipantVolumeLevel(req *SetGroupCallParticipantVolumeLevelRequest) (*Ok, error)
Changes volume level of a participant of an active group call. If the current user can manage the group call, then the participant's volume level will be changed for all users with the default volume level
func (*Client) SetGroupCallTitle ¶
func (client *Client) SetGroupCallTitle(req *SetGroupCallTitleRequest) (*Ok, error)
Sets group call title. Requires groupCall.can_be_managed group call flag
func (*Client) SetInactiveSessionTtl ¶
func (client *Client) SetInactiveSessionTtl(req *SetInactiveSessionTtlRequest) (*Ok, error)
Changes the period of inactivity after which sessions will automatically be terminated
func (*Client) SetInlineGameScore ¶
func (client *Client) SetInlineGameScore(req *SetInlineGameScoreRequest) (*Ok, error)
Updates the game score of the specified user in a game; for bots only
func (*Client) SetLocation ¶
func (client *Client) SetLocation(req *SetLocationRequest) (*Ok, error)
Changes the location of the current user. Needs to be called if getOption("is_location_visible") is true and location changes for more than 1 kilometer
func (*Client) SetLogStream ¶
func (client *Client) SetLogStream(req *SetLogStreamRequest) (*Ok, error)
deprecated Sets new log stream for internal logging of TDLib. Can be called synchronously
func (*Client) SetLogTagVerbosityLevel ¶
func (client *Client) SetLogTagVerbosityLevel(req *SetLogTagVerbosityLevelRequest) (*Ok, error)
deprecated Sets the verbosity level for a specified TDLib internal log tag. Can be called synchronously
func (*Client) SetLogVerbosityLevel ¶
func (client *Client) SetLogVerbosityLevel(req *SetLogVerbosityLevelRequest) (*Ok, error)
deprecated Sets the verbosity level of the internal logging of TDLib. Can be called synchronously
func (*Client) SetLoginEmailAddress ¶ added in v1.2.3
func (client *Client) SetLoginEmailAddress(req *SetLoginEmailAddressRequest) (*EmailAddressAuthenticationCodeInfo, error)
Changes the login email address of the user. The email address can be changed only if the current user already has login email and passwordState.login_email_address_pattern is non-empty. The change will not be applied until the new login email address is confirmed with checkLoginEmailAddressCode. To use Apple ID/Google ID instead of a email address, call checkLoginEmailAddressCode directly
func (*Client) SetMenuButton ¶ added in v1.0.6
func (client *Client) SetMenuButton(req *SetMenuButtonRequest) (*Ok, error)
Sets menu button for the given user or for all users; for bots only
func (*Client) SetMessageSenderBlockList ¶ added in v1.2.3
func (client *Client) SetMessageSenderBlockList(req *SetMessageSenderBlockListRequest) (*Ok, error)
Changes the block list of a message sender. Currently, only users and supergroup chats can be blocked
func (*Client) SetName ¶
func (client *Client) SetName(req *SetNameRequest) (*Ok, error)
Changes the first and last name of the current user
func (*Client) SetNetworkType ¶
func (client *Client) SetNetworkType(req *SetNetworkTypeRequest) (*Ok, error)
Sets the current network type. Can be called before authorization. Calling this method forces all network connections to reopen, mitigating the delay in switching between different networks, so it must be called whenever the network is changed, even if the network type remains the same. Network type is used to check whether the library can use the network at all and also for collecting detailed network data usage statistics
func (*Client) SetOption ¶
func (client *Client) SetOption(req *SetOptionRequest) (*Ok, error)
Sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization
func (*Client) SetPassportElement ¶
func (client *Client) SetPassportElement(req *SetPassportElementRequest) (PassportElement, error)
Adds an element to the user's Telegram Passport. May return an error with a message "PHONE_VERIFICATION_NEEDED" or "EMAIL_VERIFICATION_NEEDED" if the chosen phone number or the chosen email address must be verified first
func (*Client) SetPassportElementErrors ¶
func (client *Client) SetPassportElementErrors(req *SetPassportElementErrorsRequest) (*Ok, error)
Informs the user that some of the elements in their Telegram Passport contain errors; for bots only. The user will not be able to resend the elements, until the errors are fixed
func (*Client) SetPassword ¶
func (client *Client) SetPassword(req *SetPasswordRequest) (*PasswordState, error)
Changes the 2-step verification password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed
func (*Client) SetPinnedChats ¶
func (client *Client) SetPinnedChats(req *SetPinnedChatsRequest) (*Ok, error)
Changes the order of pinned chats
func (*Client) SetPinnedForumTopics ¶ added in v1.2.3
func (client *Client) SetPinnedForumTopics(req *SetPinnedForumTopicsRequest) (*Ok, error)
Changes the order of pinned forum topics
func (*Client) SetPollAnswer ¶
func (client *Client) SetPollAnswer(req *SetPollAnswerRequest) (*Ok, error)
Changes the user answer to a poll. A poll in quiz mode can be answered only once
func (*Client) SetProfilePhoto ¶
func (client *Client) SetProfilePhoto(req *SetProfilePhotoRequest) (*Ok, error)
Changes a profile photo for the current user
func (*Client) SetRecoveryEmailAddress ¶
func (client *Client) SetRecoveryEmailAddress(req *SetRecoveryEmailAddressRequest) (*PasswordState, error)
Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. If new_recovery_email_address is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation
func (*Client) SetScopeNotificationSettings ¶
func (client *Client) SetScopeNotificationSettings(req *SetScopeNotificationSettingsRequest) (*Ok, error)
Changes notification settings for chats of a given type
func (*Client) SetStickerEmojis ¶ added in v1.2.3
func (client *Client) SetStickerEmojis(req *SetStickerEmojisRequest) (*Ok, error)
Changes the list of emoji corresponding to a sticker; for bots only. The sticker must belong to a regular or custom emoji sticker set created by the bot
func (*Client) SetStickerKeywords ¶ added in v1.2.3
func (client *Client) SetStickerKeywords(req *SetStickerKeywordsRequest) (*Ok, error)
Changes the list of keywords of a sticker; for bots only. The sticker must belong to a regular or custom emoji sticker set created by the bot
func (*Client) SetStickerMaskPosition ¶ added in v1.2.3
func (client *Client) SetStickerMaskPosition(req *SetStickerMaskPositionRequest) (*Ok, error)
Changes the mask position of a mask sticker; for bots only. The sticker must belong to a mask sticker set created by the bot
func (*Client) SetStickerPositionInSet ¶
func (client *Client) SetStickerPositionInSet(req *SetStickerPositionInSetRequest) (*Ok, error)
Changes the position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot
func (*Client) SetStickerSetThumbnail ¶
func (client *Client) SetStickerSetThumbnail(req *SetStickerSetThumbnailRequest) (*Ok, error)
Sets a sticker set thumbnail; for bots only
func (*Client) SetStickerSetTitle ¶ added in v1.2.3
func (client *Client) SetStickerSetTitle(req *SetStickerSetTitleRequest) (*Ok, error)
Sets a sticker set title; for bots only
func (*Client) SetStoryPrivacySettings ¶ added in v1.2.3
func (client *Client) SetStoryPrivacySettings(req *SetStoryPrivacySettingsRequest) (*Ok, error)
Changes privacy settings of a previously sent story
func (*Client) SetStoryReaction ¶ added in v1.2.3
func (client *Client) SetStoryReaction(req *SetStoryReactionRequest) (*Ok, error)
Changes chosen reaction on a story
func (*Client) SetSupergroupStickerSet ¶
func (client *Client) SetSupergroupStickerSet(req *SetSupergroupStickerSetRequest) (*Ok, error)
Changes the sticker set of a supergroup; requires can_change_info administrator right
func (*Client) SetSupergroupUsername ¶
func (client *Client) SetSupergroupUsername(req *SetSupergroupUsernameRequest) (*Ok, error)
Changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel
func (*Client) SetTdlibParameters ¶
func (client *Client) SetTdlibParameters(req *SetTdlibParametersRequest) (*Ok, error)
Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters
func (*Client) SetUserPersonalProfilePhoto ¶ added in v1.2.3
func (client *Client) SetUserPersonalProfilePhoto(req *SetUserPersonalProfilePhotoRequest) (*Ok, error)
Changes a personal profile photo of a contact user
func (*Client) SetUserPrivacySettingRules ¶
func (client *Client) SetUserPrivacySettingRules(req *SetUserPrivacySettingRulesRequest) (*Ok, error)
Changes user privacy settings
func (*Client) SetUserSupportInfo ¶ added in v1.2.3
func (client *Client) SetUserSupportInfo(req *SetUserSupportInfoRequest) (*UserSupportInfo, error)
Sets support information for the given user; for Telegram support only
func (*Client) SetUsername ¶
func (client *Client) SetUsername(req *SetUsernameRequest) (*Ok, error)
Changes the editable username of the current user
func (*Client) SetVideoChatDefaultParticipant ¶
func (client *Client) SetVideoChatDefaultParticipant(req *SetVideoChatDefaultParticipantRequest) (*Ok, error)
Changes default participant identifier, on whose behalf a video chat in the chat will be joined
func (*Client) ShareChatWithBot ¶ added in v1.2.3
func (client *Client) ShareChatWithBot(req *ShareChatWithBotRequest) (*Ok, error)
Shares a chat after pressing a keyboardButtonTypeRequestChat button with the bot
func (*Client) SharePhoneNumber ¶
func (client *Client) SharePhoneNumber(req *SharePhoneNumberRequest) (*Ok, error)
Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber
func (*Client) ShareUserWithBot ¶ added in v1.2.3
func (client *Client) ShareUserWithBot(req *ShareUserWithBotRequest) (*Ok, error)
Shares a user after pressing a keyboardButtonTypeRequestUser button with the bot
func (*Client) StartGroupCallRecording ¶
func (client *Client) StartGroupCallRecording(req *StartGroupCallRecordingRequest) (*Ok, error)
Starts recording of an active group call. Requires groupCall.can_be_managed group call flag
func (*Client) StartGroupCallScreenSharing ¶
func (client *Client) StartGroupCallScreenSharing(req *StartGroupCallScreenSharingRequest) (*Text, error)
Starts screen sharing in a joined group call. Returns join response payload for tgcalls
func (*Client) StartScheduledGroupCall ¶
func (client *Client) StartScheduledGroupCall(req *StartScheduledGroupCallRequest) (*Ok, error)
Starts a scheduled group call
func (*Client) StopPoll ¶
func (client *Client) StopPoll(req *StopPollRequest) (*Ok, error)
Stops a poll. A poll in a message can be stopped when the message has can_be_edited flag set
func (*Client) SuggestUserProfilePhoto ¶ added in v1.2.3
func (client *Client) SuggestUserProfilePhoto(req *SuggestUserProfilePhotoRequest) (*Ok, error)
Suggests a profile photo to another regular user with common messages
func (*Client) SynchronizeLanguagePack ¶
func (client *Client) SynchronizeLanguagePack(req *SynchronizeLanguagePackRequest) (*Ok, error)
Fetches the latest versions of all strings from a language pack in the current localization target from the server. This method doesn't need to be called explicitly for the current used/base language packs. Can be called before authorization
func (*Client) TerminateAllOtherSessions ¶
Terminates all other sessions of the current user
func (*Client) TerminateSession ¶
func (client *Client) TerminateSession(req *TerminateSessionRequest) (*Ok, error)
Terminates a session of the current user
func (*Client) TestCallBytes ¶
func (client *Client) TestCallBytes(req *TestCallBytesRequest) (*TestBytes, error)
Returns the received bytes; for testing only. This is an offline method. Can be called before authorization
func (*Client) TestCallEmpty ¶
Does nothing; for testing only. This is an offline method. Can be called before authorization
func (*Client) TestCallString ¶
func (client *Client) TestCallString(req *TestCallStringRequest) (*TestString, error)
Returns the received string; for testing only. This is an offline method. Can be called before authorization
func (*Client) TestCallVectorInt ¶
func (client *Client) TestCallVectorInt(req *TestCallVectorIntRequest) (*TestVectorInt, error)
Returns the received vector of numbers; for testing only. This is an offline method. Can be called before authorization
func (*Client) TestCallVectorIntObject ¶
func (client *Client) TestCallVectorIntObject(req *TestCallVectorIntObjectRequest) (*TestVectorIntObject, error)
Returns the received vector of objects containing a number; for testing only. This is an offline method. Can be called before authorization
func (*Client) TestCallVectorString ¶
func (client *Client) TestCallVectorString(req *TestCallVectorStringRequest) (*TestVectorString, error)
Returns the received vector of strings; for testing only. This is an offline method. Can be called before authorization
func (*Client) TestCallVectorStringObject ¶
func (client *Client) TestCallVectorStringObject(req *TestCallVectorStringObjectRequest) (*TestVectorStringObject, error)
Returns the received vector of objects containing a string; for testing only. This is an offline method. Can be called before authorization
func (*Client) TestGetDifference ¶
Forces an updates.getDifference call to the Telegram servers; for testing only
func (*Client) TestNetwork ¶
Sends a simple network request to the Telegram servers; for testing only. Can be called before authorization
func (*Client) TestProxy ¶
func (client *Client) TestProxy(req *TestProxyRequest) (*Ok, error)
Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization
func (*Client) TestReturnError ¶
func (client *Client) TestReturnError(req *TestReturnErrorRequest) (*Error, error)
deprecated Returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously
func (*Client) TestSquareInt ¶
func (client *Client) TestSquareInt(req *TestSquareIntRequest) (*TestInt, error)
Returns the squared received number; for testing only. This is an offline method. Can be called before authorization
func (*Client) TestUseUpdate ¶
Does nothing and ensures that the Update object is used; for testing only. This is an offline method. Can be called before authorization
func (*Client) ToggleAllDownloadsArePaused ¶ added in v1.0.6
func (client *Client) ToggleAllDownloadsArePaused(req *ToggleAllDownloadsArePausedRequest) (*Ok, error)
Changes pause state of all files in the file download list
func (*Client) ToggleBotIsAddedToAttachmentMenu ¶ added in v1.0.6
func (client *Client) ToggleBotIsAddedToAttachmentMenu(req *ToggleBotIsAddedToAttachmentMenuRequest) (*Ok, error)
Adds or removes a bot to attachment and side menu. Bot can be added to the menu, only if userTypeBot.can_be_added_to_attachment_menu == true
func (*Client) ToggleBotUsernameIsActive ¶ added in v1.2.3
func (client *Client) ToggleBotUsernameIsActive(req *ToggleBotUsernameIsActiveRequest) (*Ok, error)
Changes active state for a username of a bot. The editable username can't be disabled. May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached. Can be called only if userTypeBot.can_be_edited == true
func (*Client) ToggleChatDefaultDisableNotification ¶
func (client *Client) ToggleChatDefaultDisableNotification(req *ToggleChatDefaultDisableNotificationRequest) (*Ok, error)
Changes the value of the default disable_notification parameter, used when a message is sent to a chat
func (*Client) ToggleChatHasProtectedContent ¶
func (client *Client) ToggleChatHasProtectedContent(req *ToggleChatHasProtectedContentRequest) (*Ok, error)
Changes the ability of users to save, forward, or copy chat content. Supported only for basic groups, supergroups and channels. Requires owner privileges
func (*Client) ToggleChatIsMarkedAsUnread ¶
func (client *Client) ToggleChatIsMarkedAsUnread(req *ToggleChatIsMarkedAsUnreadRequest) (*Ok, error)
Changes the marked as unread state of a chat
func (*Client) ToggleChatIsPinned ¶
func (client *Client) ToggleChatIsPinned(req *ToggleChatIsPinnedRequest) (*Ok, error)
Changes the pinned state of a chat. There can be up to getOption("pinned_chat_count_max")/getOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/archive chat list. The limit can be increased with Telegram Premium
func (*Client) ToggleChatIsTranslatable ¶ added in v1.2.3
func (client *Client) ToggleChatIsTranslatable(req *ToggleChatIsTranslatableRequest) (*Ok, error)
Changes the translatable state of a chat; for Telegram Premium users only
func (*Client) ToggleDownloadIsPaused ¶ added in v1.0.6
func (client *Client) ToggleDownloadIsPaused(req *ToggleDownloadIsPausedRequest) (*Ok, error)
Changes pause state of a file in the file download list
func (*Client) ToggleForumTopicIsClosed ¶ added in v1.2.3
func (client *Client) ToggleForumTopicIsClosed(req *ToggleForumTopicIsClosedRequest) (*Ok, error)
Toggles whether a topic is closed in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup unless the user is creator of the topic
func (*Client) ToggleForumTopicIsPinned ¶ added in v1.2.3
func (client *Client) ToggleForumTopicIsPinned(req *ToggleForumTopicIsPinnedRequest) (*Ok, error)
Changes the pinned state of a forum topic; requires can_manage_topics administrator right in the supergroup. There can be up to getOption("pinned_forum_topic_count_max") pinned forum topics
func (*Client) ToggleGeneralForumTopicIsHidden ¶ added in v1.2.3
func (client *Client) ToggleGeneralForumTopicIsHidden(req *ToggleGeneralForumTopicIsHiddenRequest) (*Ok, error)
Toggles whether a General topic is hidden in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup
func (*Client) ToggleGroupCallEnabledStartNotification ¶
func (client *Client) ToggleGroupCallEnabledStartNotification(req *ToggleGroupCallEnabledStartNotificationRequest) (*Ok, error)
Toggles whether the current user will receive a notification when the group call will start; scheduled group calls only
func (*Client) ToggleGroupCallIsMyVideoEnabled ¶
func (client *Client) ToggleGroupCallIsMyVideoEnabled(req *ToggleGroupCallIsMyVideoEnabledRequest) (*Ok, error)
Toggles whether current user's video is enabled
func (*Client) ToggleGroupCallIsMyVideoPaused ¶
func (client *Client) ToggleGroupCallIsMyVideoPaused(req *ToggleGroupCallIsMyVideoPausedRequest) (*Ok, error)
Toggles whether current user's video is paused
func (*Client) ToggleGroupCallMuteNewParticipants ¶
func (client *Client) ToggleGroupCallMuteNewParticipants(req *ToggleGroupCallMuteNewParticipantsRequest) (*Ok, error)
Toggles whether new participants of a group call can be unmuted only by administrators of the group call. Requires groupCall.can_toggle_mute_new_participants group call flag
func (*Client) ToggleGroupCallParticipantIsHandRaised ¶
func (client *Client) ToggleGroupCallParticipantIsHandRaised(req *ToggleGroupCallParticipantIsHandRaisedRequest) (*Ok, error)
Toggles whether a group call participant hand is rased
func (*Client) ToggleGroupCallParticipantIsMuted ¶
func (client *Client) ToggleGroupCallParticipantIsMuted(req *ToggleGroupCallParticipantIsMutedRequest) (*Ok, error)
Toggles whether a participant of an active group call is muted, unmuted, or allowed to unmute themselves
func (*Client) ToggleGroupCallScreenSharingIsPaused ¶
func (client *Client) ToggleGroupCallScreenSharingIsPaused(req *ToggleGroupCallScreenSharingIsPausedRequest) (*Ok, error)
Pauses or unpauses screen sharing in a joined group call
func (*Client) ToggleSessionCanAcceptCalls ¶
func (client *Client) ToggleSessionCanAcceptCalls(req *ToggleSessionCanAcceptCallsRequest) (*Ok, error)
Toggles whether a session can accept incoming calls
func (*Client) ToggleSessionCanAcceptSecretChats ¶
func (client *Client) ToggleSessionCanAcceptSecretChats(req *ToggleSessionCanAcceptSecretChatsRequest) (*Ok, error)
Toggles whether a session can accept incoming secret chats
func (*Client) ToggleStoryIsPinned ¶ added in v1.2.3
func (client *Client) ToggleStoryIsPinned(req *ToggleStoryIsPinnedRequest) (*Ok, error)
Toggles whether a story is accessible after expiration
func (*Client) ToggleSupergroupHasAggressiveAntiSpamEnabled ¶ added in v1.2.3
func (client *Client) ToggleSupergroupHasAggressiveAntiSpamEnabled(req *ToggleSupergroupHasAggressiveAntiSpamEnabledRequest) (*Ok, error)
Toggles whether aggressive anti-spam checks are enabled in the supergroup. Can be called only if supergroupFullInfo.can_toggle_aggressive_anti_spam == true
func (*Client) ToggleSupergroupHasHiddenMembers ¶ added in v1.2.3
func (client *Client) ToggleSupergroupHasHiddenMembers(req *ToggleSupergroupHasHiddenMembersRequest) (*Ok, error)
Toggles whether non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers. Can be called only if supergroupFullInfo.can_hide_members == true
func (*Client) ToggleSupergroupIsAllHistoryAvailable ¶
func (client *Client) ToggleSupergroupIsAllHistoryAvailable(req *ToggleSupergroupIsAllHistoryAvailableRequest) (*Ok, error)
Toggles whether the message history of a supergroup is available to new members; requires can_change_info administrator right
func (*Client) ToggleSupergroupIsBroadcastGroup ¶
func (client *Client) ToggleSupergroupIsBroadcastGroup(req *ToggleSupergroupIsBroadcastGroupRequest) (*Ok, error)
Upgrades supergroup to a broadcast group; requires owner privileges in the supergroup
func (*Client) ToggleSupergroupIsForum ¶ added in v1.2.3
func (client *Client) ToggleSupergroupIsForum(req *ToggleSupergroupIsForumRequest) (*Ok, error)
Toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Discussion supergroups can't be converted to forums
func (*Client) ToggleSupergroupJoinByRequest ¶ added in v1.2.3
func (client *Client) ToggleSupergroupJoinByRequest(req *ToggleSupergroupJoinByRequestRequest) (*Ok, error)
Toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires can_restrict_members administrator right
func (*Client) ToggleSupergroupJoinToSendMessages ¶ added in v1.2.3
func (client *Client) ToggleSupergroupJoinToSendMessages(req *ToggleSupergroupJoinToSendMessagesRequest) (*Ok, error)
Toggles whether joining is mandatory to send messages to a discussion supergroup; requires can_restrict_members administrator right
func (*Client) ToggleSupergroupSignMessages ¶
func (client *Client) ToggleSupergroupSignMessages(req *ToggleSupergroupSignMessagesRequest) (*Ok, error)
Toggles whether sender signature is added to sent messages in a channel; requires can_change_info administrator right
func (*Client) ToggleSupergroupUsernameIsActive ¶ added in v1.2.3
func (client *Client) ToggleSupergroupUsernameIsActive(req *ToggleSupergroupUsernameIsActiveRequest) (*Ok, error)
Changes active state for a username of a supergroup or channel, requires owner privileges in the supergroup or channel. The editable username can't be disabled. May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached
func (*Client) ToggleUsernameIsActive ¶ added in v1.2.3
func (client *Client) ToggleUsernameIsActive(req *ToggleUsernameIsActiveRequest) (*Ok, error)
Changes active state for a username of the current user. The editable username can't be disabled. May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached
func (*Client) TransferChatOwnership ¶
func (client *Client) TransferChatOwnership(req *TransferChatOwnershipRequest) (*Ok, error)
Changes the owner of a chat. The current user must be a current owner of the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats
func (*Client) TranslateMessageText ¶ added in v1.2.3
func (client *Client) TranslateMessageText(req *TranslateMessageTextRequest) (*FormattedText, error)
Extracts text or caption of the given message and translates it to the given language. If the current user is a Telegram Premium user, then text formatting is preserved
func (*Client) TranslateText ¶ added in v1.0.6
func (client *Client) TranslateText(req *TranslateTextRequest) (*FormattedText, error)
Translates a text to the given language. If the current user is a Telegram Premium user, then text formatting is preserved
func (*Client) UnpinAllChatMessages ¶
func (client *Client) UnpinAllChatMessages(req *UnpinAllChatMessagesRequest) (*Ok, error)
Removes all pinned messages from a chat; requires can_pin_messages rights in the group or can_edit_messages rights in the channel
func (*Client) UnpinAllMessageThreadMessages ¶ added in v1.2.3
func (client *Client) UnpinAllMessageThreadMessages(req *UnpinAllMessageThreadMessagesRequest) (*Ok, error)
Removes all pinned messages from a forum topic; requires can_pin_messages rights in the supergroup
func (*Client) UnpinChatMessage ¶
func (client *Client) UnpinChatMessage(req *UnpinChatMessageRequest) (*Ok, error)
Removes a pinned message from a chat; requires can_pin_messages rights in the group or can_edit_messages rights in the channel
func (*Client) UpgradeBasicGroupChatToSupergroupChat ¶
func (client *Client) UpgradeBasicGroupChatToSupergroupChat(req *UpgradeBasicGroupChatToSupergroupChatRequest) (*Chat, error)
Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires creator privileges. Deactivates the original basic group
func (*Client) UploadStickerFile ¶
func (client *Client) UploadStickerFile(req *UploadStickerFileRequest) (*File, error)
Uploads a file with a sticker; returns the uploaded file
func (*Client) ValidateOrderInfo ¶
func (client *Client) ValidateOrderInfo(req *ValidateOrderInfoRequest) (*ValidatedOrderInfo, error)
Validates the order information provided by a user and returns the available shipping options for a flexible invoice
func (*Client) ViewMessages ¶
func (client *Client) ViewMessages(req *ViewMessagesRequest) (*Ok, error)
Informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button). Many useful activities depend on whether the messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view counter, removing deleted messages in supergroups and channels)
func (*Client) ViewPremiumFeature ¶ added in v1.2.3
func (client *Client) ViewPremiumFeature(req *ViewPremiumFeatureRequest) (*Ok, error)
Informs TDLib that the user viewed detailed information about a Premium feature on the Premium features screen
func (*Client) ViewTrendingStickerSets ¶
func (client *Client) ViewTrendingStickerSets(req *ViewTrendingStickerSetsRequest) (*Ok, error)
Informs the server that some trending sticker sets have been viewed by the user
func (*Client) WriteGeneratedFilePart ¶
func (client *Client) WriteGeneratedFilePart(req *WriteGeneratedFilePartRequest) (*Ok, error)
Writes a part of a generated file. This method is intended to be used only if the application has no direct access to TDLib's file system, because it is usually slower than a direct write to the destination file
type CloseChatRequest ¶
type CloseChatRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type CloseSecretChatRequest ¶
type CloseSecretChatRequest struct { // Secret chat identifier SecretChatId int32 `json:"secret_chat_id"` }
type CloseStoryRequest ¶ added in v1.2.3
type CloseWebAppRequest ¶ added in v1.0.6
type CloseWebAppRequest struct { // Identifier of Web App launch, received from openWebApp WebAppLaunchId JsonInt64 `json:"web_app_launch_id"` }
type ClosedVectorPath ¶
type ClosedVectorPath struct { // List of vector path commands Commands []VectorPathCommand `json:"commands"` // contains filtered or unexported fields }
Represents a closed vector path. The path begins at the end point of the last command
func UnmarshalClosedVectorPath ¶
func UnmarshalClosedVectorPath(data json.RawMessage) (*ClosedVectorPath, error)
func (*ClosedVectorPath) GetClass ¶
func (*ClosedVectorPath) GetClass() string
func (*ClosedVectorPath) GetType ¶
func (*ClosedVectorPath) GetType() string
func (*ClosedVectorPath) MarshalJSON ¶
func (entity *ClosedVectorPath) MarshalJSON() ([]byte, error)
func (*ClosedVectorPath) UnmarshalJSON ¶
func (closedVectorPath *ClosedVectorPath) UnmarshalJSON(data []byte) error
type ConfirmQrCodeAuthenticationRequest ¶
type ConfirmQrCodeAuthenticationRequest struct { // A link from a QR code. The link must be scanned by the in-app camera Link string `json:"link"` }
type ConfirmSessionRequest ¶ added in v1.2.3
type ConfirmSessionRequest struct { // Session identifier SessionId JsonInt64 `json:"session_id"` }
type ConnectedWebsite ¶
type ConnectedWebsite struct { // Website identifier Id JsonInt64 `json:"id"` // The domain name of the website DomainName string `json:"domain_name"` // User identifier of a bot linked with the website BotUserId int64 `json:"bot_user_id"` // The version of a browser used to log in Browser string `json:"browser"` // Operating system the browser is running on Platform string `json:"platform"` // Point in time (Unix timestamp) when the user was logged in LogInDate int32 `json:"log_in_date"` // Point in time (Unix timestamp) when obtained authorization was last used LastActiveDate int32 `json:"last_active_date"` // IP address from which the user was logged in, in human-readable format IpAddress string `json:"ip_address"` // Human-readable description of a country and a region from which the user was logged in, based on the IP address Location string `json:"location"` // contains filtered or unexported fields }
Contains information about one website the current user is logged in with Telegram
func UnmarshalConnectedWebsite ¶
func UnmarshalConnectedWebsite(data json.RawMessage) (*ConnectedWebsite, error)
func (*ConnectedWebsite) GetClass ¶
func (*ConnectedWebsite) GetClass() string
func (*ConnectedWebsite) GetType ¶
func (*ConnectedWebsite) GetType() string
func (*ConnectedWebsite) MarshalJSON ¶
func (entity *ConnectedWebsite) MarshalJSON() ([]byte, error)
type ConnectedWebsites ¶
type ConnectedWebsites struct { // List of connected websites Websites []*ConnectedWebsite `json:"websites"` // contains filtered or unexported fields }
Contains a list of websites the current user is logged in with Telegram
func UnmarshalConnectedWebsites ¶
func UnmarshalConnectedWebsites(data json.RawMessage) (*ConnectedWebsites, error)
func (*ConnectedWebsites) GetClass ¶
func (*ConnectedWebsites) GetClass() string
func (*ConnectedWebsites) GetType ¶
func (*ConnectedWebsites) GetType() string
func (*ConnectedWebsites) MarshalJSON ¶
func (entity *ConnectedWebsites) MarshalJSON() ([]byte, error)
type ConnectionState ¶
type ConnectionState interface {
ConnectionStateType() string
}
Describes the current state of the connection to Telegram servers
func UnmarshalConnectionState ¶
func UnmarshalConnectionState(data json.RawMessage) (ConnectionState, error)
func UnmarshalListOfConnectionState ¶
func UnmarshalListOfConnectionState(dataList []json.RawMessage) ([]ConnectionState, error)
type ConnectionStateConnecting ¶
type ConnectionStateConnecting struct {
// contains filtered or unexported fields
}
Currently establishing a connection to the Telegram servers
func UnmarshalConnectionStateConnecting ¶
func UnmarshalConnectionStateConnecting(data json.RawMessage) (*ConnectionStateConnecting, error)
func (*ConnectionStateConnecting) ConnectionStateType ¶
func (*ConnectionStateConnecting) ConnectionStateType() string
func (*ConnectionStateConnecting) GetClass ¶
func (*ConnectionStateConnecting) GetClass() string
func (*ConnectionStateConnecting) GetType ¶
func (*ConnectionStateConnecting) GetType() string
func (*ConnectionStateConnecting) MarshalJSON ¶
func (entity *ConnectionStateConnecting) MarshalJSON() ([]byte, error)
type ConnectionStateConnectingToProxy ¶
type ConnectionStateConnectingToProxy struct {
// contains filtered or unexported fields
}
Currently establishing a connection with a proxy server
func UnmarshalConnectionStateConnectingToProxy ¶
func UnmarshalConnectionStateConnectingToProxy(data json.RawMessage) (*ConnectionStateConnectingToProxy, error)
func (*ConnectionStateConnectingToProxy) ConnectionStateType ¶
func (*ConnectionStateConnectingToProxy) ConnectionStateType() string
func (*ConnectionStateConnectingToProxy) GetClass ¶
func (*ConnectionStateConnectingToProxy) GetClass() string
func (*ConnectionStateConnectingToProxy) GetType ¶
func (*ConnectionStateConnectingToProxy) GetType() string
func (*ConnectionStateConnectingToProxy) MarshalJSON ¶
func (entity *ConnectionStateConnectingToProxy) MarshalJSON() ([]byte, error)
type ConnectionStateReady ¶
type ConnectionStateReady struct {
// contains filtered or unexported fields
}
There is a working connection to the Telegram servers
func UnmarshalConnectionStateReady ¶
func UnmarshalConnectionStateReady(data json.RawMessage) (*ConnectionStateReady, error)
func (*ConnectionStateReady) ConnectionStateType ¶
func (*ConnectionStateReady) ConnectionStateType() string
func (*ConnectionStateReady) GetClass ¶
func (*ConnectionStateReady) GetClass() string
func (*ConnectionStateReady) GetType ¶
func (*ConnectionStateReady) GetType() string
func (*ConnectionStateReady) MarshalJSON ¶
func (entity *ConnectionStateReady) MarshalJSON() ([]byte, error)
type ConnectionStateUpdating ¶
type ConnectionStateUpdating struct {
// contains filtered or unexported fields
}
Downloading data received while the application was offline
func UnmarshalConnectionStateUpdating ¶
func UnmarshalConnectionStateUpdating(data json.RawMessage) (*ConnectionStateUpdating, error)
func (*ConnectionStateUpdating) ConnectionStateType ¶
func (*ConnectionStateUpdating) ConnectionStateType() string
func (*ConnectionStateUpdating) GetClass ¶
func (*ConnectionStateUpdating) GetClass() string
func (*ConnectionStateUpdating) GetType ¶
func (*ConnectionStateUpdating) GetType() string
func (*ConnectionStateUpdating) MarshalJSON ¶
func (entity *ConnectionStateUpdating) MarshalJSON() ([]byte, error)
type ConnectionStateWaitingForNetwork ¶
type ConnectionStateWaitingForNetwork struct {
// contains filtered or unexported fields
}
Currently waiting for the network to become available. Use setNetworkType to change the available network type
func UnmarshalConnectionStateWaitingForNetwork ¶
func UnmarshalConnectionStateWaitingForNetwork(data json.RawMessage) (*ConnectionStateWaitingForNetwork, error)
func (*ConnectionStateWaitingForNetwork) ConnectionStateType ¶
func (*ConnectionStateWaitingForNetwork) ConnectionStateType() string
func (*ConnectionStateWaitingForNetwork) GetClass ¶
func (*ConnectionStateWaitingForNetwork) GetClass() string
func (*ConnectionStateWaitingForNetwork) GetType ¶
func (*ConnectionStateWaitingForNetwork) GetType() string
func (*ConnectionStateWaitingForNetwork) MarshalJSON ¶
func (entity *ConnectionStateWaitingForNetwork) MarshalJSON() ([]byte, error)
type Contact ¶
type Contact struct { // Phone number of the user PhoneNumber string `json:"phone_number"` // First name of the user; 1-255 characters in length FirstName string `json:"first_name"` // Last name of the user LastName string `json:"last_name"` // Additional data about the user in a form of vCard; 0-2048 bytes in length Vcard string `json:"vcard"` // Identifier of the user, if known; 0 otherwise UserId int64 `json:"user_id"` // contains filtered or unexported fields }
Describes a user contact
func UnmarshalContact ¶
func UnmarshalContact(data json.RawMessage) (*Contact, error)
func (*Contact) MarshalJSON ¶
type Count ¶
type Count struct { // Count Count int32 `json:"count"` // contains filtered or unexported fields }
Contains a counter
func UnmarshalCount ¶
func UnmarshalCount(data json.RawMessage) (*Count, error)
func (*Count) MarshalJSON ¶
type Countries ¶
type Countries struct { // The list of countries Countries []*CountryInfo `json:"countries"` // contains filtered or unexported fields }
Contains information about countries
func UnmarshalCountries ¶
func UnmarshalCountries(data json.RawMessage) (*Countries, error)
func (*Countries) MarshalJSON ¶
type CountryInfo ¶
type CountryInfo struct { // A two-letter ISO 3166-1 alpha-2 country code CountryCode string `json:"country_code"` // Native name of the country Name string `json:"name"` // English name of the country EnglishName string `json:"english_name"` // True, if the country must be hidden from the list of all countries IsHidden bool `json:"is_hidden"` // List of country calling codes CallingCodes []string `json:"calling_codes"` // contains filtered or unexported fields }
Contains information about a country
func UnmarshalCountryInfo ¶
func UnmarshalCountryInfo(data json.RawMessage) (*CountryInfo, error)
func (*CountryInfo) GetClass ¶
func (*CountryInfo) GetClass() string
func (*CountryInfo) GetType ¶
func (*CountryInfo) GetType() string
func (*CountryInfo) MarshalJSON ¶
func (entity *CountryInfo) MarshalJSON() ([]byte, error)
type CreateCallRequest ¶
type CreateCallRequest struct { // Identifier of the user to be called UserId int64 `json:"user_id"` // The call protocols supported by the application Protocol *CallProtocol `json:"protocol"` // Pass true to create a video call IsVideo bool `json:"is_video"` }
type CreateChatFolderInviteLinkRequest ¶ added in v1.2.3
type CreateChatFolderInviteLinkRequest struct { // Chat folder identifier ChatFolderId int32 `json:"chat_folder_id"` // Name of the link; 0-32 characters Name string `json:"name"` // Identifiers of chats to be accessible by the invite link. Use getChatsForChatFolderInviteLink to get suitable chats. Basic groups will be automatically converted to supergroups before link creation ChatIds []int64 `json:"chat_ids"` }
type CreateChatFolderRequest ¶ added in v1.2.3
type CreateChatFolderRequest struct { // The new chat folder Folder *ChatFolder `json:"folder"` }
type CreateChatInviteLinkRequest ¶
type CreateChatInviteLinkRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Invite link name; 0-32 characters Name string `json:"name"` // Point in time (Unix timestamp) when the link will expire; pass 0 if never ExpirationDate int32 `json:"expiration_date"` // The maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited MemberLimit int32 `json:"member_limit"` // Pass true if users joining the chat via the link need to be approved by chat administrators. In this case, member_limit must be 0 CreatesJoinRequest bool `json:"creates_join_request"` }
type CreateForumTopicRequest ¶ added in v1.2.3
type CreateForumTopicRequest struct { // Identifier of the chat ChatId int64 `json:"chat_id"` // Name of the topic; 1-128 characters Name string `json:"name"` // Icon of the topic. Icon color must be one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F. Telegram Premium users can use any custom emoji as topic icon, other users can use only a custom emoji returned by getForumTopicDefaultIcons Icon *ForumTopicIcon `json:"icon"` }
type CreateInvoiceLinkRequest ¶ added in v1.2.3
type CreateInvoiceLinkRequest struct { // Information about the invoice of the type inputMessageInvoice Invoice InputMessageContent `json:"invoice"` }
type CreateNewBasicGroupChatRequest ¶
type CreateNewBasicGroupChatRequest struct { // Identifiers of users to be added to the basic group; may be empty to create a basic group without other members UserIds []int64 `json:"user_ids"` // Title of the new basic group; 1-128 characters Title string `json:"title"` // Message auto-delete time value, in seconds; must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically MessageAutoDeleteTime int32 `json:"message_auto_delete_time"` }
type CreateNewSecretChatRequest ¶
type CreateNewSecretChatRequest struct { // Identifier of the target user UserId int64 `json:"user_id"` }
type CreateNewStickerSetRequest ¶
type CreateNewStickerSetRequest struct { // Sticker set owner; ignored for regular users UserId int64 `json:"user_id"` // Sticker set title; 1-64 characters Title string `json:"title"` // Sticker set name. Can contain only English letters, digits and underscores. Must end with *"_by_<bot username>"* (*<bot_username>* is case insensitive) for bots; 1-64 characters Name string `json:"name"` // Format of the stickers in the set StickerFormat StickerFormat `json:"sticker_format"` // Type of the stickers in the set StickerType StickerType `json:"sticker_type"` // Pass true if stickers in the sticker set must be repainted; for custom emoji sticker sets only NeedsRepainting bool `json:"needs_repainting"` // List of stickers to be added to the set; must be non-empty. All stickers must have the same format. For TGS stickers, uploadStickerFile must be used before the sticker is shown Stickers []*InputSticker `json:"stickers"` // Source of the sticker set; may be empty if unknown Source string `json:"source"` }
type CreateNewSupergroupChatRequest ¶
type CreateNewSupergroupChatRequest struct { // Title of the new chat; 1-128 characters Title string `json:"title"` // Pass true to create a forum supergroup chat IsForum bool `json:"is_forum"` // Pass true to create a channel chat; ignored if a forum is created IsChannel bool `json:"is_channel"` // Chat description; 0-255 characters Description string `json:"description"` // Chat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chat Location *ChatLocation `json:"location"` // Message auto-delete time value, in seconds; must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically MessageAutoDeleteTime int32 `json:"message_auto_delete_time"` // Pass true to create a supergroup for importing messages using importMessage ForImport bool `json:"for_import"` }
type CreateSecretChatRequest ¶
type CreateSecretChatRequest struct { // Secret chat identifier SecretChatId int32 `json:"secret_chat_id"` }
type CreateSupergroupChatRequest ¶
type CreateSupergroupChatRequest struct { // Supergroup or channel identifier SupergroupId int64 `json:"supergroup_id"` // Pass true to create the chat without a network request. In this case all information about the chat except its type, title and photo can be incorrect Force bool `json:"force"` }
type CreateVideoChatRequest ¶
type CreateVideoChatRequest struct { // Identifier of a chat in which the video chat will be created ChatId int64 `json:"chat_id"` // Group call title; if empty, chat title will be used Title string `json:"title"` // Point in time (Unix timestamp) when the group call is supposed to be started by an administrator; 0 to start the video chat immediately. The date must be at least 10 seconds and at most 8 days in the future StartDate int32 `json:"start_date"` // Pass true to create an RTMP stream instead of an ordinary video chat; requires creator privileges IsRtmpStream bool `json:"is_rtmp_stream"` }
type CustomRequestResult ¶
type CustomRequestResult struct { // A JSON-serialized result Result string `json:"result"` // contains filtered or unexported fields }
Contains the result of a custom request
func UnmarshalCustomRequestResult ¶
func UnmarshalCustomRequestResult(data json.RawMessage) (*CustomRequestResult, error)
func (*CustomRequestResult) GetClass ¶
func (*CustomRequestResult) GetClass() string
func (*CustomRequestResult) GetType ¶
func (*CustomRequestResult) GetType() string
func (*CustomRequestResult) MarshalJSON ¶
func (entity *CustomRequestResult) MarshalJSON() ([]byte, error)
type DatabaseStatistics ¶
type DatabaseStatistics struct { // Database statistics in an unspecified human-readable format Statistics string `json:"statistics"` // contains filtered or unexported fields }
Contains database statistics
func UnmarshalDatabaseStatistics ¶
func UnmarshalDatabaseStatistics(data json.RawMessage) (*DatabaseStatistics, error)
func (*DatabaseStatistics) GetClass ¶
func (*DatabaseStatistics) GetClass() string
func (*DatabaseStatistics) GetType ¶
func (*DatabaseStatistics) GetType() string
func (*DatabaseStatistics) MarshalJSON ¶
func (entity *DatabaseStatistics) MarshalJSON() ([]byte, error)
type Date ¶
type Date struct { // Day of the month; 1-31 Day int32 `json:"day"` // Month; 1-12 Month int32 `json:"month"` // Year; 1-9999 Year int32 `json:"year"` // contains filtered or unexported fields }
Represents a date according to the Gregorian calendar
func UnmarshalDate ¶
func UnmarshalDate(data json.RawMessage) (*Date, error)
func (*Date) MarshalJSON ¶
type DateRange ¶
type DateRange struct { // Point in time (Unix timestamp) at which the date range begins StartDate int32 `json:"start_date"` // Point in time (Unix timestamp) at which the date range ends EndDate int32 `json:"end_date"` // contains filtered or unexported fields }
Represents a date range
func UnmarshalDateRange ¶
func UnmarshalDateRange(data json.RawMessage) (*DateRange, error)
func (*DateRange) MarshalJSON ¶
type DatedFile ¶
type DatedFile struct { // The file File *File `json:"file"` // Point in time (Unix timestamp) when the file was uploaded Date int32 `json:"date"` // contains filtered or unexported fields }
File with the date it was uploaded
func UnmarshalDatedFile ¶
func UnmarshalDatedFile(data json.RawMessage) (*DatedFile, error)
func (*DatedFile) MarshalJSON ¶
type DeepLinkInfo ¶
type DeepLinkInfo struct { // Text to be shown to the user Text *FormattedText `json:"text"` // True, if the user must be asked to update the application NeedUpdateApplication bool `json:"need_update_application"` // contains filtered or unexported fields }
Contains information about a tg: deep link
func UnmarshalDeepLinkInfo ¶
func UnmarshalDeepLinkInfo(data json.RawMessage) (*DeepLinkInfo, error)
func (*DeepLinkInfo) GetClass ¶
func (*DeepLinkInfo) GetClass() string
func (*DeepLinkInfo) GetType ¶
func (*DeepLinkInfo) GetType() string
func (*DeepLinkInfo) MarshalJSON ¶
func (entity *DeepLinkInfo) MarshalJSON() ([]byte, error)
type DeleteAccountRequest ¶
type DeleteAllCallMessagesRequest ¶
type DeleteAllCallMessagesRequest struct { // Pass true to delete the messages for all users Revoke bool `json:"revoke"` }
type DeleteChatFolderInviteLinkRequest ¶ added in v1.2.3
type DeleteChatFolderRequest ¶ added in v1.2.3
type DeleteChatMessagesByDateRequest ¶
type DeleteChatMessagesByDateRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // The minimum date of the messages to delete MinDate int32 `json:"min_date"` // The maximum date of the messages to delete MaxDate int32 `json:"max_date"` // Pass true to delete chat messages for all users; private chats only Revoke bool `json:"revoke"` }
type DeleteChatMessagesBySenderRequest ¶
type DeleteChatMessagesBySenderRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Identifier of the sender of messages to delete SenderId MessageSender `json:"sender_id"` }
type DeleteChatRequest ¶
type DeleteChatRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type DeleteCommandsRequest ¶
type DeleteCommandsRequest struct { // The scope to which the commands are relevant; pass null to delete commands in the default bot command scope Scope BotCommandScope `json:"scope"` // A two-letter ISO 639-1 language code or an empty string LanguageCode string `json:"language_code"` }
type DeleteFileRequest ¶
type DeleteFileRequest struct { // Identifier of the file to delete FileId int32 `json:"file_id"` }
type DeleteForumTopicRequest ¶ added in v1.2.3
type DeleteLanguagePackRequest ¶
type DeleteLanguagePackRequest struct { // Identifier of the language pack to delete LanguagePackId string `json:"language_pack_id"` }
type DeleteMessagesRequest ¶
type DeleteMessagesRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Identifiers of the messages to be deleted MessageIds []int64 `json:"message_ids"` // Pass true to delete messages for all chat members. Always true for supergroups, channels and secret chats Revoke bool `json:"revoke"` }
type DeletePassportElementRequest ¶
type DeletePassportElementRequest struct { // Element type Type PassportElementType `json:"type"` }
type DeleteProfilePhotoRequest ¶
type DeleteProfilePhotoRequest struct { // Identifier of the profile photo to delete ProfilePhotoId JsonInt64 `json:"profile_photo_id"` }
type DeleteStickerSetRequest ¶ added in v1.2.3
type DeleteStickerSetRequest struct { // Sticker set name Name string `json:"name"` }
type DeleteStoryRequest ¶ added in v1.2.3
type DeleteStoryRequest struct { // Identifier of the story to delete StoryId int32 `json:"story_id"` }
type DeviceToken ¶
type DeviceToken interface {
DeviceTokenType() string
}
Represents a data needed to subscribe for push notifications through registerDevice method. To use specific push notification service, the correct application platform must be specified and a valid server authentication data must be uploaded at https://my.telegram.org
func UnmarshalDeviceToken ¶
func UnmarshalDeviceToken(data json.RawMessage) (DeviceToken, error)
func UnmarshalListOfDeviceToken ¶
func UnmarshalListOfDeviceToken(dataList []json.RawMessage) ([]DeviceToken, error)
type DeviceTokenApplePush ¶
type DeviceTokenApplePush struct { // Device token; may be empty to deregister a device DeviceToken string `json:"device_token"` // True, if App Sandbox is enabled IsAppSandbox bool `json:"is_app_sandbox"` // contains filtered or unexported fields }
A token for Apple Push Notification service
func UnmarshalDeviceTokenApplePush ¶
func UnmarshalDeviceTokenApplePush(data json.RawMessage) (*DeviceTokenApplePush, error)
func (*DeviceTokenApplePush) DeviceTokenType ¶
func (*DeviceTokenApplePush) DeviceTokenType() string
func (*DeviceTokenApplePush) GetClass ¶
func (*DeviceTokenApplePush) GetClass() string
func (*DeviceTokenApplePush) GetType ¶
func (*DeviceTokenApplePush) GetType() string
func (*DeviceTokenApplePush) MarshalJSON ¶
func (entity *DeviceTokenApplePush) MarshalJSON() ([]byte, error)
type DeviceTokenApplePushVoIP ¶
type DeviceTokenApplePushVoIP struct { // Device token; may be empty to deregister a device DeviceToken string `json:"device_token"` // True, if App Sandbox is enabled IsAppSandbox bool `json:"is_app_sandbox"` // True, if push notifications must be additionally encrypted Encrypt bool `json:"encrypt"` // contains filtered or unexported fields }
A token for Apple Push Notification service VoIP notifications
func UnmarshalDeviceTokenApplePushVoIP ¶
func UnmarshalDeviceTokenApplePushVoIP(data json.RawMessage) (*DeviceTokenApplePushVoIP, error)
func (*DeviceTokenApplePushVoIP) DeviceTokenType ¶
func (*DeviceTokenApplePushVoIP) DeviceTokenType() string
func (*DeviceTokenApplePushVoIP) GetClass ¶
func (*DeviceTokenApplePushVoIP) GetClass() string
func (*DeviceTokenApplePushVoIP) GetType ¶
func (*DeviceTokenApplePushVoIP) GetType() string
func (*DeviceTokenApplePushVoIP) MarshalJSON ¶
func (entity *DeviceTokenApplePushVoIP) MarshalJSON() ([]byte, error)
type DeviceTokenBlackBerryPush ¶
type DeviceTokenBlackBerryPush struct { // Token; may be empty to deregister a device Token string `json:"token"` // contains filtered or unexported fields }
A token for BlackBerry Push Service
func UnmarshalDeviceTokenBlackBerryPush ¶
func UnmarshalDeviceTokenBlackBerryPush(data json.RawMessage) (*DeviceTokenBlackBerryPush, error)
func (*DeviceTokenBlackBerryPush) DeviceTokenType ¶
func (*DeviceTokenBlackBerryPush) DeviceTokenType() string
func (*DeviceTokenBlackBerryPush) GetClass ¶
func (*DeviceTokenBlackBerryPush) GetClass() string
func (*DeviceTokenBlackBerryPush) GetType ¶
func (*DeviceTokenBlackBerryPush) GetType() string
func (*DeviceTokenBlackBerryPush) MarshalJSON ¶
func (entity *DeviceTokenBlackBerryPush) MarshalJSON() ([]byte, error)
type DeviceTokenFirebaseCloudMessaging ¶
type DeviceTokenFirebaseCloudMessaging struct { // Device registration token; may be empty to deregister a device Token string `json:"token"` // True, if push notifications must be additionally encrypted Encrypt bool `json:"encrypt"` // contains filtered or unexported fields }
A token for Firebase Cloud Messaging
func UnmarshalDeviceTokenFirebaseCloudMessaging ¶
func UnmarshalDeviceTokenFirebaseCloudMessaging(data json.RawMessage) (*DeviceTokenFirebaseCloudMessaging, error)
func (*DeviceTokenFirebaseCloudMessaging) DeviceTokenType ¶
func (*DeviceTokenFirebaseCloudMessaging) DeviceTokenType() string
func (*DeviceTokenFirebaseCloudMessaging) GetClass ¶
func (*DeviceTokenFirebaseCloudMessaging) GetClass() string
func (*DeviceTokenFirebaseCloudMessaging) GetType ¶
func (*DeviceTokenFirebaseCloudMessaging) GetType() string
func (*DeviceTokenFirebaseCloudMessaging) MarshalJSON ¶
func (entity *DeviceTokenFirebaseCloudMessaging) MarshalJSON() ([]byte, error)
type DeviceTokenHuaweiPush ¶ added in v1.2.3
type DeviceTokenHuaweiPush struct { // Device registration token; may be empty to deregister a device Token string `json:"token"` // True, if push notifications must be additionally encrypted Encrypt bool `json:"encrypt"` // contains filtered or unexported fields }
A token for HUAWEI Push Service
func UnmarshalDeviceTokenHuaweiPush ¶ added in v1.2.3
func UnmarshalDeviceTokenHuaweiPush(data json.RawMessage) (*DeviceTokenHuaweiPush, error)
func (*DeviceTokenHuaweiPush) DeviceTokenType ¶ added in v1.2.3
func (*DeviceTokenHuaweiPush) DeviceTokenType() string
func (*DeviceTokenHuaweiPush) GetClass ¶ added in v1.2.3
func (*DeviceTokenHuaweiPush) GetClass() string
func (*DeviceTokenHuaweiPush) GetType ¶ added in v1.2.3
func (*DeviceTokenHuaweiPush) GetType() string
func (*DeviceTokenHuaweiPush) MarshalJSON ¶ added in v1.2.3
func (entity *DeviceTokenHuaweiPush) MarshalJSON() ([]byte, error)
type DeviceTokenMicrosoftPush ¶
type DeviceTokenMicrosoftPush struct { // Push notification channel URI; may be empty to deregister a device ChannelUri string `json:"channel_uri"` // contains filtered or unexported fields }
A token for Microsoft Push Notification Service
func UnmarshalDeviceTokenMicrosoftPush ¶
func UnmarshalDeviceTokenMicrosoftPush(data json.RawMessage) (*DeviceTokenMicrosoftPush, error)
func (*DeviceTokenMicrosoftPush) DeviceTokenType ¶
func (*DeviceTokenMicrosoftPush) DeviceTokenType() string
func (*DeviceTokenMicrosoftPush) GetClass ¶
func (*DeviceTokenMicrosoftPush) GetClass() string
func (*DeviceTokenMicrosoftPush) GetType ¶
func (*DeviceTokenMicrosoftPush) GetType() string
func (*DeviceTokenMicrosoftPush) MarshalJSON ¶
func (entity *DeviceTokenMicrosoftPush) MarshalJSON() ([]byte, error)
type DeviceTokenMicrosoftPushVoIP ¶
type DeviceTokenMicrosoftPushVoIP struct { // Push notification channel URI; may be empty to deregister a device ChannelUri string `json:"channel_uri"` // contains filtered or unexported fields }
A token for Microsoft Push Notification Service VoIP channel
func UnmarshalDeviceTokenMicrosoftPushVoIP ¶
func UnmarshalDeviceTokenMicrosoftPushVoIP(data json.RawMessage) (*DeviceTokenMicrosoftPushVoIP, error)
func (*DeviceTokenMicrosoftPushVoIP) DeviceTokenType ¶
func (*DeviceTokenMicrosoftPushVoIP) DeviceTokenType() string
func (*DeviceTokenMicrosoftPushVoIP) GetClass ¶
func (*DeviceTokenMicrosoftPushVoIP) GetClass() string
func (*DeviceTokenMicrosoftPushVoIP) GetType ¶
func (*DeviceTokenMicrosoftPushVoIP) GetType() string
func (*DeviceTokenMicrosoftPushVoIP) MarshalJSON ¶
func (entity *DeviceTokenMicrosoftPushVoIP) MarshalJSON() ([]byte, error)
type DeviceTokenSimplePush ¶
type DeviceTokenSimplePush struct { // Absolute URL exposed by the push service where the application server can send push messages; may be empty to deregister a device Endpoint string `json:"endpoint"` // contains filtered or unexported fields }
A token for Simple Push API for Firefox OS
func UnmarshalDeviceTokenSimplePush ¶
func UnmarshalDeviceTokenSimplePush(data json.RawMessage) (*DeviceTokenSimplePush, error)
func (*DeviceTokenSimplePush) DeviceTokenType ¶
func (*DeviceTokenSimplePush) DeviceTokenType() string
func (*DeviceTokenSimplePush) GetClass ¶
func (*DeviceTokenSimplePush) GetClass() string
func (*DeviceTokenSimplePush) GetType ¶
func (*DeviceTokenSimplePush) GetType() string
func (*DeviceTokenSimplePush) MarshalJSON ¶
func (entity *DeviceTokenSimplePush) MarshalJSON() ([]byte, error)
type DeviceTokenTizenPush ¶
type DeviceTokenTizenPush struct { // Push service registration identifier; may be empty to deregister a device RegId string `json:"reg_id"` // contains filtered or unexported fields }
A token for Tizen Push Service
func UnmarshalDeviceTokenTizenPush ¶
func UnmarshalDeviceTokenTizenPush(data json.RawMessage) (*DeviceTokenTizenPush, error)
func (*DeviceTokenTizenPush) DeviceTokenType ¶
func (*DeviceTokenTizenPush) DeviceTokenType() string
func (*DeviceTokenTizenPush) GetClass ¶
func (*DeviceTokenTizenPush) GetClass() string
func (*DeviceTokenTizenPush) GetType ¶
func (*DeviceTokenTizenPush) GetType() string
func (*DeviceTokenTizenPush) MarshalJSON ¶
func (entity *DeviceTokenTizenPush) MarshalJSON() ([]byte, error)
type DeviceTokenUbuntuPush ¶
type DeviceTokenUbuntuPush struct { // Token; may be empty to deregister a device Token string `json:"token"` // contains filtered or unexported fields }
A token for Ubuntu Push Client service
func UnmarshalDeviceTokenUbuntuPush ¶
func UnmarshalDeviceTokenUbuntuPush(data json.RawMessage) (*DeviceTokenUbuntuPush, error)
func (*DeviceTokenUbuntuPush) DeviceTokenType ¶
func (*DeviceTokenUbuntuPush) DeviceTokenType() string
func (*DeviceTokenUbuntuPush) GetClass ¶
func (*DeviceTokenUbuntuPush) GetClass() string
func (*DeviceTokenUbuntuPush) GetType ¶
func (*DeviceTokenUbuntuPush) GetType() string
func (*DeviceTokenUbuntuPush) MarshalJSON ¶
func (entity *DeviceTokenUbuntuPush) MarshalJSON() ([]byte, error)
type DeviceTokenWebPush ¶
type DeviceTokenWebPush struct { // Absolute URL exposed by the push service where the application server can send push messages; may be empty to deregister a device Endpoint string `json:"endpoint"` // Base64url-encoded P-256 elliptic curve Diffie-Hellman public key P256dhBase64url string `json:"p256dh_base64url"` // Base64url-encoded authentication secret AuthBase64url string `json:"auth_base64url"` // contains filtered or unexported fields }
A token for web Push API
func UnmarshalDeviceTokenWebPush ¶
func UnmarshalDeviceTokenWebPush(data json.RawMessage) (*DeviceTokenWebPush, error)
func (*DeviceTokenWebPush) DeviceTokenType ¶
func (*DeviceTokenWebPush) DeviceTokenType() string
func (*DeviceTokenWebPush) GetClass ¶
func (*DeviceTokenWebPush) GetClass() string
func (*DeviceTokenWebPush) GetType ¶
func (*DeviceTokenWebPush) GetType() string
func (*DeviceTokenWebPush) MarshalJSON ¶
func (entity *DeviceTokenWebPush) MarshalJSON() ([]byte, error)
type DeviceTokenWindowsPush ¶
type DeviceTokenWindowsPush struct { // The access token that will be used to send notifications; may be empty to deregister a device AccessToken string `json:"access_token"` // contains filtered or unexported fields }
A token for Windows Push Notification Services
func UnmarshalDeviceTokenWindowsPush ¶
func UnmarshalDeviceTokenWindowsPush(data json.RawMessage) (*DeviceTokenWindowsPush, error)
func (*DeviceTokenWindowsPush) DeviceTokenType ¶
func (*DeviceTokenWindowsPush) DeviceTokenType() string
func (*DeviceTokenWindowsPush) GetClass ¶
func (*DeviceTokenWindowsPush) GetClass() string
func (*DeviceTokenWindowsPush) GetType ¶
func (*DeviceTokenWindowsPush) GetType() string
func (*DeviceTokenWindowsPush) MarshalJSON ¶
func (entity *DeviceTokenWindowsPush) MarshalJSON() ([]byte, error)
type DiceStickers ¶
type DiceStickers interface {
DiceStickersType() string
}
Contains animated stickers which must be used for dice animation rendering
func UnmarshalDiceStickers ¶
func UnmarshalDiceStickers(data json.RawMessage) (DiceStickers, error)
func UnmarshalListOfDiceStickers ¶
func UnmarshalListOfDiceStickers(dataList []json.RawMessage) ([]DiceStickers, error)
type DiceStickersRegular ¶
type DiceStickersRegular struct { // The animated sticker with the dice animation Sticker *Sticker `json:"sticker"` // contains filtered or unexported fields }
A regular animated sticker
func UnmarshalDiceStickersRegular ¶
func UnmarshalDiceStickersRegular(data json.RawMessage) (*DiceStickersRegular, error)
func (*DiceStickersRegular) DiceStickersType ¶
func (*DiceStickersRegular) DiceStickersType() string
func (*DiceStickersRegular) GetClass ¶
func (*DiceStickersRegular) GetClass() string
func (*DiceStickersRegular) GetType ¶
func (*DiceStickersRegular) GetType() string
func (*DiceStickersRegular) MarshalJSON ¶
func (entity *DiceStickersRegular) MarshalJSON() ([]byte, error)
type DiceStickersSlotMachine ¶
type DiceStickersSlotMachine struct { // The animated sticker with the slot machine background. The background animation must start playing after all reel animations finish Background *Sticker `json:"background"` // The animated sticker with the lever animation. The lever animation must play once in the initial dice state Lever *Sticker `json:"lever"` // The animated sticker with the left reel LeftReel *Sticker `json:"left_reel"` // The animated sticker with the center reel CenterReel *Sticker `json:"center_reel"` // The animated sticker with the right reel RightReel *Sticker `json:"right_reel"` // contains filtered or unexported fields }
Animated stickers to be combined into a slot machine
func UnmarshalDiceStickersSlotMachine ¶
func UnmarshalDiceStickersSlotMachine(data json.RawMessage) (*DiceStickersSlotMachine, error)
func (*DiceStickersSlotMachine) DiceStickersType ¶
func (*DiceStickersSlotMachine) DiceStickersType() string
func (*DiceStickersSlotMachine) GetClass ¶
func (*DiceStickersSlotMachine) GetClass() string
func (*DiceStickersSlotMachine) GetType ¶
func (*DiceStickersSlotMachine) GetType() string
func (*DiceStickersSlotMachine) MarshalJSON ¶
func (entity *DiceStickersSlotMachine) MarshalJSON() ([]byte, error)
type DisableAllSupergroupUsernamesRequest ¶ added in v1.2.3
type DisableAllSupergroupUsernamesRequest struct { // Identifier of the supergroup or channel SupergroupId int64 `json:"supergroup_id"` }
type DiscardCallRequest ¶
type DiscardCallRequest struct { // Call identifier CallId int32 `json:"call_id"` // Pass true if the user was disconnected IsDisconnected bool `json:"is_disconnected"` // The call duration, in seconds Duration int32 `json:"duration"` // Pass true if the call was a video call IsVideo bool `json:"is_video"` // Identifier of the connection used during the call ConnectionId JsonInt64 `json:"connection_id"` }
type DisconnectWebsiteRequest ¶
type DisconnectWebsiteRequest struct { // Website identifier WebsiteId JsonInt64 `json:"website_id"` }
type Document ¶
type Document struct { // Original name of the file; as defined by the sender FileName string `json:"file_name"` // MIME type of the file; as defined by the sender MimeType string `json:"mime_type"` // Document minithumbnail; may be null Minithumbnail *Minithumbnail `json:"minithumbnail"` // Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null Thumbnail *Thumbnail `json:"thumbnail"` // File containing the document Document *File `json:"document"` // contains filtered or unexported fields }
Describes a document of any type
func UnmarshalDocument ¶
func UnmarshalDocument(data json.RawMessage) (*Document, error)
func (*Document) MarshalJSON ¶
type DownloadFileRequest ¶
type DownloadFileRequest struct { // Identifier of the file to download FileId int32 `json:"file_id"` // Priority of the download (1-32). The higher the priority, the earlier the file will be downloaded. If the priorities of two files are equal, then the last one for which downloadFile/addFileToDownloads was called will be downloaded first Priority int32 `json:"priority"` // The starting position from which the file needs to be downloaded Offset int64 `json:"offset"` // Number of bytes which need to be downloaded starting from the "offset" position before the download will automatically be canceled; use 0 to download without a limit Limit int64 `json:"limit"` // Pass true to return response only after the file download has succeeded, has failed, has been canceled, or a new downloadFile request with different offset/limit parameters was sent; pass false to return file state immediately, just after the download has been started Synchronous bool `json:"synchronous"` }
type DownloadedFileCounts ¶ added in v1.0.6
type DownloadedFileCounts struct { // Number of active file downloads found, including paused ActiveCount int32 `json:"active_count"` // Number of paused file downloads found PausedCount int32 `json:"paused_count"` // Number of completed file downloads found CompletedCount int32 `json:"completed_count"` // contains filtered or unexported fields }
Contains number of being downloaded and recently downloaded files found
func UnmarshalDownloadedFileCounts ¶ added in v1.0.6
func UnmarshalDownloadedFileCounts(data json.RawMessage) (*DownloadedFileCounts, error)
func (*DownloadedFileCounts) GetClass ¶ added in v1.0.6
func (*DownloadedFileCounts) GetClass() string
func (*DownloadedFileCounts) GetType ¶ added in v1.0.6
func (*DownloadedFileCounts) GetType() string
func (*DownloadedFileCounts) MarshalJSON ¶ added in v1.0.6
func (entity *DownloadedFileCounts) MarshalJSON() ([]byte, error)
type DraftMessage ¶
type DraftMessage struct { // Identifier of the replied message; 0 if none ReplyToMessageId int64 `json:"reply_to_message_id"` // Point in time (Unix timestamp) when the draft was created Date int32 `json:"date"` // Content of the message draft; must be of the type inputMessageText InputMessageText InputMessageContent `json:"input_message_text"` // contains filtered or unexported fields }
Contains information about a message draft
func UnmarshalDraftMessage ¶
func UnmarshalDraftMessage(data json.RawMessage) (*DraftMessage, error)
func (*DraftMessage) GetClass ¶
func (*DraftMessage) GetClass() string
func (*DraftMessage) GetType ¶
func (*DraftMessage) GetType() string
func (*DraftMessage) MarshalJSON ¶
func (entity *DraftMessage) MarshalJSON() ([]byte, error)
func (*DraftMessage) UnmarshalJSON ¶
func (draftMessage *DraftMessage) UnmarshalJSON(data []byte) error
type EditChatFolderInviteLinkRequest ¶ added in v1.2.3
type EditChatFolderInviteLinkRequest struct { // Chat folder identifier ChatFolderId int32 `json:"chat_folder_id"` // Invite link to be edited InviteLink string `json:"invite_link"` // New name of the link; 0-32 characters Name string `json:"name"` // New identifiers of chats to be accessible by the invite link. Use getChatsForChatFolderInviteLink to get suitable chats. Basic groups will be automatically converted to supergroups before link editing ChatIds []int64 `json:"chat_ids"` }
type EditChatFolderRequest ¶ added in v1.2.3
type EditChatFolderRequest struct { // Chat folder identifier ChatFolderId int32 `json:"chat_folder_id"` // The edited chat folder Folder *ChatFolder `json:"folder"` }
type EditChatInviteLinkRequest ¶
type EditChatInviteLinkRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Invite link to be edited InviteLink string `json:"invite_link"` // Invite link name; 0-32 characters Name string `json:"name"` // Point in time (Unix timestamp) when the link will expire; pass 0 if never ExpirationDate int32 `json:"expiration_date"` // The maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited MemberLimit int32 `json:"member_limit"` // Pass true if users joining the chat via the link need to be approved by chat administrators. In this case, member_limit must be 0 CreatesJoinRequest bool `json:"creates_join_request"` }
type EditCustomLanguagePackInfoRequest ¶
type EditCustomLanguagePackInfoRequest struct { // New information about the custom local language pack Info *LanguagePackInfo `json:"info"` }
type EditForumTopicRequest ¶ added in v1.2.3
type EditForumTopicRequest struct { // Identifier of the chat ChatId int64 `json:"chat_id"` // Message thread identifier of the forum topic MessageThreadId int64 `json:"message_thread_id"` // New name of the topic; 0-128 characters. If empty, the previous topic name is kept Name string `json:"name"` // Pass true to edit the icon of the topic. Icon of the General topic can't be edited EditIconCustomEmoji bool `json:"edit_icon_custom_emoji"` // Identifier of the new custom emoji for topic icon; pass 0 to remove the custom emoji. Ignored if edit_icon_custom_emoji is false. Telegram Premium users can use any custom emoji, other users can use only a custom emoji returned by getForumTopicDefaultIcons IconCustomEmojiId JsonInt64 `json:"icon_custom_emoji_id"` }
type EditInlineMessageCaptionRequest ¶
type EditInlineMessageCaptionRequest struct { // Inline message identifier InlineMessageId string `json:"inline_message_id"` // The new message reply markup; pass null if none ReplyMarkup ReplyMarkup `json:"reply_markup"` // New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters Caption *FormattedText `json:"caption"` }
type EditInlineMessageLiveLocationRequest ¶
type EditInlineMessageLiveLocationRequest struct { // Inline message identifier InlineMessageId string `json:"inline_message_id"` // The new message reply markup; pass null if none ReplyMarkup ReplyMarkup `json:"reply_markup"` // New location content of the message; pass null to stop sharing the live location Location *Location `json:"location"` // The new direction in which the location moves, in degrees; 1-360. Pass 0 if unknown Heading int32 `json:"heading"` // The new maximum distance for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled ProximityAlertRadius int32 `json:"proximity_alert_radius"` }
type EditInlineMessageMediaRequest ¶
type EditInlineMessageMediaRequest struct { // Inline message identifier InlineMessageId string `json:"inline_message_id"` // The new message reply markup; pass null if none; for bots only ReplyMarkup ReplyMarkup `json:"reply_markup"` // New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo InputMessageContent InputMessageContent `json:"input_message_content"` }
type EditInlineMessageReplyMarkupRequest ¶
type EditInlineMessageReplyMarkupRequest struct { // Inline message identifier InlineMessageId string `json:"inline_message_id"` // The new message reply markup; pass null if none ReplyMarkup ReplyMarkup `json:"reply_markup"` }
type EditInlineMessageTextRequest ¶
type EditInlineMessageTextRequest struct { // Inline message identifier InlineMessageId string `json:"inline_message_id"` // The new message reply markup; pass null if none ReplyMarkup ReplyMarkup `json:"reply_markup"` // New text content of the message. Must be of type inputMessageText InputMessageContent InputMessageContent `json:"input_message_content"` }
type EditMessageCaptionRequest ¶
type EditMessageCaptionRequest struct { // The chat the message belongs to ChatId int64 `json:"chat_id"` // Identifier of the message MessageId int64 `json:"message_id"` // The new message reply markup; pass null if none; for bots only ReplyMarkup ReplyMarkup `json:"reply_markup"` // New message content caption; 0-getOption("message_caption_length_max") characters; pass null to remove caption Caption *FormattedText `json:"caption"` }
type EditMessageLiveLocationRequest ¶
type EditMessageLiveLocationRequest struct { // The chat the message belongs to ChatId int64 `json:"chat_id"` // Identifier of the message MessageId int64 `json:"message_id"` // The new message reply markup; pass null if none; for bots only ReplyMarkup ReplyMarkup `json:"reply_markup"` // New location content of the message; pass null to stop sharing the live location Location *Location `json:"location"` // The new direction in which the location moves, in degrees; 1-360. Pass 0 if unknown Heading int32 `json:"heading"` // The new maximum distance for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled ProximityAlertRadius int32 `json:"proximity_alert_radius"` }
type EditMessageMediaRequest ¶
type EditMessageMediaRequest struct { // The chat the message belongs to ChatId int64 `json:"chat_id"` // Identifier of the message MessageId int64 `json:"message_id"` // The new message reply markup; pass null if none; for bots only ReplyMarkup ReplyMarkup `json:"reply_markup"` // New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo InputMessageContent InputMessageContent `json:"input_message_content"` }
type EditMessageReplyMarkupRequest ¶
type EditMessageReplyMarkupRequest struct { // The chat the message belongs to ChatId int64 `json:"chat_id"` // Identifier of the message MessageId int64 `json:"message_id"` // The new message reply markup; pass null if none ReplyMarkup ReplyMarkup `json:"reply_markup"` }
type EditMessageSchedulingStateRequest ¶
type EditMessageSchedulingStateRequest struct { // The chat the message belongs to ChatId int64 `json:"chat_id"` // Identifier of the message MessageId int64 `json:"message_id"` // The new message scheduling state; pass null to send the message immediately SchedulingState MessageSchedulingState `json:"scheduling_state"` }
type EditMessageTextRequest ¶
type EditMessageTextRequest struct { // The chat the message belongs to ChatId int64 `json:"chat_id"` // Identifier of the message MessageId int64 `json:"message_id"` // The new message reply markup; pass null if none; for bots only ReplyMarkup ReplyMarkup `json:"reply_markup"` // New text content of the message. Must be of type inputMessageText InputMessageContent InputMessageContent `json:"input_message_content"` }
type EditProxyRequest ¶
type EditProxyRequest struct { // Proxy identifier ProxyId int32 `json:"proxy_id"` // Proxy server domain or IP address Server string `json:"server"` // Proxy server port Port int32 `json:"port"` // Pass true to immediately enable the proxy Enable bool `json:"enable"` // Proxy type Type ProxyType `json:"type"` }
type EditStoryRequest ¶ added in v1.2.3
type EditStoryRequest struct { // Identifier of the story to edit StoryId int32 `json:"story_id"` // New content of the story; pass null to keep the current content Content InputStoryContent `json:"content"` // New clickable rectangle areas to be shown on the story media; pass null to keep the current areas. Areas can't be edited if story content isn't changed Areas *InputStoryAreas `json:"areas"` // New story caption; pass null to keep the current caption Caption *FormattedText `json:"caption"` }
type EmailAddressAuthentication ¶ added in v1.2.3
type EmailAddressAuthentication interface {
EmailAddressAuthenticationType() string
}
Contains authentication data for a email address
func UnmarshalEmailAddressAuthentication ¶ added in v1.2.3
func UnmarshalEmailAddressAuthentication(data json.RawMessage) (EmailAddressAuthentication, error)
func UnmarshalListOfEmailAddressAuthentication ¶ added in v1.2.3
func UnmarshalListOfEmailAddressAuthentication(dataList []json.RawMessage) ([]EmailAddressAuthentication, error)
type EmailAddressAuthenticationAppleId ¶ added in v1.2.3
type EmailAddressAuthenticationAppleId struct { // The token Token string `json:"token"` // contains filtered or unexported fields }
An authentication token received through Apple ID
func UnmarshalEmailAddressAuthenticationAppleId ¶ added in v1.2.3
func UnmarshalEmailAddressAuthenticationAppleId(data json.RawMessage) (*EmailAddressAuthenticationAppleId, error)
func (*EmailAddressAuthenticationAppleId) EmailAddressAuthenticationType ¶ added in v1.2.3
func (*EmailAddressAuthenticationAppleId) EmailAddressAuthenticationType() string
func (*EmailAddressAuthenticationAppleId) GetClass ¶ added in v1.2.3
func (*EmailAddressAuthenticationAppleId) GetClass() string
func (*EmailAddressAuthenticationAppleId) GetType ¶ added in v1.2.3
func (*EmailAddressAuthenticationAppleId) GetType() string
func (*EmailAddressAuthenticationAppleId) MarshalJSON ¶ added in v1.2.3
func (entity *EmailAddressAuthenticationAppleId) MarshalJSON() ([]byte, error)
type EmailAddressAuthenticationCode ¶ added in v1.2.3
type EmailAddressAuthenticationCode struct { // The code Code string `json:"code"` // contains filtered or unexported fields }
An authentication code delivered to a user's email address
func UnmarshalEmailAddressAuthenticationCode ¶ added in v1.2.3
func UnmarshalEmailAddressAuthenticationCode(data json.RawMessage) (*EmailAddressAuthenticationCode, error)
func (*EmailAddressAuthenticationCode) EmailAddressAuthenticationType ¶ added in v1.2.3
func (*EmailAddressAuthenticationCode) EmailAddressAuthenticationType() string
func (*EmailAddressAuthenticationCode) GetClass ¶ added in v1.2.3
func (*EmailAddressAuthenticationCode) GetClass() string
func (*EmailAddressAuthenticationCode) GetType ¶ added in v1.2.3
func (*EmailAddressAuthenticationCode) GetType() string
func (*EmailAddressAuthenticationCode) MarshalJSON ¶ added in v1.2.3
func (entity *EmailAddressAuthenticationCode) MarshalJSON() ([]byte, error)
type EmailAddressAuthenticationCodeInfo ¶
type EmailAddressAuthenticationCodeInfo struct { // Pattern of the email address to which an authentication code was sent EmailAddressPattern string `json:"email_address_pattern"` // Length of the code; 0 if unknown Length int32 `json:"length"` // contains filtered or unexported fields }
Information about the email address authentication code that was sent
func UnmarshalEmailAddressAuthenticationCodeInfo ¶
func UnmarshalEmailAddressAuthenticationCodeInfo(data json.RawMessage) (*EmailAddressAuthenticationCodeInfo, error)
func (*EmailAddressAuthenticationCodeInfo) GetClass ¶
func (*EmailAddressAuthenticationCodeInfo) GetClass() string
func (*EmailAddressAuthenticationCodeInfo) GetType ¶
func (*EmailAddressAuthenticationCodeInfo) GetType() string
func (*EmailAddressAuthenticationCodeInfo) MarshalJSON ¶
func (entity *EmailAddressAuthenticationCodeInfo) MarshalJSON() ([]byte, error)
type EmailAddressAuthenticationGoogleId ¶ added in v1.2.3
type EmailAddressAuthenticationGoogleId struct { // The token Token string `json:"token"` // contains filtered or unexported fields }
An authentication token received through Google ID
func UnmarshalEmailAddressAuthenticationGoogleId ¶ added in v1.2.3
func UnmarshalEmailAddressAuthenticationGoogleId(data json.RawMessage) (*EmailAddressAuthenticationGoogleId, error)
func (*EmailAddressAuthenticationGoogleId) EmailAddressAuthenticationType ¶ added in v1.2.3
func (*EmailAddressAuthenticationGoogleId) EmailAddressAuthenticationType() string
func (*EmailAddressAuthenticationGoogleId) GetClass ¶ added in v1.2.3
func (*EmailAddressAuthenticationGoogleId) GetClass() string
func (*EmailAddressAuthenticationGoogleId) GetType ¶ added in v1.2.3
func (*EmailAddressAuthenticationGoogleId) GetType() string
func (*EmailAddressAuthenticationGoogleId) MarshalJSON ¶ added in v1.2.3
func (entity *EmailAddressAuthenticationGoogleId) MarshalJSON() ([]byte, error)
type EmailAddressResetState ¶ added in v1.2.3
type EmailAddressResetState interface {
EmailAddressResetStateType() string
}
Describes reset state of a email address
func UnmarshalEmailAddressResetState ¶ added in v1.2.3
func UnmarshalEmailAddressResetState(data json.RawMessage) (EmailAddressResetState, error)
func UnmarshalListOfEmailAddressResetState ¶ added in v1.2.3
func UnmarshalListOfEmailAddressResetState(dataList []json.RawMessage) ([]EmailAddressResetState, error)
type EmailAddressResetStateAvailable ¶ added in v1.2.3
type EmailAddressResetStateAvailable struct { // Time required to wait before the email address can be reset; 0 if the user is subscribed to Telegram Premium WaitPeriod int32 `json:"wait_period"` // contains filtered or unexported fields }
Email address can be reset after the given period. Call resetAuthenticationEmailAddress to reset it and allow the user to authorize with a code sent to the user's phone number
func UnmarshalEmailAddressResetStateAvailable ¶ added in v1.2.3
func UnmarshalEmailAddressResetStateAvailable(data json.RawMessage) (*EmailAddressResetStateAvailable, error)
func (*EmailAddressResetStateAvailable) EmailAddressResetStateType ¶ added in v1.2.3
func (*EmailAddressResetStateAvailable) EmailAddressResetStateType() string
func (*EmailAddressResetStateAvailable) GetClass ¶ added in v1.2.3
func (*EmailAddressResetStateAvailable) GetClass() string
func (*EmailAddressResetStateAvailable) GetType ¶ added in v1.2.3
func (*EmailAddressResetStateAvailable) GetType() string
func (*EmailAddressResetStateAvailable) MarshalJSON ¶ added in v1.2.3
func (entity *EmailAddressResetStateAvailable) MarshalJSON() ([]byte, error)
type EmailAddressResetStatePending ¶ added in v1.2.3
type EmailAddressResetStatePending struct { // Left time before the email address will be reset, in seconds. updateAuthorizationState is not sent when this field changes ResetIn int32 `json:"reset_in"` // contains filtered or unexported fields }
Email address reset has already been requested. Call resetAuthenticationEmailAddress to check whether immediate reset is possible
func UnmarshalEmailAddressResetStatePending ¶ added in v1.2.3
func UnmarshalEmailAddressResetStatePending(data json.RawMessage) (*EmailAddressResetStatePending, error)
func (*EmailAddressResetStatePending) EmailAddressResetStateType ¶ added in v1.2.3
func (*EmailAddressResetStatePending) EmailAddressResetStateType() string
func (*EmailAddressResetStatePending) GetClass ¶ added in v1.2.3
func (*EmailAddressResetStatePending) GetClass() string
func (*EmailAddressResetStatePending) GetType ¶ added in v1.2.3
func (*EmailAddressResetStatePending) GetType() string
func (*EmailAddressResetStatePending) MarshalJSON ¶ added in v1.2.3
func (entity *EmailAddressResetStatePending) MarshalJSON() ([]byte, error)
type EmojiCategories ¶ added in v1.2.3
type EmojiCategories struct { // List of categories Categories []*EmojiCategory `json:"categories"` // contains filtered or unexported fields }
Represents a list of emoji categories
func UnmarshalEmojiCategories ¶ added in v1.2.3
func UnmarshalEmojiCategories(data json.RawMessage) (*EmojiCategories, error)
func (*EmojiCategories) GetClass ¶ added in v1.2.3
func (*EmojiCategories) GetClass() string
func (*EmojiCategories) GetType ¶ added in v1.2.3
func (*EmojiCategories) GetType() string
func (*EmojiCategories) MarshalJSON ¶ added in v1.2.3
func (entity *EmojiCategories) MarshalJSON() ([]byte, error)
type EmojiCategory ¶ added in v1.2.3
type EmojiCategory struct { // Name of the category Name string `json:"name"` // Custom emoji sticker, which represents icon of the category Icon *Sticker `json:"icon"` // List of emojis in the category Emojis []string `json:"emojis"` // contains filtered or unexported fields }
Contains a list of similar emoji to search for in getStickers and searchStickers
func UnmarshalEmojiCategory ¶ added in v1.2.3
func UnmarshalEmojiCategory(data json.RawMessage) (*EmojiCategory, error)
func (*EmojiCategory) GetClass ¶ added in v1.2.3
func (*EmojiCategory) GetClass() string
func (*EmojiCategory) GetType ¶ added in v1.2.3
func (*EmojiCategory) GetType() string
func (*EmojiCategory) MarshalJSON ¶ added in v1.2.3
func (entity *EmojiCategory) MarshalJSON() ([]byte, error)
type EmojiCategoryType ¶ added in v1.2.3
type EmojiCategoryType interface {
EmojiCategoryTypeType() string
}
Describes type of an emoji category
func UnmarshalEmojiCategoryType ¶ added in v1.2.3
func UnmarshalEmojiCategoryType(data json.RawMessage) (EmojiCategoryType, error)
func UnmarshalListOfEmojiCategoryType ¶ added in v1.2.3
func UnmarshalListOfEmojiCategoryType(dataList []json.RawMessage) ([]EmojiCategoryType, error)
type EmojiCategoryTypeChatPhoto ¶ added in v1.2.3
type EmojiCategoryTypeChatPhoto struct {
// contains filtered or unexported fields
}
The category must be used for chat photo emoji selection
func UnmarshalEmojiCategoryTypeChatPhoto ¶ added in v1.2.3
func UnmarshalEmojiCategoryTypeChatPhoto(data json.RawMessage) (*EmojiCategoryTypeChatPhoto, error)
func (*EmojiCategoryTypeChatPhoto) EmojiCategoryTypeType ¶ added in v1.2.3
func (*EmojiCategoryTypeChatPhoto) EmojiCategoryTypeType() string
func (*EmojiCategoryTypeChatPhoto) GetClass ¶ added in v1.2.3
func (*EmojiCategoryTypeChatPhoto) GetClass() string
func (*EmojiCategoryTypeChatPhoto) GetType ¶ added in v1.2.3
func (*EmojiCategoryTypeChatPhoto) GetType() string
func (*EmojiCategoryTypeChatPhoto) MarshalJSON ¶ added in v1.2.3
func (entity *EmojiCategoryTypeChatPhoto) MarshalJSON() ([]byte, error)
type EmojiCategoryTypeDefault ¶ added in v1.2.3
type EmojiCategoryTypeDefault struct {
// contains filtered or unexported fields
}
The category must be used by default
func UnmarshalEmojiCategoryTypeDefault ¶ added in v1.2.3
func UnmarshalEmojiCategoryTypeDefault(data json.RawMessage) (*EmojiCategoryTypeDefault, error)
func (*EmojiCategoryTypeDefault) EmojiCategoryTypeType ¶ added in v1.2.3
func (*EmojiCategoryTypeDefault) EmojiCategoryTypeType() string
func (*EmojiCategoryTypeDefault) GetClass ¶ added in v1.2.3
func (*EmojiCategoryTypeDefault) GetClass() string
func (*EmojiCategoryTypeDefault) GetType ¶ added in v1.2.3
func (*EmojiCategoryTypeDefault) GetType() string
func (*EmojiCategoryTypeDefault) MarshalJSON ¶ added in v1.2.3
func (entity *EmojiCategoryTypeDefault) MarshalJSON() ([]byte, error)
type EmojiCategoryTypeEmojiStatus ¶ added in v1.2.3
type EmojiCategoryTypeEmojiStatus struct {
// contains filtered or unexported fields
}
The category must be used for emoji status selection
func UnmarshalEmojiCategoryTypeEmojiStatus ¶ added in v1.2.3
func UnmarshalEmojiCategoryTypeEmojiStatus(data json.RawMessage) (*EmojiCategoryTypeEmojiStatus, error)
func (*EmojiCategoryTypeEmojiStatus) EmojiCategoryTypeType ¶ added in v1.2.3
func (*EmojiCategoryTypeEmojiStatus) EmojiCategoryTypeType() string
func (*EmojiCategoryTypeEmojiStatus) GetClass ¶ added in v1.2.3
func (*EmojiCategoryTypeEmojiStatus) GetClass() string
func (*EmojiCategoryTypeEmojiStatus) GetType ¶ added in v1.2.3
func (*EmojiCategoryTypeEmojiStatus) GetType() string
func (*EmojiCategoryTypeEmojiStatus) MarshalJSON ¶ added in v1.2.3
func (entity *EmojiCategoryTypeEmojiStatus) MarshalJSON() ([]byte, error)
type EmojiReaction ¶ added in v1.2.3
type EmojiReaction struct { // Text representation of the reaction Emoji string `json:"emoji"` // Reaction title Title string `json:"title"` // True, if the reaction can be added to new messages and enabled in chats IsActive bool `json:"is_active"` // Static icon for the reaction StaticIcon *Sticker `json:"static_icon"` // Appear animation for the reaction AppearAnimation *Sticker `json:"appear_animation"` // Select animation for the reaction SelectAnimation *Sticker `json:"select_animation"` // Activate animation for the reaction ActivateAnimation *Sticker `json:"activate_animation"` // Effect animation for the reaction EffectAnimation *Sticker `json:"effect_animation"` // Around animation for the reaction; may be null AroundAnimation *Sticker `json:"around_animation"` // Center animation for the reaction; may be null CenterAnimation *Sticker `json:"center_animation"` // contains filtered or unexported fields }
Contains information about a emoji reaction
func UnmarshalEmojiReaction ¶ added in v1.2.3
func UnmarshalEmojiReaction(data json.RawMessage) (*EmojiReaction, error)
func (*EmojiReaction) GetClass ¶ added in v1.2.3
func (*EmojiReaction) GetClass() string
func (*EmojiReaction) GetType ¶ added in v1.2.3
func (*EmojiReaction) GetType() string
func (*EmojiReaction) MarshalJSON ¶ added in v1.2.3
func (entity *EmojiReaction) MarshalJSON() ([]byte, error)
type EmojiStatus ¶ added in v1.2.3
type EmojiStatus struct { // Identifier of the custom emoji in stickerFormatTgs format CustomEmojiId JsonInt64 `json:"custom_emoji_id"` // Point in time (Unix timestamp) when the status will expire; 0 if never ExpirationDate int32 `json:"expiration_date"` // contains filtered or unexported fields }
Describes a custom emoji to be shown instead of the Telegram Premium badge
func UnmarshalEmojiStatus ¶ added in v1.2.3
func UnmarshalEmojiStatus(data json.RawMessage) (*EmojiStatus, error)
func (*EmojiStatus) GetClass ¶ added in v1.2.3
func (*EmojiStatus) GetClass() string
func (*EmojiStatus) GetType ¶ added in v1.2.3
func (*EmojiStatus) GetType() string
func (*EmojiStatus) MarshalJSON ¶ added in v1.2.3
func (entity *EmojiStatus) MarshalJSON() ([]byte, error)
type EmojiStatuses ¶ added in v1.2.3
type EmojiStatuses struct { // The list of custom emoji identifiers CustomEmojiIds []JsonInt64 `json:"custom_emoji_ids"` // contains filtered or unexported fields }
Contains a list of custom emoji identifiers, which can be set as emoji statuses
func UnmarshalEmojiStatuses ¶ added in v1.2.3
func UnmarshalEmojiStatuses(data json.RawMessage) (*EmojiStatuses, error)
func (*EmojiStatuses) GetClass ¶ added in v1.2.3
func (*EmojiStatuses) GetClass() string
func (*EmojiStatuses) GetType ¶ added in v1.2.3
func (*EmojiStatuses) GetType() string
func (*EmojiStatuses) MarshalJSON ¶ added in v1.2.3
func (entity *EmojiStatuses) MarshalJSON() ([]byte, error)
type Emojis ¶
type Emojis struct { // List of emojis Emojis []string `json:"emojis"` // contains filtered or unexported fields }
Represents a list of emoji
func UnmarshalEmojis ¶
func UnmarshalEmojis(data json.RawMessage) (*Emojis, error)
func (*Emojis) MarshalJSON ¶
type EnableProxyRequest ¶
type EnableProxyRequest struct { // Proxy identifier ProxyId int32 `json:"proxy_id"` }
type EncryptedCredentials ¶
type EncryptedCredentials struct { // The encrypted credentials Data []byte `json:"data"` // The decrypted data hash Hash []byte `json:"hash"` // Secret for data decryption, encrypted with the service's public key Secret []byte `json:"secret"` // contains filtered or unexported fields }
Contains encrypted Telegram Passport data credentials
func UnmarshalEncryptedCredentials ¶
func UnmarshalEncryptedCredentials(data json.RawMessage) (*EncryptedCredentials, error)
func (*EncryptedCredentials) GetClass ¶
func (*EncryptedCredentials) GetClass() string
func (*EncryptedCredentials) GetType ¶
func (*EncryptedCredentials) GetType() string
func (*EncryptedCredentials) MarshalJSON ¶
func (entity *EncryptedCredentials) MarshalJSON() ([]byte, error)
type EncryptedPassportElement ¶
type EncryptedPassportElement struct { // Type of Telegram Passport element Type PassportElementType `json:"type"` // Encrypted JSON-encoded data about the user Data []byte `json:"data"` // The front side of an identity document FrontSide *DatedFile `json:"front_side"` // The reverse side of an identity document; may be null ReverseSide *DatedFile `json:"reverse_side"` // Selfie with the document; may be null Selfie *DatedFile `json:"selfie"` // List of files containing a certified English translation of the document Translation []*DatedFile `json:"translation"` // List of attached files Files []*DatedFile `json:"files"` // Unencrypted data, phone number or email address Value string `json:"value"` // Hash of the entire element Hash string `json:"hash"` // contains filtered or unexported fields }
Contains information about an encrypted Telegram Passport element; for bots only
func UnmarshalEncryptedPassportElement ¶
func UnmarshalEncryptedPassportElement(data json.RawMessage) (*EncryptedPassportElement, error)
func (*EncryptedPassportElement) GetClass ¶
func (*EncryptedPassportElement) GetClass() string
func (*EncryptedPassportElement) GetType ¶
func (*EncryptedPassportElement) GetType() string
func (*EncryptedPassportElement) MarshalJSON ¶
func (entity *EncryptedPassportElement) MarshalJSON() ([]byte, error)
func (*EncryptedPassportElement) UnmarshalJSON ¶
func (encryptedPassportElement *EncryptedPassportElement) UnmarshalJSON(data []byte) error
type EndGroupCallRecordingRequest ¶
type EndGroupCallRecordingRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` }
type EndGroupCallRequest ¶
type EndGroupCallRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` }
type EndGroupCallScreenSharingRequest ¶
type EndGroupCallScreenSharingRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` }
type Error ¶
type Error struct { // Error code; subject to future changes. If the error code is 406, the error message must not be processed in any way and must not be displayed to the user Code int32 `json:"code"` // Error message; subject to future changes Message string `json:"message"` // contains filtered or unexported fields }
An object of this type can be returned on every function call, in case of an error
func TestReturnError ¶
func TestReturnError(req *TestReturnErrorRequest) (*Error, error)
Returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously
func UnmarshalError ¶
func UnmarshalError(data json.RawMessage) (*Error, error)
func (*Error) MarshalJSON ¶
type ExtraGenerator ¶
type ExtraGenerator func() string
func UuidV4Generator ¶
func UuidV4Generator() ExtraGenerator
type File ¶
type File struct { // Unique file identifier Id int32 `json:"id"` // File data center DcId int32 `json:"dc_id"` // File size, in bytes; 0 if unknown Size int64 `json:"size"` // Approximate file size in bytes in case the exact file size is unknown. Can be used to show download/upload progress ExpectedSize int64 `json:"expected_size"` // Information about the local copy of the file Local *LocalFile `json:"local"` // Information about the remote copy of the file Remote *RemoteFile `json:"remote"` // contains filtered or unexported fields }
Represents a file
func UnmarshalFile ¶
func UnmarshalFile(data json.RawMessage) (*File, error)
func (*File) MarshalJSON ¶
type FileDownload ¶ added in v1.0.6
type FileDownload struct { // File identifier FileId int32 `json:"file_id"` // The message with the file Message *Message `json:"message"` // Point in time (Unix timestamp) when the file was added to the download list AddDate int32 `json:"add_date"` // Point in time (Unix timestamp) when the file downloading was completed; 0 if the file downloading isn't completed CompleteDate int32 `json:"complete_date"` // True, if downloading of the file is paused IsPaused bool `json:"is_paused"` // contains filtered or unexported fields }
Describes a file added to file download list
func UnmarshalFileDownload ¶ added in v1.0.6
func UnmarshalFileDownload(data json.RawMessage) (*FileDownload, error)
func (*FileDownload) GetClass ¶ added in v1.0.6
func (*FileDownload) GetClass() string
func (*FileDownload) GetType ¶ added in v1.0.6
func (*FileDownload) GetType() string
func (*FileDownload) MarshalJSON ¶ added in v1.0.6
func (entity *FileDownload) MarshalJSON() ([]byte, error)
type FileDownloadedPrefixSize ¶ added in v1.2.3
type FileDownloadedPrefixSize struct { // The prefix size, in bytes Size int64 `json:"size"` // contains filtered or unexported fields }
Contains size of downloaded prefix of a file
func UnmarshalFileDownloadedPrefixSize ¶ added in v1.2.3
func UnmarshalFileDownloadedPrefixSize(data json.RawMessage) (*FileDownloadedPrefixSize, error)
func (*FileDownloadedPrefixSize) GetClass ¶ added in v1.2.3
func (*FileDownloadedPrefixSize) GetClass() string
func (*FileDownloadedPrefixSize) GetType ¶ added in v1.2.3
func (*FileDownloadedPrefixSize) GetType() string
func (*FileDownloadedPrefixSize) MarshalJSON ¶ added in v1.2.3
func (entity *FileDownloadedPrefixSize) MarshalJSON() ([]byte, error)
type FilePart ¶
type FilePart struct { // File bytes Data []byte `json:"data"` // contains filtered or unexported fields }
Contains a part of a file
func UnmarshalFilePart ¶
func UnmarshalFilePart(data json.RawMessage) (*FilePart, error)
func (*FilePart) MarshalJSON ¶
type FileType ¶
type FileType interface {
FileTypeType() string
}
Represents the type of a file
func UnmarshalFileType ¶
func UnmarshalFileType(data json.RawMessage) (FileType, error)
func UnmarshalListOfFileType ¶
func UnmarshalListOfFileType(dataList []json.RawMessage) ([]FileType, error)
type FileTypeAnimation ¶
type FileTypeAnimation struct {
// contains filtered or unexported fields
}
The file is an animation
func UnmarshalFileTypeAnimation ¶
func UnmarshalFileTypeAnimation(data json.RawMessage) (*FileTypeAnimation, error)
func (*FileTypeAnimation) FileTypeType ¶
func (*FileTypeAnimation) FileTypeType() string
func (*FileTypeAnimation) GetClass ¶
func (*FileTypeAnimation) GetClass() string
func (*FileTypeAnimation) GetType ¶
func (*FileTypeAnimation) GetType() string
func (*FileTypeAnimation) MarshalJSON ¶
func (entity *FileTypeAnimation) MarshalJSON() ([]byte, error)
type FileTypeAudio ¶
type FileTypeAudio struct {
// contains filtered or unexported fields
}
The file is an audio file
func UnmarshalFileTypeAudio ¶
func UnmarshalFileTypeAudio(data json.RawMessage) (*FileTypeAudio, error)
func (*FileTypeAudio) FileTypeType ¶
func (*FileTypeAudio) FileTypeType() string
func (*FileTypeAudio) GetClass ¶
func (*FileTypeAudio) GetClass() string
func (*FileTypeAudio) GetType ¶
func (*FileTypeAudio) GetType() string
func (*FileTypeAudio) MarshalJSON ¶
func (entity *FileTypeAudio) MarshalJSON() ([]byte, error)
type FileTypeDocument ¶
type FileTypeDocument struct {
// contains filtered or unexported fields
}
The file is a document
func UnmarshalFileTypeDocument ¶
func UnmarshalFileTypeDocument(data json.RawMessage) (*FileTypeDocument, error)
func (*FileTypeDocument) FileTypeType ¶
func (*FileTypeDocument) FileTypeType() string
func (*FileTypeDocument) GetClass ¶
func (*FileTypeDocument) GetClass() string
func (*FileTypeDocument) GetType ¶
func (*FileTypeDocument) GetType() string
func (*FileTypeDocument) MarshalJSON ¶
func (entity *FileTypeDocument) MarshalJSON() ([]byte, error)
type FileTypeNone ¶
type FileTypeNone struct {
// contains filtered or unexported fields
}
The data is not a file
func UnmarshalFileTypeNone ¶
func UnmarshalFileTypeNone(data json.RawMessage) (*FileTypeNone, error)
func (*FileTypeNone) FileTypeType ¶
func (*FileTypeNone) FileTypeType() string
func (*FileTypeNone) GetClass ¶
func (*FileTypeNone) GetClass() string
func (*FileTypeNone) GetType ¶
func (*FileTypeNone) GetType() string
func (*FileTypeNone) MarshalJSON ¶
func (entity *FileTypeNone) MarshalJSON() ([]byte, error)
type FileTypeNotificationSound ¶ added in v1.0.6
type FileTypeNotificationSound struct {
// contains filtered or unexported fields
}
The file is a notification sound
func UnmarshalFileTypeNotificationSound ¶ added in v1.0.6
func UnmarshalFileTypeNotificationSound(data json.RawMessage) (*FileTypeNotificationSound, error)
func (*FileTypeNotificationSound) FileTypeType ¶ added in v1.0.6
func (*FileTypeNotificationSound) FileTypeType() string
func (*FileTypeNotificationSound) GetClass ¶ added in v1.0.6
func (*FileTypeNotificationSound) GetClass() string
func (*FileTypeNotificationSound) GetType ¶ added in v1.0.6
func (*FileTypeNotificationSound) GetType() string
func (*FileTypeNotificationSound) MarshalJSON ¶ added in v1.0.6
func (entity *FileTypeNotificationSound) MarshalJSON() ([]byte, error)
type FileTypePhoto ¶
type FileTypePhoto struct {
// contains filtered or unexported fields
}
The file is a photo
func UnmarshalFileTypePhoto ¶
func UnmarshalFileTypePhoto(data json.RawMessage) (*FileTypePhoto, error)
func (*FileTypePhoto) FileTypeType ¶
func (*FileTypePhoto) FileTypeType() string
func (*FileTypePhoto) GetClass ¶
func (*FileTypePhoto) GetClass() string
func (*FileTypePhoto) GetType ¶
func (*FileTypePhoto) GetType() string
func (*FileTypePhoto) MarshalJSON ¶
func (entity *FileTypePhoto) MarshalJSON() ([]byte, error)
type FileTypePhotoStory ¶ added in v1.2.3
type FileTypePhotoStory struct {
// contains filtered or unexported fields
}
The file is a photo published as a story
func UnmarshalFileTypePhotoStory ¶ added in v1.2.3
func UnmarshalFileTypePhotoStory(data json.RawMessage) (*FileTypePhotoStory, error)
func (*FileTypePhotoStory) FileTypeType ¶ added in v1.2.3
func (*FileTypePhotoStory) FileTypeType() string
func (*FileTypePhotoStory) GetClass ¶ added in v1.2.3
func (*FileTypePhotoStory) GetClass() string
func (*FileTypePhotoStory) GetType ¶ added in v1.2.3
func (*FileTypePhotoStory) GetType() string
func (*FileTypePhotoStory) MarshalJSON ¶ added in v1.2.3
func (entity *FileTypePhotoStory) MarshalJSON() ([]byte, error)
type FileTypeProfilePhoto ¶
type FileTypeProfilePhoto struct {
// contains filtered or unexported fields
}
The file is a profile photo
func UnmarshalFileTypeProfilePhoto ¶
func UnmarshalFileTypeProfilePhoto(data json.RawMessage) (*FileTypeProfilePhoto, error)
func (*FileTypeProfilePhoto) FileTypeType ¶
func (*FileTypeProfilePhoto) FileTypeType() string
func (*FileTypeProfilePhoto) GetClass ¶
func (*FileTypeProfilePhoto) GetClass() string
func (*FileTypeProfilePhoto) GetType ¶
func (*FileTypeProfilePhoto) GetType() string
func (*FileTypeProfilePhoto) MarshalJSON ¶
func (entity *FileTypeProfilePhoto) MarshalJSON() ([]byte, error)
type FileTypeSecret ¶
type FileTypeSecret struct {
// contains filtered or unexported fields
}
The file was sent to a secret chat (the file type is not known to the server)
func UnmarshalFileTypeSecret ¶
func UnmarshalFileTypeSecret(data json.RawMessage) (*FileTypeSecret, error)
func (*FileTypeSecret) FileTypeType ¶
func (*FileTypeSecret) FileTypeType() string
func (*FileTypeSecret) GetClass ¶
func (*FileTypeSecret) GetClass() string
func (*FileTypeSecret) GetType ¶
func (*FileTypeSecret) GetType() string
func (*FileTypeSecret) MarshalJSON ¶
func (entity *FileTypeSecret) MarshalJSON() ([]byte, error)
type FileTypeSecretThumbnail ¶
type FileTypeSecretThumbnail struct {
// contains filtered or unexported fields
}
The file is a thumbnail of a file from a secret chat
func UnmarshalFileTypeSecretThumbnail ¶
func UnmarshalFileTypeSecretThumbnail(data json.RawMessage) (*FileTypeSecretThumbnail, error)
func (*FileTypeSecretThumbnail) FileTypeType ¶
func (*FileTypeSecretThumbnail) FileTypeType() string
func (*FileTypeSecretThumbnail) GetClass ¶
func (*FileTypeSecretThumbnail) GetClass() string
func (*FileTypeSecretThumbnail) GetType ¶
func (*FileTypeSecretThumbnail) GetType() string
func (*FileTypeSecretThumbnail) MarshalJSON ¶
func (entity *FileTypeSecretThumbnail) MarshalJSON() ([]byte, error)
type FileTypeSecure ¶
type FileTypeSecure struct {
// contains filtered or unexported fields
}
The file is a file from Secure storage used for storing Telegram Passport files
func UnmarshalFileTypeSecure ¶
func UnmarshalFileTypeSecure(data json.RawMessage) (*FileTypeSecure, error)
func (*FileTypeSecure) FileTypeType ¶
func (*FileTypeSecure) FileTypeType() string
func (*FileTypeSecure) GetClass ¶
func (*FileTypeSecure) GetClass() string
func (*FileTypeSecure) GetType ¶
func (*FileTypeSecure) GetType() string
func (*FileTypeSecure) MarshalJSON ¶
func (entity *FileTypeSecure) MarshalJSON() ([]byte, error)
type FileTypeSticker ¶
type FileTypeSticker struct {
// contains filtered or unexported fields
}
The file is a sticker
func UnmarshalFileTypeSticker ¶
func UnmarshalFileTypeSticker(data json.RawMessage) (*FileTypeSticker, error)
func (*FileTypeSticker) FileTypeType ¶
func (*FileTypeSticker) FileTypeType() string
func (*FileTypeSticker) GetClass ¶
func (*FileTypeSticker) GetClass() string
func (*FileTypeSticker) GetType ¶
func (*FileTypeSticker) GetType() string
func (*FileTypeSticker) MarshalJSON ¶
func (entity *FileTypeSticker) MarshalJSON() ([]byte, error)
type FileTypeThumbnail ¶
type FileTypeThumbnail struct {
// contains filtered or unexported fields
}
The file is a thumbnail of another file
func UnmarshalFileTypeThumbnail ¶
func UnmarshalFileTypeThumbnail(data json.RawMessage) (*FileTypeThumbnail, error)
func (*FileTypeThumbnail) FileTypeType ¶
func (*FileTypeThumbnail) FileTypeType() string
func (*FileTypeThumbnail) GetClass ¶
func (*FileTypeThumbnail) GetClass() string
func (*FileTypeThumbnail) GetType ¶
func (*FileTypeThumbnail) GetType() string
func (*FileTypeThumbnail) MarshalJSON ¶
func (entity *FileTypeThumbnail) MarshalJSON() ([]byte, error)
type FileTypeUnknown ¶
type FileTypeUnknown struct {
// contains filtered or unexported fields
}
The file type is not yet known
func UnmarshalFileTypeUnknown ¶
func UnmarshalFileTypeUnknown(data json.RawMessage) (*FileTypeUnknown, error)
func (*FileTypeUnknown) FileTypeType ¶
func (*FileTypeUnknown) FileTypeType() string
func (*FileTypeUnknown) GetClass ¶
func (*FileTypeUnknown) GetClass() string
func (*FileTypeUnknown) GetType ¶
func (*FileTypeUnknown) GetType() string
func (*FileTypeUnknown) MarshalJSON ¶
func (entity *FileTypeUnknown) MarshalJSON() ([]byte, error)
type FileTypeVideo ¶
type FileTypeVideo struct {
// contains filtered or unexported fields
}
The file is a video
func UnmarshalFileTypeVideo ¶
func UnmarshalFileTypeVideo(data json.RawMessage) (*FileTypeVideo, error)
func (*FileTypeVideo) FileTypeType ¶
func (*FileTypeVideo) FileTypeType() string
func (*FileTypeVideo) GetClass ¶
func (*FileTypeVideo) GetClass() string
func (*FileTypeVideo) GetType ¶
func (*FileTypeVideo) GetType() string
func (*FileTypeVideo) MarshalJSON ¶
func (entity *FileTypeVideo) MarshalJSON() ([]byte, error)
type FileTypeVideoNote ¶
type FileTypeVideoNote struct {
// contains filtered or unexported fields
}
The file is a video note
func UnmarshalFileTypeVideoNote ¶
func UnmarshalFileTypeVideoNote(data json.RawMessage) (*FileTypeVideoNote, error)
func (*FileTypeVideoNote) FileTypeType ¶
func (*FileTypeVideoNote) FileTypeType() string
func (*FileTypeVideoNote) GetClass ¶
func (*FileTypeVideoNote) GetClass() string
func (*FileTypeVideoNote) GetType ¶
func (*FileTypeVideoNote) GetType() string
func (*FileTypeVideoNote) MarshalJSON ¶
func (entity *FileTypeVideoNote) MarshalJSON() ([]byte, error)
type FileTypeVideoStory ¶ added in v1.2.3
type FileTypeVideoStory struct {
// contains filtered or unexported fields
}
The file is a video published as a story
func UnmarshalFileTypeVideoStory ¶ added in v1.2.3
func UnmarshalFileTypeVideoStory(data json.RawMessage) (*FileTypeVideoStory, error)
func (*FileTypeVideoStory) FileTypeType ¶ added in v1.2.3
func (*FileTypeVideoStory) FileTypeType() string
func (*FileTypeVideoStory) GetClass ¶ added in v1.2.3
func (*FileTypeVideoStory) GetClass() string
func (*FileTypeVideoStory) GetType ¶ added in v1.2.3
func (*FileTypeVideoStory) GetType() string
func (*FileTypeVideoStory) MarshalJSON ¶ added in v1.2.3
func (entity *FileTypeVideoStory) MarshalJSON() ([]byte, error)
type FileTypeVoiceNote ¶
type FileTypeVoiceNote struct {
// contains filtered or unexported fields
}
The file is a voice note
func UnmarshalFileTypeVoiceNote ¶
func UnmarshalFileTypeVoiceNote(data json.RawMessage) (*FileTypeVoiceNote, error)
func (*FileTypeVoiceNote) FileTypeType ¶
func (*FileTypeVoiceNote) FileTypeType() string
func (*FileTypeVoiceNote) GetClass ¶
func (*FileTypeVoiceNote) GetClass() string
func (*FileTypeVoiceNote) GetType ¶
func (*FileTypeVoiceNote) GetType() string
func (*FileTypeVoiceNote) MarshalJSON ¶
func (entity *FileTypeVoiceNote) MarshalJSON() ([]byte, error)
type FileTypeWallpaper ¶
type FileTypeWallpaper struct {
// contains filtered or unexported fields
}
The file is a wallpaper or a background pattern
func UnmarshalFileTypeWallpaper ¶
func UnmarshalFileTypeWallpaper(data json.RawMessage) (*FileTypeWallpaper, error)
func (*FileTypeWallpaper) FileTypeType ¶
func (*FileTypeWallpaper) FileTypeType() string
func (*FileTypeWallpaper) GetClass ¶
func (*FileTypeWallpaper) GetClass() string
func (*FileTypeWallpaper) GetType ¶
func (*FileTypeWallpaper) GetType() string
func (*FileTypeWallpaper) MarshalJSON ¶
func (entity *FileTypeWallpaper) MarshalJSON() ([]byte, error)
type FirebaseAuthenticationSettings ¶ added in v1.2.3
type FirebaseAuthenticationSettings interface {
FirebaseAuthenticationSettingsType() string
}
Contains settings for Firebase Authentication in the official applications
func UnmarshalFirebaseAuthenticationSettings ¶ added in v1.2.3
func UnmarshalFirebaseAuthenticationSettings(data json.RawMessage) (FirebaseAuthenticationSettings, error)
func UnmarshalListOfFirebaseAuthenticationSettings ¶ added in v1.2.3
func UnmarshalListOfFirebaseAuthenticationSettings(dataList []json.RawMessage) ([]FirebaseAuthenticationSettings, error)
type FirebaseAuthenticationSettingsAndroid ¶ added in v1.2.3
type FirebaseAuthenticationSettingsAndroid struct {
// contains filtered or unexported fields
}
Settings for Firebase Authentication in the official Android application
func UnmarshalFirebaseAuthenticationSettingsAndroid ¶ added in v1.2.3
func UnmarshalFirebaseAuthenticationSettingsAndroid(data json.RawMessage) (*FirebaseAuthenticationSettingsAndroid, error)
func (*FirebaseAuthenticationSettingsAndroid) FirebaseAuthenticationSettingsType ¶ added in v1.2.3
func (*FirebaseAuthenticationSettingsAndroid) FirebaseAuthenticationSettingsType() string
func (*FirebaseAuthenticationSettingsAndroid) GetClass ¶ added in v1.2.3
func (*FirebaseAuthenticationSettingsAndroid) GetClass() string
func (*FirebaseAuthenticationSettingsAndroid) GetType ¶ added in v1.2.3
func (*FirebaseAuthenticationSettingsAndroid) GetType() string
func (*FirebaseAuthenticationSettingsAndroid) MarshalJSON ¶ added in v1.2.3
func (entity *FirebaseAuthenticationSettingsAndroid) MarshalJSON() ([]byte, error)
type FirebaseAuthenticationSettingsIos ¶ added in v1.2.3
type FirebaseAuthenticationSettingsIos struct { // Device token from Apple Push Notification service DeviceToken string `json:"device_token"` // True, if App Sandbox is enabled IsAppSandbox bool `json:"is_app_sandbox"` // contains filtered or unexported fields }
Settings for Firebase Authentication in the official iOS application
func UnmarshalFirebaseAuthenticationSettingsIos ¶ added in v1.2.3
func UnmarshalFirebaseAuthenticationSettingsIos(data json.RawMessage) (*FirebaseAuthenticationSettingsIos, error)
func (*FirebaseAuthenticationSettingsIos) FirebaseAuthenticationSettingsType ¶ added in v1.2.3
func (*FirebaseAuthenticationSettingsIos) FirebaseAuthenticationSettingsType() string
func (*FirebaseAuthenticationSettingsIos) GetClass ¶ added in v1.2.3
func (*FirebaseAuthenticationSettingsIos) GetClass() string
func (*FirebaseAuthenticationSettingsIos) GetType ¶ added in v1.2.3
func (*FirebaseAuthenticationSettingsIos) GetType() string
func (*FirebaseAuthenticationSettingsIos) MarshalJSON ¶ added in v1.2.3
func (entity *FirebaseAuthenticationSettingsIos) MarshalJSON() ([]byte, error)
type FormattedText ¶
type FormattedText struct { // The text Text string `json:"text"` // Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. Pre, Code and PreCode entities can't contain other entities. Bold, Italic, Underline, Strikethrough, and Spoiler entities can contain and can be part of any other entities. All other entities can't contain each other Entities []*TextEntity `json:"entities"` // contains filtered or unexported fields }
A text with some entities
func GetMarkdownText ¶
func GetMarkdownText(req *GetMarkdownTextRequest) (*FormattedText, error)
Replaces text entities with Markdown formatting in a human-friendly format. Entities that can't be represented in Markdown unambiguously are kept as is. Can be called synchronously
func ParseMarkdown ¶
func ParseMarkdown(req *ParseMarkdownRequest) (*FormattedText, error)
Parses Markdown entities in a human-friendly format, ignoring markup errors. Can be called synchronously
func ParseTextEntities ¶
func ParseTextEntities(req *ParseTextEntitiesRequest) (*FormattedText, error)
Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, Code, Pre, PreCode, TextUrl and MentionName entities from a marked-up text. Can be called synchronously
func UnmarshalFormattedText ¶
func UnmarshalFormattedText(data json.RawMessage) (*FormattedText, error)
func (*FormattedText) GetClass ¶
func (*FormattedText) GetClass() string
func (*FormattedText) GetType ¶
func (*FormattedText) GetType() string
func (*FormattedText) MarshalJSON ¶
func (entity *FormattedText) MarshalJSON() ([]byte, error)
type ForumTopic ¶ added in v1.2.3
type ForumTopic struct { // Basic information about the topic Info *ForumTopicInfo `json:"info"` // Last message in the topic; may be null if unknown LastMessage *Message `json:"last_message"` // True, if the topic is pinned in the topic list IsPinned bool `json:"is_pinned"` // Number of unread messages in the topic UnreadCount int32 `json:"unread_count"` // Identifier of the last read incoming message LastReadInboxMessageId int64 `json:"last_read_inbox_message_id"` // Identifier of the last read outgoing message LastReadOutboxMessageId int64 `json:"last_read_outbox_message_id"` // Number of unread messages with a mention/reply in the topic UnreadMentionCount int32 `json:"unread_mention_count"` // Number of messages with unread reactions in the topic UnreadReactionCount int32 `json:"unread_reaction_count"` // Notification settings for the topic NotificationSettings *ChatNotificationSettings `json:"notification_settings"` // A draft of a message in the topic; may be null if none DraftMessage *DraftMessage `json:"draft_message"` // contains filtered or unexported fields }
Describes a forum topic
func UnmarshalForumTopic ¶ added in v1.2.3
func UnmarshalForumTopic(data json.RawMessage) (*ForumTopic, error)
func (*ForumTopic) GetClass ¶ added in v1.2.3
func (*ForumTopic) GetClass() string
func (*ForumTopic) GetType ¶ added in v1.2.3
func (*ForumTopic) GetType() string
func (*ForumTopic) MarshalJSON ¶ added in v1.2.3
func (entity *ForumTopic) MarshalJSON() ([]byte, error)
type ForumTopicIcon ¶ added in v1.2.3
type ForumTopicIcon struct { // Color of the topic icon in RGB format Color int32 `json:"color"` // Unique identifier of the custom emoji shown on the topic icon; 0 if none CustomEmojiId JsonInt64 `json:"custom_emoji_id"` // contains filtered or unexported fields }
Describes a forum topic icon
func UnmarshalForumTopicIcon ¶ added in v1.2.3
func UnmarshalForumTopicIcon(data json.RawMessage) (*ForumTopicIcon, error)
func (*ForumTopicIcon) GetClass ¶ added in v1.2.3
func (*ForumTopicIcon) GetClass() string
func (*ForumTopicIcon) GetType ¶ added in v1.2.3
func (*ForumTopicIcon) GetType() string
func (*ForumTopicIcon) MarshalJSON ¶ added in v1.2.3
func (entity *ForumTopicIcon) MarshalJSON() ([]byte, error)
type ForumTopicInfo ¶ added in v1.2.3
type ForumTopicInfo struct { // Message thread identifier of the topic MessageThreadId int64 `json:"message_thread_id"` // Name of the topic Name string `json:"name"` // Icon of the topic Icon *ForumTopicIcon `json:"icon"` // Point in time (Unix timestamp) when the topic was created CreationDate int32 `json:"creation_date"` // Identifier of the creator of the topic CreatorId MessageSender `json:"creator_id"` // True, if the topic is the General topic list IsGeneral bool `json:"is_general"` // True, if the topic was created by the current user IsOutgoing bool `json:"is_outgoing"` // True, if the topic is closed IsClosed bool `json:"is_closed"` // True, if the topic is hidden above the topic list and closed; for General topic only IsHidden bool `json:"is_hidden"` // contains filtered or unexported fields }
Contains basic information about a forum topic
func UnmarshalForumTopicInfo ¶ added in v1.2.3
func UnmarshalForumTopicInfo(data json.RawMessage) (*ForumTopicInfo, error)
func (*ForumTopicInfo) GetClass ¶ added in v1.2.3
func (*ForumTopicInfo) GetClass() string
func (*ForumTopicInfo) GetType ¶ added in v1.2.3
func (*ForumTopicInfo) GetType() string
func (*ForumTopicInfo) MarshalJSON ¶ added in v1.2.3
func (entity *ForumTopicInfo) MarshalJSON() ([]byte, error)
func (*ForumTopicInfo) UnmarshalJSON ¶ added in v1.2.3
func (forumTopicInfo *ForumTopicInfo) UnmarshalJSON(data []byte) error
type ForumTopics ¶ added in v1.2.3
type ForumTopics struct { // Approximate total number of forum topics found TotalCount int32 `json:"total_count"` // List of forum topics Topics []*ForumTopic `json:"topics"` // Offset date for the next getForumTopics request NextOffsetDate int32 `json:"next_offset_date"` // Offset message identifier for the next getForumTopics request NextOffsetMessageId int64 `json:"next_offset_message_id"` // Offset message thread identifier for the next getForumTopics request NextOffsetMessageThreadId int64 `json:"next_offset_message_thread_id"` // contains filtered or unexported fields }
Describes a list of forum topics
func UnmarshalForumTopics ¶ added in v1.2.3
func UnmarshalForumTopics(data json.RawMessage) (*ForumTopics, error)
func (*ForumTopics) GetClass ¶ added in v1.2.3
func (*ForumTopics) GetClass() string
func (*ForumTopics) GetType ¶ added in v1.2.3
func (*ForumTopics) GetType() string
func (*ForumTopics) MarshalJSON ¶ added in v1.2.3
func (entity *ForumTopics) MarshalJSON() ([]byte, error)
type ForwardMessagesRequest ¶
type ForwardMessagesRequest struct { // Identifier of the chat to which to forward messages ChatId int64 `json:"chat_id"` // If not 0, a message thread identifier in which the message will be sent; for forum threads only MessageThreadId int64 `json:"message_thread_id"` // Identifier of the chat from which to forward messages FromChatId int64 `json:"from_chat_id"` // Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order. At most 100 messages can be forwarded simultaneously MessageIds []int64 `json:"message_ids"` // Options to be used to send the messages; pass null to use default options Options *MessageSendOptions `json:"options"` // Pass true to copy content of the messages without reference to the original sender. Always true if the messages are forwarded to a secret chat or are local SendCopy bool `json:"send_copy"` // Pass true to remove media captions of message copies. Ignored if send_copy is false RemoveCaption bool `json:"remove_caption"` // Pass true to get fake messages instead of actually forwarding them OnlyPreview bool `json:"only_preview"` }
type FoundChatMessages ¶ added in v1.2.3
type FoundChatMessages struct { // Approximate total number of messages found; -1 if unknown TotalCount int32 `json:"total_count"` // List of messages Messages []*Message `json:"messages"` // The offset for the next request. If 0, there are no more results NextFromMessageId int64 `json:"next_from_message_id"` // contains filtered or unexported fields }
Contains a list of messages found by a search in a given chat
func UnmarshalFoundChatMessages ¶ added in v1.2.3
func UnmarshalFoundChatMessages(data json.RawMessage) (*FoundChatMessages, error)
func (*FoundChatMessages) GetClass ¶ added in v1.2.3
func (*FoundChatMessages) GetClass() string
func (*FoundChatMessages) GetType ¶ added in v1.2.3
func (*FoundChatMessages) GetType() string
func (*FoundChatMessages) MarshalJSON ¶ added in v1.2.3
func (entity *FoundChatMessages) MarshalJSON() ([]byte, error)
type FoundFileDownloads ¶ added in v1.0.6
type FoundFileDownloads struct { // Total number of suitable files, ignoring offset TotalCounts *DownloadedFileCounts `json:"total_counts"` // The list of files Files []*FileDownload `json:"files"` // The offset for the next request. If empty, there are no more results NextOffset string `json:"next_offset"` // contains filtered or unexported fields }
Contains a list of downloaded files, found by a search
func UnmarshalFoundFileDownloads ¶ added in v1.0.6
func UnmarshalFoundFileDownloads(data json.RawMessage) (*FoundFileDownloads, error)
func (*FoundFileDownloads) GetClass ¶ added in v1.0.6
func (*FoundFileDownloads) GetClass() string
func (*FoundFileDownloads) GetType ¶ added in v1.0.6
func (*FoundFileDownloads) GetType() string
func (*FoundFileDownloads) MarshalJSON ¶ added in v1.0.6
func (entity *FoundFileDownloads) MarshalJSON() ([]byte, error)
type FoundMessages ¶
type FoundMessages struct { // Approximate total number of messages found; -1 if unknown TotalCount int32 `json:"total_count"` // List of messages Messages []*Message `json:"messages"` // The offset for the next request. If empty, there are no more results NextOffset string `json:"next_offset"` // contains filtered or unexported fields }
Contains a list of messages found by a search
func UnmarshalFoundMessages ¶
func UnmarshalFoundMessages(data json.RawMessage) (*FoundMessages, error)
func (*FoundMessages) GetClass ¶
func (*FoundMessages) GetClass() string
func (*FoundMessages) GetType ¶
func (*FoundMessages) GetType() string
func (*FoundMessages) MarshalJSON ¶
func (entity *FoundMessages) MarshalJSON() ([]byte, error)
type FoundPositions ¶ added in v1.2.3
type FoundPositions struct { // Total number of matched objects TotalCount int32 `json:"total_count"` // The positions of the matched objects Positions []int32 `json:"positions"` // contains filtered or unexported fields }
Contains 0-based positions of matched objects
func SearchStringsByPrefix ¶ added in v1.2.3
func SearchStringsByPrefix(req *SearchStringsByPrefixRequest) (*FoundPositions, error)
Searches specified query by word prefixes in the provided strings. Returns 0-based positions of strings that matched. Can be called synchronously
func UnmarshalFoundPositions ¶ added in v1.2.3
func UnmarshalFoundPositions(data json.RawMessage) (*FoundPositions, error)
func (*FoundPositions) GetClass ¶ added in v1.2.3
func (*FoundPositions) GetClass() string
func (*FoundPositions) GetType ¶ added in v1.2.3
func (*FoundPositions) GetType() string
func (*FoundPositions) MarshalJSON ¶ added in v1.2.3
func (entity *FoundPositions) MarshalJSON() ([]byte, error)
type FoundWebApp ¶ added in v1.2.3
type FoundWebApp struct { // The Web App WebApp *WebApp `json:"web_app"` // True, if the app supports "settings_button_pressed" event SupportsSettings bool `json:"supports_settings"` // True, if the user must be asked for the permission to the bot to send them messages RequestWriteAccess bool `json:"request_write_access"` // True, if there is no need to show an ordinary open URL confirmation before opening the Web App. The field must be ignored and confirmation must be shown anyway if the Web App link was hidden SkipConfirmation bool `json:"skip_confirmation"` // contains filtered or unexported fields }
Contains information about a Web App found by its short name
func UnmarshalFoundWebApp ¶ added in v1.2.3
func UnmarshalFoundWebApp(data json.RawMessage) (*FoundWebApp, error)
func (*FoundWebApp) GetClass ¶ added in v1.2.3
func (*FoundWebApp) GetClass() string
func (*FoundWebApp) GetType ¶ added in v1.2.3
func (*FoundWebApp) GetType() string
func (*FoundWebApp) MarshalJSON ¶ added in v1.2.3
func (entity *FoundWebApp) MarshalJSON() ([]byte, error)
type Game ¶
type Game struct { // Unique game identifier Id JsonInt64 `json:"id"` // Game short name ShortName string `json:"short_name"` // Game title Title string `json:"title"` // Game text, usually containing scoreboards for a game Text *FormattedText `json:"text"` // Game description Description string `json:"description"` // Game photo Photo *Photo `json:"photo"` // Game animation; may be null Animation *Animation `json:"animation"` // contains filtered or unexported fields }
Describes a game. Use getInternalLink with internalLinkTypeGame to share the game
func UnmarshalGame ¶
func UnmarshalGame(data json.RawMessage) (*Game, error)
func (*Game) MarshalJSON ¶
type GameHighScore ¶
type GameHighScore struct { // Position in the high score table Position int32 `json:"position"` // User identifier UserId int64 `json:"user_id"` // User score Score int32 `json:"score"` // contains filtered or unexported fields }
Contains one row of the game high score table
func UnmarshalGameHighScore ¶
func UnmarshalGameHighScore(data json.RawMessage) (*GameHighScore, error)
func (*GameHighScore) GetClass ¶
func (*GameHighScore) GetClass() string
func (*GameHighScore) GetType ¶
func (*GameHighScore) GetType() string
func (*GameHighScore) MarshalJSON ¶
func (entity *GameHighScore) MarshalJSON() ([]byte, error)
type GameHighScores ¶
type GameHighScores struct { // A list of game high scores Scores []*GameHighScore `json:"scores"` // contains filtered or unexported fields }
Contains a list of game high scores
func UnmarshalGameHighScores ¶
func UnmarshalGameHighScores(data json.RawMessage) (*GameHighScores, error)
func (*GameHighScores) GetClass ¶
func (*GameHighScores) GetClass() string
func (*GameHighScores) GetType ¶
func (*GameHighScores) GetType() string
func (*GameHighScores) MarshalJSON ¶
func (entity *GameHighScores) MarshalJSON() ([]byte, error)
type GetAllPassportElementsRequest ¶
type GetAllPassportElementsRequest struct { // The 2-step verification password of the current user Password string `json:"password"` }
type GetAllStickerEmojisRequest ¶ added in v1.2.3
type GetAllStickerEmojisRequest struct { // Type of the stickers to search for StickerType StickerType `json:"sticker_type"` // Search query Query string `json:"query"` // Chat identifier for which to find stickers ChatId int64 `json:"chat_id"` // Pass true if only main emoji for each found sticker must be included in the result ReturnOnlyMainEmoji bool `json:"return_only_main_emoji"` }
type GetAnimatedEmojiRequest ¶
type GetAnimatedEmojiRequest struct { // The emoji Emoji string `json:"emoji"` }
type GetArchivedStickerSetsRequest ¶
type GetArchivedStickerSetsRequest struct { // Type of the sticker sets to return StickerType StickerType `json:"sticker_type"` // Identifier of the sticker set from which to return the result OffsetStickerSetId JsonInt64 `json:"offset_sticker_set_id"` // The maximum number of sticker sets to return; up to 100 Limit int32 `json:"limit"` }
type GetArchivedStoriesRequest ¶ added in v1.2.3
type GetArchivedStoriesRequest struct { // Identifier of the story starting from which stories must be returned; use 0 to get results from the last story FromStoryId int32 `json:"from_story_id"` // The maximum number of stories to be returned For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit Limit int32 `json:"limit"` }
type GetAttachedStickerSetsRequest ¶
type GetAttachedStickerSetsRequest struct { // File identifier FileId int32 `json:"file_id"` }
type GetAttachmentMenuBotRequest ¶ added in v1.0.6
type GetAttachmentMenuBotRequest struct { // Bot's user identifier BotUserId int64 `json:"bot_user_id"` }
type GetBackgroundUrlRequest ¶
type GetBackgroundUrlRequest struct { // Background name Name string `json:"name"` // Background type Type BackgroundType `json:"type"` }
type GetBackgroundsRequest ¶
type GetBackgroundsRequest struct { // Pass true to order returned backgrounds for a dark theme ForDarkTheme bool `json:"for_dark_theme"` }
type GetBankCardInfoRequest ¶
type GetBankCardInfoRequest struct { // The bank card number BankCardNumber string `json:"bank_card_number"` }
type GetBasicGroupFullInfoRequest ¶
type GetBasicGroupFullInfoRequest struct { // Basic group identifier BasicGroupId int64 `json:"basic_group_id"` }
type GetBasicGroupRequest ¶
type GetBasicGroupRequest struct { // Basic group identifier BasicGroupId int64 `json:"basic_group_id"` }
type GetBlockedMessageSendersRequest ¶
type GetBlockedMessageSendersRequest struct { // Block list from which to return users BlockList BlockList `json:"block_list"` // Number of users and chats to skip in the result; must be non-negative Offset int32 `json:"offset"` // The maximum number of users and chats to return; up to 100 Limit int32 `json:"limit"` }
type GetBotInfoDescriptionRequest ¶ added in v1.2.3
type GetBotInfoShortDescriptionRequest ¶ added in v1.2.3
type GetBotNameRequest ¶ added in v1.2.3
type GetCallbackQueryAnswerRequest ¶
type GetCallbackQueryAnswerRequest struct { // Identifier of the chat with the message ChatId int64 `json:"chat_id"` // Identifier of the message from which the query originated MessageId int64 `json:"message_id"` // Query payload Payload CallbackQueryPayload `json:"payload"` }
type GetChatActiveStoriesRequest ¶ added in v1.2.3
type GetChatActiveStoriesRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type GetChatAdministratorsRequest ¶
type GetChatAdministratorsRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type GetChatAvailableMessageSendersRequest ¶
type GetChatAvailableMessageSendersRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type GetChatEventLogRequest ¶
type GetChatEventLogRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Search query by which to filter events Query string `json:"query"` // Identifier of an event from which to return results. Use 0 to get results from the latest events FromEventId JsonInt64 `json:"from_event_id"` // The maximum number of events to return; up to 100 Limit int32 `json:"limit"` // The types of events to return; pass null to get chat events of all types Filters *ChatEventLogFilters `json:"filters"` // User identifiers by which to filter events. By default, events relating to all users will be returned UserIds []int64 `json:"user_ids"` }
type GetChatFolderChatCountRequest ¶ added in v1.2.3
type GetChatFolderChatCountRequest struct { // The new chat folder Folder *ChatFolder `json:"folder"` }
type GetChatFolderChatsToLeaveRequest ¶ added in v1.2.3
type GetChatFolderChatsToLeaveRequest struct { // Chat folder identifier ChatFolderId int32 `json:"chat_folder_id"` }
type GetChatFolderDefaultIconNameRequest ¶ added in v1.2.3
type GetChatFolderDefaultIconNameRequest struct { // Chat folder Folder *ChatFolder `json:"folder"` }
type GetChatFolderInviteLinksRequest ¶ added in v1.2.3
type GetChatFolderInviteLinksRequest struct { // Chat folder identifier ChatFolderId int32 `json:"chat_folder_id"` }
type GetChatFolderNewChatsRequest ¶ added in v1.2.3
type GetChatFolderNewChatsRequest struct { // Chat folder identifier ChatFolderId int32 `json:"chat_folder_id"` }
type GetChatFolderRequest ¶ added in v1.2.3
type GetChatFolderRequest struct { // Chat folder identifier ChatFolderId int32 `json:"chat_folder_id"` }
type GetChatHistoryRequest ¶
type GetChatHistoryRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Identifier of the message starting from which history must be fetched; use 0 to get results from the last message FromMessageId int64 `json:"from_message_id"` // Specify 0 to get results from exactly the from_message_id or a negative offset up to 99 to get additionally some newer messages Offset int32 `json:"offset"` // The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit Limit int32 `json:"limit"` // Pass true to get only messages that are available without sending network requests OnlyLocal bool `json:"only_local"` }
type GetChatInviteLinkCountsRequest ¶
type GetChatInviteLinkCountsRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type GetChatInviteLinkMembersRequest ¶
type GetChatInviteLinkMembersRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Invite link for which to return chat members InviteLink string `json:"invite_link"` // A chat member from which to return next chat members; pass null to get results from the beginning OffsetMember *ChatInviteLinkMember `json:"offset_member"` // The maximum number of chat members to return; up to 100 Limit int32 `json:"limit"` }
type GetChatInviteLinksRequest ¶
type GetChatInviteLinksRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // User identifier of a chat administrator. Must be an identifier of the current user for non-owner CreatorUserId int64 `json:"creator_user_id"` // Pass true if revoked links needs to be returned instead of active or expired IsRevoked bool `json:"is_revoked"` // Creation date of an invite link starting after which to return invite links; use 0 to get results from the beginning OffsetDate int32 `json:"offset_date"` // Invite link starting after which to return invite links; use empty string to get results from the beginning OffsetInviteLink string `json:"offset_invite_link"` // The maximum number of invite links to return; up to 100 Limit int32 `json:"limit"` }
type GetChatJoinRequestsRequest ¶
type GetChatJoinRequestsRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Invite link for which to return join requests. If empty, all join requests will be returned. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links InviteLink string `json:"invite_link"` // A query to search for in the first names, last names and usernames of the users to return Query string `json:"query"` // A chat join request from which to return next requests; pass null to get results from the beginning OffsetRequest *ChatJoinRequest `json:"offset_request"` // The maximum number of requests to join the chat to return Limit int32 `json:"limit"` }
type GetChatListsToAddChatRequest ¶
type GetChatListsToAddChatRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type GetChatMemberRequest ¶
type GetChatMemberRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Member identifier MemberId MessageSender `json:"member_id"` }
type GetChatMessageCalendarRequest ¶
type GetChatMessageCalendarRequest struct { // Identifier of the chat in which to return information about messages ChatId int64 `json:"chat_id"` // Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention, searchMessagesFilterUnreadMention, and searchMessagesFilterUnreadReaction are unsupported in this function Filter SearchMessagesFilter `json:"filter"` // The message identifier from which to return information about messages; use 0 to get results from the last message FromMessageId int64 `json:"from_message_id"` }
type GetChatMessageCountRequest ¶
type GetChatMessageCountRequest struct { // Identifier of the chat in which to count messages ChatId int64 `json:"chat_id"` // Filter for message content; searchMessagesFilterEmpty is unsupported in this function Filter SearchMessagesFilter `json:"filter"` // Pass true to get the number of messages without sending network requests, or -1 if the number of messages is unknown locally ReturnLocal bool `json:"return_local"` }
type GetChatMessagePositionRequest ¶ added in v1.2.3
type GetChatMessagePositionRequest struct { // Identifier of the chat in which to find message position ChatId int64 `json:"chat_id"` // Message identifier MessageId int64 `json:"message_id"` // Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function Filter SearchMessagesFilter `json:"filter"` // If not 0, only messages in the specified thread will be considered; supergroups only MessageThreadId int64 `json:"message_thread_id"` }
type GetChatNotificationSettingsExceptionsRequest ¶
type GetChatNotificationSettingsExceptionsRequest struct { // If specified, only chats from the scope will be returned; pass null to return chats from all scopes Scope NotificationSettingsScope `json:"scope"` // Pass true to include in the response chats with only non-default sound CompareSound bool `json:"compare_sound"` }
type GetChatPinnedMessageRequest ¶
type GetChatPinnedMessageRequest struct { // Identifier of the chat the message belongs to ChatId int64 `json:"chat_id"` }
type GetChatPinnedStoriesRequest ¶ added in v1.2.3
type GetChatPinnedStoriesRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Identifier of the story starting from which stories must be returned; use 0 to get results from the last story FromStoryId int32 `json:"from_story_id"` // The maximum number of stories to be returned For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit Limit int32 `json:"limit"` }
type GetChatRequest ¶
type GetChatRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type GetChatScheduledMessagesRequest ¶
type GetChatScheduledMessagesRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type GetChatSparseMessagePositionsRequest ¶
type GetChatSparseMessagePositionsRequest struct { // Identifier of the chat in which to return information about message positions ChatId int64 `json:"chat_id"` // Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention, searchMessagesFilterUnreadMention, and searchMessagesFilterUnreadReaction are unsupported in this function Filter SearchMessagesFilter `json:"filter"` // The message identifier from which to return information about message positions FromMessageId int64 `json:"from_message_id"` // The expected number of message positions to be returned; 50-2000. A smaller number of positions can be returned, if there are not enough appropriate messages Limit int32 `json:"limit"` }
type GetChatSponsoredMessagesRequest ¶ added in v1.2.3
type GetChatSponsoredMessagesRequest struct { // Identifier of the chat ChatId int64 `json:"chat_id"` }
type GetChatsForChatFolderInviteLinkRequest ¶ added in v1.2.3
type GetChatsForChatFolderInviteLinkRequest struct { // Chat folder identifier ChatFolderId int32 `json:"chat_folder_id"` }
type GetChatsRequest ¶
type GetCommandsRequest ¶
type GetCommandsRequest struct { // The scope to which the commands are relevant; pass null to get commands in the default bot command scope Scope BotCommandScope `json:"scope"` // A two-letter ISO 639-1 language code or an empty string LanguageCode string `json:"language_code"` }
type GetCreatedPublicChatsRequest ¶
type GetCreatedPublicChatsRequest struct { // Type of the public chats to return Type PublicChatType `json:"type"` }
type GetCustomEmojiStickersRequest ¶ added in v1.2.3
type GetCustomEmojiStickersRequest struct { // Identifiers of custom emoji stickers. At most 200 custom emoji stickers can be received simultaneously CustomEmojiIds []JsonInt64 `json:"custom_emoji_ids"` }
type GetDeepLinkInfoRequest ¶
type GetDeepLinkInfoRequest struct { // The link Link string `json:"link"` }
type GetEmojiCategoriesRequest ¶ added in v1.2.3
type GetEmojiCategoriesRequest struct { // Type of emoji categories to return; pass null to get default emoji categories Type EmojiCategoryType `json:"type"` }
type GetEmojiReactionRequest ¶ added in v1.2.3
type GetEmojiReactionRequest struct { // Text representation of the reaction Emoji string `json:"emoji"` }
type GetEmojiSuggestionsUrlRequest ¶
type GetEmojiSuggestionsUrlRequest struct { // Language code for which the emoji replacements will be suggested LanguageCode string `json:"language_code"` }
type GetExternalLinkInfoRequest ¶
type GetExternalLinkInfoRequest struct { // The link Link string `json:"link"` }
type GetExternalLinkRequest ¶
type GetFileExtensionRequest ¶
type GetFileExtensionRequest struct { // The MIME type of the file MimeType string `json:"mime_type"` }
type GetFileMimeTypeRequest ¶
type GetFileMimeTypeRequest struct { // The name of the file or path to the file FileName string `json:"file_name"` }
type GetFileRequest ¶
type GetFileRequest struct { // Identifier of the file to get FileId int32 `json:"file_id"` }
type GetForumTopicLinkRequest ¶ added in v1.2.3
type GetForumTopicRequest ¶ added in v1.2.3
type GetForumTopicsRequest ¶ added in v1.2.3
type GetForumTopicsRequest struct { // Identifier of the forum chat ChatId int64 `json:"chat_id"` // Query to search for in the forum topic's name Query string `json:"query"` // The date starting from which the results need to be fetched. Use 0 or any date in the future to get results from the last topic OffsetDate int32 `json:"offset_date"` // The message identifier of the last message in the last found topic, or 0 for the first request OffsetMessageId int64 `json:"offset_message_id"` // The message thread identifier of the last found topic, or 0 for the first request OffsetMessageThreadId int64 `json:"offset_message_thread_id"` // The maximum number of forum topics to be returned; up to 100. For optimal performance, the number of returned forum topics is chosen by TDLib and can be smaller than the specified limit Limit int32 `json:"limit"` }
type GetGroupCallInviteLinkRequest ¶
type GetGroupCallInviteLinkRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` // Pass true if the invite link needs to contain an invite hash, passing which to joinGroupCall would allow the invited user to unmute themselves. Requires groupCall.can_be_managed group call flag CanSelfUnmute bool `json:"can_self_unmute"` }
type GetGroupCallRequest ¶
type GetGroupCallRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` }
type GetGroupCallStreamSegmentRequest ¶
type GetGroupCallStreamSegmentRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` // Point in time when the stream segment begins; Unix timestamp in milliseconds TimeOffset int64 `json:"time_offset"` // Segment duration scale; 0-1. Segment's duration is 1000/(2**scale) milliseconds Scale int32 `json:"scale"` // Identifier of an audio/video channel to get as received from tgcalls ChannelId int32 `json:"channel_id"` // Video quality as received from tgcalls; pass null to get the worst available quality VideoQuality GroupCallVideoQuality `json:"video_quality"` }
type GetGroupCallStreamsRequest ¶ added in v1.0.6
type GetGroupCallStreamsRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` }
type GetGroupsInCommonRequest ¶
type GetGroupsInCommonRequest struct { // User identifier UserId int64 `json:"user_id"` // Chat identifier starting from which to return chats; use 0 for the first request OffsetChatId int64 `json:"offset_chat_id"` // The maximum number of chats to be returned; up to 100 Limit int32 `json:"limit"` }
type GetInlineQueryResultsRequest ¶
type GetInlineQueryResultsRequest struct { // Identifier of the target bot BotUserId int64 `json:"bot_user_id"` // Identifier of the chat where the query was sent ChatId int64 `json:"chat_id"` // Location of the user; pass null if unknown or the bot doesn't need user's location UserLocation *Location `json:"user_location"` // Text of the query Query string `json:"query"` // Offset of the first entry to return; use empty string to get the first chunk of results Offset string `json:"offset"` }
type GetInstalledStickerSetsRequest ¶
type GetInstalledStickerSetsRequest struct { // Type of the sticker sets to return StickerType StickerType `json:"sticker_type"` }
type GetInternalLinkRequest ¶ added in v1.2.3
type GetInternalLinkRequest struct { // Expected type of the link Type InternalLinkType `json:"type"` // Pass true to create an HTTPS link (only available for some link types); pass false to create a tg: link IsHttp bool `json:"is_http"` }
type GetInternalLinkTypeRequest ¶
type GetInternalLinkTypeRequest struct { // The link Link string `json:"link"` }
type GetJsonStringRequest ¶
type GetJsonStringRequest struct { // The JsonValue object JsonValue JsonValue `json:"json_value"` }
type GetJsonValueRequest ¶
type GetJsonValueRequest struct { // The JSON-serialized string Json string `json:"json"` }
type GetLanguagePackInfoRequest ¶
type GetLanguagePackInfoRequest struct { // Language pack identifier LanguagePackId string `json:"language_pack_id"` }
type GetLanguagePackStringRequest ¶
type GetLanguagePackStringRequest struct { // Path to the language pack database in which strings are stored LanguagePackDatabasePath string `json:"language_pack_database_path"` // Localization target to which the language pack belongs LocalizationTarget string `json:"localization_target"` // Language pack identifier LanguagePackId string `json:"language_pack_id"` // Language pack key of the string to be returned Key string `json:"key"` }
type GetLocalizationTargetInfoRequest ¶
type GetLocalizationTargetInfoRequest struct { // Pass true to get only locally available information without sending network requests OnlyLocal bool `json:"only_local"` }
type GetLogTagVerbosityLevelRequest ¶
type GetLogTagVerbosityLevelRequest struct { // Logging tag to change verbosity level Tag string `json:"tag"` }
type GetLoginUrlInfoRequest ¶
type GetLoginUrlRequest ¶
type GetLoginUrlRequest struct { // Chat identifier of the message with the button ChatId int64 `json:"chat_id"` // Message identifier of the message with the button MessageId int64 `json:"message_id"` // Button identifier ButtonId int64 `json:"button_id"` // Pass true to allow the bot to send messages to the current user AllowWriteAccess bool `json:"allow_write_access"` }
type GetMapThumbnailFileRequest ¶
type GetMapThumbnailFileRequest struct { // Location of the map center Location *Location `json:"location"` // Map zoom level; 13-20 Zoom int32 `json:"zoom"` // Map width in pixels before applying scale; 16-1024 Width int32 `json:"width"` // Map height in pixels before applying scale; 16-1024 Height int32 `json:"height"` // Map scale; 1-3 Scale int32 `json:"scale"` // Identifier of a chat in which the thumbnail will be shown. Use 0 if unknown ChatId int64 `json:"chat_id"` }
type GetMarkdownTextRequest ¶
type GetMarkdownTextRequest struct { // The text Text *FormattedText `json:"text"` }
type GetMenuButtonRequest ¶ added in v1.0.6
type GetMenuButtonRequest struct { // Identifier of the user or 0 to get the default menu button UserId int64 `json:"user_id"` }
type GetMessageAddedReactionsRequest ¶ added in v1.0.6
type GetMessageAddedReactionsRequest struct { // Identifier of the chat to which the message belongs ChatId int64 `json:"chat_id"` // Identifier of the message MessageId int64 `json:"message_id"` // Type of the reactions to return; pass null to return all added reactions ReactionType ReactionType `json:"reaction_type"` // Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results Offset string `json:"offset"` // The maximum number of reactions to be returned; must be positive and can't be greater than 100 Limit int32 `json:"limit"` }
type GetMessageAvailableReactionsRequest ¶ added in v1.0.6
type GetMessageEmbeddingCodeRequest ¶
type GetMessageEmbeddingCodeRequest struct { // Identifier of the chat to which the message belongs ChatId int64 `json:"chat_id"` // Identifier of the message MessageId int64 `json:"message_id"` // Pass true to return an HTML code for embedding of the whole media album ForAlbum bool `json:"for_album"` }
type GetMessageFileTypeRequest ¶
type GetMessageFileTypeRequest struct { // Beginning of the message file; up to 100 first lines MessageFileHead string `json:"message_file_head"` }
type GetMessageImportConfirmationTextRequest ¶
type GetMessageImportConfirmationTextRequest struct { // Identifier of a chat to which the messages will be imported. It must be an identifier of a private chat with a mutual contact or an identifier of a supergroup chat with can_change_info administrator right ChatId int64 `json:"chat_id"` }
type GetMessageLinkInfoRequest ¶
type GetMessageLinkInfoRequest struct { // The message link Url string `json:"url"` }
type GetMessageLinkRequest ¶
type GetMessageLinkRequest struct { // Identifier of the chat to which the message belongs ChatId int64 `json:"chat_id"` // Identifier of the message MessageId int64 `json:"message_id"` // If not 0, timestamp from which the video/audio/video note/voice note playing must start, in seconds. The media can be in the message content or in its web page preview MediaTimestamp int32 `json:"media_timestamp"` // Pass true to create a link for the whole media album ForAlbum bool `json:"for_album"` // Pass true to create a link to the message as a channel post comment, in a message thread, or a forum topic InMessageThread bool `json:"in_message_thread"` }
type GetMessagePublicForwardsRequest ¶
type GetMessagePublicForwardsRequest struct { // Chat identifier of the message ChatId int64 `json:"chat_id"` // Message identifier MessageId int64 `json:"message_id"` // Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results Offset string `json:"offset"` // The maximum number of messages to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit Limit int32 `json:"limit"` }
type GetMessageRequest ¶
type GetMessageThreadHistoryRequest ¶
type GetMessageThreadHistoryRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Message identifier, which thread history needs to be returned MessageId int64 `json:"message_id"` // Identifier of the message starting from which history must be fetched; use 0 to get results from the last message FromMessageId int64 `json:"from_message_id"` // Specify 0 to get results from exactly the from_message_id or a negative offset up to 99 to get additionally some newer messages Offset int32 `json:"offset"` // The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit Limit int32 `json:"limit"` }
type GetMessageThreadRequest ¶
type GetMessagesRequest ¶
type GetNetworkStatisticsRequest ¶
type GetNetworkStatisticsRequest struct { // Pass true to get statistics only for the current library launch OnlyCurrent bool `json:"only_current"` }
type GetOptionRequest ¶
type GetOptionRequest struct { // The name of the option Name string `json:"name"` }
type GetPassportAuthorizationFormRequest ¶
type GetPassportAuthorizationFormRequest struct { // User identifier of the service's bot BotUserId int64 `json:"bot_user_id"` // Telegram Passport element types requested by the service Scope string `json:"scope"` // Service's public key PublicKey string `json:"public_key"` // Unique request identifier provided by the service Nonce string `json:"nonce"` }
type GetPassportElementRequest ¶
type GetPassportElementRequest struct { // Telegram Passport element type Type PassportElementType `json:"type"` // The 2-step verification password of the current user Password string `json:"password"` }
type GetPaymentFormRequest ¶
type GetPaymentFormRequest struct { // The invoice InputInvoice InputInvoice `json:"input_invoice"` // Preferred payment form theme; pass null to use the default theme Theme *ThemeParameters `json:"theme"` }
type GetPhoneNumberInfoRequest ¶
type GetPhoneNumberInfoRequest struct { // The phone number prefix PhoneNumberPrefix string `json:"phone_number_prefix"` }
type GetPollVotersRequest ¶
type GetPollVotersRequest struct { // Identifier of the chat to which the poll belongs ChatId int64 `json:"chat_id"` // Identifier of the message containing the poll MessageId int64 `json:"message_id"` // 0-based identifier of the answer option OptionId int32 `json:"option_id"` // Number of voters to skip in the result; must be non-negative Offset int32 `json:"offset"` // The maximum number of voters to be returned; must be positive and can't be greater than 50. For optimal performance, the number of returned voters is chosen by TDLib and can be smaller than the specified limit, even if the end of the voter list has not been reached Limit int32 `json:"limit"` }
type GetPreferredCountryLanguageRequest ¶
type GetPreferredCountryLanguageRequest struct { // A two-letter ISO 3166-1 alpha-2 country code CountryCode string `json:"country_code"` }
type GetPremiumFeaturesRequest ¶ added in v1.2.3
type GetPremiumFeaturesRequest struct { // Source of the request; pass null if the method is called from some non-standard source Source PremiumSource `json:"source"` }
type GetPremiumLimitRequest ¶ added in v1.2.3
type GetPremiumLimitRequest struct { // Type of the limit LimitType PremiumLimitType `json:"limit_type"` }
type GetPremiumStickersRequest ¶ added in v1.2.3
type GetPremiumStickersRequest struct { // The maximum number of stickers to be returned; 0-100 Limit int32 `json:"limit"` }
type GetProxyLinkRequest ¶
type GetProxyLinkRequest struct { // Proxy identifier ProxyId int32 `json:"proxy_id"` }
type GetPushReceiverIdRequest ¶
type GetPushReceiverIdRequest struct { // JSON-encoded push notification payload Payload string `json:"payload"` }
type GetRecentStickersRequest ¶
type GetRecentStickersRequest struct { // Pass true to return stickers and masks that were recently attached to photos or video files; pass false to return recently sent stickers IsAttached bool `json:"is_attached"` }
type GetRecentlyOpenedChatsRequest ¶
type GetRecentlyOpenedChatsRequest struct { // The maximum number of chats to be returned Limit int32 `json:"limit"` }
type GetRecentlyVisitedTMeUrlsRequest ¶
type GetRecentlyVisitedTMeUrlsRequest struct { // Google Play referrer to identify the user Referrer string `json:"referrer"` }
type GetRecoveryEmailAddressRequest ¶
type GetRecoveryEmailAddressRequest struct { // The 2-step verification password for the current user Password string `json:"password"` }
type GetRemoteFileRequest ¶
type GetSavedNotificationSoundRequest ¶ added in v1.0.6
type GetSavedNotificationSoundRequest struct { // Identifier of the notification sound NotificationSoundId JsonInt64 `json:"notification_sound_id"` }
type GetScopeNotificationSettingsRequest ¶
type GetScopeNotificationSettingsRequest struct { // Types of chats for which to return the notification settings information Scope NotificationSettingsScope `json:"scope"` }
type GetSecretChatRequest ¶
type GetSecretChatRequest struct { // Secret chat identifier SecretChatId int32 `json:"secret_chat_id"` }
type GetStickerEmojisRequest ¶
type GetStickerEmojisRequest struct { // Sticker file identifier Sticker InputFile `json:"sticker"` }
type GetStickerSetRequest ¶
type GetStickerSetRequest struct { // Identifier of the sticker set SetId JsonInt64 `json:"set_id"` }
type GetStickersRequest ¶
type GetStickersRequest struct { // Type of the stickers to return StickerType StickerType `json:"sticker_type"` // Search query; a space-separated list of emoji or a keyword prefix. If empty, returns all known installed stickers Query string `json:"query"` // The maximum number of stickers to be returned Limit int32 `json:"limit"` // Chat identifier for which to return stickers. Available custom emoji stickers may be different for different chats ChatId int64 `json:"chat_id"` }
type GetStorageStatisticsRequest ¶
type GetStorageStatisticsRequest struct { // The maximum number of chats with the largest storage usage for which separate statistics need to be returned. All other chats will be grouped in entries with chat_id == 0. If the chat info database is not used, the chat_limit is ignored and is always set to 0 ChatLimit int32 `json:"chat_limit"` }
type GetStoryAvailableReactionsRequest ¶ added in v1.2.3
type GetStoryAvailableReactionsRequest struct { // Number of reaction per row, 5-25 RowSize int32 `json:"row_size"` }
type GetStoryRequest ¶ added in v1.2.3
type GetStoryRequest struct { // Identifier of the chat that posted the story StorySenderChatId int64 `json:"story_sender_chat_id"` // Story identifier StoryId int32 `json:"story_id"` // Pass true to get only locally available information without sending network requests OnlyLocal bool `json:"only_local"` }
type GetStoryViewersRequest ¶ added in v1.2.3
type GetStoryViewersRequest struct { // Story identifier StoryId int32 `json:"story_id"` // Query to search for in names and usernames of the viewers; may be empty to get all relevant viewers Query string `json:"query"` // Pass true to get only contacts; pass false to get all relevant viewers OnlyContacts bool `json:"only_contacts"` // Pass true to get viewers with reaction first; pass false to get viewers sorted just by view_date PreferWithReaction bool `json:"prefer_with_reaction"` // Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results Offset string `json:"offset"` // The maximum number of story viewers to return Limit int32 `json:"limit"` }
type GetSuggestedStickerSetNameRequest ¶
type GetSuggestedStickerSetNameRequest struct { // Sticker set title; 1-64 characters Title string `json:"title"` }
type GetSupergroupFullInfoRequest ¶
type GetSupergroupFullInfoRequest struct { // Supergroup or channel identifier SupergroupId int64 `json:"supergroup_id"` }
type GetSupergroupMembersRequest ¶
type GetSupergroupMembersRequest struct { // Identifier of the supergroup or channel SupergroupId int64 `json:"supergroup_id"` // The type of users to return; pass null to use supergroupMembersFilterRecent Filter SupergroupMembersFilter `json:"filter"` // Number of users to skip Offset int32 `json:"offset"` // The maximum number of users be returned; up to 200 Limit int32 `json:"limit"` }
type GetSupergroupRequest ¶
type GetSupergroupRequest struct { // Supergroup or channel identifier SupergroupId int64 `json:"supergroup_id"` }
type GetTextEntitiesRequest ¶
type GetTextEntitiesRequest struct { // The text in which to look for entities Text string `json:"text"` }
type GetThemeParametersJsonStringRequest ¶ added in v1.0.6
type GetThemeParametersJsonStringRequest struct { // Theme parameters to convert to JSON Theme *ThemeParameters `json:"theme"` }
type GetTopChatsRequest ¶
type GetTopChatsRequest struct { // Category of chats to be returned Category TopChatCategory `json:"category"` // The maximum number of chats to be returned; up to 30 Limit int32 `json:"limit"` }
type GetTrendingStickerSetsRequest ¶
type GetTrendingStickerSetsRequest struct { // Type of the sticker sets to return StickerType StickerType `json:"sticker_type"` // The offset from which to return the sticker sets; must be non-negative Offset int32 `json:"offset"` // The maximum number of sticker sets to be returned; up to 100. For optimal performance, the number of returned sticker sets is chosen by TDLib and can be smaller than the specified limit, even if the end of the list has not been reached Limit int32 `json:"limit"` }
type GetUserFullInfoRequest ¶
type GetUserFullInfoRequest struct { // User identifier UserId int64 `json:"user_id"` }
type GetUserPrivacySettingRulesRequest ¶
type GetUserPrivacySettingRulesRequest struct { // The privacy setting Setting UserPrivacySetting `json:"setting"` }
type GetUserRequest ¶
type GetUserRequest struct { // User identifier UserId int64 `json:"user_id"` }
type GetUserSupportInfoRequest ¶ added in v1.2.3
type GetUserSupportInfoRequest struct { // User identifier UserId int64 `json:"user_id"` }
type GetVideoChatAvailableParticipantsRequest ¶
type GetVideoChatAvailableParticipantsRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type GetVideoChatRtmpUrlRequest ¶ added in v1.0.6
type GetVideoChatRtmpUrlRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type GetWebAppLinkUrlRequest ¶ added in v1.2.3
type GetWebAppLinkUrlRequest struct { // Identifier of the chat in which the link was clicked; pass 0 if none ChatId int64 `json:"chat_id"` // Identifier of the target bot BotUserId int64 `json:"bot_user_id"` // Short name of the Web App WebAppShortName string `json:"web_app_short_name"` // Start parameter from internalLinkTypeWebApp StartParameter string `json:"start_parameter"` // Preferred Web App theme; pass null to use the default theme Theme *ThemeParameters `json:"theme"` // Short name of the application; 0-64 English letters, digits, and underscores ApplicationName string `json:"application_name"` // Pass true if the current user allowed the bot to send them messages AllowWriteAccess bool `json:"allow_write_access"` }
type GetWebAppUrlRequest ¶ added in v1.0.6
type GetWebAppUrlRequest struct { // Identifier of the target bot BotUserId int64 `json:"bot_user_id"` // The URL from a keyboardButtonTypeWebApp button, inlineQueryResultsButtonTypeWebApp button, an internalLinkTypeSideMenuBot link, or an empty when the bot is opened from the side menu Url string `json:"url"` // Preferred Web App theme; pass null to use the default theme Theme *ThemeParameters `json:"theme"` // Short name of the application; 0-64 English letters, digits, and underscores ApplicationName string `json:"application_name"` }
type GetWebPagePreviewRequest ¶
type GetWebPagePreviewRequest struct { // Message text with formatting Text *FormattedText `json:"text"` }
type GroupCall ¶
type GroupCall struct { // Group call identifier Id int32 `json:"id"` // Group call title Title string `json:"title"` // Point in time (Unix timestamp) when the group call is supposed to be started by an administrator; 0 if it is already active or was ended ScheduledStartDate int32 `json:"scheduled_start_date"` // True, if the group call is scheduled and the current user will receive a notification when the group call will start EnabledStartNotification bool `json:"enabled_start_notification"` // True, if the call is active IsActive bool `json:"is_active"` // True, if the chat is an RTMP stream instead of an ordinary video chat IsRtmpStream bool `json:"is_rtmp_stream"` // True, if the call is joined IsJoined bool `json:"is_joined"` // True, if user was kicked from the call because of network loss and the call needs to be rejoined NeedRejoin bool `json:"need_rejoin"` // True, if the current user can manage the group call CanBeManaged bool `json:"can_be_managed"` // Number of participants in the group call ParticipantCount int32 `json:"participant_count"` // True, if group call participants, which are muted, aren't returned in participant list HasHiddenListeners bool `json:"has_hidden_listeners"` // True, if all group call participants are loaded LoadedAllParticipants bool `json:"loaded_all_participants"` // At most 3 recently speaking users in the group call RecentSpeakers []*GroupCallRecentSpeaker `json:"recent_speakers"` // True, if the current user's video is enabled IsMyVideoEnabled bool `json:"is_my_video_enabled"` // True, if the current user's video is paused IsMyVideoPaused bool `json:"is_my_video_paused"` // True, if the current user can broadcast video or share screen CanEnableVideo bool `json:"can_enable_video"` // True, if only group call administrators can unmute new participants MuteNewParticipants bool `json:"mute_new_participants"` // True, if the current user can enable or disable mute_new_participants setting CanToggleMuteNewParticipants bool `json:"can_toggle_mute_new_participants"` // Duration of the ongoing group call recording, in seconds; 0 if none. An updateGroupCall update is not triggered when value of this field changes, but the same recording goes on RecordDuration int32 `json:"record_duration"` // True, if a video file is being recorded for the call IsVideoRecorded bool `json:"is_video_recorded"` // Call duration, in seconds; for ended calls only Duration int32 `json:"duration"` // contains filtered or unexported fields }
Describes a group call
func UnmarshalGroupCall ¶
func UnmarshalGroupCall(data json.RawMessage) (*GroupCall, error)
func (*GroupCall) MarshalJSON ¶
type GroupCallId ¶
type GroupCallId struct { // Group call identifier Id int32 `json:"id"` // contains filtered or unexported fields }
Contains the group call identifier
func UnmarshalGroupCallId ¶
func UnmarshalGroupCallId(data json.RawMessage) (*GroupCallId, error)
func (*GroupCallId) GetClass ¶
func (*GroupCallId) GetClass() string
func (*GroupCallId) GetType ¶
func (*GroupCallId) GetType() string
func (*GroupCallId) MarshalJSON ¶
func (entity *GroupCallId) MarshalJSON() ([]byte, error)
type GroupCallParticipant ¶
type GroupCallParticipant struct { // Identifier of the group call participant ParticipantId MessageSender `json:"participant_id"` // User's audio channel synchronization source identifier AudioSourceId int32 `json:"audio_source_id"` // User's screen sharing audio channel synchronization source identifier ScreenSharingAudioSourceId int32 `json:"screen_sharing_audio_source_id"` // Information about user's video channel; may be null if there is no active video VideoInfo *GroupCallParticipantVideoInfo `json:"video_info"` // Information about user's screen sharing video channel; may be null if there is no active screen sharing video ScreenSharingVideoInfo *GroupCallParticipantVideoInfo `json:"screen_sharing_video_info"` // The participant user's bio or the participant chat's description Bio string `json:"bio"` // True, if the participant is the current user IsCurrentUser bool `json:"is_current_user"` // True, if the participant is speaking as set by setGroupCallParticipantIsSpeaking IsSpeaking bool `json:"is_speaking"` // True, if the participant hand is raised IsHandRaised bool `json:"is_hand_raised"` // True, if the current user can mute the participant for all other group call participants CanBeMutedForAllUsers bool `json:"can_be_muted_for_all_users"` // True, if the current user can allow the participant to unmute themselves or unmute the participant (if the participant is the current user) CanBeUnmutedForAllUsers bool `json:"can_be_unmuted_for_all_users"` // True, if the current user can mute the participant only for self CanBeMutedForCurrentUser bool `json:"can_be_muted_for_current_user"` // True, if the current user can unmute the participant for self CanBeUnmutedForCurrentUser bool `json:"can_be_unmuted_for_current_user"` // True, if the participant is muted for all users IsMutedForAllUsers bool `json:"is_muted_for_all_users"` // True, if the participant is muted for the current user IsMutedForCurrentUser bool `json:"is_muted_for_current_user"` // True, if the participant is muted for all users, but can unmute themselves CanUnmuteSelf bool `json:"can_unmute_self"` // Participant's volume level; 1-20000 in hundreds of percents VolumeLevel int32 `json:"volume_level"` // User's order in the group call participant list. Orders must be compared lexicographically. The bigger is order, the higher is user in the list. If order is empty, the user must be removed from the participant list Order string `json:"order"` // contains filtered or unexported fields }
Represents a group call participant
func UnmarshalGroupCallParticipant ¶
func UnmarshalGroupCallParticipant(data json.RawMessage) (*GroupCallParticipant, error)
func (*GroupCallParticipant) GetClass ¶
func (*GroupCallParticipant) GetClass() string
func (*GroupCallParticipant) GetType ¶
func (*GroupCallParticipant) GetType() string
func (*GroupCallParticipant) MarshalJSON ¶
func (entity *GroupCallParticipant) MarshalJSON() ([]byte, error)
func (*GroupCallParticipant) UnmarshalJSON ¶
func (groupCallParticipant *GroupCallParticipant) UnmarshalJSON(data []byte) error
type GroupCallParticipantVideoInfo ¶
type GroupCallParticipantVideoInfo struct { // List of synchronization source groups of the video SourceGroups []*GroupCallVideoSourceGroup `json:"source_groups"` // Video channel endpoint identifier EndpointId string `json:"endpoint_id"` // True, if the video is paused. This flag needs to be ignored, if new video frames are received IsPaused bool `json:"is_paused"` // contains filtered or unexported fields }
Contains information about a group call participant's video channel
func UnmarshalGroupCallParticipantVideoInfo ¶
func UnmarshalGroupCallParticipantVideoInfo(data json.RawMessage) (*GroupCallParticipantVideoInfo, error)
func (*GroupCallParticipantVideoInfo) GetClass ¶
func (*GroupCallParticipantVideoInfo) GetClass() string
func (*GroupCallParticipantVideoInfo) GetType ¶
func (*GroupCallParticipantVideoInfo) GetType() string
func (*GroupCallParticipantVideoInfo) MarshalJSON ¶
func (entity *GroupCallParticipantVideoInfo) MarshalJSON() ([]byte, error)
type GroupCallRecentSpeaker ¶
type GroupCallRecentSpeaker struct { // Group call participant identifier ParticipantId MessageSender `json:"participant_id"` // True, is the user has spoken recently IsSpeaking bool `json:"is_speaking"` // contains filtered or unexported fields }
Describes a recently speaking participant in a group call
func UnmarshalGroupCallRecentSpeaker ¶
func UnmarshalGroupCallRecentSpeaker(data json.RawMessage) (*GroupCallRecentSpeaker, error)
func (*GroupCallRecentSpeaker) GetClass ¶
func (*GroupCallRecentSpeaker) GetClass() string
func (*GroupCallRecentSpeaker) GetType ¶
func (*GroupCallRecentSpeaker) GetType() string
func (*GroupCallRecentSpeaker) MarshalJSON ¶
func (entity *GroupCallRecentSpeaker) MarshalJSON() ([]byte, error)
func (*GroupCallRecentSpeaker) UnmarshalJSON ¶
func (groupCallRecentSpeaker *GroupCallRecentSpeaker) UnmarshalJSON(data []byte) error
type GroupCallStream ¶ added in v1.0.6
type GroupCallStream struct { // Identifier of an audio/video channel ChannelId int32 `json:"channel_id"` // Scale of segment durations in the stream. The duration is 1000/(2**scale) milliseconds Scale int32 `json:"scale"` // Point in time when the stream currently ends; Unix timestamp in milliseconds TimeOffset int64 `json:"time_offset"` // contains filtered or unexported fields }
Describes an available stream in a group call
func UnmarshalGroupCallStream ¶ added in v1.0.6
func UnmarshalGroupCallStream(data json.RawMessage) (*GroupCallStream, error)
func (*GroupCallStream) GetClass ¶ added in v1.0.6
func (*GroupCallStream) GetClass() string
func (*GroupCallStream) GetType ¶ added in v1.0.6
func (*GroupCallStream) GetType() string
func (*GroupCallStream) MarshalJSON ¶ added in v1.0.6
func (entity *GroupCallStream) MarshalJSON() ([]byte, error)
type GroupCallStreams ¶ added in v1.0.6
type GroupCallStreams struct { // A list of group call streams Streams []*GroupCallStream `json:"streams"` // contains filtered or unexported fields }
Represents a list of group call streams
func UnmarshalGroupCallStreams ¶ added in v1.0.6
func UnmarshalGroupCallStreams(data json.RawMessage) (*GroupCallStreams, error)
func (*GroupCallStreams) GetClass ¶ added in v1.0.6
func (*GroupCallStreams) GetClass() string
func (*GroupCallStreams) GetType ¶ added in v1.0.6
func (*GroupCallStreams) GetType() string
func (*GroupCallStreams) MarshalJSON ¶ added in v1.0.6
func (entity *GroupCallStreams) MarshalJSON() ([]byte, error)
type GroupCallVideoQuality ¶
type GroupCallVideoQuality interface {
GroupCallVideoQualityType() string
}
Describes the quality of a group call video
func UnmarshalGroupCallVideoQuality ¶
func UnmarshalGroupCallVideoQuality(data json.RawMessage) (GroupCallVideoQuality, error)
func UnmarshalListOfGroupCallVideoQuality ¶
func UnmarshalListOfGroupCallVideoQuality(dataList []json.RawMessage) ([]GroupCallVideoQuality, error)
type GroupCallVideoQualityFull ¶
type GroupCallVideoQualityFull struct {
// contains filtered or unexported fields
}
The best available video quality
func UnmarshalGroupCallVideoQualityFull ¶
func UnmarshalGroupCallVideoQualityFull(data json.RawMessage) (*GroupCallVideoQualityFull, error)
func (*GroupCallVideoQualityFull) GetClass ¶
func (*GroupCallVideoQualityFull) GetClass() string
func (*GroupCallVideoQualityFull) GetType ¶
func (*GroupCallVideoQualityFull) GetType() string
func (*GroupCallVideoQualityFull) GroupCallVideoQualityType ¶
func (*GroupCallVideoQualityFull) GroupCallVideoQualityType() string
func (*GroupCallVideoQualityFull) MarshalJSON ¶
func (entity *GroupCallVideoQualityFull) MarshalJSON() ([]byte, error)
type GroupCallVideoQualityMedium ¶
type GroupCallVideoQualityMedium struct {
// contains filtered or unexported fields
}
The medium video quality
func UnmarshalGroupCallVideoQualityMedium ¶
func UnmarshalGroupCallVideoQualityMedium(data json.RawMessage) (*GroupCallVideoQualityMedium, error)
func (*GroupCallVideoQualityMedium) GetClass ¶
func (*GroupCallVideoQualityMedium) GetClass() string
func (*GroupCallVideoQualityMedium) GetType ¶
func (*GroupCallVideoQualityMedium) GetType() string
func (*GroupCallVideoQualityMedium) GroupCallVideoQualityType ¶
func (*GroupCallVideoQualityMedium) GroupCallVideoQualityType() string
func (*GroupCallVideoQualityMedium) MarshalJSON ¶
func (entity *GroupCallVideoQualityMedium) MarshalJSON() ([]byte, error)
type GroupCallVideoQualityThumbnail ¶
type GroupCallVideoQualityThumbnail struct {
// contains filtered or unexported fields
}
The worst available video quality
func UnmarshalGroupCallVideoQualityThumbnail ¶
func UnmarshalGroupCallVideoQualityThumbnail(data json.RawMessage) (*GroupCallVideoQualityThumbnail, error)
func (*GroupCallVideoQualityThumbnail) GetClass ¶
func (*GroupCallVideoQualityThumbnail) GetClass() string
func (*GroupCallVideoQualityThumbnail) GetType ¶
func (*GroupCallVideoQualityThumbnail) GetType() string
func (*GroupCallVideoQualityThumbnail) GroupCallVideoQualityType ¶
func (*GroupCallVideoQualityThumbnail) GroupCallVideoQualityType() string
func (*GroupCallVideoQualityThumbnail) MarshalJSON ¶
func (entity *GroupCallVideoQualityThumbnail) MarshalJSON() ([]byte, error)
type GroupCallVideoSourceGroup ¶
type GroupCallVideoSourceGroup struct { // The semantics of sources, one of "SIM" or "FID" Semantics string `json:"semantics"` // The list of synchronization source identifiers SourceIds []int32 `json:"source_ids"` // contains filtered or unexported fields }
Describes a group of video synchronization source identifiers
func UnmarshalGroupCallVideoSourceGroup ¶
func UnmarshalGroupCallVideoSourceGroup(data json.RawMessage) (*GroupCallVideoSourceGroup, error)
func (*GroupCallVideoSourceGroup) GetClass ¶
func (*GroupCallVideoSourceGroup) GetClass() string
func (*GroupCallVideoSourceGroup) GetType ¶
func (*GroupCallVideoSourceGroup) GetType() string
func (*GroupCallVideoSourceGroup) MarshalJSON ¶
func (entity *GroupCallVideoSourceGroup) MarshalJSON() ([]byte, error)
type Hashtags ¶
type Hashtags struct { string `json:"hashtags"` // contains filtered or unexported fields }Hashtags []
Contains a list of hashtags
func UnmarshalHashtags ¶
func UnmarshalHashtags(data json.RawMessage) (*Hashtags, error)
func (*Hashtags) MarshalJSON ¶
type HideSuggestedActionRequest ¶
type HideSuggestedActionRequest struct { // Suggested action to hide Action SuggestedAction `json:"action"` }
type HttpUrl ¶
type HttpUrl struct { // The URL Url string `json:"url"` // contains filtered or unexported fields }
Contains an HTTP URL
func UnmarshalHttpUrl ¶
func UnmarshalHttpUrl(data json.RawMessage) (*HttpUrl, error)
func (*HttpUrl) MarshalJSON ¶
type IdentityDocument ¶
type IdentityDocument struct { // Document number; 1-24 characters Number string `json:"number"` // Document expiration date; may be null if not applicable ExpirationDate *Date `json:"expiration_date"` // Front side of the document FrontSide *DatedFile `json:"front_side"` // Reverse side of the document; only for driver license and identity card; may be null ReverseSide *DatedFile `json:"reverse_side"` // Selfie with the document; may be null Selfie *DatedFile `json:"selfie"` // List of files containing a certified English translation of the document Translation []*DatedFile `json:"translation"` // contains filtered or unexported fields }
An identity document
func UnmarshalIdentityDocument ¶
func UnmarshalIdentityDocument(data json.RawMessage) (*IdentityDocument, error)
func (*IdentityDocument) GetClass ¶
func (*IdentityDocument) GetClass() string
func (*IdentityDocument) GetType ¶
func (*IdentityDocument) GetType() string
func (*IdentityDocument) MarshalJSON ¶
func (entity *IdentityDocument) MarshalJSON() ([]byte, error)
type ImportContactsRequest ¶
type ImportContactsRequest struct { // The list of contacts to import or edit; contacts' vCard are ignored and are not imported Contacts []*Contact `json:"contacts"` }
type ImportMessagesRequest ¶
type ImportMessagesRequest struct { // Identifier of a chat to which the messages will be imported. It must be an identifier of a private chat with a mutual contact or an identifier of a supergroup chat with can_change_info administrator right ChatId int64 `json:"chat_id"` // File with messages to import. Only inputFileLocal and inputFileGenerated are supported. The file must not be previously uploaded MessageFile InputFile `json:"message_file"` // Files used in the imported messages. Only inputFileLocal and inputFileGenerated are supported. The files must not be previously uploaded AttachedFiles []InputFile `json:"attached_files"` }
type ImportedContacts ¶
type ImportedContacts struct { // User identifiers of the imported contacts in the same order as they were specified in the request; 0 if the contact is not yet a registered user UserIds []int64 `json:"user_ids"` // The number of users that imported the corresponding contact; 0 for already registered users or if unavailable ImporterCount []int32 `json:"importer_count"` // contains filtered or unexported fields }
Represents the result of an importContacts request
func UnmarshalImportedContacts ¶
func UnmarshalImportedContacts(data json.RawMessage) (*ImportedContacts, error)
func (*ImportedContacts) GetClass ¶
func (*ImportedContacts) GetClass() string
func (*ImportedContacts) GetType ¶
func (*ImportedContacts) GetType() string
func (*ImportedContacts) MarshalJSON ¶
func (entity *ImportedContacts) MarshalJSON() ([]byte, error)
type InlineKeyboardButton ¶
type InlineKeyboardButton struct { // Text of the button Text string `json:"text"` // Type of the button Type InlineKeyboardButtonType `json:"type"` // contains filtered or unexported fields }
Represents a single button in an inline keyboard
func UnmarshalInlineKeyboardButton ¶
func UnmarshalInlineKeyboardButton(data json.RawMessage) (*InlineKeyboardButton, error)
func (*InlineKeyboardButton) GetClass ¶
func (*InlineKeyboardButton) GetClass() string
func (*InlineKeyboardButton) GetType ¶
func (*InlineKeyboardButton) GetType() string
func (*InlineKeyboardButton) MarshalJSON ¶
func (entity *InlineKeyboardButton) MarshalJSON() ([]byte, error)
func (*InlineKeyboardButton) UnmarshalJSON ¶
func (inlineKeyboardButton *InlineKeyboardButton) UnmarshalJSON(data []byte) error
type InlineKeyboardButtonType ¶
type InlineKeyboardButtonType interface {
InlineKeyboardButtonTypeType() string
}
Describes the type of an inline keyboard button
func UnmarshalInlineKeyboardButtonType ¶
func UnmarshalInlineKeyboardButtonType(data json.RawMessage) (InlineKeyboardButtonType, error)
func UnmarshalListOfInlineKeyboardButtonType ¶
func UnmarshalListOfInlineKeyboardButtonType(dataList []json.RawMessage) ([]InlineKeyboardButtonType, error)
type InlineKeyboardButtonTypeBuy ¶
type InlineKeyboardButtonTypeBuy struct {
// contains filtered or unexported fields
}
A button to buy something. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageInvoice
func UnmarshalInlineKeyboardButtonTypeBuy ¶
func UnmarshalInlineKeyboardButtonTypeBuy(data json.RawMessage) (*InlineKeyboardButtonTypeBuy, error)
func (*InlineKeyboardButtonTypeBuy) GetClass ¶
func (*InlineKeyboardButtonTypeBuy) GetClass() string
func (*InlineKeyboardButtonTypeBuy) GetType ¶
func (*InlineKeyboardButtonTypeBuy) GetType() string
func (*InlineKeyboardButtonTypeBuy) InlineKeyboardButtonTypeType ¶
func (*InlineKeyboardButtonTypeBuy) InlineKeyboardButtonTypeType() string
func (*InlineKeyboardButtonTypeBuy) MarshalJSON ¶
func (entity *InlineKeyboardButtonTypeBuy) MarshalJSON() ([]byte, error)
type InlineKeyboardButtonTypeCallback ¶
type InlineKeyboardButtonTypeCallback struct { // Data to be sent to the bot via a callback query Data []byte `json:"data"` // contains filtered or unexported fields }
A button that sends a callback query to a bot
func UnmarshalInlineKeyboardButtonTypeCallback ¶
func UnmarshalInlineKeyboardButtonTypeCallback(data json.RawMessage) (*InlineKeyboardButtonTypeCallback, error)
func (*InlineKeyboardButtonTypeCallback) GetClass ¶
func (*InlineKeyboardButtonTypeCallback) GetClass() string
func (*InlineKeyboardButtonTypeCallback) GetType ¶
func (*InlineKeyboardButtonTypeCallback) GetType() string
func (*InlineKeyboardButtonTypeCallback) InlineKeyboardButtonTypeType ¶
func (*InlineKeyboardButtonTypeCallback) InlineKeyboardButtonTypeType() string
func (*InlineKeyboardButtonTypeCallback) MarshalJSON ¶
func (entity *InlineKeyboardButtonTypeCallback) MarshalJSON() ([]byte, error)
type InlineKeyboardButtonTypeCallbackGame ¶
type InlineKeyboardButtonTypeCallbackGame struct {
// contains filtered or unexported fields
}
A button with a game that sends a callback query to a bot. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageGame
func UnmarshalInlineKeyboardButtonTypeCallbackGame ¶
func UnmarshalInlineKeyboardButtonTypeCallbackGame(data json.RawMessage) (*InlineKeyboardButtonTypeCallbackGame, error)
func (*InlineKeyboardButtonTypeCallbackGame) GetClass ¶
func (*InlineKeyboardButtonTypeCallbackGame) GetClass() string
func (*InlineKeyboardButtonTypeCallbackGame) GetType ¶
func (*InlineKeyboardButtonTypeCallbackGame) GetType() string
func (*InlineKeyboardButtonTypeCallbackGame) InlineKeyboardButtonTypeType ¶
func (*InlineKeyboardButtonTypeCallbackGame) InlineKeyboardButtonTypeType() string
func (*InlineKeyboardButtonTypeCallbackGame) MarshalJSON ¶
func (entity *InlineKeyboardButtonTypeCallbackGame) MarshalJSON() ([]byte, error)
type InlineKeyboardButtonTypeCallbackWithPassword ¶
type InlineKeyboardButtonTypeCallbackWithPassword struct { // Data to be sent to the bot via a callback query Data []byte `json:"data"` // contains filtered or unexported fields }
A button that asks for the 2-step verification password of the current user and then sends a callback query to a bot
func UnmarshalInlineKeyboardButtonTypeCallbackWithPassword ¶
func UnmarshalInlineKeyboardButtonTypeCallbackWithPassword(data json.RawMessage) (*InlineKeyboardButtonTypeCallbackWithPassword, error)
func (*InlineKeyboardButtonTypeCallbackWithPassword) GetClass ¶
func (*InlineKeyboardButtonTypeCallbackWithPassword) GetClass() string
func (*InlineKeyboardButtonTypeCallbackWithPassword) GetType ¶
func (*InlineKeyboardButtonTypeCallbackWithPassword) GetType() string
func (*InlineKeyboardButtonTypeCallbackWithPassword) InlineKeyboardButtonTypeType ¶
func (*InlineKeyboardButtonTypeCallbackWithPassword) InlineKeyboardButtonTypeType() string
func (*InlineKeyboardButtonTypeCallbackWithPassword) MarshalJSON ¶
func (entity *InlineKeyboardButtonTypeCallbackWithPassword) MarshalJSON() ([]byte, error)
type InlineKeyboardButtonTypeLoginUrl ¶
type InlineKeyboardButtonTypeLoginUrl struct { // An HTTP URL to pass to getLoginUrlInfo Url string `json:"url"` // Unique button identifier Id int64 `json:"id"` // If non-empty, new text of the button in forwarded messages ForwardText string `json:"forward_text"` // contains filtered or unexported fields }
A button that opens a specified URL and automatically authorize the current user by calling getLoginUrlInfo
func UnmarshalInlineKeyboardButtonTypeLoginUrl ¶
func UnmarshalInlineKeyboardButtonTypeLoginUrl(data json.RawMessage) (*InlineKeyboardButtonTypeLoginUrl, error)
func (*InlineKeyboardButtonTypeLoginUrl) GetClass ¶
func (*InlineKeyboardButtonTypeLoginUrl) GetClass() string
func (*InlineKeyboardButtonTypeLoginUrl) GetType ¶
func (*InlineKeyboardButtonTypeLoginUrl) GetType() string
func (*InlineKeyboardButtonTypeLoginUrl) InlineKeyboardButtonTypeType ¶
func (*InlineKeyboardButtonTypeLoginUrl) InlineKeyboardButtonTypeType() string
func (*InlineKeyboardButtonTypeLoginUrl) MarshalJSON ¶
func (entity *InlineKeyboardButtonTypeLoginUrl) MarshalJSON() ([]byte, error)
type InlineKeyboardButtonTypeSwitchInline ¶
type InlineKeyboardButtonTypeSwitchInline struct { // Inline query to be sent to the bot Query string `json:"query"` // Target chat from which to send the inline query TargetChat TargetChat `json:"target_chat"` // contains filtered or unexported fields }
A button that forces an inline query to the bot to be inserted in the input field
func UnmarshalInlineKeyboardButtonTypeSwitchInline ¶
func UnmarshalInlineKeyboardButtonTypeSwitchInline(data json.RawMessage) (*InlineKeyboardButtonTypeSwitchInline, error)
func (*InlineKeyboardButtonTypeSwitchInline) GetClass ¶
func (*InlineKeyboardButtonTypeSwitchInline) GetClass() string
func (*InlineKeyboardButtonTypeSwitchInline) GetType ¶
func (*InlineKeyboardButtonTypeSwitchInline) GetType() string
func (*InlineKeyboardButtonTypeSwitchInline) InlineKeyboardButtonTypeType ¶
func (*InlineKeyboardButtonTypeSwitchInline) InlineKeyboardButtonTypeType() string
func (*InlineKeyboardButtonTypeSwitchInline) MarshalJSON ¶
func (entity *InlineKeyboardButtonTypeSwitchInline) MarshalJSON() ([]byte, error)
func (*InlineKeyboardButtonTypeSwitchInline) UnmarshalJSON ¶ added in v1.2.3
func (inlineKeyboardButtonTypeSwitchInline *InlineKeyboardButtonTypeSwitchInline) UnmarshalJSON(data []byte) error
type InlineKeyboardButtonTypeUrl ¶
type InlineKeyboardButtonTypeUrl struct { // HTTP or tg:// URL to open Url string `json:"url"` // contains filtered or unexported fields }
A button that opens a specified URL
func UnmarshalInlineKeyboardButtonTypeUrl ¶
func UnmarshalInlineKeyboardButtonTypeUrl(data json.RawMessage) (*InlineKeyboardButtonTypeUrl, error)
func (*InlineKeyboardButtonTypeUrl) GetClass ¶
func (*InlineKeyboardButtonTypeUrl) GetClass() string
func (*InlineKeyboardButtonTypeUrl) GetType ¶
func (*InlineKeyboardButtonTypeUrl) GetType() string
func (*InlineKeyboardButtonTypeUrl) InlineKeyboardButtonTypeType ¶
func (*InlineKeyboardButtonTypeUrl) InlineKeyboardButtonTypeType() string
func (*InlineKeyboardButtonTypeUrl) MarshalJSON ¶
func (entity *InlineKeyboardButtonTypeUrl) MarshalJSON() ([]byte, error)
type InlineKeyboardButtonTypeUser ¶
type InlineKeyboardButtonTypeUser struct { // User identifier UserId int64 `json:"user_id"` // contains filtered or unexported fields }
A button with a user reference to be handled in the same way as textEntityTypeMentionName entities
func UnmarshalInlineKeyboardButtonTypeUser ¶
func UnmarshalInlineKeyboardButtonTypeUser(data json.RawMessage) (*InlineKeyboardButtonTypeUser, error)
func (*InlineKeyboardButtonTypeUser) GetClass ¶
func (*InlineKeyboardButtonTypeUser) GetClass() string
func (*InlineKeyboardButtonTypeUser) GetType ¶
func (*InlineKeyboardButtonTypeUser) GetType() string
func (*InlineKeyboardButtonTypeUser) InlineKeyboardButtonTypeType ¶
func (*InlineKeyboardButtonTypeUser) InlineKeyboardButtonTypeType() string
func (*InlineKeyboardButtonTypeUser) MarshalJSON ¶
func (entity *InlineKeyboardButtonTypeUser) MarshalJSON() ([]byte, error)
type InlineKeyboardButtonTypeWebApp ¶ added in v1.0.6
type InlineKeyboardButtonTypeWebApp struct { // An HTTP URL to pass to openWebApp Url string `json:"url"` // contains filtered or unexported fields }
A button that opens a Web App by calling openWebApp
func UnmarshalInlineKeyboardButtonTypeWebApp ¶ added in v1.0.6
func UnmarshalInlineKeyboardButtonTypeWebApp(data json.RawMessage) (*InlineKeyboardButtonTypeWebApp, error)
func (*InlineKeyboardButtonTypeWebApp) GetClass ¶ added in v1.0.6
func (*InlineKeyboardButtonTypeWebApp) GetClass() string
func (*InlineKeyboardButtonTypeWebApp) GetType ¶ added in v1.0.6
func (*InlineKeyboardButtonTypeWebApp) GetType() string
func (*InlineKeyboardButtonTypeWebApp) InlineKeyboardButtonTypeType ¶ added in v1.0.6
func (*InlineKeyboardButtonTypeWebApp) InlineKeyboardButtonTypeType() string
func (*InlineKeyboardButtonTypeWebApp) MarshalJSON ¶ added in v1.0.6
func (entity *InlineKeyboardButtonTypeWebApp) MarshalJSON() ([]byte, error)
type InlineQueryResult ¶
type InlineQueryResult interface {
InlineQueryResultType() string
}
Represents a single result of an inline query
func UnmarshalInlineQueryResult ¶
func UnmarshalInlineQueryResult(data json.RawMessage) (InlineQueryResult, error)
func UnmarshalListOfInlineQueryResult ¶
func UnmarshalListOfInlineQueryResult(dataList []json.RawMessage) ([]InlineQueryResult, error)
type InlineQueryResultAnimation ¶
type InlineQueryResultAnimation struct { // Unique identifier of the query result Id string `json:"id"` // Animation file Animation *Animation `json:"animation"` // Animation title Title string `json:"title"` // contains filtered or unexported fields }
Represents an animation file
func UnmarshalInlineQueryResultAnimation ¶
func UnmarshalInlineQueryResultAnimation(data json.RawMessage) (*InlineQueryResultAnimation, error)
func (*InlineQueryResultAnimation) GetClass ¶
func (*InlineQueryResultAnimation) GetClass() string
func (*InlineQueryResultAnimation) GetType ¶
func (*InlineQueryResultAnimation) GetType() string
func (*InlineQueryResultAnimation) InlineQueryResultType ¶
func (*InlineQueryResultAnimation) InlineQueryResultType() string
func (*InlineQueryResultAnimation) MarshalJSON ¶
func (entity *InlineQueryResultAnimation) MarshalJSON() ([]byte, error)
type InlineQueryResultArticle ¶
type InlineQueryResultArticle struct { // Unique identifier of the query result Id string `json:"id"` // URL of the result, if it exists Url string `json:"url"` // True, if the URL must be not shown HideUrl bool `json:"hide_url"` // Title of the result Title string `json:"title"` // A short description of the result Description string `json:"description"` // Result thumbnail in JPEG format; may be null Thumbnail *Thumbnail `json:"thumbnail"` // contains filtered or unexported fields }
Represents a link to an article or web page
func UnmarshalInlineQueryResultArticle ¶
func UnmarshalInlineQueryResultArticle(data json.RawMessage) (*InlineQueryResultArticle, error)
func (*InlineQueryResultArticle) GetClass ¶
func (*InlineQueryResultArticle) GetClass() string
func (*InlineQueryResultArticle) GetType ¶
func (*InlineQueryResultArticle) GetType() string
func (*InlineQueryResultArticle) InlineQueryResultType ¶
func (*InlineQueryResultArticle) InlineQueryResultType() string
func (*InlineQueryResultArticle) MarshalJSON ¶
func (entity *InlineQueryResultArticle) MarshalJSON() ([]byte, error)
type InlineQueryResultAudio ¶
type InlineQueryResultAudio struct { // Unique identifier of the query result Id string `json:"id"` // Audio file Audio *Audio `json:"audio"` // contains filtered or unexported fields }
Represents an audio file
func UnmarshalInlineQueryResultAudio ¶
func UnmarshalInlineQueryResultAudio(data json.RawMessage) (*InlineQueryResultAudio, error)
func (*InlineQueryResultAudio) GetClass ¶
func (*InlineQueryResultAudio) GetClass() string
func (*InlineQueryResultAudio) GetType ¶
func (*InlineQueryResultAudio) GetType() string
func (*InlineQueryResultAudio) InlineQueryResultType ¶
func (*InlineQueryResultAudio) InlineQueryResultType() string
func (*InlineQueryResultAudio) MarshalJSON ¶
func (entity *InlineQueryResultAudio) MarshalJSON() ([]byte, error)
type InlineQueryResultContact ¶
type InlineQueryResultContact struct { // Unique identifier of the query result Id string `json:"id"` // A user contact Contact *Contact `json:"contact"` // Result thumbnail in JPEG format; may be null Thumbnail *Thumbnail `json:"thumbnail"` // contains filtered or unexported fields }
Represents a user contact
func UnmarshalInlineQueryResultContact ¶
func UnmarshalInlineQueryResultContact(data json.RawMessage) (*InlineQueryResultContact, error)
func (*InlineQueryResultContact) GetClass ¶
func (*InlineQueryResultContact) GetClass() string
func (*InlineQueryResultContact) GetType ¶
func (*InlineQueryResultContact) GetType() string
func (*InlineQueryResultContact) InlineQueryResultType ¶
func (*InlineQueryResultContact) InlineQueryResultType() string
func (*InlineQueryResultContact) MarshalJSON ¶
func (entity *InlineQueryResultContact) MarshalJSON() ([]byte, error)
type InlineQueryResultDocument ¶
type InlineQueryResultDocument struct { // Unique identifier of the query result Id string `json:"id"` // Document Document *Document `json:"document"` // Document title Title string `json:"title"` // Document description Description string `json:"description"` // contains filtered or unexported fields }
Represents a document
func UnmarshalInlineQueryResultDocument ¶
func UnmarshalInlineQueryResultDocument(data json.RawMessage) (*InlineQueryResultDocument, error)
func (*InlineQueryResultDocument) GetClass ¶
func (*InlineQueryResultDocument) GetClass() string
func (*InlineQueryResultDocument) GetType ¶
func (*InlineQueryResultDocument) GetType() string
func (*InlineQueryResultDocument) InlineQueryResultType ¶
func (*InlineQueryResultDocument) InlineQueryResultType() string
func (*InlineQueryResultDocument) MarshalJSON ¶
func (entity *InlineQueryResultDocument) MarshalJSON() ([]byte, error)
type InlineQueryResultGame ¶
type InlineQueryResultGame struct { // Unique identifier of the query result Id string `json:"id"` // Game result Game *Game `json:"game"` // contains filtered or unexported fields }
Represents information about a game
func UnmarshalInlineQueryResultGame ¶
func UnmarshalInlineQueryResultGame(data json.RawMessage) (*InlineQueryResultGame, error)
func (*InlineQueryResultGame) GetClass ¶
func (*InlineQueryResultGame) GetClass() string
func (*InlineQueryResultGame) GetType ¶
func (*InlineQueryResultGame) GetType() string
func (*InlineQueryResultGame) InlineQueryResultType ¶
func (*InlineQueryResultGame) InlineQueryResultType() string
func (*InlineQueryResultGame) MarshalJSON ¶
func (entity *InlineQueryResultGame) MarshalJSON() ([]byte, error)
type InlineQueryResultLocation ¶
type InlineQueryResultLocation struct { // Unique identifier of the query result Id string `json:"id"` // Location result Location *Location `json:"location"` // Title of the result Title string `json:"title"` // Result thumbnail in JPEG format; may be null Thumbnail *Thumbnail `json:"thumbnail"` // contains filtered or unexported fields }
Represents a point on the map
func UnmarshalInlineQueryResultLocation ¶
func UnmarshalInlineQueryResultLocation(data json.RawMessage) (*InlineQueryResultLocation, error)
func (*InlineQueryResultLocation) GetClass ¶
func (*InlineQueryResultLocation) GetClass() string
func (*InlineQueryResultLocation) GetType ¶
func (*InlineQueryResultLocation) GetType() string
func (*InlineQueryResultLocation) InlineQueryResultType ¶
func (*InlineQueryResultLocation) InlineQueryResultType() string
func (*InlineQueryResultLocation) MarshalJSON ¶
func (entity *InlineQueryResultLocation) MarshalJSON() ([]byte, error)
type InlineQueryResultPhoto ¶
type InlineQueryResultPhoto struct { // Unique identifier of the query result Id string `json:"id"` // Photo Photo *Photo `json:"photo"` // Title of the result, if known Title string `json:"title"` // A short description of the result, if known Description string `json:"description"` // contains filtered or unexported fields }
Represents a photo
func UnmarshalInlineQueryResultPhoto ¶
func UnmarshalInlineQueryResultPhoto(data json.RawMessage) (*InlineQueryResultPhoto, error)
func (*InlineQueryResultPhoto) GetClass ¶
func (*InlineQueryResultPhoto) GetClass() string
func (*InlineQueryResultPhoto) GetType ¶
func (*InlineQueryResultPhoto) GetType() string
func (*InlineQueryResultPhoto) InlineQueryResultType ¶
func (*InlineQueryResultPhoto) InlineQueryResultType() string
func (*InlineQueryResultPhoto) MarshalJSON ¶
func (entity *InlineQueryResultPhoto) MarshalJSON() ([]byte, error)
type InlineQueryResultSticker ¶
type InlineQueryResultSticker struct { // Unique identifier of the query result Id string `json:"id"` // Sticker Sticker *Sticker `json:"sticker"` // contains filtered or unexported fields }
Represents a sticker
func UnmarshalInlineQueryResultSticker ¶
func UnmarshalInlineQueryResultSticker(data json.RawMessage) (*InlineQueryResultSticker, error)
func (*InlineQueryResultSticker) GetClass ¶
func (*InlineQueryResultSticker) GetClass() string
func (*InlineQueryResultSticker) GetType ¶
func (*InlineQueryResultSticker) GetType() string
func (*InlineQueryResultSticker) InlineQueryResultType ¶
func (*InlineQueryResultSticker) InlineQueryResultType() string
func (*InlineQueryResultSticker) MarshalJSON ¶
func (entity *InlineQueryResultSticker) MarshalJSON() ([]byte, error)
type InlineQueryResultVenue ¶
type InlineQueryResultVenue struct { // Unique identifier of the query result Id string `json:"id"` // Venue result Venue *Venue `json:"venue"` // Result thumbnail in JPEG format; may be null Thumbnail *Thumbnail `json:"thumbnail"` // contains filtered or unexported fields }
Represents information about a venue
func UnmarshalInlineQueryResultVenue ¶
func UnmarshalInlineQueryResultVenue(data json.RawMessage) (*InlineQueryResultVenue, error)
func (*InlineQueryResultVenue) GetClass ¶
func (*InlineQueryResultVenue) GetClass() string
func (*InlineQueryResultVenue) GetType ¶
func (*InlineQueryResultVenue) GetType() string
func (*InlineQueryResultVenue) InlineQueryResultType ¶
func (*InlineQueryResultVenue) InlineQueryResultType() string
func (*InlineQueryResultVenue) MarshalJSON ¶
func (entity *InlineQueryResultVenue) MarshalJSON() ([]byte, error)
type InlineQueryResultVideo ¶
type InlineQueryResultVideo struct { // Unique identifier of the query result Id string `json:"id"` // Video Video *Video `json:"video"` // Title of the video Title string `json:"title"` // Description of the video Description string `json:"description"` // contains filtered or unexported fields }
Represents a video
func UnmarshalInlineQueryResultVideo ¶
func UnmarshalInlineQueryResultVideo(data json.RawMessage) (*InlineQueryResultVideo, error)
func (*InlineQueryResultVideo) GetClass ¶
func (*InlineQueryResultVideo) GetClass() string
func (*InlineQueryResultVideo) GetType ¶
func (*InlineQueryResultVideo) GetType() string
func (*InlineQueryResultVideo) InlineQueryResultType ¶
func (*InlineQueryResultVideo) InlineQueryResultType() string
func (*InlineQueryResultVideo) MarshalJSON ¶
func (entity *InlineQueryResultVideo) MarshalJSON() ([]byte, error)
type InlineQueryResultVoiceNote ¶
type InlineQueryResultVoiceNote struct { // Unique identifier of the query result Id string `json:"id"` // Voice note VoiceNote *VoiceNote `json:"voice_note"` // Title of the voice note Title string `json:"title"` // contains filtered or unexported fields }
Represents a voice note
func UnmarshalInlineQueryResultVoiceNote ¶
func UnmarshalInlineQueryResultVoiceNote(data json.RawMessage) (*InlineQueryResultVoiceNote, error)
func (*InlineQueryResultVoiceNote) GetClass ¶
func (*InlineQueryResultVoiceNote) GetClass() string
func (*InlineQueryResultVoiceNote) GetType ¶
func (*InlineQueryResultVoiceNote) GetType() string
func (*InlineQueryResultVoiceNote) InlineQueryResultType ¶
func (*InlineQueryResultVoiceNote) InlineQueryResultType() string
func (*InlineQueryResultVoiceNote) MarshalJSON ¶
func (entity *InlineQueryResultVoiceNote) MarshalJSON() ([]byte, error)
type InlineQueryResults ¶
type InlineQueryResults struct { // Unique identifier of the inline query InlineQueryId JsonInt64 `json:"inline_query_id"` // Button to be shown above inline query results; may be null Button *InlineQueryResultsButton `json:"button"` // Results of the query Results []InlineQueryResult `json:"results"` // The offset for the next request. If empty, there are no more results NextOffset string `json:"next_offset"` // contains filtered or unexported fields }
Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query
func UnmarshalInlineQueryResults ¶
func UnmarshalInlineQueryResults(data json.RawMessage) (*InlineQueryResults, error)
func (*InlineQueryResults) GetClass ¶
func (*InlineQueryResults) GetClass() string
func (*InlineQueryResults) GetType ¶
func (*InlineQueryResults) GetType() string
func (*InlineQueryResults) MarshalJSON ¶
func (entity *InlineQueryResults) MarshalJSON() ([]byte, error)
func (*InlineQueryResults) UnmarshalJSON ¶
func (inlineQueryResults *InlineQueryResults) UnmarshalJSON(data []byte) error
type InlineQueryResultsButton ¶ added in v1.2.3
type InlineQueryResultsButton struct { // The text of the button Text string `json:"text"` // Type of the button Type InlineQueryResultsButtonType `json:"type"` // contains filtered or unexported fields }
Represents a button to be shown above inline query results
func UnmarshalInlineQueryResultsButton ¶ added in v1.2.3
func UnmarshalInlineQueryResultsButton(data json.RawMessage) (*InlineQueryResultsButton, error)
func (*InlineQueryResultsButton) GetClass ¶ added in v1.2.3
func (*InlineQueryResultsButton) GetClass() string
func (*InlineQueryResultsButton) GetType ¶ added in v1.2.3
func (*InlineQueryResultsButton) GetType() string
func (*InlineQueryResultsButton) MarshalJSON ¶ added in v1.2.3
func (entity *InlineQueryResultsButton) MarshalJSON() ([]byte, error)
func (*InlineQueryResultsButton) UnmarshalJSON ¶ added in v1.2.3
func (inlineQueryResultsButton *InlineQueryResultsButton) UnmarshalJSON(data []byte) error
type InlineQueryResultsButtonType ¶ added in v1.2.3
type InlineQueryResultsButtonType interface {
InlineQueryResultsButtonTypeType() string
}
Represents a type of a button in results of inline query
func UnmarshalInlineQueryResultsButtonType ¶ added in v1.2.3
func UnmarshalInlineQueryResultsButtonType(data json.RawMessage) (InlineQueryResultsButtonType, error)
func UnmarshalListOfInlineQueryResultsButtonType ¶ added in v1.2.3
func UnmarshalListOfInlineQueryResultsButtonType(dataList []json.RawMessage) ([]InlineQueryResultsButtonType, error)
type InlineQueryResultsButtonTypeStartBot ¶ added in v1.2.3
type InlineQueryResultsButtonTypeStartBot struct { // The parameter for the bot start message Parameter string `json:"parameter"` // contains filtered or unexported fields }
Describes the button that opens a private chat with the bot and sends a start message to the bot with the given parameter
func UnmarshalInlineQueryResultsButtonTypeStartBot ¶ added in v1.2.3
func UnmarshalInlineQueryResultsButtonTypeStartBot(data json.RawMessage) (*InlineQueryResultsButtonTypeStartBot, error)
func (*InlineQueryResultsButtonTypeStartBot) GetClass ¶ added in v1.2.3
func (*InlineQueryResultsButtonTypeStartBot) GetClass() string
func (*InlineQueryResultsButtonTypeStartBot) GetType ¶ added in v1.2.3
func (*InlineQueryResultsButtonTypeStartBot) GetType() string
func (*InlineQueryResultsButtonTypeStartBot) InlineQueryResultsButtonTypeType ¶ added in v1.2.3
func (*InlineQueryResultsButtonTypeStartBot) InlineQueryResultsButtonTypeType() string
func (*InlineQueryResultsButtonTypeStartBot) MarshalJSON ¶ added in v1.2.3
func (entity *InlineQueryResultsButtonTypeStartBot) MarshalJSON() ([]byte, error)
type InlineQueryResultsButtonTypeWebApp ¶ added in v1.2.3
type InlineQueryResultsButtonTypeWebApp struct { // An HTTP URL to pass to getWebAppUrl Url string `json:"url"` // contains filtered or unexported fields }
Describes the button that opens a Web App by calling getWebAppUrl
func UnmarshalInlineQueryResultsButtonTypeWebApp ¶ added in v1.2.3
func UnmarshalInlineQueryResultsButtonTypeWebApp(data json.RawMessage) (*InlineQueryResultsButtonTypeWebApp, error)
func (*InlineQueryResultsButtonTypeWebApp) GetClass ¶ added in v1.2.3
func (*InlineQueryResultsButtonTypeWebApp) GetClass() string
func (*InlineQueryResultsButtonTypeWebApp) GetType ¶ added in v1.2.3
func (*InlineQueryResultsButtonTypeWebApp) GetType() string
func (*InlineQueryResultsButtonTypeWebApp) InlineQueryResultsButtonTypeType ¶ added in v1.2.3
func (*InlineQueryResultsButtonTypeWebApp) InlineQueryResultsButtonTypeType() string
func (*InlineQueryResultsButtonTypeWebApp) MarshalJSON ¶ added in v1.2.3
func (entity *InlineQueryResultsButtonTypeWebApp) MarshalJSON() ([]byte, error)
type InputBackground ¶
type InputBackground interface {
InputBackgroundType() string
}
Contains information about background to set
func UnmarshalInputBackground ¶
func UnmarshalInputBackground(data json.RawMessage) (InputBackground, error)
func UnmarshalListOfInputBackground ¶
func UnmarshalListOfInputBackground(dataList []json.RawMessage) ([]InputBackground, error)
type InputBackgroundLocal ¶
type InputBackgroundLocal struct { // Background file to use. Only inputFileLocal and inputFileGenerated are supported. The file must be in JPEG format for wallpapers and in PNG format for patterns Background InputFile `json:"background"` // contains filtered or unexported fields }
A background from a local file
func UnmarshalInputBackgroundLocal ¶
func UnmarshalInputBackgroundLocal(data json.RawMessage) (*InputBackgroundLocal, error)
func (*InputBackgroundLocal) GetClass ¶
func (*InputBackgroundLocal) GetClass() string
func (*InputBackgroundLocal) GetType ¶
func (*InputBackgroundLocal) GetType() string
func (*InputBackgroundLocal) InputBackgroundType ¶
func (*InputBackgroundLocal) InputBackgroundType() string
func (*InputBackgroundLocal) MarshalJSON ¶
func (entity *InputBackgroundLocal) MarshalJSON() ([]byte, error)
func (*InputBackgroundLocal) UnmarshalJSON ¶
func (inputBackgroundLocal *InputBackgroundLocal) UnmarshalJSON(data []byte) error
type InputBackgroundPrevious ¶ added in v1.2.3
type InputBackgroundPrevious struct { // Identifier of the message with the background MessageId int64 `json:"message_id"` // contains filtered or unexported fields }
A background previously set in the chat; for chat backgrounds only
func UnmarshalInputBackgroundPrevious ¶ added in v1.2.3
func UnmarshalInputBackgroundPrevious(data json.RawMessage) (*InputBackgroundPrevious, error)
func (*InputBackgroundPrevious) GetClass ¶ added in v1.2.3
func (*InputBackgroundPrevious) GetClass() string
func (*InputBackgroundPrevious) GetType ¶ added in v1.2.3
func (*InputBackgroundPrevious) GetType() string
func (*InputBackgroundPrevious) InputBackgroundType ¶ added in v1.2.3
func (*InputBackgroundPrevious) InputBackgroundType() string
func (*InputBackgroundPrevious) MarshalJSON ¶ added in v1.2.3
func (entity *InputBackgroundPrevious) MarshalJSON() ([]byte, error)
type InputBackgroundRemote ¶
type InputBackgroundRemote struct { // The background identifier BackgroundId JsonInt64 `json:"background_id"` // contains filtered or unexported fields }
A background from the server
func UnmarshalInputBackgroundRemote ¶
func UnmarshalInputBackgroundRemote(data json.RawMessage) (*InputBackgroundRemote, error)
func (*InputBackgroundRemote) GetClass ¶
func (*InputBackgroundRemote) GetClass() string
func (*InputBackgroundRemote) GetType ¶
func (*InputBackgroundRemote) GetType() string
func (*InputBackgroundRemote) InputBackgroundType ¶
func (*InputBackgroundRemote) InputBackgroundType() string
func (*InputBackgroundRemote) MarshalJSON ¶
func (entity *InputBackgroundRemote) MarshalJSON() ([]byte, error)
type InputChatPhoto ¶
type InputChatPhoto interface {
InputChatPhotoType() string
}
Describes a photo to be set as a user profile or chat photo
func UnmarshalInputChatPhoto ¶
func UnmarshalInputChatPhoto(data json.RawMessage) (InputChatPhoto, error)
func UnmarshalListOfInputChatPhoto ¶
func UnmarshalListOfInputChatPhoto(dataList []json.RawMessage) ([]InputChatPhoto, error)
type InputChatPhotoAnimation ¶
type InputChatPhotoAnimation struct { // Animation to be set as profile photo. Only inputFileLocal and inputFileGenerated are allowed Animation InputFile `json:"animation"` // Timestamp of the frame, which will be used as static chat photo MainFrameTimestamp float64 `json:"main_frame_timestamp"` // contains filtered or unexported fields }
An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 1280 and be at most 2MB in size
func UnmarshalInputChatPhotoAnimation ¶
func UnmarshalInputChatPhotoAnimation(data json.RawMessage) (*InputChatPhotoAnimation, error)
func (*InputChatPhotoAnimation) GetClass ¶
func (*InputChatPhotoAnimation) GetClass() string
func (*InputChatPhotoAnimation) GetType ¶
func (*InputChatPhotoAnimation) GetType() string
func (*InputChatPhotoAnimation) InputChatPhotoType ¶
func (*InputChatPhotoAnimation) InputChatPhotoType() string
func (*InputChatPhotoAnimation) MarshalJSON ¶
func (entity *InputChatPhotoAnimation) MarshalJSON() ([]byte, error)
func (*InputChatPhotoAnimation) UnmarshalJSON ¶
func (inputChatPhotoAnimation *InputChatPhotoAnimation) UnmarshalJSON(data []byte) error
type InputChatPhotoPrevious ¶
type InputChatPhotoPrevious struct { // Identifier of the current user's profile photo to reuse ChatPhotoId JsonInt64 `json:"chat_photo_id"` // contains filtered or unexported fields }
A previously used profile photo of the current user
func UnmarshalInputChatPhotoPrevious ¶
func UnmarshalInputChatPhotoPrevious(data json.RawMessage) (*InputChatPhotoPrevious, error)
func (*InputChatPhotoPrevious) GetClass ¶
func (*InputChatPhotoPrevious) GetClass() string
func (*InputChatPhotoPrevious) GetType ¶
func (*InputChatPhotoPrevious) GetType() string
func (*InputChatPhotoPrevious) InputChatPhotoType ¶
func (*InputChatPhotoPrevious) InputChatPhotoType() string
func (*InputChatPhotoPrevious) MarshalJSON ¶
func (entity *InputChatPhotoPrevious) MarshalJSON() ([]byte, error)
type InputChatPhotoStatic ¶
type InputChatPhotoStatic struct { // Photo to be set as profile photo. Only inputFileLocal and inputFileGenerated are allowed Photo InputFile `json:"photo"` // contains filtered or unexported fields }
A static photo in JPEG format
func UnmarshalInputChatPhotoStatic ¶
func UnmarshalInputChatPhotoStatic(data json.RawMessage) (*InputChatPhotoStatic, error)
func (*InputChatPhotoStatic) GetClass ¶
func (*InputChatPhotoStatic) GetClass() string
func (*InputChatPhotoStatic) GetType ¶
func (*InputChatPhotoStatic) GetType() string
func (*InputChatPhotoStatic) InputChatPhotoType ¶
func (*InputChatPhotoStatic) InputChatPhotoType() string
func (*InputChatPhotoStatic) MarshalJSON ¶
func (entity *InputChatPhotoStatic) MarshalJSON() ([]byte, error)
func (*InputChatPhotoStatic) UnmarshalJSON ¶
func (inputChatPhotoStatic *InputChatPhotoStatic) UnmarshalJSON(data []byte) error
type InputChatPhotoSticker ¶ added in v1.2.3
type InputChatPhotoSticker struct { // Information about the sticker Sticker *ChatPhotoSticker `json:"sticker"` // contains filtered or unexported fields }
A sticker on a custom background
func UnmarshalInputChatPhotoSticker ¶ added in v1.2.3
func UnmarshalInputChatPhotoSticker(data json.RawMessage) (*InputChatPhotoSticker, error)
func (*InputChatPhotoSticker) GetClass ¶ added in v1.2.3
func (*InputChatPhotoSticker) GetClass() string
func (*InputChatPhotoSticker) GetType ¶ added in v1.2.3
func (*InputChatPhotoSticker) GetType() string
func (*InputChatPhotoSticker) InputChatPhotoType ¶ added in v1.2.3
func (*InputChatPhotoSticker) InputChatPhotoType() string
func (*InputChatPhotoSticker) MarshalJSON ¶ added in v1.2.3
func (entity *InputChatPhotoSticker) MarshalJSON() ([]byte, error)
type InputCredentials ¶
type InputCredentials interface {
InputCredentialsType() string
}
Contains information about the payment method chosen by the user
func UnmarshalInputCredentials ¶
func UnmarshalInputCredentials(data json.RawMessage) (InputCredentials, error)
func UnmarshalListOfInputCredentials ¶
func UnmarshalListOfInputCredentials(dataList []json.RawMessage) ([]InputCredentials, error)
type InputCredentialsApplePay ¶
type InputCredentialsApplePay struct { // JSON-encoded data with the credential identifier Data string `json:"data"` // contains filtered or unexported fields }
Applies if a user enters new credentials using Apple Pay
func UnmarshalInputCredentialsApplePay ¶
func UnmarshalInputCredentialsApplePay(data json.RawMessage) (*InputCredentialsApplePay, error)
func (*InputCredentialsApplePay) GetClass ¶
func (*InputCredentialsApplePay) GetClass() string
func (*InputCredentialsApplePay) GetType ¶
func (*InputCredentialsApplePay) GetType() string
func (*InputCredentialsApplePay) InputCredentialsType ¶
func (*InputCredentialsApplePay) InputCredentialsType() string
func (*InputCredentialsApplePay) MarshalJSON ¶
func (entity *InputCredentialsApplePay) MarshalJSON() ([]byte, error)
type InputCredentialsGooglePay ¶
type InputCredentialsGooglePay struct { // JSON-encoded data with the credential identifier Data string `json:"data"` // contains filtered or unexported fields }
Applies if a user enters new credentials using Google Pay
func UnmarshalInputCredentialsGooglePay ¶
func UnmarshalInputCredentialsGooglePay(data json.RawMessage) (*InputCredentialsGooglePay, error)
func (*InputCredentialsGooglePay) GetClass ¶
func (*InputCredentialsGooglePay) GetClass() string
func (*InputCredentialsGooglePay) GetType ¶
func (*InputCredentialsGooglePay) GetType() string
func (*InputCredentialsGooglePay) InputCredentialsType ¶
func (*InputCredentialsGooglePay) InputCredentialsType() string
func (*InputCredentialsGooglePay) MarshalJSON ¶
func (entity *InputCredentialsGooglePay) MarshalJSON() ([]byte, error)
type InputCredentialsNew ¶
type InputCredentialsNew struct { // JSON-encoded data with the credential identifier from the payment provider Data string `json:"data"` // True, if the credential identifier can be saved on the server side AllowSave bool `json:"allow_save"` // contains filtered or unexported fields }
Applies if a user enters new credentials on a payment provider website
func UnmarshalInputCredentialsNew ¶
func UnmarshalInputCredentialsNew(data json.RawMessage) (*InputCredentialsNew, error)
func (*InputCredentialsNew) GetClass ¶
func (*InputCredentialsNew) GetClass() string
func (*InputCredentialsNew) GetType ¶
func (*InputCredentialsNew) GetType() string
func (*InputCredentialsNew) InputCredentialsType ¶
func (*InputCredentialsNew) InputCredentialsType() string
func (*InputCredentialsNew) MarshalJSON ¶
func (entity *InputCredentialsNew) MarshalJSON() ([]byte, error)
type InputCredentialsSaved ¶
type InputCredentialsSaved struct { // Identifier of the saved credentials SavedCredentialsId string `json:"saved_credentials_id"` // contains filtered or unexported fields }
Applies if a user chooses some previously saved payment credentials. To use their previously saved credentials, the user must have a valid temporary password
func UnmarshalInputCredentialsSaved ¶
func UnmarshalInputCredentialsSaved(data json.RawMessage) (*InputCredentialsSaved, error)
func (*InputCredentialsSaved) GetClass ¶
func (*InputCredentialsSaved) GetClass() string
func (*InputCredentialsSaved) GetType ¶
func (*InputCredentialsSaved) GetType() string
func (*InputCredentialsSaved) InputCredentialsType ¶
func (*InputCredentialsSaved) InputCredentialsType() string
func (*InputCredentialsSaved) MarshalJSON ¶
func (entity *InputCredentialsSaved) MarshalJSON() ([]byte, error)
type InputFile ¶
type InputFile interface {
InputFileType() string
}
Points to a file
func UnmarshalInputFile ¶
func UnmarshalInputFile(data json.RawMessage) (InputFile, error)
func UnmarshalListOfInputFile ¶
func UnmarshalListOfInputFile(dataList []json.RawMessage) ([]InputFile, error)
type InputFileGenerated ¶
type InputFileGenerated struct { // Local path to a file from which the file is generated; may be empty if there is no such file OriginalPath string `json:"original_path"` // String specifying the conversion applied to the original file; must be persistent across application restarts. Conversions beginning with '#' are reserved for internal TDLib usage Conversion string `json:"conversion"` // Expected size of the generated file, in bytes; 0 if unknown ExpectedSize int64 `json:"expected_size"` // contains filtered or unexported fields }
A file generated by the application
func UnmarshalInputFileGenerated ¶
func UnmarshalInputFileGenerated(data json.RawMessage) (*InputFileGenerated, error)
func (*InputFileGenerated) GetClass ¶
func (*InputFileGenerated) GetClass() string
func (*InputFileGenerated) GetType ¶
func (*InputFileGenerated) GetType() string
func (*InputFileGenerated) InputFileType ¶
func (*InputFileGenerated) InputFileType() string
func (*InputFileGenerated) MarshalJSON ¶
func (entity *InputFileGenerated) MarshalJSON() ([]byte, error)
type InputFileId ¶
type InputFileId struct { // Unique file identifier Id int32 `json:"id"` // contains filtered or unexported fields }
A file defined by its unique identifier
func UnmarshalInputFileId ¶
func UnmarshalInputFileId(data json.RawMessage) (*InputFileId, error)
func (*InputFileId) GetClass ¶
func (*InputFileId) GetClass() string
func (*InputFileId) GetType ¶
func (*InputFileId) GetType() string
func (*InputFileId) InputFileType ¶
func (*InputFileId) InputFileType() string
func (*InputFileId) MarshalJSON ¶
func (entity *InputFileId) MarshalJSON() ([]byte, error)
type InputFileLocal ¶
type InputFileLocal struct { // Local path to the file Path string `json:"path"` // contains filtered or unexported fields }
A file defined by a local path
func UnmarshalInputFileLocal ¶
func UnmarshalInputFileLocal(data json.RawMessage) (*InputFileLocal, error)
func (*InputFileLocal) GetClass ¶
func (*InputFileLocal) GetClass() string
func (*InputFileLocal) GetType ¶
func (*InputFileLocal) GetType() string
func (*InputFileLocal) InputFileType ¶
func (*InputFileLocal) InputFileType() string
func (*InputFileLocal) MarshalJSON ¶
func (entity *InputFileLocal) MarshalJSON() ([]byte, error)
type InputFileRemote ¶
type InputFileRemote struct { // Remote file identifier Id string `json:"id"` // contains filtered or unexported fields }
A file defined by its remote identifier. The remote identifier is guaranteed to be usable only if the corresponding file is still accessible to the user and known to TDLib. For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the application
func UnmarshalInputFileRemote ¶
func UnmarshalInputFileRemote(data json.RawMessage) (*InputFileRemote, error)
func (*InputFileRemote) GetClass ¶
func (*InputFileRemote) GetClass() string
func (*InputFileRemote) GetType ¶
func (*InputFileRemote) GetType() string
func (*InputFileRemote) InputFileType ¶
func (*InputFileRemote) InputFileType() string
func (*InputFileRemote) MarshalJSON ¶
func (entity *InputFileRemote) MarshalJSON() ([]byte, error)
type InputIdentityDocument ¶
type InputIdentityDocument struct { // Document number; 1-24 characters Number string `json:"number"` // Document expiration date; pass null if not applicable ExpirationDate *Date `json:"expiration_date"` // Front side of the document FrontSide InputFile `json:"front_side"` // Reverse side of the document; only for driver license and identity card; pass null otherwise ReverseSide InputFile `json:"reverse_side"` // Selfie with the document; pass null if unavailable Selfie InputFile `json:"selfie"` // List of files containing a certified English translation of the document Translation []InputFile `json:"translation"` // contains filtered or unexported fields }
An identity document to be saved to Telegram Passport
func UnmarshalInputIdentityDocument ¶
func UnmarshalInputIdentityDocument(data json.RawMessage) (*InputIdentityDocument, error)
func (*InputIdentityDocument) GetClass ¶
func (*InputIdentityDocument) GetClass() string
func (*InputIdentityDocument) GetType ¶
func (*InputIdentityDocument) GetType() string
func (*InputIdentityDocument) MarshalJSON ¶
func (entity *InputIdentityDocument) MarshalJSON() ([]byte, error)
func (*InputIdentityDocument) UnmarshalJSON ¶
func (inputIdentityDocument *InputIdentityDocument) UnmarshalJSON(data []byte) error
type InputInlineQueryResult ¶
type InputInlineQueryResult interface {
InputInlineQueryResultType() string
}
Represents a single result of an inline query; for bots only
func UnmarshalInputInlineQueryResult ¶
func UnmarshalInputInlineQueryResult(data json.RawMessage) (InputInlineQueryResult, error)
func UnmarshalListOfInputInlineQueryResult ¶
func UnmarshalListOfInputInlineQueryResult(dataList []json.RawMessage) ([]InputInlineQueryResult, error)
type InputInlineQueryResultAnimation ¶
type InputInlineQueryResultAnimation struct { // Unique identifier of the query result Id string `json:"id"` // Title of the query result Title string `json:"title"` // URL of the result thumbnail (JPEG, GIF, or MPEG4), if it exists ThumbnailUrl string `json:"thumbnail_url"` // MIME type of the video thumbnail. If non-empty, must be one of "image/jpeg", "image/gif" and "video/mp4" ThumbnailMimeType string `json:"thumbnail_mime_type"` // The URL of the video file (file size must not exceed 1MB) VideoUrl string `json:"video_url"` // MIME type of the video file. Must be one of "image/gif" and "video/mp4" VideoMimeType string `json:"video_mime_type"` // Duration of the video, in seconds VideoDuration int32 `json:"video_duration"` // Width of the video VideoWidth int32 `json:"video_width"` // Height of the video VideoHeight int32 `json:"video_height"` // The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null ReplyMarkup ReplyMarkup `json:"reply_markup"` // The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact InputMessageContent InputMessageContent `json:"input_message_content"` // contains filtered or unexported fields }
Represents a link to an animated GIF or an animated (i.e., without sound) H.264/MPEG-4 AVC video
func UnmarshalInputInlineQueryResultAnimation ¶
func UnmarshalInputInlineQueryResultAnimation(data json.RawMessage) (*InputInlineQueryResultAnimation, error)
func (*InputInlineQueryResultAnimation) GetClass ¶
func (*InputInlineQueryResultAnimation) GetClass() string
func (*InputInlineQueryResultAnimation) GetType ¶
func (*InputInlineQueryResultAnimation) GetType() string
func (*InputInlineQueryResultAnimation) InputInlineQueryResultType ¶
func (*InputInlineQueryResultAnimation) InputInlineQueryResultType() string
func (*InputInlineQueryResultAnimation) MarshalJSON ¶
func (entity *InputInlineQueryResultAnimation) MarshalJSON() ([]byte, error)
func (*InputInlineQueryResultAnimation) UnmarshalJSON ¶
func (inputInlineQueryResultAnimation *InputInlineQueryResultAnimation) UnmarshalJSON(data []byte) error
type InputInlineQueryResultArticle ¶
type InputInlineQueryResultArticle struct { // Unique identifier of the query result Id string `json:"id"` // URL of the result, if it exists Url string `json:"url"` // True, if the URL must be not shown HideUrl bool `json:"hide_url"` // Title of the result Title string `json:"title"` // A short description of the result Description string `json:"description"` // URL of the result thumbnail, if it exists ThumbnailUrl string `json:"thumbnail_url"` // Thumbnail width, if known ThumbnailWidth int32 `json:"thumbnail_width"` // Thumbnail height, if known ThumbnailHeight int32 `json:"thumbnail_height"` // The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null ReplyMarkup ReplyMarkup `json:"reply_markup"` // The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact InputMessageContent InputMessageContent `json:"input_message_content"` // contains filtered or unexported fields }
Represents a link to an article or web page
func UnmarshalInputInlineQueryResultArticle ¶
func UnmarshalInputInlineQueryResultArticle(data json.RawMessage) (*InputInlineQueryResultArticle, error)
func (*InputInlineQueryResultArticle) GetClass ¶
func (*InputInlineQueryResultArticle) GetClass() string
func (*InputInlineQueryResultArticle) GetType ¶
func (*InputInlineQueryResultArticle) GetType() string
func (*InputInlineQueryResultArticle) InputInlineQueryResultType ¶
func (*InputInlineQueryResultArticle) InputInlineQueryResultType() string
func (*InputInlineQueryResultArticle) MarshalJSON ¶
func (entity *InputInlineQueryResultArticle) MarshalJSON() ([]byte, error)
func (*InputInlineQueryResultArticle) UnmarshalJSON ¶
func (inputInlineQueryResultArticle *InputInlineQueryResultArticle) UnmarshalJSON(data []byte) error
type InputInlineQueryResultAudio ¶
type InputInlineQueryResultAudio struct { // Unique identifier of the query result Id string `json:"id"` // Title of the audio file Title string `json:"title"` // Performer of the audio file Performer string `json:"performer"` // The URL of the audio file AudioUrl string `json:"audio_url"` // Audio file duration, in seconds AudioDuration int32 `json:"audio_duration"` // The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null ReplyMarkup ReplyMarkup `json:"reply_markup"` // The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAudio, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact InputMessageContent InputMessageContent `json:"input_message_content"` // contains filtered or unexported fields }
Represents a link to an MP3 audio file
func UnmarshalInputInlineQueryResultAudio ¶
func UnmarshalInputInlineQueryResultAudio(data json.RawMessage) (*InputInlineQueryResultAudio, error)
func (*InputInlineQueryResultAudio) GetClass ¶
func (*InputInlineQueryResultAudio) GetClass() string
func (*InputInlineQueryResultAudio) GetType ¶
func (*InputInlineQueryResultAudio) GetType() string
func (*InputInlineQueryResultAudio) InputInlineQueryResultType ¶
func (*InputInlineQueryResultAudio) InputInlineQueryResultType() string
func (*InputInlineQueryResultAudio) MarshalJSON ¶
func (entity *InputInlineQueryResultAudio) MarshalJSON() ([]byte, error)
func (*InputInlineQueryResultAudio) UnmarshalJSON ¶
func (inputInlineQueryResultAudio *InputInlineQueryResultAudio) UnmarshalJSON(data []byte) error
type InputInlineQueryResultContact ¶
type InputInlineQueryResultContact struct { // Unique identifier of the query result Id string `json:"id"` // User contact Contact *Contact `json:"contact"` // URL of the result thumbnail, if it exists ThumbnailUrl string `json:"thumbnail_url"` // Thumbnail width, if known ThumbnailWidth int32 `json:"thumbnail_width"` // Thumbnail height, if known ThumbnailHeight int32 `json:"thumbnail_height"` // The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null ReplyMarkup ReplyMarkup `json:"reply_markup"` // The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact InputMessageContent InputMessageContent `json:"input_message_content"` // contains filtered or unexported fields }
Represents a user contact
func UnmarshalInputInlineQueryResultContact ¶
func UnmarshalInputInlineQueryResultContact(data json.RawMessage) (*InputInlineQueryResultContact, error)
func (*InputInlineQueryResultContact) GetClass ¶
func (*InputInlineQueryResultContact) GetClass() string
func (*InputInlineQueryResultContact) GetType ¶
func (*InputInlineQueryResultContact) GetType() string
func (*InputInlineQueryResultContact) InputInlineQueryResultType ¶
func (*InputInlineQueryResultContact) InputInlineQueryResultType() string
func (*InputInlineQueryResultContact) MarshalJSON ¶
func (entity *InputInlineQueryResultContact) MarshalJSON() ([]byte, error)
func (*InputInlineQueryResultContact) UnmarshalJSON ¶
func (inputInlineQueryResultContact *InputInlineQueryResultContact) UnmarshalJSON(data []byte) error
type InputInlineQueryResultDocument ¶
type InputInlineQueryResultDocument struct { // Unique identifier of the query result Id string `json:"id"` // Title of the resulting file Title string `json:"title"` // Short description of the result, if known Description string `json:"description"` // URL of the file DocumentUrl string `json:"document_url"` // MIME type of the file content; only "application/pdf" and "application/zip" are currently allowed MimeType string `json:"mime_type"` // The URL of the file thumbnail, if it exists ThumbnailUrl string `json:"thumbnail_url"` // Width of the thumbnail ThumbnailWidth int32 `json:"thumbnail_width"` // Height of the thumbnail ThumbnailHeight int32 `json:"thumbnail_height"` // The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null ReplyMarkup ReplyMarkup `json:"reply_markup"` // The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageDocument, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact InputMessageContent InputMessageContent `json:"input_message_content"` // contains filtered or unexported fields }
Represents a link to a file
func UnmarshalInputInlineQueryResultDocument ¶
func UnmarshalInputInlineQueryResultDocument(data json.RawMessage) (*InputInlineQueryResultDocument, error)
func (*InputInlineQueryResultDocument) GetClass ¶
func (*InputInlineQueryResultDocument) GetClass() string
func (*InputInlineQueryResultDocument) GetType ¶
func (*InputInlineQueryResultDocument) GetType() string
func (*InputInlineQueryResultDocument) InputInlineQueryResultType ¶
func (*InputInlineQueryResultDocument) InputInlineQueryResultType() string
func (*InputInlineQueryResultDocument) MarshalJSON ¶
func (entity *InputInlineQueryResultDocument) MarshalJSON() ([]byte, error)
func (*InputInlineQueryResultDocument) UnmarshalJSON ¶
func (inputInlineQueryResultDocument *InputInlineQueryResultDocument) UnmarshalJSON(data []byte) error
type InputInlineQueryResultGame ¶
type InputInlineQueryResultGame struct { // Unique identifier of the query result Id string `json:"id"` // Short name of the game GameShortName string `json:"game_short_name"` // The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null ReplyMarkup ReplyMarkup `json:"reply_markup"` // contains filtered or unexported fields }
Represents a game
func UnmarshalInputInlineQueryResultGame ¶
func UnmarshalInputInlineQueryResultGame(data json.RawMessage) (*InputInlineQueryResultGame, error)
func (*InputInlineQueryResultGame) GetClass ¶
func (*InputInlineQueryResultGame) GetClass() string
func (*InputInlineQueryResultGame) GetType ¶
func (*InputInlineQueryResultGame) GetType() string
func (*InputInlineQueryResultGame) InputInlineQueryResultType ¶
func (*InputInlineQueryResultGame) InputInlineQueryResultType() string
func (*InputInlineQueryResultGame) MarshalJSON ¶
func (entity *InputInlineQueryResultGame) MarshalJSON() ([]byte, error)
func (*InputInlineQueryResultGame) UnmarshalJSON ¶
func (inputInlineQueryResultGame *InputInlineQueryResultGame) UnmarshalJSON(data []byte) error
type InputInlineQueryResultLocation ¶
type InputInlineQueryResultLocation struct { // Unique identifier of the query result Id string `json:"id"` // Location result Location *Location `json:"location"` // Amount of time relative to the message sent time until the location can be updated, in seconds LivePeriod int32 `json:"live_period"` // Title of the result Title string `json:"title"` // URL of the result thumbnail, if it exists ThumbnailUrl string `json:"thumbnail_url"` // Thumbnail width, if known ThumbnailWidth int32 `json:"thumbnail_width"` // Thumbnail height, if known ThumbnailHeight int32 `json:"thumbnail_height"` // The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null ReplyMarkup ReplyMarkup `json:"reply_markup"` // The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact InputMessageContent InputMessageContent `json:"input_message_content"` // contains filtered or unexported fields }
Represents a point on the map
func UnmarshalInputInlineQueryResultLocation ¶
func UnmarshalInputInlineQueryResultLocation(data json.RawMessage) (*InputInlineQueryResultLocation, error)
func (*InputInlineQueryResultLocation) GetClass ¶
func (*InputInlineQueryResultLocation) GetClass() string
func (*InputInlineQueryResultLocation) GetType ¶
func (*InputInlineQueryResultLocation) GetType() string
func (*InputInlineQueryResultLocation) InputInlineQueryResultType ¶
func (*InputInlineQueryResultLocation) InputInlineQueryResultType() string
func (*InputInlineQueryResultLocation) MarshalJSON ¶
func (entity *InputInlineQueryResultLocation) MarshalJSON() ([]byte, error)
func (*InputInlineQueryResultLocation) UnmarshalJSON ¶
func (inputInlineQueryResultLocation *InputInlineQueryResultLocation) UnmarshalJSON(data []byte) error
type InputInlineQueryResultPhoto ¶
type InputInlineQueryResultPhoto struct { // Unique identifier of the query result Id string `json:"id"` // Title of the result, if known Title string `json:"title"` // A short description of the result, if known Description string `json:"description"` // URL of the photo thumbnail, if it exists ThumbnailUrl string `json:"thumbnail_url"` // The URL of the JPEG photo (photo size must not exceed 5MB) PhotoUrl string `json:"photo_url"` // Width of the photo PhotoWidth int32 `json:"photo_width"` // Height of the photo PhotoHeight int32 `json:"photo_height"` // The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null ReplyMarkup ReplyMarkup `json:"reply_markup"` // The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessagePhoto, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact InputMessageContent InputMessageContent `json:"input_message_content"` // contains filtered or unexported fields }
Represents link to a JPEG image
func UnmarshalInputInlineQueryResultPhoto ¶
func UnmarshalInputInlineQueryResultPhoto(data json.RawMessage) (*InputInlineQueryResultPhoto, error)
func (*InputInlineQueryResultPhoto) GetClass ¶
func (*InputInlineQueryResultPhoto) GetClass() string
func (*InputInlineQueryResultPhoto) GetType ¶
func (*InputInlineQueryResultPhoto) GetType() string
func (*InputInlineQueryResultPhoto) InputInlineQueryResultType ¶
func (*InputInlineQueryResultPhoto) InputInlineQueryResultType() string
func (*InputInlineQueryResultPhoto) MarshalJSON ¶
func (entity *InputInlineQueryResultPhoto) MarshalJSON() ([]byte, error)
func (*InputInlineQueryResultPhoto) UnmarshalJSON ¶
func (inputInlineQueryResultPhoto *InputInlineQueryResultPhoto) UnmarshalJSON(data []byte) error
type InputInlineQueryResultSticker ¶
type InputInlineQueryResultSticker struct { // Unique identifier of the query result Id string `json:"id"` // URL of the sticker thumbnail, if it exists ThumbnailUrl string `json:"thumbnail_url"` // The URL of the WEBP, TGS, or WEBM sticker (sticker file size must not exceed 5MB) StickerUrl string `json:"sticker_url"` // Width of the sticker StickerWidth int32 `json:"sticker_width"` // Height of the sticker StickerHeight int32 `json:"sticker_height"` // The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null ReplyMarkup ReplyMarkup `json:"reply_markup"` // The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageSticker, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact InputMessageContent InputMessageContent `json:"input_message_content"` // contains filtered or unexported fields }
Represents a link to a WEBP, TGS, or WEBM sticker
func UnmarshalInputInlineQueryResultSticker ¶
func UnmarshalInputInlineQueryResultSticker(data json.RawMessage) (*InputInlineQueryResultSticker, error)
func (*InputInlineQueryResultSticker) GetClass ¶
func (*InputInlineQueryResultSticker) GetClass() string
func (*InputInlineQueryResultSticker) GetType ¶
func (*InputInlineQueryResultSticker) GetType() string
func (*InputInlineQueryResultSticker) InputInlineQueryResultType ¶
func (*InputInlineQueryResultSticker) InputInlineQueryResultType() string
func (*InputInlineQueryResultSticker) MarshalJSON ¶
func (entity *InputInlineQueryResultSticker) MarshalJSON() ([]byte, error)
func (*InputInlineQueryResultSticker) UnmarshalJSON ¶
func (inputInlineQueryResultSticker *InputInlineQueryResultSticker) UnmarshalJSON(data []byte) error
type InputInlineQueryResultVenue ¶
type InputInlineQueryResultVenue struct { // Unique identifier of the query result Id string `json:"id"` // Venue result Venue *Venue `json:"venue"` // URL of the result thumbnail, if it exists ThumbnailUrl string `json:"thumbnail_url"` // Thumbnail width, if known ThumbnailWidth int32 `json:"thumbnail_width"` // Thumbnail height, if known ThumbnailHeight int32 `json:"thumbnail_height"` // The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null ReplyMarkup ReplyMarkup `json:"reply_markup"` // The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact InputMessageContent InputMessageContent `json:"input_message_content"` // contains filtered or unexported fields }
Represents information about a venue
func UnmarshalInputInlineQueryResultVenue ¶
func UnmarshalInputInlineQueryResultVenue(data json.RawMessage) (*InputInlineQueryResultVenue, error)
func (*InputInlineQueryResultVenue) GetClass ¶
func (*InputInlineQueryResultVenue) GetClass() string
func (*InputInlineQueryResultVenue) GetType ¶
func (*InputInlineQueryResultVenue) GetType() string
func (*InputInlineQueryResultVenue) InputInlineQueryResultType ¶
func (*InputInlineQueryResultVenue) InputInlineQueryResultType() string
func (*InputInlineQueryResultVenue) MarshalJSON ¶
func (entity *InputInlineQueryResultVenue) MarshalJSON() ([]byte, error)
func (*InputInlineQueryResultVenue) UnmarshalJSON ¶
func (inputInlineQueryResultVenue *InputInlineQueryResultVenue) UnmarshalJSON(data []byte) error
type InputInlineQueryResultVideo ¶
type InputInlineQueryResultVideo struct { // Unique identifier of the query result Id string `json:"id"` // Title of the result Title string `json:"title"` // A short description of the result, if known Description string `json:"description"` // The URL of the video thumbnail (JPEG), if it exists ThumbnailUrl string `json:"thumbnail_url"` // URL of the embedded video player or video file VideoUrl string `json:"video_url"` // MIME type of the content of the video URL, only "text/html" or "video/mp4" are currently supported MimeType string `json:"mime_type"` // Width of the video VideoWidth int32 `json:"video_width"` // Height of the video VideoHeight int32 `json:"video_height"` // Video duration, in seconds VideoDuration int32 `json:"video_duration"` // The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null ReplyMarkup ReplyMarkup `json:"reply_markup"` // The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageVideo, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact InputMessageContent InputMessageContent `json:"input_message_content"` // contains filtered or unexported fields }
Represents a link to a page containing an embedded video player or a video file
func UnmarshalInputInlineQueryResultVideo ¶
func UnmarshalInputInlineQueryResultVideo(data json.RawMessage) (*InputInlineQueryResultVideo, error)
func (*InputInlineQueryResultVideo) GetClass ¶
func (*InputInlineQueryResultVideo) GetClass() string
func (*InputInlineQueryResultVideo) GetType ¶
func (*InputInlineQueryResultVideo) GetType() string
func (*InputInlineQueryResultVideo) InputInlineQueryResultType ¶
func (*InputInlineQueryResultVideo) InputInlineQueryResultType() string
func (*InputInlineQueryResultVideo) MarshalJSON ¶
func (entity *InputInlineQueryResultVideo) MarshalJSON() ([]byte, error)
func (*InputInlineQueryResultVideo) UnmarshalJSON ¶
func (inputInlineQueryResultVideo *InputInlineQueryResultVideo) UnmarshalJSON(data []byte) error
type InputInlineQueryResultVoiceNote ¶
type InputInlineQueryResultVoiceNote struct { // Unique identifier of the query result Id string `json:"id"` // Title of the voice note Title string `json:"title"` // The URL of the voice note file VoiceNoteUrl string `json:"voice_note_url"` // Duration of the voice note, in seconds VoiceNoteDuration int32 `json:"voice_note_duration"` // The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null ReplyMarkup ReplyMarkup `json:"reply_markup"` // The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageVoiceNote, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact InputMessageContent InputMessageContent `json:"input_message_content"` // contains filtered or unexported fields }
Represents a link to an opus-encoded audio file within an OGG container, single channel audio
func UnmarshalInputInlineQueryResultVoiceNote ¶
func UnmarshalInputInlineQueryResultVoiceNote(data json.RawMessage) (*InputInlineQueryResultVoiceNote, error)
func (*InputInlineQueryResultVoiceNote) GetClass ¶
func (*InputInlineQueryResultVoiceNote) GetClass() string
func (*InputInlineQueryResultVoiceNote) GetType ¶
func (*InputInlineQueryResultVoiceNote) GetType() string
func (*InputInlineQueryResultVoiceNote) InputInlineQueryResultType ¶
func (*InputInlineQueryResultVoiceNote) InputInlineQueryResultType() string
func (*InputInlineQueryResultVoiceNote) MarshalJSON ¶
func (entity *InputInlineQueryResultVoiceNote) MarshalJSON() ([]byte, error)
func (*InputInlineQueryResultVoiceNote) UnmarshalJSON ¶
func (inputInlineQueryResultVoiceNote *InputInlineQueryResultVoiceNote) UnmarshalJSON(data []byte) error
type InputInvoice ¶ added in v1.2.3
type InputInvoice interface {
InputInvoiceType() string
}
Describes an invoice to process
func UnmarshalInputInvoice ¶ added in v1.2.3
func UnmarshalInputInvoice(data json.RawMessage) (InputInvoice, error)
func UnmarshalListOfInputInvoice ¶ added in v1.2.3
func UnmarshalListOfInputInvoice(dataList []json.RawMessage) ([]InputInvoice, error)
type InputInvoiceMessage ¶ added in v1.2.3
type InputInvoiceMessage struct { // Chat identifier of the message ChatId int64 `json:"chat_id"` // Message identifier MessageId int64 `json:"message_id"` // contains filtered or unexported fields }
An invoice from a message of the type messageInvoice
func UnmarshalInputInvoiceMessage ¶ added in v1.2.3
func UnmarshalInputInvoiceMessage(data json.RawMessage) (*InputInvoiceMessage, error)
func (*InputInvoiceMessage) GetClass ¶ added in v1.2.3
func (*InputInvoiceMessage) GetClass() string
func (*InputInvoiceMessage) GetType ¶ added in v1.2.3
func (*InputInvoiceMessage) GetType() string
func (*InputInvoiceMessage) InputInvoiceType ¶ added in v1.2.3
func (*InputInvoiceMessage) InputInvoiceType() string
func (*InputInvoiceMessage) MarshalJSON ¶ added in v1.2.3
func (entity *InputInvoiceMessage) MarshalJSON() ([]byte, error)
type InputInvoiceName ¶ added in v1.2.3
type InputInvoiceName struct { // Name of the invoice Name string `json:"name"` // contains filtered or unexported fields }
An invoice from a link of the type internalLinkTypeInvoice
func UnmarshalInputInvoiceName ¶ added in v1.2.3
func UnmarshalInputInvoiceName(data json.RawMessage) (*InputInvoiceName, error)
func (*InputInvoiceName) GetClass ¶ added in v1.2.3
func (*InputInvoiceName) GetClass() string
func (*InputInvoiceName) GetType ¶ added in v1.2.3
func (*InputInvoiceName) GetType() string
func (*InputInvoiceName) InputInvoiceType ¶ added in v1.2.3
func (*InputInvoiceName) InputInvoiceType() string
func (*InputInvoiceName) MarshalJSON ¶ added in v1.2.3
func (entity *InputInvoiceName) MarshalJSON() ([]byte, error)
type InputMessageAnimation ¶
type InputMessageAnimation struct { // Animation file to be sent Animation InputFile `json:"animation"` // Animation thumbnail; pass null to skip thumbnail uploading Thumbnail *InputThumbnail `json:"thumbnail"` // File identifiers of the stickers added to the animation, if applicable AddedStickerFileIds []int32 `json:"added_sticker_file_ids"` // Duration of the animation, in seconds Duration int32 `json:"duration"` // Width of the animation; may be replaced by the server Width int32 `json:"width"` // Height of the animation; may be replaced by the server Height int32 `json:"height"` // Animation caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters Caption *FormattedText `json:"caption"` // True, if the animation preview must be covered by a spoiler animation; not supported in secret chats HasSpoiler bool `json:"has_spoiler"` // contains filtered or unexported fields }
An animation message (GIF-style).
func UnmarshalInputMessageAnimation ¶
func UnmarshalInputMessageAnimation(data json.RawMessage) (*InputMessageAnimation, error)
func (*InputMessageAnimation) GetClass ¶
func (*InputMessageAnimation) GetClass() string
func (*InputMessageAnimation) GetType ¶
func (*InputMessageAnimation) GetType() string
func (*InputMessageAnimation) InputMessageContentType ¶
func (*InputMessageAnimation) InputMessageContentType() string
func (*InputMessageAnimation) MarshalJSON ¶
func (entity *InputMessageAnimation) MarshalJSON() ([]byte, error)
func (*InputMessageAnimation) UnmarshalJSON ¶
func (inputMessageAnimation *InputMessageAnimation) UnmarshalJSON(data []byte) error
type InputMessageAudio ¶
type InputMessageAudio struct { // Audio file to be sent Audio InputFile `json:"audio"` // Thumbnail of the cover for the album; pass null to skip thumbnail uploading AlbumCoverThumbnail *InputThumbnail `json:"album_cover_thumbnail"` // Duration of the audio, in seconds; may be replaced by the server Duration int32 `json:"duration"` // Title of the audio; 0-64 characters; may be replaced by the server Title string `json:"title"` // Performer of the audio; 0-64 characters, may be replaced by the server Performer string `json:"performer"` // Audio caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters Caption *FormattedText `json:"caption"` // contains filtered or unexported fields }
An audio message
func UnmarshalInputMessageAudio ¶
func UnmarshalInputMessageAudio(data json.RawMessage) (*InputMessageAudio, error)
func (*InputMessageAudio) GetClass ¶
func (*InputMessageAudio) GetClass() string
func (*InputMessageAudio) GetType ¶
func (*InputMessageAudio) GetType() string
func (*InputMessageAudio) InputMessageContentType ¶
func (*InputMessageAudio) InputMessageContentType() string
func (*InputMessageAudio) MarshalJSON ¶
func (entity *InputMessageAudio) MarshalJSON() ([]byte, error)
func (*InputMessageAudio) UnmarshalJSON ¶
func (inputMessageAudio *InputMessageAudio) UnmarshalJSON(data []byte) error
type InputMessageContact ¶
type InputMessageContact struct { // Contact to send Contact *Contact `json:"contact"` // contains filtered or unexported fields }
A message containing a user contact
func UnmarshalInputMessageContact ¶
func UnmarshalInputMessageContact(data json.RawMessage) (*InputMessageContact, error)
func (*InputMessageContact) GetClass ¶
func (*InputMessageContact) GetClass() string
func (*InputMessageContact) GetType ¶
func (*InputMessageContact) GetType() string
func (*InputMessageContact) InputMessageContentType ¶
func (*InputMessageContact) InputMessageContentType() string
func (*InputMessageContact) MarshalJSON ¶
func (entity *InputMessageContact) MarshalJSON() ([]byte, error)
type InputMessageContent ¶
type InputMessageContent interface {
InputMessageContentType() string
}
The content of a message to send
func UnmarshalInputMessageContent ¶
func UnmarshalInputMessageContent(data json.RawMessage) (InputMessageContent, error)
func UnmarshalListOfInputMessageContent ¶
func UnmarshalListOfInputMessageContent(dataList []json.RawMessage) ([]InputMessageContent, error)
type InputMessageDice ¶
type InputMessageDice struct { // Emoji on which the dice throw animation is based Emoji string `json:"emoji"` // True, if the chat message draft must be deleted ClearDraft bool `json:"clear_draft"` // contains filtered or unexported fields }
A dice message
func UnmarshalInputMessageDice ¶
func UnmarshalInputMessageDice(data json.RawMessage) (*InputMessageDice, error)
func (*InputMessageDice) GetClass ¶
func (*InputMessageDice) GetClass() string
func (*InputMessageDice) GetType ¶
func (*InputMessageDice) GetType() string
func (*InputMessageDice) InputMessageContentType ¶
func (*InputMessageDice) InputMessageContentType() string
func (*InputMessageDice) MarshalJSON ¶
func (entity *InputMessageDice) MarshalJSON() ([]byte, error)
type InputMessageDocument ¶
type InputMessageDocument struct { // Document to be sent Document InputFile `json:"document"` // Document thumbnail; pass null to skip thumbnail uploading Thumbnail *InputThumbnail `json:"thumbnail"` // If true, automatic file type detection will be disabled and the document will always be sent as file. Always true for files sent to secret chats DisableContentTypeDetection bool `json:"disable_content_type_detection"` // Document caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters Caption *FormattedText `json:"caption"` // contains filtered or unexported fields }
A document message (general file)
func UnmarshalInputMessageDocument ¶
func UnmarshalInputMessageDocument(data json.RawMessage) (*InputMessageDocument, error)
func (*InputMessageDocument) GetClass ¶
func (*InputMessageDocument) GetClass() string
func (*InputMessageDocument) GetType ¶
func (*InputMessageDocument) GetType() string
func (*InputMessageDocument) InputMessageContentType ¶
func (*InputMessageDocument) InputMessageContentType() string
func (*InputMessageDocument) MarshalJSON ¶
func (entity *InputMessageDocument) MarshalJSON() ([]byte, error)
func (*InputMessageDocument) UnmarshalJSON ¶
func (inputMessageDocument *InputMessageDocument) UnmarshalJSON(data []byte) error
type InputMessageForwarded ¶
type InputMessageForwarded struct { // Identifier for the chat this forwarded message came from FromChatId int64 `json:"from_chat_id"` // Identifier of the message to forward MessageId int64 `json:"message_id"` InGameShare bool `json:"in_game_share"` // Options to be used to copy content of the message without reference to the original sender; pass null to forward the message as usual CopyOptions *MessageCopyOptions `json:"copy_options"` // contains filtered or unexported fields }
A forwarded message
func UnmarshalInputMessageForwarded ¶
func UnmarshalInputMessageForwarded(data json.RawMessage) (*InputMessageForwarded, error)
func (*InputMessageForwarded) GetClass ¶
func (*InputMessageForwarded) GetClass() string
func (*InputMessageForwarded) GetType ¶
func (*InputMessageForwarded) GetType() string
func (*InputMessageForwarded) InputMessageContentType ¶
func (*InputMessageForwarded) InputMessageContentType() string
func (*InputMessageForwarded) MarshalJSON ¶
func (entity *InputMessageForwarded) MarshalJSON() ([]byte, error)
type InputMessageGame ¶
type InputMessageGame struct { // User identifier of the bot that owns the game BotUserId int64 `json:"bot_user_id"` // Short name of the game GameShortName string `json:"game_short_name"` // contains filtered or unexported fields }
A message with a game; not supported for channels or secret chats
func UnmarshalInputMessageGame ¶
func UnmarshalInputMessageGame(data json.RawMessage) (*InputMessageGame, error)
func (*InputMessageGame) GetClass ¶
func (*InputMessageGame) GetClass() string
func (*InputMessageGame) GetType ¶
func (*InputMessageGame) GetType() string
func (*InputMessageGame) InputMessageContentType ¶
func (*InputMessageGame) InputMessageContentType() string
func (*InputMessageGame) MarshalJSON ¶
func (entity *InputMessageGame) MarshalJSON() ([]byte, error)
type InputMessageInvoice ¶
type InputMessageInvoice struct { // Invoice Invoice *Invoice `json:"invoice"` // Product title; 1-32 characters Title string `json:"title"` // Product description; 0-255 characters Description string `json:"description"` // Product photo URL; optional PhotoUrl string `json:"photo_url"` // Product photo size PhotoSize int32 `json:"photo_size"` // Product photo width PhotoWidth int32 `json:"photo_width"` // Product photo height PhotoHeight int32 `json:"photo_height"` // The invoice payload Payload []byte `json:"payload"` // Payment provider token ProviderToken string `json:"provider_token"` // JSON-encoded data about the invoice, which will be shared with the payment provider ProviderData string `json:"provider_data"` // Unique invoice bot deep link parameter for the generation of this invoice. If empty, it would be possible to pay directly from forwards of the invoice message StartParameter string `json:"start_parameter"` // The content of extended media attached to the invoice. The content of the message to be sent. Must be one of the following types: inputMessagePhoto, inputMessageVideo ExtendedMediaContent InputMessageContent `json:"extended_media_content"` // contains filtered or unexported fields }
A message with an invoice; can be used only by bots
func UnmarshalInputMessageInvoice ¶
func UnmarshalInputMessageInvoice(data json.RawMessage) (*InputMessageInvoice, error)
func (*InputMessageInvoice) GetClass ¶
func (*InputMessageInvoice) GetClass() string
func (*InputMessageInvoice) GetType ¶
func (*InputMessageInvoice) GetType() string
func (*InputMessageInvoice) InputMessageContentType ¶
func (*InputMessageInvoice) InputMessageContentType() string
func (*InputMessageInvoice) MarshalJSON ¶
func (entity *InputMessageInvoice) MarshalJSON() ([]byte, error)
func (*InputMessageInvoice) UnmarshalJSON ¶ added in v1.2.3
func (inputMessageInvoice *InputMessageInvoice) UnmarshalJSON(data []byte) error
type InputMessageLocation ¶
type InputMessageLocation struct { // Location to be sent Location *Location `json:"location"` // Period for which the location can be updated, in seconds; must be between 60 and 86400 for a live location and 0 otherwise LivePeriod int32 `json:"live_period"` // For live locations, a direction in which the location moves, in degrees; 1-360. Pass 0 if unknown Heading int32 `json:"heading"` // For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled. Can't be enabled in channels and Saved Messages ProximityAlertRadius int32 `json:"proximity_alert_radius"` // contains filtered or unexported fields }
A message with a location
func UnmarshalInputMessageLocation ¶
func UnmarshalInputMessageLocation(data json.RawMessage) (*InputMessageLocation, error)
func (*InputMessageLocation) GetClass ¶
func (*InputMessageLocation) GetClass() string
func (*InputMessageLocation) GetType ¶
func (*InputMessageLocation) GetType() string
func (*InputMessageLocation) InputMessageContentType ¶
func (*InputMessageLocation) InputMessageContentType() string
func (*InputMessageLocation) MarshalJSON ¶
func (entity *InputMessageLocation) MarshalJSON() ([]byte, error)
type InputMessagePhoto ¶
type InputMessagePhoto struct { // Photo to send. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20 Photo InputFile `json:"photo"` // Photo thumbnail to be sent; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats Thumbnail *InputThumbnail `json:"thumbnail"` // File identifiers of the stickers added to the photo, if applicable AddedStickerFileIds []int32 `json:"added_sticker_file_ids"` // Photo width Width int32 `json:"width"` // Photo height Height int32 `json:"height"` // Photo caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters Caption *FormattedText `json:"caption"` // Photo self-destruct type; pass null if none; private chats only SelfDestructType MessageSelfDestructType `json:"self_destruct_type"` // True, if the photo preview must be covered by a spoiler animation; not supported in secret chats HasSpoiler bool `json:"has_spoiler"` // contains filtered or unexported fields }
A photo message
func UnmarshalInputMessagePhoto ¶
func UnmarshalInputMessagePhoto(data json.RawMessage) (*InputMessagePhoto, error)
func (*InputMessagePhoto) GetClass ¶
func (*InputMessagePhoto) GetClass() string
func (*InputMessagePhoto) GetType ¶
func (*InputMessagePhoto) GetType() string
func (*InputMessagePhoto) InputMessageContentType ¶
func (*InputMessagePhoto) InputMessageContentType() string
func (*InputMessagePhoto) MarshalJSON ¶
func (entity *InputMessagePhoto) MarshalJSON() ([]byte, error)
func (*InputMessagePhoto) UnmarshalJSON ¶
func (inputMessagePhoto *InputMessagePhoto) UnmarshalJSON(data []byte) error
type InputMessagePoll ¶
type InputMessagePoll struct { // Poll question; 1-255 characters (up to 300 characters for bots) Question string `json:"question"` // List of poll answer options, 2-10 strings 1-100 characters each Options []string `json:"options"` // True, if the poll voters are anonymous. Non-anonymous polls can't be sent or forwarded to channels IsAnonymous bool `json:"is_anonymous"` // Type of the poll Type PollType `json:"type"` // Amount of time the poll will be active after creation, in seconds; for bots only OpenPeriod int32 `json:"open_period"` // Point in time (Unix timestamp) when the poll will automatically be closed; for bots only CloseDate int32 `json:"close_date"` // True, if the poll needs to be sent already closed; for bots only IsClosed bool `json:"is_closed"` // contains filtered or unexported fields }
A message with a poll. Polls can't be sent to secret chats. Polls can be sent only to a private chat with a bot
func UnmarshalInputMessagePoll ¶
func UnmarshalInputMessagePoll(data json.RawMessage) (*InputMessagePoll, error)
func (*InputMessagePoll) GetClass ¶
func (*InputMessagePoll) GetClass() string
func (*InputMessagePoll) GetType ¶
func (*InputMessagePoll) GetType() string
func (*InputMessagePoll) InputMessageContentType ¶
func (*InputMessagePoll) InputMessageContentType() string
func (*InputMessagePoll) MarshalJSON ¶
func (entity *InputMessagePoll) MarshalJSON() ([]byte, error)
func (*InputMessagePoll) UnmarshalJSON ¶
func (inputMessagePoll *InputMessagePoll) UnmarshalJSON(data []byte) error
type InputMessageSticker ¶
type InputMessageSticker struct { // Sticker to be sent Sticker InputFile `json:"sticker"` // Sticker thumbnail; pass null to skip thumbnail uploading Thumbnail *InputThumbnail `json:"thumbnail"` // Sticker width Width int32 `json:"width"` // Sticker height Height int32 `json:"height"` // Emoji used to choose the sticker Emoji string `json:"emoji"` // contains filtered or unexported fields }
A sticker message
func UnmarshalInputMessageSticker ¶
func UnmarshalInputMessageSticker(data json.RawMessage) (*InputMessageSticker, error)
func (*InputMessageSticker) GetClass ¶
func (*InputMessageSticker) GetClass() string
func (*InputMessageSticker) GetType ¶
func (*InputMessageSticker) GetType() string
func (*InputMessageSticker) InputMessageContentType ¶
func (*InputMessageSticker) InputMessageContentType() string
func (*InputMessageSticker) MarshalJSON ¶
func (entity *InputMessageSticker) MarshalJSON() ([]byte, error)
func (*InputMessageSticker) UnmarshalJSON ¶
func (inputMessageSticker *InputMessageSticker) UnmarshalJSON(data []byte) error
type InputMessageStory ¶ added in v1.2.3
type InputMessageStory struct { // Identifier of the chat that posted the story StorySenderChatId int64 `json:"story_sender_chat_id"` // Story identifier StoryId int32 `json:"story_id"` // contains filtered or unexported fields }
A message with a forwarded story. Stories can't be sent to secret chats. A story can be forwarded only if story.can_be_forwarded
func UnmarshalInputMessageStory ¶ added in v1.2.3
func UnmarshalInputMessageStory(data json.RawMessage) (*InputMessageStory, error)
func (*InputMessageStory) GetClass ¶ added in v1.2.3
func (*InputMessageStory) GetClass() string
func (*InputMessageStory) GetType ¶ added in v1.2.3
func (*InputMessageStory) GetType() string
func (*InputMessageStory) InputMessageContentType ¶ added in v1.2.3
func (*InputMessageStory) InputMessageContentType() string
func (*InputMessageStory) MarshalJSON ¶ added in v1.2.3
func (entity *InputMessageStory) MarshalJSON() ([]byte, error)
type InputMessageText ¶
type InputMessageText struct { // Formatted text to be sent; 1-getOption("message_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, Code, Pre, PreCode, TextUrl and MentionName entities are allowed to be specified manually Text *FormattedText `json:"text"` // True, if rich web page previews for URLs in the message text must be disabled DisableWebPagePreview bool `json:"disable_web_page_preview"` // True, if a chat message draft must be deleted ClearDraft bool `json:"clear_draft"` // contains filtered or unexported fields }
A text message
func UnmarshalInputMessageText ¶
func UnmarshalInputMessageText(data json.RawMessage) (*InputMessageText, error)
func (*InputMessageText) GetClass ¶
func (*InputMessageText) GetClass() string
func (*InputMessageText) GetType ¶
func (*InputMessageText) GetType() string
func (*InputMessageText) InputMessageContentType ¶
func (*InputMessageText) InputMessageContentType() string
func (*InputMessageText) MarshalJSON ¶
func (entity *InputMessageText) MarshalJSON() ([]byte, error)
type InputMessageVenue ¶
type InputMessageVenue struct { // Venue to send Venue *Venue `json:"venue"` // contains filtered or unexported fields }
A message with information about a venue
func UnmarshalInputMessageVenue ¶
func UnmarshalInputMessageVenue(data json.RawMessage) (*InputMessageVenue, error)
func (*InputMessageVenue) GetClass ¶
func (*InputMessageVenue) GetClass() string
func (*InputMessageVenue) GetType ¶
func (*InputMessageVenue) GetType() string
func (*InputMessageVenue) InputMessageContentType ¶
func (*InputMessageVenue) InputMessageContentType() string
func (*InputMessageVenue) MarshalJSON ¶
func (entity *InputMessageVenue) MarshalJSON() ([]byte, error)
type InputMessageVideo ¶
type InputMessageVideo struct { // Video to be sent Video InputFile `json:"video"` // Video thumbnail; pass null to skip thumbnail uploading Thumbnail *InputThumbnail `json:"thumbnail"` // File identifiers of the stickers added to the video, if applicable AddedStickerFileIds []int32 `json:"added_sticker_file_ids"` // Duration of the video, in seconds Duration int32 `json:"duration"` // Video width Width int32 `json:"width"` // Video height Height int32 `json:"height"` // True, if the video is supposed to be streamed SupportsStreaming bool `json:"supports_streaming"` // Video caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters Caption *FormattedText `json:"caption"` // Video self-destruct type; pass null if none; private chats only SelfDestructType MessageSelfDestructType `json:"self_destruct_type"` // True, if the video preview must be covered by a spoiler animation; not supported in secret chats HasSpoiler bool `json:"has_spoiler"` // contains filtered or unexported fields }
A video message
func UnmarshalInputMessageVideo ¶
func UnmarshalInputMessageVideo(data json.RawMessage) (*InputMessageVideo, error)
func (*InputMessageVideo) GetClass ¶
func (*InputMessageVideo) GetClass() string
func (*InputMessageVideo) GetType ¶
func (*InputMessageVideo) GetType() string
func (*InputMessageVideo) InputMessageContentType ¶
func (*InputMessageVideo) InputMessageContentType() string
func (*InputMessageVideo) MarshalJSON ¶
func (entity *InputMessageVideo) MarshalJSON() ([]byte, error)
func (*InputMessageVideo) UnmarshalJSON ¶
func (inputMessageVideo *InputMessageVideo) UnmarshalJSON(data []byte) error
type InputMessageVideoNote ¶
type InputMessageVideoNote struct { // Video note to be sent VideoNote InputFile `json:"video_note"` // Video thumbnail; pass null to skip thumbnail uploading Thumbnail *InputThumbnail `json:"thumbnail"` // Duration of the video, in seconds Duration int32 `json:"duration"` // Video width and height; must be positive and not greater than 640 Length int32 `json:"length"` // contains filtered or unexported fields }
A video note message
func UnmarshalInputMessageVideoNote ¶
func UnmarshalInputMessageVideoNote(data json.RawMessage) (*InputMessageVideoNote, error)
func (*InputMessageVideoNote) GetClass ¶
func (*InputMessageVideoNote) GetClass() string
func (*InputMessageVideoNote) GetType ¶
func (*InputMessageVideoNote) GetType() string
func (*InputMessageVideoNote) InputMessageContentType ¶
func (*InputMessageVideoNote) InputMessageContentType() string
func (*InputMessageVideoNote) MarshalJSON ¶
func (entity *InputMessageVideoNote) MarshalJSON() ([]byte, error)
func (*InputMessageVideoNote) UnmarshalJSON ¶
func (inputMessageVideoNote *InputMessageVideoNote) UnmarshalJSON(data []byte) error
type InputMessageVoiceNote ¶
type InputMessageVoiceNote struct { // Voice note to be sent VoiceNote InputFile `json:"voice_note"` // Duration of the voice note, in seconds Duration int32 `json:"duration"` // Waveform representation of the voice note in 5-bit format Waveform []byte `json:"waveform"` // Voice note caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters Caption *FormattedText `json:"caption"` // contains filtered or unexported fields }
A voice note message
func UnmarshalInputMessageVoiceNote ¶
func UnmarshalInputMessageVoiceNote(data json.RawMessage) (*InputMessageVoiceNote, error)
func (*InputMessageVoiceNote) GetClass ¶
func (*InputMessageVoiceNote) GetClass() string
func (*InputMessageVoiceNote) GetType ¶
func (*InputMessageVoiceNote) GetType() string
func (*InputMessageVoiceNote) InputMessageContentType ¶
func (*InputMessageVoiceNote) InputMessageContentType() string
func (*InputMessageVoiceNote) MarshalJSON ¶
func (entity *InputMessageVoiceNote) MarshalJSON() ([]byte, error)
func (*InputMessageVoiceNote) UnmarshalJSON ¶
func (inputMessageVoiceNote *InputMessageVoiceNote) UnmarshalJSON(data []byte) error
type InputPassportElement ¶
type InputPassportElement interface {
InputPassportElementType() string
}
Contains information about a Telegram Passport element to be saved
func UnmarshalInputPassportElement ¶
func UnmarshalInputPassportElement(data json.RawMessage) (InputPassportElement, error)
func UnmarshalListOfInputPassportElement ¶
func UnmarshalListOfInputPassportElement(dataList []json.RawMessage) ([]InputPassportElement, error)
type InputPassportElementAddress ¶
type InputPassportElementAddress struct { // The address to be saved Address *Address `json:"address"` // contains filtered or unexported fields }
A Telegram Passport element to be saved containing the user's address
func UnmarshalInputPassportElementAddress ¶
func UnmarshalInputPassportElementAddress(data json.RawMessage) (*InputPassportElementAddress, error)
func (*InputPassportElementAddress) GetClass ¶
func (*InputPassportElementAddress) GetClass() string
func (*InputPassportElementAddress) GetType ¶
func (*InputPassportElementAddress) GetType() string
func (*InputPassportElementAddress) InputPassportElementType ¶
func (*InputPassportElementAddress) InputPassportElementType() string
func (*InputPassportElementAddress) MarshalJSON ¶
func (entity *InputPassportElementAddress) MarshalJSON() ([]byte, error)
type InputPassportElementBankStatement ¶
type InputPassportElementBankStatement struct { // The bank statement to be saved BankStatement *InputPersonalDocument `json:"bank_statement"` // contains filtered or unexported fields }
A Telegram Passport element to be saved containing the user's bank statement
func UnmarshalInputPassportElementBankStatement ¶
func UnmarshalInputPassportElementBankStatement(data json.RawMessage) (*InputPassportElementBankStatement, error)
func (*InputPassportElementBankStatement) GetClass ¶
func (*InputPassportElementBankStatement) GetClass() string
func (*InputPassportElementBankStatement) GetType ¶
func (*InputPassportElementBankStatement) GetType() string
func (*InputPassportElementBankStatement) InputPassportElementType ¶
func (*InputPassportElementBankStatement) InputPassportElementType() string
func (*InputPassportElementBankStatement) MarshalJSON ¶
func (entity *InputPassportElementBankStatement) MarshalJSON() ([]byte, error)
type InputPassportElementDriverLicense ¶
type InputPassportElementDriverLicense struct { // The driver license to be saved DriverLicense *InputIdentityDocument `json:"driver_license"` // contains filtered or unexported fields }
A Telegram Passport element to be saved containing the user's driver license
func UnmarshalInputPassportElementDriverLicense ¶
func UnmarshalInputPassportElementDriverLicense(data json.RawMessage) (*InputPassportElementDriverLicense, error)
func (*InputPassportElementDriverLicense) GetClass ¶
func (*InputPassportElementDriverLicense) GetClass() string
func (*InputPassportElementDriverLicense) GetType ¶
func (*InputPassportElementDriverLicense) GetType() string
func (*InputPassportElementDriverLicense) InputPassportElementType ¶
func (*InputPassportElementDriverLicense) InputPassportElementType() string
func (*InputPassportElementDriverLicense) MarshalJSON ¶
func (entity *InputPassportElementDriverLicense) MarshalJSON() ([]byte, error)
type InputPassportElementEmailAddress ¶
type InputPassportElementEmailAddress struct { // The email address to be saved EmailAddress string `json:"email_address"` // contains filtered or unexported fields }
A Telegram Passport element to be saved containing the user's email address
func UnmarshalInputPassportElementEmailAddress ¶
func UnmarshalInputPassportElementEmailAddress(data json.RawMessage) (*InputPassportElementEmailAddress, error)
func (*InputPassportElementEmailAddress) GetClass ¶
func (*InputPassportElementEmailAddress) GetClass() string
func (*InputPassportElementEmailAddress) GetType ¶
func (*InputPassportElementEmailAddress) GetType() string
func (*InputPassportElementEmailAddress) InputPassportElementType ¶
func (*InputPassportElementEmailAddress) InputPassportElementType() string
func (*InputPassportElementEmailAddress) MarshalJSON ¶
func (entity *InputPassportElementEmailAddress) MarshalJSON() ([]byte, error)
type InputPassportElementError ¶
type InputPassportElementError struct { // Type of Telegram Passport element that has the error Type PassportElementType `json:"type"` // Error message Message string `json:"message"` // Error source Source InputPassportElementErrorSource `json:"source"` // contains filtered or unexported fields }
Contains the description of an error in a Telegram Passport element; for bots only
func UnmarshalInputPassportElementError ¶
func UnmarshalInputPassportElementError(data json.RawMessage) (*InputPassportElementError, error)
func (*InputPassportElementError) GetClass ¶
func (*InputPassportElementError) GetClass() string
func (*InputPassportElementError) GetType ¶
func (*InputPassportElementError) GetType() string
func (*InputPassportElementError) MarshalJSON ¶
func (entity *InputPassportElementError) MarshalJSON() ([]byte, error)
func (*InputPassportElementError) UnmarshalJSON ¶
func (inputPassportElementError *InputPassportElementError) UnmarshalJSON(data []byte) error
type InputPassportElementErrorSource ¶
type InputPassportElementErrorSource interface {
InputPassportElementErrorSourceType() string
}
Contains the description of an error in a Telegram Passport element; for bots only
func UnmarshalInputPassportElementErrorSource ¶
func UnmarshalInputPassportElementErrorSource(data json.RawMessage) (InputPassportElementErrorSource, error)
func UnmarshalListOfInputPassportElementErrorSource ¶
func UnmarshalListOfInputPassportElementErrorSource(dataList []json.RawMessage) ([]InputPassportElementErrorSource, error)
type InputPassportElementErrorSourceDataField ¶
type InputPassportElementErrorSourceDataField struct { // Field name FieldName string `json:"field_name"` // Current data hash DataHash []byte `json:"data_hash"` // contains filtered or unexported fields }
A data field contains an error. The error is considered resolved when the field's value changes
func UnmarshalInputPassportElementErrorSourceDataField ¶
func UnmarshalInputPassportElementErrorSourceDataField(data json.RawMessage) (*InputPassportElementErrorSourceDataField, error)
func (*InputPassportElementErrorSourceDataField) GetClass ¶
func (*InputPassportElementErrorSourceDataField) GetClass() string
func (*InputPassportElementErrorSourceDataField) GetType ¶
func (*InputPassportElementErrorSourceDataField) GetType() string
func (*InputPassportElementErrorSourceDataField) InputPassportElementErrorSourceType ¶
func (*InputPassportElementErrorSourceDataField) InputPassportElementErrorSourceType() string
func (*InputPassportElementErrorSourceDataField) MarshalJSON ¶
func (entity *InputPassportElementErrorSourceDataField) MarshalJSON() ([]byte, error)
type InputPassportElementErrorSourceFile ¶
type InputPassportElementErrorSourceFile struct { // Current hash of the file which has the error FileHash []byte `json:"file_hash"` // contains filtered or unexported fields }
The file contains an error. The error is considered resolved when the file changes
func UnmarshalInputPassportElementErrorSourceFile ¶
func UnmarshalInputPassportElementErrorSourceFile(data json.RawMessage) (*InputPassportElementErrorSourceFile, error)
func (*InputPassportElementErrorSourceFile) GetClass ¶
func (*InputPassportElementErrorSourceFile) GetClass() string
func (*InputPassportElementErrorSourceFile) GetType ¶
func (*InputPassportElementErrorSourceFile) GetType() string
func (*InputPassportElementErrorSourceFile) InputPassportElementErrorSourceType ¶
func (*InputPassportElementErrorSourceFile) InputPassportElementErrorSourceType() string
func (*InputPassportElementErrorSourceFile) MarshalJSON ¶
func (entity *InputPassportElementErrorSourceFile) MarshalJSON() ([]byte, error)
type InputPassportElementErrorSourceFiles ¶
type InputPassportElementErrorSourceFiles struct { // Current hashes of all attached files FileHashes [][]byte `json:"file_hashes"` // contains filtered or unexported fields }
The list of attached files contains an error. The error is considered resolved when the file list changes
func UnmarshalInputPassportElementErrorSourceFiles ¶
func UnmarshalInputPassportElementErrorSourceFiles(data json.RawMessage) (*InputPassportElementErrorSourceFiles, error)
func (*InputPassportElementErrorSourceFiles) GetClass ¶
func (*InputPassportElementErrorSourceFiles) GetClass() string
func (*InputPassportElementErrorSourceFiles) GetType ¶
func (*InputPassportElementErrorSourceFiles) GetType() string
func (*InputPassportElementErrorSourceFiles) InputPassportElementErrorSourceType ¶
func (*InputPassportElementErrorSourceFiles) InputPassportElementErrorSourceType() string
func (*InputPassportElementErrorSourceFiles) MarshalJSON ¶
func (entity *InputPassportElementErrorSourceFiles) MarshalJSON() ([]byte, error)
type InputPassportElementErrorSourceFrontSide ¶
type InputPassportElementErrorSourceFrontSide struct { // Current hash of the file containing the front side FileHash []byte `json:"file_hash"` // contains filtered or unexported fields }
The front side of the document contains an error. The error is considered resolved when the file with the front side of the document changes
func UnmarshalInputPassportElementErrorSourceFrontSide ¶
func UnmarshalInputPassportElementErrorSourceFrontSide(data json.RawMessage) (*InputPassportElementErrorSourceFrontSide, error)
func (*InputPassportElementErrorSourceFrontSide) GetClass ¶
func (*InputPassportElementErrorSourceFrontSide) GetClass() string
func (*InputPassportElementErrorSourceFrontSide) GetType ¶
func (*InputPassportElementErrorSourceFrontSide) GetType() string
func (*InputPassportElementErrorSourceFrontSide) InputPassportElementErrorSourceType ¶
func (*InputPassportElementErrorSourceFrontSide) InputPassportElementErrorSourceType() string
func (*InputPassportElementErrorSourceFrontSide) MarshalJSON ¶
func (entity *InputPassportElementErrorSourceFrontSide) MarshalJSON() ([]byte, error)
type InputPassportElementErrorSourceReverseSide ¶
type InputPassportElementErrorSourceReverseSide struct { // Current hash of the file containing the reverse side FileHash []byte `json:"file_hash"` // contains filtered or unexported fields }
The reverse side of the document contains an error. The error is considered resolved when the file with the reverse side of the document changes
func UnmarshalInputPassportElementErrorSourceReverseSide ¶
func UnmarshalInputPassportElementErrorSourceReverseSide(data json.RawMessage) (*InputPassportElementErrorSourceReverseSide, error)
func (*InputPassportElementErrorSourceReverseSide) GetClass ¶
func (*InputPassportElementErrorSourceReverseSide) GetClass() string
func (*InputPassportElementErrorSourceReverseSide) GetType ¶
func (*InputPassportElementErrorSourceReverseSide) GetType() string
func (*InputPassportElementErrorSourceReverseSide) InputPassportElementErrorSourceType ¶
func (*InputPassportElementErrorSourceReverseSide) InputPassportElementErrorSourceType() string
func (*InputPassportElementErrorSourceReverseSide) MarshalJSON ¶
func (entity *InputPassportElementErrorSourceReverseSide) MarshalJSON() ([]byte, error)
type InputPassportElementErrorSourceSelfie ¶
type InputPassportElementErrorSourceSelfie struct { // Current hash of the file containing the selfie FileHash []byte `json:"file_hash"` // contains filtered or unexported fields }
The selfie contains an error. The error is considered resolved when the file with the selfie changes
func UnmarshalInputPassportElementErrorSourceSelfie ¶
func UnmarshalInputPassportElementErrorSourceSelfie(data json.RawMessage) (*InputPassportElementErrorSourceSelfie, error)
func (*InputPassportElementErrorSourceSelfie) GetClass ¶
func (*InputPassportElementErrorSourceSelfie) GetClass() string
func (*InputPassportElementErrorSourceSelfie) GetType ¶
func (*InputPassportElementErrorSourceSelfie) GetType() string
func (*InputPassportElementErrorSourceSelfie) InputPassportElementErrorSourceType ¶
func (*InputPassportElementErrorSourceSelfie) InputPassportElementErrorSourceType() string
func (*InputPassportElementErrorSourceSelfie) MarshalJSON ¶
func (entity *InputPassportElementErrorSourceSelfie) MarshalJSON() ([]byte, error)
type InputPassportElementErrorSourceTranslationFile ¶
type InputPassportElementErrorSourceTranslationFile struct { // Current hash of the file containing the translation FileHash []byte `json:"file_hash"` // contains filtered or unexported fields }
One of the files containing the translation of the document contains an error. The error is considered resolved when the file with the translation changes
func UnmarshalInputPassportElementErrorSourceTranslationFile ¶
func UnmarshalInputPassportElementErrorSourceTranslationFile(data json.RawMessage) (*InputPassportElementErrorSourceTranslationFile, error)
func (*InputPassportElementErrorSourceTranslationFile) GetClass ¶
func (*InputPassportElementErrorSourceTranslationFile) GetClass() string
func (*InputPassportElementErrorSourceTranslationFile) GetType ¶
func (*InputPassportElementErrorSourceTranslationFile) GetType() string
func (*InputPassportElementErrorSourceTranslationFile) InputPassportElementErrorSourceType ¶
func (*InputPassportElementErrorSourceTranslationFile) InputPassportElementErrorSourceType() string
func (*InputPassportElementErrorSourceTranslationFile) MarshalJSON ¶
func (entity *InputPassportElementErrorSourceTranslationFile) MarshalJSON() ([]byte, error)
type InputPassportElementErrorSourceTranslationFiles ¶
type InputPassportElementErrorSourceTranslationFiles struct { // Current hashes of all files with the translation FileHashes [][]byte `json:"file_hashes"` // contains filtered or unexported fields }
The translation of the document contains an error. The error is considered resolved when the list of files changes
func UnmarshalInputPassportElementErrorSourceTranslationFiles ¶
func UnmarshalInputPassportElementErrorSourceTranslationFiles(data json.RawMessage) (*InputPassportElementErrorSourceTranslationFiles, error)
func (*InputPassportElementErrorSourceTranslationFiles) GetClass ¶
func (*InputPassportElementErrorSourceTranslationFiles) GetClass() string
func (*InputPassportElementErrorSourceTranslationFiles) GetType ¶
func (*InputPassportElementErrorSourceTranslationFiles) GetType() string
func (*InputPassportElementErrorSourceTranslationFiles) InputPassportElementErrorSourceType ¶
func (*InputPassportElementErrorSourceTranslationFiles) InputPassportElementErrorSourceType() string
func (*InputPassportElementErrorSourceTranslationFiles) MarshalJSON ¶
func (entity *InputPassportElementErrorSourceTranslationFiles) MarshalJSON() ([]byte, error)
type InputPassportElementErrorSourceUnspecified ¶
type InputPassportElementErrorSourceUnspecified struct { // Current hash of the entire element ElementHash []byte `json:"element_hash"` // contains filtered or unexported fields }
The element contains an error in an unspecified place. The error will be considered resolved when new data is added
func UnmarshalInputPassportElementErrorSourceUnspecified ¶
func UnmarshalInputPassportElementErrorSourceUnspecified(data json.RawMessage) (*InputPassportElementErrorSourceUnspecified, error)
func (*InputPassportElementErrorSourceUnspecified) GetClass ¶
func (*InputPassportElementErrorSourceUnspecified) GetClass() string
func (*InputPassportElementErrorSourceUnspecified) GetType ¶
func (*InputPassportElementErrorSourceUnspecified) GetType() string
func (*InputPassportElementErrorSourceUnspecified) InputPassportElementErrorSourceType ¶
func (*InputPassportElementErrorSourceUnspecified) InputPassportElementErrorSourceType() string
func (*InputPassportElementErrorSourceUnspecified) MarshalJSON ¶
func (entity *InputPassportElementErrorSourceUnspecified) MarshalJSON() ([]byte, error)
type InputPassportElementIdentityCard ¶
type InputPassportElementIdentityCard struct { // The identity card to be saved IdentityCard *InputIdentityDocument `json:"identity_card"` // contains filtered or unexported fields }
A Telegram Passport element to be saved containing the user's identity card
func UnmarshalInputPassportElementIdentityCard ¶
func UnmarshalInputPassportElementIdentityCard(data json.RawMessage) (*InputPassportElementIdentityCard, error)
func (*InputPassportElementIdentityCard) GetClass ¶
func (*InputPassportElementIdentityCard) GetClass() string
func (*InputPassportElementIdentityCard) GetType ¶
func (*InputPassportElementIdentityCard) GetType() string
func (*InputPassportElementIdentityCard) InputPassportElementType ¶
func (*InputPassportElementIdentityCard) InputPassportElementType() string
func (*InputPassportElementIdentityCard) MarshalJSON ¶
func (entity *InputPassportElementIdentityCard) MarshalJSON() ([]byte, error)
type InputPassportElementInternalPassport ¶
type InputPassportElementInternalPassport struct { // The internal passport to be saved InternalPassport *InputIdentityDocument `json:"internal_passport"` // contains filtered or unexported fields }
A Telegram Passport element to be saved containing the user's internal passport
func UnmarshalInputPassportElementInternalPassport ¶
func UnmarshalInputPassportElementInternalPassport(data json.RawMessage) (*InputPassportElementInternalPassport, error)
func (*InputPassportElementInternalPassport) GetClass ¶
func (*InputPassportElementInternalPassport) GetClass() string
func (*InputPassportElementInternalPassport) GetType ¶
func (*InputPassportElementInternalPassport) GetType() string
func (*InputPassportElementInternalPassport) InputPassportElementType ¶
func (*InputPassportElementInternalPassport) InputPassportElementType() string
func (*InputPassportElementInternalPassport) MarshalJSON ¶
func (entity *InputPassportElementInternalPassport) MarshalJSON() ([]byte, error)
type InputPassportElementPassport ¶
type InputPassportElementPassport struct { // The passport to be saved Passport *InputIdentityDocument `json:"passport"` // contains filtered or unexported fields }
A Telegram Passport element to be saved containing the user's passport
func UnmarshalInputPassportElementPassport ¶
func UnmarshalInputPassportElementPassport(data json.RawMessage) (*InputPassportElementPassport, error)
func (*InputPassportElementPassport) GetClass ¶
func (*InputPassportElementPassport) GetClass() string
func (*InputPassportElementPassport) GetType ¶
func (*InputPassportElementPassport) GetType() string
func (*InputPassportElementPassport) InputPassportElementType ¶
func (*InputPassportElementPassport) InputPassportElementType() string
func (*InputPassportElementPassport) MarshalJSON ¶
func (entity *InputPassportElementPassport) MarshalJSON() ([]byte, error)
type InputPassportElementPassportRegistration ¶
type InputPassportElementPassportRegistration struct { // The passport registration page to be saved PassportRegistration *InputPersonalDocument `json:"passport_registration"` // contains filtered or unexported fields }
A Telegram Passport element to be saved containing the user's passport registration
func UnmarshalInputPassportElementPassportRegistration ¶
func UnmarshalInputPassportElementPassportRegistration(data json.RawMessage) (*InputPassportElementPassportRegistration, error)
func (*InputPassportElementPassportRegistration) GetClass ¶
func (*InputPassportElementPassportRegistration) GetClass() string
func (*InputPassportElementPassportRegistration) GetType ¶
func (*InputPassportElementPassportRegistration) GetType() string
func (*InputPassportElementPassportRegistration) InputPassportElementType ¶
func (*InputPassportElementPassportRegistration) InputPassportElementType() string
func (*InputPassportElementPassportRegistration) MarshalJSON ¶
func (entity *InputPassportElementPassportRegistration) MarshalJSON() ([]byte, error)
type InputPassportElementPersonalDetails ¶
type InputPassportElementPersonalDetails struct { // Personal details of the user PersonalDetails *PersonalDetails `json:"personal_details"` // contains filtered or unexported fields }
A Telegram Passport element to be saved containing the user's personal details
func UnmarshalInputPassportElementPersonalDetails ¶
func UnmarshalInputPassportElementPersonalDetails(data json.RawMessage) (*InputPassportElementPersonalDetails, error)
func (*InputPassportElementPersonalDetails) GetClass ¶
func (*InputPassportElementPersonalDetails) GetClass() string
func (*InputPassportElementPersonalDetails) GetType ¶
func (*InputPassportElementPersonalDetails) GetType() string
func (*InputPassportElementPersonalDetails) InputPassportElementType ¶
func (*InputPassportElementPersonalDetails) InputPassportElementType() string
func (*InputPassportElementPersonalDetails) MarshalJSON ¶
func (entity *InputPassportElementPersonalDetails) MarshalJSON() ([]byte, error)
type InputPassportElementPhoneNumber ¶
type InputPassportElementPhoneNumber struct { // The phone number to be saved PhoneNumber string `json:"phone_number"` // contains filtered or unexported fields }
A Telegram Passport element to be saved containing the user's phone number
func UnmarshalInputPassportElementPhoneNumber ¶
func UnmarshalInputPassportElementPhoneNumber(data json.RawMessage) (*InputPassportElementPhoneNumber, error)
func (*InputPassportElementPhoneNumber) GetClass ¶
func (*InputPassportElementPhoneNumber) GetClass() string
func (*InputPassportElementPhoneNumber) GetType ¶
func (*InputPassportElementPhoneNumber) GetType() string
func (*InputPassportElementPhoneNumber) InputPassportElementType ¶
func (*InputPassportElementPhoneNumber) InputPassportElementType() string
func (*InputPassportElementPhoneNumber) MarshalJSON ¶
func (entity *InputPassportElementPhoneNumber) MarshalJSON() ([]byte, error)
type InputPassportElementRentalAgreement ¶
type InputPassportElementRentalAgreement struct { // The rental agreement to be saved RentalAgreement *InputPersonalDocument `json:"rental_agreement"` // contains filtered or unexported fields }
A Telegram Passport element to be saved containing the user's rental agreement
func UnmarshalInputPassportElementRentalAgreement ¶
func UnmarshalInputPassportElementRentalAgreement(data json.RawMessage) (*InputPassportElementRentalAgreement, error)
func (*InputPassportElementRentalAgreement) GetClass ¶
func (*InputPassportElementRentalAgreement) GetClass() string
func (*InputPassportElementRentalAgreement) GetType ¶
func (*InputPassportElementRentalAgreement) GetType() string
func (*InputPassportElementRentalAgreement) InputPassportElementType ¶
func (*InputPassportElementRentalAgreement) InputPassportElementType() string
func (*InputPassportElementRentalAgreement) MarshalJSON ¶
func (entity *InputPassportElementRentalAgreement) MarshalJSON() ([]byte, error)
type InputPassportElementTemporaryRegistration ¶
type InputPassportElementTemporaryRegistration struct { // The temporary registration document to be saved TemporaryRegistration *InputPersonalDocument `json:"temporary_registration"` // contains filtered or unexported fields }
A Telegram Passport element to be saved containing the user's temporary registration
func UnmarshalInputPassportElementTemporaryRegistration ¶
func UnmarshalInputPassportElementTemporaryRegistration(data json.RawMessage) (*InputPassportElementTemporaryRegistration, error)
func (*InputPassportElementTemporaryRegistration) GetClass ¶
func (*InputPassportElementTemporaryRegistration) GetClass() string
func (*InputPassportElementTemporaryRegistration) GetType ¶
func (*InputPassportElementTemporaryRegistration) GetType() string
func (*InputPassportElementTemporaryRegistration) InputPassportElementType ¶
func (*InputPassportElementTemporaryRegistration) InputPassportElementType() string
func (*InputPassportElementTemporaryRegistration) MarshalJSON ¶
func (entity *InputPassportElementTemporaryRegistration) MarshalJSON() ([]byte, error)
type InputPassportElementUtilityBill ¶
type InputPassportElementUtilityBill struct { // The utility bill to be saved UtilityBill *InputPersonalDocument `json:"utility_bill"` // contains filtered or unexported fields }
A Telegram Passport element to be saved containing the user's utility bill
func UnmarshalInputPassportElementUtilityBill ¶
func UnmarshalInputPassportElementUtilityBill(data json.RawMessage) (*InputPassportElementUtilityBill, error)
func (*InputPassportElementUtilityBill) GetClass ¶
func (*InputPassportElementUtilityBill) GetClass() string
func (*InputPassportElementUtilityBill) GetType ¶
func (*InputPassportElementUtilityBill) GetType() string
func (*InputPassportElementUtilityBill) InputPassportElementType ¶
func (*InputPassportElementUtilityBill) InputPassportElementType() string
func (*InputPassportElementUtilityBill) MarshalJSON ¶
func (entity *InputPassportElementUtilityBill) MarshalJSON() ([]byte, error)
type InputPersonalDocument ¶
type InputPersonalDocument struct { // List of files containing the pages of the document Files []InputFile `json:"files"` // List of files containing a certified English translation of the document Translation []InputFile `json:"translation"` // contains filtered or unexported fields }
A personal document to be saved to Telegram Passport
func UnmarshalInputPersonalDocument ¶
func UnmarshalInputPersonalDocument(data json.RawMessage) (*InputPersonalDocument, error)
func (*InputPersonalDocument) GetClass ¶
func (*InputPersonalDocument) GetClass() string
func (*InputPersonalDocument) GetType ¶
func (*InputPersonalDocument) GetType() string
func (*InputPersonalDocument) MarshalJSON ¶
func (entity *InputPersonalDocument) MarshalJSON() ([]byte, error)
func (*InputPersonalDocument) UnmarshalJSON ¶
func (inputPersonalDocument *InputPersonalDocument) UnmarshalJSON(data []byte) error
type InputSticker ¶
type InputSticker struct { // File with the sticker; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements Sticker InputFile `json:"sticker"` // String with 1-20 emoji corresponding to the sticker Emojis string `json:"emojis"` // Position where the mask is placed; pass null if not specified MaskPosition *MaskPosition `json:"mask_position"` // List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker Keywords []string `json:"keywords"` // contains filtered or unexported fields }
A sticker to be added to a sticker set
func UnmarshalInputSticker ¶
func UnmarshalInputSticker(data json.RawMessage) (*InputSticker, error)
func (*InputSticker) GetClass ¶ added in v1.0.6
func (*InputSticker) GetClass() string
func (*InputSticker) GetType ¶ added in v1.0.6
func (*InputSticker) GetType() string
func (*InputSticker) MarshalJSON ¶ added in v1.0.6
func (entity *InputSticker) MarshalJSON() ([]byte, error)
func (*InputSticker) UnmarshalJSON ¶ added in v1.0.6
func (inputSticker *InputSticker) UnmarshalJSON(data []byte) error
type InputStoryArea ¶ added in v1.2.3
type InputStoryArea struct { // Position of the area Position *StoryAreaPosition `json:"position"` // Type of the area Type InputStoryAreaType `json:"type"` // contains filtered or unexported fields }
Describes a clickable rectangle area on a story media to be added
func UnmarshalInputStoryArea ¶ added in v1.2.3
func UnmarshalInputStoryArea(data json.RawMessage) (*InputStoryArea, error)
func (*InputStoryArea) GetClass ¶ added in v1.2.3
func (*InputStoryArea) GetClass() string
func (*InputStoryArea) GetType ¶ added in v1.2.3
func (*InputStoryArea) GetType() string
func (*InputStoryArea) MarshalJSON ¶ added in v1.2.3
func (entity *InputStoryArea) MarshalJSON() ([]byte, error)
func (*InputStoryArea) UnmarshalJSON ¶ added in v1.2.3
func (inputStoryArea *InputStoryArea) UnmarshalJSON(data []byte) error
type InputStoryAreaType ¶ added in v1.2.3
type InputStoryAreaType interface {
InputStoryAreaTypeType() string
}
Describes type of a clickable rectangle area on a story media to be added
func UnmarshalInputStoryAreaType ¶ added in v1.2.3
func UnmarshalInputStoryAreaType(data json.RawMessage) (InputStoryAreaType, error)
func UnmarshalListOfInputStoryAreaType ¶ added in v1.2.3
func UnmarshalListOfInputStoryAreaType(dataList []json.RawMessage) ([]InputStoryAreaType, error)
type InputStoryAreaTypeFoundVenue ¶ added in v1.2.3
type InputStoryAreaTypeFoundVenue struct { // Identifier of the inline query, used to found the venue QueryId JsonInt64 `json:"query_id"` // Identifier of the inline query result ResultId string `json:"result_id"` // contains filtered or unexported fields }
An area pointing to a venue found by the bot getOption("venue_search_bot_username")
func UnmarshalInputStoryAreaTypeFoundVenue ¶ added in v1.2.3
func UnmarshalInputStoryAreaTypeFoundVenue(data json.RawMessage) (*InputStoryAreaTypeFoundVenue, error)
func (*InputStoryAreaTypeFoundVenue) GetClass ¶ added in v1.2.3
func (*InputStoryAreaTypeFoundVenue) GetClass() string
func (*InputStoryAreaTypeFoundVenue) GetType ¶ added in v1.2.3
func (*InputStoryAreaTypeFoundVenue) GetType() string
func (*InputStoryAreaTypeFoundVenue) InputStoryAreaTypeType ¶ added in v1.2.3
func (*InputStoryAreaTypeFoundVenue) InputStoryAreaTypeType() string
func (*InputStoryAreaTypeFoundVenue) MarshalJSON ¶ added in v1.2.3
func (entity *InputStoryAreaTypeFoundVenue) MarshalJSON() ([]byte, error)
type InputStoryAreaTypeLocation ¶ added in v1.2.3
type InputStoryAreaTypeLocation struct { // The location Location *Location `json:"location"` // contains filtered or unexported fields }
An area pointing to a location
func UnmarshalInputStoryAreaTypeLocation ¶ added in v1.2.3
func UnmarshalInputStoryAreaTypeLocation(data json.RawMessage) (*InputStoryAreaTypeLocation, error)
func (*InputStoryAreaTypeLocation) GetClass ¶ added in v1.2.3
func (*InputStoryAreaTypeLocation) GetClass() string
func (*InputStoryAreaTypeLocation) GetType ¶ added in v1.2.3
func (*InputStoryAreaTypeLocation) GetType() string
func (*InputStoryAreaTypeLocation) InputStoryAreaTypeType ¶ added in v1.2.3
func (*InputStoryAreaTypeLocation) InputStoryAreaTypeType() string
func (*InputStoryAreaTypeLocation) MarshalJSON ¶ added in v1.2.3
func (entity *InputStoryAreaTypeLocation) MarshalJSON() ([]byte, error)
type InputStoryAreaTypePreviousVenue ¶ added in v1.2.3
type InputStoryAreaTypePreviousVenue struct { // Provider of the venue VenueProvider string `json:"venue_provider"` // Identifier of the venue in the provider database VenueId string `json:"venue_id"` // contains filtered or unexported fields }
An area pointing to a venue already added to the story
func UnmarshalInputStoryAreaTypePreviousVenue ¶ added in v1.2.3
func UnmarshalInputStoryAreaTypePreviousVenue(data json.RawMessage) (*InputStoryAreaTypePreviousVenue, error)
func (*InputStoryAreaTypePreviousVenue) GetClass ¶ added in v1.2.3
func (*InputStoryAreaTypePreviousVenue) GetClass() string
func (*InputStoryAreaTypePreviousVenue) GetType ¶ added in v1.2.3
func (*InputStoryAreaTypePreviousVenue) GetType() string
func (*InputStoryAreaTypePreviousVenue) InputStoryAreaTypeType ¶ added in v1.2.3
func (*InputStoryAreaTypePreviousVenue) InputStoryAreaTypeType() string
func (*InputStoryAreaTypePreviousVenue) MarshalJSON ¶ added in v1.2.3
func (entity *InputStoryAreaTypePreviousVenue) MarshalJSON() ([]byte, error)
type InputStoryAreas ¶ added in v1.2.3
type InputStoryAreas struct { // List of 0-10 input story areas Areas []*InputStoryArea `json:"areas"` // contains filtered or unexported fields }
Contains a list of story areas to be added
func UnmarshalInputStoryAreas ¶ added in v1.2.3
func UnmarshalInputStoryAreas(data json.RawMessage) (*InputStoryAreas, error)
func (*InputStoryAreas) GetClass ¶ added in v1.2.3
func (*InputStoryAreas) GetClass() string
func (*InputStoryAreas) GetType ¶ added in v1.2.3
func (*InputStoryAreas) GetType() string
func (*InputStoryAreas) MarshalJSON ¶ added in v1.2.3
func (entity *InputStoryAreas) MarshalJSON() ([]byte, error)
type InputStoryContent ¶ added in v1.2.3
type InputStoryContent interface {
InputStoryContentType() string
}
The content of a story to send
func UnmarshalInputStoryContent ¶ added in v1.2.3
func UnmarshalInputStoryContent(data json.RawMessage) (InputStoryContent, error)
func UnmarshalListOfInputStoryContent ¶ added in v1.2.3
func UnmarshalListOfInputStoryContent(dataList []json.RawMessage) ([]InputStoryContent, error)
type InputStoryContentPhoto ¶ added in v1.2.3
type InputStoryContentPhoto struct { // Photo to send. The photo must be at most 10 MB in size. The photo size must be 1080x1920 Photo InputFile `json:"photo"` // File identifiers of the stickers added to the photo, if applicable AddedStickerFileIds []int32 `json:"added_sticker_file_ids"` // contains filtered or unexported fields }
A photo story
func UnmarshalInputStoryContentPhoto ¶ added in v1.2.3
func UnmarshalInputStoryContentPhoto(data json.RawMessage) (*InputStoryContentPhoto, error)
func (*InputStoryContentPhoto) GetClass ¶ added in v1.2.3
func (*InputStoryContentPhoto) GetClass() string
func (*InputStoryContentPhoto) GetType ¶ added in v1.2.3
func (*InputStoryContentPhoto) GetType() string
func (*InputStoryContentPhoto) InputStoryContentType ¶ added in v1.2.3
func (*InputStoryContentPhoto) InputStoryContentType() string
func (*InputStoryContentPhoto) MarshalJSON ¶ added in v1.2.3
func (entity *InputStoryContentPhoto) MarshalJSON() ([]byte, error)
func (*InputStoryContentPhoto) UnmarshalJSON ¶ added in v1.2.3
func (inputStoryContentPhoto *InputStoryContentPhoto) UnmarshalJSON(data []byte) error
type InputStoryContentVideo ¶ added in v1.2.3
type InputStoryContentVideo struct { // Video to be sent. The video size must be 720x1280. The video must be streamable and stored in MPEG4 format, after encoding with x265 codec and key frames added each second Video InputFile `json:"video"` // File identifiers of the stickers added to the video, if applicable AddedStickerFileIds []int32 `json:"added_sticker_file_ids"` // Precise duration of the video, in seconds; 0-60 Duration float64 `json:"duration"` // True, if the video has no sound IsAnimation bool `json:"is_animation"` // contains filtered or unexported fields }
A video story
func UnmarshalInputStoryContentVideo ¶ added in v1.2.3
func UnmarshalInputStoryContentVideo(data json.RawMessage) (*InputStoryContentVideo, error)
func (*InputStoryContentVideo) GetClass ¶ added in v1.2.3
func (*InputStoryContentVideo) GetClass() string
func (*InputStoryContentVideo) GetType ¶ added in v1.2.3
func (*InputStoryContentVideo) GetType() string
func (*InputStoryContentVideo) InputStoryContentType ¶ added in v1.2.3
func (*InputStoryContentVideo) InputStoryContentType() string
func (*InputStoryContentVideo) MarshalJSON ¶ added in v1.2.3
func (entity *InputStoryContentVideo) MarshalJSON() ([]byte, error)
func (*InputStoryContentVideo) UnmarshalJSON ¶ added in v1.2.3
func (inputStoryContentVideo *InputStoryContentVideo) UnmarshalJSON(data []byte) error
type InputThumbnail ¶
type InputThumbnail struct { // Thumbnail file to send. Sending thumbnails by file_id is currently not supported Thumbnail InputFile `json:"thumbnail"` // Thumbnail width, usually shouldn't exceed 320. Use 0 if unknown Width int32 `json:"width"` // Thumbnail height, usually shouldn't exceed 320. Use 0 if unknown Height int32 `json:"height"` // contains filtered or unexported fields }
A thumbnail to be sent along with a file; must be in JPEG or WEBP format for stickers, and less than 200 KB in size
func UnmarshalInputThumbnail ¶
func UnmarshalInputThumbnail(data json.RawMessage) (*InputThumbnail, error)
func (*InputThumbnail) GetClass ¶
func (*InputThumbnail) GetClass() string
func (*InputThumbnail) GetType ¶
func (*InputThumbnail) GetType() string
func (*InputThumbnail) MarshalJSON ¶
func (entity *InputThumbnail) MarshalJSON() ([]byte, error)
func (*InputThumbnail) UnmarshalJSON ¶
func (inputThumbnail *InputThumbnail) UnmarshalJSON(data []byte) error
type InternalLinkType ¶
type InternalLinkType interface {
InternalLinkTypeType() string
}
Describes an internal https://t.me or tg: link, which must be processed by the application in a special way
func UnmarshalInternalLinkType ¶
func UnmarshalInternalLinkType(data json.RawMessage) (InternalLinkType, error)
func UnmarshalListOfInternalLinkType ¶
func UnmarshalListOfInternalLinkType(dataList []json.RawMessage) ([]InternalLinkType, error)
type InternalLinkTypeActiveSessions ¶
type InternalLinkTypeActiveSessions struct {
// contains filtered or unexported fields
}
The link is a link to the active sessions section of the application. Use getActiveSessions to handle the link
func UnmarshalInternalLinkTypeActiveSessions ¶
func UnmarshalInternalLinkTypeActiveSessions(data json.RawMessage) (*InternalLinkTypeActiveSessions, error)
func (*InternalLinkTypeActiveSessions) GetClass ¶
func (*InternalLinkTypeActiveSessions) GetClass() string
func (*InternalLinkTypeActiveSessions) GetType ¶
func (*InternalLinkTypeActiveSessions) GetType() string
func (*InternalLinkTypeActiveSessions) InternalLinkTypeType ¶
func (*InternalLinkTypeActiveSessions) InternalLinkTypeType() string
func (*InternalLinkTypeActiveSessions) MarshalJSON ¶
func (entity *InternalLinkTypeActiveSessions) MarshalJSON() ([]byte, error)
type InternalLinkTypeAttachmentMenuBot ¶ added in v1.0.6
type InternalLinkTypeAttachmentMenuBot struct { // Target chat to be opened TargetChat TargetChat `json:"target_chat"` // Username of the bot BotUsername string `json:"bot_username"` // URL to be passed to openWebApp Url string `json:"url"` // contains filtered or unexported fields }
The link is a link to an attachment menu bot to be opened in the specified or a chosen chat. Process given target_chat to open the chat. Then, call searchPublicChat with the given bot username, check that the user is a bot and can be added to attachment menu. Then, use getAttachmentMenuBot to receive information about the bot. If the bot isn't added to attachment menu, then show a disclaimer about Mini Apps being a third-party apps, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. If the attachment menu bot can't be used in the opened chat, show an error to the user. If the bot is added to attachment menu and can be used in the chat, then use openWebApp with the given URL
func UnmarshalInternalLinkTypeAttachmentMenuBot ¶ added in v1.0.6
func UnmarshalInternalLinkTypeAttachmentMenuBot(data json.RawMessage) (*InternalLinkTypeAttachmentMenuBot, error)
func (*InternalLinkTypeAttachmentMenuBot) GetClass ¶ added in v1.0.6
func (*InternalLinkTypeAttachmentMenuBot) GetClass() string
func (*InternalLinkTypeAttachmentMenuBot) GetType ¶ added in v1.0.6
func (*InternalLinkTypeAttachmentMenuBot) GetType() string
func (*InternalLinkTypeAttachmentMenuBot) InternalLinkTypeType ¶ added in v1.0.6
func (*InternalLinkTypeAttachmentMenuBot) InternalLinkTypeType() string
func (*InternalLinkTypeAttachmentMenuBot) MarshalJSON ¶ added in v1.0.6
func (entity *InternalLinkTypeAttachmentMenuBot) MarshalJSON() ([]byte, error)
func (*InternalLinkTypeAttachmentMenuBot) UnmarshalJSON ¶ added in v1.0.6
func (internalLinkTypeAttachmentMenuBot *InternalLinkTypeAttachmentMenuBot) UnmarshalJSON(data []byte) error
type InternalLinkTypeAuthenticationCode ¶
type InternalLinkTypeAuthenticationCode struct { // The authentication code Code string `json:"code"` // contains filtered or unexported fields }
The link contains an authentication code. Call checkAuthenticationCode with the code if the current authorization state is authorizationStateWaitCode
func UnmarshalInternalLinkTypeAuthenticationCode ¶
func UnmarshalInternalLinkTypeAuthenticationCode(data json.RawMessage) (*InternalLinkTypeAuthenticationCode, error)
func (*InternalLinkTypeAuthenticationCode) GetClass ¶
func (*InternalLinkTypeAuthenticationCode) GetClass() string
func (*InternalLinkTypeAuthenticationCode) GetType ¶
func (*InternalLinkTypeAuthenticationCode) GetType() string
func (*InternalLinkTypeAuthenticationCode) InternalLinkTypeType ¶
func (*InternalLinkTypeAuthenticationCode) InternalLinkTypeType() string
func (*InternalLinkTypeAuthenticationCode) MarshalJSON ¶
func (entity *InternalLinkTypeAuthenticationCode) MarshalJSON() ([]byte, error)
type InternalLinkTypeBackground ¶
type InternalLinkTypeBackground struct { // Name of the background BackgroundName string `json:"background_name"` // contains filtered or unexported fields }
The link is a link to a background. Call searchBackground with the given background name to process the link
func UnmarshalInternalLinkTypeBackground ¶
func UnmarshalInternalLinkTypeBackground(data json.RawMessage) (*InternalLinkTypeBackground, error)
func (*InternalLinkTypeBackground) GetClass ¶
func (*InternalLinkTypeBackground) GetClass() string
func (*InternalLinkTypeBackground) GetType ¶
func (*InternalLinkTypeBackground) GetType() string
func (*InternalLinkTypeBackground) InternalLinkTypeType ¶
func (*InternalLinkTypeBackground) InternalLinkTypeType() string
func (*InternalLinkTypeBackground) MarshalJSON ¶
func (entity *InternalLinkTypeBackground) MarshalJSON() ([]byte, error)
type InternalLinkTypeBotAddToChannel ¶ added in v1.0.6
type InternalLinkTypeBotAddToChannel struct { // Username of the bot BotUsername string `json:"bot_username"` // Expected administrator rights for the bot AdministratorRights *ChatAdministratorRights `json:"administrator_rights"` // contains filtered or unexported fields }
The link is a link to a Telegram bot, which is supposed to be added to a channel chat as an administrator. Call searchPublicChat with the given bot username and check that the user is a bot, ask the current user to select a channel chat to add the bot to as an administrator. Then, call getChatMember to receive the current bot rights in the chat and if the bot already is an administrator, check that the current user can edit its administrator rights and combine received rights with the requested administrator rights. Then, show confirmation box to the user, and call setChatMemberStatus with the chosen chat and confirmed rights
func UnmarshalInternalLinkTypeBotAddToChannel ¶ added in v1.0.6
func UnmarshalInternalLinkTypeBotAddToChannel(data json.RawMessage) (*InternalLinkTypeBotAddToChannel, error)
func (*InternalLinkTypeBotAddToChannel) GetClass ¶ added in v1.0.6
func (*InternalLinkTypeBotAddToChannel) GetClass() string
func (*InternalLinkTypeBotAddToChannel) GetType ¶ added in v1.0.6
func (*InternalLinkTypeBotAddToChannel) GetType() string
func (*InternalLinkTypeBotAddToChannel) InternalLinkTypeType ¶ added in v1.0.6
func (*InternalLinkTypeBotAddToChannel) InternalLinkTypeType() string
func (*InternalLinkTypeBotAddToChannel) MarshalJSON ¶ added in v1.0.6
func (entity *InternalLinkTypeBotAddToChannel) MarshalJSON() ([]byte, error)
type InternalLinkTypeBotStart ¶
type InternalLinkTypeBotStart struct { // Username of the bot BotUsername string `json:"bot_username"` // The parameter to be passed to sendBotStartMessage StartParameter string `json:"start_parameter"` // True, if sendBotStartMessage must be called automatically without showing the START button Autostart bool `json:"autostart"` // contains filtered or unexported fields }
The link is a link to a chat with a Telegram bot. Call searchPublicChat with the given bot username, check that the user is a bot, show START button in the chat with the bot, and then call sendBotStartMessage with the given start parameter after the button is pressed
func UnmarshalInternalLinkTypeBotStart ¶
func UnmarshalInternalLinkTypeBotStart(data json.RawMessage) (*InternalLinkTypeBotStart, error)
func (*InternalLinkTypeBotStart) GetClass ¶
func (*InternalLinkTypeBotStart) GetClass() string
func (*InternalLinkTypeBotStart) GetType ¶
func (*InternalLinkTypeBotStart) GetType() string
func (*InternalLinkTypeBotStart) InternalLinkTypeType ¶
func (*InternalLinkTypeBotStart) InternalLinkTypeType() string
func (*InternalLinkTypeBotStart) MarshalJSON ¶
func (entity *InternalLinkTypeBotStart) MarshalJSON() ([]byte, error)
type InternalLinkTypeBotStartInGroup ¶
type InternalLinkTypeBotStartInGroup struct { // Username of the bot BotUsername string `json:"bot_username"` // The parameter to be passed to sendBotStartMessage StartParameter string `json:"start_parameter"` // Expected administrator rights for the bot; may be null AdministratorRights *ChatAdministratorRights `json:"administrator_rights"` // contains filtered or unexported fields }
The link is a link to a Telegram bot, which is supposed to be added to a group chat. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to groups, ask the current user to select a basic group or a supergroup chat to add the bot to, taking into account that bots can be added to a public supergroup only by administrators of the supergroup. If administrator rights are provided by the link, call getChatMember to receive the current bot rights in the chat and if the bot already is an administrator, check that the current user can edit its administrator rights, combine received rights with the requested administrator rights, show confirmation box to the user, and call setChatMemberStatus with the chosen chat and confirmed administrator rights. Before call to setChatMemberStatus it may be required to upgrade the chosen basic group chat to a supergroup chat. Then, if start_parameter isn't empty, call sendBotStartMessage with the given start parameter and the chosen chat; otherwise, just send /start message with bot's username added to the chat.
func UnmarshalInternalLinkTypeBotStartInGroup ¶
func UnmarshalInternalLinkTypeBotStartInGroup(data json.RawMessage) (*InternalLinkTypeBotStartInGroup, error)
func (*InternalLinkTypeBotStartInGroup) GetClass ¶
func (*InternalLinkTypeBotStartInGroup) GetClass() string
func (*InternalLinkTypeBotStartInGroup) GetType ¶
func (*InternalLinkTypeBotStartInGroup) GetType() string
func (*InternalLinkTypeBotStartInGroup) InternalLinkTypeType ¶
func (*InternalLinkTypeBotStartInGroup) InternalLinkTypeType() string
func (*InternalLinkTypeBotStartInGroup) MarshalJSON ¶
func (entity *InternalLinkTypeBotStartInGroup) MarshalJSON() ([]byte, error)
type InternalLinkTypeChangePhoneNumber ¶
type InternalLinkTypeChangePhoneNumber struct {
// contains filtered or unexported fields
}
The link is a link to the change phone number section of the app
func UnmarshalInternalLinkTypeChangePhoneNumber ¶
func UnmarshalInternalLinkTypeChangePhoneNumber(data json.RawMessage) (*InternalLinkTypeChangePhoneNumber, error)
func (*InternalLinkTypeChangePhoneNumber) GetClass ¶
func (*InternalLinkTypeChangePhoneNumber) GetClass() string
func (*InternalLinkTypeChangePhoneNumber) GetType ¶
func (*InternalLinkTypeChangePhoneNumber) GetType() string
func (*InternalLinkTypeChangePhoneNumber) InternalLinkTypeType ¶
func (*InternalLinkTypeChangePhoneNumber) InternalLinkTypeType() string
func (*InternalLinkTypeChangePhoneNumber) MarshalJSON ¶
func (entity *InternalLinkTypeChangePhoneNumber) MarshalJSON() ([]byte, error)
type InternalLinkTypeChatFolderInvite ¶ added in v1.2.3
type InternalLinkTypeChatFolderInvite struct { // Internal representation of the invite link InviteLink string `json:"invite_link"` // contains filtered or unexported fields }
The link is an invite link to a chat folder. Call checkChatFolderInviteLink with the given invite link to process the link
func UnmarshalInternalLinkTypeChatFolderInvite ¶ added in v1.2.3
func UnmarshalInternalLinkTypeChatFolderInvite(data json.RawMessage) (*InternalLinkTypeChatFolderInvite, error)
func (*InternalLinkTypeChatFolderInvite) GetClass ¶ added in v1.2.3
func (*InternalLinkTypeChatFolderInvite) GetClass() string
func (*InternalLinkTypeChatFolderInvite) GetType ¶ added in v1.2.3
func (*InternalLinkTypeChatFolderInvite) GetType() string
func (*InternalLinkTypeChatFolderInvite) InternalLinkTypeType ¶ added in v1.2.3
func (*InternalLinkTypeChatFolderInvite) InternalLinkTypeType() string
func (*InternalLinkTypeChatFolderInvite) MarshalJSON ¶ added in v1.2.3
func (entity *InternalLinkTypeChatFolderInvite) MarshalJSON() ([]byte, error)
type InternalLinkTypeChatFolderSettings ¶ added in v1.2.3
type InternalLinkTypeChatFolderSettings struct {
// contains filtered or unexported fields
}
The link is a link to the folder section of the app settings
func UnmarshalInternalLinkTypeChatFolderSettings ¶ added in v1.2.3
func UnmarshalInternalLinkTypeChatFolderSettings(data json.RawMessage) (*InternalLinkTypeChatFolderSettings, error)
func (*InternalLinkTypeChatFolderSettings) GetClass ¶ added in v1.2.3
func (*InternalLinkTypeChatFolderSettings) GetClass() string
func (*InternalLinkTypeChatFolderSettings) GetType ¶ added in v1.2.3
func (*InternalLinkTypeChatFolderSettings) GetType() string
func (*InternalLinkTypeChatFolderSettings) InternalLinkTypeType ¶ added in v1.2.3
func (*InternalLinkTypeChatFolderSettings) InternalLinkTypeType() string
func (*InternalLinkTypeChatFolderSettings) MarshalJSON ¶ added in v1.2.3
func (entity *InternalLinkTypeChatFolderSettings) MarshalJSON() ([]byte, error)
type InternalLinkTypeChatInvite ¶
type InternalLinkTypeChatInvite struct { // Internal representation of the invite link InviteLink string `json:"invite_link"` // contains filtered or unexported fields }
The link is a chat invite link. Call checkChatInviteLink with the given invite link to process the link
func UnmarshalInternalLinkTypeChatInvite ¶
func UnmarshalInternalLinkTypeChatInvite(data json.RawMessage) (*InternalLinkTypeChatInvite, error)
func (*InternalLinkTypeChatInvite) GetClass ¶
func (*InternalLinkTypeChatInvite) GetClass() string
func (*InternalLinkTypeChatInvite) GetType ¶
func (*InternalLinkTypeChatInvite) GetType() string
func (*InternalLinkTypeChatInvite) InternalLinkTypeType ¶
func (*InternalLinkTypeChatInvite) InternalLinkTypeType() string
func (*InternalLinkTypeChatInvite) MarshalJSON ¶
func (entity *InternalLinkTypeChatInvite) MarshalJSON() ([]byte, error)
type InternalLinkTypeDefaultMessageAutoDeleteTimerSettings ¶ added in v1.2.3
type InternalLinkTypeDefaultMessageAutoDeleteTimerSettings struct {
// contains filtered or unexported fields
}
The link is a link to the default message auto-delete timer settings section of the app settings
func UnmarshalInternalLinkTypeDefaultMessageAutoDeleteTimerSettings ¶ added in v1.2.3
func UnmarshalInternalLinkTypeDefaultMessageAutoDeleteTimerSettings(data json.RawMessage) (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings, error)
func (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) GetClass ¶ added in v1.2.3
func (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) GetClass() string
func (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) GetType ¶ added in v1.2.3
func (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) GetType() string
func (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) InternalLinkTypeType ¶ added in v1.2.3
func (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) InternalLinkTypeType() string
func (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) MarshalJSON ¶ added in v1.2.3
func (entity *InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) MarshalJSON() ([]byte, error)
type InternalLinkTypeEditProfileSettings ¶ added in v1.2.3
type InternalLinkTypeEditProfileSettings struct {
// contains filtered or unexported fields
}
The link is a link to the edit profile section of the app settings
func UnmarshalInternalLinkTypeEditProfileSettings ¶ added in v1.2.3
func UnmarshalInternalLinkTypeEditProfileSettings(data json.RawMessage) (*InternalLinkTypeEditProfileSettings, error)
func (*InternalLinkTypeEditProfileSettings) GetClass ¶ added in v1.2.3
func (*InternalLinkTypeEditProfileSettings) GetClass() string
func (*InternalLinkTypeEditProfileSettings) GetType ¶ added in v1.2.3
func (*InternalLinkTypeEditProfileSettings) GetType() string
func (*InternalLinkTypeEditProfileSettings) InternalLinkTypeType ¶ added in v1.2.3
func (*InternalLinkTypeEditProfileSettings) InternalLinkTypeType() string
func (*InternalLinkTypeEditProfileSettings) MarshalJSON ¶ added in v1.2.3
func (entity *InternalLinkTypeEditProfileSettings) MarshalJSON() ([]byte, error)
type InternalLinkTypeGame ¶
type InternalLinkTypeGame struct { // Username of the bot that owns the game BotUsername string `json:"bot_username"` // Short name of the game GameShortName string `json:"game_short_name"` // contains filtered or unexported fields }
The link is a link to a game. Call searchPublicChat with the given bot username, check that the user is a bot, ask the current user to select a chat to send the game, and then call sendMessage with inputMessageGame
func UnmarshalInternalLinkTypeGame ¶
func UnmarshalInternalLinkTypeGame(data json.RawMessage) (*InternalLinkTypeGame, error)
func (*InternalLinkTypeGame) GetClass ¶
func (*InternalLinkTypeGame) GetClass() string
func (*InternalLinkTypeGame) GetType ¶
func (*InternalLinkTypeGame) GetType() string
func (*InternalLinkTypeGame) InternalLinkTypeType ¶
func (*InternalLinkTypeGame) InternalLinkTypeType() string
func (*InternalLinkTypeGame) MarshalJSON ¶
func (entity *InternalLinkTypeGame) MarshalJSON() ([]byte, error)
type InternalLinkTypeInstantView ¶ added in v1.2.3
type InternalLinkTypeInstantView struct { // URL to be passed to getWebPageInstantView Url string `json:"url"` // An URL to open if getWebPageInstantView fails FallbackUrl string `json:"fallback_url"` // contains filtered or unexported fields }
The link must be opened in an Instant View. Call getWebPageInstantView with the given URL to process the link
func UnmarshalInternalLinkTypeInstantView ¶ added in v1.2.3
func UnmarshalInternalLinkTypeInstantView(data json.RawMessage) (*InternalLinkTypeInstantView, error)
func (*InternalLinkTypeInstantView) GetClass ¶ added in v1.2.3
func (*InternalLinkTypeInstantView) GetClass() string
func (*InternalLinkTypeInstantView) GetType ¶ added in v1.2.3
func (*InternalLinkTypeInstantView) GetType() string
func (*InternalLinkTypeInstantView) InternalLinkTypeType ¶ added in v1.2.3
func (*InternalLinkTypeInstantView) InternalLinkTypeType() string
func (*InternalLinkTypeInstantView) MarshalJSON ¶ added in v1.2.3
func (entity *InternalLinkTypeInstantView) MarshalJSON() ([]byte, error)
type InternalLinkTypeInvoice ¶ added in v1.2.3
type InternalLinkTypeInvoice struct { // Name of the invoice InvoiceName string `json:"invoice_name"` // contains filtered or unexported fields }
The link is a link to an invoice. Call getPaymentForm with the given invoice name to process the link
func UnmarshalInternalLinkTypeInvoice ¶ added in v1.2.3
func UnmarshalInternalLinkTypeInvoice(data json.RawMessage) (*InternalLinkTypeInvoice, error)
func (*InternalLinkTypeInvoice) GetClass ¶ added in v1.2.3
func (*InternalLinkTypeInvoice) GetClass() string
func (*InternalLinkTypeInvoice) GetType ¶ added in v1.2.3
func (*InternalLinkTypeInvoice) GetType() string
func (*InternalLinkTypeInvoice) InternalLinkTypeType ¶ added in v1.2.3
func (*InternalLinkTypeInvoice) InternalLinkTypeType() string
func (*InternalLinkTypeInvoice) MarshalJSON ¶ added in v1.2.3
func (entity *InternalLinkTypeInvoice) MarshalJSON() ([]byte, error)
type InternalLinkTypeLanguagePack ¶
type InternalLinkTypeLanguagePack struct { // Language pack identifier LanguagePackId string `json:"language_pack_id"` // contains filtered or unexported fields }
The link is a link to a language pack. Call getLanguagePackInfo with the given language pack identifier to process the link
func UnmarshalInternalLinkTypeLanguagePack ¶
func UnmarshalInternalLinkTypeLanguagePack(data json.RawMessage) (*InternalLinkTypeLanguagePack, error)
func (*InternalLinkTypeLanguagePack) GetClass ¶
func (*InternalLinkTypeLanguagePack) GetClass() string
func (*InternalLinkTypeLanguagePack) GetType ¶
func (*InternalLinkTypeLanguagePack) GetType() string
func (*InternalLinkTypeLanguagePack) InternalLinkTypeType ¶
func (*InternalLinkTypeLanguagePack) InternalLinkTypeType() string
func (*InternalLinkTypeLanguagePack) MarshalJSON ¶
func (entity *InternalLinkTypeLanguagePack) MarshalJSON() ([]byte, error)
type InternalLinkTypeLanguageSettings ¶ added in v1.0.6
type InternalLinkTypeLanguageSettings struct {
// contains filtered or unexported fields
}
The link is a link to the language section of the app settings
func UnmarshalInternalLinkTypeLanguageSettings ¶ added in v1.0.6
func UnmarshalInternalLinkTypeLanguageSettings(data json.RawMessage) (*InternalLinkTypeLanguageSettings, error)
func (*InternalLinkTypeLanguageSettings) GetClass ¶ added in v1.0.6
func (*InternalLinkTypeLanguageSettings) GetClass() string
func (*InternalLinkTypeLanguageSettings) GetType ¶ added in v1.0.6
func (*InternalLinkTypeLanguageSettings) GetType() string
func (*InternalLinkTypeLanguageSettings) InternalLinkTypeType ¶ added in v1.0.6
func (*InternalLinkTypeLanguageSettings) InternalLinkTypeType() string
func (*InternalLinkTypeLanguageSettings) MarshalJSON ¶ added in v1.0.6
func (entity *InternalLinkTypeLanguageSettings) MarshalJSON() ([]byte, error)
type InternalLinkTypeMessage ¶
type InternalLinkTypeMessage struct { // URL to be passed to getMessageLinkInfo Url string `json:"url"` // contains filtered or unexported fields }
The link is a link to a Telegram message or a forum topic. Call getMessageLinkInfo with the given URL to process the link
func UnmarshalInternalLinkTypeMessage ¶
func UnmarshalInternalLinkTypeMessage(data json.RawMessage) (*InternalLinkTypeMessage, error)
func (*InternalLinkTypeMessage) GetClass ¶
func (*InternalLinkTypeMessage) GetClass() string
func (*InternalLinkTypeMessage) GetType ¶
func (*InternalLinkTypeMessage) GetType() string
func (*InternalLinkTypeMessage) InternalLinkTypeType ¶
func (*InternalLinkTypeMessage) InternalLinkTypeType() string
func (*InternalLinkTypeMessage) MarshalJSON ¶
func (entity *InternalLinkTypeMessage) MarshalJSON() ([]byte, error)
type InternalLinkTypeMessageDraft ¶
type InternalLinkTypeMessageDraft struct { // Message draft text Text *FormattedText `json:"text"` // True, if the first line of the text contains a link. If true, the input field needs to be focused and the text after the link must be selected ContainsLink bool `json:"contains_link"` // contains filtered or unexported fields }
The link contains a message draft text. A share screen needs to be shown to the user, then the chosen chat must be opened and the text is added to the input field
func UnmarshalInternalLinkTypeMessageDraft ¶
func UnmarshalInternalLinkTypeMessageDraft(data json.RawMessage) (*InternalLinkTypeMessageDraft, error)
func (*InternalLinkTypeMessageDraft) GetClass ¶
func (*InternalLinkTypeMessageDraft) GetClass() string
func (*InternalLinkTypeMessageDraft) GetType ¶
func (*InternalLinkTypeMessageDraft) GetType() string
func (*InternalLinkTypeMessageDraft) InternalLinkTypeType ¶
func (*InternalLinkTypeMessageDraft) InternalLinkTypeType() string
func (*InternalLinkTypeMessageDraft) MarshalJSON ¶
func (entity *InternalLinkTypeMessageDraft) MarshalJSON() ([]byte, error)
type InternalLinkTypePassportDataRequest ¶
type InternalLinkTypePassportDataRequest struct { // User identifier of the service's bot BotUserId int64 `json:"bot_user_id"` // Telegram Passport element types requested by the service Scope string `json:"scope"` // Service's public key PublicKey string `json:"public_key"` // Unique request identifier provided by the service Nonce string `json:"nonce"` // An HTTP URL to open once the request is finished, canceled, or failed with the parameters tg_passport=success, tg_passport=cancel, or tg_passport=error&error=... respectively. If empty, then onActivityResult method must be used to return response on Android, or the link tgbot{bot_user_id}://passport/success or tgbot{bot_user_id}://passport/cancel must be opened otherwise CallbackUrl string `json:"callback_url"` // contains filtered or unexported fields }
The link contains a request of Telegram passport data. Call getPassportAuthorizationForm with the given parameters to process the link if the link was received from outside of the application; otherwise, ignore it
func UnmarshalInternalLinkTypePassportDataRequest ¶
func UnmarshalInternalLinkTypePassportDataRequest(data json.RawMessage) (*InternalLinkTypePassportDataRequest, error)
func (*InternalLinkTypePassportDataRequest) GetClass ¶
func (*InternalLinkTypePassportDataRequest) GetClass() string
func (*InternalLinkTypePassportDataRequest) GetType ¶
func (*InternalLinkTypePassportDataRequest) GetType() string
func (*InternalLinkTypePassportDataRequest) InternalLinkTypeType ¶
func (*InternalLinkTypePassportDataRequest) InternalLinkTypeType() string
func (*InternalLinkTypePassportDataRequest) MarshalJSON ¶
func (entity *InternalLinkTypePassportDataRequest) MarshalJSON() ([]byte, error)
type InternalLinkTypePhoneNumberConfirmation ¶
type InternalLinkTypePhoneNumberConfirmation struct { // Hash value from the link Hash string `json:"hash"` // Phone number value from the link PhoneNumber string `json:"phone_number"` // contains filtered or unexported fields }
The link can be used to confirm ownership of a phone number to prevent account deletion. Call sendPhoneNumberConfirmationCode with the given hash and phone number to process the link
func UnmarshalInternalLinkTypePhoneNumberConfirmation ¶
func UnmarshalInternalLinkTypePhoneNumberConfirmation(data json.RawMessage) (*InternalLinkTypePhoneNumberConfirmation, error)
func (*InternalLinkTypePhoneNumberConfirmation) GetClass ¶
func (*InternalLinkTypePhoneNumberConfirmation) GetClass() string
func (*InternalLinkTypePhoneNumberConfirmation) GetType ¶
func (*InternalLinkTypePhoneNumberConfirmation) GetType() string
func (*InternalLinkTypePhoneNumberConfirmation) InternalLinkTypeType ¶
func (*InternalLinkTypePhoneNumberConfirmation) InternalLinkTypeType() string
func (*InternalLinkTypePhoneNumberConfirmation) MarshalJSON ¶
func (entity *InternalLinkTypePhoneNumberConfirmation) MarshalJSON() ([]byte, error)
type InternalLinkTypePremiumFeatures ¶ added in v1.2.3
type InternalLinkTypePremiumFeatures struct { // Referrer specified in the link Referrer string `json:"referrer"` // contains filtered or unexported fields }
The link is a link to the Premium features screen of the application from which the user can subscribe to Telegram Premium. Call getPremiumFeatures with the given referrer to process the link
func UnmarshalInternalLinkTypePremiumFeatures ¶ added in v1.2.3
func UnmarshalInternalLinkTypePremiumFeatures(data json.RawMessage) (*InternalLinkTypePremiumFeatures, error)
func (*InternalLinkTypePremiumFeatures) GetClass ¶ added in v1.2.3
func (*InternalLinkTypePremiumFeatures) GetClass() string
func (*InternalLinkTypePremiumFeatures) GetType ¶ added in v1.2.3
func (*InternalLinkTypePremiumFeatures) GetType() string
func (*InternalLinkTypePremiumFeatures) InternalLinkTypeType ¶ added in v1.2.3
func (*InternalLinkTypePremiumFeatures) InternalLinkTypeType() string
func (*InternalLinkTypePremiumFeatures) MarshalJSON ¶ added in v1.2.3
func (entity *InternalLinkTypePremiumFeatures) MarshalJSON() ([]byte, error)
type InternalLinkTypePrivacyAndSecuritySettings ¶ added in v1.0.6
type InternalLinkTypePrivacyAndSecuritySettings struct {
// contains filtered or unexported fields
}
The link is a link to the privacy and security section of the app settings
func UnmarshalInternalLinkTypePrivacyAndSecuritySettings ¶ added in v1.0.6
func UnmarshalInternalLinkTypePrivacyAndSecuritySettings(data json.RawMessage) (*InternalLinkTypePrivacyAndSecuritySettings, error)
func (*InternalLinkTypePrivacyAndSecuritySettings) GetClass ¶ added in v1.0.6
func (*InternalLinkTypePrivacyAndSecuritySettings) GetClass() string
func (*InternalLinkTypePrivacyAndSecuritySettings) GetType ¶ added in v1.0.6
func (*InternalLinkTypePrivacyAndSecuritySettings) GetType() string
func (*InternalLinkTypePrivacyAndSecuritySettings) InternalLinkTypeType ¶ added in v1.0.6
func (*InternalLinkTypePrivacyAndSecuritySettings) InternalLinkTypeType() string
func (*InternalLinkTypePrivacyAndSecuritySettings) MarshalJSON ¶ added in v1.0.6
func (entity *InternalLinkTypePrivacyAndSecuritySettings) MarshalJSON() ([]byte, error)
type InternalLinkTypeProxy ¶
type InternalLinkTypeProxy struct { // Proxy server domain or IP address Server string `json:"server"` // Proxy server port Port int32 `json:"port"` // Type of the proxy Type ProxyType `json:"type"` // contains filtered or unexported fields }
The link is a link to a proxy. Call addProxy with the given parameters to process the link and add the proxy
func UnmarshalInternalLinkTypeProxy ¶
func UnmarshalInternalLinkTypeProxy(data json.RawMessage) (*InternalLinkTypeProxy, error)
func (*InternalLinkTypeProxy) GetClass ¶
func (*InternalLinkTypeProxy) GetClass() string
func (*InternalLinkTypeProxy) GetType ¶
func (*InternalLinkTypeProxy) GetType() string
func (*InternalLinkTypeProxy) InternalLinkTypeType ¶
func (*InternalLinkTypeProxy) InternalLinkTypeType() string
func (*InternalLinkTypeProxy) MarshalJSON ¶
func (entity *InternalLinkTypeProxy) MarshalJSON() ([]byte, error)
func (*InternalLinkTypeProxy) UnmarshalJSON ¶
func (internalLinkTypeProxy *InternalLinkTypeProxy) UnmarshalJSON(data []byte) error
type InternalLinkTypePublicChat ¶
type InternalLinkTypePublicChat struct { // Username of the chat ChatUsername string `json:"chat_username"` // contains filtered or unexported fields }
The link is a link to a chat by its username. Call searchPublicChat with the given chat username to process the link
func UnmarshalInternalLinkTypePublicChat ¶
func UnmarshalInternalLinkTypePublicChat(data json.RawMessage) (*InternalLinkTypePublicChat, error)
func (*InternalLinkTypePublicChat) GetClass ¶
func (*InternalLinkTypePublicChat) GetClass() string
func (*InternalLinkTypePublicChat) GetType ¶
func (*InternalLinkTypePublicChat) GetType() string
func (*InternalLinkTypePublicChat) InternalLinkTypeType ¶
func (*InternalLinkTypePublicChat) InternalLinkTypeType() string
func (*InternalLinkTypePublicChat) MarshalJSON ¶
func (entity *InternalLinkTypePublicChat) MarshalJSON() ([]byte, error)
type InternalLinkTypeQrCodeAuthentication ¶
type InternalLinkTypeQrCodeAuthentication struct {
// contains filtered or unexported fields
}
The link can be used to login the current user on another device, but it must be scanned from QR-code using in-app camera. An alert similar to "This code can be used to allow someone to log in to your Telegram account. To confirm Telegram login, please go to Settings > Devices > Scan QR and scan the code" needs to be shown
func UnmarshalInternalLinkTypeQrCodeAuthentication ¶
func UnmarshalInternalLinkTypeQrCodeAuthentication(data json.RawMessage) (*InternalLinkTypeQrCodeAuthentication, error)
func (*InternalLinkTypeQrCodeAuthentication) GetClass ¶
func (*InternalLinkTypeQrCodeAuthentication) GetClass() string
func (*InternalLinkTypeQrCodeAuthentication) GetType ¶
func (*InternalLinkTypeQrCodeAuthentication) GetType() string
func (*InternalLinkTypeQrCodeAuthentication) InternalLinkTypeType ¶
func (*InternalLinkTypeQrCodeAuthentication) InternalLinkTypeType() string
func (*InternalLinkTypeQrCodeAuthentication) MarshalJSON ¶
func (entity *InternalLinkTypeQrCodeAuthentication) MarshalJSON() ([]byte, error)
type InternalLinkTypeRestorePurchases ¶ added in v1.2.3
type InternalLinkTypeRestorePurchases struct {
// contains filtered or unexported fields
}
The link forces restore of App Store purchases when opened. For official iOS application only
func UnmarshalInternalLinkTypeRestorePurchases ¶ added in v1.2.3
func UnmarshalInternalLinkTypeRestorePurchases(data json.RawMessage) (*InternalLinkTypeRestorePurchases, error)
func (*InternalLinkTypeRestorePurchases) GetClass ¶ added in v1.2.3
func (*InternalLinkTypeRestorePurchases) GetClass() string
func (*InternalLinkTypeRestorePurchases) GetType ¶ added in v1.2.3
func (*InternalLinkTypeRestorePurchases) GetType() string
func (*InternalLinkTypeRestorePurchases) InternalLinkTypeType ¶ added in v1.2.3
func (*InternalLinkTypeRestorePurchases) InternalLinkTypeType() string
func (*InternalLinkTypeRestorePurchases) MarshalJSON ¶ added in v1.2.3
func (entity *InternalLinkTypeRestorePurchases) MarshalJSON() ([]byte, error)
type InternalLinkTypeSettings ¶
type InternalLinkTypeSettings struct {
// contains filtered or unexported fields
}
The link is a link to application settings
func UnmarshalInternalLinkTypeSettings ¶
func UnmarshalInternalLinkTypeSettings(data json.RawMessage) (*InternalLinkTypeSettings, error)
func (*InternalLinkTypeSettings) GetClass ¶
func (*InternalLinkTypeSettings) GetClass() string
func (*InternalLinkTypeSettings) GetType ¶
func (*InternalLinkTypeSettings) GetType() string
func (*InternalLinkTypeSettings) InternalLinkTypeType ¶
func (*InternalLinkTypeSettings) InternalLinkTypeType() string
func (*InternalLinkTypeSettings) MarshalJSON ¶
func (entity *InternalLinkTypeSettings) MarshalJSON() ([]byte, error)
type InternalLinkTypeSideMenuBot ¶ added in v1.2.3
type InternalLinkTypeSideMenuBot struct { // Username of the bot BotUsername string `json:"bot_username"` // URL to be passed to getWebAppUrl Url string `json:"url"` // contains filtered or unexported fields }
The link is a link to a bot, which can be installed to the side menu. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to attachment menu. Then, use getAttachmentMenuBot to receive information about the bot. If the bot isn't added to side menu, then show a disclaimer about Mini Apps being a third-party apps, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. If the bot is added to side menu, then use getWebAppUrl with the given URL
func UnmarshalInternalLinkTypeSideMenuBot ¶ added in v1.2.3
func UnmarshalInternalLinkTypeSideMenuBot(data json.RawMessage) (*InternalLinkTypeSideMenuBot, error)
func (*InternalLinkTypeSideMenuBot) GetClass ¶ added in v1.2.3
func (*InternalLinkTypeSideMenuBot) GetClass() string
func (*InternalLinkTypeSideMenuBot) GetType ¶ added in v1.2.3
func (*InternalLinkTypeSideMenuBot) GetType() string
func (*InternalLinkTypeSideMenuBot) InternalLinkTypeType ¶ added in v1.2.3
func (*InternalLinkTypeSideMenuBot) InternalLinkTypeType() string
func (*InternalLinkTypeSideMenuBot) MarshalJSON ¶ added in v1.2.3
func (entity *InternalLinkTypeSideMenuBot) MarshalJSON() ([]byte, error)
type InternalLinkTypeStickerSet ¶
type InternalLinkTypeStickerSet struct { // Name of the sticker set StickerSetName string `json:"sticker_set_name"` // True, if the sticker set is expected to contain custom emoji ExpectCustomEmoji bool `json:"expect_custom_emoji"` // contains filtered or unexported fields }
The link is a link to a sticker set. Call searchStickerSet with the given sticker set name to process the link and show the sticker set
func UnmarshalInternalLinkTypeStickerSet ¶
func UnmarshalInternalLinkTypeStickerSet(data json.RawMessage) (*InternalLinkTypeStickerSet, error)
func (*InternalLinkTypeStickerSet) GetClass ¶
func (*InternalLinkTypeStickerSet) GetClass() string
func (*InternalLinkTypeStickerSet) GetType ¶
func (*InternalLinkTypeStickerSet) GetType() string
func (*InternalLinkTypeStickerSet) InternalLinkTypeType ¶
func (*InternalLinkTypeStickerSet) InternalLinkTypeType() string
func (*InternalLinkTypeStickerSet) MarshalJSON ¶
func (entity *InternalLinkTypeStickerSet) MarshalJSON() ([]byte, error)
type InternalLinkTypeStory ¶ added in v1.2.3
type InternalLinkTypeStory struct { // Username of the sender of the story StorySenderUsername string `json:"story_sender_username"` // Story identifier StoryId int32 `json:"story_id"` // contains filtered or unexported fields }
The link is a link to a story. Call searchPublicChat with the given sender username, then call getStory with the received chat identifier and the given story identifier
func UnmarshalInternalLinkTypeStory ¶ added in v1.2.3
func UnmarshalInternalLinkTypeStory(data json.RawMessage) (*InternalLinkTypeStory, error)
func (*InternalLinkTypeStory) GetClass ¶ added in v1.2.3
func (*InternalLinkTypeStory) GetClass() string
func (*InternalLinkTypeStory) GetType ¶ added in v1.2.3
func (*InternalLinkTypeStory) GetType() string
func (*InternalLinkTypeStory) InternalLinkTypeType ¶ added in v1.2.3
func (*InternalLinkTypeStory) InternalLinkTypeType() string
func (*InternalLinkTypeStory) MarshalJSON ¶ added in v1.2.3
func (entity *InternalLinkTypeStory) MarshalJSON() ([]byte, error)
type InternalLinkTypeTheme ¶
type InternalLinkTypeTheme struct { // Name of the theme ThemeName string `json:"theme_name"` // contains filtered or unexported fields }
The link is a link to a theme. TDLib has no theme support yet
func UnmarshalInternalLinkTypeTheme ¶
func UnmarshalInternalLinkTypeTheme(data json.RawMessage) (*InternalLinkTypeTheme, error)
func (*InternalLinkTypeTheme) GetClass ¶
func (*InternalLinkTypeTheme) GetClass() string
func (*InternalLinkTypeTheme) GetType ¶
func (*InternalLinkTypeTheme) GetType() string
func (*InternalLinkTypeTheme) InternalLinkTypeType ¶
func (*InternalLinkTypeTheme) InternalLinkTypeType() string
func (*InternalLinkTypeTheme) MarshalJSON ¶
func (entity *InternalLinkTypeTheme) MarshalJSON() ([]byte, error)
type InternalLinkTypeThemeSettings ¶
type InternalLinkTypeThemeSettings struct {
// contains filtered or unexported fields
}
The link is a link to the theme section of the app settings
func UnmarshalInternalLinkTypeThemeSettings ¶
func UnmarshalInternalLinkTypeThemeSettings(data json.RawMessage) (*InternalLinkTypeThemeSettings, error)
func (*InternalLinkTypeThemeSettings) GetClass ¶
func (*InternalLinkTypeThemeSettings) GetClass() string
func (*InternalLinkTypeThemeSettings) GetType ¶
func (*InternalLinkTypeThemeSettings) GetType() string
func (*InternalLinkTypeThemeSettings) InternalLinkTypeType ¶
func (*InternalLinkTypeThemeSettings) InternalLinkTypeType() string
func (*InternalLinkTypeThemeSettings) MarshalJSON ¶
func (entity *InternalLinkTypeThemeSettings) MarshalJSON() ([]byte, error)
type InternalLinkTypeUnknownDeepLink ¶
type InternalLinkTypeUnknownDeepLink struct { // Link to be passed to getDeepLinkInfo Link string `json:"link"` // contains filtered or unexported fields }
The link is an unknown tg: link. Call getDeepLinkInfo to process the link
func UnmarshalInternalLinkTypeUnknownDeepLink ¶
func UnmarshalInternalLinkTypeUnknownDeepLink(data json.RawMessage) (*InternalLinkTypeUnknownDeepLink, error)
func (*InternalLinkTypeUnknownDeepLink) GetClass ¶
func (*InternalLinkTypeUnknownDeepLink) GetClass() string
func (*InternalLinkTypeUnknownDeepLink) GetType ¶
func (*InternalLinkTypeUnknownDeepLink) GetType() string
func (*InternalLinkTypeUnknownDeepLink) InternalLinkTypeType ¶
func (*InternalLinkTypeUnknownDeepLink) InternalLinkTypeType() string
func (*InternalLinkTypeUnknownDeepLink) MarshalJSON ¶
func (entity *InternalLinkTypeUnknownDeepLink) MarshalJSON() ([]byte, error)
type InternalLinkTypeUnsupportedProxy ¶
type InternalLinkTypeUnsupportedProxy struct {
// contains filtered or unexported fields
}
The link is a link to an unsupported proxy. An alert can be shown to the user
func UnmarshalInternalLinkTypeUnsupportedProxy ¶
func UnmarshalInternalLinkTypeUnsupportedProxy(data json.RawMessage) (*InternalLinkTypeUnsupportedProxy, error)
func (*InternalLinkTypeUnsupportedProxy) GetClass ¶
func (*InternalLinkTypeUnsupportedProxy) GetClass() string
func (*InternalLinkTypeUnsupportedProxy) GetType ¶
func (*InternalLinkTypeUnsupportedProxy) GetType() string
func (*InternalLinkTypeUnsupportedProxy) InternalLinkTypeType ¶
func (*InternalLinkTypeUnsupportedProxy) InternalLinkTypeType() string
func (*InternalLinkTypeUnsupportedProxy) MarshalJSON ¶
func (entity *InternalLinkTypeUnsupportedProxy) MarshalJSON() ([]byte, error)
type InternalLinkTypeUserPhoneNumber ¶ added in v1.0.6
type InternalLinkTypeUserPhoneNumber struct { // Phone number of the user PhoneNumber string `json:"phone_number"` // contains filtered or unexported fields }
The link is a link to a user by its phone number. Call searchUserByPhoneNumber with the given phone number to process the link
func UnmarshalInternalLinkTypeUserPhoneNumber ¶ added in v1.0.6
func UnmarshalInternalLinkTypeUserPhoneNumber(data json.RawMessage) (*InternalLinkTypeUserPhoneNumber, error)
func (*InternalLinkTypeUserPhoneNumber) GetClass ¶ added in v1.0.6
func (*InternalLinkTypeUserPhoneNumber) GetClass() string
func (*InternalLinkTypeUserPhoneNumber) GetType ¶ added in v1.0.6
func (*InternalLinkTypeUserPhoneNumber) GetType() string
func (*InternalLinkTypeUserPhoneNumber) InternalLinkTypeType ¶ added in v1.0.6
func (*InternalLinkTypeUserPhoneNumber) InternalLinkTypeType() string
func (*InternalLinkTypeUserPhoneNumber) MarshalJSON ¶ added in v1.0.6
func (entity *InternalLinkTypeUserPhoneNumber) MarshalJSON() ([]byte, error)
type InternalLinkTypeUserToken ¶ added in v1.2.3
type InternalLinkTypeUserToken struct { // The token Token string `json:"token"` // contains filtered or unexported fields }
The link is a link to a user by a temporary token. Call searchUserByToken with the given token to process the link
func UnmarshalInternalLinkTypeUserToken ¶ added in v1.2.3
func UnmarshalInternalLinkTypeUserToken(data json.RawMessage) (*InternalLinkTypeUserToken, error)
func (*InternalLinkTypeUserToken) GetClass ¶ added in v1.2.3
func (*InternalLinkTypeUserToken) GetClass() string
func (*InternalLinkTypeUserToken) GetType ¶ added in v1.2.3
func (*InternalLinkTypeUserToken) GetType() string
func (*InternalLinkTypeUserToken) InternalLinkTypeType ¶ added in v1.2.3
func (*InternalLinkTypeUserToken) InternalLinkTypeType() string
func (*InternalLinkTypeUserToken) MarshalJSON ¶ added in v1.2.3
func (entity *InternalLinkTypeUserToken) MarshalJSON() ([]byte, error)
type InternalLinkTypeVideoChat ¶
type InternalLinkTypeVideoChat struct { // Username of the chat with the video chat ChatUsername string `json:"chat_username"` // If non-empty, invite hash to be used to join the video chat without being muted by administrators InviteHash string `json:"invite_hash"` // True, if the video chat is expected to be a live stream in a channel or a broadcast group IsLiveStream bool `json:"is_live_stream"` // contains filtered or unexported fields }
The link is a link to a video chat. Call searchPublicChat with the given chat username, and then joinGroupCall with the given invite hash to process the link
func UnmarshalInternalLinkTypeVideoChat ¶
func UnmarshalInternalLinkTypeVideoChat(data json.RawMessage) (*InternalLinkTypeVideoChat, error)
func (*InternalLinkTypeVideoChat) GetClass ¶
func (*InternalLinkTypeVideoChat) GetClass() string
func (*InternalLinkTypeVideoChat) GetType ¶
func (*InternalLinkTypeVideoChat) GetType() string
func (*InternalLinkTypeVideoChat) InternalLinkTypeType ¶
func (*InternalLinkTypeVideoChat) InternalLinkTypeType() string
func (*InternalLinkTypeVideoChat) MarshalJSON ¶
func (entity *InternalLinkTypeVideoChat) MarshalJSON() ([]byte, error)
type InternalLinkTypeWebApp ¶ added in v1.2.3
type InternalLinkTypeWebApp struct { // Username of the bot that owns the Web App BotUsername string `json:"bot_username"` // Short name of the Web App WebAppShortName string `json:"web_app_short_name"` // Start parameter to be passed to getWebAppLinkUrl StartParameter string `json:"start_parameter"` // contains filtered or unexported fields }
The link is a link to a Web App. Call searchPublicChat with the given bot username, check that the user is a bot, then call searchWebApp with the received bot and the given web_app_short_name. Process received foundWebApp by showing a confirmation dialog if needed. If the bot can be added to attachment or side menu, but isn't added yet, then show a disclaimer about Mini Apps being a third-party apps instead of the dialog and ask the user to accept their Terms of service. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. Then call getWebAppLinkUrl and open the returned URL as a Web App
func UnmarshalInternalLinkTypeWebApp ¶ added in v1.2.3
func UnmarshalInternalLinkTypeWebApp(data json.RawMessage) (*InternalLinkTypeWebApp, error)
func (*InternalLinkTypeWebApp) GetClass ¶ added in v1.2.3
func (*InternalLinkTypeWebApp) GetClass() string
func (*InternalLinkTypeWebApp) GetType ¶ added in v1.2.3
func (*InternalLinkTypeWebApp) GetType() string
func (*InternalLinkTypeWebApp) InternalLinkTypeType ¶ added in v1.2.3
func (*InternalLinkTypeWebApp) InternalLinkTypeType() string
func (*InternalLinkTypeWebApp) MarshalJSON ¶ added in v1.2.3
func (entity *InternalLinkTypeWebApp) MarshalJSON() ([]byte, error)
type InviteLinkChatType ¶ added in v1.2.3
type InviteLinkChatType interface {
InviteLinkChatTypeType() string
}
Describes the type of a chat to which points an invite link
func UnmarshalInviteLinkChatType ¶ added in v1.2.3
func UnmarshalInviteLinkChatType(data json.RawMessage) (InviteLinkChatType, error)
func UnmarshalListOfInviteLinkChatType ¶ added in v1.2.3
func UnmarshalListOfInviteLinkChatType(dataList []json.RawMessage) ([]InviteLinkChatType, error)
type InviteLinkChatTypeBasicGroup ¶ added in v1.2.3
type InviteLinkChatTypeBasicGroup struct {
// contains filtered or unexported fields
}
The link is an invite link for a basic group
func UnmarshalInviteLinkChatTypeBasicGroup ¶ added in v1.2.3
func UnmarshalInviteLinkChatTypeBasicGroup(data json.RawMessage) (*InviteLinkChatTypeBasicGroup, error)
func (*InviteLinkChatTypeBasicGroup) GetClass ¶ added in v1.2.3
func (*InviteLinkChatTypeBasicGroup) GetClass() string
func (*InviteLinkChatTypeBasicGroup) GetType ¶ added in v1.2.3
func (*InviteLinkChatTypeBasicGroup) GetType() string
func (*InviteLinkChatTypeBasicGroup) InviteLinkChatTypeType ¶ added in v1.2.3
func (*InviteLinkChatTypeBasicGroup) InviteLinkChatTypeType() string
func (*InviteLinkChatTypeBasicGroup) MarshalJSON ¶ added in v1.2.3
func (entity *InviteLinkChatTypeBasicGroup) MarshalJSON() ([]byte, error)
type InviteLinkChatTypeChannel ¶ added in v1.2.3
type InviteLinkChatTypeChannel struct {
// contains filtered or unexported fields
}
The link is an invite link for a channel
func UnmarshalInviteLinkChatTypeChannel ¶ added in v1.2.3
func UnmarshalInviteLinkChatTypeChannel(data json.RawMessage) (*InviteLinkChatTypeChannel, error)
func (*InviteLinkChatTypeChannel) GetClass ¶ added in v1.2.3
func (*InviteLinkChatTypeChannel) GetClass() string
func (*InviteLinkChatTypeChannel) GetType ¶ added in v1.2.3
func (*InviteLinkChatTypeChannel) GetType() string
func (*InviteLinkChatTypeChannel) InviteLinkChatTypeType ¶ added in v1.2.3
func (*InviteLinkChatTypeChannel) InviteLinkChatTypeType() string
func (*InviteLinkChatTypeChannel) MarshalJSON ¶ added in v1.2.3
func (entity *InviteLinkChatTypeChannel) MarshalJSON() ([]byte, error)
type InviteLinkChatTypeSupergroup ¶ added in v1.2.3
type InviteLinkChatTypeSupergroup struct {
// contains filtered or unexported fields
}
The link is an invite link for a supergroup
func UnmarshalInviteLinkChatTypeSupergroup ¶ added in v1.2.3
func UnmarshalInviteLinkChatTypeSupergroup(data json.RawMessage) (*InviteLinkChatTypeSupergroup, error)
func (*InviteLinkChatTypeSupergroup) GetClass ¶ added in v1.2.3
func (*InviteLinkChatTypeSupergroup) GetClass() string
func (*InviteLinkChatTypeSupergroup) GetType ¶ added in v1.2.3
func (*InviteLinkChatTypeSupergroup) GetType() string
func (*InviteLinkChatTypeSupergroup) InviteLinkChatTypeType ¶ added in v1.2.3
func (*InviteLinkChatTypeSupergroup) InviteLinkChatTypeType() string
func (*InviteLinkChatTypeSupergroup) MarshalJSON ¶ added in v1.2.3
func (entity *InviteLinkChatTypeSupergroup) MarshalJSON() ([]byte, error)
type Invoice ¶
type Invoice struct { // ISO 4217 currency code Currency string `json:"currency"` // A list of objects used to calculate the total price of the product PriceParts []*LabeledPricePart `json:"price_parts"` // The maximum allowed amount of tip in the smallest units of the currency MaxTipAmount int64 `json:"max_tip_amount"` // Suggested amounts of tip in the smallest units of the currency SuggestedTipAmounts []int64 `json:"suggested_tip_amounts"` // An HTTP URL with terms of service for recurring payments. If non-empty, the invoice payment will result in recurring payments and the user must accept the terms of service before allowed to pay RecurringPaymentTermsOfServiceUrl string `json:"recurring_payment_terms_of_service_url"` // True, if the payment is a test payment IsTest bool `json:"is_test"` // True, if the user's name is needed for payment NeedName bool `json:"need_name"` // True, if the user's phone number is needed for payment NeedPhoneNumber bool `json:"need_phone_number"` // True, if the user's email address is needed for payment NeedEmailAddress bool `json:"need_email_address"` // True, if the user's shipping address is needed for payment NeedShippingAddress bool `json:"need_shipping_address"` // True, if the user's phone number will be sent to the provider SendPhoneNumberToProvider bool `json:"send_phone_number_to_provider"` // True, if the user's email address will be sent to the provider SendEmailAddressToProvider bool `json:"send_email_address_to_provider"` // True, if the total price depends on the shipping method IsFlexible bool `json:"is_flexible"` // contains filtered or unexported fields }
Product invoice
func UnmarshalInvoice ¶
func UnmarshalInvoice(data json.RawMessage) (*Invoice, error)
func (*Invoice) MarshalJSON ¶
type JoinChatByInviteLinkRequest ¶
type JoinChatByInviteLinkRequest struct { // Invite link to use InviteLink string `json:"invite_link"` }
type JoinChatRequest ¶
type JoinChatRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type JoinGroupCallRequest ¶
type JoinGroupCallRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` // Identifier of a group call participant, which will be used to join the call; pass null to join as self; video chats only ParticipantId MessageSender `json:"participant_id"` // Caller audio channel synchronization source identifier; received from tgcalls AudioSourceId int32 `json:"audio_source_id"` // Group call join payload; received from tgcalls Payload string `json:"payload"` // Pass true to join the call with muted microphone IsMuted bool `json:"is_muted"` // Pass true if the user's video is enabled IsMyVideoEnabled bool `json:"is_my_video_enabled"` // If non-empty, invite hash to be used to join the group call without being muted by administrators InviteHash string `json:"invite_hash"` }
type JsonClient ¶
type JsonClient struct {
// contains filtered or unexported fields
}
func NewJsonClient ¶
func NewJsonClient() *JsonClient
func (*JsonClient) Execute ¶
func (jsonClient *JsonClient) Execute(req Request) (*Response, error)
Synchronously executes TDLib request. May be called from any thread. Only a few requests can be executed synchronously. Returned pointer will be deallocated by TDLib during next call to td_json_client_receive or td_json_client_execute in the same thread, so it can't be used after that.
func (*JsonClient) Send ¶
func (jsonClient *JsonClient) Send(req Request)
Sends request to the TDLib client. May be called from any thread.
type JsonInt64 ¶
type JsonInt64 int64
JsonInt64 alias for int64, in order to deal with json big number problem
func (JsonInt64) MarshalJSON ¶
MarshalJSON marshals to json
func (*JsonInt64) UnmarshalJSON ¶
UnmarshalJSON unmarshals from json
type JsonObjectMember ¶
type JsonObjectMember struct { // Member's key Key string `json:"key"` // Member's value Value JsonValue `json:"value"` // contains filtered or unexported fields }
Represents one member of a JSON object
func UnmarshalJsonObjectMember ¶
func UnmarshalJsonObjectMember(data json.RawMessage) (*JsonObjectMember, error)
func (*JsonObjectMember) GetClass ¶
func (*JsonObjectMember) GetClass() string
func (*JsonObjectMember) GetType ¶
func (*JsonObjectMember) GetType() string
func (*JsonObjectMember) MarshalJSON ¶
func (entity *JsonObjectMember) MarshalJSON() ([]byte, error)
func (*JsonObjectMember) UnmarshalJSON ¶
func (jsonObjectMember *JsonObjectMember) UnmarshalJSON(data []byte) error
type JsonValue ¶
type JsonValue interface {
JsonValueType() string
}
Represents a JSON value
func GetJsonValue ¶
func GetJsonValue(req *GetJsonValueRequest) (JsonValue, error)
Converts a JSON-serialized string to corresponding JsonValue object. Can be called synchronously
func UnmarshalJsonValue ¶
func UnmarshalJsonValue(data json.RawMessage) (JsonValue, error)
func UnmarshalListOfJsonValue ¶
func UnmarshalListOfJsonValue(dataList []json.RawMessage) ([]JsonValue, error)
type JsonValueArray ¶
type JsonValueArray struct { // The list of array elements Values []JsonValue `json:"values"` // contains filtered or unexported fields }
Represents a JSON array
func UnmarshalJsonValueArray ¶
func UnmarshalJsonValueArray(data json.RawMessage) (*JsonValueArray, error)
func (*JsonValueArray) GetClass ¶
func (*JsonValueArray) GetClass() string
func (*JsonValueArray) GetType ¶
func (*JsonValueArray) GetType() string
func (*JsonValueArray) JsonValueType ¶
func (*JsonValueArray) JsonValueType() string
func (*JsonValueArray) MarshalJSON ¶
func (entity *JsonValueArray) MarshalJSON() ([]byte, error)
func (*JsonValueArray) UnmarshalJSON ¶
func (jsonValueArray *JsonValueArray) UnmarshalJSON(data []byte) error
type JsonValueBoolean ¶
type JsonValueBoolean struct { // The value Value bool `json:"value"` // contains filtered or unexported fields }
Represents a boolean JSON value
func UnmarshalJsonValueBoolean ¶
func UnmarshalJsonValueBoolean(data json.RawMessage) (*JsonValueBoolean, error)
func (*JsonValueBoolean) GetClass ¶
func (*JsonValueBoolean) GetClass() string
func (*JsonValueBoolean) GetType ¶
func (*JsonValueBoolean) GetType() string
func (*JsonValueBoolean) JsonValueType ¶
func (*JsonValueBoolean) JsonValueType() string
func (*JsonValueBoolean) MarshalJSON ¶
func (entity *JsonValueBoolean) MarshalJSON() ([]byte, error)
type JsonValueNull ¶
type JsonValueNull struct {
// contains filtered or unexported fields
}
Represents a null JSON value
func UnmarshalJsonValueNull ¶
func UnmarshalJsonValueNull(data json.RawMessage) (*JsonValueNull, error)
func (*JsonValueNull) GetClass ¶
func (*JsonValueNull) GetClass() string
func (*JsonValueNull) GetType ¶
func (*JsonValueNull) GetType() string
func (*JsonValueNull) JsonValueType ¶
func (*JsonValueNull) JsonValueType() string
func (*JsonValueNull) MarshalJSON ¶
func (entity *JsonValueNull) MarshalJSON() ([]byte, error)
type JsonValueNumber ¶
type JsonValueNumber struct { // The value Value float64 `json:"value"` // contains filtered or unexported fields }
Represents a numeric JSON value
func UnmarshalJsonValueNumber ¶
func UnmarshalJsonValueNumber(data json.RawMessage) (*JsonValueNumber, error)
func (*JsonValueNumber) GetClass ¶
func (*JsonValueNumber) GetClass() string
func (*JsonValueNumber) GetType ¶
func (*JsonValueNumber) GetType() string
func (*JsonValueNumber) JsonValueType ¶
func (*JsonValueNumber) JsonValueType() string
func (*JsonValueNumber) MarshalJSON ¶
func (entity *JsonValueNumber) MarshalJSON() ([]byte, error)
type JsonValueObject ¶
type JsonValueObject struct { // The list of object members Members []*JsonObjectMember `json:"members"` // contains filtered or unexported fields }
Represents a JSON object
func UnmarshalJsonValueObject ¶
func UnmarshalJsonValueObject(data json.RawMessage) (*JsonValueObject, error)
func (*JsonValueObject) GetClass ¶
func (*JsonValueObject) GetClass() string
func (*JsonValueObject) GetType ¶
func (*JsonValueObject) GetType() string
func (*JsonValueObject) JsonValueType ¶
func (*JsonValueObject) JsonValueType() string
func (*JsonValueObject) MarshalJSON ¶
func (entity *JsonValueObject) MarshalJSON() ([]byte, error)
type JsonValueString ¶
type JsonValueString struct { // The value Value string `json:"value"` // contains filtered or unexported fields }
Represents a string JSON value
func UnmarshalJsonValueString ¶
func UnmarshalJsonValueString(data json.RawMessage) (*JsonValueString, error)
func (*JsonValueString) GetClass ¶
func (*JsonValueString) GetClass() string
func (*JsonValueString) GetType ¶
func (*JsonValueString) GetType() string
func (*JsonValueString) JsonValueType ¶
func (*JsonValueString) JsonValueType() string
func (*JsonValueString) MarshalJSON ¶
func (entity *JsonValueString) MarshalJSON() ([]byte, error)
type KeyboardButton ¶
type KeyboardButton struct { // Text of the button Text string `json:"text"` // Type of the button Type KeyboardButtonType `json:"type"` // contains filtered or unexported fields }
Represents a single button in a bot keyboard
func UnmarshalKeyboardButton ¶
func UnmarshalKeyboardButton(data json.RawMessage) (*KeyboardButton, error)
func (*KeyboardButton) GetClass ¶
func (*KeyboardButton) GetClass() string
func (*KeyboardButton) GetType ¶
func (*KeyboardButton) GetType() string
func (*KeyboardButton) MarshalJSON ¶
func (entity *KeyboardButton) MarshalJSON() ([]byte, error)
func (*KeyboardButton) UnmarshalJSON ¶
func (keyboardButton *KeyboardButton) UnmarshalJSON(data []byte) error
type KeyboardButtonType ¶
type KeyboardButtonType interface {
KeyboardButtonTypeType() string
}
Describes a keyboard button type
func UnmarshalKeyboardButtonType ¶
func UnmarshalKeyboardButtonType(data json.RawMessage) (KeyboardButtonType, error)
func UnmarshalListOfKeyboardButtonType ¶
func UnmarshalListOfKeyboardButtonType(dataList []json.RawMessage) ([]KeyboardButtonType, error)
type KeyboardButtonTypeRequestChat ¶ added in v1.2.3
type KeyboardButtonTypeRequestChat struct { // Unique button identifier Id int32 `json:"id"` // True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared ChatIsChannel bool `json:"chat_is_channel"` // True, if the chat must or must not be a forum supergroup RestrictChatIsForum bool `json:"restrict_chat_is_forum"` // True, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup. Ignored if restrict_chat_is_forum is false ChatIsForum bool `json:"chat_is_forum"` // True, if the chat must or must not have a username RestrictChatHasUsername bool `json:"restrict_chat_has_username"` // True, if the chat must have a username; otherwise, the chat must not have a username. Ignored if restrict_chat_has_username is false ChatHasUsername bool `json:"chat_has_username"` // True, if the chat must be created by the current user ChatIsCreated bool `json:"chat_is_created"` // Expected user administrator rights in the chat; may be null if they aren't restricted UserAdministratorRights *ChatAdministratorRights `json:"user_administrator_rights"` // Expected bot administrator rights in the chat; may be null if they aren't restricted BotAdministratorRights *ChatAdministratorRights `json:"bot_administrator_rights"` // True, if the bot must be a member of the chat; for basic group and supergroup chats only BotIsMember bool `json:"bot_is_member"` // contains filtered or unexported fields }
A button that requests a chat to be shared by the current user; available only in private chats. Use the method shareChatWithBot to complete the request
func UnmarshalKeyboardButtonTypeRequestChat ¶ added in v1.2.3
func UnmarshalKeyboardButtonTypeRequestChat(data json.RawMessage) (*KeyboardButtonTypeRequestChat, error)
func (*KeyboardButtonTypeRequestChat) GetClass ¶ added in v1.2.3
func (*KeyboardButtonTypeRequestChat) GetClass() string
func (*KeyboardButtonTypeRequestChat) GetType ¶ added in v1.2.3
func (*KeyboardButtonTypeRequestChat) GetType() string
func (*KeyboardButtonTypeRequestChat) KeyboardButtonTypeType ¶ added in v1.2.3
func (*KeyboardButtonTypeRequestChat) KeyboardButtonTypeType() string
func (*KeyboardButtonTypeRequestChat) MarshalJSON ¶ added in v1.2.3
func (entity *KeyboardButtonTypeRequestChat) MarshalJSON() ([]byte, error)
type KeyboardButtonTypeRequestLocation ¶
type KeyboardButtonTypeRequestLocation struct {
// contains filtered or unexported fields
}
A button that sends the user's location when pressed; available only in private chats
func UnmarshalKeyboardButtonTypeRequestLocation ¶
func UnmarshalKeyboardButtonTypeRequestLocation(data json.RawMessage) (*KeyboardButtonTypeRequestLocation, error)
func (*KeyboardButtonTypeRequestLocation) GetClass ¶
func (*KeyboardButtonTypeRequestLocation) GetClass() string
func (*KeyboardButtonTypeRequestLocation) GetType ¶
func (*KeyboardButtonTypeRequestLocation) GetType() string
func (*KeyboardButtonTypeRequestLocation) KeyboardButtonTypeType ¶
func (*KeyboardButtonTypeRequestLocation) KeyboardButtonTypeType() string
func (*KeyboardButtonTypeRequestLocation) MarshalJSON ¶
func (entity *KeyboardButtonTypeRequestLocation) MarshalJSON() ([]byte, error)
type KeyboardButtonTypeRequestPhoneNumber ¶
type KeyboardButtonTypeRequestPhoneNumber struct {
// contains filtered or unexported fields
}
A button that sends the user's phone number when pressed; available only in private chats
func UnmarshalKeyboardButtonTypeRequestPhoneNumber ¶
func UnmarshalKeyboardButtonTypeRequestPhoneNumber(data json.RawMessage) (*KeyboardButtonTypeRequestPhoneNumber, error)
func (*KeyboardButtonTypeRequestPhoneNumber) GetClass ¶
func (*KeyboardButtonTypeRequestPhoneNumber) GetClass() string
func (*KeyboardButtonTypeRequestPhoneNumber) GetType ¶
func (*KeyboardButtonTypeRequestPhoneNumber) GetType() string
func (*KeyboardButtonTypeRequestPhoneNumber) KeyboardButtonTypeType ¶
func (*KeyboardButtonTypeRequestPhoneNumber) KeyboardButtonTypeType() string
func (*KeyboardButtonTypeRequestPhoneNumber) MarshalJSON ¶
func (entity *KeyboardButtonTypeRequestPhoneNumber) MarshalJSON() ([]byte, error)
type KeyboardButtonTypeRequestPoll ¶
type KeyboardButtonTypeRequestPoll struct { // If true, only regular polls must be allowed to create ForceRegular bool `json:"force_regular"` // If true, only polls in quiz mode must be allowed to create ForceQuiz bool `json:"force_quiz"` // contains filtered or unexported fields }
A button that allows the user to create and send a poll when pressed; available only in private chats
func UnmarshalKeyboardButtonTypeRequestPoll ¶
func UnmarshalKeyboardButtonTypeRequestPoll(data json.RawMessage) (*KeyboardButtonTypeRequestPoll, error)
func (*KeyboardButtonTypeRequestPoll) GetClass ¶
func (*KeyboardButtonTypeRequestPoll) GetClass() string
func (*KeyboardButtonTypeRequestPoll) GetType ¶
func (*KeyboardButtonTypeRequestPoll) GetType() string
func (*KeyboardButtonTypeRequestPoll) KeyboardButtonTypeType ¶
func (*KeyboardButtonTypeRequestPoll) KeyboardButtonTypeType() string
func (*KeyboardButtonTypeRequestPoll) MarshalJSON ¶
func (entity *KeyboardButtonTypeRequestPoll) MarshalJSON() ([]byte, error)
type KeyboardButtonTypeRequestUser ¶ added in v1.2.3
type KeyboardButtonTypeRequestUser struct { // Unique button identifier Id int32 `json:"id"` // True, if the shared user must or must not be a bot RestrictUserIsBot bool `json:"restrict_user_is_bot"` // True, if the shared user must be a bot; otherwise, the shared user must no be a bot. Ignored if restrict_user_is_bot is false UserIsBot bool `json:"user_is_bot"` // True, if the shared user must or must not be a Telegram Premium user RestrictUserIsPremium bool `json:"restrict_user_is_premium"` // True, if the shared user must be a Telegram Premium user; otherwise, the shared user must no be a Telegram Premium user. Ignored if restrict_user_is_premium is false UserIsPremium bool `json:"user_is_premium"` // contains filtered or unexported fields }
A button that requests a user to be shared by the current user; available only in private chats. Use the method shareUserWithBot to complete the request
func UnmarshalKeyboardButtonTypeRequestUser ¶ added in v1.2.3
func UnmarshalKeyboardButtonTypeRequestUser(data json.RawMessage) (*KeyboardButtonTypeRequestUser, error)
func (*KeyboardButtonTypeRequestUser) GetClass ¶ added in v1.2.3
func (*KeyboardButtonTypeRequestUser) GetClass() string
func (*KeyboardButtonTypeRequestUser) GetType ¶ added in v1.2.3
func (*KeyboardButtonTypeRequestUser) GetType() string
func (*KeyboardButtonTypeRequestUser) KeyboardButtonTypeType ¶ added in v1.2.3
func (*KeyboardButtonTypeRequestUser) KeyboardButtonTypeType() string
func (*KeyboardButtonTypeRequestUser) MarshalJSON ¶ added in v1.2.3
func (entity *KeyboardButtonTypeRequestUser) MarshalJSON() ([]byte, error)
type KeyboardButtonTypeText ¶
type KeyboardButtonTypeText struct {
// contains filtered or unexported fields
}
A simple button, with text that must be sent when the button is pressed
func UnmarshalKeyboardButtonTypeText ¶
func UnmarshalKeyboardButtonTypeText(data json.RawMessage) (*KeyboardButtonTypeText, error)
func (*KeyboardButtonTypeText) GetClass ¶
func (*KeyboardButtonTypeText) GetClass() string
func (*KeyboardButtonTypeText) GetType ¶
func (*KeyboardButtonTypeText) GetType() string
func (*KeyboardButtonTypeText) KeyboardButtonTypeType ¶
func (*KeyboardButtonTypeText) KeyboardButtonTypeType() string
func (*KeyboardButtonTypeText) MarshalJSON ¶
func (entity *KeyboardButtonTypeText) MarshalJSON() ([]byte, error)
type KeyboardButtonTypeWebApp ¶ added in v1.0.6
type KeyboardButtonTypeWebApp struct { // An HTTP URL to pass to getWebAppUrl Url string `json:"url"` // contains filtered or unexported fields }
A button that opens a Web App by calling getWebAppUrl
func UnmarshalKeyboardButtonTypeWebApp ¶ added in v1.0.6
func UnmarshalKeyboardButtonTypeWebApp(data json.RawMessage) (*KeyboardButtonTypeWebApp, error)
func (*KeyboardButtonTypeWebApp) GetClass ¶ added in v1.0.6
func (*KeyboardButtonTypeWebApp) GetClass() string
func (*KeyboardButtonTypeWebApp) GetType ¶ added in v1.0.6
func (*KeyboardButtonTypeWebApp) GetType() string
func (*KeyboardButtonTypeWebApp) KeyboardButtonTypeType ¶ added in v1.0.6
func (*KeyboardButtonTypeWebApp) KeyboardButtonTypeType() string
func (*KeyboardButtonTypeWebApp) MarshalJSON ¶ added in v1.0.6
func (entity *KeyboardButtonTypeWebApp) MarshalJSON() ([]byte, error)
type LabeledPricePart ¶
type LabeledPricePart struct { // Label for this portion of the product price Label string `json:"label"` // Currency amount in the smallest units of the currency Amount int64 `json:"amount"` // contains filtered or unexported fields }
Portion of the price of a product (e.g., "delivery cost", "tax amount")
func UnmarshalLabeledPricePart ¶
func UnmarshalLabeledPricePart(data json.RawMessage) (*LabeledPricePart, error)
func (*LabeledPricePart) GetClass ¶
func (*LabeledPricePart) GetClass() string
func (*LabeledPricePart) GetType ¶
func (*LabeledPricePart) GetType() string
func (*LabeledPricePart) MarshalJSON ¶
func (entity *LabeledPricePart) MarshalJSON() ([]byte, error)
type LanguagePackInfo ¶
type LanguagePackInfo struct { // Unique language pack identifier Id string `json:"id"` // Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it must be fetched from base language pack. Unsupported in custom language packs BaseLanguagePackId string `json:"base_language_pack_id"` // Language name Name string `json:"name"` // Name of the language in that language NativeName string `json:"native_name"` // A language code to be used to apply plural forms. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information PluralCode string `json:"plural_code"` // True, if the language pack is official IsOfficial bool `json:"is_official"` // True, if the language pack strings are RTL IsRtl bool `json:"is_rtl"` // True, if the language pack is a beta language pack IsBeta bool `json:"is_beta"` // True, if the language pack is installed by the current user IsInstalled bool `json:"is_installed"` // Total number of non-deleted strings from the language pack TotalStringCount int32 `json:"total_string_count"` // Total number of translated strings from the language pack TranslatedStringCount int32 `json:"translated_string_count"` // Total number of non-deleted strings from the language pack available locally LocalStringCount int32 `json:"local_string_count"` // Link to language translation interface; empty for custom local language packs TranslationUrl string `json:"translation_url"` // contains filtered or unexported fields }
Contains information about a language pack
func UnmarshalLanguagePackInfo ¶
func UnmarshalLanguagePackInfo(data json.RawMessage) (*LanguagePackInfo, error)
func (*LanguagePackInfo) GetClass ¶
func (*LanguagePackInfo) GetClass() string
func (*LanguagePackInfo) GetType ¶
func (*LanguagePackInfo) GetType() string
func (*LanguagePackInfo) MarshalJSON ¶
func (entity *LanguagePackInfo) MarshalJSON() ([]byte, error)
type LanguagePackString ¶
type LanguagePackString struct { // String key Key string `json:"key"` // String value; pass null if the string needs to be taken from the built-in English language pack Value LanguagePackStringValue `json:"value"` // contains filtered or unexported fields }
Represents one language pack string
func UnmarshalLanguagePackString ¶
func UnmarshalLanguagePackString(data json.RawMessage) (*LanguagePackString, error)
func (*LanguagePackString) GetClass ¶
func (*LanguagePackString) GetClass() string
func (*LanguagePackString) GetType ¶
func (*LanguagePackString) GetType() string
func (*LanguagePackString) MarshalJSON ¶
func (entity *LanguagePackString) MarshalJSON() ([]byte, error)
func (*LanguagePackString) UnmarshalJSON ¶
func (languagePackString *LanguagePackString) UnmarshalJSON(data []byte) error
type LanguagePackStringValue ¶
type LanguagePackStringValue interface {
LanguagePackStringValueType() string
}
Represents the value of a string in a language pack
func GetLanguagePackString ¶
func GetLanguagePackString(req *GetLanguagePackStringRequest) (LanguagePackStringValue, error)
Returns a string stored in the local database from the specified localization target and language pack by its key. Returns a 404 error if the string is not found. Can be called synchronously
func UnmarshalLanguagePackStringValue ¶
func UnmarshalLanguagePackStringValue(data json.RawMessage) (LanguagePackStringValue, error)
func UnmarshalListOfLanguagePackStringValue ¶
func UnmarshalListOfLanguagePackStringValue(dataList []json.RawMessage) ([]LanguagePackStringValue, error)
type LanguagePackStringValueDeleted ¶
type LanguagePackStringValueDeleted struct {
// contains filtered or unexported fields
}
A deleted language pack string, the value must be taken from the built-in English language pack
func UnmarshalLanguagePackStringValueDeleted ¶
func UnmarshalLanguagePackStringValueDeleted(data json.RawMessage) (*LanguagePackStringValueDeleted, error)
func (*LanguagePackStringValueDeleted) GetClass ¶
func (*LanguagePackStringValueDeleted) GetClass() string
func (*LanguagePackStringValueDeleted) GetType ¶
func (*LanguagePackStringValueDeleted) GetType() string
func (*LanguagePackStringValueDeleted) LanguagePackStringValueType ¶
func (*LanguagePackStringValueDeleted) LanguagePackStringValueType() string
func (*LanguagePackStringValueDeleted) MarshalJSON ¶
func (entity *LanguagePackStringValueDeleted) MarshalJSON() ([]byte, error)
type LanguagePackStringValueOrdinary ¶
type LanguagePackStringValueOrdinary struct { // String value Value string `json:"value"` // contains filtered or unexported fields }
An ordinary language pack string
func UnmarshalLanguagePackStringValueOrdinary ¶
func UnmarshalLanguagePackStringValueOrdinary(data json.RawMessage) (*LanguagePackStringValueOrdinary, error)
func (*LanguagePackStringValueOrdinary) GetClass ¶
func (*LanguagePackStringValueOrdinary) GetClass() string
func (*LanguagePackStringValueOrdinary) GetType ¶
func (*LanguagePackStringValueOrdinary) GetType() string
func (*LanguagePackStringValueOrdinary) LanguagePackStringValueType ¶
func (*LanguagePackStringValueOrdinary) LanguagePackStringValueType() string
func (*LanguagePackStringValueOrdinary) MarshalJSON ¶
func (entity *LanguagePackStringValueOrdinary) MarshalJSON() ([]byte, error)
type LanguagePackStringValuePluralized ¶
type LanguagePackStringValuePluralized struct { // Value for zero objects ZeroValue string `json:"zero_value"` // Value for one object OneValue string `json:"one_value"` // Value for two objects TwoValue string `json:"two_value"` // Value for few objects FewValue string `json:"few_value"` // Value for many objects ManyValue string `json:"many_value"` // Default value OtherValue string `json:"other_value"` // contains filtered or unexported fields }
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 information
func UnmarshalLanguagePackStringValuePluralized ¶
func UnmarshalLanguagePackStringValuePluralized(data json.RawMessage) (*LanguagePackStringValuePluralized, error)
func (*LanguagePackStringValuePluralized) GetClass ¶
func (*LanguagePackStringValuePluralized) GetClass() string
func (*LanguagePackStringValuePluralized) GetType ¶
func (*LanguagePackStringValuePluralized) GetType() string
func (*LanguagePackStringValuePluralized) LanguagePackStringValueType ¶
func (*LanguagePackStringValuePluralized) LanguagePackStringValueType() string
func (*LanguagePackStringValuePluralized) MarshalJSON ¶
func (entity *LanguagePackStringValuePluralized) MarshalJSON() ([]byte, error)
type LanguagePackStrings ¶
type LanguagePackStrings struct { // A list of language pack strings Strings []*LanguagePackString `json:"strings"` // contains filtered or unexported fields }
Contains a list of language pack strings
func UnmarshalLanguagePackStrings ¶
func UnmarshalLanguagePackStrings(data json.RawMessage) (*LanguagePackStrings, error)
func (*LanguagePackStrings) GetClass ¶
func (*LanguagePackStrings) GetClass() string
func (*LanguagePackStrings) GetType ¶
func (*LanguagePackStrings) GetType() string
func (*LanguagePackStrings) MarshalJSON ¶
func (entity *LanguagePackStrings) MarshalJSON() ([]byte, error)
type LeaveChatRequest ¶
type LeaveChatRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type LeaveGroupCallRequest ¶
type LeaveGroupCallRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` }
type Listener ¶
type LoadActiveStoriesRequest ¶ added in v1.2.3
type LoadActiveStoriesRequest struct { // The story list in which to load active stories StoryList StoryList `json:"story_list"` }
type LoadChatsRequest ¶
type LoadChatsRequest struct { // The chat list in which to load chats; pass null to load chats from the main chat list ChatList ChatList `json:"chat_list"` // The maximum number of chats to be loaded. For optimal performance, the number of loaded chats is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached Limit int32 `json:"limit"` }
type LocalFile ¶
type LocalFile struct { // Local path to the locally available file part; may be empty Path string `json:"path"` // True, if it is possible to download or generate the file CanBeDownloaded bool `json:"can_be_downloaded"` // True, if the file can be deleted CanBeDeleted bool `json:"can_be_deleted"` // True, if the file is currently being downloaded (or a local copy is being generated by some other means) IsDownloadingActive bool `json:"is_downloading_active"` // True, if the local copy is fully available IsDownloadingCompleted bool `json:"is_downloading_completed"` // Download will be started from this offset. downloaded_prefix_size is calculated from this offset DownloadOffset int64 `json:"download_offset"` // If is_downloading_completed is false, then only some prefix of the file starting from download_offset is ready to be read. downloaded_prefix_size is the size of that prefix in bytes DownloadedPrefixSize int64 `json:"downloaded_prefix_size"` // Total downloaded file size, in bytes. Can be used only for calculating download progress. The actual file size may be bigger, and some parts of it may contain garbage DownloadedSize int64 `json:"downloaded_size"` // contains filtered or unexported fields }
Represents a local file
func UnmarshalLocalFile ¶
func UnmarshalLocalFile(data json.RawMessage) (*LocalFile, error)
func (*LocalFile) MarshalJSON ¶
type LocalizationTargetInfo ¶
type LocalizationTargetInfo struct { // List of available language packs for this application LanguagePacks []*LanguagePackInfo `json:"language_packs"` // contains filtered or unexported fields }
Contains information about the current localization target
func UnmarshalLocalizationTargetInfo ¶
func UnmarshalLocalizationTargetInfo(data json.RawMessage) (*LocalizationTargetInfo, error)
func (*LocalizationTargetInfo) GetClass ¶
func (*LocalizationTargetInfo) GetClass() string
func (*LocalizationTargetInfo) GetType ¶
func (*LocalizationTargetInfo) GetType() string
func (*LocalizationTargetInfo) MarshalJSON ¶
func (entity *LocalizationTargetInfo) MarshalJSON() ([]byte, error)
type Location ¶
type Location struct { // Latitude of the location in degrees; as defined by the sender Latitude float64 `json:"latitude"` // Longitude of the location, in degrees; as defined by the sender Longitude float64 `json:"longitude"` // The estimated horizontal accuracy of the location, in meters; as defined by the sender. 0 if unknown HorizontalAccuracy float64 `json:"horizontal_accuracy"` // contains filtered or unexported fields }
Describes a location on planet Earth
func UnmarshalLocation ¶
func UnmarshalLocation(data json.RawMessage) (*Location, error)
func (*Location) MarshalJSON ¶
type LogStream ¶
type LogStream interface {
LogStreamType() string
}
Describes a stream to which TDLib internal log is written
func GetLogStream ¶
Returns information about currently used log stream for internal logging of TDLib. Can be called synchronously
func UnmarshalListOfLogStream ¶
func UnmarshalListOfLogStream(dataList []json.RawMessage) ([]LogStream, error)
func UnmarshalLogStream ¶
func UnmarshalLogStream(data json.RawMessage) (LogStream, error)
type LogStreamDefault ¶
type LogStreamDefault struct {
// contains filtered or unexported fields
}
The log is written to stderr or an OS specific log
func UnmarshalLogStreamDefault ¶
func UnmarshalLogStreamDefault(data json.RawMessage) (*LogStreamDefault, error)
func (*LogStreamDefault) GetClass ¶
func (*LogStreamDefault) GetClass() string
func (*LogStreamDefault) GetType ¶
func (*LogStreamDefault) GetType() string
func (*LogStreamDefault) LogStreamType ¶
func (*LogStreamDefault) LogStreamType() string
func (*LogStreamDefault) MarshalJSON ¶
func (entity *LogStreamDefault) MarshalJSON() ([]byte, error)
type LogStreamEmpty ¶
type LogStreamEmpty struct {
// contains filtered or unexported fields
}
The log is written nowhere
func UnmarshalLogStreamEmpty ¶
func UnmarshalLogStreamEmpty(data json.RawMessage) (*LogStreamEmpty, error)
func (*LogStreamEmpty) GetClass ¶
func (*LogStreamEmpty) GetClass() string
func (*LogStreamEmpty) GetType ¶
func (*LogStreamEmpty) GetType() string
func (*LogStreamEmpty) LogStreamType ¶
func (*LogStreamEmpty) LogStreamType() string
func (*LogStreamEmpty) MarshalJSON ¶
func (entity *LogStreamEmpty) MarshalJSON() ([]byte, error)
type LogStreamFile ¶
type LogStreamFile struct { // Path to the file to where the internal TDLib log will be written Path string `json:"path"` // The maximum size of the file to where the internal TDLib log is written before the file will automatically be rotated, in bytes MaxFileSize int64 `json:"max_file_size"` // Pass true to additionally redirect stderr to the log file. Ignored on Windows RedirectStderr bool `json:"redirect_stderr"` // contains filtered or unexported fields }
The log is written to a file
func UnmarshalLogStreamFile ¶
func UnmarshalLogStreamFile(data json.RawMessage) (*LogStreamFile, error)
func (*LogStreamFile) GetClass ¶
func (*LogStreamFile) GetClass() string
func (*LogStreamFile) GetType ¶
func (*LogStreamFile) GetType() string
func (*LogStreamFile) LogStreamType ¶
func (*LogStreamFile) LogStreamType() string
func (*LogStreamFile) MarshalJSON ¶
func (entity *LogStreamFile) MarshalJSON() ([]byte, error)
type LogTags ¶
type LogTags struct { // List of log tags Tags []string `json:"tags"` // contains filtered or unexported fields }
Contains a list of available TDLib internal log tags
func GetLogTags ¶
Returns list of available TDLib internal log tags, for example, ["actor", "binlog", "connections", "notifications", "proxy"]. Can be called synchronously
func UnmarshalLogTags ¶
func UnmarshalLogTags(data json.RawMessage) (*LogTags, error)
func (*LogTags) MarshalJSON ¶
type LogVerbosityLevel ¶
type LogVerbosityLevel struct { // Log verbosity level VerbosityLevel int32 `json:"verbosity_level"` // contains filtered or unexported fields }
Contains a TDLib internal log verbosity level
func GetLogTagVerbosityLevel ¶
func GetLogTagVerbosityLevel(req *GetLogTagVerbosityLevelRequest) (*LogVerbosityLevel, error)
Returns current verbosity level for a specified TDLib internal log tag. Can be called synchronously
func GetLogVerbosityLevel ¶
func GetLogVerbosityLevel() (*LogVerbosityLevel, error)
Returns current verbosity level of the internal logging of TDLib. Can be called synchronously
func UnmarshalLogVerbosityLevel ¶
func UnmarshalLogVerbosityLevel(data json.RawMessage) (*LogVerbosityLevel, error)
func (*LogVerbosityLevel) GetClass ¶
func (*LogVerbosityLevel) GetClass() string
func (*LogVerbosityLevel) GetType ¶
func (*LogVerbosityLevel) GetType() string
func (*LogVerbosityLevel) MarshalJSON ¶
func (entity *LogVerbosityLevel) MarshalJSON() ([]byte, error)
type LoginUrlInfo ¶
type LoginUrlInfo interface {
LoginUrlInfoType() string
}
Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl
func UnmarshalListOfLoginUrlInfo ¶
func UnmarshalListOfLoginUrlInfo(dataList []json.RawMessage) ([]LoginUrlInfo, error)
func UnmarshalLoginUrlInfo ¶
func UnmarshalLoginUrlInfo(data json.RawMessage) (LoginUrlInfo, error)
type LoginUrlInfoOpen ¶
type LoginUrlInfoOpen struct { // The URL to open Url string `json:"url"` // True, if there is no need to show an ordinary open URL confirmation SkipConfirmation bool `json:"skip_confirmation"` // contains filtered or unexported fields }
An HTTP URL needs to be open
func UnmarshalLoginUrlInfoOpen ¶
func UnmarshalLoginUrlInfoOpen(data json.RawMessage) (*LoginUrlInfoOpen, error)
func (*LoginUrlInfoOpen) GetClass ¶
func (*LoginUrlInfoOpen) GetClass() string
func (*LoginUrlInfoOpen) GetType ¶
func (*LoginUrlInfoOpen) GetType() string
func (*LoginUrlInfoOpen) LoginUrlInfoType ¶
func (*LoginUrlInfoOpen) LoginUrlInfoType() string
func (*LoginUrlInfoOpen) MarshalJSON ¶
func (entity *LoginUrlInfoOpen) MarshalJSON() ([]byte, error)
type LoginUrlInfoRequestConfirmation ¶
type LoginUrlInfoRequestConfirmation struct { // An HTTP URL to be opened Url string `json:"url"` // A domain of the URL Domain string `json:"domain"` // User identifier of a bot linked with the website BotUserId int64 `json:"bot_user_id"` // True, if the user must be asked for the permission to the bot to send them messages RequestWriteAccess bool `json:"request_write_access"` // contains filtered or unexported fields }
An authorization confirmation dialog needs to be shown to the user
func UnmarshalLoginUrlInfoRequestConfirmation ¶
func UnmarshalLoginUrlInfoRequestConfirmation(data json.RawMessage) (*LoginUrlInfoRequestConfirmation, error)
func (*LoginUrlInfoRequestConfirmation) GetClass ¶
func (*LoginUrlInfoRequestConfirmation) GetClass() string
func (*LoginUrlInfoRequestConfirmation) GetType ¶
func (*LoginUrlInfoRequestConfirmation) GetType() string
func (*LoginUrlInfoRequestConfirmation) LoginUrlInfoType ¶
func (*LoginUrlInfoRequestConfirmation) LoginUrlInfoType() string
func (*LoginUrlInfoRequestConfirmation) MarshalJSON ¶
func (entity *LoginUrlInfoRequestConfirmation) MarshalJSON() ([]byte, error)
type MaskPoint ¶
type MaskPoint interface {
MaskPointType() string
}
Part of the face, relative to which a mask is placed
func UnmarshalListOfMaskPoint ¶
func UnmarshalListOfMaskPoint(dataList []json.RawMessage) ([]MaskPoint, error)
func UnmarshalMaskPoint ¶
func UnmarshalMaskPoint(data json.RawMessage) (MaskPoint, error)
type MaskPointChin ¶
type MaskPointChin struct {
// contains filtered or unexported fields
}
The mask is placed relatively to the chin
func UnmarshalMaskPointChin ¶
func UnmarshalMaskPointChin(data json.RawMessage) (*MaskPointChin, error)
func (*MaskPointChin) GetClass ¶
func (*MaskPointChin) GetClass() string
func (*MaskPointChin) GetType ¶
func (*MaskPointChin) GetType() string
func (*MaskPointChin) MarshalJSON ¶
func (entity *MaskPointChin) MarshalJSON() ([]byte, error)
func (*MaskPointChin) MaskPointType ¶
func (*MaskPointChin) MaskPointType() string
type MaskPointEyes ¶
type MaskPointEyes struct {
// contains filtered or unexported fields
}
The mask is placed relatively to the eyes
func UnmarshalMaskPointEyes ¶
func UnmarshalMaskPointEyes(data json.RawMessage) (*MaskPointEyes, error)
func (*MaskPointEyes) GetClass ¶
func (*MaskPointEyes) GetClass() string
func (*MaskPointEyes) GetType ¶
func (*MaskPointEyes) GetType() string
func (*MaskPointEyes) MarshalJSON ¶
func (entity *MaskPointEyes) MarshalJSON() ([]byte, error)
func (*MaskPointEyes) MaskPointType ¶
func (*MaskPointEyes) MaskPointType() string
type MaskPointForehead ¶
type MaskPointForehead struct {
// contains filtered or unexported fields
}
The mask is placed relatively to the forehead
func UnmarshalMaskPointForehead ¶
func UnmarshalMaskPointForehead(data json.RawMessage) (*MaskPointForehead, error)
func (*MaskPointForehead) GetClass ¶
func (*MaskPointForehead) GetClass() string
func (*MaskPointForehead) GetType ¶
func (*MaskPointForehead) GetType() string
func (*MaskPointForehead) MarshalJSON ¶
func (entity *MaskPointForehead) MarshalJSON() ([]byte, error)
func (*MaskPointForehead) MaskPointType ¶
func (*MaskPointForehead) MaskPointType() string
type MaskPointMouth ¶
type MaskPointMouth struct {
// contains filtered or unexported fields
}
The mask is placed relatively to the mouth
func UnmarshalMaskPointMouth ¶
func UnmarshalMaskPointMouth(data json.RawMessage) (*MaskPointMouth, error)
func (*MaskPointMouth) GetClass ¶
func (*MaskPointMouth) GetClass() string
func (*MaskPointMouth) GetType ¶
func (*MaskPointMouth) GetType() string
func (*MaskPointMouth) MarshalJSON ¶
func (entity *MaskPointMouth) MarshalJSON() ([]byte, error)
func (*MaskPointMouth) MaskPointType ¶
func (*MaskPointMouth) MaskPointType() string
type MaskPosition ¶
type MaskPosition struct { // Part of the face, relative to which the mask is placed Point MaskPoint `json:"point"` // Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position) XShift float64 `json:"x_shift"` // Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. (For example, 1.0 will place the mask just below the default mask position) YShift float64 `json:"y_shift"` // Mask scaling coefficient. (For example, 2.0 means a doubled size) Scale float64 `json:"scale"` // contains filtered or unexported fields }
Position on a photo where a mask is placed
func UnmarshalMaskPosition ¶
func UnmarshalMaskPosition(data json.RawMessage) (*MaskPosition, error)
func (*MaskPosition) GetClass ¶
func (*MaskPosition) GetClass() string
func (*MaskPosition) GetType ¶
func (*MaskPosition) GetType() string
func (*MaskPosition) MarshalJSON ¶
func (entity *MaskPosition) MarshalJSON() ([]byte, error)
func (*MaskPosition) UnmarshalJSON ¶
func (maskPosition *MaskPosition) UnmarshalJSON(data []byte) error
type Message ¶
type Message struct { // Message identifier; unique for the chat to which the message belongs Id int64 `json:"id"` // Identifier of the sender of the message SenderId MessageSender `json:"sender_id"` // Chat identifier ChatId int64 `json:"chat_id"` // The sending state of the message; may be null if the message isn't being sent and didn't fail to be sent SendingState MessageSendingState `json:"sending_state"` // The scheduling state of the message; may be null if the message isn't scheduled SchedulingState MessageSchedulingState `json:"scheduling_state"` // True, if the message is outgoing IsOutgoing bool `json:"is_outgoing"` // True, if the message is pinned IsPinned bool `json:"is_pinned"` // True, if the message can be edited. For live location and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this message by the application CanBeEdited bool `json:"can_be_edited"` // True, if the message can be forwarded CanBeForwarded bool `json:"can_be_forwarded"` // True, if content of the message can be saved locally or copied CanBeSaved bool `json:"can_be_saved"` // True, if the message can be deleted only for the current user while other users will continue to see it CanBeDeletedOnlyForSelf bool `json:"can_be_deleted_only_for_self"` // True, if the message can be deleted for all users CanBeDeletedForAllUsers bool `json:"can_be_deleted_for_all_users"` // True, if the list of added reactions is available through getMessageAddedReactions CanGetAddedReactions bool `json:"can_get_added_reactions"` // True, if the message statistics are available through getMessageStatistics CanGetStatistics bool `json:"can_get_statistics"` // True, if information about the message thread is available through getMessageThread and getMessageThreadHistory CanGetMessageThread bool `json:"can_get_message_thread"` // True, if chat members already viewed the message can be received through getMessageViewers CanGetViewers bool `json:"can_get_viewers"` // True, if media timestamp links can be generated for media timestamp entities in the message text, caption or web page description through getMessageLink CanGetMediaTimestampLinks bool `json:"can_get_media_timestamp_links"` // True, if reactions on the message can be reported through reportMessageReactions CanReportReactions bool `json:"can_report_reactions"` // True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message HasTimestampedMedia bool `json:"has_timestamped_media"` // True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts IsChannelPost bool `json:"is_channel_post"` // True, if the message is a forum topic message IsTopicMessage bool `json:"is_topic_message"` // True, if the message contains an unread mention for the current user ContainsUnreadMention bool `json:"contains_unread_mention"` // Point in time (Unix timestamp) when the message was sent Date int32 `json:"date"` // Point in time (Unix timestamp) when the message was last edited EditDate int32 `json:"edit_date"` // Information about the initial message sender; may be null if none or unknown ForwardInfo *MessageForwardInfo `json:"forward_info"` // Information about interactions with the message; may be null if none InteractionInfo *MessageInteractionInfo `json:"interaction_info"` // Information about unread reactions added to the message UnreadReactions []*UnreadReaction `json:"unread_reactions"` // Information about the message or the story this message is replying to; may be null if none ReplyTo MessageReplyTo `json:"reply_to"` // If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs MessageThreadId int64 `json:"message_thread_id"` // The message's self-destruct type; may be null if none SelfDestructType MessageSelfDestructType `json:"self_destruct_type"` // Time left before the message self-destruct timer expires, in seconds; 0 if self-desctruction isn't scheduled yet SelfDestructIn float64 `json:"self_destruct_in"` // Time left before the message will be automatically deleted by message_auto_delete_time setting of the chat, in seconds; 0 if never AutoDeleteIn float64 `json:"auto_delete_in"` // If non-zero, the user identifier of the bot through which this message was sent ViaBotUserId int64 `json:"via_bot_user_id"` // For channel posts and anonymous group messages, optional author signature AuthorSignature string `json:"author_signature"` // Unique identifier of an album this message belongs to. Only audios, documents, photos and videos can be grouped together in albums MediaAlbumId JsonInt64 `json:"media_album_id"` // If non-empty, contains a human-readable description of the reason why access to this message must be restricted RestrictionReason string `json:"restriction_reason"` // Content of the message Content MessageContent `json:"content"` // Reply markup for the message; may be null if none ReplyMarkup ReplyMarkup `json:"reply_markup"` // contains filtered or unexported fields }
Describes a message
func UnmarshalMessage ¶
func UnmarshalMessage(data json.RawMessage) (*Message, error)
func (*Message) MarshalJSON ¶
func (*Message) UnmarshalJSON ¶
type MessageAnimatedEmoji ¶
type MessageAnimatedEmoji struct { // The animated emoji AnimatedEmoji *AnimatedEmoji `json:"animated_emoji"` // The corresponding emoji Emoji string `json:"emoji"` // contains filtered or unexported fields }
A message with an animated emoji
func UnmarshalMessageAnimatedEmoji ¶
func UnmarshalMessageAnimatedEmoji(data json.RawMessage) (*MessageAnimatedEmoji, error)
func (*MessageAnimatedEmoji) GetClass ¶
func (*MessageAnimatedEmoji) GetClass() string
func (*MessageAnimatedEmoji) GetType ¶
func (*MessageAnimatedEmoji) GetType() string
func (*MessageAnimatedEmoji) MarshalJSON ¶
func (entity *MessageAnimatedEmoji) MarshalJSON() ([]byte, error)
func (*MessageAnimatedEmoji) MessageContentType ¶
func (*MessageAnimatedEmoji) MessageContentType() string
type MessageAnimation ¶
type MessageAnimation struct { // The animation description Animation *Animation `json:"animation"` // Animation caption Caption *FormattedText `json:"caption"` // True, if the animation preview must be covered by a spoiler animation HasSpoiler bool `json:"has_spoiler"` // True, if the animation thumbnail must be blurred and the animation must be shown only while tapped IsSecret bool `json:"is_secret"` // contains filtered or unexported fields }
An animation message (GIF-style).
func UnmarshalMessageAnimation ¶
func UnmarshalMessageAnimation(data json.RawMessage) (*MessageAnimation, error)
func (*MessageAnimation) GetClass ¶
func (*MessageAnimation) GetClass() string
func (*MessageAnimation) GetType ¶
func (*MessageAnimation) GetType() string
func (*MessageAnimation) MarshalJSON ¶
func (entity *MessageAnimation) MarshalJSON() ([]byte, error)
func (*MessageAnimation) MessageContentType ¶
func (*MessageAnimation) MessageContentType() string
type MessageAudio ¶
type MessageAudio struct { // The audio description Audio *Audio `json:"audio"` // Audio caption Caption *FormattedText `json:"caption"` // contains filtered or unexported fields }
An audio message
func UnmarshalMessageAudio ¶
func UnmarshalMessageAudio(data json.RawMessage) (*MessageAudio, error)
func (*MessageAudio) GetClass ¶
func (*MessageAudio) GetClass() string
func (*MessageAudio) GetType ¶
func (*MessageAudio) GetType() string
func (*MessageAudio) MarshalJSON ¶
func (entity *MessageAudio) MarshalJSON() ([]byte, error)
func (*MessageAudio) MessageContentType ¶
func (*MessageAudio) MessageContentType() string
type MessageAutoDeleteTime ¶ added in v1.2.3
type MessageAutoDeleteTime struct { // Message auto-delete time, in seconds. If 0, then messages aren't deleted automatically Time int32 `json:"time"` // contains filtered or unexported fields }
Contains default auto-delete timer setting for new chats
func UnmarshalMessageAutoDeleteTime ¶ added in v1.2.3
func UnmarshalMessageAutoDeleteTime(data json.RawMessage) (*MessageAutoDeleteTime, error)
func (*MessageAutoDeleteTime) GetClass ¶ added in v1.2.3
func (*MessageAutoDeleteTime) GetClass() string
func (*MessageAutoDeleteTime) GetType ¶ added in v1.2.3
func (*MessageAutoDeleteTime) GetType() string
func (*MessageAutoDeleteTime) MarshalJSON ¶ added in v1.2.3
func (entity *MessageAutoDeleteTime) MarshalJSON() ([]byte, error)
type MessageBasicGroupChatCreate ¶
type MessageBasicGroupChatCreate struct { // Title of the basic group Title string `json:"title"` // User identifiers of members in the basic group MemberUserIds []int64 `json:"member_user_ids"` // contains filtered or unexported fields }
A newly created basic group
func UnmarshalMessageBasicGroupChatCreate ¶
func UnmarshalMessageBasicGroupChatCreate(data json.RawMessage) (*MessageBasicGroupChatCreate, error)
func (*MessageBasicGroupChatCreate) GetClass ¶
func (*MessageBasicGroupChatCreate) GetClass() string
func (*MessageBasicGroupChatCreate) GetType ¶
func (*MessageBasicGroupChatCreate) GetType() string
func (*MessageBasicGroupChatCreate) MarshalJSON ¶
func (entity *MessageBasicGroupChatCreate) MarshalJSON() ([]byte, error)
func (*MessageBasicGroupChatCreate) MessageContentType ¶
func (*MessageBasicGroupChatCreate) MessageContentType() string
type MessageBotWriteAccessAllowed ¶ added in v1.2.3
type MessageBotWriteAccessAllowed struct { // Information about the Web App, which requested the access; may be null if none or the Web App was opened from the attachment menu WebApp *WebApp `json:"web_app"` // True, if user allowed the bot to send messages by an explicit call to allowBotToSendMessages ByRequest bool `json:"by_request"` // contains filtered or unexported fields }
The user allowed the bot to send messages
func UnmarshalMessageBotWriteAccessAllowed ¶ added in v1.2.3
func UnmarshalMessageBotWriteAccessAllowed(data json.RawMessage) (*MessageBotWriteAccessAllowed, error)
func (*MessageBotWriteAccessAllowed) GetClass ¶ added in v1.2.3
func (*MessageBotWriteAccessAllowed) GetClass() string
func (*MessageBotWriteAccessAllowed) GetType ¶ added in v1.2.3
func (*MessageBotWriteAccessAllowed) GetType() string
func (*MessageBotWriteAccessAllowed) MarshalJSON ¶ added in v1.2.3
func (entity *MessageBotWriteAccessAllowed) MarshalJSON() ([]byte, error)
func (*MessageBotWriteAccessAllowed) MessageContentType ¶ added in v1.2.3
func (*MessageBotWriteAccessAllowed) MessageContentType() string
type MessageCalendar ¶
type MessageCalendar struct { // Total number of found messages TotalCount int32 `json:"total_count"` // Information about messages sent Days []*MessageCalendarDay `json:"days"` // contains filtered or unexported fields }
Contains information about found messages, split by days according to the option "utc_time_offset"
func UnmarshalMessageCalendar ¶
func UnmarshalMessageCalendar(data json.RawMessage) (*MessageCalendar, error)
func (*MessageCalendar) GetClass ¶
func (*MessageCalendar) GetClass() string
func (*MessageCalendar) GetType ¶
func (*MessageCalendar) GetType() string
func (*MessageCalendar) MarshalJSON ¶
func (entity *MessageCalendar) MarshalJSON() ([]byte, error)
type MessageCalendarDay ¶
type MessageCalendarDay struct { // Total number of found messages sent on the day TotalCount int32 `json:"total_count"` // First message sent on the day Message *Message `json:"message"` // contains filtered or unexported fields }
Contains information about found messages sent on a specific day
func UnmarshalMessageCalendarDay ¶
func UnmarshalMessageCalendarDay(data json.RawMessage) (*MessageCalendarDay, error)
func (*MessageCalendarDay) GetClass ¶
func (*MessageCalendarDay) GetClass() string
func (*MessageCalendarDay) GetType ¶
func (*MessageCalendarDay) GetType() string
func (*MessageCalendarDay) MarshalJSON ¶
func (entity *MessageCalendarDay) MarshalJSON() ([]byte, error)
type MessageCall ¶
type MessageCall struct { // True, if the call was a video call IsVideo bool `json:"is_video"` // Reason why the call was discarded DiscardReason CallDiscardReason `json:"discard_reason"` // Call duration, in seconds Duration int32 `json:"duration"` // contains filtered or unexported fields }
A message with information about an ended call
func UnmarshalMessageCall ¶
func UnmarshalMessageCall(data json.RawMessage) (*MessageCall, error)
func (*MessageCall) GetClass ¶
func (*MessageCall) GetClass() string
func (*MessageCall) GetType ¶
func (*MessageCall) GetType() string
func (*MessageCall) MarshalJSON ¶
func (entity *MessageCall) MarshalJSON() ([]byte, error)
func (*MessageCall) MessageContentType ¶
func (*MessageCall) MessageContentType() string
func (*MessageCall) UnmarshalJSON ¶
func (messageCall *MessageCall) UnmarshalJSON(data []byte) error
type MessageChatAddMembers ¶
type MessageChatAddMembers struct { // User identifiers of the new members MemberUserIds []int64 `json:"member_user_ids"` // contains filtered or unexported fields }
New chat members were added
func UnmarshalMessageChatAddMembers ¶
func UnmarshalMessageChatAddMembers(data json.RawMessage) (*MessageChatAddMembers, error)
func (*MessageChatAddMembers) GetClass ¶
func (*MessageChatAddMembers) GetClass() string
func (*MessageChatAddMembers) GetType ¶
func (*MessageChatAddMembers) GetType() string
func (*MessageChatAddMembers) MarshalJSON ¶
func (entity *MessageChatAddMembers) MarshalJSON() ([]byte, error)
func (*MessageChatAddMembers) MessageContentType ¶
func (*MessageChatAddMembers) MessageContentType() string
type MessageChatChangePhoto ¶
type MessageChatChangePhoto struct { // New chat photo Photo *ChatPhoto `json:"photo"` // contains filtered or unexported fields }
An updated chat photo
func UnmarshalMessageChatChangePhoto ¶
func UnmarshalMessageChatChangePhoto(data json.RawMessage) (*MessageChatChangePhoto, error)
func (*MessageChatChangePhoto) GetClass ¶
func (*MessageChatChangePhoto) GetClass() string
func (*MessageChatChangePhoto) GetType ¶
func (*MessageChatChangePhoto) GetType() string
func (*MessageChatChangePhoto) MarshalJSON ¶
func (entity *MessageChatChangePhoto) MarshalJSON() ([]byte, error)
func (*MessageChatChangePhoto) MessageContentType ¶
func (*MessageChatChangePhoto) MessageContentType() string
type MessageChatChangeTitle ¶
type MessageChatChangeTitle struct { // New chat title Title string `json:"title"` // contains filtered or unexported fields }
An updated chat title
func UnmarshalMessageChatChangeTitle ¶
func UnmarshalMessageChatChangeTitle(data json.RawMessage) (*MessageChatChangeTitle, error)
func (*MessageChatChangeTitle) GetClass ¶
func (*MessageChatChangeTitle) GetClass() string
func (*MessageChatChangeTitle) GetType ¶
func (*MessageChatChangeTitle) GetType() string
func (*MessageChatChangeTitle) MarshalJSON ¶
func (entity *MessageChatChangeTitle) MarshalJSON() ([]byte, error)
func (*MessageChatChangeTitle) MessageContentType ¶
func (*MessageChatChangeTitle) MessageContentType() string
type MessageChatDeleteMember ¶
type MessageChatDeleteMember struct { // User identifier of the deleted chat member UserId int64 `json:"user_id"` // contains filtered or unexported fields }
A chat member was deleted
func UnmarshalMessageChatDeleteMember ¶
func UnmarshalMessageChatDeleteMember(data json.RawMessage) (*MessageChatDeleteMember, error)
func (*MessageChatDeleteMember) GetClass ¶
func (*MessageChatDeleteMember) GetClass() string
func (*MessageChatDeleteMember) GetType ¶
func (*MessageChatDeleteMember) GetType() string
func (*MessageChatDeleteMember) MarshalJSON ¶
func (entity *MessageChatDeleteMember) MarshalJSON() ([]byte, error)
func (*MessageChatDeleteMember) MessageContentType ¶
func (*MessageChatDeleteMember) MessageContentType() string
type MessageChatDeletePhoto ¶
type MessageChatDeletePhoto struct {
// contains filtered or unexported fields
}
A deleted chat photo
func UnmarshalMessageChatDeletePhoto ¶
func UnmarshalMessageChatDeletePhoto(data json.RawMessage) (*MessageChatDeletePhoto, error)
func (*MessageChatDeletePhoto) GetClass ¶
func (*MessageChatDeletePhoto) GetClass() string
func (*MessageChatDeletePhoto) GetType ¶
func (*MessageChatDeletePhoto) GetType() string
func (*MessageChatDeletePhoto) MarshalJSON ¶
func (entity *MessageChatDeletePhoto) MarshalJSON() ([]byte, error)
func (*MessageChatDeletePhoto) MessageContentType ¶
func (*MessageChatDeletePhoto) MessageContentType() string
type MessageChatJoinByLink ¶
type MessageChatJoinByLink struct {
// contains filtered or unexported fields
}
A new member joined the chat via an invite link
func UnmarshalMessageChatJoinByLink ¶
func UnmarshalMessageChatJoinByLink(data json.RawMessage) (*MessageChatJoinByLink, error)
func (*MessageChatJoinByLink) GetClass ¶
func (*MessageChatJoinByLink) GetClass() string
func (*MessageChatJoinByLink) GetType ¶
func (*MessageChatJoinByLink) GetType() string
func (*MessageChatJoinByLink) MarshalJSON ¶
func (entity *MessageChatJoinByLink) MarshalJSON() ([]byte, error)
func (*MessageChatJoinByLink) MessageContentType ¶
func (*MessageChatJoinByLink) MessageContentType() string
type MessageChatJoinByRequest ¶
type MessageChatJoinByRequest struct {
// contains filtered or unexported fields
}
A new member was accepted to the chat by an administrator
func UnmarshalMessageChatJoinByRequest ¶
func UnmarshalMessageChatJoinByRequest(data json.RawMessage) (*MessageChatJoinByRequest, error)
func (*MessageChatJoinByRequest) GetClass ¶
func (*MessageChatJoinByRequest) GetClass() string
func (*MessageChatJoinByRequest) GetType ¶
func (*MessageChatJoinByRequest) GetType() string
func (*MessageChatJoinByRequest) MarshalJSON ¶
func (entity *MessageChatJoinByRequest) MarshalJSON() ([]byte, error)
func (*MessageChatJoinByRequest) MessageContentType ¶
func (*MessageChatJoinByRequest) MessageContentType() string
type MessageChatSetBackground ¶ added in v1.2.3
type MessageChatSetBackground struct { // Identifier of the message with a previously set same background; 0 if none. Can be an identifier of a deleted message OldBackgroundMessageId int64 `json:"old_background_message_id"` // The new background Background *ChatBackground `json:"background"` // contains filtered or unexported fields }
A new background was set in the chat
func UnmarshalMessageChatSetBackground ¶ added in v1.2.3
func UnmarshalMessageChatSetBackground(data json.RawMessage) (*MessageChatSetBackground, error)
func (*MessageChatSetBackground) GetClass ¶ added in v1.2.3
func (*MessageChatSetBackground) GetClass() string
func (*MessageChatSetBackground) GetType ¶ added in v1.2.3
func (*MessageChatSetBackground) GetType() string
func (*MessageChatSetBackground) MarshalJSON ¶ added in v1.2.3
func (entity *MessageChatSetBackground) MarshalJSON() ([]byte, error)
func (*MessageChatSetBackground) MessageContentType ¶ added in v1.2.3
func (*MessageChatSetBackground) MessageContentType() string
type MessageChatSetMessageAutoDeleteTime ¶ added in v1.2.3
type MessageChatSetMessageAutoDeleteTime struct { // New value auto-delete or self-destruct time, in seconds; 0 if disabled MessageAutoDeleteTime int32 `json:"message_auto_delete_time"` // If not 0, a user identifier, which default setting was automatically applied FromUserId int64 `json:"from_user_id"` // contains filtered or unexported fields }
The auto-delete or self-destruct timer for messages in the chat has been changed
func UnmarshalMessageChatSetMessageAutoDeleteTime ¶ added in v1.2.3
func UnmarshalMessageChatSetMessageAutoDeleteTime(data json.RawMessage) (*MessageChatSetMessageAutoDeleteTime, error)
func (*MessageChatSetMessageAutoDeleteTime) GetClass ¶ added in v1.2.3
func (*MessageChatSetMessageAutoDeleteTime) GetClass() string
func (*MessageChatSetMessageAutoDeleteTime) GetType ¶ added in v1.2.3
func (*MessageChatSetMessageAutoDeleteTime) GetType() string
func (*MessageChatSetMessageAutoDeleteTime) MarshalJSON ¶ added in v1.2.3
func (entity *MessageChatSetMessageAutoDeleteTime) MarshalJSON() ([]byte, error)
func (*MessageChatSetMessageAutoDeleteTime) MessageContentType ¶ added in v1.2.3
func (*MessageChatSetMessageAutoDeleteTime) MessageContentType() string
type MessageChatSetTheme ¶
type MessageChatSetTheme struct { // If non-empty, name of a new theme, set for the chat. Otherwise, chat theme was reset to the default one ThemeName string `json:"theme_name"` // contains filtered or unexported fields }
A theme in the chat has been changed
func UnmarshalMessageChatSetTheme ¶
func UnmarshalMessageChatSetTheme(data json.RawMessage) (*MessageChatSetTheme, error)
func (*MessageChatSetTheme) GetClass ¶
func (*MessageChatSetTheme) GetClass() string
func (*MessageChatSetTheme) GetType ¶
func (*MessageChatSetTheme) GetType() string
func (*MessageChatSetTheme) MarshalJSON ¶
func (entity *MessageChatSetTheme) MarshalJSON() ([]byte, error)
func (*MessageChatSetTheme) MessageContentType ¶
func (*MessageChatSetTheme) MessageContentType() string
type MessageChatShared ¶ added in v1.2.3
type MessageChatShared struct { int64 `json:"chat_id"` ButtonId int32 `json:"button_id"` // contains filtered or unexported fields }ChatId
The current user shared a chat, which was requested by the bot
func UnmarshalMessageChatShared ¶ added in v1.2.3
func UnmarshalMessageChatShared(data json.RawMessage) (*MessageChatShared, error)
func (*MessageChatShared) GetClass ¶ added in v1.2.3
func (*MessageChatShared) GetClass() string
func (*MessageChatShared) GetType ¶ added in v1.2.3
func (*MessageChatShared) GetType() string
func (*MessageChatShared) MarshalJSON ¶ added in v1.2.3
func (entity *MessageChatShared) MarshalJSON() ([]byte, error)
func (*MessageChatShared) MessageContentType ¶ added in v1.2.3
func (*MessageChatShared) MessageContentType() string
type MessageChatUpgradeFrom ¶
type MessageChatUpgradeFrom struct { // Title of the newly created supergroup Title string `json:"title"` // The identifier of the original basic group BasicGroupId int64 `json:"basic_group_id"` // contains filtered or unexported fields }
A supergroup has been created from a basic group
func UnmarshalMessageChatUpgradeFrom ¶
func UnmarshalMessageChatUpgradeFrom(data json.RawMessage) (*MessageChatUpgradeFrom, error)
func (*MessageChatUpgradeFrom) GetClass ¶
func (*MessageChatUpgradeFrom) GetClass() string
func (*MessageChatUpgradeFrom) GetType ¶
func (*MessageChatUpgradeFrom) GetType() string
func (*MessageChatUpgradeFrom) MarshalJSON ¶
func (entity *MessageChatUpgradeFrom) MarshalJSON() ([]byte, error)
func (*MessageChatUpgradeFrom) MessageContentType ¶
func (*MessageChatUpgradeFrom) MessageContentType() string
type MessageChatUpgradeTo ¶
type MessageChatUpgradeTo struct { // Identifier of the supergroup to which the basic group was upgraded SupergroupId int64 `json:"supergroup_id"` // contains filtered or unexported fields }
A basic group was upgraded to a supergroup and was deactivated as the result
func UnmarshalMessageChatUpgradeTo ¶
func UnmarshalMessageChatUpgradeTo(data json.RawMessage) (*MessageChatUpgradeTo, error)
func (*MessageChatUpgradeTo) GetClass ¶
func (*MessageChatUpgradeTo) GetClass() string
func (*MessageChatUpgradeTo) GetType ¶
func (*MessageChatUpgradeTo) GetType() string
func (*MessageChatUpgradeTo) MarshalJSON ¶
func (entity *MessageChatUpgradeTo) MarshalJSON() ([]byte, error)
func (*MessageChatUpgradeTo) MessageContentType ¶
func (*MessageChatUpgradeTo) MessageContentType() string
type MessageContact ¶
type MessageContact struct { // The contact description Contact *Contact `json:"contact"` // contains filtered or unexported fields }
A message with a user contact
func UnmarshalMessageContact ¶
func UnmarshalMessageContact(data json.RawMessage) (*MessageContact, error)
func (*MessageContact) GetClass ¶
func (*MessageContact) GetClass() string
func (*MessageContact) GetType ¶
func (*MessageContact) GetType() string
func (*MessageContact) MarshalJSON ¶
func (entity *MessageContact) MarshalJSON() ([]byte, error)
func (*MessageContact) MessageContentType ¶
func (*MessageContact) MessageContentType() string
type MessageContactRegistered ¶
type MessageContactRegistered struct {
// contains filtered or unexported fields
}
A contact has registered with Telegram
func UnmarshalMessageContactRegistered ¶
func UnmarshalMessageContactRegistered(data json.RawMessage) (*MessageContactRegistered, error)
func (*MessageContactRegistered) GetClass ¶
func (*MessageContactRegistered) GetClass() string
func (*MessageContactRegistered) GetType ¶
func (*MessageContactRegistered) GetType() string
func (*MessageContactRegistered) MarshalJSON ¶
func (entity *MessageContactRegistered) MarshalJSON() ([]byte, error)
func (*MessageContactRegistered) MessageContentType ¶
func (*MessageContactRegistered) MessageContentType() string
type MessageContent ¶
type MessageContent interface {
MessageContentType() string
}
Contains the content of a message
func UnmarshalListOfMessageContent ¶
func UnmarshalListOfMessageContent(dataList []json.RawMessage) ([]MessageContent, error)
func UnmarshalMessageContent ¶
func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error)
type MessageCopyOptions ¶
type MessageCopyOptions struct { // True, if content of the message needs to be copied without reference to the original sender. Always true if the message is forwarded to a secret chat or is local SendCopy bool `json:"send_copy"` // True, if media caption of the message copy needs to be replaced. Ignored if send_copy is false ReplaceCaption bool `json:"replace_caption"` // New message caption; pass null to copy message without caption. Ignored if replace_caption is false NewCaption *FormattedText `json:"new_caption"` // contains filtered or unexported fields }
Options to be used when a message content is copied without reference to the original sender. Service messages and messageInvoice can't be copied
func UnmarshalMessageCopyOptions ¶
func UnmarshalMessageCopyOptions(data json.RawMessage) (*MessageCopyOptions, error)
func (*MessageCopyOptions) GetClass ¶
func (*MessageCopyOptions) GetClass() string
func (*MessageCopyOptions) GetType ¶
func (*MessageCopyOptions) GetType() string
func (*MessageCopyOptions) MarshalJSON ¶
func (entity *MessageCopyOptions) MarshalJSON() ([]byte, error)
type MessageCustomServiceAction ¶
type MessageCustomServiceAction struct { // Message text to be shown in the chat Text string `json:"text"` // contains filtered or unexported fields }
A non-standard action has happened in the chat
func UnmarshalMessageCustomServiceAction ¶
func UnmarshalMessageCustomServiceAction(data json.RawMessage) (*MessageCustomServiceAction, error)
func (*MessageCustomServiceAction) GetClass ¶
func (*MessageCustomServiceAction) GetClass() string
func (*MessageCustomServiceAction) GetType ¶
func (*MessageCustomServiceAction) GetType() string
func (*MessageCustomServiceAction) MarshalJSON ¶
func (entity *MessageCustomServiceAction) MarshalJSON() ([]byte, error)
func (*MessageCustomServiceAction) MessageContentType ¶
func (*MessageCustomServiceAction) MessageContentType() string
type MessageDice ¶
type MessageDice struct { // The animated stickers with the initial dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known InitialState DiceStickers `json:"initial_state"` // The animated stickers with the final dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known FinalState DiceStickers `json:"final_state"` // Emoji on which the dice throw animation is based Emoji string `json:"emoji"` // The dice value. If the value is 0, the dice don't have final state yet Value int32 `json:"value"` // Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded SuccessAnimationFrameNumber int32 `json:"success_animation_frame_number"` // contains filtered or unexported fields }
A dice message. The dice value is randomly generated by the server
func UnmarshalMessageDice ¶
func UnmarshalMessageDice(data json.RawMessage) (*MessageDice, error)
func (*MessageDice) GetClass ¶
func (*MessageDice) GetClass() string
func (*MessageDice) GetType ¶
func (*MessageDice) GetType() string
func (*MessageDice) MarshalJSON ¶
func (entity *MessageDice) MarshalJSON() ([]byte, error)
func (*MessageDice) MessageContentType ¶
func (*MessageDice) MessageContentType() string
func (*MessageDice) UnmarshalJSON ¶
func (messageDice *MessageDice) UnmarshalJSON(data []byte) error
type MessageDocument ¶
type MessageDocument struct { // The document description Document *Document `json:"document"` // Document caption Caption *FormattedText `json:"caption"` // contains filtered or unexported fields }
A document message (general file)
func UnmarshalMessageDocument ¶
func UnmarshalMessageDocument(data json.RawMessage) (*MessageDocument, error)
func (*MessageDocument) GetClass ¶
func (*MessageDocument) GetClass() string
func (*MessageDocument) GetType ¶
func (*MessageDocument) GetType() string
func (*MessageDocument) MarshalJSON ¶
func (entity *MessageDocument) MarshalJSON() ([]byte, error)
func (*MessageDocument) MessageContentType ¶
func (*MessageDocument) MessageContentType() string
type MessageExpiredPhoto ¶
type MessageExpiredPhoto struct {
// contains filtered or unexported fields
}
A self-destructed photo message
func UnmarshalMessageExpiredPhoto ¶
func UnmarshalMessageExpiredPhoto(data json.RawMessage) (*MessageExpiredPhoto, error)
func (*MessageExpiredPhoto) GetClass ¶
func (*MessageExpiredPhoto) GetClass() string
func (*MessageExpiredPhoto) GetType ¶
func (*MessageExpiredPhoto) GetType() string
func (*MessageExpiredPhoto) MarshalJSON ¶
func (entity *MessageExpiredPhoto) MarshalJSON() ([]byte, error)
func (*MessageExpiredPhoto) MessageContentType ¶
func (*MessageExpiredPhoto) MessageContentType() string
type MessageExpiredVideo ¶
type MessageExpiredVideo struct {
// contains filtered or unexported fields
}
A self-destructed video message
func UnmarshalMessageExpiredVideo ¶
func UnmarshalMessageExpiredVideo(data json.RawMessage) (*MessageExpiredVideo, error)
func (*MessageExpiredVideo) GetClass ¶
func (*MessageExpiredVideo) GetClass() string
func (*MessageExpiredVideo) GetType ¶
func (*MessageExpiredVideo) GetType() string
func (*MessageExpiredVideo) MarshalJSON ¶
func (entity *MessageExpiredVideo) MarshalJSON() ([]byte, error)
func (*MessageExpiredVideo) MessageContentType ¶
func (*MessageExpiredVideo) MessageContentType() string
type MessageExtendedMedia ¶ added in v1.2.3
type MessageExtendedMedia interface {
MessageExtendedMediaType() string
}
Describes a media, which is attached to an invoice
func UnmarshalListOfMessageExtendedMedia ¶ added in v1.2.3
func UnmarshalListOfMessageExtendedMedia(dataList []json.RawMessage) ([]MessageExtendedMedia, error)
func UnmarshalMessageExtendedMedia ¶ added in v1.2.3
func UnmarshalMessageExtendedMedia(data json.RawMessage) (MessageExtendedMedia, error)
type MessageExtendedMediaPhoto ¶ added in v1.2.3
type MessageExtendedMediaPhoto struct { // The photo Photo *Photo `json:"photo"` // Photo caption Caption *FormattedText `json:"caption"` // contains filtered or unexported fields }
The media is a photo
func UnmarshalMessageExtendedMediaPhoto ¶ added in v1.2.3
func UnmarshalMessageExtendedMediaPhoto(data json.RawMessage) (*MessageExtendedMediaPhoto, error)
func (*MessageExtendedMediaPhoto) GetClass ¶ added in v1.2.3
func (*MessageExtendedMediaPhoto) GetClass() string
func (*MessageExtendedMediaPhoto) GetType ¶ added in v1.2.3
func (*MessageExtendedMediaPhoto) GetType() string
func (*MessageExtendedMediaPhoto) MarshalJSON ¶ added in v1.2.3
func (entity *MessageExtendedMediaPhoto) MarshalJSON() ([]byte, error)
func (*MessageExtendedMediaPhoto) MessageExtendedMediaType ¶ added in v1.2.3
func (*MessageExtendedMediaPhoto) MessageExtendedMediaType() string
type MessageExtendedMediaPreview ¶ added in v1.2.3
type MessageExtendedMediaPreview struct { // Media width; 0 if unknown Width int32 `json:"width"` // Media height; 0 if unknown Height int32 `json:"height"` // Media duration; 0 if unknown Duration int32 `json:"duration"` // Media minithumbnail; may be null Minithumbnail *Minithumbnail `json:"minithumbnail"` // Media caption Caption *FormattedText `json:"caption"` // contains filtered or unexported fields }
The media is hidden until the invoice is paid
func UnmarshalMessageExtendedMediaPreview ¶ added in v1.2.3
func UnmarshalMessageExtendedMediaPreview(data json.RawMessage) (*MessageExtendedMediaPreview, error)
func (*MessageExtendedMediaPreview) GetClass ¶ added in v1.2.3
func (*MessageExtendedMediaPreview) GetClass() string
func (*MessageExtendedMediaPreview) GetType ¶ added in v1.2.3
func (*MessageExtendedMediaPreview) GetType() string
func (*MessageExtendedMediaPreview) MarshalJSON ¶ added in v1.2.3
func (entity *MessageExtendedMediaPreview) MarshalJSON() ([]byte, error)
func (*MessageExtendedMediaPreview) MessageExtendedMediaType ¶ added in v1.2.3
func (*MessageExtendedMediaPreview) MessageExtendedMediaType() string
type MessageExtendedMediaUnsupported ¶ added in v1.2.3
type MessageExtendedMediaUnsupported struct { // Media caption Caption *FormattedText `json:"caption"` // contains filtered or unexported fields }
The media is unsupported
func UnmarshalMessageExtendedMediaUnsupported ¶ added in v1.2.3
func UnmarshalMessageExtendedMediaUnsupported(data json.RawMessage) (*MessageExtendedMediaUnsupported, error)
func (*MessageExtendedMediaUnsupported) GetClass ¶ added in v1.2.3
func (*MessageExtendedMediaUnsupported) GetClass() string
func (*MessageExtendedMediaUnsupported) GetType ¶ added in v1.2.3
func (*MessageExtendedMediaUnsupported) GetType() string
func (*MessageExtendedMediaUnsupported) MarshalJSON ¶ added in v1.2.3
func (entity *MessageExtendedMediaUnsupported) MarshalJSON() ([]byte, error)
func (*MessageExtendedMediaUnsupported) MessageExtendedMediaType ¶ added in v1.2.3
func (*MessageExtendedMediaUnsupported) MessageExtendedMediaType() string
type MessageExtendedMediaVideo ¶ added in v1.2.3
type MessageExtendedMediaVideo struct { // The video Video *Video `json:"video"` // Photo caption Caption *FormattedText `json:"caption"` // contains filtered or unexported fields }
The media is a video
func UnmarshalMessageExtendedMediaVideo ¶ added in v1.2.3
func UnmarshalMessageExtendedMediaVideo(data json.RawMessage) (*MessageExtendedMediaVideo, error)
func (*MessageExtendedMediaVideo) GetClass ¶ added in v1.2.3
func (*MessageExtendedMediaVideo) GetClass() string
func (*MessageExtendedMediaVideo) GetType ¶ added in v1.2.3
func (*MessageExtendedMediaVideo) GetType() string
func (*MessageExtendedMediaVideo) MarshalJSON ¶ added in v1.2.3
func (entity *MessageExtendedMediaVideo) MarshalJSON() ([]byte, error)
func (*MessageExtendedMediaVideo) MessageExtendedMediaType ¶ added in v1.2.3
func (*MessageExtendedMediaVideo) MessageExtendedMediaType() string
type MessageFileType ¶
type MessageFileType interface {
MessageFileTypeType() string
}
Contains information about a file with messages exported from another app
func UnmarshalListOfMessageFileType ¶
func UnmarshalListOfMessageFileType(dataList []json.RawMessage) ([]MessageFileType, error)
func UnmarshalMessageFileType ¶
func UnmarshalMessageFileType(data json.RawMessage) (MessageFileType, error)
type MessageFileTypeGroup ¶
type MessageFileTypeGroup struct { // Title of the group chat; may be empty if unrecognized Title string `json:"title"` // contains filtered or unexported fields }
The messages was exported from a group chat
func UnmarshalMessageFileTypeGroup ¶
func UnmarshalMessageFileTypeGroup(data json.RawMessage) (*MessageFileTypeGroup, error)
func (*MessageFileTypeGroup) GetClass ¶
func (*MessageFileTypeGroup) GetClass() string
func (*MessageFileTypeGroup) GetType ¶
func (*MessageFileTypeGroup) GetType() string
func (*MessageFileTypeGroup) MarshalJSON ¶
func (entity *MessageFileTypeGroup) MarshalJSON() ([]byte, error)
func (*MessageFileTypeGroup) MessageFileTypeType ¶
func (*MessageFileTypeGroup) MessageFileTypeType() string
type MessageFileTypePrivate ¶
type MessageFileTypePrivate struct { // Name of the other party; may be empty if unrecognized Name string `json:"name"` // contains filtered or unexported fields }
The messages was exported from a private chat
func UnmarshalMessageFileTypePrivate ¶
func UnmarshalMessageFileTypePrivate(data json.RawMessage) (*MessageFileTypePrivate, error)
func (*MessageFileTypePrivate) GetClass ¶
func (*MessageFileTypePrivate) GetClass() string
func (*MessageFileTypePrivate) GetType ¶
func (*MessageFileTypePrivate) GetType() string
func (*MessageFileTypePrivate) MarshalJSON ¶
func (entity *MessageFileTypePrivate) MarshalJSON() ([]byte, error)
func (*MessageFileTypePrivate) MessageFileTypeType ¶
func (*MessageFileTypePrivate) MessageFileTypeType() string
type MessageFileTypeUnknown ¶
type MessageFileTypeUnknown struct {
// contains filtered or unexported fields
}
The messages was exported from a chat of unknown type
func UnmarshalMessageFileTypeUnknown ¶
func UnmarshalMessageFileTypeUnknown(data json.RawMessage) (*MessageFileTypeUnknown, error)
func (*MessageFileTypeUnknown) GetClass ¶
func (*MessageFileTypeUnknown) GetClass() string
func (*MessageFileTypeUnknown) GetType ¶
func (*MessageFileTypeUnknown) GetType() string
func (*MessageFileTypeUnknown) MarshalJSON ¶
func (entity *MessageFileTypeUnknown) MarshalJSON() ([]byte, error)
func (*MessageFileTypeUnknown) MessageFileTypeType ¶
func (*MessageFileTypeUnknown) MessageFileTypeType() string
type MessageForumTopicCreated ¶ added in v1.2.3
type MessageForumTopicCreated struct { // Name of the topic Name string `json:"name"` // Icon of the topic Icon *ForumTopicIcon `json:"icon"` // contains filtered or unexported fields }
A forum topic has been created
func UnmarshalMessageForumTopicCreated ¶ added in v1.2.3
func UnmarshalMessageForumTopicCreated(data json.RawMessage) (*MessageForumTopicCreated, error)
func (*MessageForumTopicCreated) GetClass ¶ added in v1.2.3
func (*MessageForumTopicCreated) GetClass() string
func (*MessageForumTopicCreated) GetType ¶ added in v1.2.3
func (*MessageForumTopicCreated) GetType() string
func (*MessageForumTopicCreated) MarshalJSON ¶ added in v1.2.3
func (entity *MessageForumTopicCreated) MarshalJSON() ([]byte, error)
func (*MessageForumTopicCreated) MessageContentType ¶ added in v1.2.3
func (*MessageForumTopicCreated) MessageContentType() string
type MessageForumTopicEdited ¶ added in v1.2.3
type MessageForumTopicEdited struct { // If non-empty, the new name of the topic Name string `json:"name"` // True, if icon's custom_emoji_id is changed EditIconCustomEmojiId bool `json:"edit_icon_custom_emoji_id"` // New unique identifier of the custom emoji shown on the topic icon; 0 if none. Must be ignored if edit_icon_custom_emoji_id is false IconCustomEmojiId JsonInt64 `json:"icon_custom_emoji_id"` // contains filtered or unexported fields }
A forum topic has been edited
func UnmarshalMessageForumTopicEdited ¶ added in v1.2.3
func UnmarshalMessageForumTopicEdited(data json.RawMessage) (*MessageForumTopicEdited, error)
func (*MessageForumTopicEdited) GetClass ¶ added in v1.2.3
func (*MessageForumTopicEdited) GetClass() string
func (*MessageForumTopicEdited) GetType ¶ added in v1.2.3
func (*MessageForumTopicEdited) GetType() string
func (*MessageForumTopicEdited) MarshalJSON ¶ added in v1.2.3
func (entity *MessageForumTopicEdited) MarshalJSON() ([]byte, error)
func (*MessageForumTopicEdited) MessageContentType ¶ added in v1.2.3
func (*MessageForumTopicEdited) MessageContentType() string
type MessageForumTopicIsClosedToggled ¶ added in v1.2.3
type MessageForumTopicIsClosedToggled struct { // True, if the topic was closed; otherwise, the topic was reopened IsClosed bool `json:"is_closed"` // contains filtered or unexported fields }
A forum topic has been closed or opened
func UnmarshalMessageForumTopicIsClosedToggled ¶ added in v1.2.3
func UnmarshalMessageForumTopicIsClosedToggled(data json.RawMessage) (*MessageForumTopicIsClosedToggled, error)
func (*MessageForumTopicIsClosedToggled) GetClass ¶ added in v1.2.3
func (*MessageForumTopicIsClosedToggled) GetClass() string
func (*MessageForumTopicIsClosedToggled) GetType ¶ added in v1.2.3
func (*MessageForumTopicIsClosedToggled) GetType() string
func (*MessageForumTopicIsClosedToggled) MarshalJSON ¶ added in v1.2.3
func (entity *MessageForumTopicIsClosedToggled) MarshalJSON() ([]byte, error)
func (*MessageForumTopicIsClosedToggled) MessageContentType ¶ added in v1.2.3
func (*MessageForumTopicIsClosedToggled) MessageContentType() string
type MessageForumTopicIsHiddenToggled ¶ added in v1.2.3
type MessageForumTopicIsHiddenToggled struct { // True, if the topic was hidden; otherwise, the topic was unhidden IsHidden bool `json:"is_hidden"` // contains filtered or unexported fields }
A General forum topic has been hidden or unhidden
func UnmarshalMessageForumTopicIsHiddenToggled ¶ added in v1.2.3
func UnmarshalMessageForumTopicIsHiddenToggled(data json.RawMessage) (*MessageForumTopicIsHiddenToggled, error)
func (*MessageForumTopicIsHiddenToggled) GetClass ¶ added in v1.2.3
func (*MessageForumTopicIsHiddenToggled) GetClass() string
func (*MessageForumTopicIsHiddenToggled) GetType ¶ added in v1.2.3
func (*MessageForumTopicIsHiddenToggled) GetType() string
func (*MessageForumTopicIsHiddenToggled) MarshalJSON ¶ added in v1.2.3
func (entity *MessageForumTopicIsHiddenToggled) MarshalJSON() ([]byte, error)
func (*MessageForumTopicIsHiddenToggled) MessageContentType ¶ added in v1.2.3
func (*MessageForumTopicIsHiddenToggled) MessageContentType() string
type MessageForwardInfo ¶
type MessageForwardInfo struct { // Origin of a forwarded message Origin MessageForwardOrigin `json:"origin"` // Point in time (Unix timestamp) when the message was originally sent Date int32 `json:"date"` // The type of a public service announcement for the forwarded message PublicServiceAnnouncementType string `json:"public_service_announcement_type"` // For messages forwarded to the chat with the current user (Saved Messages), to the Replies bot chat, or to the channel's discussion group, the identifier of the chat from which the message was forwarded last time; 0 if unknown FromChatId int64 `json:"from_chat_id"` // For messages forwarded to the chat with the current user (Saved Messages), to the Replies bot chat, or to the channel's discussion group, the identifier of the original message from which the new message was forwarded last time; 0 if unknown FromMessageId int64 `json:"from_message_id"` // contains filtered or unexported fields }
Contains information about a forwarded message
func UnmarshalMessageForwardInfo ¶
func UnmarshalMessageForwardInfo(data json.RawMessage) (*MessageForwardInfo, error)
func (*MessageForwardInfo) GetClass ¶
func (*MessageForwardInfo) GetClass() string
func (*MessageForwardInfo) GetType ¶
func (*MessageForwardInfo) GetType() string
func (*MessageForwardInfo) MarshalJSON ¶
func (entity *MessageForwardInfo) MarshalJSON() ([]byte, error)
func (*MessageForwardInfo) UnmarshalJSON ¶
func (messageForwardInfo *MessageForwardInfo) UnmarshalJSON(data []byte) error
type MessageForwardOrigin ¶
type MessageForwardOrigin interface {
MessageForwardOriginType() string
}
Contains information about the origin of a forwarded message
func UnmarshalListOfMessageForwardOrigin ¶
func UnmarshalListOfMessageForwardOrigin(dataList []json.RawMessage) ([]MessageForwardOrigin, error)
func UnmarshalMessageForwardOrigin ¶
func UnmarshalMessageForwardOrigin(data json.RawMessage) (MessageForwardOrigin, error)
type MessageForwardOriginChannel ¶
type MessageForwardOriginChannel struct { // Identifier of the chat from which the message was originally forwarded ChatId int64 `json:"chat_id"` // Message identifier of the original message MessageId int64 `json:"message_id"` // Original post author signature AuthorSignature string `json:"author_signature"` // contains filtered or unexported fields }
The message was originally a post in a channel
func UnmarshalMessageForwardOriginChannel ¶
func UnmarshalMessageForwardOriginChannel(data json.RawMessage) (*MessageForwardOriginChannel, error)
func (*MessageForwardOriginChannel) GetClass ¶
func (*MessageForwardOriginChannel) GetClass() string
func (*MessageForwardOriginChannel) GetType ¶
func (*MessageForwardOriginChannel) GetType() string
func (*MessageForwardOriginChannel) MarshalJSON ¶
func (entity *MessageForwardOriginChannel) MarshalJSON() ([]byte, error)
func (*MessageForwardOriginChannel) MessageForwardOriginType ¶
func (*MessageForwardOriginChannel) MessageForwardOriginType() string
type MessageForwardOriginChat ¶
type MessageForwardOriginChat struct { // Identifier of the chat that originally sent the message SenderChatId int64 `json:"sender_chat_id"` // For messages originally sent by an anonymous chat administrator, original message author signature AuthorSignature string `json:"author_signature"` // contains filtered or unexported fields }
The message was originally sent on behalf of a chat
func UnmarshalMessageForwardOriginChat ¶
func UnmarshalMessageForwardOriginChat(data json.RawMessage) (*MessageForwardOriginChat, error)
func (*MessageForwardOriginChat) GetClass ¶
func (*MessageForwardOriginChat) GetClass() string
func (*MessageForwardOriginChat) GetType ¶
func (*MessageForwardOriginChat) GetType() string
func (*MessageForwardOriginChat) MarshalJSON ¶
func (entity *MessageForwardOriginChat) MarshalJSON() ([]byte, error)
func (*MessageForwardOriginChat) MessageForwardOriginType ¶
func (*MessageForwardOriginChat) MessageForwardOriginType() string
type MessageForwardOriginHiddenUser ¶
type MessageForwardOriginHiddenUser struct { // Name of the sender SenderName string `json:"sender_name"` // contains filtered or unexported fields }
The message was originally sent by a user, which is hidden by their privacy settings
func UnmarshalMessageForwardOriginHiddenUser ¶
func UnmarshalMessageForwardOriginHiddenUser(data json.RawMessage) (*MessageForwardOriginHiddenUser, error)
func (*MessageForwardOriginHiddenUser) GetClass ¶
func (*MessageForwardOriginHiddenUser) GetClass() string
func (*MessageForwardOriginHiddenUser) GetType ¶
func (*MessageForwardOriginHiddenUser) GetType() string
func (*MessageForwardOriginHiddenUser) MarshalJSON ¶
func (entity *MessageForwardOriginHiddenUser) MarshalJSON() ([]byte, error)
func (*MessageForwardOriginHiddenUser) MessageForwardOriginType ¶
func (*MessageForwardOriginHiddenUser) MessageForwardOriginType() string
type MessageForwardOriginMessageImport ¶
type MessageForwardOriginMessageImport struct { // Name of the sender SenderName string `json:"sender_name"` // contains filtered or unexported fields }
The message was imported from an exported message history
func UnmarshalMessageForwardOriginMessageImport ¶
func UnmarshalMessageForwardOriginMessageImport(data json.RawMessage) (*MessageForwardOriginMessageImport, error)
func (*MessageForwardOriginMessageImport) GetClass ¶
func (*MessageForwardOriginMessageImport) GetClass() string
func (*MessageForwardOriginMessageImport) GetType ¶
func (*MessageForwardOriginMessageImport) GetType() string
func (*MessageForwardOriginMessageImport) MarshalJSON ¶
func (entity *MessageForwardOriginMessageImport) MarshalJSON() ([]byte, error)
func (*MessageForwardOriginMessageImport) MessageForwardOriginType ¶
func (*MessageForwardOriginMessageImport) MessageForwardOriginType() string
type MessageForwardOriginUser ¶
type MessageForwardOriginUser struct { // Identifier of the user that originally sent the message SenderUserId int64 `json:"sender_user_id"` // contains filtered or unexported fields }
The message was originally sent by a known user
func UnmarshalMessageForwardOriginUser ¶
func UnmarshalMessageForwardOriginUser(data json.RawMessage) (*MessageForwardOriginUser, error)
func (*MessageForwardOriginUser) GetClass ¶
func (*MessageForwardOriginUser) GetClass() string
func (*MessageForwardOriginUser) GetType ¶
func (*MessageForwardOriginUser) GetType() string
func (*MessageForwardOriginUser) MarshalJSON ¶
func (entity *MessageForwardOriginUser) MarshalJSON() ([]byte, error)
func (*MessageForwardOriginUser) MessageForwardOriginType ¶
func (*MessageForwardOriginUser) MessageForwardOriginType() string
type MessageGame ¶
type MessageGame struct { // The game description Game *Game `json:"game"` // contains filtered or unexported fields }
A message with a game
func UnmarshalMessageGame ¶
func UnmarshalMessageGame(data json.RawMessage) (*MessageGame, error)
func (*MessageGame) GetClass ¶
func (*MessageGame) GetClass() string
func (*MessageGame) GetType ¶
func (*MessageGame) GetType() string
func (*MessageGame) MarshalJSON ¶
func (entity *MessageGame) MarshalJSON() ([]byte, error)
func (*MessageGame) MessageContentType ¶
func (*MessageGame) MessageContentType() string
type MessageGameScore ¶
type MessageGameScore struct { // Identifier of the message with the game, can be an identifier of a deleted message GameMessageId int64 `json:"game_message_id"` // Identifier of the game; may be different from the games presented in the message with the game GameId JsonInt64 `json:"game_id"` // New score Score int32 `json:"score"` // contains filtered or unexported fields }
A new high score was achieved in a game
func UnmarshalMessageGameScore ¶
func UnmarshalMessageGameScore(data json.RawMessage) (*MessageGameScore, error)
func (*MessageGameScore) GetClass ¶
func (*MessageGameScore) GetClass() string
func (*MessageGameScore) GetType ¶
func (*MessageGameScore) GetType() string
func (*MessageGameScore) MarshalJSON ¶
func (entity *MessageGameScore) MarshalJSON() ([]byte, error)
func (*MessageGameScore) MessageContentType ¶
func (*MessageGameScore) MessageContentType() string
type MessageGiftedPremium ¶ added in v1.2.3
type MessageGiftedPremium struct { // The identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous GifterUserId int64 `json:"gifter_user_id"` // Currency for the paid amount Currency string `json:"currency"` // The paid amount, in the smallest units of the currency Amount int64 `json:"amount"` // Cryptocurrency used to pay for the gift; may be empty if none Cryptocurrency string `json:"cryptocurrency"` // The paid amount, in the smallest units of the cryptocurrency CryptocurrencyAmount JsonInt64 `json:"cryptocurrency_amount"` // Number of month the Telegram Premium subscription will be active MonthCount int32 `json:"month_count"` // A sticker to be shown in the message; may be null if unknown Sticker *Sticker `json:"sticker"` // contains filtered or unexported fields }
Telegram Premium was gifted to the user
func UnmarshalMessageGiftedPremium ¶ added in v1.2.3
func UnmarshalMessageGiftedPremium(data json.RawMessage) (*MessageGiftedPremium, error)
func (*MessageGiftedPremium) GetClass ¶ added in v1.2.3
func (*MessageGiftedPremium) GetClass() string
func (*MessageGiftedPremium) GetType ¶ added in v1.2.3
func (*MessageGiftedPremium) GetType() string
func (*MessageGiftedPremium) MarshalJSON ¶ added in v1.2.3
func (entity *MessageGiftedPremium) MarshalJSON() ([]byte, error)
func (*MessageGiftedPremium) MessageContentType ¶ added in v1.2.3
func (*MessageGiftedPremium) MessageContentType() string
type MessageInteractionInfo ¶
type MessageInteractionInfo struct { // Number of times the message was viewed ViewCount int32 `json:"view_count"` // Number of times the message was forwarded ForwardCount int32 `json:"forward_count"` // Information about direct or indirect replies to the message; may be null. Currently, available only in channels with a discussion supergroup and discussion supergroups for messages, which are not replies itself ReplyInfo *MessageReplyInfo `json:"reply_info"` // The list of reactions added to the message Reactions []*MessageReaction `json:"reactions"` // contains filtered or unexported fields }
Contains information about interactions with a message
func UnmarshalMessageInteractionInfo ¶
func UnmarshalMessageInteractionInfo(data json.RawMessage) (*MessageInteractionInfo, error)
func (*MessageInteractionInfo) GetClass ¶
func (*MessageInteractionInfo) GetClass() string
func (*MessageInteractionInfo) GetType ¶
func (*MessageInteractionInfo) GetType() string
func (*MessageInteractionInfo) MarshalJSON ¶
func (entity *MessageInteractionInfo) MarshalJSON() ([]byte, error)
type MessageInviteVideoChatParticipants ¶
type MessageInviteVideoChatParticipants struct { // Identifier of the video chat. The video chat can be received through the method getGroupCall GroupCallId int32 `json:"group_call_id"` // Invited user identifiers UserIds []int64 `json:"user_ids"` // contains filtered or unexported fields }
A message with information about an invite to a video chat
func UnmarshalMessageInviteVideoChatParticipants ¶
func UnmarshalMessageInviteVideoChatParticipants(data json.RawMessage) (*MessageInviteVideoChatParticipants, error)
func (*MessageInviteVideoChatParticipants) GetClass ¶
func (*MessageInviteVideoChatParticipants) GetClass() string
func (*MessageInviteVideoChatParticipants) GetType ¶
func (*MessageInviteVideoChatParticipants) GetType() string
func (*MessageInviteVideoChatParticipants) MarshalJSON ¶
func (entity *MessageInviteVideoChatParticipants) MarshalJSON() ([]byte, error)
func (*MessageInviteVideoChatParticipants) MessageContentType ¶
func (*MessageInviteVideoChatParticipants) MessageContentType() string
type MessageInvoice ¶
type MessageInvoice struct { // Product title Title string `json:"title"` // Product description Description *FormattedText `json:"description"` // Product photo; may be null Photo *Photo `json:"photo"` // Currency for the product price Currency string `json:"currency"` // Product total price in the smallest units of the currency TotalAmount int64 `json:"total_amount"` // Unique invoice bot start_parameter to be passed to getInternalLink StartParameter string `json:"start_parameter"` // True, if the invoice is a test invoice IsTest bool `json:"is_test"` // True, if the shipping address must be specified NeedShippingAddress bool `json:"need_shipping_address"` // The identifier of the message with the receipt, after the product has been purchased ReceiptMessageId int64 `json:"receipt_message_id"` // Extended media attached to the invoice; may be null ExtendedMedia MessageExtendedMedia `json:"extended_media"` // contains filtered or unexported fields }
A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice
func UnmarshalMessageInvoice ¶
func UnmarshalMessageInvoice(data json.RawMessage) (*MessageInvoice, error)
func (*MessageInvoice) GetClass ¶
func (*MessageInvoice) GetClass() string
func (*MessageInvoice) GetType ¶
func (*MessageInvoice) GetType() string
func (*MessageInvoice) MarshalJSON ¶
func (entity *MessageInvoice) MarshalJSON() ([]byte, error)
func (*MessageInvoice) MessageContentType ¶
func (*MessageInvoice) MessageContentType() string
func (*MessageInvoice) UnmarshalJSON ¶ added in v1.2.3
func (messageInvoice *MessageInvoice) UnmarshalJSON(data []byte) error
type MessageLink ¶
type MessageLink struct { // The link Link string `json:"link"` // True, if the link will work for non-members of the chat IsPublic bool `json:"is_public"` // contains filtered or unexported fields }
Contains an HTTPS link to a message in a supergroup or channel, or a forum topic
func UnmarshalMessageLink ¶
func UnmarshalMessageLink(data json.RawMessage) (*MessageLink, error)
func (*MessageLink) GetClass ¶
func (*MessageLink) GetClass() string
func (*MessageLink) GetType ¶
func (*MessageLink) GetType() string
func (*MessageLink) MarshalJSON ¶
func (entity *MessageLink) MarshalJSON() ([]byte, error)
type MessageLinkInfo ¶
type MessageLinkInfo struct { // True, if the link is a public link for a message or a forum topic in a chat IsPublic bool `json:"is_public"` // If found, identifier of the chat to which the link points, 0 otherwise ChatId int64 `json:"chat_id"` // If found, identifier of the message thread in which to open the message, or a forum topic to open if the message is missing MessageThreadId int64 `json:"message_thread_id"` // If found, the linked message; may be null Message *Message `json:"message"` // Timestamp from which the video/audio/video note/voice note playing must start, in seconds; 0 if not specified. The media can be in the message content or in its web page preview MediaTimestamp int32 `json:"media_timestamp"` // True, if the whole media album to which the message belongs is linked ForAlbum bool `json:"for_album"` // contains filtered or unexported fields }
Contains information about a link to a message or a forum topic in a chat
func UnmarshalMessageLinkInfo ¶
func UnmarshalMessageLinkInfo(data json.RawMessage) (*MessageLinkInfo, error)
func (*MessageLinkInfo) GetClass ¶
func (*MessageLinkInfo) GetClass() string
func (*MessageLinkInfo) GetType ¶
func (*MessageLinkInfo) GetType() string
func (*MessageLinkInfo) MarshalJSON ¶
func (entity *MessageLinkInfo) MarshalJSON() ([]byte, error)
type MessageLocation ¶
type MessageLocation struct { // The location description Location *Location `json:"location"` // Time relative to the message send date, for which the location can be updated, in seconds LivePeriod int32 `json:"live_period"` // Left time for which the location can be updated, in seconds. updateMessageContent is not sent when this field changes ExpiresIn int32 `json:"expires_in"` // For live locations, a direction in which the location moves, in degrees; 1-360. If 0 the direction is unknown Heading int32 `json:"heading"` // For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. Available only to the message sender ProximityAlertRadius int32 `json:"proximity_alert_radius"` // contains filtered or unexported fields }
A message with a location
func UnmarshalMessageLocation ¶
func UnmarshalMessageLocation(data json.RawMessage) (*MessageLocation, error)
func (*MessageLocation) GetClass ¶
func (*MessageLocation) GetClass() string
func (*MessageLocation) GetType ¶
func (*MessageLocation) GetType() string
func (*MessageLocation) MarshalJSON ¶
func (entity *MessageLocation) MarshalJSON() ([]byte, error)
func (*MessageLocation) MessageContentType ¶
func (*MessageLocation) MessageContentType() string
type MessagePassportDataReceived ¶
type MessagePassportDataReceived struct { // List of received Telegram Passport elements Elements []*EncryptedPassportElement `json:"elements"` // Encrypted data credentials Credentials *EncryptedCredentials `json:"credentials"` // contains filtered or unexported fields }
Telegram Passport data has been received; for bots only
func UnmarshalMessagePassportDataReceived ¶
func UnmarshalMessagePassportDataReceived(data json.RawMessage) (*MessagePassportDataReceived, error)
func (*MessagePassportDataReceived) GetClass ¶
func (*MessagePassportDataReceived) GetClass() string
func (*MessagePassportDataReceived) GetType ¶
func (*MessagePassportDataReceived) GetType() string
func (*MessagePassportDataReceived) MarshalJSON ¶
func (entity *MessagePassportDataReceived) MarshalJSON() ([]byte, error)
func (*MessagePassportDataReceived) MessageContentType ¶
func (*MessagePassportDataReceived) MessageContentType() string
type MessagePassportDataSent ¶
type MessagePassportDataSent struct { // List of Telegram Passport element types sent Types []PassportElementType `json:"types"` // contains filtered or unexported fields }
Telegram Passport data has been sent to a bot
func UnmarshalMessagePassportDataSent ¶
func UnmarshalMessagePassportDataSent(data json.RawMessage) (*MessagePassportDataSent, error)
func (*MessagePassportDataSent) GetClass ¶
func (*MessagePassportDataSent) GetClass() string
func (*MessagePassportDataSent) GetType ¶
func (*MessagePassportDataSent) GetType() string
func (*MessagePassportDataSent) MarshalJSON ¶
func (entity *MessagePassportDataSent) MarshalJSON() ([]byte, error)
func (*MessagePassportDataSent) MessageContentType ¶
func (*MessagePassportDataSent) MessageContentType() string
func (*MessagePassportDataSent) UnmarshalJSON ¶
func (messagePassportDataSent *MessagePassportDataSent) UnmarshalJSON(data []byte) error
type MessagePaymentSuccessful ¶
type MessagePaymentSuccessful struct { // Identifier of the chat, containing the corresponding invoice message InvoiceChatId int64 `json:"invoice_chat_id"` // Identifier of the message with the corresponding invoice; can be 0 or an identifier of a deleted message InvoiceMessageId int64 `json:"invoice_message_id"` // Currency for the price of the product Currency string `json:"currency"` // Total price for the product, in the smallest units of the currency TotalAmount int64 `json:"total_amount"` // True, if this is a recurring payment IsRecurring bool `json:"is_recurring"` // True, if this is the first recurring payment IsFirstRecurring bool `json:"is_first_recurring"` // Name of the invoice; may be empty if unknown InvoiceName string `json:"invoice_name"` // contains filtered or unexported fields }
A payment has been completed
func UnmarshalMessagePaymentSuccessful ¶
func UnmarshalMessagePaymentSuccessful(data json.RawMessage) (*MessagePaymentSuccessful, error)
func (*MessagePaymentSuccessful) GetClass ¶
func (*MessagePaymentSuccessful) GetClass() string
func (*MessagePaymentSuccessful) GetType ¶
func (*MessagePaymentSuccessful) GetType() string
func (*MessagePaymentSuccessful) MarshalJSON ¶
func (entity *MessagePaymentSuccessful) MarshalJSON() ([]byte, error)
func (*MessagePaymentSuccessful) MessageContentType ¶
func (*MessagePaymentSuccessful) MessageContentType() string
type MessagePaymentSuccessfulBot ¶
type MessagePaymentSuccessfulBot struct { // Currency for price of the product Currency string `json:"currency"` // Total price for the product, in the smallest units of the currency TotalAmount int64 `json:"total_amount"` // True, if this is a recurring payment IsRecurring bool `json:"is_recurring"` // True, if this is the first recurring payment IsFirstRecurring bool `json:"is_first_recurring"` // Invoice payload InvoicePayload []byte `json:"invoice_payload"` // Identifier of the shipping option chosen by the user; may be empty if not applicable ShippingOptionId string `json:"shipping_option_id"` // Information about the order; may be null OrderInfo *OrderInfo `json:"order_info"` // Telegram payment identifier TelegramPaymentChargeId string `json:"telegram_payment_charge_id"` // Provider payment identifier ProviderPaymentChargeId string `json:"provider_payment_charge_id"` // contains filtered or unexported fields }
A payment has been completed; for bots only
func UnmarshalMessagePaymentSuccessfulBot ¶
func UnmarshalMessagePaymentSuccessfulBot(data json.RawMessage) (*MessagePaymentSuccessfulBot, error)
func (*MessagePaymentSuccessfulBot) GetClass ¶
func (*MessagePaymentSuccessfulBot) GetClass() string
func (*MessagePaymentSuccessfulBot) GetType ¶
func (*MessagePaymentSuccessfulBot) GetType() string
func (*MessagePaymentSuccessfulBot) MarshalJSON ¶
func (entity *MessagePaymentSuccessfulBot) MarshalJSON() ([]byte, error)
func (*MessagePaymentSuccessfulBot) MessageContentType ¶
func (*MessagePaymentSuccessfulBot) MessageContentType() string
type MessagePhoto ¶
type MessagePhoto struct { // The photo Photo *Photo `json:"photo"` // Photo caption Caption *FormattedText `json:"caption"` // True, if the photo preview must be covered by a spoiler animation HasSpoiler bool `json:"has_spoiler"` // True, if the photo must be blurred and must be shown only while tapped IsSecret bool `json:"is_secret"` // contains filtered or unexported fields }
A photo message
func UnmarshalMessagePhoto ¶
func UnmarshalMessagePhoto(data json.RawMessage) (*MessagePhoto, error)
func (*MessagePhoto) GetClass ¶
func (*MessagePhoto) GetClass() string
func (*MessagePhoto) GetType ¶
func (*MessagePhoto) GetType() string
func (*MessagePhoto) MarshalJSON ¶
func (entity *MessagePhoto) MarshalJSON() ([]byte, error)
func (*MessagePhoto) MessageContentType ¶
func (*MessagePhoto) MessageContentType() string
type MessagePinMessage ¶
type MessagePinMessage struct { // Identifier of the pinned message, can be an identifier of a deleted message or 0 MessageId int64 `json:"message_id"` // contains filtered or unexported fields }
A message has been pinned
func UnmarshalMessagePinMessage ¶
func UnmarshalMessagePinMessage(data json.RawMessage) (*MessagePinMessage, error)
func (*MessagePinMessage) GetClass ¶
func (*MessagePinMessage) GetClass() string
func (*MessagePinMessage) GetType ¶
func (*MessagePinMessage) GetType() string
func (*MessagePinMessage) MarshalJSON ¶
func (entity *MessagePinMessage) MarshalJSON() ([]byte, error)
func (*MessagePinMessage) MessageContentType ¶
func (*MessagePinMessage) MessageContentType() string
type MessagePoll ¶
type MessagePoll struct { // The poll description Poll *Poll `json:"poll"` // contains filtered or unexported fields }
A message with a poll
func UnmarshalMessagePoll ¶
func UnmarshalMessagePoll(data json.RawMessage) (*MessagePoll, error)
func (*MessagePoll) GetClass ¶
func (*MessagePoll) GetClass() string
func (*MessagePoll) GetType ¶
func (*MessagePoll) GetType() string
func (*MessagePoll) MarshalJSON ¶
func (entity *MessagePoll) MarshalJSON() ([]byte, error)
func (*MessagePoll) MessageContentType ¶
func (*MessagePoll) MessageContentType() string
type MessagePosition ¶
type MessagePosition struct { // 0-based message position in the full list of suitable messages Position int32 `json:"position"` // Message identifier MessageId int64 `json:"message_id"` // Point in time (Unix timestamp) when the message was sent Date int32 `json:"date"` // contains filtered or unexported fields }
Contains information about a message in a specific position
func UnmarshalMessagePosition ¶
func UnmarshalMessagePosition(data json.RawMessage) (*MessagePosition, error)
func (*MessagePosition) GetClass ¶
func (*MessagePosition) GetClass() string
func (*MessagePosition) GetType ¶
func (*MessagePosition) GetType() string
func (*MessagePosition) MarshalJSON ¶
func (entity *MessagePosition) MarshalJSON() ([]byte, error)
type MessagePositions ¶
type MessagePositions struct { // Total number of messages found TotalCount int32 `json:"total_count"` // List of message positions Positions []*MessagePosition `json:"positions"` // contains filtered or unexported fields }
Contains a list of message positions
func UnmarshalMessagePositions ¶
func UnmarshalMessagePositions(data json.RawMessage) (*MessagePositions, error)
func (*MessagePositions) GetClass ¶
func (*MessagePositions) GetClass() string
func (*MessagePositions) GetType ¶
func (*MessagePositions) GetType() string
func (*MessagePositions) MarshalJSON ¶
func (entity *MessagePositions) MarshalJSON() ([]byte, error)
type MessageProximityAlertTriggered ¶
type MessageProximityAlertTriggered struct { // The identifier of a user or chat that triggered the proximity alert TravelerId MessageSender `json:"traveler_id"` // The identifier of a user or chat that subscribed for the proximity alert WatcherId MessageSender `json:"watcher_id"` // The distance between the users Distance int32 `json:"distance"` // contains filtered or unexported fields }
A user in the chat came within proximity alert range
func UnmarshalMessageProximityAlertTriggered ¶
func UnmarshalMessageProximityAlertTriggered(data json.RawMessage) (*MessageProximityAlertTriggered, error)
func (*MessageProximityAlertTriggered) GetClass ¶
func (*MessageProximityAlertTriggered) GetClass() string
func (*MessageProximityAlertTriggered) GetType ¶
func (*MessageProximityAlertTriggered) GetType() string
func (*MessageProximityAlertTriggered) MarshalJSON ¶
func (entity *MessageProximityAlertTriggered) MarshalJSON() ([]byte, error)
func (*MessageProximityAlertTriggered) MessageContentType ¶
func (*MessageProximityAlertTriggered) MessageContentType() string
func (*MessageProximityAlertTriggered) UnmarshalJSON ¶
func (messageProximityAlertTriggered *MessageProximityAlertTriggered) UnmarshalJSON(data []byte) error
type MessageReaction ¶ added in v1.0.6
type MessageReaction struct { // Type of the reaction Type ReactionType `json:"type"` // Number of times the reaction was added TotalCount int32 `json:"total_count"` // True, if the reaction is chosen by the current user IsChosen bool `json:"is_chosen"` // Identifiers of at most 3 recent message senders, added the reaction; available in private, basic group and supergroup chats RecentSenderIds []MessageSender `json:"recent_sender_ids"` // contains filtered or unexported fields }
Contains information about a reaction to a message
func UnmarshalMessageReaction ¶ added in v1.0.6
func UnmarshalMessageReaction(data json.RawMessage) (*MessageReaction, error)
func (*MessageReaction) GetClass ¶ added in v1.0.6
func (*MessageReaction) GetClass() string
func (*MessageReaction) GetType ¶ added in v1.0.6
func (*MessageReaction) GetType() string
func (*MessageReaction) MarshalJSON ¶ added in v1.0.6
func (entity *MessageReaction) MarshalJSON() ([]byte, error)
func (*MessageReaction) UnmarshalJSON ¶ added in v1.0.6
func (messageReaction *MessageReaction) UnmarshalJSON(data []byte) error
type MessageReplyInfo ¶
type MessageReplyInfo struct { // Number of times the message was directly or indirectly replied ReplyCount int32 `json:"reply_count"` // Identifiers of at most 3 recent repliers to the message; available in channels with a discussion supergroup. The users and chats are expected to be inaccessible: only their photo and name will be available RecentReplierIds []MessageSender `json:"recent_replier_ids"` // Identifier of the last read incoming reply to the message LastReadInboxMessageId int64 `json:"last_read_inbox_message_id"` // Identifier of the last read outgoing reply to the message LastReadOutboxMessageId int64 `json:"last_read_outbox_message_id"` // Identifier of the last reply to the message LastMessageId int64 `json:"last_message_id"` // contains filtered or unexported fields }
Contains information about replies to a message
func UnmarshalMessageReplyInfo ¶
func UnmarshalMessageReplyInfo(data json.RawMessage) (*MessageReplyInfo, error)
func (*MessageReplyInfo) GetClass ¶
func (*MessageReplyInfo) GetClass() string
func (*MessageReplyInfo) GetType ¶
func (*MessageReplyInfo) GetType() string
func (*MessageReplyInfo) MarshalJSON ¶
func (entity *MessageReplyInfo) MarshalJSON() ([]byte, error)
func (*MessageReplyInfo) UnmarshalJSON ¶
func (messageReplyInfo *MessageReplyInfo) UnmarshalJSON(data []byte) error
type MessageReplyTo ¶ added in v1.2.3
type MessageReplyTo interface {
MessageReplyToType() string
}
Contains information about the message or the story a message is replying to
func UnmarshalListOfMessageReplyTo ¶ added in v1.2.3
func UnmarshalListOfMessageReplyTo(dataList []json.RawMessage) ([]MessageReplyTo, error)
func UnmarshalMessageReplyTo ¶ added in v1.2.3
func UnmarshalMessageReplyTo(data json.RawMessage) (MessageReplyTo, error)
type MessageReplyToMessage ¶ added in v1.2.3
type MessageReplyToMessage struct { // The identifier of the chat to which the replied message belongs; ignored for outgoing replies. For example, messages in the Replies chat are replies to messages in different chats ChatId int64 `json:"chat_id"` // The identifier of the replied message MessageId int64 `json:"message_id"` // contains filtered or unexported fields }
Describes a replied message
func UnmarshalMessageReplyToMessage ¶ added in v1.2.3
func UnmarshalMessageReplyToMessage(data json.RawMessage) (*MessageReplyToMessage, error)
func (*MessageReplyToMessage) GetClass ¶ added in v1.2.3
func (*MessageReplyToMessage) GetClass() string
func (*MessageReplyToMessage) GetType ¶ added in v1.2.3
func (*MessageReplyToMessage) GetType() string
func (*MessageReplyToMessage) MarshalJSON ¶ added in v1.2.3
func (entity *MessageReplyToMessage) MarshalJSON() ([]byte, error)
func (*MessageReplyToMessage) MessageReplyToType ¶ added in v1.2.3
func (*MessageReplyToMessage) MessageReplyToType() string
type MessageReplyToStory ¶ added in v1.2.3
type MessageReplyToStory struct { // The identifier of the sender of the replied story. Currently, stories can be replied only in the sender's chat StorySenderChatId int64 `json:"story_sender_chat_id"` // The identifier of the replied story StoryId int32 `json:"story_id"` // contains filtered or unexported fields }
Describes a replied story
func UnmarshalMessageReplyToStory ¶ added in v1.2.3
func UnmarshalMessageReplyToStory(data json.RawMessage) (*MessageReplyToStory, error)
func (*MessageReplyToStory) GetClass ¶ added in v1.2.3
func (*MessageReplyToStory) GetClass() string
func (*MessageReplyToStory) GetType ¶ added in v1.2.3
func (*MessageReplyToStory) GetType() string
func (*MessageReplyToStory) MarshalJSON ¶ added in v1.2.3
func (entity *MessageReplyToStory) MarshalJSON() ([]byte, error)
func (*MessageReplyToStory) MessageReplyToType ¶ added in v1.2.3
func (*MessageReplyToStory) MessageReplyToType() string
type MessageSchedulingState ¶
type MessageSchedulingState interface {
MessageSchedulingStateType() string
}
Contains information about the time when a scheduled message will be sent
func UnmarshalListOfMessageSchedulingState ¶
func UnmarshalListOfMessageSchedulingState(dataList []json.RawMessage) ([]MessageSchedulingState, error)
func UnmarshalMessageSchedulingState ¶
func UnmarshalMessageSchedulingState(data json.RawMessage) (MessageSchedulingState, error)
type MessageSchedulingStateSendAtDate ¶
type MessageSchedulingStateSendAtDate struct { // Point in time (Unix timestamp) when the message will be sent. The date must be within 367 days in the future SendDate int32 `json:"send_date"` // contains filtered or unexported fields }
The message will be sent at the specified date
func UnmarshalMessageSchedulingStateSendAtDate ¶
func UnmarshalMessageSchedulingStateSendAtDate(data json.RawMessage) (*MessageSchedulingStateSendAtDate, error)
func (*MessageSchedulingStateSendAtDate) GetClass ¶
func (*MessageSchedulingStateSendAtDate) GetClass() string
func (*MessageSchedulingStateSendAtDate) GetType ¶
func (*MessageSchedulingStateSendAtDate) GetType() string
func (*MessageSchedulingStateSendAtDate) MarshalJSON ¶
func (entity *MessageSchedulingStateSendAtDate) MarshalJSON() ([]byte, error)
func (*MessageSchedulingStateSendAtDate) MessageSchedulingStateType ¶
func (*MessageSchedulingStateSendAtDate) MessageSchedulingStateType() string
type MessageSchedulingStateSendWhenOnline ¶
type MessageSchedulingStateSendWhenOnline struct {
// contains filtered or unexported fields
}
The message will be sent when the peer will be online. Applicable to private chats only and when the exact online status of the peer is known
func UnmarshalMessageSchedulingStateSendWhenOnline ¶
func UnmarshalMessageSchedulingStateSendWhenOnline(data json.RawMessage) (*MessageSchedulingStateSendWhenOnline, error)
func (*MessageSchedulingStateSendWhenOnline) GetClass ¶
func (*MessageSchedulingStateSendWhenOnline) GetClass() string
func (*MessageSchedulingStateSendWhenOnline) GetType ¶
func (*MessageSchedulingStateSendWhenOnline) GetType() string
func (*MessageSchedulingStateSendWhenOnline) MarshalJSON ¶
func (entity *MessageSchedulingStateSendWhenOnline) MarshalJSON() ([]byte, error)
func (*MessageSchedulingStateSendWhenOnline) MessageSchedulingStateType ¶
func (*MessageSchedulingStateSendWhenOnline) MessageSchedulingStateType() string
type MessageScreenshotTaken ¶
type MessageScreenshotTaken struct {
// contains filtered or unexported fields
}
A screenshot of a message in the chat has been taken
func UnmarshalMessageScreenshotTaken ¶
func UnmarshalMessageScreenshotTaken(data json.RawMessage) (*MessageScreenshotTaken, error)
func (*MessageScreenshotTaken) GetClass ¶
func (*MessageScreenshotTaken) GetClass() string
func (*MessageScreenshotTaken) GetType ¶
func (*MessageScreenshotTaken) GetType() string
func (*MessageScreenshotTaken) MarshalJSON ¶
func (entity *MessageScreenshotTaken) MarshalJSON() ([]byte, error)
func (*MessageScreenshotTaken) MessageContentType ¶
func (*MessageScreenshotTaken) MessageContentType() string
type MessageSelfDestructType ¶ added in v1.2.3
type MessageSelfDestructType interface {
MessageSelfDestructTypeType() string
}
Describes when a message will be self-destructed
func UnmarshalListOfMessageSelfDestructType ¶ added in v1.2.3
func UnmarshalListOfMessageSelfDestructType(dataList []json.RawMessage) ([]MessageSelfDestructType, error)
func UnmarshalMessageSelfDestructType ¶ added in v1.2.3
func UnmarshalMessageSelfDestructType(data json.RawMessage) (MessageSelfDestructType, error)
type MessageSelfDestructTypeImmediately ¶ added in v1.2.3
type MessageSelfDestructTypeImmediately struct {
// contains filtered or unexported fields
}
The message can be opened only once and will be self-destructed once closed
func UnmarshalMessageSelfDestructTypeImmediately ¶ added in v1.2.3
func UnmarshalMessageSelfDestructTypeImmediately(data json.RawMessage) (*MessageSelfDestructTypeImmediately, error)
func (*MessageSelfDestructTypeImmediately) GetClass ¶ added in v1.2.3
func (*MessageSelfDestructTypeImmediately) GetClass() string
func (*MessageSelfDestructTypeImmediately) GetType ¶ added in v1.2.3
func (*MessageSelfDestructTypeImmediately) GetType() string
func (*MessageSelfDestructTypeImmediately) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSelfDestructTypeImmediately) MarshalJSON() ([]byte, error)
func (*MessageSelfDestructTypeImmediately) MessageSelfDestructTypeType ¶ added in v1.2.3
func (*MessageSelfDestructTypeImmediately) MessageSelfDestructTypeType() string
type MessageSelfDestructTypeTimer ¶ added in v1.2.3
type MessageSelfDestructTypeTimer struct { // The message's self-destruct time, in seconds; must be between 0 and 60 in private chats SelfDestructTime int32 `json:"self_destruct_time"` // contains filtered or unexported fields }
The message will be self-destructed in the specified time after its content was opened
func UnmarshalMessageSelfDestructTypeTimer ¶ added in v1.2.3
func UnmarshalMessageSelfDestructTypeTimer(data json.RawMessage) (*MessageSelfDestructTypeTimer, error)
func (*MessageSelfDestructTypeTimer) GetClass ¶ added in v1.2.3
func (*MessageSelfDestructTypeTimer) GetClass() string
func (*MessageSelfDestructTypeTimer) GetType ¶ added in v1.2.3
func (*MessageSelfDestructTypeTimer) GetType() string
func (*MessageSelfDestructTypeTimer) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSelfDestructTypeTimer) MarshalJSON() ([]byte, error)
func (*MessageSelfDestructTypeTimer) MessageSelfDestructTypeType ¶ added in v1.2.3
func (*MessageSelfDestructTypeTimer) MessageSelfDestructTypeType() string
type MessageSendOptions ¶
type MessageSendOptions struct { // Pass true to disable notification for the message DisableNotification bool `json:"disable_notification"` // Pass true if the message is sent from the background FromBackground bool `json:"from_background"` // Pass true if the content of the message must be protected from forwarding and saving; for bots only ProtectContent bool `json:"protect_content"` // Pass true if the user explicitly chosen a sticker or a custom emoji from an installed sticker set; applicable only to sendMessage and sendMessageAlbum UpdateOrderOfInstalledStickerSets bool `json:"update_order_of_installed_sticker_sets"` // Message scheduling state; pass null to send message immediately. Messages sent to a secret chat, live location messages and self-destructing messages can't be scheduled SchedulingState MessageSchedulingState `json:"scheduling_state"` // Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates SendingId int32 `json:"sending_id"` // contains filtered or unexported fields }
Options to be used when a message is sent
func UnmarshalMessageSendOptions ¶
func UnmarshalMessageSendOptions(data json.RawMessage) (*MessageSendOptions, error)
func (*MessageSendOptions) GetClass ¶
func (*MessageSendOptions) GetClass() string
func (*MessageSendOptions) GetType ¶
func (*MessageSendOptions) GetType() string
func (*MessageSendOptions) MarshalJSON ¶
func (entity *MessageSendOptions) MarshalJSON() ([]byte, error)
func (*MessageSendOptions) UnmarshalJSON ¶
func (messageSendOptions *MessageSendOptions) UnmarshalJSON(data []byte) error
type MessageSender ¶
type MessageSender interface {
MessageSenderType() string
}
Contains information about the sender of a message
func UnmarshalListOfMessageSender ¶
func UnmarshalListOfMessageSender(dataList []json.RawMessage) ([]MessageSender, error)
func UnmarshalMessageSender ¶
func UnmarshalMessageSender(data json.RawMessage) (MessageSender, error)
type MessageSenderChat ¶
type MessageSenderChat struct { // Identifier of the chat that sent the message ChatId int64 `json:"chat_id"` // contains filtered or unexported fields }
The message was sent on behalf of a chat
func UnmarshalMessageSenderChat ¶
func UnmarshalMessageSenderChat(data json.RawMessage) (*MessageSenderChat, error)
func (*MessageSenderChat) GetClass ¶
func (*MessageSenderChat) GetClass() string
func (*MessageSenderChat) GetType ¶
func (*MessageSenderChat) GetType() string
func (*MessageSenderChat) MarshalJSON ¶
func (entity *MessageSenderChat) MarshalJSON() ([]byte, error)
func (*MessageSenderChat) MessageSenderType ¶
func (*MessageSenderChat) MessageSenderType() string
type MessageSenderUser ¶
type MessageSenderUser struct { // Identifier of the user that sent the message UserId int64 `json:"user_id"` // contains filtered or unexported fields }
The message was sent by a known user
func UnmarshalMessageSenderUser ¶
func UnmarshalMessageSenderUser(data json.RawMessage) (*MessageSenderUser, error)
func (*MessageSenderUser) GetClass ¶
func (*MessageSenderUser) GetClass() string
func (*MessageSenderUser) GetType ¶
func (*MessageSenderUser) GetType() string
func (*MessageSenderUser) MarshalJSON ¶
func (entity *MessageSenderUser) MarshalJSON() ([]byte, error)
func (*MessageSenderUser) MessageSenderType ¶
func (*MessageSenderUser) MessageSenderType() string
type MessageSenders ¶
type MessageSenders struct { // Approximate total number of messages senders found TotalCount int32 `json:"total_count"` // List of message senders Senders []MessageSender `json:"senders"` // contains filtered or unexported fields }
Represents a list of message senders
func UnmarshalMessageSenders ¶
func UnmarshalMessageSenders(data json.RawMessage) (*MessageSenders, error)
func (*MessageSenders) GetClass ¶
func (*MessageSenders) GetClass() string
func (*MessageSenders) GetType ¶
func (*MessageSenders) GetType() string
func (*MessageSenders) MarshalJSON ¶
func (entity *MessageSenders) MarshalJSON() ([]byte, error)
func (*MessageSenders) UnmarshalJSON ¶
func (messageSenders *MessageSenders) UnmarshalJSON(data []byte) error
type MessageSendingState ¶
type MessageSendingState interface {
MessageSendingStateType() string
}
Contains information about the sending state of the message
func UnmarshalListOfMessageSendingState ¶
func UnmarshalListOfMessageSendingState(dataList []json.RawMessage) ([]MessageSendingState, error)
func UnmarshalMessageSendingState ¶
func UnmarshalMessageSendingState(data json.RawMessage) (MessageSendingState, error)
type MessageSendingStateFailed ¶
type MessageSendingStateFailed struct { // An error code; 0 if unknown ErrorCode int32 `json:"error_code"` // Error message ErrorMessage string `json:"error_message"` // True, if the message can be re-sent CanRetry bool `json:"can_retry"` // True, if the message can be re-sent only on behalf of a different sender NeedAnotherSender bool `json:"need_another_sender"` // Time left before the message can be re-sent, in seconds. No update is sent when this field changes RetryAfter float64 `json:"retry_after"` // contains filtered or unexported fields }
The message failed to be sent
func UnmarshalMessageSendingStateFailed ¶
func UnmarshalMessageSendingStateFailed(data json.RawMessage) (*MessageSendingStateFailed, error)
func (*MessageSendingStateFailed) GetClass ¶
func (*MessageSendingStateFailed) GetClass() string
func (*MessageSendingStateFailed) GetType ¶
func (*MessageSendingStateFailed) GetType() string
func (*MessageSendingStateFailed) MarshalJSON ¶
func (entity *MessageSendingStateFailed) MarshalJSON() ([]byte, error)
func (*MessageSendingStateFailed) MessageSendingStateType ¶
func (*MessageSendingStateFailed) MessageSendingStateType() string
type MessageSendingStatePending ¶
type MessageSendingStatePending struct { // Non-persistent message sending identifier, specified by the application SendingId int32 `json:"sending_id"` // contains filtered or unexported fields }
The message is being sent now, but has not yet been delivered to the server
func UnmarshalMessageSendingStatePending ¶
func UnmarshalMessageSendingStatePending(data json.RawMessage) (*MessageSendingStatePending, error)
func (*MessageSendingStatePending) GetClass ¶
func (*MessageSendingStatePending) GetClass() string
func (*MessageSendingStatePending) GetType ¶
func (*MessageSendingStatePending) GetType() string
func (*MessageSendingStatePending) MarshalJSON ¶
func (entity *MessageSendingStatePending) MarshalJSON() ([]byte, error)
func (*MessageSendingStatePending) MessageSendingStateType ¶
func (*MessageSendingStatePending) MessageSendingStateType() string
type MessageSource ¶ added in v1.2.3
type MessageSource interface {
MessageSourceType() string
}
Describes source of a message
func UnmarshalListOfMessageSource ¶ added in v1.2.3
func UnmarshalListOfMessageSource(dataList []json.RawMessage) ([]MessageSource, error)
func UnmarshalMessageSource ¶ added in v1.2.3
func UnmarshalMessageSource(data json.RawMessage) (MessageSource, error)
type MessageSourceChatEventLog ¶ added in v1.2.3
type MessageSourceChatEventLog struct {
// contains filtered or unexported fields
}
The message is from a chat event log
func UnmarshalMessageSourceChatEventLog ¶ added in v1.2.3
func UnmarshalMessageSourceChatEventLog(data json.RawMessage) (*MessageSourceChatEventLog, error)
func (*MessageSourceChatEventLog) GetClass ¶ added in v1.2.3
func (*MessageSourceChatEventLog) GetClass() string
func (*MessageSourceChatEventLog) GetType ¶ added in v1.2.3
func (*MessageSourceChatEventLog) GetType() string
func (*MessageSourceChatEventLog) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSourceChatEventLog) MarshalJSON() ([]byte, error)
func (*MessageSourceChatEventLog) MessageSourceType ¶ added in v1.2.3
func (*MessageSourceChatEventLog) MessageSourceType() string
type MessageSourceChatHistory ¶ added in v1.2.3
type MessageSourceChatHistory struct {
// contains filtered or unexported fields
}
The message is from a chat history
func UnmarshalMessageSourceChatHistory ¶ added in v1.2.3
func UnmarshalMessageSourceChatHistory(data json.RawMessage) (*MessageSourceChatHistory, error)
func (*MessageSourceChatHistory) GetClass ¶ added in v1.2.3
func (*MessageSourceChatHistory) GetClass() string
func (*MessageSourceChatHistory) GetType ¶ added in v1.2.3
func (*MessageSourceChatHistory) GetType() string
func (*MessageSourceChatHistory) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSourceChatHistory) MarshalJSON() ([]byte, error)
func (*MessageSourceChatHistory) MessageSourceType ¶ added in v1.2.3
func (*MessageSourceChatHistory) MessageSourceType() string
type MessageSourceChatList ¶ added in v1.2.3
type MessageSourceChatList struct {
// contains filtered or unexported fields
}
The message is from a chat list or a forum topic list
func UnmarshalMessageSourceChatList ¶ added in v1.2.3
func UnmarshalMessageSourceChatList(data json.RawMessage) (*MessageSourceChatList, error)
func (*MessageSourceChatList) GetClass ¶ added in v1.2.3
func (*MessageSourceChatList) GetClass() string
func (*MessageSourceChatList) GetType ¶ added in v1.2.3
func (*MessageSourceChatList) GetType() string
func (*MessageSourceChatList) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSourceChatList) MarshalJSON() ([]byte, error)
func (*MessageSourceChatList) MessageSourceType ¶ added in v1.2.3
func (*MessageSourceChatList) MessageSourceType() string
type MessageSourceForumTopicHistory ¶ added in v1.2.3
type MessageSourceForumTopicHistory struct {
// contains filtered or unexported fields
}
The message is from a forum topic history
func UnmarshalMessageSourceForumTopicHistory ¶ added in v1.2.3
func UnmarshalMessageSourceForumTopicHistory(data json.RawMessage) (*MessageSourceForumTopicHistory, error)
func (*MessageSourceForumTopicHistory) GetClass ¶ added in v1.2.3
func (*MessageSourceForumTopicHistory) GetClass() string
func (*MessageSourceForumTopicHistory) GetType ¶ added in v1.2.3
func (*MessageSourceForumTopicHistory) GetType() string
func (*MessageSourceForumTopicHistory) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSourceForumTopicHistory) MarshalJSON() ([]byte, error)
func (*MessageSourceForumTopicHistory) MessageSourceType ¶ added in v1.2.3
func (*MessageSourceForumTopicHistory) MessageSourceType() string
type MessageSourceHistoryPreview ¶ added in v1.2.3
type MessageSourceHistoryPreview struct {
// contains filtered or unexported fields
}
The message is from chat, message thread or forum topic history preview
func UnmarshalMessageSourceHistoryPreview ¶ added in v1.2.3
func UnmarshalMessageSourceHistoryPreview(data json.RawMessage) (*MessageSourceHistoryPreview, error)
func (*MessageSourceHistoryPreview) GetClass ¶ added in v1.2.3
func (*MessageSourceHistoryPreview) GetClass() string
func (*MessageSourceHistoryPreview) GetType ¶ added in v1.2.3
func (*MessageSourceHistoryPreview) GetType() string
func (*MessageSourceHistoryPreview) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSourceHistoryPreview) MarshalJSON() ([]byte, error)
func (*MessageSourceHistoryPreview) MessageSourceType ¶ added in v1.2.3
func (*MessageSourceHistoryPreview) MessageSourceType() string
type MessageSourceMessageThreadHistory ¶ added in v1.2.3
type MessageSourceMessageThreadHistory struct {
// contains filtered or unexported fields
}
The message is from a message thread history
func UnmarshalMessageSourceMessageThreadHistory ¶ added in v1.2.3
func UnmarshalMessageSourceMessageThreadHistory(data json.RawMessage) (*MessageSourceMessageThreadHistory, error)
func (*MessageSourceMessageThreadHistory) GetClass ¶ added in v1.2.3
func (*MessageSourceMessageThreadHistory) GetClass() string
func (*MessageSourceMessageThreadHistory) GetType ¶ added in v1.2.3
func (*MessageSourceMessageThreadHistory) GetType() string
func (*MessageSourceMessageThreadHistory) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSourceMessageThreadHistory) MarshalJSON() ([]byte, error)
func (*MessageSourceMessageThreadHistory) MessageSourceType ¶ added in v1.2.3
func (*MessageSourceMessageThreadHistory) MessageSourceType() string
type MessageSourceNotification ¶ added in v1.2.3
type MessageSourceNotification struct {
// contains filtered or unexported fields
}
The message is from a notification
func UnmarshalMessageSourceNotification ¶ added in v1.2.3
func UnmarshalMessageSourceNotification(data json.RawMessage) (*MessageSourceNotification, error)
func (*MessageSourceNotification) GetClass ¶ added in v1.2.3
func (*MessageSourceNotification) GetClass() string
func (*MessageSourceNotification) GetType ¶ added in v1.2.3
func (*MessageSourceNotification) GetType() string
func (*MessageSourceNotification) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSourceNotification) MarshalJSON() ([]byte, error)
func (*MessageSourceNotification) MessageSourceType ¶ added in v1.2.3
func (*MessageSourceNotification) MessageSourceType() string
type MessageSourceOther ¶ added in v1.2.3
type MessageSourceOther struct {
// contains filtered or unexported fields
}
The message is from some other source
func UnmarshalMessageSourceOther ¶ added in v1.2.3
func UnmarshalMessageSourceOther(data json.RawMessage) (*MessageSourceOther, error)
func (*MessageSourceOther) GetClass ¶ added in v1.2.3
func (*MessageSourceOther) GetClass() string
func (*MessageSourceOther) GetType ¶ added in v1.2.3
func (*MessageSourceOther) GetType() string
func (*MessageSourceOther) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSourceOther) MarshalJSON() ([]byte, error)
func (*MessageSourceOther) MessageSourceType ¶ added in v1.2.3
func (*MessageSourceOther) MessageSourceType() string
type MessageSourceScreenshot ¶ added in v1.2.3
type MessageSourceScreenshot struct {
// contains filtered or unexported fields
}
The message was screenshotted; the source must be used only if the message content was visible during the screenshot
func UnmarshalMessageSourceScreenshot ¶ added in v1.2.3
func UnmarshalMessageSourceScreenshot(data json.RawMessage) (*MessageSourceScreenshot, error)
func (*MessageSourceScreenshot) GetClass ¶ added in v1.2.3
func (*MessageSourceScreenshot) GetClass() string
func (*MessageSourceScreenshot) GetType ¶ added in v1.2.3
func (*MessageSourceScreenshot) GetType() string
func (*MessageSourceScreenshot) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSourceScreenshot) MarshalJSON() ([]byte, error)
func (*MessageSourceScreenshot) MessageSourceType ¶ added in v1.2.3
func (*MessageSourceScreenshot) MessageSourceType() string
type MessageSourceSearch ¶ added in v1.2.3
type MessageSourceSearch struct {
// contains filtered or unexported fields
}
The message is from search results, including file downloads, local file list, outgoing document messages, calendar
func UnmarshalMessageSourceSearch ¶ added in v1.2.3
func UnmarshalMessageSourceSearch(data json.RawMessage) (*MessageSourceSearch, error)
func (*MessageSourceSearch) GetClass ¶ added in v1.2.3
func (*MessageSourceSearch) GetClass() string
func (*MessageSourceSearch) GetType ¶ added in v1.2.3
func (*MessageSourceSearch) GetType() string
func (*MessageSourceSearch) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSourceSearch) MarshalJSON() ([]byte, error)
func (*MessageSourceSearch) MessageSourceType ¶ added in v1.2.3
func (*MessageSourceSearch) MessageSourceType() string
type MessageSponsor ¶ added in v1.2.3
type MessageSponsor struct { // Type of the sponsor Type MessageSponsorType `json:"type"` // Photo of the sponsor; may be null if must not be shown Photo *ChatPhotoInfo `json:"photo"` // Additional optional information about the sponsor to be shown along with the message Info string `json:"info"` // contains filtered or unexported fields }
Information about the sponsor of a message
func UnmarshalMessageSponsor ¶ added in v1.2.3
func UnmarshalMessageSponsor(data json.RawMessage) (*MessageSponsor, error)
func (*MessageSponsor) GetClass ¶ added in v1.2.3
func (*MessageSponsor) GetClass() string
func (*MessageSponsor) GetType ¶ added in v1.2.3
func (*MessageSponsor) GetType() string
func (*MessageSponsor) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSponsor) MarshalJSON() ([]byte, error)
func (*MessageSponsor) UnmarshalJSON ¶ added in v1.2.3
func (messageSponsor *MessageSponsor) UnmarshalJSON(data []byte) error
type MessageSponsorType ¶ added in v1.2.3
type MessageSponsorType interface {
MessageSponsorTypeType() string
}
Describes type of a message sponsor
func UnmarshalListOfMessageSponsorType ¶ added in v1.2.3
func UnmarshalListOfMessageSponsorType(dataList []json.RawMessage) ([]MessageSponsorType, error)
func UnmarshalMessageSponsorType ¶ added in v1.2.3
func UnmarshalMessageSponsorType(data json.RawMessage) (MessageSponsorType, error)
type MessageSponsorTypeBot ¶ added in v1.2.3
type MessageSponsorTypeBot struct { // User identifier of the bot BotUserId int64 `json:"bot_user_id"` // An internal link to be opened when the sponsored message is clicked Link InternalLinkType `json:"link"` // contains filtered or unexported fields }
The sponsor is a bot
func UnmarshalMessageSponsorTypeBot ¶ added in v1.2.3
func UnmarshalMessageSponsorTypeBot(data json.RawMessage) (*MessageSponsorTypeBot, error)
func (*MessageSponsorTypeBot) GetClass ¶ added in v1.2.3
func (*MessageSponsorTypeBot) GetClass() string
func (*MessageSponsorTypeBot) GetType ¶ added in v1.2.3
func (*MessageSponsorTypeBot) GetType() string
func (*MessageSponsorTypeBot) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSponsorTypeBot) MarshalJSON() ([]byte, error)
func (*MessageSponsorTypeBot) MessageSponsorTypeType ¶ added in v1.2.3
func (*MessageSponsorTypeBot) MessageSponsorTypeType() string
func (*MessageSponsorTypeBot) UnmarshalJSON ¶ added in v1.2.3
func (messageSponsorTypeBot *MessageSponsorTypeBot) UnmarshalJSON(data []byte) error
type MessageSponsorTypePrivateChannel ¶ added in v1.2.3
type MessageSponsorTypePrivateChannel struct { // Title of the chat Title string `json:"title"` // Invite link for the channel InviteLink string `json:"invite_link"` // contains filtered or unexported fields }
The sponsor is a private channel chat
func UnmarshalMessageSponsorTypePrivateChannel ¶ added in v1.2.3
func UnmarshalMessageSponsorTypePrivateChannel(data json.RawMessage) (*MessageSponsorTypePrivateChannel, error)
func (*MessageSponsorTypePrivateChannel) GetClass ¶ added in v1.2.3
func (*MessageSponsorTypePrivateChannel) GetClass() string
func (*MessageSponsorTypePrivateChannel) GetType ¶ added in v1.2.3
func (*MessageSponsorTypePrivateChannel) GetType() string
func (*MessageSponsorTypePrivateChannel) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSponsorTypePrivateChannel) MarshalJSON() ([]byte, error)
func (*MessageSponsorTypePrivateChannel) MessageSponsorTypeType ¶ added in v1.2.3
func (*MessageSponsorTypePrivateChannel) MessageSponsorTypeType() string
type MessageSponsorTypePublicChannel ¶ added in v1.2.3
type MessageSponsorTypePublicChannel struct { // Sponsor chat identifier ChatId int64 `json:"chat_id"` // An internal link to be opened when the sponsored message is clicked; may be null if the sponsor chat needs to be opened instead Link InternalLinkType `json:"link"` // contains filtered or unexported fields }
The sponsor is a public channel chat
func UnmarshalMessageSponsorTypePublicChannel ¶ added in v1.2.3
func UnmarshalMessageSponsorTypePublicChannel(data json.RawMessage) (*MessageSponsorTypePublicChannel, error)
func (*MessageSponsorTypePublicChannel) GetClass ¶ added in v1.2.3
func (*MessageSponsorTypePublicChannel) GetClass() string
func (*MessageSponsorTypePublicChannel) GetType ¶ added in v1.2.3
func (*MessageSponsorTypePublicChannel) GetType() string
func (*MessageSponsorTypePublicChannel) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSponsorTypePublicChannel) MarshalJSON() ([]byte, error)
func (*MessageSponsorTypePublicChannel) MessageSponsorTypeType ¶ added in v1.2.3
func (*MessageSponsorTypePublicChannel) MessageSponsorTypeType() string
func (*MessageSponsorTypePublicChannel) UnmarshalJSON ¶ added in v1.2.3
func (messageSponsorTypePublicChannel *MessageSponsorTypePublicChannel) UnmarshalJSON(data []byte) error
type MessageSponsorTypeWebsite ¶ added in v1.2.3
type MessageSponsorTypeWebsite struct { // URL of the website Url string `json:"url"` // Name of the website Name string `json:"name"` // contains filtered or unexported fields }
The sponsor is a website
func UnmarshalMessageSponsorTypeWebsite ¶ added in v1.2.3
func UnmarshalMessageSponsorTypeWebsite(data json.RawMessage) (*MessageSponsorTypeWebsite, error)
func (*MessageSponsorTypeWebsite) GetClass ¶ added in v1.2.3
func (*MessageSponsorTypeWebsite) GetClass() string
func (*MessageSponsorTypeWebsite) GetType ¶ added in v1.2.3
func (*MessageSponsorTypeWebsite) GetType() string
func (*MessageSponsorTypeWebsite) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSponsorTypeWebsite) MarshalJSON() ([]byte, error)
func (*MessageSponsorTypeWebsite) MessageSponsorTypeType ¶ added in v1.2.3
func (*MessageSponsorTypeWebsite) MessageSponsorTypeType() string
type MessageStatistics ¶
type MessageStatistics struct { // A graph containing number of message views and shares MessageInteractionGraph StatisticalGraph `json:"message_interaction_graph"` // contains filtered or unexported fields }
A detailed statistics about a message
func UnmarshalMessageStatistics ¶
func UnmarshalMessageStatistics(data json.RawMessage) (*MessageStatistics, error)
func (*MessageStatistics) GetClass ¶
func (*MessageStatistics) GetClass() string
func (*MessageStatistics) GetType ¶
func (*MessageStatistics) GetType() string
func (*MessageStatistics) MarshalJSON ¶
func (entity *MessageStatistics) MarshalJSON() ([]byte, error)
func (*MessageStatistics) UnmarshalJSON ¶
func (messageStatistics *MessageStatistics) UnmarshalJSON(data []byte) error
type MessageSticker ¶
type MessageSticker struct { // The sticker description Sticker *Sticker `json:"sticker"` // True, if premium animation of the sticker must be played IsPremium bool `json:"is_premium"` // contains filtered or unexported fields }
A sticker message
func UnmarshalMessageSticker ¶
func UnmarshalMessageSticker(data json.RawMessage) (*MessageSticker, error)
func (*MessageSticker) GetClass ¶
func (*MessageSticker) GetClass() string
func (*MessageSticker) GetType ¶
func (*MessageSticker) GetType() string
func (*MessageSticker) MarshalJSON ¶
func (entity *MessageSticker) MarshalJSON() ([]byte, error)
func (*MessageSticker) MessageContentType ¶
func (*MessageSticker) MessageContentType() string
type MessageStory ¶ added in v1.2.3
type MessageStory struct { // Identifier of the chat that posted the story StorySenderChatId int64 `json:"story_sender_chat_id"` // Story identifier StoryId int32 `json:"story_id"` // True, if the story was automatically forwarded because of a mention of the user ViaMention bool `json:"via_mention"` // contains filtered or unexported fields }
A message with a forwarded story
func UnmarshalMessageStory ¶ added in v1.2.3
func UnmarshalMessageStory(data json.RawMessage) (*MessageStory, error)
func (*MessageStory) GetClass ¶ added in v1.2.3
func (*MessageStory) GetClass() string
func (*MessageStory) GetType ¶ added in v1.2.3
func (*MessageStory) GetType() string
func (*MessageStory) MarshalJSON ¶ added in v1.2.3
func (entity *MessageStory) MarshalJSON() ([]byte, error)
func (*MessageStory) MessageContentType ¶ added in v1.2.3
func (*MessageStory) MessageContentType() string
type MessageSuggestProfilePhoto ¶ added in v1.2.3
type MessageSuggestProfilePhoto struct { // The suggested chat photo. Use the method setProfilePhoto with inputChatPhotoPrevious to apply the photo Photo *ChatPhoto `json:"photo"` // contains filtered or unexported fields }
A profile photo was suggested to a user in a private chat
func UnmarshalMessageSuggestProfilePhoto ¶ added in v1.2.3
func UnmarshalMessageSuggestProfilePhoto(data json.RawMessage) (*MessageSuggestProfilePhoto, error)
func (*MessageSuggestProfilePhoto) GetClass ¶ added in v1.2.3
func (*MessageSuggestProfilePhoto) GetClass() string
func (*MessageSuggestProfilePhoto) GetType ¶ added in v1.2.3
func (*MessageSuggestProfilePhoto) GetType() string
func (*MessageSuggestProfilePhoto) MarshalJSON ¶ added in v1.2.3
func (entity *MessageSuggestProfilePhoto) MarshalJSON() ([]byte, error)
func (*MessageSuggestProfilePhoto) MessageContentType ¶ added in v1.2.3
func (*MessageSuggestProfilePhoto) MessageContentType() string
type MessageSupergroupChatCreate ¶
type MessageSupergroupChatCreate struct { // Title of the supergroup or channel Title string `json:"title"` // contains filtered or unexported fields }
A newly created supergroup or channel
func UnmarshalMessageSupergroupChatCreate ¶
func UnmarshalMessageSupergroupChatCreate(data json.RawMessage) (*MessageSupergroupChatCreate, error)
func (*MessageSupergroupChatCreate) GetClass ¶
func (*MessageSupergroupChatCreate) GetClass() string
func (*MessageSupergroupChatCreate) GetType ¶
func (*MessageSupergroupChatCreate) GetType() string
func (*MessageSupergroupChatCreate) MarshalJSON ¶
func (entity *MessageSupergroupChatCreate) MarshalJSON() ([]byte, error)
func (*MessageSupergroupChatCreate) MessageContentType ¶
func (*MessageSupergroupChatCreate) MessageContentType() string
type MessageText ¶
type MessageText struct { // Text of the message Text *FormattedText `json:"text"` // A preview of the web page that's mentioned in the text; may be null WebPage *WebPage `json:"web_page"` // contains filtered or unexported fields }
A text message
func UnmarshalMessageText ¶
func UnmarshalMessageText(data json.RawMessage) (*MessageText, error)
func (*MessageText) GetClass ¶
func (*MessageText) GetClass() string
func (*MessageText) GetType ¶
func (*MessageText) GetType() string
func (*MessageText) MarshalJSON ¶
func (entity *MessageText) MarshalJSON() ([]byte, error)
func (*MessageText) MessageContentType ¶
func (*MessageText) MessageContentType() string
type MessageThreadInfo ¶
type MessageThreadInfo struct { // Identifier of the chat to which the message thread belongs ChatId int64 `json:"chat_id"` // Message thread identifier, unique within the chat MessageThreadId int64 `json:"message_thread_id"` // Information about the message thread; may be null for forum topic threads ReplyInfo *MessageReplyInfo `json:"reply_info"` // Approximate number of unread messages in the message thread UnreadMessageCount int32 `json:"unread_message_count"` // The messages from which the thread starts. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id) Messages []*Message `json:"messages"` // A draft of a message in the message thread; may be null if none DraftMessage *DraftMessage `json:"draft_message"` // contains filtered or unexported fields }
Contains information about a message thread
func UnmarshalMessageThreadInfo ¶
func UnmarshalMessageThreadInfo(data json.RawMessage) (*MessageThreadInfo, error)
func (*MessageThreadInfo) GetClass ¶
func (*MessageThreadInfo) GetClass() string
func (*MessageThreadInfo) GetType ¶
func (*MessageThreadInfo) GetType() string
func (*MessageThreadInfo) MarshalJSON ¶
func (entity *MessageThreadInfo) MarshalJSON() ([]byte, error)
type MessageUnsupported ¶
type MessageUnsupported struct {
// contains filtered or unexported fields
}
A message content that is not supported in the current TDLib version
func UnmarshalMessageUnsupported ¶
func UnmarshalMessageUnsupported(data json.RawMessage) (*MessageUnsupported, error)
func (*MessageUnsupported) GetClass ¶
func (*MessageUnsupported) GetClass() string
func (*MessageUnsupported) GetType ¶
func (*MessageUnsupported) GetType() string
func (*MessageUnsupported) MarshalJSON ¶
func (entity *MessageUnsupported) MarshalJSON() ([]byte, error)
func (*MessageUnsupported) MessageContentType ¶
func (*MessageUnsupported) MessageContentType() string
type MessageUserShared ¶ added in v1.2.3
type MessageUserShared struct { int64 `json:"user_id"` ButtonId int32 `json:"button_id"` // contains filtered or unexported fields }UserId
The current user shared a user, which was requested by the bot
func UnmarshalMessageUserShared ¶ added in v1.2.3
func UnmarshalMessageUserShared(data json.RawMessage) (*MessageUserShared, error)
func (*MessageUserShared) GetClass ¶ added in v1.2.3
func (*MessageUserShared) GetClass() string
func (*MessageUserShared) GetType ¶ added in v1.2.3
func (*MessageUserShared) GetType() string
func (*MessageUserShared) MarshalJSON ¶ added in v1.2.3
func (entity *MessageUserShared) MarshalJSON() ([]byte, error)
func (*MessageUserShared) MessageContentType ¶ added in v1.2.3
func (*MessageUserShared) MessageContentType() string
type MessageVenue ¶
type MessageVenue struct { // The venue description Venue *Venue `json:"venue"` // contains filtered or unexported fields }
A message with information about a venue
func UnmarshalMessageVenue ¶
func UnmarshalMessageVenue(data json.RawMessage) (*MessageVenue, error)
func (*MessageVenue) GetClass ¶
func (*MessageVenue) GetClass() string
func (*MessageVenue) GetType ¶
func (*MessageVenue) GetType() string
func (*MessageVenue) MarshalJSON ¶
func (entity *MessageVenue) MarshalJSON() ([]byte, error)
func (*MessageVenue) MessageContentType ¶
func (*MessageVenue) MessageContentType() string
type MessageVideo ¶
type MessageVideo struct { // The video description Video *Video `json:"video"` // Video caption Caption *FormattedText `json:"caption"` // True, if the video preview must be covered by a spoiler animation HasSpoiler bool `json:"has_spoiler"` // True, if the video thumbnail must be blurred and the video must be shown only while tapped IsSecret bool `json:"is_secret"` // contains filtered or unexported fields }
A video message
func UnmarshalMessageVideo ¶
func UnmarshalMessageVideo(data json.RawMessage) (*MessageVideo, error)
func (*MessageVideo) GetClass ¶
func (*MessageVideo) GetClass() string
func (*MessageVideo) GetType ¶
func (*MessageVideo) GetType() string
func (*MessageVideo) MarshalJSON ¶
func (entity *MessageVideo) MarshalJSON() ([]byte, error)
func (*MessageVideo) MessageContentType ¶
func (*MessageVideo) MessageContentType() string
type MessageVideoChatEnded ¶
type MessageVideoChatEnded struct { // Call duration, in seconds Duration int32 `json:"duration"` // contains filtered or unexported fields }
A message with information about an ended video chat
func UnmarshalMessageVideoChatEnded ¶
func UnmarshalMessageVideoChatEnded(data json.RawMessage) (*MessageVideoChatEnded, error)
func (*MessageVideoChatEnded) GetClass ¶
func (*MessageVideoChatEnded) GetClass() string
func (*MessageVideoChatEnded) GetType ¶
func (*MessageVideoChatEnded) GetType() string
func (*MessageVideoChatEnded) MarshalJSON ¶
func (entity *MessageVideoChatEnded) MarshalJSON() ([]byte, error)
func (*MessageVideoChatEnded) MessageContentType ¶
func (*MessageVideoChatEnded) MessageContentType() string
type MessageVideoChatScheduled ¶
type MessageVideoChatScheduled struct { // Identifier of the video chat. The video chat can be received through the method getGroupCall GroupCallId int32 `json:"group_call_id"` // Point in time (Unix timestamp) when the group call is supposed to be started by an administrator StartDate int32 `json:"start_date"` // contains filtered or unexported fields }
A new video chat was scheduled
func UnmarshalMessageVideoChatScheduled ¶
func UnmarshalMessageVideoChatScheduled(data json.RawMessage) (*MessageVideoChatScheduled, error)
func (*MessageVideoChatScheduled) GetClass ¶
func (*MessageVideoChatScheduled) GetClass() string
func (*MessageVideoChatScheduled) GetType ¶
func (*MessageVideoChatScheduled) GetType() string
func (*MessageVideoChatScheduled) MarshalJSON ¶
func (entity *MessageVideoChatScheduled) MarshalJSON() ([]byte, error)
func (*MessageVideoChatScheduled) MessageContentType ¶
func (*MessageVideoChatScheduled) MessageContentType() string
type MessageVideoChatStarted ¶
type MessageVideoChatStarted struct { // Identifier of the video chat. The video chat can be received through the method getGroupCall GroupCallId int32 `json:"group_call_id"` // contains filtered or unexported fields }
A newly created video chat
func UnmarshalMessageVideoChatStarted ¶
func UnmarshalMessageVideoChatStarted(data json.RawMessage) (*MessageVideoChatStarted, error)
func (*MessageVideoChatStarted) GetClass ¶
func (*MessageVideoChatStarted) GetClass() string
func (*MessageVideoChatStarted) GetType ¶
func (*MessageVideoChatStarted) GetType() string
func (*MessageVideoChatStarted) MarshalJSON ¶
func (entity *MessageVideoChatStarted) MarshalJSON() ([]byte, error)
func (*MessageVideoChatStarted) MessageContentType ¶
func (*MessageVideoChatStarted) MessageContentType() string
type MessageVideoNote ¶
type MessageVideoNote struct { // The video note description VideoNote *VideoNote `json:"video_note"` // True, if at least one of the recipients has viewed the video note IsViewed bool `json:"is_viewed"` // True, if the video note thumbnail must be blurred and the video note must be shown only while tapped IsSecret bool `json:"is_secret"` // contains filtered or unexported fields }
A video note message
func UnmarshalMessageVideoNote ¶
func UnmarshalMessageVideoNote(data json.RawMessage) (*MessageVideoNote, error)
func (*MessageVideoNote) GetClass ¶
func (*MessageVideoNote) GetClass() string
func (*MessageVideoNote) GetType ¶
func (*MessageVideoNote) GetType() string
func (*MessageVideoNote) MarshalJSON ¶
func (entity *MessageVideoNote) MarshalJSON() ([]byte, error)
func (*MessageVideoNote) MessageContentType ¶
func (*MessageVideoNote) MessageContentType() string
type MessageViewer ¶ added in v1.2.3
type MessageViewer struct { // User identifier of the viewer UserId int64 `json:"user_id"` // Approximate point in time (Unix timestamp) when the message was viewed ViewDate int32 `json:"view_date"` // contains filtered or unexported fields }
Represents a viewer of a message
func UnmarshalMessageViewer ¶ added in v1.2.3
func UnmarshalMessageViewer(data json.RawMessage) (*MessageViewer, error)
func (*MessageViewer) GetClass ¶ added in v1.2.3
func (*MessageViewer) GetClass() string
func (*MessageViewer) GetType ¶ added in v1.2.3
func (*MessageViewer) GetType() string
func (*MessageViewer) MarshalJSON ¶ added in v1.2.3
func (entity *MessageViewer) MarshalJSON() ([]byte, error)
type MessageViewers ¶ added in v1.2.3
type MessageViewers struct { // List of message viewers Viewers []*MessageViewer `json:"viewers"` // contains filtered or unexported fields }
Represents a list of message viewers
func UnmarshalMessageViewers ¶ added in v1.2.3
func UnmarshalMessageViewers(data json.RawMessage) (*MessageViewers, error)
func (*MessageViewers) GetClass ¶ added in v1.2.3
func (*MessageViewers) GetClass() string
func (*MessageViewers) GetType ¶ added in v1.2.3
func (*MessageViewers) GetType() string
func (*MessageViewers) MarshalJSON ¶ added in v1.2.3
func (entity *MessageViewers) MarshalJSON() ([]byte, error)
type MessageVoiceNote ¶
type MessageVoiceNote struct { // The voice note description VoiceNote *VoiceNote `json:"voice_note"` // Voice note caption Caption *FormattedText `json:"caption"` // True, if at least one of the recipients has listened to the voice note IsListened bool `json:"is_listened"` // contains filtered or unexported fields }
A voice note message
func UnmarshalMessageVoiceNote ¶
func UnmarshalMessageVoiceNote(data json.RawMessage) (*MessageVoiceNote, error)
func (*MessageVoiceNote) GetClass ¶
func (*MessageVoiceNote) GetClass() string
func (*MessageVoiceNote) GetType ¶
func (*MessageVoiceNote) GetType() string
func (*MessageVoiceNote) MarshalJSON ¶
func (entity *MessageVoiceNote) MarshalJSON() ([]byte, error)
func (*MessageVoiceNote) MessageContentType ¶
func (*MessageVoiceNote) MessageContentType() string
type MessageWebAppDataReceived ¶ added in v1.0.6
type MessageWebAppDataReceived struct { // Text of the keyboardButtonTypeWebApp button, which opened the Web App ButtonText string `json:"button_text"` // The data Data string `json:"data"` // contains filtered or unexported fields }
Data from a Web App has been received; for bots only
func UnmarshalMessageWebAppDataReceived ¶ added in v1.0.6
func UnmarshalMessageWebAppDataReceived(data json.RawMessage) (*MessageWebAppDataReceived, error)
func (*MessageWebAppDataReceived) GetClass ¶ added in v1.0.6
func (*MessageWebAppDataReceived) GetClass() string
func (*MessageWebAppDataReceived) GetType ¶ added in v1.0.6
func (*MessageWebAppDataReceived) GetType() string
func (*MessageWebAppDataReceived) MarshalJSON ¶ added in v1.0.6
func (entity *MessageWebAppDataReceived) MarshalJSON() ([]byte, error)
func (*MessageWebAppDataReceived) MessageContentType ¶ added in v1.0.6
func (*MessageWebAppDataReceived) MessageContentType() string
type MessageWebAppDataSent ¶ added in v1.0.6
type MessageWebAppDataSent struct { // Text of the keyboardButtonTypeWebApp button, which opened the Web App ButtonText string `json:"button_text"` // contains filtered or unexported fields }
Data from a Web App has been sent to a bot
func UnmarshalMessageWebAppDataSent ¶ added in v1.0.6
func UnmarshalMessageWebAppDataSent(data json.RawMessage) (*MessageWebAppDataSent, error)
func (*MessageWebAppDataSent) GetClass ¶ added in v1.0.6
func (*MessageWebAppDataSent) GetClass() string
func (*MessageWebAppDataSent) GetType ¶ added in v1.0.6
func (*MessageWebAppDataSent) GetType() string
func (*MessageWebAppDataSent) MarshalJSON ¶ added in v1.0.6
func (entity *MessageWebAppDataSent) MarshalJSON() ([]byte, error)
func (*MessageWebAppDataSent) MessageContentType ¶ added in v1.0.6
func (*MessageWebAppDataSent) MessageContentType() string
type MessageWebsiteConnected ¶
type MessageWebsiteConnected struct { // Domain name of the connected website DomainName string `json:"domain_name"` // contains filtered or unexported fields }
The current user has connected a website by logging in using Telegram Login Widget on it
func UnmarshalMessageWebsiteConnected ¶
func UnmarshalMessageWebsiteConnected(data json.RawMessage) (*MessageWebsiteConnected, error)
func (*MessageWebsiteConnected) GetClass ¶
func (*MessageWebsiteConnected) GetClass() string
func (*MessageWebsiteConnected) GetType ¶
func (*MessageWebsiteConnected) GetType() string
func (*MessageWebsiteConnected) MarshalJSON ¶
func (entity *MessageWebsiteConnected) MarshalJSON() ([]byte, error)
func (*MessageWebsiteConnected) MessageContentType ¶
func (*MessageWebsiteConnected) MessageContentType() string
type Messages ¶
type Messages struct { // Approximate total number of messages found TotalCount int32 `json:"total_count"` // List of messages; messages may be null Messages []*Message `json:"messages"` // contains filtered or unexported fields }
Contains a list of messages
func UnmarshalMessages ¶
func UnmarshalMessages(data json.RawMessage) (*Messages, error)
func (*Messages) MarshalJSON ¶
type Minithumbnail ¶
type Minithumbnail struct { // Thumbnail width, usually doesn't exceed 40 Width int32 `json:"width"` // Thumbnail height, usually doesn't exceed 40 Height int32 `json:"height"` // The thumbnail in JPEG format Data []byte `json:"data"` // contains filtered or unexported fields }
Thumbnail image of a very poor quality and low resolution
func UnmarshalMinithumbnail ¶
func UnmarshalMinithumbnail(data json.RawMessage) (*Minithumbnail, error)
func (*Minithumbnail) GetClass ¶
func (*Minithumbnail) GetClass() string
func (*Minithumbnail) GetType ¶
func (*Minithumbnail) GetType() string
func (*Minithumbnail) MarshalJSON ¶
func (entity *Minithumbnail) MarshalJSON() ([]byte, error)
type NetworkStatistics ¶
type NetworkStatistics struct { // Point in time (Unix timestamp) from which the statistics are collected SinceDate int32 `json:"since_date"` // Network statistics entries Entries []NetworkStatisticsEntry `json:"entries"` // contains filtered or unexported fields }
A full list of available network statistic entries
func UnmarshalNetworkStatistics ¶
func UnmarshalNetworkStatistics(data json.RawMessage) (*NetworkStatistics, error)
func (*NetworkStatistics) GetClass ¶
func (*NetworkStatistics) GetClass() string
func (*NetworkStatistics) GetType ¶
func (*NetworkStatistics) GetType() string
func (*NetworkStatistics) MarshalJSON ¶
func (entity *NetworkStatistics) MarshalJSON() ([]byte, error)
func (*NetworkStatistics) UnmarshalJSON ¶
func (networkStatistics *NetworkStatistics) UnmarshalJSON(data []byte) error
type NetworkStatisticsEntry ¶
type NetworkStatisticsEntry interface {
NetworkStatisticsEntryType() string
}
Contains statistics about network usage
func UnmarshalListOfNetworkStatisticsEntry ¶
func UnmarshalListOfNetworkStatisticsEntry(dataList []json.RawMessage) ([]NetworkStatisticsEntry, error)
func UnmarshalNetworkStatisticsEntry ¶
func UnmarshalNetworkStatisticsEntry(data json.RawMessage) (NetworkStatisticsEntry, error)
type NetworkStatisticsEntryCall ¶
type NetworkStatisticsEntryCall struct { // Type of the network the data was sent through. Call setNetworkType to maintain the actual network type NetworkType NetworkType `json:"network_type"` // Total number of bytes sent SentBytes int64 `json:"sent_bytes"` // Total number of bytes received ReceivedBytes int64 `json:"received_bytes"` // Total call duration, in seconds Duration float64 `json:"duration"` // contains filtered or unexported fields }
Contains information about the total amount of data that was used for calls
func UnmarshalNetworkStatisticsEntryCall ¶
func UnmarshalNetworkStatisticsEntryCall(data json.RawMessage) (*NetworkStatisticsEntryCall, error)
func (*NetworkStatisticsEntryCall) GetClass ¶
func (*NetworkStatisticsEntryCall) GetClass() string
func (*NetworkStatisticsEntryCall) GetType ¶
func (*NetworkStatisticsEntryCall) GetType() string
func (*NetworkStatisticsEntryCall) MarshalJSON ¶
func (entity *NetworkStatisticsEntryCall) MarshalJSON() ([]byte, error)
func (*NetworkStatisticsEntryCall) NetworkStatisticsEntryType ¶
func (*NetworkStatisticsEntryCall) NetworkStatisticsEntryType() string
func (*NetworkStatisticsEntryCall) UnmarshalJSON ¶
func (networkStatisticsEntryCall *NetworkStatisticsEntryCall) UnmarshalJSON(data []byte) error
type NetworkStatisticsEntryFile ¶
type NetworkStatisticsEntryFile struct { // Type of the file the data is part of; pass null if the data isn't related to files FileType FileType `json:"file_type"` // Type of the network the data was sent through. Call setNetworkType to maintain the actual network type NetworkType NetworkType `json:"network_type"` // Total number of bytes sent SentBytes int64 `json:"sent_bytes"` // Total number of bytes received ReceivedBytes int64 `json:"received_bytes"` // contains filtered or unexported fields }
Contains information about the total amount of data that was used to send and receive files
func UnmarshalNetworkStatisticsEntryFile ¶
func UnmarshalNetworkStatisticsEntryFile(data json.RawMessage) (*NetworkStatisticsEntryFile, error)
func (*NetworkStatisticsEntryFile) GetClass ¶
func (*NetworkStatisticsEntryFile) GetClass() string
func (*NetworkStatisticsEntryFile) GetType ¶
func (*NetworkStatisticsEntryFile) GetType() string
func (*NetworkStatisticsEntryFile) MarshalJSON ¶
func (entity *NetworkStatisticsEntryFile) MarshalJSON() ([]byte, error)
func (*NetworkStatisticsEntryFile) NetworkStatisticsEntryType ¶
func (*NetworkStatisticsEntryFile) NetworkStatisticsEntryType() string
func (*NetworkStatisticsEntryFile) UnmarshalJSON ¶
func (networkStatisticsEntryFile *NetworkStatisticsEntryFile) UnmarshalJSON(data []byte) error
type NetworkType ¶
type NetworkType interface {
NetworkTypeType() string
}
Represents the type of a network
func UnmarshalListOfNetworkType ¶
func UnmarshalListOfNetworkType(dataList []json.RawMessage) ([]NetworkType, error)
func UnmarshalNetworkType ¶
func UnmarshalNetworkType(data json.RawMessage) (NetworkType, error)
type NetworkTypeMobile ¶
type NetworkTypeMobile struct {
// contains filtered or unexported fields
}
A mobile network
func UnmarshalNetworkTypeMobile ¶
func UnmarshalNetworkTypeMobile(data json.RawMessage) (*NetworkTypeMobile, error)
func (*NetworkTypeMobile) GetClass ¶
func (*NetworkTypeMobile) GetClass() string
func (*NetworkTypeMobile) GetType ¶
func (*NetworkTypeMobile) GetType() string
func (*NetworkTypeMobile) MarshalJSON ¶
func (entity *NetworkTypeMobile) MarshalJSON() ([]byte, error)
func (*NetworkTypeMobile) NetworkTypeType ¶
func (*NetworkTypeMobile) NetworkTypeType() string
type NetworkTypeMobileRoaming ¶
type NetworkTypeMobileRoaming struct {
// contains filtered or unexported fields
}
A mobile roaming network
func UnmarshalNetworkTypeMobileRoaming ¶
func UnmarshalNetworkTypeMobileRoaming(data json.RawMessage) (*NetworkTypeMobileRoaming, error)
func (*NetworkTypeMobileRoaming) GetClass ¶
func (*NetworkTypeMobileRoaming) GetClass() string
func (*NetworkTypeMobileRoaming) GetType ¶
func (*NetworkTypeMobileRoaming) GetType() string
func (*NetworkTypeMobileRoaming) MarshalJSON ¶
func (entity *NetworkTypeMobileRoaming) MarshalJSON() ([]byte, error)
func (*NetworkTypeMobileRoaming) NetworkTypeType ¶
func (*NetworkTypeMobileRoaming) NetworkTypeType() string
type NetworkTypeNone ¶
type NetworkTypeNone struct {
// contains filtered or unexported fields
}
The network is not available
func UnmarshalNetworkTypeNone ¶
func UnmarshalNetworkTypeNone(data json.RawMessage) (*NetworkTypeNone, error)
func (*NetworkTypeNone) GetClass ¶
func (*NetworkTypeNone) GetClass() string
func (*NetworkTypeNone) GetType ¶
func (*NetworkTypeNone) GetType() string
func (*NetworkTypeNone) MarshalJSON ¶
func (entity *NetworkTypeNone) MarshalJSON() ([]byte, error)
func (*NetworkTypeNone) NetworkTypeType ¶
func (*NetworkTypeNone) NetworkTypeType() string
type NetworkTypeOther ¶
type NetworkTypeOther struct {
// contains filtered or unexported fields
}
A different network type (e.g., Ethernet network)
func UnmarshalNetworkTypeOther ¶
func UnmarshalNetworkTypeOther(data json.RawMessage) (*NetworkTypeOther, error)
func (*NetworkTypeOther) GetClass ¶
func (*NetworkTypeOther) GetClass() string
func (*NetworkTypeOther) GetType ¶
func (*NetworkTypeOther) GetType() string
func (*NetworkTypeOther) MarshalJSON ¶
func (entity *NetworkTypeOther) MarshalJSON() ([]byte, error)
func (*NetworkTypeOther) NetworkTypeType ¶
func (*NetworkTypeOther) NetworkTypeType() string
type NetworkTypeWiFi ¶
type NetworkTypeWiFi struct {
// contains filtered or unexported fields
}
A Wi-Fi network
func UnmarshalNetworkTypeWiFi ¶
func UnmarshalNetworkTypeWiFi(data json.RawMessage) (*NetworkTypeWiFi, error)
func (*NetworkTypeWiFi) GetClass ¶
func (*NetworkTypeWiFi) GetClass() string
func (*NetworkTypeWiFi) GetType ¶
func (*NetworkTypeWiFi) GetType() string
func (*NetworkTypeWiFi) MarshalJSON ¶
func (entity *NetworkTypeWiFi) MarshalJSON() ([]byte, error)
func (*NetworkTypeWiFi) NetworkTypeType ¶
func (*NetworkTypeWiFi) NetworkTypeType() string
type Notification ¶
type Notification struct { // Unique persistent identifier of this notification Id int32 `json:"id"` // Notification date Date int32 `json:"date"` // True, if the notification was explicitly sent without sound IsSilent bool `json:"is_silent"` // Notification type Type NotificationType `json:"type"` // contains filtered or unexported fields }
Contains information about a notification
func UnmarshalNotification ¶
func UnmarshalNotification(data json.RawMessage) (*Notification, error)
func (*Notification) GetClass ¶
func (*Notification) GetClass() string
func (*Notification) GetType ¶
func (*Notification) GetType() string
func (*Notification) MarshalJSON ¶
func (entity *Notification) MarshalJSON() ([]byte, error)
func (*Notification) UnmarshalJSON ¶
func (notification *Notification) UnmarshalJSON(data []byte) error
type NotificationGroup ¶
type NotificationGroup struct { // Unique persistent auto-incremented from 1 identifier of the notification group Id int32 `json:"id"` // Type of the group Type NotificationGroupType `json:"type"` // Identifier of a chat to which all notifications in the group belong ChatId int64 `json:"chat_id"` // Total number of active notifications in the group TotalCount int32 `json:"total_count"` // The list of active notifications Notifications []*Notification `json:"notifications"` // contains filtered or unexported fields }
Describes a group of notifications
func UnmarshalNotificationGroup ¶
func UnmarshalNotificationGroup(data json.RawMessage) (*NotificationGroup, error)
func (*NotificationGroup) GetClass ¶
func (*NotificationGroup) GetClass() string
func (*NotificationGroup) GetType ¶
func (*NotificationGroup) GetType() string
func (*NotificationGroup) MarshalJSON ¶
func (entity *NotificationGroup) MarshalJSON() ([]byte, error)
func (*NotificationGroup) UnmarshalJSON ¶
func (notificationGroup *NotificationGroup) UnmarshalJSON(data []byte) error
type NotificationGroupType ¶
type NotificationGroupType interface {
NotificationGroupTypeType() string
}
Describes the type of notifications in a notification group
func UnmarshalListOfNotificationGroupType ¶
func UnmarshalListOfNotificationGroupType(dataList []json.RawMessage) ([]NotificationGroupType, error)
func UnmarshalNotificationGroupType ¶
func UnmarshalNotificationGroupType(data json.RawMessage) (NotificationGroupType, error)
type NotificationGroupTypeCalls ¶
type NotificationGroupTypeCalls struct {
// contains filtered or unexported fields
}
A group containing notifications of type notificationTypeNewCall
func UnmarshalNotificationGroupTypeCalls ¶
func UnmarshalNotificationGroupTypeCalls(data json.RawMessage) (*NotificationGroupTypeCalls, error)
func (*NotificationGroupTypeCalls) GetClass ¶
func (*NotificationGroupTypeCalls) GetClass() string
func (*NotificationGroupTypeCalls) GetType ¶
func (*NotificationGroupTypeCalls) GetType() string
func (*NotificationGroupTypeCalls) MarshalJSON ¶
func (entity *NotificationGroupTypeCalls) MarshalJSON() ([]byte, error)
func (*NotificationGroupTypeCalls) NotificationGroupTypeType ¶
func (*NotificationGroupTypeCalls) NotificationGroupTypeType() string
type NotificationGroupTypeMentions ¶
type NotificationGroupTypeMentions struct {
// contains filtered or unexported fields
}
A group containing notifications of type notificationTypeNewMessage and notificationTypeNewPushMessage with unread mentions of the current user, replies to their messages, or a pinned message
func UnmarshalNotificationGroupTypeMentions ¶
func UnmarshalNotificationGroupTypeMentions(data json.RawMessage) (*NotificationGroupTypeMentions, error)
func (*NotificationGroupTypeMentions) GetClass ¶
func (*NotificationGroupTypeMentions) GetClass() string
func (*NotificationGroupTypeMentions) GetType ¶
func (*NotificationGroupTypeMentions) GetType() string
func (*NotificationGroupTypeMentions) MarshalJSON ¶
func (entity *NotificationGroupTypeMentions) MarshalJSON() ([]byte, error)
func (*NotificationGroupTypeMentions) NotificationGroupTypeType ¶
func (*NotificationGroupTypeMentions) NotificationGroupTypeType() string
type NotificationGroupTypeMessages ¶
type NotificationGroupTypeMessages struct {
// contains filtered or unexported fields
}
A group containing notifications of type notificationTypeNewMessage and notificationTypeNewPushMessage with ordinary unread messages
func UnmarshalNotificationGroupTypeMessages ¶
func UnmarshalNotificationGroupTypeMessages(data json.RawMessage) (*NotificationGroupTypeMessages, error)
func (*NotificationGroupTypeMessages) GetClass ¶
func (*NotificationGroupTypeMessages) GetClass() string
func (*NotificationGroupTypeMessages) GetType ¶
func (*NotificationGroupTypeMessages) GetType() string
func (*NotificationGroupTypeMessages) MarshalJSON ¶
func (entity *NotificationGroupTypeMessages) MarshalJSON() ([]byte, error)
func (*NotificationGroupTypeMessages) NotificationGroupTypeType ¶
func (*NotificationGroupTypeMessages) NotificationGroupTypeType() string
type NotificationGroupTypeSecretChat ¶
type NotificationGroupTypeSecretChat struct {
// contains filtered or unexported fields
}
A group containing a notification of type notificationTypeNewSecretChat
func UnmarshalNotificationGroupTypeSecretChat ¶
func UnmarshalNotificationGroupTypeSecretChat(data json.RawMessage) (*NotificationGroupTypeSecretChat, error)
func (*NotificationGroupTypeSecretChat) GetClass ¶
func (*NotificationGroupTypeSecretChat) GetClass() string
func (*NotificationGroupTypeSecretChat) GetType ¶
func (*NotificationGroupTypeSecretChat) GetType() string
func (*NotificationGroupTypeSecretChat) MarshalJSON ¶
func (entity *NotificationGroupTypeSecretChat) MarshalJSON() ([]byte, error)
func (*NotificationGroupTypeSecretChat) NotificationGroupTypeType ¶
func (*NotificationGroupTypeSecretChat) NotificationGroupTypeType() string
type NotificationSettingsScope ¶
type NotificationSettingsScope interface {
NotificationSettingsScopeType() string
}
Describes the types of chats to which notification settings are relevant
func UnmarshalListOfNotificationSettingsScope ¶
func UnmarshalListOfNotificationSettingsScope(dataList []json.RawMessage) ([]NotificationSettingsScope, error)
func UnmarshalNotificationSettingsScope ¶
func UnmarshalNotificationSettingsScope(data json.RawMessage) (NotificationSettingsScope, error)
type NotificationSettingsScopeChannelChats ¶
type NotificationSettingsScopeChannelChats struct {
// contains filtered or unexported fields
}
Notification settings applied to all channel chats when the corresponding chat setting has a default value
func UnmarshalNotificationSettingsScopeChannelChats ¶
func UnmarshalNotificationSettingsScopeChannelChats(data json.RawMessage) (*NotificationSettingsScopeChannelChats, error)
func (*NotificationSettingsScopeChannelChats) GetClass ¶
func (*NotificationSettingsScopeChannelChats) GetClass() string
func (*NotificationSettingsScopeChannelChats) GetType ¶
func (*NotificationSettingsScopeChannelChats) GetType() string
func (*NotificationSettingsScopeChannelChats) MarshalJSON ¶
func (entity *NotificationSettingsScopeChannelChats) MarshalJSON() ([]byte, error)
func (*NotificationSettingsScopeChannelChats) NotificationSettingsScopeType ¶
func (*NotificationSettingsScopeChannelChats) NotificationSettingsScopeType() string
type NotificationSettingsScopeGroupChats ¶
type NotificationSettingsScopeGroupChats struct {
// contains filtered or unexported fields
}
Notification settings applied to all basic group and supergroup chats when the corresponding chat setting has a default value
func UnmarshalNotificationSettingsScopeGroupChats ¶
func UnmarshalNotificationSettingsScopeGroupChats(data json.RawMessage) (*NotificationSettingsScopeGroupChats, error)
func (*NotificationSettingsScopeGroupChats) GetClass ¶
func (*NotificationSettingsScopeGroupChats) GetClass() string
func (*NotificationSettingsScopeGroupChats) GetType ¶
func (*NotificationSettingsScopeGroupChats) GetType() string
func (*NotificationSettingsScopeGroupChats) MarshalJSON ¶
func (entity *NotificationSettingsScopeGroupChats) MarshalJSON() ([]byte, error)
func (*NotificationSettingsScopeGroupChats) NotificationSettingsScopeType ¶
func (*NotificationSettingsScopeGroupChats) NotificationSettingsScopeType() string
type NotificationSettingsScopePrivateChats ¶
type NotificationSettingsScopePrivateChats struct {
// contains filtered or unexported fields
}
Notification settings applied to all private and secret chats when the corresponding chat setting has a default value
func UnmarshalNotificationSettingsScopePrivateChats ¶
func UnmarshalNotificationSettingsScopePrivateChats(data json.RawMessage) (*NotificationSettingsScopePrivateChats, error)
func (*NotificationSettingsScopePrivateChats) GetClass ¶
func (*NotificationSettingsScopePrivateChats) GetClass() string
func (*NotificationSettingsScopePrivateChats) GetType ¶
func (*NotificationSettingsScopePrivateChats) GetType() string
func (*NotificationSettingsScopePrivateChats) MarshalJSON ¶
func (entity *NotificationSettingsScopePrivateChats) MarshalJSON() ([]byte, error)
func (*NotificationSettingsScopePrivateChats) NotificationSettingsScopeType ¶
func (*NotificationSettingsScopePrivateChats) NotificationSettingsScopeType() string
type NotificationSound ¶ added in v1.0.6
type NotificationSound struct { // Unique identifier of the notification sound Id JsonInt64 `json:"id"` // Duration of the sound, in seconds Duration int32 `json:"duration"` // Point in time (Unix timestamp) when the sound was created Date int32 `json:"date"` // Title of the notification sound Title string `json:"title"` // Arbitrary data, defined while the sound was uploaded Data string `json:"data"` // File containing the sound Sound *File `json:"sound"` // contains filtered or unexported fields }
Describes a notification sound in MP3 format
func UnmarshalNotificationSound ¶ added in v1.0.6
func UnmarshalNotificationSound(data json.RawMessage) (*NotificationSound, error)
func (*NotificationSound) GetClass ¶ added in v1.0.6
func (*NotificationSound) GetClass() string
func (*NotificationSound) GetType ¶ added in v1.0.6
func (*NotificationSound) GetType() string
func (*NotificationSound) MarshalJSON ¶ added in v1.0.6
func (entity *NotificationSound) MarshalJSON() ([]byte, error)
type NotificationSounds ¶ added in v1.0.6
type NotificationSounds struct { // A list of notification sounds NotificationSounds []*NotificationSound `json:"notification_sounds"` // contains filtered or unexported fields }
Contains a list of notification sounds
func UnmarshalNotificationSounds ¶ added in v1.0.6
func UnmarshalNotificationSounds(data json.RawMessage) (*NotificationSounds, error)
func (*NotificationSounds) GetClass ¶ added in v1.0.6
func (*NotificationSounds) GetClass() string
func (*NotificationSounds) GetType ¶ added in v1.0.6
func (*NotificationSounds) GetType() string
func (*NotificationSounds) MarshalJSON ¶ added in v1.0.6
func (entity *NotificationSounds) MarshalJSON() ([]byte, error)
type NotificationType ¶
type NotificationType interface {
NotificationTypeType() string
}
Contains detailed information about a notification
func UnmarshalListOfNotificationType ¶
func UnmarshalListOfNotificationType(dataList []json.RawMessage) ([]NotificationType, error)
func UnmarshalNotificationType ¶
func UnmarshalNotificationType(data json.RawMessage) (NotificationType, error)
type NotificationTypeNewCall ¶
type NotificationTypeNewCall struct { // Call identifier CallId int32 `json:"call_id"` // contains filtered or unexported fields }
New call was received
func UnmarshalNotificationTypeNewCall ¶
func UnmarshalNotificationTypeNewCall(data json.RawMessage) (*NotificationTypeNewCall, error)
func (*NotificationTypeNewCall) GetClass ¶
func (*NotificationTypeNewCall) GetClass() string
func (*NotificationTypeNewCall) GetType ¶
func (*NotificationTypeNewCall) GetType() string
func (*NotificationTypeNewCall) MarshalJSON ¶
func (entity *NotificationTypeNewCall) MarshalJSON() ([]byte, error)
func (*NotificationTypeNewCall) NotificationTypeType ¶
func (*NotificationTypeNewCall) NotificationTypeType() string
type NotificationTypeNewMessage ¶
type NotificationTypeNewMessage struct { // The message Message *Message `json:"message"` // True, if message content must be displayed in notifications ShowPreview bool `json:"show_preview"` // contains filtered or unexported fields }
New message was received
func UnmarshalNotificationTypeNewMessage ¶
func UnmarshalNotificationTypeNewMessage(data json.RawMessage) (*NotificationTypeNewMessage, error)
func (*NotificationTypeNewMessage) GetClass ¶
func (*NotificationTypeNewMessage) GetClass() string
func (*NotificationTypeNewMessage) GetType ¶
func (*NotificationTypeNewMessage) GetType() string
func (*NotificationTypeNewMessage) MarshalJSON ¶
func (entity *NotificationTypeNewMessage) MarshalJSON() ([]byte, error)
func (*NotificationTypeNewMessage) NotificationTypeType ¶
func (*NotificationTypeNewMessage) NotificationTypeType() string
type NotificationTypeNewPushMessage ¶
type NotificationTypeNewPushMessage struct { // The message identifier. The message will not be available in the chat history, but the identifier can be used in viewMessages, or as a message to reply MessageId int64 `json:"message_id"` // Identifier of the sender of the message. Corresponding user or chat may be inaccessible SenderId MessageSender `json:"sender_id"` // Name of the sender SenderName string `json:"sender_name"` // True, if the message is outgoing IsOutgoing bool `json:"is_outgoing"` // Push message content Content PushMessageContent `json:"content"` // contains filtered or unexported fields }
New message was received through a push notification
func UnmarshalNotificationTypeNewPushMessage ¶
func UnmarshalNotificationTypeNewPushMessage(data json.RawMessage) (*NotificationTypeNewPushMessage, error)
func (*NotificationTypeNewPushMessage) GetClass ¶
func (*NotificationTypeNewPushMessage) GetClass() string
func (*NotificationTypeNewPushMessage) GetType ¶
func (*NotificationTypeNewPushMessage) GetType() string
func (*NotificationTypeNewPushMessage) MarshalJSON ¶
func (entity *NotificationTypeNewPushMessage) MarshalJSON() ([]byte, error)
func (*NotificationTypeNewPushMessage) NotificationTypeType ¶
func (*NotificationTypeNewPushMessage) NotificationTypeType() string
func (*NotificationTypeNewPushMessage) UnmarshalJSON ¶
func (notificationTypeNewPushMessage *NotificationTypeNewPushMessage) UnmarshalJSON(data []byte) error
type NotificationTypeNewSecretChat ¶
type NotificationTypeNewSecretChat struct {
// contains filtered or unexported fields
}
New secret chat was created
func UnmarshalNotificationTypeNewSecretChat ¶
func UnmarshalNotificationTypeNewSecretChat(data json.RawMessage) (*NotificationTypeNewSecretChat, error)
func (*NotificationTypeNewSecretChat) GetClass ¶
func (*NotificationTypeNewSecretChat) GetClass() string
func (*NotificationTypeNewSecretChat) GetType ¶
func (*NotificationTypeNewSecretChat) GetType() string
func (*NotificationTypeNewSecretChat) MarshalJSON ¶
func (entity *NotificationTypeNewSecretChat) MarshalJSON() ([]byte, error)
func (*NotificationTypeNewSecretChat) NotificationTypeType ¶
func (*NotificationTypeNewSecretChat) NotificationTypeType() string
type Ok ¶
type Ok struct {
// contains filtered or unexported fields
}
An object of this type is returned on a successful function call for certain functions
func AddLogMessage ¶
func AddLogMessage(req *AddLogMessageRequest) (*Ok, error)
Adds a message to TDLib internal log. Can be called synchronously
func SetLogStream ¶
func SetLogStream(req *SetLogStreamRequest) (*Ok, error)
Sets new log stream for internal logging of TDLib. Can be called synchronously
func SetLogTagVerbosityLevel ¶
func SetLogTagVerbosityLevel(req *SetLogTagVerbosityLevelRequest) (*Ok, error)
Sets the verbosity level for a specified TDLib internal log tag. Can be called synchronously
func SetLogVerbosityLevel ¶
func SetLogVerbosityLevel(req *SetLogVerbosityLevelRequest) (*Ok, error)
Sets the verbosity level of the internal logging of TDLib. Can be called synchronously
func UnmarshalOk ¶
func UnmarshalOk(data json.RawMessage) (*Ok, error)
func (*Ok) MarshalJSON ¶
type OpenChatRequest ¶
type OpenChatRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type OpenStoryRequest ¶ added in v1.2.3
type OpenWebAppRequest ¶ added in v1.0.6
type OpenWebAppRequest struct { // Identifier of the chat in which the Web App is opened. The Web App can't be opened in secret chats ChatId int64 `json:"chat_id"` // Identifier of the bot, providing the Web App BotUserId int64 `json:"bot_user_id"` // The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise Url string `json:"url"` // Preferred Web App theme; pass null to use the default theme Theme *ThemeParameters `json:"theme"` // Short name of the application; 0-64 English letters, digits, and underscores ApplicationName string `json:"application_name"` // If not 0, a message thread identifier in which the message will be sent MessageThreadId int64 `json:"message_thread_id"` // Identifier of the replied message or story for the message sent by the Web App; pass null if none ReplyTo MessageReplyTo `json:"reply_to"` }
type OptimizeStorageRequest ¶
type OptimizeStorageRequest struct { // Limit on the total size of files after deletion, in bytes. Pass -1 to use the default limit Size int64 `json:"size"` // Limit on the time that has passed since the last time a file was accessed (or creation time for some filesystems). Pass -1 to use the default limit Ttl int32 `json:"ttl"` // Limit on the total number of files after deletion. Pass -1 to use the default limit Count int32 `json:"count"` // The amount of time after the creation of a file during which it can't be deleted, in seconds. Pass -1 to use the default value ImmunityDelay int32 `json:"immunity_delay"` // If non-empty, only files with the given types are considered. By default, all types except thumbnails, profile photos, stickers and wallpapers are deleted FileTypes []FileType `json:"file_types"` // If non-empty, only files from the given chats are considered. Use 0 as chat identifier to delete files not belonging to any chat (e.g., profile photos) ChatIds []int64 `json:"chat_ids"` // If non-empty, files from the given chats are excluded. Use 0 as chat identifier to exclude all files not belonging to any chat (e.g., profile photos) ExcludeChatIds []int64 `json:"exclude_chat_ids"` // Pass true if statistics about the files that were deleted must be returned instead of the whole storage usage statistics. Affects only returned statistics ReturnDeletedFileStatistics bool `json:"return_deleted_file_statistics"` // Same as in getStorageStatistics. Affects only returned statistics ChatLimit int32 `json:"chat_limit"` }
type Option ¶
type Option func(*Client)
func WithCatchTimeout ¶
func WithExtraGenerator ¶
func WithExtraGenerator(extraGenerator ExtraGenerator) Option
func WithProxy ¶
func WithProxy(req *AddProxyRequest) Option
type OptionValue ¶
type OptionValue interface {
OptionValueType() string
}
Represents the value of an option
func GetOption ¶ added in v1.2.3
func GetOption(req *GetOptionRequest) (OptionValue, error)
Returns the value of an option by its name. (Check the list of available options on https://core.telegram.org/tdlib/options.) Can be called before authorization. Can be called synchronously for options "version" and "commit_hash"
func UnmarshalListOfOptionValue ¶
func UnmarshalListOfOptionValue(dataList []json.RawMessage) ([]OptionValue, error)
func UnmarshalOptionValue ¶
func UnmarshalOptionValue(data json.RawMessage) (OptionValue, error)
type OptionValueBoolean ¶
type OptionValueBoolean struct { // The value of the option Value bool `json:"value"` // contains filtered or unexported fields }
Represents a boolean option
func UnmarshalOptionValueBoolean ¶
func UnmarshalOptionValueBoolean(data json.RawMessage) (*OptionValueBoolean, error)
func (*OptionValueBoolean) GetClass ¶
func (*OptionValueBoolean) GetClass() string
func (*OptionValueBoolean) GetType ¶
func (*OptionValueBoolean) GetType() string
func (*OptionValueBoolean) MarshalJSON ¶
func (entity *OptionValueBoolean) MarshalJSON() ([]byte, error)
func (*OptionValueBoolean) OptionValueType ¶
func (*OptionValueBoolean) OptionValueType() string
type OptionValueEmpty ¶
type OptionValueEmpty struct {
// contains filtered or unexported fields
}
Represents an unknown option or an option which has a default value
func UnmarshalOptionValueEmpty ¶
func UnmarshalOptionValueEmpty(data json.RawMessage) (*OptionValueEmpty, error)
func (*OptionValueEmpty) GetClass ¶
func (*OptionValueEmpty) GetClass() string
func (*OptionValueEmpty) GetType ¶
func (*OptionValueEmpty) GetType() string
func (*OptionValueEmpty) MarshalJSON ¶
func (entity *OptionValueEmpty) MarshalJSON() ([]byte, error)
func (*OptionValueEmpty) OptionValueType ¶
func (*OptionValueEmpty) OptionValueType() string
type OptionValueInteger ¶
type OptionValueInteger struct { // The value of the option Value JsonInt64 `json:"value"` // contains filtered or unexported fields }
Represents an integer option
func UnmarshalOptionValueInteger ¶
func UnmarshalOptionValueInteger(data json.RawMessage) (*OptionValueInteger, error)
func (*OptionValueInteger) GetClass ¶
func (*OptionValueInteger) GetClass() string
func (*OptionValueInteger) GetType ¶
func (*OptionValueInteger) GetType() string
func (*OptionValueInteger) MarshalJSON ¶
func (entity *OptionValueInteger) MarshalJSON() ([]byte, error)
func (*OptionValueInteger) OptionValueType ¶
func (*OptionValueInteger) OptionValueType() string
type OptionValueString ¶
type OptionValueString struct { // The value of the option Value string `json:"value"` // contains filtered or unexported fields }
Represents a string option
func UnmarshalOptionValueString ¶
func UnmarshalOptionValueString(data json.RawMessage) (*OptionValueString, error)
func (*OptionValueString) GetClass ¶
func (*OptionValueString) GetClass() string
func (*OptionValueString) GetType ¶
func (*OptionValueString) GetType() string
func (*OptionValueString) MarshalJSON ¶
func (entity *OptionValueString) MarshalJSON() ([]byte, error)
func (*OptionValueString) OptionValueType ¶
func (*OptionValueString) OptionValueType() string
type OrderInfo ¶
type OrderInfo struct { // Name of the user Name string `json:"name"` // Phone number of the user PhoneNumber string `json:"phone_number"` // Email address of the user EmailAddress string `json:"email_address"` // Shipping address for this order; may be null ShippingAddress *Address `json:"shipping_address"` // contains filtered or unexported fields }
Order information
func UnmarshalOrderInfo ¶
func UnmarshalOrderInfo(data json.RawMessage) (*OrderInfo, error)
func (*OrderInfo) MarshalJSON ¶
type PageBlock ¶
type PageBlock interface {
PageBlockType() string
}
Describes a block of an instant view web page
func UnmarshalListOfPageBlock ¶
func UnmarshalListOfPageBlock(dataList []json.RawMessage) ([]PageBlock, error)
func UnmarshalPageBlock ¶
func UnmarshalPageBlock(data json.RawMessage) (PageBlock, error)
type PageBlockAnchor ¶
type PageBlockAnchor struct { // Name of the anchor Name string `json:"name"` // contains filtered or unexported fields }
An invisible anchor on a page, which can be used in a URL to open the page from the specified anchor
func UnmarshalPageBlockAnchor ¶
func UnmarshalPageBlockAnchor(data json.RawMessage) (*PageBlockAnchor, error)
func (*PageBlockAnchor) GetClass ¶
func (*PageBlockAnchor) GetClass() string
func (*PageBlockAnchor) GetType ¶
func (*PageBlockAnchor) GetType() string
func (*PageBlockAnchor) MarshalJSON ¶
func (entity *PageBlockAnchor) MarshalJSON() ([]byte, error)
func (*PageBlockAnchor) PageBlockType ¶
func (*PageBlockAnchor) PageBlockType() string
type PageBlockAnimation ¶
type PageBlockAnimation struct { // Animation file; may be null Animation *Animation `json:"animation"` // Animation caption Caption *PageBlockCaption `json:"caption"` // True, if the animation must be played automatically NeedAutoplay bool `json:"need_autoplay"` // contains filtered or unexported fields }
An animation
func UnmarshalPageBlockAnimation ¶
func UnmarshalPageBlockAnimation(data json.RawMessage) (*PageBlockAnimation, error)
func (*PageBlockAnimation) GetClass ¶
func (*PageBlockAnimation) GetClass() string
func (*PageBlockAnimation) GetType ¶
func (*PageBlockAnimation) GetType() string
func (*PageBlockAnimation) MarshalJSON ¶
func (entity *PageBlockAnimation) MarshalJSON() ([]byte, error)
func (*PageBlockAnimation) PageBlockType ¶
func (*PageBlockAnimation) PageBlockType() string
type PageBlockAudio ¶
type PageBlockAudio struct { // Audio file; may be null Audio *Audio `json:"audio"` // Audio file caption Caption *PageBlockCaption `json:"caption"` // contains filtered or unexported fields }
An audio file
func UnmarshalPageBlockAudio ¶
func UnmarshalPageBlockAudio(data json.RawMessage) (*PageBlockAudio, error)
func (*PageBlockAudio) GetClass ¶
func (*PageBlockAudio) GetClass() string
func (*PageBlockAudio) GetType ¶
func (*PageBlockAudio) GetType() string
func (*PageBlockAudio) MarshalJSON ¶
func (entity *PageBlockAudio) MarshalJSON() ([]byte, error)
func (*PageBlockAudio) PageBlockType ¶
func (*PageBlockAudio) PageBlockType() string
type PageBlockAuthorDate ¶
type PageBlockAuthorDate struct { // Author Author RichText `json:"author"` // Point in time (Unix timestamp) when the article was published; 0 if unknown PublishDate int32 `json:"publish_date"` // contains filtered or unexported fields }
The author and publishing date of a page
func UnmarshalPageBlockAuthorDate ¶
func UnmarshalPageBlockAuthorDate(data json.RawMessage) (*PageBlockAuthorDate, error)
func (*PageBlockAuthorDate) GetClass ¶
func (*PageBlockAuthorDate) GetClass() string
func (*PageBlockAuthorDate) GetType ¶
func (*PageBlockAuthorDate) GetType() string
func (*PageBlockAuthorDate) MarshalJSON ¶
func (entity *PageBlockAuthorDate) MarshalJSON() ([]byte, error)
func (*PageBlockAuthorDate) PageBlockType ¶
func (*PageBlockAuthorDate) PageBlockType() string
func (*PageBlockAuthorDate) UnmarshalJSON ¶
func (pageBlockAuthorDate *PageBlockAuthorDate) UnmarshalJSON(data []byte) error
type PageBlockBlockQuote ¶
type PageBlockBlockQuote struct { // Quote text Text RichText `json:"text"` // Quote credit Credit RichText `json:"credit"` // contains filtered or unexported fields }
A block quote
func UnmarshalPageBlockBlockQuote ¶
func UnmarshalPageBlockBlockQuote(data json.RawMessage) (*PageBlockBlockQuote, error)
func (*PageBlockBlockQuote) GetClass ¶
func (*PageBlockBlockQuote) GetClass() string
func (*PageBlockBlockQuote) GetType ¶
func (*PageBlockBlockQuote) GetType() string
func (*PageBlockBlockQuote) MarshalJSON ¶
func (entity *PageBlockBlockQuote) MarshalJSON() ([]byte, error)
func (*PageBlockBlockQuote) PageBlockType ¶
func (*PageBlockBlockQuote) PageBlockType() string
func (*PageBlockBlockQuote) UnmarshalJSON ¶
func (pageBlockBlockQuote *PageBlockBlockQuote) UnmarshalJSON(data []byte) error
type PageBlockCaption ¶
type PageBlockCaption struct { // Content of the caption Text RichText `json:"text"` // Block credit (like HTML tag <cite>) Credit RichText `json:"credit"` // contains filtered or unexported fields }
Contains a caption of an instant view web page block, consisting of a text and a trailing credit
func UnmarshalPageBlockCaption ¶
func UnmarshalPageBlockCaption(data json.RawMessage) (*PageBlockCaption, error)
func (*PageBlockCaption) GetClass ¶
func (*PageBlockCaption) GetClass() string
func (*PageBlockCaption) GetType ¶
func (*PageBlockCaption) GetType() string
func (*PageBlockCaption) MarshalJSON ¶
func (entity *PageBlockCaption) MarshalJSON() ([]byte, error)
func (*PageBlockCaption) UnmarshalJSON ¶
func (pageBlockCaption *PageBlockCaption) UnmarshalJSON(data []byte) error
type PageBlockChatLink ¶
type PageBlockChatLink struct { // Chat title Title string `json:"title"` // Chat photo; may be null Photo *ChatPhotoInfo `json:"photo"` // Chat username by which all other information about the chat can be resolved Username string `json:"username"` // contains filtered or unexported fields }
A link to a chat
func UnmarshalPageBlockChatLink ¶
func UnmarshalPageBlockChatLink(data json.RawMessage) (*PageBlockChatLink, error)
func (*PageBlockChatLink) GetClass ¶
func (*PageBlockChatLink) GetClass() string
func (*PageBlockChatLink) GetType ¶
func (*PageBlockChatLink) GetType() string
func (*PageBlockChatLink) MarshalJSON ¶
func (entity *PageBlockChatLink) MarshalJSON() ([]byte, error)
func (*PageBlockChatLink) PageBlockType ¶
func (*PageBlockChatLink) PageBlockType() string
type PageBlockCollage ¶
type PageBlockCollage struct { // Collage item contents PageBlocks []PageBlock `json:"page_blocks"` // Block caption Caption *PageBlockCaption `json:"caption"` // contains filtered or unexported fields }
A collage
func UnmarshalPageBlockCollage ¶
func UnmarshalPageBlockCollage(data json.RawMessage) (*PageBlockCollage, error)
func (*PageBlockCollage) GetClass ¶
func (*PageBlockCollage) GetClass() string
func (*PageBlockCollage) GetType ¶
func (*PageBlockCollage) GetType() string
func (*PageBlockCollage) MarshalJSON ¶
func (entity *PageBlockCollage) MarshalJSON() ([]byte, error)
func (*PageBlockCollage) PageBlockType ¶
func (*PageBlockCollage) PageBlockType() string
func (*PageBlockCollage) UnmarshalJSON ¶
func (pageBlockCollage *PageBlockCollage) UnmarshalJSON(data []byte) error
type PageBlockCover ¶
type PageBlockCover struct { // Cover Cover PageBlock `json:"cover"` // contains filtered or unexported fields }
A page cover
func UnmarshalPageBlockCover ¶
func UnmarshalPageBlockCover(data json.RawMessage) (*PageBlockCover, error)
func (*PageBlockCover) GetClass ¶
func (*PageBlockCover) GetClass() string
func (*PageBlockCover) GetType ¶
func (*PageBlockCover) GetType() string
func (*PageBlockCover) MarshalJSON ¶
func (entity *PageBlockCover) MarshalJSON() ([]byte, error)
func (*PageBlockCover) PageBlockType ¶
func (*PageBlockCover) PageBlockType() string
func (*PageBlockCover) UnmarshalJSON ¶
func (pageBlockCover *PageBlockCover) UnmarshalJSON(data []byte) error
type PageBlockDetails ¶
type PageBlockDetails struct { // Always visible heading for the block Header RichText `json:"header"` // Block contents PageBlocks []PageBlock `json:"page_blocks"` // True, if the block is open by default IsOpen bool `json:"is_open"` // contains filtered or unexported fields }
A collapsible block
func UnmarshalPageBlockDetails ¶
func UnmarshalPageBlockDetails(data json.RawMessage) (*PageBlockDetails, error)
func (*PageBlockDetails) GetClass ¶
func (*PageBlockDetails) GetClass() string
func (*PageBlockDetails) GetType ¶
func (*PageBlockDetails) GetType() string
func (*PageBlockDetails) MarshalJSON ¶
func (entity *PageBlockDetails) MarshalJSON() ([]byte, error)
func (*PageBlockDetails) PageBlockType ¶
func (*PageBlockDetails) PageBlockType() string
func (*PageBlockDetails) UnmarshalJSON ¶
func (pageBlockDetails *PageBlockDetails) UnmarshalJSON(data []byte) error
type PageBlockDivider ¶
type PageBlockDivider struct {
// contains filtered or unexported fields
}
An empty block separating a page
func UnmarshalPageBlockDivider ¶
func UnmarshalPageBlockDivider(data json.RawMessage) (*PageBlockDivider, error)
func (*PageBlockDivider) GetClass ¶
func (*PageBlockDivider) GetClass() string
func (*PageBlockDivider) GetType ¶
func (*PageBlockDivider) GetType() string
func (*PageBlockDivider) MarshalJSON ¶
func (entity *PageBlockDivider) MarshalJSON() ([]byte, error)
func (*PageBlockDivider) PageBlockType ¶
func (*PageBlockDivider) PageBlockType() string
type PageBlockEmbedded ¶
type PageBlockEmbedded struct { // Web page URL, if available Url string `json:"url"` // HTML-markup of the embedded page Html string `json:"html"` // Poster photo, if available; may be null PosterPhoto *Photo `json:"poster_photo"` // Block width; 0 if unknown Width int32 `json:"width"` // Block height; 0 if unknown Height int32 `json:"height"` // Block caption Caption *PageBlockCaption `json:"caption"` // True, if the block must be full width IsFullWidth bool `json:"is_full_width"` // True, if scrolling needs to be allowed AllowScrolling bool `json:"allow_scrolling"` // contains filtered or unexported fields }
An embedded web page
func UnmarshalPageBlockEmbedded ¶
func UnmarshalPageBlockEmbedded(data json.RawMessage) (*PageBlockEmbedded, error)
func (*PageBlockEmbedded) GetClass ¶
func (*PageBlockEmbedded) GetClass() string
func (*PageBlockEmbedded) GetType ¶
func (*PageBlockEmbedded) GetType() string
func (*PageBlockEmbedded) MarshalJSON ¶
func (entity *PageBlockEmbedded) MarshalJSON() ([]byte, error)
func (*PageBlockEmbedded) PageBlockType ¶
func (*PageBlockEmbedded) PageBlockType() string
type PageBlockEmbeddedPost ¶
type PageBlockEmbeddedPost struct { // Web page URL Url string `json:"url"` // Post author Author string `json:"author"` // Post author photo; may be null AuthorPhoto *Photo `json:"author_photo"` // Point in time (Unix timestamp) when the post was created; 0 if unknown Date int32 `json:"date"` // Post content PageBlocks []PageBlock `json:"page_blocks"` // Post caption Caption *PageBlockCaption `json:"caption"` // contains filtered or unexported fields }
An embedded post
func UnmarshalPageBlockEmbeddedPost ¶
func UnmarshalPageBlockEmbeddedPost(data json.RawMessage) (*PageBlockEmbeddedPost, error)
func (*PageBlockEmbeddedPost) GetClass ¶
func (*PageBlockEmbeddedPost) GetClass() string
func (*PageBlockEmbeddedPost) GetType ¶
func (*PageBlockEmbeddedPost) GetType() string
func (*PageBlockEmbeddedPost) MarshalJSON ¶
func (entity *PageBlockEmbeddedPost) MarshalJSON() ([]byte, error)
func (*PageBlockEmbeddedPost) PageBlockType ¶
func (*PageBlockEmbeddedPost) PageBlockType() string
func (*PageBlockEmbeddedPost) UnmarshalJSON ¶
func (pageBlockEmbeddedPost *PageBlockEmbeddedPost) UnmarshalJSON(data []byte) error
type PageBlockFooter ¶
type PageBlockFooter struct { RichText `json:"footer"` // contains filtered or unexported fields }Footer
The footer of a page
func UnmarshalPageBlockFooter ¶
func UnmarshalPageBlockFooter(data json.RawMessage) (*PageBlockFooter, error)
func (*PageBlockFooter) GetClass ¶
func (*PageBlockFooter) GetClass() string
func (*PageBlockFooter) GetType ¶
func (*PageBlockFooter) GetType() string
func (*PageBlockFooter) MarshalJSON ¶
func (entity *PageBlockFooter) MarshalJSON() ([]byte, error)
func (*PageBlockFooter) PageBlockType ¶
func (*PageBlockFooter) PageBlockType() string
func (*PageBlockFooter) UnmarshalJSON ¶
func (pageBlockFooter *PageBlockFooter) UnmarshalJSON(data []byte) error
type PageBlockHeader ¶
type PageBlockHeader struct { // Header Header RichText `json:"header"` // contains filtered or unexported fields }
A header
func UnmarshalPageBlockHeader ¶
func UnmarshalPageBlockHeader(data json.RawMessage) (*PageBlockHeader, error)
func (*PageBlockHeader) GetClass ¶
func (*PageBlockHeader) GetClass() string
func (*PageBlockHeader) GetType ¶
func (*PageBlockHeader) GetType() string
func (*PageBlockHeader) MarshalJSON ¶
func (entity *PageBlockHeader) MarshalJSON() ([]byte, error)
func (*PageBlockHeader) PageBlockType ¶
func (*PageBlockHeader) PageBlockType() string
func (*PageBlockHeader) UnmarshalJSON ¶
func (pageBlockHeader *PageBlockHeader) UnmarshalJSON(data []byte) error
type PageBlockHorizontalAlignment ¶
type PageBlockHorizontalAlignment interface {
PageBlockHorizontalAlignmentType() string
}
Describes a horizontal alignment of a table cell content
func UnmarshalListOfPageBlockHorizontalAlignment ¶
func UnmarshalListOfPageBlockHorizontalAlignment(dataList []json.RawMessage) ([]PageBlockHorizontalAlignment, error)
func UnmarshalPageBlockHorizontalAlignment ¶
func UnmarshalPageBlockHorizontalAlignment(data json.RawMessage) (PageBlockHorizontalAlignment, error)
type PageBlockHorizontalAlignmentCenter ¶
type PageBlockHorizontalAlignmentCenter struct {
// contains filtered or unexported fields
}
The content must be center-aligned
func UnmarshalPageBlockHorizontalAlignmentCenter ¶
func UnmarshalPageBlockHorizontalAlignmentCenter(data json.RawMessage) (*PageBlockHorizontalAlignmentCenter, error)
func (*PageBlockHorizontalAlignmentCenter) GetClass ¶
func (*PageBlockHorizontalAlignmentCenter) GetClass() string
func (*PageBlockHorizontalAlignmentCenter) GetType ¶
func (*PageBlockHorizontalAlignmentCenter) GetType() string
func (*PageBlockHorizontalAlignmentCenter) MarshalJSON ¶
func (entity *PageBlockHorizontalAlignmentCenter) MarshalJSON() ([]byte, error)
func (*PageBlockHorizontalAlignmentCenter) PageBlockHorizontalAlignmentType ¶
func (*PageBlockHorizontalAlignmentCenter) PageBlockHorizontalAlignmentType() string
type PageBlockHorizontalAlignmentLeft ¶
type PageBlockHorizontalAlignmentLeft struct {
// contains filtered or unexported fields
}
The content must be left-aligned
func UnmarshalPageBlockHorizontalAlignmentLeft ¶
func UnmarshalPageBlockHorizontalAlignmentLeft(data json.RawMessage) (*PageBlockHorizontalAlignmentLeft, error)
func (*PageBlockHorizontalAlignmentLeft) GetClass ¶
func (*PageBlockHorizontalAlignmentLeft) GetClass() string
func (*PageBlockHorizontalAlignmentLeft) GetType ¶
func (*PageBlockHorizontalAlignmentLeft) GetType() string
func (*PageBlockHorizontalAlignmentLeft) MarshalJSON ¶
func (entity *PageBlockHorizontalAlignmentLeft) MarshalJSON() ([]byte, error)
func (*PageBlockHorizontalAlignmentLeft) PageBlockHorizontalAlignmentType ¶
func (*PageBlockHorizontalAlignmentLeft) PageBlockHorizontalAlignmentType() string
type PageBlockHorizontalAlignmentRight ¶
type PageBlockHorizontalAlignmentRight struct {
// contains filtered or unexported fields
}
The content must be right-aligned
func UnmarshalPageBlockHorizontalAlignmentRight ¶
func UnmarshalPageBlockHorizontalAlignmentRight(data json.RawMessage) (*PageBlockHorizontalAlignmentRight, error)
func (*PageBlockHorizontalAlignmentRight) GetClass ¶
func (*PageBlockHorizontalAlignmentRight) GetClass() string
func (*PageBlockHorizontalAlignmentRight) GetType ¶
func (*PageBlockHorizontalAlignmentRight) GetType() string
func (*PageBlockHorizontalAlignmentRight) MarshalJSON ¶
func (entity *PageBlockHorizontalAlignmentRight) MarshalJSON() ([]byte, error)
func (*PageBlockHorizontalAlignmentRight) PageBlockHorizontalAlignmentType ¶
func (*PageBlockHorizontalAlignmentRight) PageBlockHorizontalAlignmentType() string
type PageBlockKicker ¶
type PageBlockKicker struct { // Kicker Kicker RichText `json:"kicker"` // contains filtered or unexported fields }
A kicker
func UnmarshalPageBlockKicker ¶
func UnmarshalPageBlockKicker(data json.RawMessage) (*PageBlockKicker, error)
func (*PageBlockKicker) GetClass ¶
func (*PageBlockKicker) GetClass() string
func (*PageBlockKicker) GetType ¶
func (*PageBlockKicker) GetType() string
func (*PageBlockKicker) MarshalJSON ¶
func (entity *PageBlockKicker) MarshalJSON() ([]byte, error)
func (*PageBlockKicker) PageBlockType ¶
func (*PageBlockKicker) PageBlockType() string
func (*PageBlockKicker) UnmarshalJSON ¶
func (pageBlockKicker *PageBlockKicker) UnmarshalJSON(data []byte) error
type PageBlockList ¶
type PageBlockList struct { // The items of the list Items []*PageBlockListItem `json:"items"` // contains filtered or unexported fields }
A list of data blocks
func UnmarshalPageBlockList ¶
func UnmarshalPageBlockList(data json.RawMessage) (*PageBlockList, error)
func (*PageBlockList) GetClass ¶
func (*PageBlockList) GetClass() string
func (*PageBlockList) GetType ¶
func (*PageBlockList) GetType() string
func (*PageBlockList) MarshalJSON ¶
func (entity *PageBlockList) MarshalJSON() ([]byte, error)
func (*PageBlockList) PageBlockType ¶
func (*PageBlockList) PageBlockType() string
type PageBlockListItem ¶
type PageBlockListItem struct { // Item label Label string `json:"label"` // Item blocks PageBlocks []PageBlock `json:"page_blocks"` // contains filtered or unexported fields }
Describes an item of a list page block
func UnmarshalPageBlockListItem ¶
func UnmarshalPageBlockListItem(data json.RawMessage) (*PageBlockListItem, error)
func (*PageBlockListItem) GetClass ¶
func (*PageBlockListItem) GetClass() string
func (*PageBlockListItem) GetType ¶
func (*PageBlockListItem) GetType() string
func (*PageBlockListItem) MarshalJSON ¶
func (entity *PageBlockListItem) MarshalJSON() ([]byte, error)
func (*PageBlockListItem) UnmarshalJSON ¶
func (pageBlockListItem *PageBlockListItem) UnmarshalJSON(data []byte) error
type PageBlockMap ¶
type PageBlockMap struct { // Location of the map center Location *Location `json:"location"` // Map zoom level Zoom int32 `json:"zoom"` // Map width Width int32 `json:"width"` // Map height Height int32 `json:"height"` // Block caption Caption *PageBlockCaption `json:"caption"` // contains filtered or unexported fields }
A map
func UnmarshalPageBlockMap ¶
func UnmarshalPageBlockMap(data json.RawMessage) (*PageBlockMap, error)
func (*PageBlockMap) GetClass ¶
func (*PageBlockMap) GetClass() string
func (*PageBlockMap) GetType ¶
func (*PageBlockMap) GetType() string
func (*PageBlockMap) MarshalJSON ¶
func (entity *PageBlockMap) MarshalJSON() ([]byte, error)
func (*PageBlockMap) PageBlockType ¶
func (*PageBlockMap) PageBlockType() string
type PageBlockParagraph ¶
type PageBlockParagraph struct { // Paragraph text Text RichText `json:"text"` // contains filtered or unexported fields }
A text paragraph
func UnmarshalPageBlockParagraph ¶
func UnmarshalPageBlockParagraph(data json.RawMessage) (*PageBlockParagraph, error)
func (*PageBlockParagraph) GetClass ¶
func (*PageBlockParagraph) GetClass() string
func (*PageBlockParagraph) GetType ¶
func (*PageBlockParagraph) GetType() string
func (*PageBlockParagraph) MarshalJSON ¶
func (entity *PageBlockParagraph) MarshalJSON() ([]byte, error)
func (*PageBlockParagraph) PageBlockType ¶
func (*PageBlockParagraph) PageBlockType() string
func (*PageBlockParagraph) UnmarshalJSON ¶
func (pageBlockParagraph *PageBlockParagraph) UnmarshalJSON(data []byte) error
type PageBlockPhoto ¶
type PageBlockPhoto struct { // Photo file; may be null Photo *Photo `json:"photo"` // Photo caption Caption *PageBlockCaption `json:"caption"` // URL that needs to be opened when the photo is clicked Url string `json:"url"` // contains filtered or unexported fields }
A photo
func UnmarshalPageBlockPhoto ¶
func UnmarshalPageBlockPhoto(data json.RawMessage) (*PageBlockPhoto, error)
func (*PageBlockPhoto) GetClass ¶
func (*PageBlockPhoto) GetClass() string
func (*PageBlockPhoto) GetType ¶
func (*PageBlockPhoto) GetType() string
func (*PageBlockPhoto) MarshalJSON ¶
func (entity *PageBlockPhoto) MarshalJSON() ([]byte, error)
func (*PageBlockPhoto) PageBlockType ¶
func (*PageBlockPhoto) PageBlockType() string
type PageBlockPreformatted ¶
type PageBlockPreformatted struct { // Paragraph text Text RichText `json:"text"` // Programming language for which the text needs to be formatted Language string `json:"language"` // contains filtered or unexported fields }
A preformatted text paragraph
func UnmarshalPageBlockPreformatted ¶
func UnmarshalPageBlockPreformatted(data json.RawMessage) (*PageBlockPreformatted, error)
func (*PageBlockPreformatted) GetClass ¶
func (*PageBlockPreformatted) GetClass() string
func (*PageBlockPreformatted) GetType ¶
func (*PageBlockPreformatted) GetType() string
func (*PageBlockPreformatted) MarshalJSON ¶
func (entity *PageBlockPreformatted) MarshalJSON() ([]byte, error)
func (*PageBlockPreformatted) PageBlockType ¶
func (*PageBlockPreformatted) PageBlockType() string
func (*PageBlockPreformatted) UnmarshalJSON ¶
func (pageBlockPreformatted *PageBlockPreformatted) UnmarshalJSON(data []byte) error
type PageBlockPullQuote ¶
type PageBlockPullQuote struct { // Quote text Text RichText `json:"text"` // Quote credit Credit RichText `json:"credit"` // contains filtered or unexported fields }
A pull quote
func UnmarshalPageBlockPullQuote ¶
func UnmarshalPageBlockPullQuote(data json.RawMessage) (*PageBlockPullQuote, error)
func (*PageBlockPullQuote) GetClass ¶
func (*PageBlockPullQuote) GetClass() string
func (*PageBlockPullQuote) GetType ¶
func (*PageBlockPullQuote) GetType() string
func (*PageBlockPullQuote) MarshalJSON ¶
func (entity *PageBlockPullQuote) MarshalJSON() ([]byte, error)
func (*PageBlockPullQuote) PageBlockType ¶
func (*PageBlockPullQuote) PageBlockType() string
func (*PageBlockPullQuote) UnmarshalJSON ¶
func (pageBlockPullQuote *PageBlockPullQuote) UnmarshalJSON(data []byte) error
type PageBlockRelatedArticle ¶
type PageBlockRelatedArticle struct { // Related article URL Url string `json:"url"` // Article title; may be empty Title string `json:"title"` // Article description; may be empty Description string `json:"description"` // Article photo; may be null Photo *Photo `json:"photo"` // Article author; may be empty Author string `json:"author"` // Point in time (Unix timestamp) when the article was published; 0 if unknown PublishDate int32 `json:"publish_date"` // contains filtered or unexported fields }
Contains information about a related article
func UnmarshalPageBlockRelatedArticle ¶
func UnmarshalPageBlockRelatedArticle(data json.RawMessage) (*PageBlockRelatedArticle, error)
func (*PageBlockRelatedArticle) GetClass ¶
func (*PageBlockRelatedArticle) GetClass() string
func (*PageBlockRelatedArticle) GetType ¶
func (*PageBlockRelatedArticle) GetType() string
func (*PageBlockRelatedArticle) MarshalJSON ¶
func (entity *PageBlockRelatedArticle) MarshalJSON() ([]byte, error)
type PageBlockRelatedArticles ¶
type PageBlockRelatedArticles struct { // Block header Header RichText `json:"header"` // List of related articles Articles []*PageBlockRelatedArticle `json:"articles"` // contains filtered or unexported fields }
Related articles
func UnmarshalPageBlockRelatedArticles ¶
func UnmarshalPageBlockRelatedArticles(data json.RawMessage) (*PageBlockRelatedArticles, error)
func (*PageBlockRelatedArticles) GetClass ¶
func (*PageBlockRelatedArticles) GetClass() string
func (*PageBlockRelatedArticles) GetType ¶
func (*PageBlockRelatedArticles) GetType() string
func (*PageBlockRelatedArticles) MarshalJSON ¶
func (entity *PageBlockRelatedArticles) MarshalJSON() ([]byte, error)
func (*PageBlockRelatedArticles) PageBlockType ¶
func (*PageBlockRelatedArticles) PageBlockType() string
func (*PageBlockRelatedArticles) UnmarshalJSON ¶
func (pageBlockRelatedArticles *PageBlockRelatedArticles) UnmarshalJSON(data []byte) error
type PageBlockSlideshow ¶
type PageBlockSlideshow struct { // Slideshow item contents PageBlocks []PageBlock `json:"page_blocks"` // Block caption Caption *PageBlockCaption `json:"caption"` // contains filtered or unexported fields }
A slideshow
func UnmarshalPageBlockSlideshow ¶
func UnmarshalPageBlockSlideshow(data json.RawMessage) (*PageBlockSlideshow, error)
func (*PageBlockSlideshow) GetClass ¶
func (*PageBlockSlideshow) GetClass() string
func (*PageBlockSlideshow) GetType ¶
func (*PageBlockSlideshow) GetType() string
func (*PageBlockSlideshow) MarshalJSON ¶
func (entity *PageBlockSlideshow) MarshalJSON() ([]byte, error)
func (*PageBlockSlideshow) PageBlockType ¶
func (*PageBlockSlideshow) PageBlockType() string
func (*PageBlockSlideshow) UnmarshalJSON ¶
func (pageBlockSlideshow *PageBlockSlideshow) UnmarshalJSON(data []byte) error
type PageBlockSubheader ¶
type PageBlockSubheader struct { // Subheader Subheader RichText `json:"subheader"` // contains filtered or unexported fields }
A subheader
func UnmarshalPageBlockSubheader ¶
func UnmarshalPageBlockSubheader(data json.RawMessage) (*PageBlockSubheader, error)
func (*PageBlockSubheader) GetClass ¶
func (*PageBlockSubheader) GetClass() string
func (*PageBlockSubheader) GetType ¶
func (*PageBlockSubheader) GetType() string
func (*PageBlockSubheader) MarshalJSON ¶
func (entity *PageBlockSubheader) MarshalJSON() ([]byte, error)
func (*PageBlockSubheader) PageBlockType ¶
func (*PageBlockSubheader) PageBlockType() string
func (*PageBlockSubheader) UnmarshalJSON ¶
func (pageBlockSubheader *PageBlockSubheader) UnmarshalJSON(data []byte) error
type PageBlockSubtitle ¶
type PageBlockSubtitle struct { // Subtitle Subtitle RichText `json:"subtitle"` // contains filtered or unexported fields }
The subtitle of a page
func UnmarshalPageBlockSubtitle ¶
func UnmarshalPageBlockSubtitle(data json.RawMessage) (*PageBlockSubtitle, error)
func (*PageBlockSubtitle) GetClass ¶
func (*PageBlockSubtitle) GetClass() string
func (*PageBlockSubtitle) GetType ¶
func (*PageBlockSubtitle) GetType() string
func (*PageBlockSubtitle) MarshalJSON ¶
func (entity *PageBlockSubtitle) MarshalJSON() ([]byte, error)
func (*PageBlockSubtitle) PageBlockType ¶
func (*PageBlockSubtitle) PageBlockType() string
func (*PageBlockSubtitle) UnmarshalJSON ¶
func (pageBlockSubtitle *PageBlockSubtitle) UnmarshalJSON(data []byte) error
type PageBlockTable ¶
type PageBlockTable struct { // Table caption Caption RichText `json:"caption"` // Table cells Cells [][]*PageBlockTableCell `json:"cells"` // True, if the table is bordered IsBordered bool `json:"is_bordered"` // True, if the table is striped IsStriped bool `json:"is_striped"` // contains filtered or unexported fields }
A table
func UnmarshalPageBlockTable ¶
func UnmarshalPageBlockTable(data json.RawMessage) (*PageBlockTable, error)
func (*PageBlockTable) GetClass ¶
func (*PageBlockTable) GetClass() string
func (*PageBlockTable) GetType ¶
func (*PageBlockTable) GetType() string
func (*PageBlockTable) MarshalJSON ¶
func (entity *PageBlockTable) MarshalJSON() ([]byte, error)
func (*PageBlockTable) PageBlockType ¶
func (*PageBlockTable) PageBlockType() string
func (*PageBlockTable) UnmarshalJSON ¶
func (pageBlockTable *PageBlockTable) UnmarshalJSON(data []byte) error
type PageBlockTableCell ¶
type PageBlockTableCell struct { // Cell text; may be null. If the text is null, then the cell must be invisible Text RichText `json:"text"` // True, if it is a header cell IsHeader bool `json:"is_header"` // The number of columns the cell spans Colspan int32 `json:"colspan"` // The number of rows the cell spans Rowspan int32 `json:"rowspan"` // Horizontal cell content alignment Align PageBlockHorizontalAlignment `json:"align"` // Vertical cell content alignment Valign PageBlockVerticalAlignment `json:"valign"` // contains filtered or unexported fields }
Represents a cell of a table
func UnmarshalPageBlockTableCell ¶
func UnmarshalPageBlockTableCell(data json.RawMessage) (*PageBlockTableCell, error)
func (*PageBlockTableCell) GetClass ¶
func (*PageBlockTableCell) GetClass() string
func (*PageBlockTableCell) GetType ¶
func (*PageBlockTableCell) GetType() string
func (*PageBlockTableCell) MarshalJSON ¶
func (entity *PageBlockTableCell) MarshalJSON() ([]byte, error)
func (*PageBlockTableCell) UnmarshalJSON ¶
func (pageBlockTableCell *PageBlockTableCell) UnmarshalJSON(data []byte) error
type PageBlockTitle ¶
type PageBlockTitle struct { // Title Title RichText `json:"title"` // contains filtered or unexported fields }
The title of a page
func UnmarshalPageBlockTitle ¶
func UnmarshalPageBlockTitle(data json.RawMessage) (*PageBlockTitle, error)
func (*PageBlockTitle) GetClass ¶
func (*PageBlockTitle) GetClass() string
func (*PageBlockTitle) GetType ¶
func (*PageBlockTitle) GetType() string
func (*PageBlockTitle) MarshalJSON ¶
func (entity *PageBlockTitle) MarshalJSON() ([]byte, error)
func (*PageBlockTitle) PageBlockType ¶
func (*PageBlockTitle) PageBlockType() string
func (*PageBlockTitle) UnmarshalJSON ¶
func (pageBlockTitle *PageBlockTitle) UnmarshalJSON(data []byte) error
type PageBlockVerticalAlignment ¶
type PageBlockVerticalAlignment interface {
PageBlockVerticalAlignmentType() string
}
Describes a Vertical alignment of a table cell content
func UnmarshalListOfPageBlockVerticalAlignment ¶
func UnmarshalListOfPageBlockVerticalAlignment(dataList []json.RawMessage) ([]PageBlockVerticalAlignment, error)
func UnmarshalPageBlockVerticalAlignment ¶
func UnmarshalPageBlockVerticalAlignment(data json.RawMessage) (PageBlockVerticalAlignment, error)
type PageBlockVerticalAlignmentBottom ¶
type PageBlockVerticalAlignmentBottom struct {
// contains filtered or unexported fields
}
The content must be bottom-aligned
func UnmarshalPageBlockVerticalAlignmentBottom ¶
func UnmarshalPageBlockVerticalAlignmentBottom(data json.RawMessage) (*PageBlockVerticalAlignmentBottom, error)
func (*PageBlockVerticalAlignmentBottom) GetClass ¶
func (*PageBlockVerticalAlignmentBottom) GetClass() string
func (*PageBlockVerticalAlignmentBottom) GetType ¶
func (*PageBlockVerticalAlignmentBottom) GetType() string
func (*PageBlockVerticalAlignmentBottom) MarshalJSON ¶
func (entity *PageBlockVerticalAlignmentBottom) MarshalJSON() ([]byte, error)
func (*PageBlockVerticalAlignmentBottom) PageBlockVerticalAlignmentType ¶
func (*PageBlockVerticalAlignmentBottom) PageBlockVerticalAlignmentType() string
type PageBlockVerticalAlignmentMiddle ¶
type PageBlockVerticalAlignmentMiddle struct {
// contains filtered or unexported fields
}
The content must be middle-aligned
func UnmarshalPageBlockVerticalAlignmentMiddle ¶
func UnmarshalPageBlockVerticalAlignmentMiddle(data json.RawMessage) (*PageBlockVerticalAlignmentMiddle, error)
func (*PageBlockVerticalAlignmentMiddle) GetClass ¶
func (*PageBlockVerticalAlignmentMiddle) GetClass() string
func (*PageBlockVerticalAlignmentMiddle) GetType ¶
func (*PageBlockVerticalAlignmentMiddle) GetType() string
func (*PageBlockVerticalAlignmentMiddle) MarshalJSON ¶
func (entity *PageBlockVerticalAlignmentMiddle) MarshalJSON() ([]byte, error)
func (*PageBlockVerticalAlignmentMiddle) PageBlockVerticalAlignmentType ¶
func (*PageBlockVerticalAlignmentMiddle) PageBlockVerticalAlignmentType() string
type PageBlockVerticalAlignmentTop ¶
type PageBlockVerticalAlignmentTop struct {
// contains filtered or unexported fields
}
The content must be top-aligned
func UnmarshalPageBlockVerticalAlignmentTop ¶
func UnmarshalPageBlockVerticalAlignmentTop(data json.RawMessage) (*PageBlockVerticalAlignmentTop, error)
func (*PageBlockVerticalAlignmentTop) GetClass ¶
func (*PageBlockVerticalAlignmentTop) GetClass() string
func (*PageBlockVerticalAlignmentTop) GetType ¶
func (*PageBlockVerticalAlignmentTop) GetType() string
func (*PageBlockVerticalAlignmentTop) MarshalJSON ¶
func (entity *PageBlockVerticalAlignmentTop) MarshalJSON() ([]byte, error)
func (*PageBlockVerticalAlignmentTop) PageBlockVerticalAlignmentType ¶
func (*PageBlockVerticalAlignmentTop) PageBlockVerticalAlignmentType() string
type PageBlockVideo ¶
type PageBlockVideo struct { // Video file; may be null Video *Video `json:"video"` // Video caption Caption *PageBlockCaption `json:"caption"` // True, if the video must be played automatically NeedAutoplay bool `json:"need_autoplay"` // True, if the video must be looped IsLooped bool `json:"is_looped"` // contains filtered or unexported fields }
A video
func UnmarshalPageBlockVideo ¶
func UnmarshalPageBlockVideo(data json.RawMessage) (*PageBlockVideo, error)
func (*PageBlockVideo) GetClass ¶
func (*PageBlockVideo) GetClass() string
func (*PageBlockVideo) GetType ¶
func (*PageBlockVideo) GetType() string
func (*PageBlockVideo) MarshalJSON ¶
func (entity *PageBlockVideo) MarshalJSON() ([]byte, error)
func (*PageBlockVideo) PageBlockType ¶
func (*PageBlockVideo) PageBlockType() string
type PageBlockVoiceNote ¶
type PageBlockVoiceNote struct { // Voice note; may be null VoiceNote *VoiceNote `json:"voice_note"` // Voice note caption Caption *PageBlockCaption `json:"caption"` // contains filtered or unexported fields }
A voice note
func UnmarshalPageBlockVoiceNote ¶
func UnmarshalPageBlockVoiceNote(data json.RawMessage) (*PageBlockVoiceNote, error)
func (*PageBlockVoiceNote) GetClass ¶
func (*PageBlockVoiceNote) GetClass() string
func (*PageBlockVoiceNote) GetType ¶
func (*PageBlockVoiceNote) GetType() string
func (*PageBlockVoiceNote) MarshalJSON ¶
func (entity *PageBlockVoiceNote) MarshalJSON() ([]byte, error)
func (*PageBlockVoiceNote) PageBlockType ¶
func (*PageBlockVoiceNote) PageBlockType() string
type ParseMarkdownRequest ¶
type ParseMarkdownRequest struct { // The text to parse. For example, "__italic__ ~~strikethrough~~ ||spoiler|| **bold** `code` “`pre“` __[italic__ text_url](telegram.org) __italic**bold italic__bold**" Text *FormattedText `json:"text"` }
type ParseTextEntitiesRequest ¶
type ParseTextEntitiesRequest struct { // The text to parse Text string `json:"text"` // Text parse mode ParseMode TextParseMode `json:"parse_mode"` }
type PassportAuthorizationForm ¶
type PassportAuthorizationForm struct { // Unique identifier of the authorization form Id int32 `json:"id"` // Telegram Passport elements that must be provided to complete the form RequiredElements []*PassportRequiredElement `json:"required_elements"` // URL for the privacy policy of the service; may be empty PrivacyPolicyUrl string `json:"privacy_policy_url"` // contains filtered or unexported fields }
Contains information about a Telegram Passport authorization form that was requested
func UnmarshalPassportAuthorizationForm ¶
func UnmarshalPassportAuthorizationForm(data json.RawMessage) (*PassportAuthorizationForm, error)
func (*PassportAuthorizationForm) GetClass ¶
func (*PassportAuthorizationForm) GetClass() string
func (*PassportAuthorizationForm) GetType ¶
func (*PassportAuthorizationForm) GetType() string
func (*PassportAuthorizationForm) MarshalJSON ¶
func (entity *PassportAuthorizationForm) MarshalJSON() ([]byte, error)
type PassportElement ¶
type PassportElement interface {
PassportElementType() string
}
Contains information about a Telegram Passport element
func UnmarshalListOfPassportElement ¶
func UnmarshalListOfPassportElement(dataList []json.RawMessage) ([]PassportElement, error)
func UnmarshalPassportElement ¶
func UnmarshalPassportElement(data json.RawMessage) (PassportElement, error)
type PassportElementAddress ¶
type PassportElementAddress struct { // Address Address *Address `json:"address"` // contains filtered or unexported fields }
A Telegram Passport element containing the user's address
func UnmarshalPassportElementAddress ¶
func UnmarshalPassportElementAddress(data json.RawMessage) (*PassportElementAddress, error)
func (*PassportElementAddress) GetClass ¶
func (*PassportElementAddress) GetClass() string
func (*PassportElementAddress) GetType ¶
func (*PassportElementAddress) GetType() string
func (*PassportElementAddress) MarshalJSON ¶
func (entity *PassportElementAddress) MarshalJSON() ([]byte, error)
func (*PassportElementAddress) PassportElementType ¶
func (*PassportElementAddress) PassportElementType() string
type PassportElementBankStatement ¶
type PassportElementBankStatement struct { // Bank statement BankStatement *PersonalDocument `json:"bank_statement"` // contains filtered or unexported fields }
A Telegram Passport element containing the user's bank statement
func UnmarshalPassportElementBankStatement ¶
func UnmarshalPassportElementBankStatement(data json.RawMessage) (*PassportElementBankStatement, error)
func (*PassportElementBankStatement) GetClass ¶
func (*PassportElementBankStatement) GetClass() string
func (*PassportElementBankStatement) GetType ¶
func (*PassportElementBankStatement) GetType() string
func (*PassportElementBankStatement) MarshalJSON ¶
func (entity *PassportElementBankStatement) MarshalJSON() ([]byte, error)
func (*PassportElementBankStatement) PassportElementType ¶
func (*PassportElementBankStatement) PassportElementType() string
type PassportElementDriverLicense ¶
type PassportElementDriverLicense struct { // Driver license DriverLicense *IdentityDocument `json:"driver_license"` // contains filtered or unexported fields }
A Telegram Passport element containing the user's driver license
func UnmarshalPassportElementDriverLicense ¶
func UnmarshalPassportElementDriverLicense(data json.RawMessage) (*PassportElementDriverLicense, error)
func (*PassportElementDriverLicense) GetClass ¶
func (*PassportElementDriverLicense) GetClass() string
func (*PassportElementDriverLicense) GetType ¶
func (*PassportElementDriverLicense) GetType() string
func (*PassportElementDriverLicense) MarshalJSON ¶
func (entity *PassportElementDriverLicense) MarshalJSON() ([]byte, error)
func (*PassportElementDriverLicense) PassportElementType ¶
func (*PassportElementDriverLicense) PassportElementType() string
type PassportElementEmailAddress ¶
type PassportElementEmailAddress struct { // Email address EmailAddress string `json:"email_address"` // contains filtered or unexported fields }
A Telegram Passport element containing the user's email address
func UnmarshalPassportElementEmailAddress ¶
func UnmarshalPassportElementEmailAddress(data json.RawMessage) (*PassportElementEmailAddress, error)
func (*PassportElementEmailAddress) GetClass ¶
func (*PassportElementEmailAddress) GetClass() string
func (*PassportElementEmailAddress) GetType ¶
func (*PassportElementEmailAddress) GetType() string
func (*PassportElementEmailAddress) MarshalJSON ¶
func (entity *PassportElementEmailAddress) MarshalJSON() ([]byte, error)
func (*PassportElementEmailAddress) PassportElementType ¶
func (*PassportElementEmailAddress) PassportElementType() string
type PassportElementError ¶
type PassportElementError struct { // Type of the Telegram Passport element which has the error Type PassportElementType `json:"type"` // Error message Message string `json:"message"` // Error source Source PassportElementErrorSource `json:"source"` // contains filtered or unexported fields }
Contains the description of an error in a Telegram Passport element
func UnmarshalPassportElementError ¶
func UnmarshalPassportElementError(data json.RawMessage) (*PassportElementError, error)
func (*PassportElementError) GetClass ¶
func (*PassportElementError) GetClass() string
func (*PassportElementError) GetType ¶
func (*PassportElementError) GetType() string
func (*PassportElementError) MarshalJSON ¶
func (entity *PassportElementError) MarshalJSON() ([]byte, error)
func (*PassportElementError) UnmarshalJSON ¶
func (passportElementError *PassportElementError) UnmarshalJSON(data []byte) error
type PassportElementErrorSource ¶
type PassportElementErrorSource interface {
PassportElementErrorSourceType() string
}
Contains the description of an error in a Telegram Passport element
func UnmarshalListOfPassportElementErrorSource ¶
func UnmarshalListOfPassportElementErrorSource(dataList []json.RawMessage) ([]PassportElementErrorSource, error)
func UnmarshalPassportElementErrorSource ¶
func UnmarshalPassportElementErrorSource(data json.RawMessage) (PassportElementErrorSource, error)
type PassportElementErrorSourceDataField ¶
type PassportElementErrorSourceDataField struct { // Field name FieldName string `json:"field_name"` // contains filtered or unexported fields }
One of the data fields contains an error. The error will be considered resolved when the value of the field changes
func UnmarshalPassportElementErrorSourceDataField ¶
func UnmarshalPassportElementErrorSourceDataField(data json.RawMessage) (*PassportElementErrorSourceDataField, error)
func (*PassportElementErrorSourceDataField) GetClass ¶
func (*PassportElementErrorSourceDataField) GetClass() string
func (*PassportElementErrorSourceDataField) GetType ¶
func (*PassportElementErrorSourceDataField) GetType() string
func (*PassportElementErrorSourceDataField) MarshalJSON ¶
func (entity *PassportElementErrorSourceDataField) MarshalJSON() ([]byte, error)
func (*PassportElementErrorSourceDataField) PassportElementErrorSourceType ¶
func (*PassportElementErrorSourceDataField) PassportElementErrorSourceType() string
type PassportElementErrorSourceFile ¶
type PassportElementErrorSourceFile struct { // Index of a file with the error FileIndex int32 `json:"file_index"` // contains filtered or unexported fields }
The file contains an error. The error will be considered resolved when the file changes
func UnmarshalPassportElementErrorSourceFile ¶
func UnmarshalPassportElementErrorSourceFile(data json.RawMessage) (*PassportElementErrorSourceFile, error)
func (*PassportElementErrorSourceFile) GetClass ¶
func (*PassportElementErrorSourceFile) GetClass() string
func (*PassportElementErrorSourceFile) GetType ¶
func (*PassportElementErrorSourceFile) GetType() string
func (*PassportElementErrorSourceFile) MarshalJSON ¶
func (entity *PassportElementErrorSourceFile) MarshalJSON() ([]byte, error)
func (*PassportElementErrorSourceFile) PassportElementErrorSourceType ¶
func (*PassportElementErrorSourceFile) PassportElementErrorSourceType() string
type PassportElementErrorSourceFiles ¶
type PassportElementErrorSourceFiles struct {
// contains filtered or unexported fields
}
The list of attached files contains an error. The error will be considered resolved when the list of files changes
func UnmarshalPassportElementErrorSourceFiles ¶
func UnmarshalPassportElementErrorSourceFiles(data json.RawMessage) (*PassportElementErrorSourceFiles, error)
func (*PassportElementErrorSourceFiles) GetClass ¶
func (*PassportElementErrorSourceFiles) GetClass() string
func (*PassportElementErrorSourceFiles) GetType ¶
func (*PassportElementErrorSourceFiles) GetType() string
func (*PassportElementErrorSourceFiles) MarshalJSON ¶
func (entity *PassportElementErrorSourceFiles) MarshalJSON() ([]byte, error)
func (*PassportElementErrorSourceFiles) PassportElementErrorSourceType ¶
func (*PassportElementErrorSourceFiles) PassportElementErrorSourceType() string
type PassportElementErrorSourceFrontSide ¶
type PassportElementErrorSourceFrontSide struct {
// contains filtered or unexported fields
}
The front side of the document contains an error. The error will be considered resolved when the file with the front side changes
func UnmarshalPassportElementErrorSourceFrontSide ¶
func UnmarshalPassportElementErrorSourceFrontSide(data json.RawMessage) (*PassportElementErrorSourceFrontSide, error)
func (*PassportElementErrorSourceFrontSide) GetClass ¶
func (*PassportElementErrorSourceFrontSide) GetClass() string
func (*PassportElementErrorSourceFrontSide) GetType ¶
func (*PassportElementErrorSourceFrontSide) GetType() string
func (*PassportElementErrorSourceFrontSide) MarshalJSON ¶
func (entity *PassportElementErrorSourceFrontSide) MarshalJSON() ([]byte, error)
func (*PassportElementErrorSourceFrontSide) PassportElementErrorSourceType ¶
func (*PassportElementErrorSourceFrontSide) PassportElementErrorSourceType() string
type PassportElementErrorSourceReverseSide ¶
type PassportElementErrorSourceReverseSide struct {
// contains filtered or unexported fields
}
The reverse side of the document contains an error. The error will be considered resolved when the file with the reverse side changes
func UnmarshalPassportElementErrorSourceReverseSide ¶
func UnmarshalPassportElementErrorSourceReverseSide(data json.RawMessage) (*PassportElementErrorSourceReverseSide, error)
func (*PassportElementErrorSourceReverseSide) GetClass ¶
func (*PassportElementErrorSourceReverseSide) GetClass() string
func (*PassportElementErrorSourceReverseSide) GetType ¶
func (*PassportElementErrorSourceReverseSide) GetType() string
func (*PassportElementErrorSourceReverseSide) MarshalJSON ¶
func (entity *PassportElementErrorSourceReverseSide) MarshalJSON() ([]byte, error)
func (*PassportElementErrorSourceReverseSide) PassportElementErrorSourceType ¶
func (*PassportElementErrorSourceReverseSide) PassportElementErrorSourceType() string
type PassportElementErrorSourceSelfie ¶
type PassportElementErrorSourceSelfie struct {
// contains filtered or unexported fields
}
The selfie with the document contains an error. The error will be considered resolved when the file with the selfie changes
func UnmarshalPassportElementErrorSourceSelfie ¶
func UnmarshalPassportElementErrorSourceSelfie(data json.RawMessage) (*PassportElementErrorSourceSelfie, error)
func (*PassportElementErrorSourceSelfie) GetClass ¶
func (*PassportElementErrorSourceSelfie) GetClass() string
func (*PassportElementErrorSourceSelfie) GetType ¶
func (*PassportElementErrorSourceSelfie) GetType() string
func (*PassportElementErrorSourceSelfie) MarshalJSON ¶
func (entity *PassportElementErrorSourceSelfie) MarshalJSON() ([]byte, error)
func (*PassportElementErrorSourceSelfie) PassportElementErrorSourceType ¶
func (*PassportElementErrorSourceSelfie) PassportElementErrorSourceType() string
type PassportElementErrorSourceTranslationFile ¶
type PassportElementErrorSourceTranslationFile struct { // Index of a file with the error FileIndex int32 `json:"file_index"` // contains filtered or unexported fields }
One of files with the translation of the document contains an error. The error will be considered resolved when the file changes
func UnmarshalPassportElementErrorSourceTranslationFile ¶
func UnmarshalPassportElementErrorSourceTranslationFile(data json.RawMessage) (*PassportElementErrorSourceTranslationFile, error)
func (*PassportElementErrorSourceTranslationFile) GetClass ¶
func (*PassportElementErrorSourceTranslationFile) GetClass() string
func (*PassportElementErrorSourceTranslationFile) GetType ¶
func (*PassportElementErrorSourceTranslationFile) GetType() string
func (*PassportElementErrorSourceTranslationFile) MarshalJSON ¶
func (entity *PassportElementErrorSourceTranslationFile) MarshalJSON() ([]byte, error)
func (*PassportElementErrorSourceTranslationFile) PassportElementErrorSourceType ¶
func (*PassportElementErrorSourceTranslationFile) PassportElementErrorSourceType() string
type PassportElementErrorSourceTranslationFiles ¶
type PassportElementErrorSourceTranslationFiles struct {
// contains filtered or unexported fields
}
The translation of the document contains an error. The error will be considered resolved when the list of translation files changes
func UnmarshalPassportElementErrorSourceTranslationFiles ¶
func UnmarshalPassportElementErrorSourceTranslationFiles(data json.RawMessage) (*PassportElementErrorSourceTranslationFiles, error)
func (*PassportElementErrorSourceTranslationFiles) GetClass ¶
func (*PassportElementErrorSourceTranslationFiles) GetClass() string
func (*PassportElementErrorSourceTranslationFiles) GetType ¶
func (*PassportElementErrorSourceTranslationFiles) GetType() string
func (*PassportElementErrorSourceTranslationFiles) MarshalJSON ¶
func (entity *PassportElementErrorSourceTranslationFiles) MarshalJSON() ([]byte, error)
func (*PassportElementErrorSourceTranslationFiles) PassportElementErrorSourceType ¶
func (*PassportElementErrorSourceTranslationFiles) PassportElementErrorSourceType() string
type PassportElementErrorSourceUnspecified ¶
type PassportElementErrorSourceUnspecified struct {
// contains filtered or unexported fields
}
The element contains an error in an unspecified place. The error will be considered resolved when new data is added
func UnmarshalPassportElementErrorSourceUnspecified ¶
func UnmarshalPassportElementErrorSourceUnspecified(data json.RawMessage) (*PassportElementErrorSourceUnspecified, error)
func (*PassportElementErrorSourceUnspecified) GetClass ¶
func (*PassportElementErrorSourceUnspecified) GetClass() string
func (*PassportElementErrorSourceUnspecified) GetType ¶
func (*PassportElementErrorSourceUnspecified) GetType() string
func (*PassportElementErrorSourceUnspecified) MarshalJSON ¶
func (entity *PassportElementErrorSourceUnspecified) MarshalJSON() ([]byte, error)
func (*PassportElementErrorSourceUnspecified) PassportElementErrorSourceType ¶
func (*PassportElementErrorSourceUnspecified) PassportElementErrorSourceType() string
type PassportElementIdentityCard ¶
type PassportElementIdentityCard struct { // Identity card IdentityCard *IdentityDocument `json:"identity_card"` // contains filtered or unexported fields }
A Telegram Passport element containing the user's identity card
func UnmarshalPassportElementIdentityCard ¶
func UnmarshalPassportElementIdentityCard(data json.RawMessage) (*PassportElementIdentityCard, error)
func (*PassportElementIdentityCard) GetClass ¶
func (*PassportElementIdentityCard) GetClass() string
func (*PassportElementIdentityCard) GetType ¶
func (*PassportElementIdentityCard) GetType() string
func (*PassportElementIdentityCard) MarshalJSON ¶
func (entity *PassportElementIdentityCard) MarshalJSON() ([]byte, error)
func (*PassportElementIdentityCard) PassportElementType ¶
func (*PassportElementIdentityCard) PassportElementType() string
type PassportElementInternalPassport ¶
type PassportElementInternalPassport struct { // Internal passport InternalPassport *IdentityDocument `json:"internal_passport"` // contains filtered or unexported fields }
A Telegram Passport element containing the user's internal passport
func UnmarshalPassportElementInternalPassport ¶
func UnmarshalPassportElementInternalPassport(data json.RawMessage) (*PassportElementInternalPassport, error)
func (*PassportElementInternalPassport) GetClass ¶
func (*PassportElementInternalPassport) GetClass() string
func (*PassportElementInternalPassport) GetType ¶
func (*PassportElementInternalPassport) GetType() string
func (*PassportElementInternalPassport) MarshalJSON ¶
func (entity *PassportElementInternalPassport) MarshalJSON() ([]byte, error)
func (*PassportElementInternalPassport) PassportElementType ¶
func (*PassportElementInternalPassport) PassportElementType() string
type PassportElementPassport ¶
type PassportElementPassport struct { // Passport Passport *IdentityDocument `json:"passport"` // contains filtered or unexported fields }
A Telegram Passport element containing the user's passport
func UnmarshalPassportElementPassport ¶
func UnmarshalPassportElementPassport(data json.RawMessage) (*PassportElementPassport, error)
func (*PassportElementPassport) GetClass ¶
func (*PassportElementPassport) GetClass() string
func (*PassportElementPassport) GetType ¶
func (*PassportElementPassport) GetType() string
func (*PassportElementPassport) MarshalJSON ¶
func (entity *PassportElementPassport) MarshalJSON() ([]byte, error)
func (*PassportElementPassport) PassportElementType ¶
func (*PassportElementPassport) PassportElementType() string
type PassportElementPassportRegistration ¶
type PassportElementPassportRegistration struct { // Passport registration pages PassportRegistration *PersonalDocument `json:"passport_registration"` // contains filtered or unexported fields }
A Telegram Passport element containing the user's passport registration pages
func UnmarshalPassportElementPassportRegistration ¶
func UnmarshalPassportElementPassportRegistration(data json.RawMessage) (*PassportElementPassportRegistration, error)
func (*PassportElementPassportRegistration) GetClass ¶
func (*PassportElementPassportRegistration) GetClass() string
func (*PassportElementPassportRegistration) GetType ¶
func (*PassportElementPassportRegistration) GetType() string
func (*PassportElementPassportRegistration) MarshalJSON ¶
func (entity *PassportElementPassportRegistration) MarshalJSON() ([]byte, error)
func (*PassportElementPassportRegistration) PassportElementType ¶
func (*PassportElementPassportRegistration) PassportElementType() string
type PassportElementPersonalDetails ¶
type PassportElementPersonalDetails struct { // Personal details of the user PersonalDetails *PersonalDetails `json:"personal_details"` // contains filtered or unexported fields }
A Telegram Passport element containing the user's personal details
func UnmarshalPassportElementPersonalDetails ¶
func UnmarshalPassportElementPersonalDetails(data json.RawMessage) (*PassportElementPersonalDetails, error)
func (*PassportElementPersonalDetails) GetClass ¶
func (*PassportElementPersonalDetails) GetClass() string
func (*PassportElementPersonalDetails) GetType ¶
func (*PassportElementPersonalDetails) GetType() string
func (*PassportElementPersonalDetails) MarshalJSON ¶
func (entity *PassportElementPersonalDetails) MarshalJSON() ([]byte, error)
func (*PassportElementPersonalDetails) PassportElementType ¶
func (*PassportElementPersonalDetails) PassportElementType() string
type PassportElementPhoneNumber ¶
type PassportElementPhoneNumber struct { // Phone number PhoneNumber string `json:"phone_number"` // contains filtered or unexported fields }
A Telegram Passport element containing the user's phone number
func UnmarshalPassportElementPhoneNumber ¶
func UnmarshalPassportElementPhoneNumber(data json.RawMessage) (*PassportElementPhoneNumber, error)
func (*PassportElementPhoneNumber) GetClass ¶
func (*PassportElementPhoneNumber) GetClass() string
func (*PassportElementPhoneNumber) GetType ¶
func (*PassportElementPhoneNumber) GetType() string
func (*PassportElementPhoneNumber) MarshalJSON ¶
func (entity *PassportElementPhoneNumber) MarshalJSON() ([]byte, error)
func (*PassportElementPhoneNumber) PassportElementType ¶
func (*PassportElementPhoneNumber) PassportElementType() string
type PassportElementRentalAgreement ¶
type PassportElementRentalAgreement struct { // Rental agreement RentalAgreement *PersonalDocument `json:"rental_agreement"` // contains filtered or unexported fields }
A Telegram Passport element containing the user's rental agreement
func UnmarshalPassportElementRentalAgreement ¶
func UnmarshalPassportElementRentalAgreement(data json.RawMessage) (*PassportElementRentalAgreement, error)
func (*PassportElementRentalAgreement) GetClass ¶
func (*PassportElementRentalAgreement) GetClass() string
func (*PassportElementRentalAgreement) GetType ¶
func (*PassportElementRentalAgreement) GetType() string
func (*PassportElementRentalAgreement) MarshalJSON ¶
func (entity *PassportElementRentalAgreement) MarshalJSON() ([]byte, error)
func (*PassportElementRentalAgreement) PassportElementType ¶
func (*PassportElementRentalAgreement) PassportElementType() string
type PassportElementTemporaryRegistration ¶
type PassportElementTemporaryRegistration struct { // Temporary registration TemporaryRegistration *PersonalDocument `json:"temporary_registration"` // contains filtered or unexported fields }
A Telegram Passport element containing the user's temporary registration
func UnmarshalPassportElementTemporaryRegistration ¶
func UnmarshalPassportElementTemporaryRegistration(data json.RawMessage) (*PassportElementTemporaryRegistration, error)
func (*PassportElementTemporaryRegistration) GetClass ¶
func (*PassportElementTemporaryRegistration) GetClass() string
func (*PassportElementTemporaryRegistration) GetType ¶
func (*PassportElementTemporaryRegistration) GetType() string
func (*PassportElementTemporaryRegistration) MarshalJSON ¶
func (entity *PassportElementTemporaryRegistration) MarshalJSON() ([]byte, error)
func (*PassportElementTemporaryRegistration) PassportElementType ¶
func (*PassportElementTemporaryRegistration) PassportElementType() string
type PassportElementType ¶
type PassportElementType interface {
PassportElementTypeType() string
}
Contains the type of a Telegram Passport element
func UnmarshalListOfPassportElementType ¶
func UnmarshalListOfPassportElementType(dataList []json.RawMessage) ([]PassportElementType, error)
func UnmarshalPassportElementType ¶
func UnmarshalPassportElementType(data json.RawMessage) (PassportElementType, error)
type PassportElementTypeAddress ¶
type PassportElementTypeAddress struct {
// contains filtered or unexported fields
}
A Telegram Passport element containing the user's address
func UnmarshalPassportElementTypeAddress ¶
func UnmarshalPassportElementTypeAddress(data json.RawMessage) (*PassportElementTypeAddress, error)
func (*PassportElementTypeAddress) GetClass ¶
func (*PassportElementTypeAddress) GetClass() string
func (*PassportElementTypeAddress) GetType ¶
func (*PassportElementTypeAddress) GetType() string
func (*PassportElementTypeAddress) MarshalJSON ¶
func (entity *PassportElementTypeAddress) MarshalJSON() ([]byte, error)
func (*PassportElementTypeAddress) PassportElementTypeType ¶
func (*PassportElementTypeAddress) PassportElementTypeType() string
type PassportElementTypeBankStatement ¶
type PassportElementTypeBankStatement struct {
// contains filtered or unexported fields
}
A Telegram Passport element containing the user's bank statement
func UnmarshalPassportElementTypeBankStatement ¶
func UnmarshalPassportElementTypeBankStatement(data json.RawMessage) (*PassportElementTypeBankStatement, error)
func (*PassportElementTypeBankStatement) GetClass ¶
func (*PassportElementTypeBankStatement) GetClass() string
func (*PassportElementTypeBankStatement) GetType ¶
func (*PassportElementTypeBankStatement) GetType() string
func (*PassportElementTypeBankStatement) MarshalJSON ¶
func (entity *PassportElementTypeBankStatement) MarshalJSON() ([]byte, error)
func (*PassportElementTypeBankStatement) PassportElementTypeType ¶
func (*PassportElementTypeBankStatement) PassportElementTypeType() string
type PassportElementTypeDriverLicense ¶
type PassportElementTypeDriverLicense struct {
// contains filtered or unexported fields
}
A Telegram Passport element containing the user's driver license
func UnmarshalPassportElementTypeDriverLicense ¶
func UnmarshalPassportElementTypeDriverLicense(data json.RawMessage) (*PassportElementTypeDriverLicense, error)
func (*PassportElementTypeDriverLicense) GetClass ¶
func (*PassportElementTypeDriverLicense) GetClass() string
func (*PassportElementTypeDriverLicense) GetType ¶
func (*PassportElementTypeDriverLicense) GetType() string
func (*PassportElementTypeDriverLicense) MarshalJSON ¶
func (entity *PassportElementTypeDriverLicense) MarshalJSON() ([]byte, error)
func (*PassportElementTypeDriverLicense) PassportElementTypeType ¶
func (*PassportElementTypeDriverLicense) PassportElementTypeType() string
type PassportElementTypeEmailAddress ¶
type PassportElementTypeEmailAddress struct {
// contains filtered or unexported fields
}
A Telegram Passport element containing the user's email address
func UnmarshalPassportElementTypeEmailAddress ¶
func UnmarshalPassportElementTypeEmailAddress(data json.RawMessage) (*PassportElementTypeEmailAddress, error)
func (*PassportElementTypeEmailAddress) GetClass ¶
func (*PassportElementTypeEmailAddress) GetClass() string
func (*PassportElementTypeEmailAddress) GetType ¶
func (*PassportElementTypeEmailAddress) GetType() string
func (*PassportElementTypeEmailAddress) MarshalJSON ¶
func (entity *PassportElementTypeEmailAddress) MarshalJSON() ([]byte, error)
func (*PassportElementTypeEmailAddress) PassportElementTypeType ¶
func (*PassportElementTypeEmailAddress) PassportElementTypeType() string
type PassportElementTypeIdentityCard ¶
type PassportElementTypeIdentityCard struct {
// contains filtered or unexported fields
}
A Telegram Passport element containing the user's identity card
func UnmarshalPassportElementTypeIdentityCard ¶
func UnmarshalPassportElementTypeIdentityCard(data json.RawMessage) (*PassportElementTypeIdentityCard, error)
func (*PassportElementTypeIdentityCard) GetClass ¶
func (*PassportElementTypeIdentityCard) GetClass() string
func (*PassportElementTypeIdentityCard) GetType ¶
func (*PassportElementTypeIdentityCard) GetType() string
func (*PassportElementTypeIdentityCard) MarshalJSON ¶
func (entity *PassportElementTypeIdentityCard) MarshalJSON() ([]byte, error)
func (*PassportElementTypeIdentityCard) PassportElementTypeType ¶
func (*PassportElementTypeIdentityCard) PassportElementTypeType() string
type PassportElementTypeInternalPassport ¶
type PassportElementTypeInternalPassport struct {
// contains filtered or unexported fields
}
A Telegram Passport element containing the user's internal passport
func UnmarshalPassportElementTypeInternalPassport ¶
func UnmarshalPassportElementTypeInternalPassport(data json.RawMessage) (*PassportElementTypeInternalPassport, error)
func (*PassportElementTypeInternalPassport) GetClass ¶
func (*PassportElementTypeInternalPassport) GetClass() string
func (*PassportElementTypeInternalPassport) GetType ¶
func (*PassportElementTypeInternalPassport) GetType() string
func (*PassportElementTypeInternalPassport) MarshalJSON ¶
func (entity *PassportElementTypeInternalPassport) MarshalJSON() ([]byte, error)
func (*PassportElementTypeInternalPassport) PassportElementTypeType ¶
func (*PassportElementTypeInternalPassport) PassportElementTypeType() string
type PassportElementTypePassport ¶
type PassportElementTypePassport struct {
// contains filtered or unexported fields
}
A Telegram Passport element containing the user's passport
func UnmarshalPassportElementTypePassport ¶
func UnmarshalPassportElementTypePassport(data json.RawMessage) (*PassportElementTypePassport, error)
func (*PassportElementTypePassport) GetClass ¶
func (*PassportElementTypePassport) GetClass() string
func (*PassportElementTypePassport) GetType ¶
func (*PassportElementTypePassport) GetType() string
func (*PassportElementTypePassport) MarshalJSON ¶
func (entity *PassportElementTypePassport) MarshalJSON() ([]byte, error)
func (*PassportElementTypePassport) PassportElementTypeType ¶
func (*PassportElementTypePassport) PassportElementTypeType() string
type PassportElementTypePassportRegistration ¶
type PassportElementTypePassportRegistration struct {
// contains filtered or unexported fields
}
A Telegram Passport element containing the registration page of the user's passport
func UnmarshalPassportElementTypePassportRegistration ¶
func UnmarshalPassportElementTypePassportRegistration(data json.RawMessage) (*PassportElementTypePassportRegistration, error)
func (*PassportElementTypePassportRegistration) GetClass ¶
func (*PassportElementTypePassportRegistration) GetClass() string
func (*PassportElementTypePassportRegistration) GetType ¶
func (*PassportElementTypePassportRegistration) GetType() string
func (*PassportElementTypePassportRegistration) MarshalJSON ¶
func (entity *PassportElementTypePassportRegistration) MarshalJSON() ([]byte, error)
func (*PassportElementTypePassportRegistration) PassportElementTypeType ¶
func (*PassportElementTypePassportRegistration) PassportElementTypeType() string
type PassportElementTypePersonalDetails ¶
type PassportElementTypePersonalDetails struct {
// contains filtered or unexported fields
}
A Telegram Passport element containing the user's personal details
func UnmarshalPassportElementTypePersonalDetails ¶
func UnmarshalPassportElementTypePersonalDetails(data json.RawMessage) (*PassportElementTypePersonalDetails, error)
func (*PassportElementTypePersonalDetails) GetClass ¶
func (*PassportElementTypePersonalDetails) GetClass() string
func (*PassportElementTypePersonalDetails) GetType ¶
func (*PassportElementTypePersonalDetails) GetType() string
func (*PassportElementTypePersonalDetails) MarshalJSON ¶
func (entity *PassportElementTypePersonalDetails) MarshalJSON() ([]byte, error)
func (*PassportElementTypePersonalDetails) PassportElementTypeType ¶
func (*PassportElementTypePersonalDetails) PassportElementTypeType() string
type PassportElementTypePhoneNumber ¶
type PassportElementTypePhoneNumber struct {
// contains filtered or unexported fields
}
A Telegram Passport element containing the user's phone number
func UnmarshalPassportElementTypePhoneNumber ¶
func UnmarshalPassportElementTypePhoneNumber(data json.RawMessage) (*PassportElementTypePhoneNumber, error)
func (*PassportElementTypePhoneNumber) GetClass ¶
func (*PassportElementTypePhoneNumber) GetClass() string
func (*PassportElementTypePhoneNumber) GetType ¶
func (*PassportElementTypePhoneNumber) GetType() string
func (*PassportElementTypePhoneNumber) MarshalJSON ¶
func (entity *PassportElementTypePhoneNumber) MarshalJSON() ([]byte, error)
func (*PassportElementTypePhoneNumber) PassportElementTypeType ¶
func (*PassportElementTypePhoneNumber) PassportElementTypeType() string
type PassportElementTypeRentalAgreement ¶
type PassportElementTypeRentalAgreement struct {
// contains filtered or unexported fields
}
A Telegram Passport element containing the user's rental agreement
func UnmarshalPassportElementTypeRentalAgreement ¶
func UnmarshalPassportElementTypeRentalAgreement(data json.RawMessage) (*PassportElementTypeRentalAgreement, error)
func (*PassportElementTypeRentalAgreement) GetClass ¶
func (*PassportElementTypeRentalAgreement) GetClass() string
func (*PassportElementTypeRentalAgreement) GetType ¶
func (*PassportElementTypeRentalAgreement) GetType() string
func (*PassportElementTypeRentalAgreement) MarshalJSON ¶
func (entity *PassportElementTypeRentalAgreement) MarshalJSON() ([]byte, error)
func (*PassportElementTypeRentalAgreement) PassportElementTypeType ¶
func (*PassportElementTypeRentalAgreement) PassportElementTypeType() string
type PassportElementTypeTemporaryRegistration ¶
type PassportElementTypeTemporaryRegistration struct {
// contains filtered or unexported fields
}
A Telegram Passport element containing the user's temporary registration
func UnmarshalPassportElementTypeTemporaryRegistration ¶
func UnmarshalPassportElementTypeTemporaryRegistration(data json.RawMessage) (*PassportElementTypeTemporaryRegistration, error)
func (*PassportElementTypeTemporaryRegistration) GetClass ¶
func (*PassportElementTypeTemporaryRegistration) GetClass() string
func (*PassportElementTypeTemporaryRegistration) GetType ¶
func (*PassportElementTypeTemporaryRegistration) GetType() string
func (*PassportElementTypeTemporaryRegistration) MarshalJSON ¶
func (entity *PassportElementTypeTemporaryRegistration) MarshalJSON() ([]byte, error)
func (*PassportElementTypeTemporaryRegistration) PassportElementTypeType ¶
func (*PassportElementTypeTemporaryRegistration) PassportElementTypeType() string
type PassportElementTypeUtilityBill ¶
type PassportElementTypeUtilityBill struct {
// contains filtered or unexported fields
}
A Telegram Passport element containing the user's utility bill
func UnmarshalPassportElementTypeUtilityBill ¶
func UnmarshalPassportElementTypeUtilityBill(data json.RawMessage) (*PassportElementTypeUtilityBill, error)
func (*PassportElementTypeUtilityBill) GetClass ¶
func (*PassportElementTypeUtilityBill) GetClass() string
func (*PassportElementTypeUtilityBill) GetType ¶
func (*PassportElementTypeUtilityBill) GetType() string
func (*PassportElementTypeUtilityBill) MarshalJSON ¶
func (entity *PassportElementTypeUtilityBill) MarshalJSON() ([]byte, error)
func (*PassportElementTypeUtilityBill) PassportElementTypeType ¶
func (*PassportElementTypeUtilityBill) PassportElementTypeType() string
type PassportElementUtilityBill ¶
type PassportElementUtilityBill struct { // Utility bill UtilityBill *PersonalDocument `json:"utility_bill"` // contains filtered or unexported fields }
A Telegram Passport element containing the user's utility bill
func UnmarshalPassportElementUtilityBill ¶
func UnmarshalPassportElementUtilityBill(data json.RawMessage) (*PassportElementUtilityBill, error)
func (*PassportElementUtilityBill) GetClass ¶
func (*PassportElementUtilityBill) GetClass() string
func (*PassportElementUtilityBill) GetType ¶
func (*PassportElementUtilityBill) GetType() string
func (*PassportElementUtilityBill) MarshalJSON ¶
func (entity *PassportElementUtilityBill) MarshalJSON() ([]byte, error)
func (*PassportElementUtilityBill) PassportElementType ¶
func (*PassportElementUtilityBill) PassportElementType() string
type PassportElements ¶
type PassportElements struct { // Telegram Passport elements Elements []PassportElement `json:"elements"` // contains filtered or unexported fields }
Contains information about saved Telegram Passport elements
func UnmarshalPassportElements ¶
func UnmarshalPassportElements(data json.RawMessage) (*PassportElements, error)
func (*PassportElements) GetClass ¶
func (*PassportElements) GetClass() string
func (*PassportElements) GetType ¶
func (*PassportElements) GetType() string
func (*PassportElements) MarshalJSON ¶
func (entity *PassportElements) MarshalJSON() ([]byte, error)
func (*PassportElements) UnmarshalJSON ¶
func (passportElements *PassportElements) UnmarshalJSON(data []byte) error
type PassportElementsWithErrors ¶
type PassportElementsWithErrors struct { // Telegram Passport elements Elements []PassportElement `json:"elements"` // Errors in the elements that are already available Errors []*PassportElementError `json:"errors"` // contains filtered or unexported fields }
Contains information about a Telegram Passport elements and corresponding errors
func UnmarshalPassportElementsWithErrors ¶
func UnmarshalPassportElementsWithErrors(data json.RawMessage) (*PassportElementsWithErrors, error)
func (*PassportElementsWithErrors) GetClass ¶
func (*PassportElementsWithErrors) GetClass() string
func (*PassportElementsWithErrors) GetType ¶
func (*PassportElementsWithErrors) GetType() string
func (*PassportElementsWithErrors) MarshalJSON ¶
func (entity *PassportElementsWithErrors) MarshalJSON() ([]byte, error)
func (*PassportElementsWithErrors) UnmarshalJSON ¶
func (passportElementsWithErrors *PassportElementsWithErrors) UnmarshalJSON(data []byte) error
type PassportRequiredElement ¶
type PassportRequiredElement struct { // List of Telegram Passport elements any of which is enough to provide SuitableElements []*PassportSuitableElement `json:"suitable_elements"` // contains filtered or unexported fields }
Contains a description of the required Telegram Passport element that was requested by a service
func UnmarshalPassportRequiredElement ¶
func UnmarshalPassportRequiredElement(data json.RawMessage) (*PassportRequiredElement, error)
func (*PassportRequiredElement) GetClass ¶
func (*PassportRequiredElement) GetClass() string
func (*PassportRequiredElement) GetType ¶
func (*PassportRequiredElement) GetType() string
func (*PassportRequiredElement) MarshalJSON ¶
func (entity *PassportRequiredElement) MarshalJSON() ([]byte, error)
type PassportSuitableElement ¶
type PassportSuitableElement struct { // Type of the element Type PassportElementType `json:"type"` // True, if a selfie is required with the identity document IsSelfieRequired bool `json:"is_selfie_required"` // True, if a certified English translation is required with the document IsTranslationRequired bool `json:"is_translation_required"` // True, if personal details must include the user's name in the language of their country of residence IsNativeNameRequired bool `json:"is_native_name_required"` // contains filtered or unexported fields }
Contains information about a Telegram Passport element that was requested by a service
func UnmarshalPassportSuitableElement ¶
func UnmarshalPassportSuitableElement(data json.RawMessage) (*PassportSuitableElement, error)
func (*PassportSuitableElement) GetClass ¶
func (*PassportSuitableElement) GetClass() string
func (*PassportSuitableElement) GetType ¶
func (*PassportSuitableElement) GetType() string
func (*PassportSuitableElement) MarshalJSON ¶
func (entity *PassportSuitableElement) MarshalJSON() ([]byte, error)
func (*PassportSuitableElement) UnmarshalJSON ¶
func (passportSuitableElement *PassportSuitableElement) UnmarshalJSON(data []byte) error
type PasswordState ¶
type PasswordState struct { // True, if a 2-step verification password is set HasPassword bool `json:"has_password"` // Hint for the password; may be empty PasswordHint string `json:"password_hint"` // True, if a recovery email is set HasRecoveryEmailAddress bool `json:"has_recovery_email_address"` // True, if some Telegram Passport elements were saved HasPassportData bool `json:"has_passport_data"` // Information about the recovery email address to which the confirmation email was sent; may be null RecoveryEmailAddressCodeInfo *EmailAddressAuthenticationCodeInfo `json:"recovery_email_address_code_info"` // Pattern of the email address set up for logging in LoginEmailAddressPattern string `json:"login_email_address_pattern"` // If not 0, point in time (Unix timestamp) after which the 2-step verification password can be reset immediately using resetPassword PendingResetDate int32 `json:"pending_reset_date"` // contains filtered or unexported fields }
Represents the current state of 2-step verification
func UnmarshalPasswordState ¶
func UnmarshalPasswordState(data json.RawMessage) (*PasswordState, error)
func (*PasswordState) GetClass ¶
func (*PasswordState) GetClass() string
func (*PasswordState) GetType ¶
func (*PasswordState) GetType() string
func (*PasswordState) MarshalJSON ¶
func (entity *PasswordState) MarshalJSON() ([]byte, error)
type PaymentForm ¶
type PaymentForm struct { // The payment form identifier Id JsonInt64 `json:"id"` // Full information about the invoice Invoice *Invoice `json:"invoice"` // User identifier of the seller bot SellerBotUserId int64 `json:"seller_bot_user_id"` // User identifier of the payment provider bot PaymentProviderUserId int64 `json:"payment_provider_user_id"` // Information about the payment provider PaymentProvider PaymentProvider `json:"payment_provider"` // The list of additional payment options AdditionalPaymentOptions []*PaymentOption `json:"additional_payment_options"` // Saved server-side order information; may be null SavedOrderInfo *OrderInfo `json:"saved_order_info"` // The list of saved payment credentials SavedCredentials []*SavedCredentials `json:"saved_credentials"` // True, if the user can choose to save credentials CanSaveCredentials bool `json:"can_save_credentials"` // True, if the user will be able to save credentials, if sets up a 2-step verification password NeedPassword bool `json:"need_password"` // Product title ProductTitle string `json:"product_title"` // Product description ProductDescription *FormattedText `json:"product_description"` // Product photo; may be null ProductPhoto *Photo `json:"product_photo"` // contains filtered or unexported fields }
Contains information about an invoice payment form
func UnmarshalPaymentForm ¶
func UnmarshalPaymentForm(data json.RawMessage) (*PaymentForm, error)
func (*PaymentForm) GetClass ¶
func (*PaymentForm) GetClass() string
func (*PaymentForm) GetType ¶
func (*PaymentForm) GetType() string
func (*PaymentForm) MarshalJSON ¶
func (entity *PaymentForm) MarshalJSON() ([]byte, error)
func (*PaymentForm) UnmarshalJSON ¶ added in v1.2.3
func (paymentForm *PaymentForm) UnmarshalJSON(data []byte) error
type PaymentOption ¶ added in v1.2.3
type PaymentOption struct { // Title for the payment option Title string `json:"title"` // Payment form URL to be opened in a web view Url string `json:"url"` // contains filtered or unexported fields }
Describes an additional payment option
func UnmarshalPaymentOption ¶ added in v1.2.3
func UnmarshalPaymentOption(data json.RawMessage) (*PaymentOption, error)
func (*PaymentOption) GetClass ¶ added in v1.2.3
func (*PaymentOption) GetClass() string
func (*PaymentOption) GetType ¶ added in v1.2.3
func (*PaymentOption) GetType() string
func (*PaymentOption) MarshalJSON ¶ added in v1.2.3
func (entity *PaymentOption) MarshalJSON() ([]byte, error)
type PaymentProvider ¶ added in v1.2.3
type PaymentProvider interface {
PaymentProviderType() string
}
Contains information about a payment provider
func UnmarshalListOfPaymentProvider ¶ added in v1.2.3
func UnmarshalListOfPaymentProvider(dataList []json.RawMessage) ([]PaymentProvider, error)
func UnmarshalPaymentProvider ¶ added in v1.2.3
func UnmarshalPaymentProvider(data json.RawMessage) (PaymentProvider, error)
type PaymentProviderOther ¶ added in v1.2.3
type PaymentProviderOther struct { // Payment form URL Url string `json:"url"` // contains filtered or unexported fields }
Some other payment provider, for which a web payment form must be shown
func UnmarshalPaymentProviderOther ¶ added in v1.2.3
func UnmarshalPaymentProviderOther(data json.RawMessage) (*PaymentProviderOther, error)
func (*PaymentProviderOther) GetClass ¶ added in v1.2.3
func (*PaymentProviderOther) GetClass() string
func (*PaymentProviderOther) GetType ¶ added in v1.2.3
func (*PaymentProviderOther) GetType() string
func (*PaymentProviderOther) MarshalJSON ¶ added in v1.2.3
func (entity *PaymentProviderOther) MarshalJSON() ([]byte, error)
func (*PaymentProviderOther) PaymentProviderType ¶ added in v1.2.3
func (*PaymentProviderOther) PaymentProviderType() string
type PaymentProviderSmartGlocal ¶ added in v1.2.3
type PaymentProviderSmartGlocal struct { // Public payment token PublicToken string `json:"public_token"` // contains filtered or unexported fields }
Smart Glocal payment provider
func UnmarshalPaymentProviderSmartGlocal ¶ added in v1.2.3
func UnmarshalPaymentProviderSmartGlocal(data json.RawMessage) (*PaymentProviderSmartGlocal, error)
func (*PaymentProviderSmartGlocal) GetClass ¶ added in v1.2.3
func (*PaymentProviderSmartGlocal) GetClass() string
func (*PaymentProviderSmartGlocal) GetType ¶ added in v1.2.3
func (*PaymentProviderSmartGlocal) GetType() string
func (*PaymentProviderSmartGlocal) MarshalJSON ¶ added in v1.2.3
func (entity *PaymentProviderSmartGlocal) MarshalJSON() ([]byte, error)
func (*PaymentProviderSmartGlocal) PaymentProviderType ¶ added in v1.2.3
func (*PaymentProviderSmartGlocal) PaymentProviderType() string
type PaymentProviderStripe ¶ added in v1.2.3
type PaymentProviderStripe struct { // Stripe API publishable key PublishableKey string `json:"publishable_key"` // True, if the user country must be provided NeedCountry bool `json:"need_country"` // True, if the user ZIP/postal code must be provided NeedPostalCode bool `json:"need_postal_code"` // True, if the cardholder name must be provided NeedCardholderName bool `json:"need_cardholder_name"` // contains filtered or unexported fields }
Stripe payment provider
func UnmarshalPaymentProviderStripe ¶ added in v1.2.3
func UnmarshalPaymentProviderStripe(data json.RawMessage) (*PaymentProviderStripe, error)
func (*PaymentProviderStripe) GetClass ¶ added in v1.2.3
func (*PaymentProviderStripe) GetClass() string
func (*PaymentProviderStripe) GetType ¶ added in v1.2.3
func (*PaymentProviderStripe) GetType() string
func (*PaymentProviderStripe) MarshalJSON ¶ added in v1.2.3
func (entity *PaymentProviderStripe) MarshalJSON() ([]byte, error)
func (*PaymentProviderStripe) PaymentProviderType ¶ added in v1.2.3
func (*PaymentProviderStripe) PaymentProviderType() string
type PaymentReceipt ¶
type PaymentReceipt struct { // Product title Title string `json:"title"` // Product description Description *FormattedText `json:"description"` // Product photo; may be null Photo *Photo `json:"photo"` // Point in time (Unix timestamp) when the payment was made Date int32 `json:"date"` // User identifier of the seller bot SellerBotUserId int64 `json:"seller_bot_user_id"` // User identifier of the payment provider bot PaymentProviderUserId int64 `json:"payment_provider_user_id"` // Information about the invoice Invoice *Invoice `json:"invoice"` // Order information; may be null OrderInfo *OrderInfo `json:"order_info"` // Chosen shipping option; may be null ShippingOption *ShippingOption `json:"shipping_option"` // Title of the saved credentials chosen by the buyer CredentialsTitle string `json:"credentials_title"` // The amount of tip chosen by the buyer in the smallest units of the currency TipAmount int64 `json:"tip_amount"` // contains filtered or unexported fields }
Contains information about a successful payment
func UnmarshalPaymentReceipt ¶
func UnmarshalPaymentReceipt(data json.RawMessage) (*PaymentReceipt, error)
func (*PaymentReceipt) GetClass ¶
func (*PaymentReceipt) GetClass() string
func (*PaymentReceipt) GetType ¶
func (*PaymentReceipt) GetType() string
func (*PaymentReceipt) MarshalJSON ¶
func (entity *PaymentReceipt) MarshalJSON() ([]byte, error)
type PaymentResult ¶
type PaymentResult struct { // True, if the payment request was successful; otherwise, the verification_url will be non-empty Success bool `json:"success"` // URL for additional payment credentials verification VerificationUrl string `json:"verification_url"` // contains filtered or unexported fields }
Contains the result of a payment request
func UnmarshalPaymentResult ¶
func UnmarshalPaymentResult(data json.RawMessage) (*PaymentResult, error)
func (*PaymentResult) GetClass ¶
func (*PaymentResult) GetClass() string
func (*PaymentResult) GetType ¶
func (*PaymentResult) GetType() string
func (*PaymentResult) MarshalJSON ¶
func (entity *PaymentResult) MarshalJSON() ([]byte, error)
type PersonalDetails ¶
type PersonalDetails struct { // First name of the user written in English; 1-255 characters FirstName string `json:"first_name"` // Middle name of the user written in English; 0-255 characters MiddleName string `json:"middle_name"` // Last name of the user written in English; 1-255 characters LastName string `json:"last_name"` // Native first name of the user; 1-255 characters NativeFirstName string `json:"native_first_name"` // Native middle name of the user; 0-255 characters NativeMiddleName string `json:"native_middle_name"` // Native last name of the user; 1-255 characters NativeLastName string `json:"native_last_name"` // Birthdate of the user Birthdate *Date `json:"birthdate"` // Gender of the user, "male" or "female" Gender string `json:"gender"` // A two-letter ISO 3166-1 alpha-2 country code of the user's country CountryCode string `json:"country_code"` // A two-letter ISO 3166-1 alpha-2 country code of the user's residence country ResidenceCountryCode string `json:"residence_country_code"` // contains filtered or unexported fields }
Contains the user's personal details
func UnmarshalPersonalDetails ¶
func UnmarshalPersonalDetails(data json.RawMessage) (*PersonalDetails, error)
func (*PersonalDetails) GetClass ¶
func (*PersonalDetails) GetClass() string
func (*PersonalDetails) GetType ¶
func (*PersonalDetails) GetType() string
func (*PersonalDetails) MarshalJSON ¶
func (entity *PersonalDetails) MarshalJSON() ([]byte, error)
type PersonalDocument ¶
type PersonalDocument struct { // List of files containing the pages of the document Files []*DatedFile `json:"files"` // List of files containing a certified English translation of the document Translation []*DatedFile `json:"translation"` // contains filtered or unexported fields }
A personal document, containing some information about a user
func UnmarshalPersonalDocument ¶
func UnmarshalPersonalDocument(data json.RawMessage) (*PersonalDocument, error)
func (*PersonalDocument) GetClass ¶
func (*PersonalDocument) GetClass() string
func (*PersonalDocument) GetType ¶
func (*PersonalDocument) GetType() string
func (*PersonalDocument) MarshalJSON ¶
func (entity *PersonalDocument) MarshalJSON() ([]byte, error)
type PhoneNumberAuthenticationSettings ¶
type PhoneNumberAuthenticationSettings struct { // Pass true if the authentication code may be sent via a flash call to the specified phone number AllowFlashCall bool `json:"allow_flash_call"` // Pass true if the authentication code may be sent via a missed call to the specified phone number AllowMissedCall bool `json:"allow_missed_call"` // Pass true if the authenticated phone number is used on the current device IsCurrentPhoneNumber bool `json:"is_current_phone_number"` // For official applications only. True, if the application can use Android SMS Retriever API (requires Google Play Services >= 10.2) to automatically receive the authentication code from the SMS. See https://developers.google.com/identity/sms-retriever/ for more details AllowSmsRetrieverApi bool `json:"allow_sms_retriever_api"` // For official Android and iOS applications only; pass null otherwise. Settings for Firebase Authentication FirebaseAuthenticationSettings FirebaseAuthenticationSettings `json:"firebase_authentication_settings"` // List of up to 20 authentication tokens, recently received in updateOption("authentication_token") in previously logged out sessions AuthenticationTokens []string `json:"authentication_tokens"` // contains filtered or unexported fields }
Contains settings for the authentication of the user's phone number
func UnmarshalPhoneNumberAuthenticationSettings ¶
func UnmarshalPhoneNumberAuthenticationSettings(data json.RawMessage) (*PhoneNumberAuthenticationSettings, error)
func (*PhoneNumberAuthenticationSettings) GetClass ¶
func (*PhoneNumberAuthenticationSettings) GetClass() string
func (*PhoneNumberAuthenticationSettings) GetType ¶
func (*PhoneNumberAuthenticationSettings) GetType() string
func (*PhoneNumberAuthenticationSettings) MarshalJSON ¶
func (entity *PhoneNumberAuthenticationSettings) MarshalJSON() ([]byte, error)
func (*PhoneNumberAuthenticationSettings) UnmarshalJSON ¶ added in v1.2.3
func (phoneNumberAuthenticationSettings *PhoneNumberAuthenticationSettings) UnmarshalJSON(data []byte) error
type PhoneNumberInfo ¶
type PhoneNumberInfo struct { // Information about the country to which the phone number belongs; may be null Country *CountryInfo `json:"country"` // The part of the phone number denoting country calling code or its part CountryCallingCode string `json:"country_calling_code"` // The phone number without country calling code formatted accordingly to local rules. Expected digits are returned as '-', but even more digits might be entered by the user FormattedPhoneNumber string `json:"formatted_phone_number"` // True, if the phone number was bought on Fragment and isn't tied to a SIM card IsAnonymous bool `json:"is_anonymous"` // contains filtered or unexported fields }
Contains information about a phone number
func GetPhoneNumberInfoSync ¶
func GetPhoneNumberInfoSync(req *GetPhoneNumberInfoSyncRequest) (*PhoneNumberInfo, error)
Returns information about a phone number by its prefix synchronously. getCountries must be called at least once after changing localization to the specified language if properly localized country information is expected. Can be called synchronously
func UnmarshalPhoneNumberInfo ¶
func UnmarshalPhoneNumberInfo(data json.RawMessage) (*PhoneNumberInfo, error)
func (*PhoneNumberInfo) GetClass ¶
func (*PhoneNumberInfo) GetClass() string
func (*PhoneNumberInfo) GetType ¶
func (*PhoneNumberInfo) GetType() string
func (*PhoneNumberInfo) MarshalJSON ¶
func (entity *PhoneNumberInfo) MarshalJSON() ([]byte, error)
type Photo ¶
type Photo struct { // True, if stickers were added to the photo. The list of corresponding sticker sets can be received using getAttachedStickerSets HasStickers bool `json:"has_stickers"` // Photo minithumbnail; may be null Minithumbnail *Minithumbnail `json:"minithumbnail"` // Available variants of the photo, in different sizes Sizes []*PhotoSize `json:"sizes"` // contains filtered or unexported fields }
Describes a photo
func UnmarshalPhoto ¶
func UnmarshalPhoto(data json.RawMessage) (*Photo, error)
func (*Photo) MarshalJSON ¶
type PhotoSize ¶
type PhotoSize struct { // Image type (see https://core.telegram.org/constructor/photoSize) Type string `json:"type"` // Information about the image file Photo *File `json:"photo"` // Image width Width int32 `json:"width"` // Image height Height int32 `json:"height"` // Sizes of progressive JPEG file prefixes, which can be used to preliminarily show the image; in bytes ProgressiveSizes []int32 `json:"progressive_sizes"` // contains filtered or unexported fields }
Describes an image in JPEG format
func UnmarshalPhotoSize ¶
func UnmarshalPhotoSize(data json.RawMessage) (*PhotoSize, error)
func (*PhotoSize) MarshalJSON ¶
type PinChatMessageRequest ¶
type PinChatMessageRequest struct { // Identifier of the chat ChatId int64 `json:"chat_id"` // Identifier of the new pinned message MessageId int64 `json:"message_id"` // Pass true to disable notification about the pinned message. Notifications are always disabled in channels and private chats DisableNotification bool `json:"disable_notification"` // Pass true to pin the message only for self; private chats only OnlyForSelf bool `json:"only_for_self"` }
type PingProxyRequest ¶
type PingProxyRequest struct { // Proxy identifier. Use 0 to ping a Telegram server without a proxy ProxyId int32 `json:"proxy_id"` }
type Point ¶
type Point struct { // The point's first coordinate X float64 `json:"x"` // The point's second coordinate Y float64 `json:"y"` // contains filtered or unexported fields }
A point on a Cartesian plane
func UnmarshalPoint ¶
func UnmarshalPoint(data json.RawMessage) (*Point, error)
func (*Point) MarshalJSON ¶
type Poll ¶
type Poll struct { // Unique poll identifier Id JsonInt64 `json:"id"` // Poll question; 1-300 characters Question string `json:"question"` // List of poll answer options Options []*PollOption `json:"options"` // Total number of voters, participating in the poll TotalVoterCount int32 `json:"total_voter_count"` // Identifiers of recent voters, if the poll is non-anonymous RecentVoterIds []MessageSender `json:"recent_voter_ids"` // True, if the poll is anonymous IsAnonymous bool `json:"is_anonymous"` // Type of the poll Type PollType `json:"type"` // Amount of time the poll will be active after creation, in seconds OpenPeriod int32 `json:"open_period"` // Point in time (Unix timestamp) when the poll will automatically be closed CloseDate int32 `json:"close_date"` // True, if the poll is closed IsClosed bool `json:"is_closed"` // contains filtered or unexported fields }
Describes a poll
func UnmarshalPoll ¶
func UnmarshalPoll(data json.RawMessage) (*Poll, error)
func (*Poll) MarshalJSON ¶
func (*Poll) UnmarshalJSON ¶
type PollOption ¶
type PollOption struct { // Option text; 1-100 characters Text string `json:"text"` // Number of voters for this option, available only for closed or voted polls VoterCount int32 `json:"voter_count"` // The percentage of votes for this option; 0-100 VotePercentage int32 `json:"vote_percentage"` // True, if the option was chosen by the user IsChosen bool `json:"is_chosen"` // True, if the option is being chosen by a pending setPollAnswer request IsBeingChosen bool `json:"is_being_chosen"` // contains filtered or unexported fields }
Describes one answer option of a poll
func UnmarshalPollOption ¶
func UnmarshalPollOption(data json.RawMessage) (*PollOption, error)
func (*PollOption) GetClass ¶
func (*PollOption) GetClass() string
func (*PollOption) GetType ¶
func (*PollOption) GetType() string
func (*PollOption) MarshalJSON ¶
func (entity *PollOption) MarshalJSON() ([]byte, error)
type PollType ¶
type PollType interface {
PollTypeType() string
}
Describes the type of a poll
func UnmarshalListOfPollType ¶
func UnmarshalListOfPollType(dataList []json.RawMessage) ([]PollType, error)
func UnmarshalPollType ¶
func UnmarshalPollType(data json.RawMessage) (PollType, error)
type PollTypeQuiz ¶
type PollTypeQuiz struct { // 0-based identifier of the correct answer option; -1 for a yet unanswered poll CorrectOptionId int32 `json:"correct_option_id"` // Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; 0-200 characters with at most 2 line feeds; empty for a yet unanswered poll Explanation *FormattedText `json:"explanation"` // contains filtered or unexported fields }
A poll in quiz mode, which has exactly one correct answer option and can be answered only once
func UnmarshalPollTypeQuiz ¶
func UnmarshalPollTypeQuiz(data json.RawMessage) (*PollTypeQuiz, error)
func (*PollTypeQuiz) GetClass ¶
func (*PollTypeQuiz) GetClass() string
func (*PollTypeQuiz) GetType ¶
func (*PollTypeQuiz) GetType() string
func (*PollTypeQuiz) MarshalJSON ¶
func (entity *PollTypeQuiz) MarshalJSON() ([]byte, error)
func (*PollTypeQuiz) PollTypeType ¶
func (*PollTypeQuiz) PollTypeType() string
type PollTypeRegular ¶
type PollTypeRegular struct { // True, if multiple answer options can be chosen simultaneously AllowMultipleAnswers bool `json:"allow_multiple_answers"` // contains filtered or unexported fields }
A regular poll
func UnmarshalPollTypeRegular ¶
func UnmarshalPollTypeRegular(data json.RawMessage) (*PollTypeRegular, error)
func (*PollTypeRegular) GetClass ¶
func (*PollTypeRegular) GetClass() string
func (*PollTypeRegular) GetType ¶
func (*PollTypeRegular) GetType() string
func (*PollTypeRegular) MarshalJSON ¶
func (entity *PollTypeRegular) MarshalJSON() ([]byte, error)
func (*PollTypeRegular) PollTypeType ¶
func (*PollTypeRegular) PollTypeType() string
type PreliminaryUploadFileRequest ¶ added in v1.2.3
type PreliminaryUploadFileRequest struct { // File to upload File InputFile `json:"file"` // File type; pass null if unknown FileType FileType `json:"file_type"` // Priority of the upload (1-32). The higher the priority, the earlier the file will be uploaded. If the priorities of two files are equal, then the first one for which preliminaryUploadFile was called will be uploaded first Priority int32 `json:"priority"` }
type PremiumFeature ¶ added in v1.2.3
type PremiumFeature interface {
PremiumFeatureType() string
}
Describes a feature available to Premium users
func UnmarshalListOfPremiumFeature ¶ added in v1.2.3
func UnmarshalListOfPremiumFeature(dataList []json.RawMessage) ([]PremiumFeature, error)
func UnmarshalPremiumFeature ¶ added in v1.2.3
func UnmarshalPremiumFeature(data json.RawMessage) (PremiumFeature, error)
type PremiumFeatureAdvancedChatManagement ¶ added in v1.2.3
type PremiumFeatureAdvancedChatManagement struct {
// contains filtered or unexported fields
}
Ability to change position of the main chat list, archive and mute all new chats from non-contacts, and completely disable notifications about the user's contacts joined Telegram
func UnmarshalPremiumFeatureAdvancedChatManagement ¶ added in v1.2.3
func UnmarshalPremiumFeatureAdvancedChatManagement(data json.RawMessage) (*PremiumFeatureAdvancedChatManagement, error)
func (*PremiumFeatureAdvancedChatManagement) GetClass ¶ added in v1.2.3
func (*PremiumFeatureAdvancedChatManagement) GetClass() string
func (*PremiumFeatureAdvancedChatManagement) GetType ¶ added in v1.2.3
func (*PremiumFeatureAdvancedChatManagement) GetType() string
func (*PremiumFeatureAdvancedChatManagement) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureAdvancedChatManagement) MarshalJSON() ([]byte, error)
func (*PremiumFeatureAdvancedChatManagement) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureAdvancedChatManagement) PremiumFeatureType() string
type PremiumFeatureAnimatedProfilePhoto ¶ added in v1.2.3
type PremiumFeatureAnimatedProfilePhoto struct {
// contains filtered or unexported fields
}
Profile photo animation on message and chat screens
func UnmarshalPremiumFeatureAnimatedProfilePhoto ¶ added in v1.2.3
func UnmarshalPremiumFeatureAnimatedProfilePhoto(data json.RawMessage) (*PremiumFeatureAnimatedProfilePhoto, error)
func (*PremiumFeatureAnimatedProfilePhoto) GetClass ¶ added in v1.2.3
func (*PremiumFeatureAnimatedProfilePhoto) GetClass() string
func (*PremiumFeatureAnimatedProfilePhoto) GetType ¶ added in v1.2.3
func (*PremiumFeatureAnimatedProfilePhoto) GetType() string
func (*PremiumFeatureAnimatedProfilePhoto) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureAnimatedProfilePhoto) MarshalJSON() ([]byte, error)
func (*PremiumFeatureAnimatedProfilePhoto) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureAnimatedProfilePhoto) PremiumFeatureType() string
type PremiumFeatureAppIcons ¶ added in v1.2.3
type PremiumFeatureAppIcons struct {
// contains filtered or unexported fields
}
Allowed to set a premium application icons
func UnmarshalPremiumFeatureAppIcons ¶ added in v1.2.3
func UnmarshalPremiumFeatureAppIcons(data json.RawMessage) (*PremiumFeatureAppIcons, error)
func (*PremiumFeatureAppIcons) GetClass ¶ added in v1.2.3
func (*PremiumFeatureAppIcons) GetClass() string
func (*PremiumFeatureAppIcons) GetType ¶ added in v1.2.3
func (*PremiumFeatureAppIcons) GetType() string
func (*PremiumFeatureAppIcons) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureAppIcons) MarshalJSON() ([]byte, error)
func (*PremiumFeatureAppIcons) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureAppIcons) PremiumFeatureType() string
type PremiumFeatureCustomEmoji ¶ added in v1.2.3
type PremiumFeatureCustomEmoji struct {
// contains filtered or unexported fields
}
Allowed to use custom emoji stickers in message texts and captions
func UnmarshalPremiumFeatureCustomEmoji ¶ added in v1.2.3
func UnmarshalPremiumFeatureCustomEmoji(data json.RawMessage) (*PremiumFeatureCustomEmoji, error)
func (*PremiumFeatureCustomEmoji) GetClass ¶ added in v1.2.3
func (*PremiumFeatureCustomEmoji) GetClass() string
func (*PremiumFeatureCustomEmoji) GetType ¶ added in v1.2.3
func (*PremiumFeatureCustomEmoji) GetType() string
func (*PremiumFeatureCustomEmoji) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureCustomEmoji) MarshalJSON() ([]byte, error)
func (*PremiumFeatureCustomEmoji) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureCustomEmoji) PremiumFeatureType() string
type PremiumFeatureDisabledAds ¶ added in v1.2.3
type PremiumFeatureDisabledAds struct {
// contains filtered or unexported fields
}
Disabled ads
func UnmarshalPremiumFeatureDisabledAds ¶ added in v1.2.3
func UnmarshalPremiumFeatureDisabledAds(data json.RawMessage) (*PremiumFeatureDisabledAds, error)
func (*PremiumFeatureDisabledAds) GetClass ¶ added in v1.2.3
func (*PremiumFeatureDisabledAds) GetClass() string
func (*PremiumFeatureDisabledAds) GetType ¶ added in v1.2.3
func (*PremiumFeatureDisabledAds) GetType() string
func (*PremiumFeatureDisabledAds) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureDisabledAds) MarshalJSON() ([]byte, error)
func (*PremiumFeatureDisabledAds) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureDisabledAds) PremiumFeatureType() string
type PremiumFeatureEmojiStatus ¶ added in v1.2.3
type PremiumFeatureEmojiStatus struct {
// contains filtered or unexported fields
}
An emoji status shown along with the user's name
func UnmarshalPremiumFeatureEmojiStatus ¶ added in v1.2.3
func UnmarshalPremiumFeatureEmojiStatus(data json.RawMessage) (*PremiumFeatureEmojiStatus, error)
func (*PremiumFeatureEmojiStatus) GetClass ¶ added in v1.2.3
func (*PremiumFeatureEmojiStatus) GetClass() string
func (*PremiumFeatureEmojiStatus) GetType ¶ added in v1.2.3
func (*PremiumFeatureEmojiStatus) GetType() string
func (*PremiumFeatureEmojiStatus) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureEmojiStatus) MarshalJSON() ([]byte, error)
func (*PremiumFeatureEmojiStatus) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureEmojiStatus) PremiumFeatureType() string
type PremiumFeatureForumTopicIcon ¶ added in v1.2.3
type PremiumFeatureForumTopicIcon struct {
// contains filtered or unexported fields
}
The ability to set a custom emoji as a forum topic icon
func UnmarshalPremiumFeatureForumTopicIcon ¶ added in v1.2.3
func UnmarshalPremiumFeatureForumTopicIcon(data json.RawMessage) (*PremiumFeatureForumTopicIcon, error)
func (*PremiumFeatureForumTopicIcon) GetClass ¶ added in v1.2.3
func (*PremiumFeatureForumTopicIcon) GetClass() string
func (*PremiumFeatureForumTopicIcon) GetType ¶ added in v1.2.3
func (*PremiumFeatureForumTopicIcon) GetType() string
func (*PremiumFeatureForumTopicIcon) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureForumTopicIcon) MarshalJSON() ([]byte, error)
func (*PremiumFeatureForumTopicIcon) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureForumTopicIcon) PremiumFeatureType() string
type PremiumFeatureImprovedDownloadSpeed ¶ added in v1.2.3
type PremiumFeatureImprovedDownloadSpeed struct {
// contains filtered or unexported fields
}
Improved download speed
func UnmarshalPremiumFeatureImprovedDownloadSpeed ¶ added in v1.2.3
func UnmarshalPremiumFeatureImprovedDownloadSpeed(data json.RawMessage) (*PremiumFeatureImprovedDownloadSpeed, error)
func (*PremiumFeatureImprovedDownloadSpeed) GetClass ¶ added in v1.2.3
func (*PremiumFeatureImprovedDownloadSpeed) GetClass() string
func (*PremiumFeatureImprovedDownloadSpeed) GetType ¶ added in v1.2.3
func (*PremiumFeatureImprovedDownloadSpeed) GetType() string
func (*PremiumFeatureImprovedDownloadSpeed) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureImprovedDownloadSpeed) MarshalJSON() ([]byte, error)
func (*PremiumFeatureImprovedDownloadSpeed) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureImprovedDownloadSpeed) PremiumFeatureType() string
type PremiumFeatureIncreasedLimits ¶ added in v1.2.3
type PremiumFeatureIncreasedLimits struct {
// contains filtered or unexported fields
}
Increased limits
func UnmarshalPremiumFeatureIncreasedLimits ¶ added in v1.2.3
func UnmarshalPremiumFeatureIncreasedLimits(data json.RawMessage) (*PremiumFeatureIncreasedLimits, error)
func (*PremiumFeatureIncreasedLimits) GetClass ¶ added in v1.2.3
func (*PremiumFeatureIncreasedLimits) GetClass() string
func (*PremiumFeatureIncreasedLimits) GetType ¶ added in v1.2.3
func (*PremiumFeatureIncreasedLimits) GetType() string
func (*PremiumFeatureIncreasedLimits) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureIncreasedLimits) MarshalJSON() ([]byte, error)
func (*PremiumFeatureIncreasedLimits) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureIncreasedLimits) PremiumFeatureType() string
type PremiumFeatureIncreasedUploadFileSize ¶ added in v1.2.3
type PremiumFeatureIncreasedUploadFileSize struct {
// contains filtered or unexported fields
}
Increased maximum upload file size
func UnmarshalPremiumFeatureIncreasedUploadFileSize ¶ added in v1.2.3
func UnmarshalPremiumFeatureIncreasedUploadFileSize(data json.RawMessage) (*PremiumFeatureIncreasedUploadFileSize, error)
func (*PremiumFeatureIncreasedUploadFileSize) GetClass ¶ added in v1.2.3
func (*PremiumFeatureIncreasedUploadFileSize) GetClass() string
func (*PremiumFeatureIncreasedUploadFileSize) GetType ¶ added in v1.2.3
func (*PremiumFeatureIncreasedUploadFileSize) GetType() string
func (*PremiumFeatureIncreasedUploadFileSize) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureIncreasedUploadFileSize) MarshalJSON() ([]byte, error)
func (*PremiumFeatureIncreasedUploadFileSize) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureIncreasedUploadFileSize) PremiumFeatureType() string
type PremiumFeatureProfileBadge ¶ added in v1.2.3
type PremiumFeatureProfileBadge struct {
// contains filtered or unexported fields
}
A badge in the user's profile
func UnmarshalPremiumFeatureProfileBadge ¶ added in v1.2.3
func UnmarshalPremiumFeatureProfileBadge(data json.RawMessage) (*PremiumFeatureProfileBadge, error)
func (*PremiumFeatureProfileBadge) GetClass ¶ added in v1.2.3
func (*PremiumFeatureProfileBadge) GetClass() string
func (*PremiumFeatureProfileBadge) GetType ¶ added in v1.2.3
func (*PremiumFeatureProfileBadge) GetType() string
func (*PremiumFeatureProfileBadge) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureProfileBadge) MarshalJSON() ([]byte, error)
func (*PremiumFeatureProfileBadge) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureProfileBadge) PremiumFeatureType() string
type PremiumFeaturePromotionAnimation ¶ added in v1.2.3
type PremiumFeaturePromotionAnimation struct { // Premium feature Feature PremiumFeature `json:"feature"` // Promotion animation for the feature Animation *Animation `json:"animation"` // contains filtered or unexported fields }
Describes a promotion animation for a Premium feature
func UnmarshalPremiumFeaturePromotionAnimation ¶ added in v1.2.3
func UnmarshalPremiumFeaturePromotionAnimation(data json.RawMessage) (*PremiumFeaturePromotionAnimation, error)
func (*PremiumFeaturePromotionAnimation) GetClass ¶ added in v1.2.3
func (*PremiumFeaturePromotionAnimation) GetClass() string
func (*PremiumFeaturePromotionAnimation) GetType ¶ added in v1.2.3
func (*PremiumFeaturePromotionAnimation) GetType() string
func (*PremiumFeaturePromotionAnimation) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeaturePromotionAnimation) MarshalJSON() ([]byte, error)
func (*PremiumFeaturePromotionAnimation) UnmarshalJSON ¶ added in v1.2.3
func (premiumFeaturePromotionAnimation *PremiumFeaturePromotionAnimation) UnmarshalJSON(data []byte) error
type PremiumFeatureRealTimeChatTranslation ¶ added in v1.2.3
type PremiumFeatureRealTimeChatTranslation struct {
// contains filtered or unexported fields
}
Allowed to translate chat messages real-time
func UnmarshalPremiumFeatureRealTimeChatTranslation ¶ added in v1.2.3
func UnmarshalPremiumFeatureRealTimeChatTranslation(data json.RawMessage) (*PremiumFeatureRealTimeChatTranslation, error)
func (*PremiumFeatureRealTimeChatTranslation) GetClass ¶ added in v1.2.3
func (*PremiumFeatureRealTimeChatTranslation) GetClass() string
func (*PremiumFeatureRealTimeChatTranslation) GetType ¶ added in v1.2.3
func (*PremiumFeatureRealTimeChatTranslation) GetType() string
func (*PremiumFeatureRealTimeChatTranslation) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureRealTimeChatTranslation) MarshalJSON() ([]byte, error)
func (*PremiumFeatureRealTimeChatTranslation) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureRealTimeChatTranslation) PremiumFeatureType() string
type PremiumFeatureUniqueReactions ¶ added in v1.2.3
type PremiumFeatureUniqueReactions struct {
// contains filtered or unexported fields
}
Allowed to use more reactions
func UnmarshalPremiumFeatureUniqueReactions ¶ added in v1.2.3
func UnmarshalPremiumFeatureUniqueReactions(data json.RawMessage) (*PremiumFeatureUniqueReactions, error)
func (*PremiumFeatureUniqueReactions) GetClass ¶ added in v1.2.3
func (*PremiumFeatureUniqueReactions) GetClass() string
func (*PremiumFeatureUniqueReactions) GetType ¶ added in v1.2.3
func (*PremiumFeatureUniqueReactions) GetType() string
func (*PremiumFeatureUniqueReactions) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureUniqueReactions) MarshalJSON() ([]byte, error)
func (*PremiumFeatureUniqueReactions) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureUniqueReactions) PremiumFeatureType() string
type PremiumFeatureUniqueStickers ¶ added in v1.2.3
type PremiumFeatureUniqueStickers struct {
// contains filtered or unexported fields
}
Allowed to use premium stickers with unique effects
func UnmarshalPremiumFeatureUniqueStickers ¶ added in v1.2.3
func UnmarshalPremiumFeatureUniqueStickers(data json.RawMessage) (*PremiumFeatureUniqueStickers, error)
func (*PremiumFeatureUniqueStickers) GetClass ¶ added in v1.2.3
func (*PremiumFeatureUniqueStickers) GetClass() string
func (*PremiumFeatureUniqueStickers) GetType ¶ added in v1.2.3
func (*PremiumFeatureUniqueStickers) GetType() string
func (*PremiumFeatureUniqueStickers) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureUniqueStickers) MarshalJSON() ([]byte, error)
func (*PremiumFeatureUniqueStickers) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureUniqueStickers) PremiumFeatureType() string
type PremiumFeatureUpgradedStories ¶ added in v1.2.3
type PremiumFeatureUpgradedStories struct {
// contains filtered or unexported fields
}
Allowed to use many additional features for stories
func UnmarshalPremiumFeatureUpgradedStories ¶ added in v1.2.3
func UnmarshalPremiumFeatureUpgradedStories(data json.RawMessage) (*PremiumFeatureUpgradedStories, error)
func (*PremiumFeatureUpgradedStories) GetClass ¶ added in v1.2.3
func (*PremiumFeatureUpgradedStories) GetClass() string
func (*PremiumFeatureUpgradedStories) GetType ¶ added in v1.2.3
func (*PremiumFeatureUpgradedStories) GetType() string
func (*PremiumFeatureUpgradedStories) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureUpgradedStories) MarshalJSON() ([]byte, error)
func (*PremiumFeatureUpgradedStories) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureUpgradedStories) PremiumFeatureType() string
type PremiumFeatureVoiceRecognition ¶ added in v1.2.3
type PremiumFeatureVoiceRecognition struct {
// contains filtered or unexported fields
}
The ability to convert voice notes to text
func UnmarshalPremiumFeatureVoiceRecognition ¶ added in v1.2.3
func UnmarshalPremiumFeatureVoiceRecognition(data json.RawMessage) (*PremiumFeatureVoiceRecognition, error)
func (*PremiumFeatureVoiceRecognition) GetClass ¶ added in v1.2.3
func (*PremiumFeatureVoiceRecognition) GetClass() string
func (*PremiumFeatureVoiceRecognition) GetType ¶ added in v1.2.3
func (*PremiumFeatureVoiceRecognition) GetType() string
func (*PremiumFeatureVoiceRecognition) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatureVoiceRecognition) MarshalJSON() ([]byte, error)
func (*PremiumFeatureVoiceRecognition) PremiumFeatureType ¶ added in v1.2.3
func (*PremiumFeatureVoiceRecognition) PremiumFeatureType() string
type PremiumFeatures ¶ added in v1.2.3
type PremiumFeatures struct { // The list of available features Features []PremiumFeature `json:"features"` // The list of limits, increased for Premium users Limits []*PremiumLimit `json:"limits"` // An internal link to be opened to pay for Telegram Premium if store payment isn't possible; may be null if direct payment isn't available PaymentLink InternalLinkType `json:"payment_link"` // contains filtered or unexported fields }
Contains information about features, available to Premium users
func UnmarshalPremiumFeatures ¶ added in v1.2.3
func UnmarshalPremiumFeatures(data json.RawMessage) (*PremiumFeatures, error)
func (*PremiumFeatures) GetClass ¶ added in v1.2.3
func (*PremiumFeatures) GetClass() string
func (*PremiumFeatures) GetType ¶ added in v1.2.3
func (*PremiumFeatures) GetType() string
func (*PremiumFeatures) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumFeatures) MarshalJSON() ([]byte, error)
func (*PremiumFeatures) UnmarshalJSON ¶ added in v1.2.3
func (premiumFeatures *PremiumFeatures) UnmarshalJSON(data []byte) error
type PremiumLimit ¶ added in v1.2.3
type PremiumLimit struct { // The type of the limit Type PremiumLimitType `json:"type"` // Default value of the limit DefaultValue int32 `json:"default_value"` // Value of the limit for Premium users PremiumValue int32 `json:"premium_value"` // contains filtered or unexported fields }
Contains information about a limit, increased for Premium users
func UnmarshalPremiumLimit ¶ added in v1.2.3
func UnmarshalPremiumLimit(data json.RawMessage) (*PremiumLimit, error)
func (*PremiumLimit) GetClass ¶ added in v1.2.3
func (*PremiumLimit) GetClass() string
func (*PremiumLimit) GetType ¶ added in v1.2.3
func (*PremiumLimit) GetType() string
func (*PremiumLimit) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimit) MarshalJSON() ([]byte, error)
func (*PremiumLimit) UnmarshalJSON ¶ added in v1.2.3
func (premiumLimit *PremiumLimit) UnmarshalJSON(data []byte) error
type PremiumLimitType ¶ added in v1.2.3
type PremiumLimitType interface {
PremiumLimitTypeType() string
}
Describes type of a limit, increased for Premium users
func UnmarshalListOfPremiumLimitType ¶ added in v1.2.3
func UnmarshalListOfPremiumLimitType(dataList []json.RawMessage) ([]PremiumLimitType, error)
func UnmarshalPremiumLimitType ¶ added in v1.2.3
func UnmarshalPremiumLimitType(data json.RawMessage) (PremiumLimitType, error)
type PremiumLimitTypeActiveStoryCount ¶ added in v1.2.3
type PremiumLimitTypeActiveStoryCount struct {
// contains filtered or unexported fields
}
The maximum number of active stories
func UnmarshalPremiumLimitTypeActiveStoryCount ¶ added in v1.2.3
func UnmarshalPremiumLimitTypeActiveStoryCount(data json.RawMessage) (*PremiumLimitTypeActiveStoryCount, error)
func (*PremiumLimitTypeActiveStoryCount) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypeActiveStoryCount) GetClass() string
func (*PremiumLimitTypeActiveStoryCount) GetType ¶ added in v1.2.3
func (*PremiumLimitTypeActiveStoryCount) GetType() string
func (*PremiumLimitTypeActiveStoryCount) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypeActiveStoryCount) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypeActiveStoryCount) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypeActiveStoryCount) PremiumLimitTypeType() string
type PremiumLimitTypeBioLength ¶ added in v1.2.3
type PremiumLimitTypeBioLength struct {
// contains filtered or unexported fields
}
The maximum length of the user's bio
func UnmarshalPremiumLimitTypeBioLength ¶ added in v1.2.3
func UnmarshalPremiumLimitTypeBioLength(data json.RawMessage) (*PremiumLimitTypeBioLength, error)
func (*PremiumLimitTypeBioLength) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypeBioLength) GetClass() string
func (*PremiumLimitTypeBioLength) GetType ¶ added in v1.2.3
func (*PremiumLimitTypeBioLength) GetType() string
func (*PremiumLimitTypeBioLength) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypeBioLength) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypeBioLength) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypeBioLength) PremiumLimitTypeType() string
type PremiumLimitTypeCaptionLength ¶ added in v1.2.3
type PremiumLimitTypeCaptionLength struct {
// contains filtered or unexported fields
}
The maximum length of sent media caption
func UnmarshalPremiumLimitTypeCaptionLength ¶ added in v1.2.3
func UnmarshalPremiumLimitTypeCaptionLength(data json.RawMessage) (*PremiumLimitTypeCaptionLength, error)
func (*PremiumLimitTypeCaptionLength) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypeCaptionLength) GetClass() string
func (*PremiumLimitTypeCaptionLength) GetType ¶ added in v1.2.3
func (*PremiumLimitTypeCaptionLength) GetType() string
func (*PremiumLimitTypeCaptionLength) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypeCaptionLength) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypeCaptionLength) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypeCaptionLength) PremiumLimitTypeType() string
type PremiumLimitTypeChatFolderChosenChatCount ¶ added in v1.2.3
type PremiumLimitTypeChatFolderChosenChatCount struct {
// contains filtered or unexported fields
}
The maximum number of pinned and always included, or always excluded chats in a chat folder
func UnmarshalPremiumLimitTypeChatFolderChosenChatCount ¶ added in v1.2.3
func UnmarshalPremiumLimitTypeChatFolderChosenChatCount(data json.RawMessage) (*PremiumLimitTypeChatFolderChosenChatCount, error)
func (*PremiumLimitTypeChatFolderChosenChatCount) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypeChatFolderChosenChatCount) GetClass() string
func (*PremiumLimitTypeChatFolderChosenChatCount) GetType ¶ added in v1.2.3
func (*PremiumLimitTypeChatFolderChosenChatCount) GetType() string
func (*PremiumLimitTypeChatFolderChosenChatCount) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypeChatFolderChosenChatCount) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypeChatFolderChosenChatCount) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypeChatFolderChosenChatCount) PremiumLimitTypeType() string
type PremiumLimitTypeChatFolderCount ¶ added in v1.2.3
type PremiumLimitTypeChatFolderCount struct {
// contains filtered or unexported fields
}
The maximum number of chat folders
func UnmarshalPremiumLimitTypeChatFolderCount ¶ added in v1.2.3
func UnmarshalPremiumLimitTypeChatFolderCount(data json.RawMessage) (*PremiumLimitTypeChatFolderCount, error)
func (*PremiumLimitTypeChatFolderCount) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypeChatFolderCount) GetClass() string
func (*PremiumLimitTypeChatFolderCount) GetType ¶ added in v1.2.3
func (*PremiumLimitTypeChatFolderCount) GetType() string
func (*PremiumLimitTypeChatFolderCount) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypeChatFolderCount) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypeChatFolderCount) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypeChatFolderCount) PremiumLimitTypeType() string
type PremiumLimitTypeChatFolderInviteLinkCount ¶ added in v1.2.3
type PremiumLimitTypeChatFolderInviteLinkCount struct {
// contains filtered or unexported fields
}
The maximum number of invite links for a chat folder
func UnmarshalPremiumLimitTypeChatFolderInviteLinkCount ¶ added in v1.2.3
func UnmarshalPremiumLimitTypeChatFolderInviteLinkCount(data json.RawMessage) (*PremiumLimitTypeChatFolderInviteLinkCount, error)
func (*PremiumLimitTypeChatFolderInviteLinkCount) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypeChatFolderInviteLinkCount) GetClass() string
func (*PremiumLimitTypeChatFolderInviteLinkCount) GetType ¶ added in v1.2.3
func (*PremiumLimitTypeChatFolderInviteLinkCount) GetType() string
func (*PremiumLimitTypeChatFolderInviteLinkCount) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypeChatFolderInviteLinkCount) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypeChatFolderInviteLinkCount) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypeChatFolderInviteLinkCount) PremiumLimitTypeType() string
type PremiumLimitTypeCreatedPublicChatCount ¶ added in v1.2.3
type PremiumLimitTypeCreatedPublicChatCount struct {
// contains filtered or unexported fields
}
The maximum number of created public chats
func UnmarshalPremiumLimitTypeCreatedPublicChatCount ¶ added in v1.2.3
func UnmarshalPremiumLimitTypeCreatedPublicChatCount(data json.RawMessage) (*PremiumLimitTypeCreatedPublicChatCount, error)
func (*PremiumLimitTypeCreatedPublicChatCount) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypeCreatedPublicChatCount) GetClass() string
func (*PremiumLimitTypeCreatedPublicChatCount) GetType ¶ added in v1.2.3
func (*PremiumLimitTypeCreatedPublicChatCount) GetType() string
func (*PremiumLimitTypeCreatedPublicChatCount) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypeCreatedPublicChatCount) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypeCreatedPublicChatCount) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypeCreatedPublicChatCount) PremiumLimitTypeType() string
type PremiumLimitTypeFavoriteStickerCount ¶ added in v1.2.3
type PremiumLimitTypeFavoriteStickerCount struct {
// contains filtered or unexported fields
}
The maximum number of favorite stickers
func UnmarshalPremiumLimitTypeFavoriteStickerCount ¶ added in v1.2.3
func UnmarshalPremiumLimitTypeFavoriteStickerCount(data json.RawMessage) (*PremiumLimitTypeFavoriteStickerCount, error)
func (*PremiumLimitTypeFavoriteStickerCount) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypeFavoriteStickerCount) GetClass() string
func (*PremiumLimitTypeFavoriteStickerCount) GetType ¶ added in v1.2.3
func (*PremiumLimitTypeFavoriteStickerCount) GetType() string
func (*PremiumLimitTypeFavoriteStickerCount) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypeFavoriteStickerCount) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypeFavoriteStickerCount) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypeFavoriteStickerCount) PremiumLimitTypeType() string
type PremiumLimitTypeMonthlySentStoryCount ¶ added in v1.2.3
type PremiumLimitTypeMonthlySentStoryCount struct {
// contains filtered or unexported fields
}
The maximum number of stories sent per month
func UnmarshalPremiumLimitTypeMonthlySentStoryCount ¶ added in v1.2.3
func UnmarshalPremiumLimitTypeMonthlySentStoryCount(data json.RawMessage) (*PremiumLimitTypeMonthlySentStoryCount, error)
func (*PremiumLimitTypeMonthlySentStoryCount) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypeMonthlySentStoryCount) GetClass() string
func (*PremiumLimitTypeMonthlySentStoryCount) GetType ¶ added in v1.2.3
func (*PremiumLimitTypeMonthlySentStoryCount) GetType() string
func (*PremiumLimitTypeMonthlySentStoryCount) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypeMonthlySentStoryCount) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypeMonthlySentStoryCount) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypeMonthlySentStoryCount) PremiumLimitTypeType() string
type PremiumLimitTypePinnedArchivedChatCount ¶ added in v1.2.3
type PremiumLimitTypePinnedArchivedChatCount struct {
// contains filtered or unexported fields
}
The maximum number of pinned chats in the archive chat list
func UnmarshalPremiumLimitTypePinnedArchivedChatCount ¶ added in v1.2.3
func UnmarshalPremiumLimitTypePinnedArchivedChatCount(data json.RawMessage) (*PremiumLimitTypePinnedArchivedChatCount, error)
func (*PremiumLimitTypePinnedArchivedChatCount) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypePinnedArchivedChatCount) GetClass() string
func (*PremiumLimitTypePinnedArchivedChatCount) GetType ¶ added in v1.2.3
func (*PremiumLimitTypePinnedArchivedChatCount) GetType() string
func (*PremiumLimitTypePinnedArchivedChatCount) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypePinnedArchivedChatCount) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypePinnedArchivedChatCount) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypePinnedArchivedChatCount) PremiumLimitTypeType() string
type PremiumLimitTypePinnedChatCount ¶ added in v1.2.3
type PremiumLimitTypePinnedChatCount struct {
// contains filtered or unexported fields
}
The maximum number of pinned chats in the main chat list
func UnmarshalPremiumLimitTypePinnedChatCount ¶ added in v1.2.3
func UnmarshalPremiumLimitTypePinnedChatCount(data json.RawMessage) (*PremiumLimitTypePinnedChatCount, error)
func (*PremiumLimitTypePinnedChatCount) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypePinnedChatCount) GetClass() string
func (*PremiumLimitTypePinnedChatCount) GetType ¶ added in v1.2.3
func (*PremiumLimitTypePinnedChatCount) GetType() string
func (*PremiumLimitTypePinnedChatCount) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypePinnedChatCount) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypePinnedChatCount) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypePinnedChatCount) PremiumLimitTypeType() string
type PremiumLimitTypeSavedAnimationCount ¶ added in v1.2.3
type PremiumLimitTypeSavedAnimationCount struct {
// contains filtered or unexported fields
}
The maximum number of saved animations
func UnmarshalPremiumLimitTypeSavedAnimationCount ¶ added in v1.2.3
func UnmarshalPremiumLimitTypeSavedAnimationCount(data json.RawMessage) (*PremiumLimitTypeSavedAnimationCount, error)
func (*PremiumLimitTypeSavedAnimationCount) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypeSavedAnimationCount) GetClass() string
func (*PremiumLimitTypeSavedAnimationCount) GetType ¶ added in v1.2.3
func (*PremiumLimitTypeSavedAnimationCount) GetType() string
func (*PremiumLimitTypeSavedAnimationCount) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypeSavedAnimationCount) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypeSavedAnimationCount) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypeSavedAnimationCount) PremiumLimitTypeType() string
type PremiumLimitTypeShareableChatFolderCount ¶ added in v1.2.3
type PremiumLimitTypeShareableChatFolderCount struct {
// contains filtered or unexported fields
}
The maximum number of added shareable chat folders
func UnmarshalPremiumLimitTypeShareableChatFolderCount ¶ added in v1.2.3
func UnmarshalPremiumLimitTypeShareableChatFolderCount(data json.RawMessage) (*PremiumLimitTypeShareableChatFolderCount, error)
func (*PremiumLimitTypeShareableChatFolderCount) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypeShareableChatFolderCount) GetClass() string
func (*PremiumLimitTypeShareableChatFolderCount) GetType ¶ added in v1.2.3
func (*PremiumLimitTypeShareableChatFolderCount) GetType() string
func (*PremiumLimitTypeShareableChatFolderCount) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypeShareableChatFolderCount) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypeShareableChatFolderCount) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypeShareableChatFolderCount) PremiumLimitTypeType() string
type PremiumLimitTypeStoryCaptionLength ¶ added in v1.2.3
type PremiumLimitTypeStoryCaptionLength struct {
// contains filtered or unexported fields
}
The maximum length of captions of sent stories
func UnmarshalPremiumLimitTypeStoryCaptionLength ¶ added in v1.2.3
func UnmarshalPremiumLimitTypeStoryCaptionLength(data json.RawMessage) (*PremiumLimitTypeStoryCaptionLength, error)
func (*PremiumLimitTypeStoryCaptionLength) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypeStoryCaptionLength) GetClass() string
func (*PremiumLimitTypeStoryCaptionLength) GetType ¶ added in v1.2.3
func (*PremiumLimitTypeStoryCaptionLength) GetType() string
func (*PremiumLimitTypeStoryCaptionLength) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypeStoryCaptionLength) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypeStoryCaptionLength) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypeStoryCaptionLength) PremiumLimitTypeType() string
type PremiumLimitTypeSupergroupCount ¶ added in v1.2.3
type PremiumLimitTypeSupergroupCount struct {
// contains filtered or unexported fields
}
The maximum number of joined supergroups and channels
func UnmarshalPremiumLimitTypeSupergroupCount ¶ added in v1.2.3
func UnmarshalPremiumLimitTypeSupergroupCount(data json.RawMessage) (*PremiumLimitTypeSupergroupCount, error)
func (*PremiumLimitTypeSupergroupCount) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypeSupergroupCount) GetClass() string
func (*PremiumLimitTypeSupergroupCount) GetType ¶ added in v1.2.3
func (*PremiumLimitTypeSupergroupCount) GetType() string
func (*PremiumLimitTypeSupergroupCount) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypeSupergroupCount) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypeSupergroupCount) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypeSupergroupCount) PremiumLimitTypeType() string
type PremiumLimitTypeWeeklySentStoryCount ¶ added in v1.2.3
type PremiumLimitTypeWeeklySentStoryCount struct {
// contains filtered or unexported fields
}
The maximum number of stories sent per week
func UnmarshalPremiumLimitTypeWeeklySentStoryCount ¶ added in v1.2.3
func UnmarshalPremiumLimitTypeWeeklySentStoryCount(data json.RawMessage) (*PremiumLimitTypeWeeklySentStoryCount, error)
func (*PremiumLimitTypeWeeklySentStoryCount) GetClass ¶ added in v1.2.3
func (*PremiumLimitTypeWeeklySentStoryCount) GetClass() string
func (*PremiumLimitTypeWeeklySentStoryCount) GetType ¶ added in v1.2.3
func (*PremiumLimitTypeWeeklySentStoryCount) GetType() string
func (*PremiumLimitTypeWeeklySentStoryCount) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumLimitTypeWeeklySentStoryCount) MarshalJSON() ([]byte, error)
func (*PremiumLimitTypeWeeklySentStoryCount) PremiumLimitTypeType ¶ added in v1.2.3
func (*PremiumLimitTypeWeeklySentStoryCount) PremiumLimitTypeType() string
type PremiumPaymentOption ¶ added in v1.2.3
type PremiumPaymentOption struct { // ISO 4217 currency code for Telegram Premium subscription payment Currency string `json:"currency"` // The amount to pay, in the smallest units of the currency Amount int64 `json:"amount"` // The discount associated with this option, as a percentage DiscountPercentage int32 `json:"discount_percentage"` // Number of month the Telegram Premium subscription will be active MonthCount int32 `json:"month_count"` // Identifier of the store product associated with the option StoreProductId string `json:"store_product_id"` // An internal link to be opened for buying Telegram Premium to the user if store payment isn't possible; may be null if direct payment isn't available PaymentLink InternalLinkType `json:"payment_link"` // contains filtered or unexported fields }
Describes an option for buying Telegram Premium to a user
func UnmarshalPremiumPaymentOption ¶ added in v1.2.3
func UnmarshalPremiumPaymentOption(data json.RawMessage) (*PremiumPaymentOption, error)
func (*PremiumPaymentOption) GetClass ¶ added in v1.2.3
func (*PremiumPaymentOption) GetClass() string
func (*PremiumPaymentOption) GetType ¶ added in v1.2.3
func (*PremiumPaymentOption) GetType() string
func (*PremiumPaymentOption) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumPaymentOption) MarshalJSON() ([]byte, error)
func (*PremiumPaymentOption) UnmarshalJSON ¶ added in v1.2.3
func (premiumPaymentOption *PremiumPaymentOption) UnmarshalJSON(data []byte) error
type PremiumSource ¶ added in v1.2.3
type PremiumSource interface {
PremiumSourceType() string
}
Describes a source from which the Premium features screen is opened
func UnmarshalListOfPremiumSource ¶ added in v1.2.3
func UnmarshalListOfPremiumSource(dataList []json.RawMessage) ([]PremiumSource, error)
func UnmarshalPremiumSource ¶ added in v1.2.3
func UnmarshalPremiumSource(data json.RawMessage) (PremiumSource, error)
type PremiumSourceFeature ¶ added in v1.2.3
type PremiumSourceFeature struct { // The used feature Feature PremiumFeature `json:"feature"` // contains filtered or unexported fields }
A user tried to use a Premium feature
func UnmarshalPremiumSourceFeature ¶ added in v1.2.3
func UnmarshalPremiumSourceFeature(data json.RawMessage) (*PremiumSourceFeature, error)
func (*PremiumSourceFeature) GetClass ¶ added in v1.2.3
func (*PremiumSourceFeature) GetClass() string
func (*PremiumSourceFeature) GetType ¶ added in v1.2.3
func (*PremiumSourceFeature) GetType() string
func (*PremiumSourceFeature) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumSourceFeature) MarshalJSON() ([]byte, error)
func (*PremiumSourceFeature) PremiumSourceType ¶ added in v1.2.3
func (*PremiumSourceFeature) PremiumSourceType() string
func (*PremiumSourceFeature) UnmarshalJSON ¶ added in v1.2.3
func (premiumSourceFeature *PremiumSourceFeature) UnmarshalJSON(data []byte) error
type PremiumSourceLimitExceeded ¶ added in v1.2.3
type PremiumSourceLimitExceeded struct { // Type of the exceeded limit LimitType PremiumLimitType `json:"limit_type"` // contains filtered or unexported fields }
A limit was exceeded
func UnmarshalPremiumSourceLimitExceeded ¶ added in v1.2.3
func UnmarshalPremiumSourceLimitExceeded(data json.RawMessage) (*PremiumSourceLimitExceeded, error)
func (*PremiumSourceLimitExceeded) GetClass ¶ added in v1.2.3
func (*PremiumSourceLimitExceeded) GetClass() string
func (*PremiumSourceLimitExceeded) GetType ¶ added in v1.2.3
func (*PremiumSourceLimitExceeded) GetType() string
func (*PremiumSourceLimitExceeded) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumSourceLimitExceeded) MarshalJSON() ([]byte, error)
func (*PremiumSourceLimitExceeded) PremiumSourceType ¶ added in v1.2.3
func (*PremiumSourceLimitExceeded) PremiumSourceType() string
func (*PremiumSourceLimitExceeded) UnmarshalJSON ¶ added in v1.2.3
func (premiumSourceLimitExceeded *PremiumSourceLimitExceeded) UnmarshalJSON(data []byte) error
type PremiumSourceLink ¶ added in v1.2.3
type PremiumSourceLink struct { // The referrer from the link Referrer string `json:"referrer"` // contains filtered or unexported fields }
A user opened an internal link of the type internalLinkTypePremiumFeatures
func UnmarshalPremiumSourceLink ¶ added in v1.2.3
func UnmarshalPremiumSourceLink(data json.RawMessage) (*PremiumSourceLink, error)
func (*PremiumSourceLink) GetClass ¶ added in v1.2.3
func (*PremiumSourceLink) GetClass() string
func (*PremiumSourceLink) GetType ¶ added in v1.2.3
func (*PremiumSourceLink) GetType() string
func (*PremiumSourceLink) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumSourceLink) MarshalJSON() ([]byte, error)
func (*PremiumSourceLink) PremiumSourceType ¶ added in v1.2.3
func (*PremiumSourceLink) PremiumSourceType() string
type PremiumSourceSettings ¶ added in v1.2.3
type PremiumSourceSettings struct {
// contains filtered or unexported fields
}
A user opened the Premium features screen from settings
func UnmarshalPremiumSourceSettings ¶ added in v1.2.3
func UnmarshalPremiumSourceSettings(data json.RawMessage) (*PremiumSourceSettings, error)
func (*PremiumSourceSettings) GetClass ¶ added in v1.2.3
func (*PremiumSourceSettings) GetClass() string
func (*PremiumSourceSettings) GetType ¶ added in v1.2.3
func (*PremiumSourceSettings) GetType() string
func (*PremiumSourceSettings) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumSourceSettings) MarshalJSON() ([]byte, error)
func (*PremiumSourceSettings) PremiumSourceType ¶ added in v1.2.3
func (*PremiumSourceSettings) PremiumSourceType() string
type PremiumSourceStoryFeature ¶ added in v1.2.3
type PremiumSourceStoryFeature struct { // The used feature Feature PremiumStoryFeature `json:"feature"` // contains filtered or unexported fields }
A user tried to use a Premium story feature
func UnmarshalPremiumSourceStoryFeature ¶ added in v1.2.3
func UnmarshalPremiumSourceStoryFeature(data json.RawMessage) (*PremiumSourceStoryFeature, error)
func (*PremiumSourceStoryFeature) GetClass ¶ added in v1.2.3
func (*PremiumSourceStoryFeature) GetClass() string
func (*PremiumSourceStoryFeature) GetType ¶ added in v1.2.3
func (*PremiumSourceStoryFeature) GetType() string
func (*PremiumSourceStoryFeature) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumSourceStoryFeature) MarshalJSON() ([]byte, error)
func (*PremiumSourceStoryFeature) PremiumSourceType ¶ added in v1.2.3
func (*PremiumSourceStoryFeature) PremiumSourceType() string
func (*PremiumSourceStoryFeature) UnmarshalJSON ¶ added in v1.2.3
func (premiumSourceStoryFeature *PremiumSourceStoryFeature) UnmarshalJSON(data []byte) error
type PremiumState ¶ added in v1.2.3
type PremiumState struct { // Text description of the state of the current Premium subscription; may be empty if the current user has no Telegram Premium subscription State *FormattedText `json:"state"` // The list of available options for buying Telegram Premium PaymentOptions []*PremiumStatePaymentOption `json:"payment_options"` // The list of available promotion animations for Premium features Animations []*PremiumFeaturePromotionAnimation `json:"animations"` // contains filtered or unexported fields }
Contains state of Telegram Premium subscription and promotion videos for Premium features
func UnmarshalPremiumState ¶ added in v1.2.3
func UnmarshalPremiumState(data json.RawMessage) (*PremiumState, error)
func (*PremiumState) GetClass ¶ added in v1.2.3
func (*PremiumState) GetClass() string
func (*PremiumState) GetType ¶ added in v1.2.3
func (*PremiumState) GetType() string
func (*PremiumState) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumState) MarshalJSON() ([]byte, error)
type PremiumStatePaymentOption ¶ added in v1.2.3
type PremiumStatePaymentOption struct { // Information about the payment option PaymentOption *PremiumPaymentOption `json:"payment_option"` // True, if this is the currently used Telegram Premium subscription option IsCurrent bool `json:"is_current"` // True, if the payment option can be used to upgrade the existing Telegram Premium subscription IsUpgrade bool `json:"is_upgrade"` // Identifier of the last in-store transaction for the currently used option LastTransactionId string `json:"last_transaction_id"` // contains filtered or unexported fields }
Describes an option for buying or upgrading Telegram Premium for self
func UnmarshalPremiumStatePaymentOption ¶ added in v1.2.3
func UnmarshalPremiumStatePaymentOption(data json.RawMessage) (*PremiumStatePaymentOption, error)
func (*PremiumStatePaymentOption) GetClass ¶ added in v1.2.3
func (*PremiumStatePaymentOption) GetClass() string
func (*PremiumStatePaymentOption) GetType ¶ added in v1.2.3
func (*PremiumStatePaymentOption) GetType() string
func (*PremiumStatePaymentOption) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumStatePaymentOption) MarshalJSON() ([]byte, error)
type PremiumStoryFeature ¶ added in v1.2.3
type PremiumStoryFeature interface {
PremiumStoryFeatureType() string
}
Describes a story feature available to Premium users
func UnmarshalListOfPremiumStoryFeature ¶ added in v1.2.3
func UnmarshalListOfPremiumStoryFeature(dataList []json.RawMessage) ([]PremiumStoryFeature, error)
func UnmarshalPremiumStoryFeature ¶ added in v1.2.3
func UnmarshalPremiumStoryFeature(data json.RawMessage) (PremiumStoryFeature, error)
type PremiumStoryFeatureCustomExpirationDuration ¶ added in v1.2.3
type PremiumStoryFeatureCustomExpirationDuration struct {
// contains filtered or unexported fields
}
The ability to set custom expiration duration for stories
func UnmarshalPremiumStoryFeatureCustomExpirationDuration ¶ added in v1.2.3
func UnmarshalPremiumStoryFeatureCustomExpirationDuration(data json.RawMessage) (*PremiumStoryFeatureCustomExpirationDuration, error)
func (*PremiumStoryFeatureCustomExpirationDuration) GetClass ¶ added in v1.2.3
func (*PremiumStoryFeatureCustomExpirationDuration) GetClass() string
func (*PremiumStoryFeatureCustomExpirationDuration) GetType ¶ added in v1.2.3
func (*PremiumStoryFeatureCustomExpirationDuration) GetType() string
func (*PremiumStoryFeatureCustomExpirationDuration) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumStoryFeatureCustomExpirationDuration) MarshalJSON() ([]byte, error)
func (*PremiumStoryFeatureCustomExpirationDuration) PremiumStoryFeatureType ¶ added in v1.2.3
func (*PremiumStoryFeatureCustomExpirationDuration) PremiumStoryFeatureType() string
type PremiumStoryFeatureLinksAndFormatting ¶ added in v1.2.3
type PremiumStoryFeatureLinksAndFormatting struct {
// contains filtered or unexported fields
}
The ability to use links and formatting in story caption
func UnmarshalPremiumStoryFeatureLinksAndFormatting ¶ added in v1.2.3
func UnmarshalPremiumStoryFeatureLinksAndFormatting(data json.RawMessage) (*PremiumStoryFeatureLinksAndFormatting, error)
func (*PremiumStoryFeatureLinksAndFormatting) GetClass ¶ added in v1.2.3
func (*PremiumStoryFeatureLinksAndFormatting) GetClass() string
func (*PremiumStoryFeatureLinksAndFormatting) GetType ¶ added in v1.2.3
func (*PremiumStoryFeatureLinksAndFormatting) GetType() string
func (*PremiumStoryFeatureLinksAndFormatting) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumStoryFeatureLinksAndFormatting) MarshalJSON() ([]byte, error)
func (*PremiumStoryFeatureLinksAndFormatting) PremiumStoryFeatureType ¶ added in v1.2.3
func (*PremiumStoryFeatureLinksAndFormatting) PremiumStoryFeatureType() string
type PremiumStoryFeaturePermanentViewsHistory ¶ added in v1.2.3
type PremiumStoryFeaturePermanentViewsHistory struct {
// contains filtered or unexported fields
}
The ability to check who opened the current user's stories after they expire
func UnmarshalPremiumStoryFeaturePermanentViewsHistory ¶ added in v1.2.3
func UnmarshalPremiumStoryFeaturePermanentViewsHistory(data json.RawMessage) (*PremiumStoryFeaturePermanentViewsHistory, error)
func (*PremiumStoryFeaturePermanentViewsHistory) GetClass ¶ added in v1.2.3
func (*PremiumStoryFeaturePermanentViewsHistory) GetClass() string
func (*PremiumStoryFeaturePermanentViewsHistory) GetType ¶ added in v1.2.3
func (*PremiumStoryFeaturePermanentViewsHistory) GetType() string
func (*PremiumStoryFeaturePermanentViewsHistory) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumStoryFeaturePermanentViewsHistory) MarshalJSON() ([]byte, error)
func (*PremiumStoryFeaturePermanentViewsHistory) PremiumStoryFeatureType ¶ added in v1.2.3
func (*PremiumStoryFeaturePermanentViewsHistory) PremiumStoryFeatureType() string
type PremiumStoryFeaturePriorityOrder ¶ added in v1.2.3
type PremiumStoryFeaturePriorityOrder struct {
// contains filtered or unexported fields
}
User stories are displayed before stories of non-premium contacts
func UnmarshalPremiumStoryFeaturePriorityOrder ¶ added in v1.2.3
func UnmarshalPremiumStoryFeaturePriorityOrder(data json.RawMessage) (*PremiumStoryFeaturePriorityOrder, error)
func (*PremiumStoryFeaturePriorityOrder) GetClass ¶ added in v1.2.3
func (*PremiumStoryFeaturePriorityOrder) GetClass() string
func (*PremiumStoryFeaturePriorityOrder) GetType ¶ added in v1.2.3
func (*PremiumStoryFeaturePriorityOrder) GetType() string
func (*PremiumStoryFeaturePriorityOrder) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumStoryFeaturePriorityOrder) MarshalJSON() ([]byte, error)
func (*PremiumStoryFeaturePriorityOrder) PremiumStoryFeatureType ¶ added in v1.2.3
func (*PremiumStoryFeaturePriorityOrder) PremiumStoryFeatureType() string
type PremiumStoryFeatureSaveStories ¶ added in v1.2.3
type PremiumStoryFeatureSaveStories struct {
// contains filtered or unexported fields
}
The ability to save other's unprotected stories
func UnmarshalPremiumStoryFeatureSaveStories ¶ added in v1.2.3
func UnmarshalPremiumStoryFeatureSaveStories(data json.RawMessage) (*PremiumStoryFeatureSaveStories, error)
func (*PremiumStoryFeatureSaveStories) GetClass ¶ added in v1.2.3
func (*PremiumStoryFeatureSaveStories) GetClass() string
func (*PremiumStoryFeatureSaveStories) GetType ¶ added in v1.2.3
func (*PremiumStoryFeatureSaveStories) GetType() string
func (*PremiumStoryFeatureSaveStories) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumStoryFeatureSaveStories) MarshalJSON() ([]byte, error)
func (*PremiumStoryFeatureSaveStories) PremiumStoryFeatureType ¶ added in v1.2.3
func (*PremiumStoryFeatureSaveStories) PremiumStoryFeatureType() string
type PremiumStoryFeatureStealthMode ¶ added in v1.2.3
type PremiumStoryFeatureStealthMode struct {
// contains filtered or unexported fields
}
The ability to hide the fact that the user viewed other's stories
func UnmarshalPremiumStoryFeatureStealthMode ¶ added in v1.2.3
func UnmarshalPremiumStoryFeatureStealthMode(data json.RawMessage) (*PremiumStoryFeatureStealthMode, error)
func (*PremiumStoryFeatureStealthMode) GetClass ¶ added in v1.2.3
func (*PremiumStoryFeatureStealthMode) GetClass() string
func (*PremiumStoryFeatureStealthMode) GetType ¶ added in v1.2.3
func (*PremiumStoryFeatureStealthMode) GetType() string
func (*PremiumStoryFeatureStealthMode) MarshalJSON ¶ added in v1.2.3
func (entity *PremiumStoryFeatureStealthMode) MarshalJSON() ([]byte, error)
func (*PremiumStoryFeatureStealthMode) PremiumStoryFeatureType ¶ added in v1.2.3
func (*PremiumStoryFeatureStealthMode) PremiumStoryFeatureType() string
type ProcessChatFolderNewChatsRequest ¶ added in v1.2.3
type ProcessChatJoinRequestsRequest ¶
type ProcessChatJoinRequestsRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Invite link for which to process join requests. If empty, all join requests will be processed. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links InviteLink string `json:"invite_link"` // Pass true to approve all requests; pass false to decline them Approve bool `json:"approve"` }
type ProcessPushNotificationRequest ¶
type ProcessPushNotificationRequest struct { // JSON-encoded push notification payload with all fields sent by the server, and "google.sent_time" and "google.notification.sound" fields added Payload string `json:"payload"` }
type ProfilePhoto ¶
type ProfilePhoto struct { // Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos Id JsonInt64 `json:"id"` // A small (160x160) user profile photo. The file can be downloaded only before the photo is changed Small *File `json:"small"` // A big (640x640) user profile photo. The file can be downloaded only before the photo is changed Big *File `json:"big"` // User profile photo minithumbnail; may be null Minithumbnail *Minithumbnail `json:"minithumbnail"` // True, if the photo has animated variant HasAnimation bool `json:"has_animation"` // True, if the photo is visible only for the current user IsPersonal bool `json:"is_personal"` // contains filtered or unexported fields }
Describes a user profile photo
func UnmarshalProfilePhoto ¶
func UnmarshalProfilePhoto(data json.RawMessage) (*ProfilePhoto, error)
func (*ProfilePhoto) GetClass ¶
func (*ProfilePhoto) GetClass() string
func (*ProfilePhoto) GetType ¶
func (*ProfilePhoto) GetType() string
func (*ProfilePhoto) MarshalJSON ¶
func (entity *ProfilePhoto) MarshalJSON() ([]byte, error)
type Proxies ¶
type Proxies struct { // List of proxy servers Proxies []*Proxy `json:"proxies"` // contains filtered or unexported fields }
Represents a list of proxy servers
func UnmarshalProxies ¶
func UnmarshalProxies(data json.RawMessage) (*Proxies, error)
func (*Proxies) MarshalJSON ¶
type Proxy ¶
type Proxy struct { // Unique identifier of the proxy Id int32 `json:"id"` // Proxy server domain or IP address Server string `json:"server"` // Proxy server port Port int32 `json:"port"` // Point in time (Unix timestamp) when the proxy was last used; 0 if never LastUsedDate int32 `json:"last_used_date"` // True, if the proxy is enabled now IsEnabled bool `json:"is_enabled"` // Type of the proxy Type ProxyType `json:"type"` // contains filtered or unexported fields }
Contains information about a proxy server
func UnmarshalProxy ¶
func UnmarshalProxy(data json.RawMessage) (*Proxy, error)
func (*Proxy) MarshalJSON ¶
func (*Proxy) UnmarshalJSON ¶
type ProxyType ¶
type ProxyType interface {
ProxyTypeType() string
}
Describes the type of a proxy server
func UnmarshalListOfProxyType ¶
func UnmarshalListOfProxyType(dataList []json.RawMessage) ([]ProxyType, error)
func UnmarshalProxyType ¶
func UnmarshalProxyType(data json.RawMessage) (ProxyType, error)
type ProxyTypeHttp ¶
type ProxyTypeHttp struct { // Username for logging in; may be empty Username string `json:"username"` // Password for logging in; may be empty Password string `json:"password"` // Pass true if the proxy supports only HTTP requests and doesn't support transparent TCP connections via HTTP CONNECT method HttpOnly bool `json:"http_only"` // contains filtered or unexported fields }
A HTTP transparent proxy server
func UnmarshalProxyTypeHttp ¶
func UnmarshalProxyTypeHttp(data json.RawMessage) (*ProxyTypeHttp, error)
func (*ProxyTypeHttp) GetClass ¶
func (*ProxyTypeHttp) GetClass() string
func (*ProxyTypeHttp) GetType ¶
func (*ProxyTypeHttp) GetType() string
func (*ProxyTypeHttp) MarshalJSON ¶
func (entity *ProxyTypeHttp) MarshalJSON() ([]byte, error)
func (*ProxyTypeHttp) ProxyTypeType ¶
func (*ProxyTypeHttp) ProxyTypeType() string
type ProxyTypeMtproto ¶
type ProxyTypeMtproto struct { // The proxy's secret in hexadecimal encoding Secret string `json:"secret"` // contains filtered or unexported fields }
An MTProto proxy server
func UnmarshalProxyTypeMtproto ¶
func UnmarshalProxyTypeMtproto(data json.RawMessage) (*ProxyTypeMtproto, error)
func (*ProxyTypeMtproto) GetClass ¶
func (*ProxyTypeMtproto) GetClass() string
func (*ProxyTypeMtproto) GetType ¶
func (*ProxyTypeMtproto) GetType() string
func (*ProxyTypeMtproto) MarshalJSON ¶
func (entity *ProxyTypeMtproto) MarshalJSON() ([]byte, error)
func (*ProxyTypeMtproto) ProxyTypeType ¶
func (*ProxyTypeMtproto) ProxyTypeType() string
type ProxyTypeSocks5 ¶
type ProxyTypeSocks5 struct { // Username for logging in; may be empty Username string `json:"username"` // Password for logging in; may be empty Password string `json:"password"` // contains filtered or unexported fields }
A SOCKS5 proxy server
func UnmarshalProxyTypeSocks5 ¶
func UnmarshalProxyTypeSocks5(data json.RawMessage) (*ProxyTypeSocks5, error)
func (*ProxyTypeSocks5) GetClass ¶
func (*ProxyTypeSocks5) GetClass() string
func (*ProxyTypeSocks5) GetType ¶
func (*ProxyTypeSocks5) GetType() string
func (*ProxyTypeSocks5) MarshalJSON ¶
func (entity *ProxyTypeSocks5) MarshalJSON() ([]byte, error)
func (*ProxyTypeSocks5) ProxyTypeType ¶
func (*ProxyTypeSocks5) ProxyTypeType() string
type PublicChatType ¶
type PublicChatType interface {
PublicChatTypeType() string
}
Describes a type of public chats
func UnmarshalListOfPublicChatType ¶
func UnmarshalListOfPublicChatType(dataList []json.RawMessage) ([]PublicChatType, error)
func UnmarshalPublicChatType ¶
func UnmarshalPublicChatType(data json.RawMessage) (PublicChatType, error)
type PublicChatTypeHasUsername ¶
type PublicChatTypeHasUsername struct {
// contains filtered or unexported fields
}
The chat is public, because it has an active username
func UnmarshalPublicChatTypeHasUsername ¶
func UnmarshalPublicChatTypeHasUsername(data json.RawMessage) (*PublicChatTypeHasUsername, error)
func (*PublicChatTypeHasUsername) GetClass ¶
func (*PublicChatTypeHasUsername) GetClass() string
func (*PublicChatTypeHasUsername) GetType ¶
func (*PublicChatTypeHasUsername) GetType() string
func (*PublicChatTypeHasUsername) MarshalJSON ¶
func (entity *PublicChatTypeHasUsername) MarshalJSON() ([]byte, error)
func (*PublicChatTypeHasUsername) PublicChatTypeType ¶
func (*PublicChatTypeHasUsername) PublicChatTypeType() string
type PublicChatTypeIsLocationBased ¶
type PublicChatTypeIsLocationBased struct {
// contains filtered or unexported fields
}
The chat is public, because it is a location-based supergroup
func UnmarshalPublicChatTypeIsLocationBased ¶
func UnmarshalPublicChatTypeIsLocationBased(data json.RawMessage) (*PublicChatTypeIsLocationBased, error)
func (*PublicChatTypeIsLocationBased) GetClass ¶
func (*PublicChatTypeIsLocationBased) GetClass() string
func (*PublicChatTypeIsLocationBased) GetType ¶
func (*PublicChatTypeIsLocationBased) GetType() string
func (*PublicChatTypeIsLocationBased) MarshalJSON ¶
func (entity *PublicChatTypeIsLocationBased) MarshalJSON() ([]byte, error)
func (*PublicChatTypeIsLocationBased) PublicChatTypeType ¶
func (*PublicChatTypeIsLocationBased) PublicChatTypeType() string
type PushMessageContent ¶
type PushMessageContent interface {
PushMessageContentType() string
}
Contains content of a push message notification
func UnmarshalListOfPushMessageContent ¶
func UnmarshalListOfPushMessageContent(dataList []json.RawMessage) ([]PushMessageContent, error)
func UnmarshalPushMessageContent ¶
func UnmarshalPushMessageContent(data json.RawMessage) (PushMessageContent, error)
type PushMessageContentAnimation ¶
type PushMessageContentAnimation struct { // Message content; may be null Animation *Animation `json:"animation"` // Animation caption Caption string `json:"caption"` // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
An animation message (GIF-style).
func UnmarshalPushMessageContentAnimation ¶
func UnmarshalPushMessageContentAnimation(data json.RawMessage) (*PushMessageContentAnimation, error)
func (*PushMessageContentAnimation) GetClass ¶
func (*PushMessageContentAnimation) GetClass() string
func (*PushMessageContentAnimation) GetType ¶
func (*PushMessageContentAnimation) GetType() string
func (*PushMessageContentAnimation) MarshalJSON ¶
func (entity *PushMessageContentAnimation) MarshalJSON() ([]byte, error)
func (*PushMessageContentAnimation) PushMessageContentType ¶
func (*PushMessageContentAnimation) PushMessageContentType() string
type PushMessageContentAudio ¶
type PushMessageContentAudio struct { // Message content; may be null Audio *Audio `json:"audio"` // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
An audio message
func UnmarshalPushMessageContentAudio ¶
func UnmarshalPushMessageContentAudio(data json.RawMessage) (*PushMessageContentAudio, error)
func (*PushMessageContentAudio) GetClass ¶
func (*PushMessageContentAudio) GetClass() string
func (*PushMessageContentAudio) GetType ¶
func (*PushMessageContentAudio) GetType() string
func (*PushMessageContentAudio) MarshalJSON ¶
func (entity *PushMessageContentAudio) MarshalJSON() ([]byte, error)
func (*PushMessageContentAudio) PushMessageContentType ¶
func (*PushMessageContentAudio) PushMessageContentType() string
type PushMessageContentBasicGroupChatCreate ¶
type PushMessageContentBasicGroupChatCreate struct {
// contains filtered or unexported fields
}
A newly created basic group
func UnmarshalPushMessageContentBasicGroupChatCreate ¶
func UnmarshalPushMessageContentBasicGroupChatCreate(data json.RawMessage) (*PushMessageContentBasicGroupChatCreate, error)
func (*PushMessageContentBasicGroupChatCreate) GetClass ¶
func (*PushMessageContentBasicGroupChatCreate) GetClass() string
func (*PushMessageContentBasicGroupChatCreate) GetType ¶
func (*PushMessageContentBasicGroupChatCreate) GetType() string
func (*PushMessageContentBasicGroupChatCreate) MarshalJSON ¶
func (entity *PushMessageContentBasicGroupChatCreate) MarshalJSON() ([]byte, error)
func (*PushMessageContentBasicGroupChatCreate) PushMessageContentType ¶
func (*PushMessageContentBasicGroupChatCreate) PushMessageContentType() string
type PushMessageContentChatAddMembers ¶
type PushMessageContentChatAddMembers struct { // Name of the added member MemberName string `json:"member_name"` // True, if the current user was added to the group IsCurrentUser bool `json:"is_current_user"` // True, if the user has returned to the group themselves IsReturned bool `json:"is_returned"` // contains filtered or unexported fields }
New chat members were invited to a group
func UnmarshalPushMessageContentChatAddMembers ¶
func UnmarshalPushMessageContentChatAddMembers(data json.RawMessage) (*PushMessageContentChatAddMembers, error)
func (*PushMessageContentChatAddMembers) GetClass ¶
func (*PushMessageContentChatAddMembers) GetClass() string
func (*PushMessageContentChatAddMembers) GetType ¶
func (*PushMessageContentChatAddMembers) GetType() string
func (*PushMessageContentChatAddMembers) MarshalJSON ¶
func (entity *PushMessageContentChatAddMembers) MarshalJSON() ([]byte, error)
func (*PushMessageContentChatAddMembers) PushMessageContentType ¶
func (*PushMessageContentChatAddMembers) PushMessageContentType() string
type PushMessageContentChatChangePhoto ¶
type PushMessageContentChatChangePhoto struct {
// contains filtered or unexported fields
}
A chat photo was edited
func UnmarshalPushMessageContentChatChangePhoto ¶
func UnmarshalPushMessageContentChatChangePhoto(data json.RawMessage) (*PushMessageContentChatChangePhoto, error)
func (*PushMessageContentChatChangePhoto) GetClass ¶
func (*PushMessageContentChatChangePhoto) GetClass() string
func (*PushMessageContentChatChangePhoto) GetType ¶
func (*PushMessageContentChatChangePhoto) GetType() string
func (*PushMessageContentChatChangePhoto) MarshalJSON ¶
func (entity *PushMessageContentChatChangePhoto) MarshalJSON() ([]byte, error)
func (*PushMessageContentChatChangePhoto) PushMessageContentType ¶
func (*PushMessageContentChatChangePhoto) PushMessageContentType() string
type PushMessageContentChatChangeTitle ¶
type PushMessageContentChatChangeTitle struct { // New chat title Title string `json:"title"` // contains filtered or unexported fields }
A chat title was edited
func UnmarshalPushMessageContentChatChangeTitle ¶
func UnmarshalPushMessageContentChatChangeTitle(data json.RawMessage) (*PushMessageContentChatChangeTitle, error)
func (*PushMessageContentChatChangeTitle) GetClass ¶
func (*PushMessageContentChatChangeTitle) GetClass() string
func (*PushMessageContentChatChangeTitle) GetType ¶
func (*PushMessageContentChatChangeTitle) GetType() string
func (*PushMessageContentChatChangeTitle) MarshalJSON ¶
func (entity *PushMessageContentChatChangeTitle) MarshalJSON() ([]byte, error)
func (*PushMessageContentChatChangeTitle) PushMessageContentType ¶
func (*PushMessageContentChatChangeTitle) PushMessageContentType() string
type PushMessageContentChatDeleteMember ¶
type PushMessageContentChatDeleteMember struct { // Name of the deleted member MemberName string `json:"member_name"` // True, if the current user was deleted from the group IsCurrentUser bool `json:"is_current_user"` // True, if the user has left the group themselves IsLeft bool `json:"is_left"` // contains filtered or unexported fields }
A chat member was deleted
func UnmarshalPushMessageContentChatDeleteMember ¶
func UnmarshalPushMessageContentChatDeleteMember(data json.RawMessage) (*PushMessageContentChatDeleteMember, error)
func (*PushMessageContentChatDeleteMember) GetClass ¶
func (*PushMessageContentChatDeleteMember) GetClass() string
func (*PushMessageContentChatDeleteMember) GetType ¶
func (*PushMessageContentChatDeleteMember) GetType() string
func (*PushMessageContentChatDeleteMember) MarshalJSON ¶
func (entity *PushMessageContentChatDeleteMember) MarshalJSON() ([]byte, error)
func (*PushMessageContentChatDeleteMember) PushMessageContentType ¶
func (*PushMessageContentChatDeleteMember) PushMessageContentType() string
type PushMessageContentChatJoinByLink ¶
type PushMessageContentChatJoinByLink struct {
// contains filtered or unexported fields
}
A new member joined the chat via an invite link
func UnmarshalPushMessageContentChatJoinByLink ¶
func UnmarshalPushMessageContentChatJoinByLink(data json.RawMessage) (*PushMessageContentChatJoinByLink, error)
func (*PushMessageContentChatJoinByLink) GetClass ¶
func (*PushMessageContentChatJoinByLink) GetClass() string
func (*PushMessageContentChatJoinByLink) GetType ¶
func (*PushMessageContentChatJoinByLink) GetType() string
func (*PushMessageContentChatJoinByLink) MarshalJSON ¶
func (entity *PushMessageContentChatJoinByLink) MarshalJSON() ([]byte, error)
func (*PushMessageContentChatJoinByLink) PushMessageContentType ¶
func (*PushMessageContentChatJoinByLink) PushMessageContentType() string
type PushMessageContentChatJoinByRequest ¶
type PushMessageContentChatJoinByRequest struct {
// contains filtered or unexported fields
}
A new member was accepted to the chat by an administrator
func UnmarshalPushMessageContentChatJoinByRequest ¶
func UnmarshalPushMessageContentChatJoinByRequest(data json.RawMessage) (*PushMessageContentChatJoinByRequest, error)
func (*PushMessageContentChatJoinByRequest) GetClass ¶
func (*PushMessageContentChatJoinByRequest) GetClass() string
func (*PushMessageContentChatJoinByRequest) GetType ¶
func (*PushMessageContentChatJoinByRequest) GetType() string
func (*PushMessageContentChatJoinByRequest) MarshalJSON ¶
func (entity *PushMessageContentChatJoinByRequest) MarshalJSON() ([]byte, error)
func (*PushMessageContentChatJoinByRequest) PushMessageContentType ¶
func (*PushMessageContentChatJoinByRequest) PushMessageContentType() string
type PushMessageContentChatSetBackground ¶ added in v1.2.3
type PushMessageContentChatSetBackground struct { // True, if the set background is the same as the background of the current user IsSame bool `json:"is_same"` // contains filtered or unexported fields }
A chat background was edited
func UnmarshalPushMessageContentChatSetBackground ¶ added in v1.2.3
func UnmarshalPushMessageContentChatSetBackground(data json.RawMessage) (*PushMessageContentChatSetBackground, error)
func (*PushMessageContentChatSetBackground) GetClass ¶ added in v1.2.3
func (*PushMessageContentChatSetBackground) GetClass() string
func (*PushMessageContentChatSetBackground) GetType ¶ added in v1.2.3
func (*PushMessageContentChatSetBackground) GetType() string
func (*PushMessageContentChatSetBackground) MarshalJSON ¶ added in v1.2.3
func (entity *PushMessageContentChatSetBackground) MarshalJSON() ([]byte, error)
func (*PushMessageContentChatSetBackground) PushMessageContentType ¶ added in v1.2.3
func (*PushMessageContentChatSetBackground) PushMessageContentType() string
type PushMessageContentChatSetTheme ¶
type PushMessageContentChatSetTheme struct { // If non-empty, name of a new theme, set for the chat. Otherwise, the chat theme was reset to the default one ThemeName string `json:"theme_name"` // contains filtered or unexported fields }
A chat theme was edited
func UnmarshalPushMessageContentChatSetTheme ¶
func UnmarshalPushMessageContentChatSetTheme(data json.RawMessage) (*PushMessageContentChatSetTheme, error)
func (*PushMessageContentChatSetTheme) GetClass ¶
func (*PushMessageContentChatSetTheme) GetClass() string
func (*PushMessageContentChatSetTheme) GetType ¶
func (*PushMessageContentChatSetTheme) GetType() string
func (*PushMessageContentChatSetTheme) MarshalJSON ¶
func (entity *PushMessageContentChatSetTheme) MarshalJSON() ([]byte, error)
func (*PushMessageContentChatSetTheme) PushMessageContentType ¶
func (*PushMessageContentChatSetTheme) PushMessageContentType() string
type PushMessageContentContact ¶
type PushMessageContentContact struct { // Contact's name Name string `json:"name"` // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
A message with a user contact
func UnmarshalPushMessageContentContact ¶
func UnmarshalPushMessageContentContact(data json.RawMessage) (*PushMessageContentContact, error)
func (*PushMessageContentContact) GetClass ¶
func (*PushMessageContentContact) GetClass() string
func (*PushMessageContentContact) GetType ¶
func (*PushMessageContentContact) GetType() string
func (*PushMessageContentContact) MarshalJSON ¶
func (entity *PushMessageContentContact) MarshalJSON() ([]byte, error)
func (*PushMessageContentContact) PushMessageContentType ¶
func (*PushMessageContentContact) PushMessageContentType() string
type PushMessageContentContactRegistered ¶
type PushMessageContentContactRegistered struct {
// contains filtered or unexported fields
}
A contact has registered with Telegram
func UnmarshalPushMessageContentContactRegistered ¶
func UnmarshalPushMessageContentContactRegistered(data json.RawMessage) (*PushMessageContentContactRegistered, error)
func (*PushMessageContentContactRegistered) GetClass ¶
func (*PushMessageContentContactRegistered) GetClass() string
func (*PushMessageContentContactRegistered) GetType ¶
func (*PushMessageContentContactRegistered) GetType() string
func (*PushMessageContentContactRegistered) MarshalJSON ¶
func (entity *PushMessageContentContactRegistered) MarshalJSON() ([]byte, error)
func (*PushMessageContentContactRegistered) PushMessageContentType ¶
func (*PushMessageContentContactRegistered) PushMessageContentType() string
type PushMessageContentDocument ¶
type PushMessageContentDocument struct { // Message content; may be null Document *Document `json:"document"` // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
A document message (a general file)
func UnmarshalPushMessageContentDocument ¶
func UnmarshalPushMessageContentDocument(data json.RawMessage) (*PushMessageContentDocument, error)
func (*PushMessageContentDocument) GetClass ¶
func (*PushMessageContentDocument) GetClass() string
func (*PushMessageContentDocument) GetType ¶
func (*PushMessageContentDocument) GetType() string
func (*PushMessageContentDocument) MarshalJSON ¶
func (entity *PushMessageContentDocument) MarshalJSON() ([]byte, error)
func (*PushMessageContentDocument) PushMessageContentType ¶
func (*PushMessageContentDocument) PushMessageContentType() string
type PushMessageContentGame ¶
type PushMessageContentGame struct { // Game title, empty for pinned game message Title string `json:"title"` // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
A message with a game
func UnmarshalPushMessageContentGame ¶
func UnmarshalPushMessageContentGame(data json.RawMessage) (*PushMessageContentGame, error)
func (*PushMessageContentGame) GetClass ¶
func (*PushMessageContentGame) GetClass() string
func (*PushMessageContentGame) GetType ¶
func (*PushMessageContentGame) GetType() string
func (*PushMessageContentGame) MarshalJSON ¶
func (entity *PushMessageContentGame) MarshalJSON() ([]byte, error)
func (*PushMessageContentGame) PushMessageContentType ¶
func (*PushMessageContentGame) PushMessageContentType() string
type PushMessageContentGameScore ¶
type PushMessageContentGameScore struct { // Game title, empty for pinned message Title string `json:"title"` // New score, 0 for pinned message Score int32 `json:"score"` // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
A new high score was achieved in a game
func UnmarshalPushMessageContentGameScore ¶
func UnmarshalPushMessageContentGameScore(data json.RawMessage) (*PushMessageContentGameScore, error)
func (*PushMessageContentGameScore) GetClass ¶
func (*PushMessageContentGameScore) GetClass() string
func (*PushMessageContentGameScore) GetType ¶
func (*PushMessageContentGameScore) GetType() string
func (*PushMessageContentGameScore) MarshalJSON ¶
func (entity *PushMessageContentGameScore) MarshalJSON() ([]byte, error)
func (*PushMessageContentGameScore) PushMessageContentType ¶
func (*PushMessageContentGameScore) PushMessageContentType() string
type PushMessageContentHidden ¶
type PushMessageContentHidden struct { // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
A general message with hidden content
func UnmarshalPushMessageContentHidden ¶
func UnmarshalPushMessageContentHidden(data json.RawMessage) (*PushMessageContentHidden, error)
func (*PushMessageContentHidden) GetClass ¶
func (*PushMessageContentHidden) GetClass() string
func (*PushMessageContentHidden) GetType ¶
func (*PushMessageContentHidden) GetType() string
func (*PushMessageContentHidden) MarshalJSON ¶
func (entity *PushMessageContentHidden) MarshalJSON() ([]byte, error)
func (*PushMessageContentHidden) PushMessageContentType ¶
func (*PushMessageContentHidden) PushMessageContentType() string
type PushMessageContentInvoice ¶
type PushMessageContentInvoice struct { // Product price Price string `json:"price"` // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
A message with an invoice from a bot
func UnmarshalPushMessageContentInvoice ¶
func UnmarshalPushMessageContentInvoice(data json.RawMessage) (*PushMessageContentInvoice, error)
func (*PushMessageContentInvoice) GetClass ¶
func (*PushMessageContentInvoice) GetClass() string
func (*PushMessageContentInvoice) GetType ¶
func (*PushMessageContentInvoice) GetType() string
func (*PushMessageContentInvoice) MarshalJSON ¶
func (entity *PushMessageContentInvoice) MarshalJSON() ([]byte, error)
func (*PushMessageContentInvoice) PushMessageContentType ¶
func (*PushMessageContentInvoice) PushMessageContentType() string
type PushMessageContentLocation ¶
type PushMessageContentLocation struct { // True, if the location is live IsLive bool `json:"is_live"` // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
A message with a location
func UnmarshalPushMessageContentLocation ¶
func UnmarshalPushMessageContentLocation(data json.RawMessage) (*PushMessageContentLocation, error)
func (*PushMessageContentLocation) GetClass ¶
func (*PushMessageContentLocation) GetClass() string
func (*PushMessageContentLocation) GetType ¶
func (*PushMessageContentLocation) GetType() string
func (*PushMessageContentLocation) MarshalJSON ¶
func (entity *PushMessageContentLocation) MarshalJSON() ([]byte, error)
func (*PushMessageContentLocation) PushMessageContentType ¶
func (*PushMessageContentLocation) PushMessageContentType() string
type PushMessageContentMediaAlbum ¶
type PushMessageContentMediaAlbum struct { // Number of messages in the album TotalCount int32 `json:"total_count"` // True, if the album has at least one photo HasPhotos bool `json:"has_photos"` // True, if the album has at least one video file HasVideos bool `json:"has_videos"` // True, if the album has at least one audio file HasAudios bool `json:"has_audios"` // True, if the album has at least one document HasDocuments bool `json:"has_documents"` // contains filtered or unexported fields }
A media album
func UnmarshalPushMessageContentMediaAlbum ¶
func UnmarshalPushMessageContentMediaAlbum(data json.RawMessage) (*PushMessageContentMediaAlbum, error)
func (*PushMessageContentMediaAlbum) GetClass ¶
func (*PushMessageContentMediaAlbum) GetClass() string
func (*PushMessageContentMediaAlbum) GetType ¶
func (*PushMessageContentMediaAlbum) GetType() string
func (*PushMessageContentMediaAlbum) MarshalJSON ¶
func (entity *PushMessageContentMediaAlbum) MarshalJSON() ([]byte, error)
func (*PushMessageContentMediaAlbum) PushMessageContentType ¶
func (*PushMessageContentMediaAlbum) PushMessageContentType() string
type PushMessageContentMessageForwards ¶
type PushMessageContentMessageForwards struct { // Number of forwarded messages TotalCount int32 `json:"total_count"` // contains filtered or unexported fields }
A forwarded messages
func UnmarshalPushMessageContentMessageForwards ¶
func UnmarshalPushMessageContentMessageForwards(data json.RawMessage) (*PushMessageContentMessageForwards, error)
func (*PushMessageContentMessageForwards) GetClass ¶
func (*PushMessageContentMessageForwards) GetClass() string
func (*PushMessageContentMessageForwards) GetType ¶
func (*PushMessageContentMessageForwards) GetType() string
func (*PushMessageContentMessageForwards) MarshalJSON ¶
func (entity *PushMessageContentMessageForwards) MarshalJSON() ([]byte, error)
func (*PushMessageContentMessageForwards) PushMessageContentType ¶
func (*PushMessageContentMessageForwards) PushMessageContentType() string
type PushMessageContentPhoto ¶
type PushMessageContentPhoto struct { // Message content; may be null Photo *Photo `json:"photo"` // Photo caption Caption string `json:"caption"` // True, if the photo is secret IsSecret bool `json:"is_secret"` // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
A photo message
func UnmarshalPushMessageContentPhoto ¶
func UnmarshalPushMessageContentPhoto(data json.RawMessage) (*PushMessageContentPhoto, error)
func (*PushMessageContentPhoto) GetClass ¶
func (*PushMessageContentPhoto) GetClass() string
func (*PushMessageContentPhoto) GetType ¶
func (*PushMessageContentPhoto) GetType() string
func (*PushMessageContentPhoto) MarshalJSON ¶
func (entity *PushMessageContentPhoto) MarshalJSON() ([]byte, error)
func (*PushMessageContentPhoto) PushMessageContentType ¶
func (*PushMessageContentPhoto) PushMessageContentType() string
type PushMessageContentPoll ¶
type PushMessageContentPoll struct { // Poll question Question string `json:"question"` // True, if the poll is regular and not in quiz mode IsRegular bool `json:"is_regular"` // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
A message with a poll
func UnmarshalPushMessageContentPoll ¶
func UnmarshalPushMessageContentPoll(data json.RawMessage) (*PushMessageContentPoll, error)
func (*PushMessageContentPoll) GetClass ¶
func (*PushMessageContentPoll) GetClass() string
func (*PushMessageContentPoll) GetType ¶
func (*PushMessageContentPoll) GetType() string
func (*PushMessageContentPoll) MarshalJSON ¶
func (entity *PushMessageContentPoll) MarshalJSON() ([]byte, error)
func (*PushMessageContentPoll) PushMessageContentType ¶
func (*PushMessageContentPoll) PushMessageContentType() string
type PushMessageContentRecurringPayment ¶ added in v1.2.3
type PushMessageContentRecurringPayment struct { // The paid amount Amount string `json:"amount"` // contains filtered or unexported fields }
A new recurring payment was made by the current user
func UnmarshalPushMessageContentRecurringPayment ¶ added in v1.2.3
func UnmarshalPushMessageContentRecurringPayment(data json.RawMessage) (*PushMessageContentRecurringPayment, error)
func (*PushMessageContentRecurringPayment) GetClass ¶ added in v1.2.3
func (*PushMessageContentRecurringPayment) GetClass() string
func (*PushMessageContentRecurringPayment) GetType ¶ added in v1.2.3
func (*PushMessageContentRecurringPayment) GetType() string
func (*PushMessageContentRecurringPayment) MarshalJSON ¶ added in v1.2.3
func (entity *PushMessageContentRecurringPayment) MarshalJSON() ([]byte, error)
func (*PushMessageContentRecurringPayment) PushMessageContentType ¶ added in v1.2.3
func (*PushMessageContentRecurringPayment) PushMessageContentType() string
type PushMessageContentScreenshotTaken ¶
type PushMessageContentScreenshotTaken struct {
// contains filtered or unexported fields
}
A screenshot of a message in the chat has been taken
func UnmarshalPushMessageContentScreenshotTaken ¶
func UnmarshalPushMessageContentScreenshotTaken(data json.RawMessage) (*PushMessageContentScreenshotTaken, error)
func (*PushMessageContentScreenshotTaken) GetClass ¶
func (*PushMessageContentScreenshotTaken) GetClass() string
func (*PushMessageContentScreenshotTaken) GetType ¶
func (*PushMessageContentScreenshotTaken) GetType() string
func (*PushMessageContentScreenshotTaken) MarshalJSON ¶
func (entity *PushMessageContentScreenshotTaken) MarshalJSON() ([]byte, error)
func (*PushMessageContentScreenshotTaken) PushMessageContentType ¶
func (*PushMessageContentScreenshotTaken) PushMessageContentType() string
type PushMessageContentSticker ¶
type PushMessageContentSticker struct { // Message content; may be null Sticker *Sticker `json:"sticker"` // Emoji corresponding to the sticker; may be empty Emoji string `json:"emoji"` // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
A message with a sticker
func UnmarshalPushMessageContentSticker ¶
func UnmarshalPushMessageContentSticker(data json.RawMessage) (*PushMessageContentSticker, error)
func (*PushMessageContentSticker) GetClass ¶
func (*PushMessageContentSticker) GetClass() string
func (*PushMessageContentSticker) GetType ¶
func (*PushMessageContentSticker) GetType() string
func (*PushMessageContentSticker) MarshalJSON ¶
func (entity *PushMessageContentSticker) MarshalJSON() ([]byte, error)
func (*PushMessageContentSticker) PushMessageContentType ¶
func (*PushMessageContentSticker) PushMessageContentType() string
type PushMessageContentStory ¶ added in v1.2.3
type PushMessageContentStory struct { // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
A message with a story
func UnmarshalPushMessageContentStory ¶ added in v1.2.3
func UnmarshalPushMessageContentStory(data json.RawMessage) (*PushMessageContentStory, error)
func (*PushMessageContentStory) GetClass ¶ added in v1.2.3
func (*PushMessageContentStory) GetClass() string
func (*PushMessageContentStory) GetType ¶ added in v1.2.3
func (*PushMessageContentStory) GetType() string
func (*PushMessageContentStory) MarshalJSON ¶ added in v1.2.3
func (entity *PushMessageContentStory) MarshalJSON() ([]byte, error)
func (*PushMessageContentStory) PushMessageContentType ¶ added in v1.2.3
func (*PushMessageContentStory) PushMessageContentType() string
type PushMessageContentSuggestProfilePhoto ¶ added in v1.2.3
type PushMessageContentSuggestProfilePhoto struct {
// contains filtered or unexported fields
}
A profile photo was suggested to the user
func UnmarshalPushMessageContentSuggestProfilePhoto ¶ added in v1.2.3
func UnmarshalPushMessageContentSuggestProfilePhoto(data json.RawMessage) (*PushMessageContentSuggestProfilePhoto, error)
func (*PushMessageContentSuggestProfilePhoto) GetClass ¶ added in v1.2.3
func (*PushMessageContentSuggestProfilePhoto) GetClass() string
func (*PushMessageContentSuggestProfilePhoto) GetType ¶ added in v1.2.3
func (*PushMessageContentSuggestProfilePhoto) GetType() string
func (*PushMessageContentSuggestProfilePhoto) MarshalJSON ¶ added in v1.2.3
func (entity *PushMessageContentSuggestProfilePhoto) MarshalJSON() ([]byte, error)
func (*PushMessageContentSuggestProfilePhoto) PushMessageContentType ¶ added in v1.2.3
func (*PushMessageContentSuggestProfilePhoto) PushMessageContentType() string
type PushMessageContentText ¶
type PushMessageContentText struct { // Message text Text string `json:"text"` // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
A text message
func UnmarshalPushMessageContentText ¶
func UnmarshalPushMessageContentText(data json.RawMessage) (*PushMessageContentText, error)
func (*PushMessageContentText) GetClass ¶
func (*PushMessageContentText) GetClass() string
func (*PushMessageContentText) GetType ¶
func (*PushMessageContentText) GetType() string
func (*PushMessageContentText) MarshalJSON ¶
func (entity *PushMessageContentText) MarshalJSON() ([]byte, error)
func (*PushMessageContentText) PushMessageContentType ¶
func (*PushMessageContentText) PushMessageContentType() string
type PushMessageContentVideo ¶
type PushMessageContentVideo struct { // Message content; may be null Video *Video `json:"video"` // Video caption Caption string `json:"caption"` // True, if the video is secret IsSecret bool `json:"is_secret"` // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
A video message
func UnmarshalPushMessageContentVideo ¶
func UnmarshalPushMessageContentVideo(data json.RawMessage) (*PushMessageContentVideo, error)
func (*PushMessageContentVideo) GetClass ¶
func (*PushMessageContentVideo) GetClass() string
func (*PushMessageContentVideo) GetType ¶
func (*PushMessageContentVideo) GetType() string
func (*PushMessageContentVideo) MarshalJSON ¶
func (entity *PushMessageContentVideo) MarshalJSON() ([]byte, error)
func (*PushMessageContentVideo) PushMessageContentType ¶
func (*PushMessageContentVideo) PushMessageContentType() string
type PushMessageContentVideoNote ¶
type PushMessageContentVideoNote struct { // Message content; may be null VideoNote *VideoNote `json:"video_note"` // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
A video note message
func UnmarshalPushMessageContentVideoNote ¶
func UnmarshalPushMessageContentVideoNote(data json.RawMessage) (*PushMessageContentVideoNote, error)
func (*PushMessageContentVideoNote) GetClass ¶
func (*PushMessageContentVideoNote) GetClass() string
func (*PushMessageContentVideoNote) GetType ¶
func (*PushMessageContentVideoNote) GetType() string
func (*PushMessageContentVideoNote) MarshalJSON ¶
func (entity *PushMessageContentVideoNote) MarshalJSON() ([]byte, error)
func (*PushMessageContentVideoNote) PushMessageContentType ¶
func (*PushMessageContentVideoNote) PushMessageContentType() string
type PushMessageContentVoiceNote ¶
type PushMessageContentVoiceNote struct { // Message content; may be null VoiceNote *VoiceNote `json:"voice_note"` // True, if the message is a pinned message with the specified content IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
A voice note message
func UnmarshalPushMessageContentVoiceNote ¶
func UnmarshalPushMessageContentVoiceNote(data json.RawMessage) (*PushMessageContentVoiceNote, error)
func (*PushMessageContentVoiceNote) GetClass ¶
func (*PushMessageContentVoiceNote) GetClass() string
func (*PushMessageContentVoiceNote) GetType ¶
func (*PushMessageContentVoiceNote) GetType() string
func (*PushMessageContentVoiceNote) MarshalJSON ¶
func (entity *PushMessageContentVoiceNote) MarshalJSON() ([]byte, error)
func (*PushMessageContentVoiceNote) PushMessageContentType ¶
func (*PushMessageContentVoiceNote) PushMessageContentType() string
type PushReceiverId ¶
type PushReceiverId struct { // The globally unique identifier of push notification subscription Id JsonInt64 `json:"id"` // contains filtered or unexported fields }
Contains a globally unique push receiver identifier, which can be used to identify which account has received a push notification
func GetPushReceiverId ¶
func GetPushReceiverId(req *GetPushReceiverIdRequest) (*PushReceiverId, error)
Returns a globally unique push notification subscription identifier for identification of an account, which has received a push notification. Can be called synchronously
func UnmarshalPushReceiverId ¶
func UnmarshalPushReceiverId(data json.RawMessage) (*PushReceiverId, error)
func (*PushReceiverId) GetClass ¶
func (*PushReceiverId) GetClass() string
func (*PushReceiverId) GetType ¶
func (*PushReceiverId) GetType() string
func (*PushReceiverId) MarshalJSON ¶
func (entity *PushReceiverId) MarshalJSON() ([]byte, error)
type RateSpeechRecognitionRequest ¶ added in v1.2.3
type ReactionType ¶ added in v1.2.3
type ReactionType interface {
ReactionTypeType() string
}
Describes type of message reaction
func UnmarshalListOfReactionType ¶ added in v1.2.3
func UnmarshalListOfReactionType(dataList []json.RawMessage) ([]ReactionType, error)
func UnmarshalReactionType ¶ added in v1.2.3
func UnmarshalReactionType(data json.RawMessage) (ReactionType, error)
type ReactionTypeCustomEmoji ¶ added in v1.2.3
type ReactionTypeCustomEmoji struct { // Unique identifier of the custom emoji CustomEmojiId JsonInt64 `json:"custom_emoji_id"` // contains filtered or unexported fields }
A reaction with a custom emoji
func UnmarshalReactionTypeCustomEmoji ¶ added in v1.2.3
func UnmarshalReactionTypeCustomEmoji(data json.RawMessage) (*ReactionTypeCustomEmoji, error)
func (*ReactionTypeCustomEmoji) GetClass ¶ added in v1.2.3
func (*ReactionTypeCustomEmoji) GetClass() string
func (*ReactionTypeCustomEmoji) GetType ¶ added in v1.2.3
func (*ReactionTypeCustomEmoji) GetType() string
func (*ReactionTypeCustomEmoji) MarshalJSON ¶ added in v1.2.3
func (entity *ReactionTypeCustomEmoji) MarshalJSON() ([]byte, error)
func (*ReactionTypeCustomEmoji) ReactionTypeType ¶ added in v1.2.3
func (*ReactionTypeCustomEmoji) ReactionTypeType() string
type ReactionTypeEmoji ¶ added in v1.2.3
type ReactionTypeEmoji struct { // Text representation of the reaction Emoji string `json:"emoji"` // contains filtered or unexported fields }
A reaction with an emoji
func UnmarshalReactionTypeEmoji ¶ added in v1.2.3
func UnmarshalReactionTypeEmoji(data json.RawMessage) (*ReactionTypeEmoji, error)
func (*ReactionTypeEmoji) GetClass ¶ added in v1.2.3
func (*ReactionTypeEmoji) GetClass() string
func (*ReactionTypeEmoji) GetType ¶ added in v1.2.3
func (*ReactionTypeEmoji) GetType() string
func (*ReactionTypeEmoji) MarshalJSON ¶ added in v1.2.3
func (entity *ReactionTypeEmoji) MarshalJSON() ([]byte, error)
func (*ReactionTypeEmoji) ReactionTypeType ¶ added in v1.2.3
func (*ReactionTypeEmoji) ReactionTypeType() string
type ReadAllChatMentionsRequest ¶
type ReadAllChatMentionsRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type ReadAllChatReactionsRequest ¶ added in v1.0.6
type ReadAllChatReactionsRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type ReadAllMessageThreadMentionsRequest ¶ added in v1.2.3
type ReadAllMessageThreadReactionsRequest ¶ added in v1.2.3
type ReadChatListRequest ¶ added in v1.2.3
type ReadChatListRequest struct { // Chat list in which to mark all chats as read ChatList ChatList `json:"chat_list"` }
type ReadFilePartRequest ¶
type ReadFilePartRequest struct { // Identifier of the file. The file must be located in the TDLib file cache FileId int32 `json:"file_id"` // The offset from which to read the file Offset int64 `json:"offset"` // Number of bytes to read. An error will be returned if there are not enough bytes available in the file from the specified position. Pass 0 to read all available data from the specified position Count int64 `json:"count"` }
type RecognizeSpeechRequest ¶ added in v1.2.3
type RecommendedChatFolder ¶ added in v1.2.3
type RecommendedChatFolder struct { // The chat folder Folder *ChatFolder `json:"folder"` // Chat folder description Description string `json:"description"` // contains filtered or unexported fields }
Describes a recommended chat folder
func UnmarshalRecommendedChatFolder ¶ added in v1.2.3
func UnmarshalRecommendedChatFolder(data json.RawMessage) (*RecommendedChatFolder, error)
func (*RecommendedChatFolder) GetClass ¶ added in v1.2.3
func (*RecommendedChatFolder) GetClass() string
func (*RecommendedChatFolder) GetType ¶ added in v1.2.3
func (*RecommendedChatFolder) GetType() string
func (*RecommendedChatFolder) MarshalJSON ¶ added in v1.2.3
func (entity *RecommendedChatFolder) MarshalJSON() ([]byte, error)
type RecommendedChatFolders ¶ added in v1.2.3
type RecommendedChatFolders struct { // List of recommended chat folders ChatFolders []*RecommendedChatFolder `json:"chat_folders"` // contains filtered or unexported fields }
Contains a list of recommended chat folders
func UnmarshalRecommendedChatFolders ¶ added in v1.2.3
func UnmarshalRecommendedChatFolders(data json.RawMessage) (*RecommendedChatFolders, error)
func (*RecommendedChatFolders) GetClass ¶ added in v1.2.3
func (*RecommendedChatFolders) GetClass() string
func (*RecommendedChatFolders) GetType ¶ added in v1.2.3
func (*RecommendedChatFolders) GetType() string
func (*RecommendedChatFolders) MarshalJSON ¶ added in v1.2.3
func (entity *RecommendedChatFolders) MarshalJSON() ([]byte, error)
type RecoverAuthenticationPasswordRequest ¶
type RecoverAuthenticationPasswordRequest struct { // Recovery code to check RecoveryCode string `json:"recovery_code"` // New 2-step verification password of the user; may be empty to remove the password NewPassword string `json:"new_password"` // New password hint; may be empty NewHint string `json:"new_hint"` }
type RecoverPasswordRequest ¶
type RecoverPasswordRequest struct { // Recovery code to check RecoveryCode string `json:"recovery_code"` // New 2-step verification password of the user; may be empty to remove the password NewPassword string `json:"new_password"` // New password hint; may be empty NewHint string `json:"new_hint"` }
type RecoveryEmailAddress ¶
type RecoveryEmailAddress struct { // Recovery email address RecoveryEmailAddress string `json:"recovery_email_address"` // contains filtered or unexported fields }
Contains information about the current recovery email address
func UnmarshalRecoveryEmailAddress ¶
func UnmarshalRecoveryEmailAddress(data json.RawMessage) (*RecoveryEmailAddress, error)
func (*RecoveryEmailAddress) GetClass ¶
func (*RecoveryEmailAddress) GetClass() string
func (*RecoveryEmailAddress) GetType ¶
func (*RecoveryEmailAddress) GetType() string
func (*RecoveryEmailAddress) MarshalJSON ¶
func (entity *RecoveryEmailAddress) MarshalJSON() ([]byte, error)
type RegisterDeviceRequest ¶
type RegisterDeviceRequest struct { // Device token DeviceToken DeviceToken `json:"device_token"` // List of user identifiers of other users currently using the application OtherUserIds []int64 `json:"other_user_ids"` }
type RegisterUserRequest ¶
type RemoteFile ¶
type RemoteFile struct { // Remote file identifier; may be empty. Can be used by the current user across application restarts or even from other devices. Uniquely identifies a file, but a file can have a lot of different valid identifiers. If the identifier starts with "http://" or "https://", it represents the HTTP URL of the file. TDLib is currently unable to download files if only their URL is known. If downloadFile/addFileToDownloads is called on such a file or if it is sent to a secret chat, TDLib starts a file generation process by sending updateFileGenerationStart to the application with the HTTP URL in the original_path and "#url#" as the conversion string. Application must generate the file by downloading it to the specified location Id string `json:"id"` // Unique file identifier; may be empty if unknown. The unique file identifier which is the same for the same file even for different users and is persistent over time UniqueId string `json:"unique_id"` // True, if the file is currently being uploaded (or a remote copy is being generated by some other means) IsUploadingActive bool `json:"is_uploading_active"` // True, if a remote copy is fully available IsUploadingCompleted bool `json:"is_uploading_completed"` // Size of the remote available part of the file, in bytes; 0 if unknown UploadedSize int64 `json:"uploaded_size"` // contains filtered or unexported fields }
Represents a remote file
func UnmarshalRemoteFile ¶
func UnmarshalRemoteFile(data json.RawMessage) (*RemoteFile, error)
func (*RemoteFile) GetClass ¶
func (*RemoteFile) GetClass() string
func (*RemoteFile) GetType ¶
func (*RemoteFile) GetType() string
func (*RemoteFile) MarshalJSON ¶
func (entity *RemoteFile) MarshalJSON() ([]byte, error)
type RemoveAllFilesFromDownloadsRequest ¶ added in v1.0.6
type RemoveAllFilesFromDownloadsRequest struct { // Pass true to remove only active downloads, including paused OnlyActive bool `json:"only_active"` // Pass true to remove only completed downloads OnlyCompleted bool `json:"only_completed"` // Pass true to delete the file from the TDLib file cache DeleteFromCache bool `json:"delete_from_cache"` }
type RemoveBackgroundRequest ¶
type RemoveBackgroundRequest struct { // The background identifier BackgroundId JsonInt64 `json:"background_id"` }
type RemoveChatActionBarRequest ¶
type RemoveChatActionBarRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type RemoveContactsRequest ¶
type RemoveContactsRequest struct { // Identifiers of users to be deleted UserIds []int64 `json:"user_ids"` }
type RemoveFavoriteStickerRequest ¶
type RemoveFavoriteStickerRequest struct { // Sticker file to delete from the list Sticker InputFile `json:"sticker"` }
type RemoveFileFromDownloadsRequest ¶ added in v1.0.6
type RemoveMessageReactionRequest ¶ added in v1.2.3
type RemoveMessageReactionRequest struct { // Identifier of the chat to which the message belongs ChatId int64 `json:"chat_id"` // Identifier of the message MessageId int64 `json:"message_id"` // Type of the reaction to remove ReactionType ReactionType `json:"reaction_type"` }
type RemoveProxyRequest ¶
type RemoveProxyRequest struct { // Proxy identifier ProxyId int32 `json:"proxy_id"` }
type RemoveRecentHashtagRequest ¶
type RemoveRecentHashtagRequest struct { // Hashtag to delete Hashtag string `json:"hashtag"` }
type RemoveRecentStickerRequest ¶
type RemoveRecentStickerRequest struct { // Pass true to remove the sticker from the list of stickers recently attached to photo or video files; pass false to remove the sticker from the list of recently sent stickers IsAttached bool `json:"is_attached"` // Sticker file to delete Sticker InputFile `json:"sticker"` }
type RemoveRecentlyFoundChatRequest ¶
type RemoveRecentlyFoundChatRequest struct { // Identifier of the chat to be removed ChatId int64 `json:"chat_id"` }
type RemoveSavedAnimationRequest ¶
type RemoveSavedAnimationRequest struct { // Animation file to be removed Animation InputFile `json:"animation"` }
type RemoveSavedNotificationSoundRequest ¶ added in v1.0.6
type RemoveSavedNotificationSoundRequest struct { // Identifier of the notification sound NotificationSoundId JsonInt64 `json:"notification_sound_id"` }
type RemoveStickerFromSetRequest ¶
type RemoveStickerFromSetRequest struct { // Sticker Sticker InputFile `json:"sticker"` }
type RemoveTopChatRequest ¶
type RemoveTopChatRequest struct { // Category of frequently used chats Category TopChatCategory `json:"category"` // Chat identifier ChatId int64 `json:"chat_id"` }
type ReorderActiveUsernamesRequest ¶ added in v1.2.3
type ReorderActiveUsernamesRequest struct { // The new order of active usernames. All currently active usernames must be specified Usernames []string `json:"usernames"` }
type ReorderBotActiveUsernamesRequest ¶ added in v1.2.3
type ReorderChatFoldersRequest ¶ added in v1.2.3
type ReorderChatFoldersRequest struct { // Identifiers of chat folders in the new correct order ChatFolderIds []int32 `json:"chat_folder_ids"` // Position of the main chat list among chat folders, 0-based. Can be non-zero only for Premium users MainChatListPosition int32 `json:"main_chat_list_position"` }
type ReorderInstalledStickerSetsRequest ¶
type ReorderInstalledStickerSetsRequest struct { // Type of the sticker sets to reorder StickerType StickerType `json:"sticker_type"` // Identifiers of installed sticker sets in the new correct order StickerSetIds []JsonInt64 `json:"sticker_set_ids"` }
type ReorderSupergroupActiveUsernamesRequest ¶ added in v1.2.3
type ReplacePrimaryChatInviteLinkRequest ¶
type ReplacePrimaryChatInviteLinkRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type ReplaceVideoChatRtmpUrlRequest ¶ added in v1.0.6
type ReplaceVideoChatRtmpUrlRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type ReplyMarkup ¶
type ReplyMarkup interface {
ReplyMarkupType() string
}
Contains a description of a custom keyboard and actions that can be done with it to quickly reply to bots
func UnmarshalListOfReplyMarkup ¶
func UnmarshalListOfReplyMarkup(dataList []json.RawMessage) ([]ReplyMarkup, error)
func UnmarshalReplyMarkup ¶
func UnmarshalReplyMarkup(data json.RawMessage) (ReplyMarkup, error)
type ReplyMarkupForceReply ¶
type ReplyMarkupForceReply struct { // True, if a forced reply must automatically be shown to the current user. For outgoing messages, specify true to show the forced reply only for the mentioned users and for the target user of a reply IsPersonal bool `json:"is_personal"` // If non-empty, the placeholder to be shown in the input field when the reply is active; 0-64 characters InputFieldPlaceholder string `json:"input_field_placeholder"` // contains filtered or unexported fields }
Instructs application to force a reply to this message
func UnmarshalReplyMarkupForceReply ¶
func UnmarshalReplyMarkupForceReply(data json.RawMessage) (*ReplyMarkupForceReply, error)
func (*ReplyMarkupForceReply) GetClass ¶
func (*ReplyMarkupForceReply) GetClass() string
func (*ReplyMarkupForceReply) GetType ¶
func (*ReplyMarkupForceReply) GetType() string
func (*ReplyMarkupForceReply) MarshalJSON ¶
func (entity *ReplyMarkupForceReply) MarshalJSON() ([]byte, error)
func (*ReplyMarkupForceReply) ReplyMarkupType ¶
func (*ReplyMarkupForceReply) ReplyMarkupType() string
type ReplyMarkupInlineKeyboard ¶
type ReplyMarkupInlineKeyboard struct { // A list of rows of inline keyboard buttons Rows [][]*InlineKeyboardButton `json:"rows"` // contains filtered or unexported fields }
Contains an inline keyboard layout
func UnmarshalReplyMarkupInlineKeyboard ¶
func UnmarshalReplyMarkupInlineKeyboard(data json.RawMessage) (*ReplyMarkupInlineKeyboard, error)
func (*ReplyMarkupInlineKeyboard) GetClass ¶
func (*ReplyMarkupInlineKeyboard) GetClass() string
func (*ReplyMarkupInlineKeyboard) GetType ¶
func (*ReplyMarkupInlineKeyboard) GetType() string
func (*ReplyMarkupInlineKeyboard) MarshalJSON ¶
func (entity *ReplyMarkupInlineKeyboard) MarshalJSON() ([]byte, error)
func (*ReplyMarkupInlineKeyboard) ReplyMarkupType ¶
func (*ReplyMarkupInlineKeyboard) ReplyMarkupType() string
type ReplyMarkupRemoveKeyboard ¶
type ReplyMarkupRemoveKeyboard struct { // True, if the keyboard is removed only for the mentioned users or the target user of a reply IsPersonal bool `json:"is_personal"` // contains filtered or unexported fields }
Instructs application to remove the keyboard once this message has been received. This kind of keyboard can't be received in an incoming message; instead, updateChatReplyMarkup with message_id == 0 will be sent
func UnmarshalReplyMarkupRemoveKeyboard ¶
func UnmarshalReplyMarkupRemoveKeyboard(data json.RawMessage) (*ReplyMarkupRemoveKeyboard, error)
func (*ReplyMarkupRemoveKeyboard) GetClass ¶
func (*ReplyMarkupRemoveKeyboard) GetClass() string
func (*ReplyMarkupRemoveKeyboard) GetType ¶
func (*ReplyMarkupRemoveKeyboard) GetType() string
func (*ReplyMarkupRemoveKeyboard) MarshalJSON ¶
func (entity *ReplyMarkupRemoveKeyboard) MarshalJSON() ([]byte, error)
func (*ReplyMarkupRemoveKeyboard) ReplyMarkupType ¶
func (*ReplyMarkupRemoveKeyboard) ReplyMarkupType() string
type ReplyMarkupShowKeyboard ¶
type ReplyMarkupShowKeyboard struct { // A list of rows of bot keyboard buttons Rows [][]*KeyboardButton `json:"rows"` // True, if the keyboard is supposed to always be shown when the ordinary keyboard is hidden IsPersistent bool `json:"is_persistent"` // True, if the application needs to resize the keyboard vertically ResizeKeyboard bool `json:"resize_keyboard"` // True, if the application needs to hide the keyboard after use OneTime bool `json:"one_time"` // True, if the keyboard must automatically be shown to the current user. For outgoing messages, specify true to show the keyboard only for the mentioned users and for the target user of a reply IsPersonal bool `json:"is_personal"` // If non-empty, the placeholder to be shown in the input field when the keyboard is active; 0-64 characters InputFieldPlaceholder string `json:"input_field_placeholder"` // contains filtered or unexported fields }
Contains a custom keyboard layout to quickly reply to bots
func UnmarshalReplyMarkupShowKeyboard ¶
func UnmarshalReplyMarkupShowKeyboard(data json.RawMessage) (*ReplyMarkupShowKeyboard, error)
func (*ReplyMarkupShowKeyboard) GetClass ¶
func (*ReplyMarkupShowKeyboard) GetClass() string
func (*ReplyMarkupShowKeyboard) GetType ¶
func (*ReplyMarkupShowKeyboard) GetType() string
func (*ReplyMarkupShowKeyboard) MarshalJSON ¶
func (entity *ReplyMarkupShowKeyboard) MarshalJSON() ([]byte, error)
func (*ReplyMarkupShowKeyboard) ReplyMarkupType ¶
func (*ReplyMarkupShowKeyboard) ReplyMarkupType() string
type ReportChatPhotoRequest ¶
type ReportChatPhotoRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Identifier of the photo to report. Only full photos from chatPhoto can be reported FileId int32 `json:"file_id"` // The reason for reporting the chat photo Reason ReportReason `json:"reason"` // Additional report details; 0-1024 characters Text string `json:"text"` }
type ReportChatRequest ¶
type ReportChatRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Identifiers of reported messages; may be empty to report the whole chat MessageIds []int64 `json:"message_ids"` // The reason for reporting the chat Reason ReportReason `json:"reason"` // Additional report details; 0-1024 characters Text string `json:"text"` }
type ReportMessageReactionsRequest ¶ added in v1.2.3
type ReportMessageReactionsRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Message identifier MessageId int64 `json:"message_id"` // Identifier of the sender, which added the reaction SenderId MessageSender `json:"sender_id"` }
type ReportReason ¶ added in v1.2.3
type ReportReason interface {
ReportReasonType() string
}
Describes the reason why a chat is reported
func UnmarshalListOfReportReason ¶ added in v1.2.3
func UnmarshalListOfReportReason(dataList []json.RawMessage) ([]ReportReason, error)
func UnmarshalReportReason ¶ added in v1.2.3
func UnmarshalReportReason(data json.RawMessage) (ReportReason, error)
type ReportReasonChildAbuse ¶ added in v1.2.3
type ReportReasonChildAbuse struct {
// contains filtered or unexported fields
}
The chat has child abuse related content
func UnmarshalReportReasonChildAbuse ¶ added in v1.2.3
func UnmarshalReportReasonChildAbuse(data json.RawMessage) (*ReportReasonChildAbuse, error)
func (*ReportReasonChildAbuse) GetClass ¶ added in v1.2.3
func (*ReportReasonChildAbuse) GetClass() string
func (*ReportReasonChildAbuse) GetType ¶ added in v1.2.3
func (*ReportReasonChildAbuse) GetType() string
func (*ReportReasonChildAbuse) MarshalJSON ¶ added in v1.2.3
func (entity *ReportReasonChildAbuse) MarshalJSON() ([]byte, error)
func (*ReportReasonChildAbuse) ReportReasonType ¶ added in v1.2.3
func (*ReportReasonChildAbuse) ReportReasonType() string
type ReportReasonCopyright ¶ added in v1.2.3
type ReportReasonCopyright struct {
// contains filtered or unexported fields
}
The chat contains copyrighted content
func UnmarshalReportReasonCopyright ¶ added in v1.2.3
func UnmarshalReportReasonCopyright(data json.RawMessage) (*ReportReasonCopyright, error)
func (*ReportReasonCopyright) GetClass ¶ added in v1.2.3
func (*ReportReasonCopyright) GetClass() string
func (*ReportReasonCopyright) GetType ¶ added in v1.2.3
func (*ReportReasonCopyright) GetType() string
func (*ReportReasonCopyright) MarshalJSON ¶ added in v1.2.3
func (entity *ReportReasonCopyright) MarshalJSON() ([]byte, error)
func (*ReportReasonCopyright) ReportReasonType ¶ added in v1.2.3
func (*ReportReasonCopyright) ReportReasonType() string
type ReportReasonCustom ¶ added in v1.2.3
type ReportReasonCustom struct {
// contains filtered or unexported fields
}
A custom reason provided by the user
func UnmarshalReportReasonCustom ¶ added in v1.2.3
func UnmarshalReportReasonCustom(data json.RawMessage) (*ReportReasonCustom, error)
func (*ReportReasonCustom) GetClass ¶ added in v1.2.3
func (*ReportReasonCustom) GetClass() string
func (*ReportReasonCustom) GetType ¶ added in v1.2.3
func (*ReportReasonCustom) GetType() string
func (*ReportReasonCustom) MarshalJSON ¶ added in v1.2.3
func (entity *ReportReasonCustom) MarshalJSON() ([]byte, error)
func (*ReportReasonCustom) ReportReasonType ¶ added in v1.2.3
func (*ReportReasonCustom) ReportReasonType() string
type ReportReasonFake ¶ added in v1.2.3
type ReportReasonFake struct {
// contains filtered or unexported fields
}
The chat represents a fake account
func UnmarshalReportReasonFake ¶ added in v1.2.3
func UnmarshalReportReasonFake(data json.RawMessage) (*ReportReasonFake, error)
func (*ReportReasonFake) GetClass ¶ added in v1.2.3
func (*ReportReasonFake) GetClass() string
func (*ReportReasonFake) GetType ¶ added in v1.2.3
func (*ReportReasonFake) GetType() string
func (*ReportReasonFake) MarshalJSON ¶ added in v1.2.3
func (entity *ReportReasonFake) MarshalJSON() ([]byte, error)
func (*ReportReasonFake) ReportReasonType ¶ added in v1.2.3
func (*ReportReasonFake) ReportReasonType() string
type ReportReasonIllegalDrugs ¶ added in v1.2.3
type ReportReasonIllegalDrugs struct {
// contains filtered or unexported fields
}
The chat has illegal drugs related content
func UnmarshalReportReasonIllegalDrugs ¶ added in v1.2.3
func UnmarshalReportReasonIllegalDrugs(data json.RawMessage) (*ReportReasonIllegalDrugs, error)
func (*ReportReasonIllegalDrugs) GetClass ¶ added in v1.2.3
func (*ReportReasonIllegalDrugs) GetClass() string
func (*ReportReasonIllegalDrugs) GetType ¶ added in v1.2.3
func (*ReportReasonIllegalDrugs) GetType() string
func (*ReportReasonIllegalDrugs) MarshalJSON ¶ added in v1.2.3
func (entity *ReportReasonIllegalDrugs) MarshalJSON() ([]byte, error)
func (*ReportReasonIllegalDrugs) ReportReasonType ¶ added in v1.2.3
func (*ReportReasonIllegalDrugs) ReportReasonType() string
type ReportReasonPersonalDetails ¶ added in v1.2.3
type ReportReasonPersonalDetails struct {
// contains filtered or unexported fields
}
The chat contains messages with personal details
func UnmarshalReportReasonPersonalDetails ¶ added in v1.2.3
func UnmarshalReportReasonPersonalDetails(data json.RawMessage) (*ReportReasonPersonalDetails, error)
func (*ReportReasonPersonalDetails) GetClass ¶ added in v1.2.3
func (*ReportReasonPersonalDetails) GetClass() string
func (*ReportReasonPersonalDetails) GetType ¶ added in v1.2.3
func (*ReportReasonPersonalDetails) GetType() string
func (*ReportReasonPersonalDetails) MarshalJSON ¶ added in v1.2.3
func (entity *ReportReasonPersonalDetails) MarshalJSON() ([]byte, error)
func (*ReportReasonPersonalDetails) ReportReasonType ¶ added in v1.2.3
func (*ReportReasonPersonalDetails) ReportReasonType() string
type ReportReasonPornography ¶ added in v1.2.3
type ReportReasonPornography struct {
// contains filtered or unexported fields
}
The chat contains pornographic messages
func UnmarshalReportReasonPornography ¶ added in v1.2.3
func UnmarshalReportReasonPornography(data json.RawMessage) (*ReportReasonPornography, error)
func (*ReportReasonPornography) GetClass ¶ added in v1.2.3
func (*ReportReasonPornography) GetClass() string
func (*ReportReasonPornography) GetType ¶ added in v1.2.3
func (*ReportReasonPornography) GetType() string
func (*ReportReasonPornography) MarshalJSON ¶ added in v1.2.3
func (entity *ReportReasonPornography) MarshalJSON() ([]byte, error)
func (*ReportReasonPornography) ReportReasonType ¶ added in v1.2.3
func (*ReportReasonPornography) ReportReasonType() string
type ReportReasonSpam ¶ added in v1.2.3
type ReportReasonSpam struct {
// contains filtered or unexported fields
}
The chat contains spam messages
func UnmarshalReportReasonSpam ¶ added in v1.2.3
func UnmarshalReportReasonSpam(data json.RawMessage) (*ReportReasonSpam, error)
func (*ReportReasonSpam) GetClass ¶ added in v1.2.3
func (*ReportReasonSpam) GetClass() string
func (*ReportReasonSpam) GetType ¶ added in v1.2.3
func (*ReportReasonSpam) GetType() string
func (*ReportReasonSpam) MarshalJSON ¶ added in v1.2.3
func (entity *ReportReasonSpam) MarshalJSON() ([]byte, error)
func (*ReportReasonSpam) ReportReasonType ¶ added in v1.2.3
func (*ReportReasonSpam) ReportReasonType() string
type ReportReasonUnrelatedLocation ¶ added in v1.2.3
type ReportReasonUnrelatedLocation struct {
// contains filtered or unexported fields
}
The location-based chat is unrelated to its stated location
func UnmarshalReportReasonUnrelatedLocation ¶ added in v1.2.3
func UnmarshalReportReasonUnrelatedLocation(data json.RawMessage) (*ReportReasonUnrelatedLocation, error)
func (*ReportReasonUnrelatedLocation) GetClass ¶ added in v1.2.3
func (*ReportReasonUnrelatedLocation) GetClass() string
func (*ReportReasonUnrelatedLocation) GetType ¶ added in v1.2.3
func (*ReportReasonUnrelatedLocation) GetType() string
func (*ReportReasonUnrelatedLocation) MarshalJSON ¶ added in v1.2.3
func (entity *ReportReasonUnrelatedLocation) MarshalJSON() ([]byte, error)
func (*ReportReasonUnrelatedLocation) ReportReasonType ¶ added in v1.2.3
func (*ReportReasonUnrelatedLocation) ReportReasonType() string
type ReportReasonViolence ¶ added in v1.2.3
type ReportReasonViolence struct {
// contains filtered or unexported fields
}
The chat promotes violence
func UnmarshalReportReasonViolence ¶ added in v1.2.3
func UnmarshalReportReasonViolence(data json.RawMessage) (*ReportReasonViolence, error)
func (*ReportReasonViolence) GetClass ¶ added in v1.2.3
func (*ReportReasonViolence) GetClass() string
func (*ReportReasonViolence) GetType ¶ added in v1.2.3
func (*ReportReasonViolence) GetType() string
func (*ReportReasonViolence) MarshalJSON ¶ added in v1.2.3
func (entity *ReportReasonViolence) MarshalJSON() ([]byte, error)
func (*ReportReasonViolence) ReportReasonType ¶ added in v1.2.3
func (*ReportReasonViolence) ReportReasonType() string
type ReportStoryRequest ¶ added in v1.2.3
type ReportStoryRequest struct { // The identifier of the sender of the story to report StorySenderChatId int64 `json:"story_sender_chat_id"` // The identifier of the story to report StoryId int32 `json:"story_id"` // The reason for reporting the story Reason ReportReason `json:"reason"` // Additional report details; 0-1024 characters Text string `json:"text"` }
type ReportSupergroupAntiSpamFalsePositiveRequest ¶ added in v1.2.3
type Request ¶
type Request struct { Data map[string]interface{} // contains filtered or unexported fields }
func (Request) MarshalJSON ¶
type RequestQrCodeAuthenticationRequest ¶
type RequestQrCodeAuthenticationRequest struct { // List of user identifiers of other users currently using the application OtherUserIds []int64 `json:"other_user_ids"` }
type ResendMessagesRequest ¶
type ResetPasswordResult ¶
type ResetPasswordResult interface {
ResetPasswordResultType() string
}
Represents result of 2-step verification password reset
func UnmarshalListOfResetPasswordResult ¶
func UnmarshalListOfResetPasswordResult(dataList []json.RawMessage) ([]ResetPasswordResult, error)
func UnmarshalResetPasswordResult ¶
func UnmarshalResetPasswordResult(data json.RawMessage) (ResetPasswordResult, error)
type ResetPasswordResultDeclined ¶
type ResetPasswordResultDeclined struct { // Point in time (Unix timestamp) when the password reset can be retried RetryDate int32 `json:"retry_date"` // contains filtered or unexported fields }
The password reset request was declined
func UnmarshalResetPasswordResultDeclined ¶
func UnmarshalResetPasswordResultDeclined(data json.RawMessage) (*ResetPasswordResultDeclined, error)
func (*ResetPasswordResultDeclined) GetClass ¶
func (*ResetPasswordResultDeclined) GetClass() string
func (*ResetPasswordResultDeclined) GetType ¶
func (*ResetPasswordResultDeclined) GetType() string
func (*ResetPasswordResultDeclined) MarshalJSON ¶
func (entity *ResetPasswordResultDeclined) MarshalJSON() ([]byte, error)
func (*ResetPasswordResultDeclined) ResetPasswordResultType ¶
func (*ResetPasswordResultDeclined) ResetPasswordResultType() string
type ResetPasswordResultOk ¶
type ResetPasswordResultOk struct {
// contains filtered or unexported fields
}
The password was reset
func UnmarshalResetPasswordResultOk ¶
func UnmarshalResetPasswordResultOk(data json.RawMessage) (*ResetPasswordResultOk, error)
func (*ResetPasswordResultOk) GetClass ¶
func (*ResetPasswordResultOk) GetClass() string
func (*ResetPasswordResultOk) GetType ¶
func (*ResetPasswordResultOk) GetType() string
func (*ResetPasswordResultOk) MarshalJSON ¶
func (entity *ResetPasswordResultOk) MarshalJSON() ([]byte, error)
func (*ResetPasswordResultOk) ResetPasswordResultType ¶
func (*ResetPasswordResultOk) ResetPasswordResultType() string
type ResetPasswordResultPending ¶
type ResetPasswordResultPending struct { // Point in time (Unix timestamp) after which the password can be reset immediately using resetPassword PendingResetDate int32 `json:"pending_reset_date"` // contains filtered or unexported fields }
The password reset request is pending
func UnmarshalResetPasswordResultPending ¶
func UnmarshalResetPasswordResultPending(data json.RawMessage) (*ResetPasswordResultPending, error)
func (*ResetPasswordResultPending) GetClass ¶
func (*ResetPasswordResultPending) GetClass() string
func (*ResetPasswordResultPending) GetType ¶
func (*ResetPasswordResultPending) GetType() string
func (*ResetPasswordResultPending) MarshalJSON ¶
func (entity *ResetPasswordResultPending) MarshalJSON() ([]byte, error)
func (*ResetPasswordResultPending) ResetPasswordResultType ¶
func (*ResetPasswordResultPending) ResetPasswordResultType() string
type Response ¶
type Response struct { Data json.RawMessage // contains filtered or unexported fields }
type ResponseError ¶
type ResponseError struct {
Err *Error
}
func (ResponseError) Error ¶
func (responseError ResponseError) Error() string
type RevokeGroupCallInviteLinkRequest ¶
type RevokeGroupCallInviteLinkRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` }
type RichText ¶
type RichText interface {
RichTextType() string
}
Describes a text object inside an instant-view web page
func UnmarshalListOfRichText ¶
func UnmarshalListOfRichText(dataList []json.RawMessage) ([]RichText, error)
func UnmarshalRichText ¶
func UnmarshalRichText(data json.RawMessage) (RichText, error)
type RichTextAnchor ¶
type RichTextAnchor struct { // Anchor name Name string `json:"name"` // contains filtered or unexported fields }
An anchor
func UnmarshalRichTextAnchor ¶
func UnmarshalRichTextAnchor(data json.RawMessage) (*RichTextAnchor, error)
func (*RichTextAnchor) GetClass ¶
func (*RichTextAnchor) GetClass() string
func (*RichTextAnchor) GetType ¶
func (*RichTextAnchor) GetType() string
func (*RichTextAnchor) MarshalJSON ¶
func (entity *RichTextAnchor) MarshalJSON() ([]byte, error)
func (*RichTextAnchor) RichTextType ¶
func (*RichTextAnchor) RichTextType() string
type RichTextAnchorLink ¶
type RichTextAnchorLink struct { // The link text Text RichText `json:"text"` // The anchor name. If the name is empty, the link must bring back to top AnchorName string `json:"anchor_name"` // An HTTP URL, opening the anchor Url string `json:"url"` // contains filtered or unexported fields }
A link to an anchor on the same web page
func UnmarshalRichTextAnchorLink ¶
func UnmarshalRichTextAnchorLink(data json.RawMessage) (*RichTextAnchorLink, error)
func (*RichTextAnchorLink) GetClass ¶
func (*RichTextAnchorLink) GetClass() string
func (*RichTextAnchorLink) GetType ¶
func (*RichTextAnchorLink) GetType() string
func (*RichTextAnchorLink) MarshalJSON ¶
func (entity *RichTextAnchorLink) MarshalJSON() ([]byte, error)
func (*RichTextAnchorLink) RichTextType ¶
func (*RichTextAnchorLink) RichTextType() string
func (*RichTextAnchorLink) UnmarshalJSON ¶
func (richTextAnchorLink *RichTextAnchorLink) UnmarshalJSON(data []byte) error
type RichTextBold ¶
type RichTextBold struct { // Text Text RichText `json:"text"` // contains filtered or unexported fields }
A bold rich text
func UnmarshalRichTextBold ¶
func UnmarshalRichTextBold(data json.RawMessage) (*RichTextBold, error)
func (*RichTextBold) GetClass ¶
func (*RichTextBold) GetClass() string
func (*RichTextBold) GetType ¶
func (*RichTextBold) GetType() string
func (*RichTextBold) MarshalJSON ¶
func (entity *RichTextBold) MarshalJSON() ([]byte, error)
func (*RichTextBold) RichTextType ¶
func (*RichTextBold) RichTextType() string
func (*RichTextBold) UnmarshalJSON ¶
func (richTextBold *RichTextBold) UnmarshalJSON(data []byte) error
type RichTextEmailAddress ¶
type RichTextEmailAddress struct { // Text Text RichText `json:"text"` // Email address EmailAddress string `json:"email_address"` // contains filtered or unexported fields }
A rich text email link
func UnmarshalRichTextEmailAddress ¶
func UnmarshalRichTextEmailAddress(data json.RawMessage) (*RichTextEmailAddress, error)
func (*RichTextEmailAddress) GetClass ¶
func (*RichTextEmailAddress) GetClass() string
func (*RichTextEmailAddress) GetType ¶
func (*RichTextEmailAddress) GetType() string
func (*RichTextEmailAddress) MarshalJSON ¶
func (entity *RichTextEmailAddress) MarshalJSON() ([]byte, error)
func (*RichTextEmailAddress) RichTextType ¶
func (*RichTextEmailAddress) RichTextType() string
func (*RichTextEmailAddress) UnmarshalJSON ¶
func (richTextEmailAddress *RichTextEmailAddress) UnmarshalJSON(data []byte) error
type RichTextFixed ¶
type RichTextFixed struct { // Text Text RichText `json:"text"` // contains filtered or unexported fields }
A fixed-width rich text
func UnmarshalRichTextFixed ¶
func UnmarshalRichTextFixed(data json.RawMessage) (*RichTextFixed, error)
func (*RichTextFixed) GetClass ¶
func (*RichTextFixed) GetClass() string
func (*RichTextFixed) GetType ¶
func (*RichTextFixed) GetType() string
func (*RichTextFixed) MarshalJSON ¶
func (entity *RichTextFixed) MarshalJSON() ([]byte, error)
func (*RichTextFixed) RichTextType ¶
func (*RichTextFixed) RichTextType() string
func (*RichTextFixed) UnmarshalJSON ¶
func (richTextFixed *RichTextFixed) UnmarshalJSON(data []byte) error
type RichTextIcon ¶
type RichTextIcon struct { // The image represented as a document. The image can be in GIF, JPEG or PNG format Document *Document `json:"document"` // Width of a bounding box in which the image must be shown; 0 if unknown Width int32 `json:"width"` // Height of a bounding box in which the image must be shown; 0 if unknown Height int32 `json:"height"` // contains filtered or unexported fields }
A small image inside the text
func UnmarshalRichTextIcon ¶
func UnmarshalRichTextIcon(data json.RawMessage) (*RichTextIcon, error)
func (*RichTextIcon) GetClass ¶
func (*RichTextIcon) GetClass() string
func (*RichTextIcon) GetType ¶
func (*RichTextIcon) GetType() string
func (*RichTextIcon) MarshalJSON ¶
func (entity *RichTextIcon) MarshalJSON() ([]byte, error)
func (*RichTextIcon) RichTextType ¶
func (*RichTextIcon) RichTextType() string
type RichTextItalic ¶
type RichTextItalic struct { // Text Text RichText `json:"text"` // contains filtered or unexported fields }
An italicized rich text
func UnmarshalRichTextItalic ¶
func UnmarshalRichTextItalic(data json.RawMessage) (*RichTextItalic, error)
func (*RichTextItalic) GetClass ¶
func (*RichTextItalic) GetClass() string
func (*RichTextItalic) GetType ¶
func (*RichTextItalic) GetType() string
func (*RichTextItalic) MarshalJSON ¶
func (entity *RichTextItalic) MarshalJSON() ([]byte, error)
func (*RichTextItalic) RichTextType ¶
func (*RichTextItalic) RichTextType() string
func (*RichTextItalic) UnmarshalJSON ¶
func (richTextItalic *RichTextItalic) UnmarshalJSON(data []byte) error
type RichTextMarked ¶
type RichTextMarked struct { // Text Text RichText `json:"text"` // contains filtered or unexported fields }
A marked rich text
func UnmarshalRichTextMarked ¶
func UnmarshalRichTextMarked(data json.RawMessage) (*RichTextMarked, error)
func (*RichTextMarked) GetClass ¶
func (*RichTextMarked) GetClass() string
func (*RichTextMarked) GetType ¶
func (*RichTextMarked) GetType() string
func (*RichTextMarked) MarshalJSON ¶
func (entity *RichTextMarked) MarshalJSON() ([]byte, error)
func (*RichTextMarked) RichTextType ¶
func (*RichTextMarked) RichTextType() string
func (*RichTextMarked) UnmarshalJSON ¶
func (richTextMarked *RichTextMarked) UnmarshalJSON(data []byte) error
type RichTextPhoneNumber ¶
type RichTextPhoneNumber struct { // Text Text RichText `json:"text"` // Phone number PhoneNumber string `json:"phone_number"` // contains filtered or unexported fields }
A rich text phone number
func UnmarshalRichTextPhoneNumber ¶
func UnmarshalRichTextPhoneNumber(data json.RawMessage) (*RichTextPhoneNumber, error)
func (*RichTextPhoneNumber) GetClass ¶
func (*RichTextPhoneNumber) GetClass() string
func (*RichTextPhoneNumber) GetType ¶
func (*RichTextPhoneNumber) GetType() string
func (*RichTextPhoneNumber) MarshalJSON ¶
func (entity *RichTextPhoneNumber) MarshalJSON() ([]byte, error)
func (*RichTextPhoneNumber) RichTextType ¶
func (*RichTextPhoneNumber) RichTextType() string
func (*RichTextPhoneNumber) UnmarshalJSON ¶
func (richTextPhoneNumber *RichTextPhoneNumber) UnmarshalJSON(data []byte) error
type RichTextPlain ¶
type RichTextPlain struct { // Text Text string `json:"text"` // contains filtered or unexported fields }
A plain text
func UnmarshalRichTextPlain ¶
func UnmarshalRichTextPlain(data json.RawMessage) (*RichTextPlain, error)
func (*RichTextPlain) GetClass ¶
func (*RichTextPlain) GetClass() string
func (*RichTextPlain) GetType ¶
func (*RichTextPlain) GetType() string
func (*RichTextPlain) MarshalJSON ¶
func (entity *RichTextPlain) MarshalJSON() ([]byte, error)
func (*RichTextPlain) RichTextType ¶
func (*RichTextPlain) RichTextType() string
type RichTextReference ¶
type RichTextReference struct { // The text Text RichText `json:"text"` // The name of a richTextAnchor object, which is the first element of the target richTexts object AnchorName string `json:"anchor_name"` // An HTTP URL, opening the reference Url string `json:"url"` // contains filtered or unexported fields }
A reference to a richTexts object on the same web page
func UnmarshalRichTextReference ¶
func UnmarshalRichTextReference(data json.RawMessage) (*RichTextReference, error)
func (*RichTextReference) GetClass ¶
func (*RichTextReference) GetClass() string
func (*RichTextReference) GetType ¶
func (*RichTextReference) GetType() string
func (*RichTextReference) MarshalJSON ¶
func (entity *RichTextReference) MarshalJSON() ([]byte, error)
func (*RichTextReference) RichTextType ¶
func (*RichTextReference) RichTextType() string
func (*RichTextReference) UnmarshalJSON ¶
func (richTextReference *RichTextReference) UnmarshalJSON(data []byte) error
type RichTextStrikethrough ¶
type RichTextStrikethrough struct { // Text Text RichText `json:"text"` // contains filtered or unexported fields }
A strikethrough rich text
func UnmarshalRichTextStrikethrough ¶
func UnmarshalRichTextStrikethrough(data json.RawMessage) (*RichTextStrikethrough, error)
func (*RichTextStrikethrough) GetClass ¶
func (*RichTextStrikethrough) GetClass() string
func (*RichTextStrikethrough) GetType ¶
func (*RichTextStrikethrough) GetType() string
func (*RichTextStrikethrough) MarshalJSON ¶
func (entity *RichTextStrikethrough) MarshalJSON() ([]byte, error)
func (*RichTextStrikethrough) RichTextType ¶
func (*RichTextStrikethrough) RichTextType() string
func (*RichTextStrikethrough) UnmarshalJSON ¶
func (richTextStrikethrough *RichTextStrikethrough) UnmarshalJSON(data []byte) error
type RichTextSubscript ¶
type RichTextSubscript struct { // Text Text RichText `json:"text"` // contains filtered or unexported fields }
A subscript rich text
func UnmarshalRichTextSubscript ¶
func UnmarshalRichTextSubscript(data json.RawMessage) (*RichTextSubscript, error)
func (*RichTextSubscript) GetClass ¶
func (*RichTextSubscript) GetClass() string
func (*RichTextSubscript) GetType ¶
func (*RichTextSubscript) GetType() string
func (*RichTextSubscript) MarshalJSON ¶
func (entity *RichTextSubscript) MarshalJSON() ([]byte, error)
func (*RichTextSubscript) RichTextType ¶
func (*RichTextSubscript) RichTextType() string
func (*RichTextSubscript) UnmarshalJSON ¶
func (richTextSubscript *RichTextSubscript) UnmarshalJSON(data []byte) error
type RichTextSuperscript ¶
type RichTextSuperscript struct { // Text Text RichText `json:"text"` // contains filtered or unexported fields }
A superscript rich text
func UnmarshalRichTextSuperscript ¶
func UnmarshalRichTextSuperscript(data json.RawMessage) (*RichTextSuperscript, error)
func (*RichTextSuperscript) GetClass ¶
func (*RichTextSuperscript) GetClass() string
func (*RichTextSuperscript) GetType ¶
func (*RichTextSuperscript) GetType() string
func (*RichTextSuperscript) MarshalJSON ¶
func (entity *RichTextSuperscript) MarshalJSON() ([]byte, error)
func (*RichTextSuperscript) RichTextType ¶
func (*RichTextSuperscript) RichTextType() string
func (*RichTextSuperscript) UnmarshalJSON ¶
func (richTextSuperscript *RichTextSuperscript) UnmarshalJSON(data []byte) error
type RichTextUnderline ¶
type RichTextUnderline struct { // Text Text RichText `json:"text"` // contains filtered or unexported fields }
An underlined rich text
func UnmarshalRichTextUnderline ¶
func UnmarshalRichTextUnderline(data json.RawMessage) (*RichTextUnderline, error)
func (*RichTextUnderline) GetClass ¶
func (*RichTextUnderline) GetClass() string
func (*RichTextUnderline) GetType ¶
func (*RichTextUnderline) GetType() string
func (*RichTextUnderline) MarshalJSON ¶
func (entity *RichTextUnderline) MarshalJSON() ([]byte, error)
func (*RichTextUnderline) RichTextType ¶
func (*RichTextUnderline) RichTextType() string
func (*RichTextUnderline) UnmarshalJSON ¶
func (richTextUnderline *RichTextUnderline) UnmarshalJSON(data []byte) error
type RichTextUrl ¶
type RichTextUrl struct { // Text Text RichText `json:"text"` // URL Url string `json:"url"` // True, if the URL has cached instant view server-side IsCached bool `json:"is_cached"` // contains filtered or unexported fields }
A rich text URL link
func UnmarshalRichTextUrl ¶
func UnmarshalRichTextUrl(data json.RawMessage) (*RichTextUrl, error)
func (*RichTextUrl) GetClass ¶
func (*RichTextUrl) GetClass() string
func (*RichTextUrl) GetType ¶
func (*RichTextUrl) GetType() string
func (*RichTextUrl) MarshalJSON ¶
func (entity *RichTextUrl) MarshalJSON() ([]byte, error)
func (*RichTextUrl) RichTextType ¶
func (*RichTextUrl) RichTextType() string
func (*RichTextUrl) UnmarshalJSON ¶
func (richTextUrl *RichTextUrl) UnmarshalJSON(data []byte) error
type RichTexts ¶
type RichTexts struct { // Texts Texts []RichText `json:"texts"` // contains filtered or unexported fields }
A concatenation of rich texts
func UnmarshalRichTexts ¶
func UnmarshalRichTexts(data json.RawMessage) (*RichTexts, error)
func (*RichTexts) MarshalJSON ¶
func (*RichTexts) RichTextType ¶
func (*RichTexts) UnmarshalJSON ¶
type RtmpUrl ¶ added in v1.0.6
type RtmpUrl struct { // The URL Url string `json:"url"` // Stream key StreamKey string `json:"stream_key"` // contains filtered or unexported fields }
Represents an RTMP URL
func UnmarshalRtmpUrl ¶ added in v1.0.6
func UnmarshalRtmpUrl(data json.RawMessage) (*RtmpUrl, error)
func (*RtmpUrl) MarshalJSON ¶ added in v1.0.6
type SavedCredentials ¶
type SavedCredentials struct { // Unique identifier of the saved credentials Id string `json:"id"` // Title of the saved credentials Title string `json:"title"` // contains filtered or unexported fields }
Contains information about saved payment credentials
func UnmarshalSavedCredentials ¶
func UnmarshalSavedCredentials(data json.RawMessage) (*SavedCredentials, error)
func (*SavedCredentials) GetClass ¶
func (*SavedCredentials) GetClass() string
func (*SavedCredentials) GetType ¶
func (*SavedCredentials) GetType() string
func (*SavedCredentials) MarshalJSON ¶
func (entity *SavedCredentials) MarshalJSON() ([]byte, error)
type ScopeAutosaveSettings ¶ added in v1.2.3
type ScopeAutosaveSettings struct { // True, if photo autosave is enabled AutosavePhotos bool `json:"autosave_photos"` // True, if video autosave is enabled AutosaveVideos bool `json:"autosave_videos"` // The maximum size of a video file to be autosaved, in bytes; 512 KB - 4000 MB MaxVideoFileSize int64 `json:"max_video_file_size"` // contains filtered or unexported fields }
Contains autosave settings for an autosave settings scope
func UnmarshalScopeAutosaveSettings ¶ added in v1.2.3
func UnmarshalScopeAutosaveSettings(data json.RawMessage) (*ScopeAutosaveSettings, error)
func (*ScopeAutosaveSettings) GetClass ¶ added in v1.2.3
func (*ScopeAutosaveSettings) GetClass() string
func (*ScopeAutosaveSettings) GetType ¶ added in v1.2.3
func (*ScopeAutosaveSettings) GetType() string
func (*ScopeAutosaveSettings) MarshalJSON ¶ added in v1.2.3
func (entity *ScopeAutosaveSettings) MarshalJSON() ([]byte, error)
type ScopeNotificationSettings ¶
type ScopeNotificationSettings struct { // Time left before notifications will be unmuted, in seconds MuteFor int32 `json:"mute_for"` // Identifier of the notification sound to be played; 0 if sound is disabled SoundId JsonInt64 `json:"sound_id"` // True, if message content must be displayed in notifications ShowPreview bool `json:"show_preview"` // If true, mute_stories is ignored and story notifications are received only for the first 5 chats from topChatCategoryUsers UseDefaultMuteStories bool `json:"use_default_mute_stories"` // True, if story notifications are disabled for the chat MuteStories bool `json:"mute_stories"` // Identifier of the notification sound to be played for stories; 0 if sound is disabled StorySoundId JsonInt64 `json:"story_sound_id"` // True, if the sender of stories must be displayed in notifications ShowStorySender bool `json:"show_story_sender"` // True, if notifications for incoming pinned messages will be created as for an ordinary unread message DisablePinnedMessageNotifications bool `json:"disable_pinned_message_notifications"` // True, if notifications for messages with mentions will be created as for an ordinary unread message DisableMentionNotifications bool `json:"disable_mention_notifications"` // contains filtered or unexported fields }
Contains information about notification settings for several chats
func UnmarshalScopeNotificationSettings ¶
func UnmarshalScopeNotificationSettings(data json.RawMessage) (*ScopeNotificationSettings, error)
func (*ScopeNotificationSettings) GetClass ¶
func (*ScopeNotificationSettings) GetClass() string
func (*ScopeNotificationSettings) GetType ¶
func (*ScopeNotificationSettings) GetType() string
func (*ScopeNotificationSettings) MarshalJSON ¶
func (entity *ScopeNotificationSettings) MarshalJSON() ([]byte, error)
type SearchBackgroundRequest ¶
type SearchBackgroundRequest struct { // The name of the background Name string `json:"name"` }
type SearchCallMessagesRequest ¶
type SearchCallMessagesRequest struct { // Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results Offset string `json:"offset"` // The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit Limit int32 `json:"limit"` // Pass true to search only for messages with missed/declined calls OnlyMissed bool `json:"only_missed"` }
type SearchChatMembersRequest ¶
type SearchChatMembersRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Query to search for Query string `json:"query"` // The maximum number of users to be returned; up to 200 Limit int32 `json:"limit"` // The type of users to search for; pass null to search among all chat members Filter ChatMembersFilter `json:"filter"` }
type SearchChatMessagesRequest ¶
type SearchChatMessagesRequest struct { // Identifier of the chat in which to search messages ChatId int64 `json:"chat_id"` // Query to search for Query string `json:"query"` // Identifier of the sender of messages to search for; pass null to search for messages from any sender. Not supported in secret chats SenderId MessageSender `json:"sender_id"` // Identifier of the message starting from which history must be fetched; use 0 to get results from the last message FromMessageId int64 `json:"from_message_id"` // Specify 0 to get results from exactly the from_message_id or a negative offset to get the specified message and some newer messages Offset int32 `json:"offset"` // The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit Limit int32 `json:"limit"` // Additional filter for messages to search; pass null to search for all messages Filter SearchMessagesFilter `json:"filter"` // If not 0, only messages in the specified thread will be returned; supergroups only MessageThreadId int64 `json:"message_thread_id"` }
type SearchChatsNearbyRequest ¶
type SearchChatsNearbyRequest struct { // Current user location Location *Location `json:"location"` }
type SearchChatsRequest ¶
type SearchContactsRequest ¶
type SearchEmojisRequest ¶
type SearchEmojisRequest struct { // Text to search for Text string `json:"text"` // Pass true if only emojis, which exactly match the text, needs to be returned ExactMatch bool `json:"exact_match"` // List of possible IETF language tags of the user's input language; may be empty if unknown InputLanguageCodes []string `json:"input_language_codes"` }
type SearchFileDownloadsRequest ¶ added in v1.0.6
type SearchFileDownloadsRequest struct { // Query to search for; may be empty to return all downloaded files Query string `json:"query"` // Pass true to search only for active downloads, including paused OnlyActive bool `json:"only_active"` // Pass true to search only for completed downloads OnlyCompleted bool `json:"only_completed"` // Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results Offset string `json:"offset"` // The maximum number of files to be returned Limit int32 `json:"limit"` }
type SearchHashtagsRequest ¶
type SearchInstalledStickerSetsRequest ¶
type SearchInstalledStickerSetsRequest struct { // Type of the sticker sets to search for StickerType StickerType `json:"sticker_type"` // Query to search for Query string `json:"query"` // The maximum number of sticker sets to return Limit int32 `json:"limit"` }
type SearchMessagesFilter ¶
type SearchMessagesFilter interface {
SearchMessagesFilterType() string
}
Represents a filter for message search results
func UnmarshalListOfSearchMessagesFilter ¶
func UnmarshalListOfSearchMessagesFilter(dataList []json.RawMessage) ([]SearchMessagesFilter, error)
func UnmarshalSearchMessagesFilter ¶
func UnmarshalSearchMessagesFilter(data json.RawMessage) (SearchMessagesFilter, error)
type SearchMessagesFilterAnimation ¶
type SearchMessagesFilterAnimation struct {
// contains filtered or unexported fields
}
Returns only animation messages
func UnmarshalSearchMessagesFilterAnimation ¶
func UnmarshalSearchMessagesFilterAnimation(data json.RawMessage) (*SearchMessagesFilterAnimation, error)
func (*SearchMessagesFilterAnimation) GetClass ¶
func (*SearchMessagesFilterAnimation) GetClass() string
func (*SearchMessagesFilterAnimation) GetType ¶
func (*SearchMessagesFilterAnimation) GetType() string
func (*SearchMessagesFilterAnimation) MarshalJSON ¶
func (entity *SearchMessagesFilterAnimation) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterAnimation) SearchMessagesFilterType ¶
func (*SearchMessagesFilterAnimation) SearchMessagesFilterType() string
type SearchMessagesFilterAudio ¶
type SearchMessagesFilterAudio struct {
// contains filtered or unexported fields
}
Returns only audio messages
func UnmarshalSearchMessagesFilterAudio ¶
func UnmarshalSearchMessagesFilterAudio(data json.RawMessage) (*SearchMessagesFilterAudio, error)
func (*SearchMessagesFilterAudio) GetClass ¶
func (*SearchMessagesFilterAudio) GetClass() string
func (*SearchMessagesFilterAudio) GetType ¶
func (*SearchMessagesFilterAudio) GetType() string
func (*SearchMessagesFilterAudio) MarshalJSON ¶
func (entity *SearchMessagesFilterAudio) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterAudio) SearchMessagesFilterType ¶
func (*SearchMessagesFilterAudio) SearchMessagesFilterType() string
type SearchMessagesFilterChatPhoto ¶
type SearchMessagesFilterChatPhoto struct {
// contains filtered or unexported fields
}
Returns only messages containing chat photos
func UnmarshalSearchMessagesFilterChatPhoto ¶
func UnmarshalSearchMessagesFilterChatPhoto(data json.RawMessage) (*SearchMessagesFilterChatPhoto, error)
func (*SearchMessagesFilterChatPhoto) GetClass ¶
func (*SearchMessagesFilterChatPhoto) GetClass() string
func (*SearchMessagesFilterChatPhoto) GetType ¶
func (*SearchMessagesFilterChatPhoto) GetType() string
func (*SearchMessagesFilterChatPhoto) MarshalJSON ¶
func (entity *SearchMessagesFilterChatPhoto) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterChatPhoto) SearchMessagesFilterType ¶
func (*SearchMessagesFilterChatPhoto) SearchMessagesFilterType() string
type SearchMessagesFilterDocument ¶
type SearchMessagesFilterDocument struct {
// contains filtered or unexported fields
}
Returns only document messages
func UnmarshalSearchMessagesFilterDocument ¶
func UnmarshalSearchMessagesFilterDocument(data json.RawMessage) (*SearchMessagesFilterDocument, error)
func (*SearchMessagesFilterDocument) GetClass ¶
func (*SearchMessagesFilterDocument) GetClass() string
func (*SearchMessagesFilterDocument) GetType ¶
func (*SearchMessagesFilterDocument) GetType() string
func (*SearchMessagesFilterDocument) MarshalJSON ¶
func (entity *SearchMessagesFilterDocument) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterDocument) SearchMessagesFilterType ¶
func (*SearchMessagesFilterDocument) SearchMessagesFilterType() string
type SearchMessagesFilterEmpty ¶
type SearchMessagesFilterEmpty struct {
// contains filtered or unexported fields
}
Returns all found messages, no filter is applied
func UnmarshalSearchMessagesFilterEmpty ¶
func UnmarshalSearchMessagesFilterEmpty(data json.RawMessage) (*SearchMessagesFilterEmpty, error)
func (*SearchMessagesFilterEmpty) GetClass ¶
func (*SearchMessagesFilterEmpty) GetClass() string
func (*SearchMessagesFilterEmpty) GetType ¶
func (*SearchMessagesFilterEmpty) GetType() string
func (*SearchMessagesFilterEmpty) MarshalJSON ¶
func (entity *SearchMessagesFilterEmpty) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterEmpty) SearchMessagesFilterType ¶
func (*SearchMessagesFilterEmpty) SearchMessagesFilterType() string
type SearchMessagesFilterFailedToSend ¶
type SearchMessagesFilterFailedToSend struct {
// contains filtered or unexported fields
}
Returns only failed to send messages. This filter can be used only if the message database is used
func UnmarshalSearchMessagesFilterFailedToSend ¶
func UnmarshalSearchMessagesFilterFailedToSend(data json.RawMessage) (*SearchMessagesFilterFailedToSend, error)
func (*SearchMessagesFilterFailedToSend) GetClass ¶
func (*SearchMessagesFilterFailedToSend) GetClass() string
func (*SearchMessagesFilterFailedToSend) GetType ¶
func (*SearchMessagesFilterFailedToSend) GetType() string
func (*SearchMessagesFilterFailedToSend) MarshalJSON ¶
func (entity *SearchMessagesFilterFailedToSend) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterFailedToSend) SearchMessagesFilterType ¶
func (*SearchMessagesFilterFailedToSend) SearchMessagesFilterType() string
type SearchMessagesFilterMention ¶
type SearchMessagesFilterMention struct {
// contains filtered or unexported fields
}
Returns only messages with mentions of the current user, or messages that are replies to their messages
func UnmarshalSearchMessagesFilterMention ¶
func UnmarshalSearchMessagesFilterMention(data json.RawMessage) (*SearchMessagesFilterMention, error)
func (*SearchMessagesFilterMention) GetClass ¶
func (*SearchMessagesFilterMention) GetClass() string
func (*SearchMessagesFilterMention) GetType ¶
func (*SearchMessagesFilterMention) GetType() string
func (*SearchMessagesFilterMention) MarshalJSON ¶
func (entity *SearchMessagesFilterMention) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterMention) SearchMessagesFilterType ¶
func (*SearchMessagesFilterMention) SearchMessagesFilterType() string
type SearchMessagesFilterPhoto ¶
type SearchMessagesFilterPhoto struct {
// contains filtered or unexported fields
}
Returns only photo messages
func UnmarshalSearchMessagesFilterPhoto ¶
func UnmarshalSearchMessagesFilterPhoto(data json.RawMessage) (*SearchMessagesFilterPhoto, error)
func (*SearchMessagesFilterPhoto) GetClass ¶
func (*SearchMessagesFilterPhoto) GetClass() string
func (*SearchMessagesFilterPhoto) GetType ¶
func (*SearchMessagesFilterPhoto) GetType() string
func (*SearchMessagesFilterPhoto) MarshalJSON ¶
func (entity *SearchMessagesFilterPhoto) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterPhoto) SearchMessagesFilterType ¶
func (*SearchMessagesFilterPhoto) SearchMessagesFilterType() string
type SearchMessagesFilterPhotoAndVideo ¶
type SearchMessagesFilterPhotoAndVideo struct {
// contains filtered or unexported fields
}
Returns only photo and video messages
func UnmarshalSearchMessagesFilterPhotoAndVideo ¶
func UnmarshalSearchMessagesFilterPhotoAndVideo(data json.RawMessage) (*SearchMessagesFilterPhotoAndVideo, error)
func (*SearchMessagesFilterPhotoAndVideo) GetClass ¶
func (*SearchMessagesFilterPhotoAndVideo) GetClass() string
func (*SearchMessagesFilterPhotoAndVideo) GetType ¶
func (*SearchMessagesFilterPhotoAndVideo) GetType() string
func (*SearchMessagesFilterPhotoAndVideo) MarshalJSON ¶
func (entity *SearchMessagesFilterPhotoAndVideo) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterPhotoAndVideo) SearchMessagesFilterType ¶
func (*SearchMessagesFilterPhotoAndVideo) SearchMessagesFilterType() string
type SearchMessagesFilterPinned ¶
type SearchMessagesFilterPinned struct {
// contains filtered or unexported fields
}
Returns only pinned messages
func UnmarshalSearchMessagesFilterPinned ¶
func UnmarshalSearchMessagesFilterPinned(data json.RawMessage) (*SearchMessagesFilterPinned, error)
func (*SearchMessagesFilterPinned) GetClass ¶
func (*SearchMessagesFilterPinned) GetClass() string
func (*SearchMessagesFilterPinned) GetType ¶
func (*SearchMessagesFilterPinned) GetType() string
func (*SearchMessagesFilterPinned) MarshalJSON ¶
func (entity *SearchMessagesFilterPinned) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterPinned) SearchMessagesFilterType ¶
func (*SearchMessagesFilterPinned) SearchMessagesFilterType() string
type SearchMessagesFilterUnreadMention ¶
type SearchMessagesFilterUnreadMention struct {
// contains filtered or unexported fields
}
Returns only messages with unread mentions of the current user, or messages that are replies to their messages. When using this filter the results can't be additionally filtered by a query, a message thread or by the sending user
func UnmarshalSearchMessagesFilterUnreadMention ¶
func UnmarshalSearchMessagesFilterUnreadMention(data json.RawMessage) (*SearchMessagesFilterUnreadMention, error)
func (*SearchMessagesFilterUnreadMention) GetClass ¶
func (*SearchMessagesFilterUnreadMention) GetClass() string
func (*SearchMessagesFilterUnreadMention) GetType ¶
func (*SearchMessagesFilterUnreadMention) GetType() string
func (*SearchMessagesFilterUnreadMention) MarshalJSON ¶
func (entity *SearchMessagesFilterUnreadMention) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterUnreadMention) SearchMessagesFilterType ¶
func (*SearchMessagesFilterUnreadMention) SearchMessagesFilterType() string
type SearchMessagesFilterUnreadReaction ¶ added in v1.0.6
type SearchMessagesFilterUnreadReaction struct {
// contains filtered or unexported fields
}
Returns only messages with unread reactions for the current user. When using this filter the results can't be additionally filtered by a query, a message thread or by the sending user
func UnmarshalSearchMessagesFilterUnreadReaction ¶ added in v1.0.6
func UnmarshalSearchMessagesFilterUnreadReaction(data json.RawMessage) (*SearchMessagesFilterUnreadReaction, error)
func (*SearchMessagesFilterUnreadReaction) GetClass ¶ added in v1.0.6
func (*SearchMessagesFilterUnreadReaction) GetClass() string
func (*SearchMessagesFilterUnreadReaction) GetType ¶ added in v1.0.6
func (*SearchMessagesFilterUnreadReaction) GetType() string
func (*SearchMessagesFilterUnreadReaction) MarshalJSON ¶ added in v1.0.6
func (entity *SearchMessagesFilterUnreadReaction) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterUnreadReaction) SearchMessagesFilterType ¶ added in v1.0.6
func (*SearchMessagesFilterUnreadReaction) SearchMessagesFilterType() string
type SearchMessagesFilterUrl ¶
type SearchMessagesFilterUrl struct {
// contains filtered or unexported fields
}
Returns only messages containing URLs
func UnmarshalSearchMessagesFilterUrl ¶
func UnmarshalSearchMessagesFilterUrl(data json.RawMessage) (*SearchMessagesFilterUrl, error)
func (*SearchMessagesFilterUrl) GetClass ¶
func (*SearchMessagesFilterUrl) GetClass() string
func (*SearchMessagesFilterUrl) GetType ¶
func (*SearchMessagesFilterUrl) GetType() string
func (*SearchMessagesFilterUrl) MarshalJSON ¶
func (entity *SearchMessagesFilterUrl) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterUrl) SearchMessagesFilterType ¶
func (*SearchMessagesFilterUrl) SearchMessagesFilterType() string
type SearchMessagesFilterVideo ¶
type SearchMessagesFilterVideo struct {
// contains filtered or unexported fields
}
Returns only video messages
func UnmarshalSearchMessagesFilterVideo ¶
func UnmarshalSearchMessagesFilterVideo(data json.RawMessage) (*SearchMessagesFilterVideo, error)
func (*SearchMessagesFilterVideo) GetClass ¶
func (*SearchMessagesFilterVideo) GetClass() string
func (*SearchMessagesFilterVideo) GetType ¶
func (*SearchMessagesFilterVideo) GetType() string
func (*SearchMessagesFilterVideo) MarshalJSON ¶
func (entity *SearchMessagesFilterVideo) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterVideo) SearchMessagesFilterType ¶
func (*SearchMessagesFilterVideo) SearchMessagesFilterType() string
type SearchMessagesFilterVideoNote ¶
type SearchMessagesFilterVideoNote struct {
// contains filtered or unexported fields
}
Returns only video note messages
func UnmarshalSearchMessagesFilterVideoNote ¶
func UnmarshalSearchMessagesFilterVideoNote(data json.RawMessage) (*SearchMessagesFilterVideoNote, error)
func (*SearchMessagesFilterVideoNote) GetClass ¶
func (*SearchMessagesFilterVideoNote) GetClass() string
func (*SearchMessagesFilterVideoNote) GetType ¶
func (*SearchMessagesFilterVideoNote) GetType() string
func (*SearchMessagesFilterVideoNote) MarshalJSON ¶
func (entity *SearchMessagesFilterVideoNote) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterVideoNote) SearchMessagesFilterType ¶
func (*SearchMessagesFilterVideoNote) SearchMessagesFilterType() string
type SearchMessagesFilterVoiceAndVideoNote ¶
type SearchMessagesFilterVoiceAndVideoNote struct {
// contains filtered or unexported fields
}
Returns only voice and video note messages
func UnmarshalSearchMessagesFilterVoiceAndVideoNote ¶
func UnmarshalSearchMessagesFilterVoiceAndVideoNote(data json.RawMessage) (*SearchMessagesFilterVoiceAndVideoNote, error)
func (*SearchMessagesFilterVoiceAndVideoNote) GetClass ¶
func (*SearchMessagesFilterVoiceAndVideoNote) GetClass() string
func (*SearchMessagesFilterVoiceAndVideoNote) GetType ¶
func (*SearchMessagesFilterVoiceAndVideoNote) GetType() string
func (*SearchMessagesFilterVoiceAndVideoNote) MarshalJSON ¶
func (entity *SearchMessagesFilterVoiceAndVideoNote) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterVoiceAndVideoNote) SearchMessagesFilterType ¶
func (*SearchMessagesFilterVoiceAndVideoNote) SearchMessagesFilterType() string
type SearchMessagesFilterVoiceNote ¶
type SearchMessagesFilterVoiceNote struct {
// contains filtered or unexported fields
}
Returns only voice note messages
func UnmarshalSearchMessagesFilterVoiceNote ¶
func UnmarshalSearchMessagesFilterVoiceNote(data json.RawMessage) (*SearchMessagesFilterVoiceNote, error)
func (*SearchMessagesFilterVoiceNote) GetClass ¶
func (*SearchMessagesFilterVoiceNote) GetClass() string
func (*SearchMessagesFilterVoiceNote) GetType ¶
func (*SearchMessagesFilterVoiceNote) GetType() string
func (*SearchMessagesFilterVoiceNote) MarshalJSON ¶
func (entity *SearchMessagesFilterVoiceNote) MarshalJSON() ([]byte, error)
func (*SearchMessagesFilterVoiceNote) SearchMessagesFilterType ¶
func (*SearchMessagesFilterVoiceNote) SearchMessagesFilterType() string
type SearchMessagesRequest ¶
type SearchMessagesRequest struct { // Chat list in which to search messages; pass null to search in all chats regardless of their chat list. Only Main and Archive chat lists are supported ChatList ChatList `json:"chat_list"` // Query to search for Query string `json:"query"` // Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results Offset string `json:"offset"` // The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit Limit int32 `json:"limit"` // Additional filter for messages to search; pass null to search for all messages. Filters searchMessagesFilterMention, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, searchMessagesFilterFailedToSend, and searchMessagesFilterPinned are unsupported in this function Filter SearchMessagesFilter `json:"filter"` // If not 0, the minimum date of the messages to return MinDate int32 `json:"min_date"` // If not 0, the maximum date of the messages to return MaxDate int32 `json:"max_date"` }
type SearchOutgoingDocumentMessagesRequest ¶ added in v1.0.6
type SearchPublicChatRequest ¶
type SearchPublicChatRequest struct { // Username to be resolved Username string `json:"username"` }
type SearchPublicChatsRequest ¶
type SearchPublicChatsRequest struct { // Query to search for Query string `json:"query"` }
type SearchRecentlyFoundChatsRequest ¶ added in v1.2.3
type SearchSecretMessagesRequest ¶
type SearchSecretMessagesRequest struct { // Identifier of the chat in which to search. Specify 0 to search in all secret chats ChatId int64 `json:"chat_id"` // Query to search for. If empty, searchChatMessages must be used instead Query string `json:"query"` // Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results Offset string `json:"offset"` // The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit Limit int32 `json:"limit"` // Additional filter for messages to search; pass null to search for all messages Filter SearchMessagesFilter `json:"filter"` }
type SearchStickerSetRequest ¶
type SearchStickerSetRequest struct { // Name of the sticker set Name string `json:"name"` }
type SearchStickerSetsRequest ¶
type SearchStickerSetsRequest struct { // Query to search for Query string `json:"query"` }
type SearchStickersRequest ¶
type SearchStickersRequest struct { // Type of the stickers to return StickerType StickerType `json:"sticker_type"` // Space-separated list of emoji to search for; must be non-empty Emojis string `json:"emojis"` // The maximum number of stickers to be returned; 0-100 Limit int32 `json:"limit"` }
type SearchStringsByPrefixRequest ¶ added in v1.2.3
type SearchStringsByPrefixRequest struct { // The strings to search in for the query Strings []string `json:"strings"` // Query to search for Query string `json:"query"` // The maximum number of objects to return Limit int32 `json:"limit"` // Pass true to receive no results for an empty query ReturnNoneForEmptyQuery bool `json:"return_none_for_empty_query"` }
type SearchUserByPhoneNumberRequest ¶ added in v1.0.6
type SearchUserByPhoneNumberRequest struct { // Phone number to search for PhoneNumber string `json:"phone_number"` }
type SearchUserByTokenRequest ¶ added in v1.2.3
type SearchUserByTokenRequest struct { // Token to search for Token string `json:"token"` }
type SearchWebAppRequest ¶ added in v1.2.3
type Seconds ¶
type Seconds struct { // Number of seconds Seconds float64 `json:"seconds"` // contains filtered or unexported fields }
Contains a value representing a number of seconds
func UnmarshalSeconds ¶
func UnmarshalSeconds(data json.RawMessage) (*Seconds, error)
func (*Seconds) MarshalJSON ¶
type SecretChat ¶
type SecretChat struct { // Secret chat identifier Id int32 `json:"id"` // Identifier of the chat partner UserId int64 `json:"user_id"` // State of the secret chat State SecretChatState `json:"state"` // True, if the chat was created by the current user; false otherwise IsOutbound bool `json:"is_outbound"` // Hash of the currently used key for comparison with the hash of the chat partner's key. This is a string of 36 little-endian bytes, which must be split into groups of 2 bits, each denoting a pixel of one of 4 colors FFFFFF, D5E6F3, 2D5775, and 2F99C9. The pixels must be used to make a 12x12 square image filled from left to right, top to bottom. Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex numbers KeyHash []byte `json:"key_hash"` // Secret chat layer; determines features supported by the chat partner's application. Nested text entities and underline and strikethrough entities are supported if the layer >= 101, files bigger than 2000MB are supported if the layer >= 143, spoiler and custom emoji text entities are supported if the layer >= 144 Layer int32 `json:"layer"` // contains filtered or unexported fields }
Represents a secret chat
func UnmarshalSecretChat ¶
func UnmarshalSecretChat(data json.RawMessage) (*SecretChat, error)
func (*SecretChat) GetClass ¶
func (*SecretChat) GetClass() string
func (*SecretChat) GetType ¶
func (*SecretChat) GetType() string
func (*SecretChat) MarshalJSON ¶
func (entity *SecretChat) MarshalJSON() ([]byte, error)
func (*SecretChat) UnmarshalJSON ¶
func (secretChat *SecretChat) UnmarshalJSON(data []byte) error
type SecretChatState ¶
type SecretChatState interface {
SecretChatStateType() string
}
Describes the current secret chat state
func UnmarshalListOfSecretChatState ¶
func UnmarshalListOfSecretChatState(dataList []json.RawMessage) ([]SecretChatState, error)
func UnmarshalSecretChatState ¶
func UnmarshalSecretChatState(data json.RawMessage) (SecretChatState, error)
type SecretChatStateClosed ¶
type SecretChatStateClosed struct {
// contains filtered or unexported fields
}
The secret chat is closed
func UnmarshalSecretChatStateClosed ¶
func UnmarshalSecretChatStateClosed(data json.RawMessage) (*SecretChatStateClosed, error)
func (*SecretChatStateClosed) GetClass ¶
func (*SecretChatStateClosed) GetClass() string
func (*SecretChatStateClosed) GetType ¶
func (*SecretChatStateClosed) GetType() string
func (*SecretChatStateClosed) MarshalJSON ¶
func (entity *SecretChatStateClosed) MarshalJSON() ([]byte, error)
func (*SecretChatStateClosed) SecretChatStateType ¶
func (*SecretChatStateClosed) SecretChatStateType() string
type SecretChatStatePending ¶
type SecretChatStatePending struct {
// contains filtered or unexported fields
}
The secret chat is not yet created; waiting for the other user to get online
func UnmarshalSecretChatStatePending ¶
func UnmarshalSecretChatStatePending(data json.RawMessage) (*SecretChatStatePending, error)
func (*SecretChatStatePending) GetClass ¶
func (*SecretChatStatePending) GetClass() string
func (*SecretChatStatePending) GetType ¶
func (*SecretChatStatePending) GetType() string
func (*SecretChatStatePending) MarshalJSON ¶
func (entity *SecretChatStatePending) MarshalJSON() ([]byte, error)
func (*SecretChatStatePending) SecretChatStateType ¶
func (*SecretChatStatePending) SecretChatStateType() string
type SecretChatStateReady ¶
type SecretChatStateReady struct {
// contains filtered or unexported fields
}
The secret chat is ready to use
func UnmarshalSecretChatStateReady ¶
func UnmarshalSecretChatStateReady(data json.RawMessage) (*SecretChatStateReady, error)
func (*SecretChatStateReady) GetClass ¶
func (*SecretChatStateReady) GetClass() string
func (*SecretChatStateReady) GetType ¶
func (*SecretChatStateReady) GetType() string
func (*SecretChatStateReady) MarshalJSON ¶
func (entity *SecretChatStateReady) MarshalJSON() ([]byte, error)
func (*SecretChatStateReady) SecretChatStateType ¶
func (*SecretChatStateReady) SecretChatStateType() string
type SendAuthenticationFirebaseSmsRequest ¶ added in v1.2.3
type SendAuthenticationFirebaseSmsRequest struct { // SafetyNet Attestation API token for the Android application, or secret from push notification for the iOS application Token string `json:"token"` }
type SendBotStartMessageRequest ¶
type SendBotStartMessageRequest struct { // Identifier of the bot BotUserId int64 `json:"bot_user_id"` // Identifier of the target chat ChatId int64 `json:"chat_id"` // A hidden parameter sent to the bot for deep linking purposes (https://core.telegram.org/bots#deep-linking) Parameter string `json:"parameter"` }
type SendCallLogRequest ¶ added in v1.0.6
type SendCallRatingRequest ¶
type SendCallRatingRequest struct { // Call identifier CallId int32 `json:"call_id"` // Call rating; 1-5 Rating int32 `json:"rating"` // An optional user comment if the rating is less than 5 Comment string `json:"comment"` // List of the exact types of problems with the call, specified by the user Problems []CallProblem `json:"problems"` }
type SendChatActionRequest ¶
type SendChatActionRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // If not 0, a message thread identifier in which the action was performed MessageThreadId int64 `json:"message_thread_id"` // The action description; pass null to cancel the currently active action Action ChatAction `json:"action"` }
type SendChatScreenshotTakenNotificationRequest ¶
type SendChatScreenshotTakenNotificationRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` }
type SendEmailAddressVerificationCodeRequest ¶
type SendEmailAddressVerificationCodeRequest struct { // Email address EmailAddress string `json:"email_address"` }
type SendInlineQueryResultMessageRequest ¶
type SendInlineQueryResultMessageRequest struct { // Target chat ChatId int64 `json:"chat_id"` // If not 0, a message thread identifier in which the message will be sent MessageThreadId int64 `json:"message_thread_id"` // Identifier of the replied message or story; pass null if none ReplyTo MessageReplyTo `json:"reply_to"` // Options to be used to send the message; pass null to use default options Options *MessageSendOptions `json:"options"` // Identifier of the inline query QueryId JsonInt64 `json:"query_id"` // Identifier of the inline query result ResultId string `json:"result_id"` // Pass true to hide the bot, via which the message is sent. Can be used only for bots getOption("animation_search_bot_username"), getOption("photo_search_bot_username"), and getOption("venue_search_bot_username") HideViaBot bool `json:"hide_via_bot"` }
type SendMessageAlbumRequest ¶
type SendMessageAlbumRequest struct { // Target chat ChatId int64 `json:"chat_id"` // If not 0, a message thread identifier in which the messages will be sent MessageThreadId int64 `json:"message_thread_id"` // Identifier of the replied message or story; pass null if none ReplyTo MessageReplyTo `json:"reply_to"` // Options to be used to send the messages; pass null to use default options Options *MessageSendOptions `json:"options"` // Contents of messages to be sent. At most 10 messages can be added to an album InputMessageContents []InputMessageContent `json:"input_message_contents"` // Pass true to get fake messages instead of actually sending them OnlyPreview bool `json:"only_preview"` }
type SendMessageRequest ¶
type SendMessageRequest struct { // Target chat ChatId int64 `json:"chat_id"` // If not 0, a message thread identifier in which the message will be sent MessageThreadId int64 `json:"message_thread_id"` // Identifier of the replied message or story; pass null if none ReplyTo MessageReplyTo `json:"reply_to"` // Options to be used to send the message; pass null to use default options Options *MessageSendOptions `json:"options"` // Markup for replying to the message; pass null if none; for bots only ReplyMarkup ReplyMarkup `json:"reply_markup"` // The content of the message to be sent InputMessageContent InputMessageContent `json:"input_message_content"` }
type SendPassportAuthorizationFormRequest ¶
type SendPassportAuthorizationFormRequest struct { // Authorization form identifier AuthorizationFormId int32 `json:"authorization_form_id"` // Types of Telegram Passport elements chosen by user to complete the authorization form Types []PassportElementType `json:"types"` }
type SendPaymentFormRequest ¶
type SendPaymentFormRequest struct { // The invoice InputInvoice InputInvoice `json:"input_invoice"` // Payment form identifier returned by getPaymentForm PaymentFormId JsonInt64 `json:"payment_form_id"` // Identifier returned by validateOrderInfo, or an empty string OrderInfoId string `json:"order_info_id"` // Identifier of a chosen shipping option, if applicable ShippingOptionId string `json:"shipping_option_id"` // The credentials chosen by user for payment Credentials InputCredentials `json:"credentials"` // Chosen by the user amount of tip in the smallest units of the currency TipAmount int64 `json:"tip_amount"` }
type SendPhoneNumberConfirmationCodeRequest ¶
type SendPhoneNumberConfirmationCodeRequest struct { // Hash value from the link Hash string `json:"hash"` // Phone number value from the link PhoneNumber string `json:"phone_number"` // Settings for the authentication of the user's phone number; pass null to use default settings Settings *PhoneNumberAuthenticationSettings `json:"settings"` }
type SendPhoneNumberVerificationCodeRequest ¶
type SendPhoneNumberVerificationCodeRequest struct { // The phone number of the user, in international format PhoneNumber string `json:"phone_number"` // Settings for the authentication of the user's phone number; pass null to use default settings Settings *PhoneNumberAuthenticationSettings `json:"settings"` }
type SendStoryRequest ¶ added in v1.2.3
type SendStoryRequest struct { // Content of the story Content InputStoryContent `json:"content"` // Clickable rectangle areas to be shown on the story media; pass null if none Areas *InputStoryAreas `json:"areas"` // Story caption; pass null to use an empty caption; 0-getOption("story_caption_length_max") characters Caption *FormattedText `json:"caption"` // The privacy settings for the story PrivacySettings StoryPrivacySettings `json:"privacy_settings"` // Period after which the story is moved to archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise ActivePeriod int32 `json:"active_period"` // Pass true to keep the story accessible after expiration IsPinned bool `json:"is_pinned"` // Pass true if the content of the story must be protected from forwarding and screenshotting ProtectContent bool `json:"protect_content"` }
type SendWebAppCustomRequestRequest ¶ added in v1.2.3
type SendWebAppDataRequest ¶ added in v1.0.6
type SentWebAppMessage ¶ added in v1.0.6
type SentWebAppMessage struct { // Identifier of the sent inline message, if known InlineMessageId string `json:"inline_message_id"` // contains filtered or unexported fields }
Information about the message sent by answerWebAppQuery
func UnmarshalSentWebAppMessage ¶ added in v1.0.6
func UnmarshalSentWebAppMessage(data json.RawMessage) (*SentWebAppMessage, error)
func (*SentWebAppMessage) GetClass ¶ added in v1.0.6
func (*SentWebAppMessage) GetClass() string
func (*SentWebAppMessage) GetType ¶ added in v1.0.6
func (*SentWebAppMessage) GetType() string
func (*SentWebAppMessage) MarshalJSON ¶ added in v1.0.6
func (entity *SentWebAppMessage) MarshalJSON() ([]byte, error)
type Session ¶
type Session struct { // Session identifier Id JsonInt64 `json:"id"` // True, if this session is the current session IsCurrent bool `json:"is_current"` // True, if a 2-step verification password is needed to complete authorization of the session IsPasswordPending bool `json:"is_password_pending"` // True, if the session wasn't confirmed from another session IsUnconfirmed bool `json:"is_unconfirmed"` // True, if incoming secret chats can be accepted by the session CanAcceptSecretChats bool `json:"can_accept_secret_chats"` // True, if incoming calls can be accepted by the session CanAcceptCalls bool `json:"can_accept_calls"` // Session type based on the system and application version, which can be used to display a corresponding icon Type SessionType `json:"type"` // Telegram API identifier, as provided by the application ApiId int32 `json:"api_id"` // Name of the application, as provided by the application ApplicationName string `json:"application_name"` // The version of the application, as provided by the application ApplicationVersion string `json:"application_version"` // True, if the application is an official application or uses the api_id of an official application IsOfficialApplication bool `json:"is_official_application"` // Model of the device the application has been run or is running on, as provided by the application DeviceModel string `json:"device_model"` // Operating system the application has been run or is running on, as provided by the application Platform string `json:"platform"` // Version of the operating system the application has been run or is running on, as provided by the application SystemVersion string `json:"system_version"` // Point in time (Unix timestamp) when the user has logged in LogInDate int32 `json:"log_in_date"` // Point in time (Unix timestamp) when the session was last used LastActiveDate int32 `json:"last_active_date"` // IP address from which the session was created, in human-readable format IpAddress string `json:"ip_address"` // A human-readable description of the location from which the session was created, based on the IP address Location string `json:"location"` // contains filtered or unexported fields }
Contains information about one session in a Telegram application used by the current user. Sessions must be shown to the user in the returned order
func UnmarshalSession ¶
func UnmarshalSession(data json.RawMessage) (*Session, error)
func (*Session) MarshalJSON ¶
func (*Session) UnmarshalJSON ¶ added in v1.0.6
type SessionType ¶ added in v1.0.6
type SessionType interface {
SessionTypeType() string
}
Represents the type of a session
func UnmarshalListOfSessionType ¶ added in v1.0.6
func UnmarshalListOfSessionType(dataList []json.RawMessage) ([]SessionType, error)
func UnmarshalSessionType ¶ added in v1.0.6
func UnmarshalSessionType(data json.RawMessage) (SessionType, error)
type SessionTypeAndroid ¶ added in v1.0.6
type SessionTypeAndroid struct {
// contains filtered or unexported fields
}
The session is running on an Android device
func UnmarshalSessionTypeAndroid ¶ added in v1.0.6
func UnmarshalSessionTypeAndroid(data json.RawMessage) (*SessionTypeAndroid, error)
func (*SessionTypeAndroid) GetClass ¶ added in v1.0.6
func (*SessionTypeAndroid) GetClass() string
func (*SessionTypeAndroid) GetType ¶ added in v1.0.6
func (*SessionTypeAndroid) GetType() string
func (*SessionTypeAndroid) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeAndroid) MarshalJSON() ([]byte, error)
func (*SessionTypeAndroid) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeAndroid) SessionTypeType() string
type SessionTypeApple ¶ added in v1.0.6
type SessionTypeApple struct {
// contains filtered or unexported fields
}
The session is running on a generic Apple device
func UnmarshalSessionTypeApple ¶ added in v1.0.6
func UnmarshalSessionTypeApple(data json.RawMessage) (*SessionTypeApple, error)
func (*SessionTypeApple) GetClass ¶ added in v1.0.6
func (*SessionTypeApple) GetClass() string
func (*SessionTypeApple) GetType ¶ added in v1.0.6
func (*SessionTypeApple) GetType() string
func (*SessionTypeApple) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeApple) MarshalJSON() ([]byte, error)
func (*SessionTypeApple) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeApple) SessionTypeType() string
type SessionTypeBrave ¶ added in v1.0.6
type SessionTypeBrave struct {
// contains filtered or unexported fields
}
The session is running on the Brave browser
func UnmarshalSessionTypeBrave ¶ added in v1.0.6
func UnmarshalSessionTypeBrave(data json.RawMessage) (*SessionTypeBrave, error)
func (*SessionTypeBrave) GetClass ¶ added in v1.0.6
func (*SessionTypeBrave) GetClass() string
func (*SessionTypeBrave) GetType ¶ added in v1.0.6
func (*SessionTypeBrave) GetType() string
func (*SessionTypeBrave) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeBrave) MarshalJSON() ([]byte, error)
func (*SessionTypeBrave) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeBrave) SessionTypeType() string
type SessionTypeChrome ¶ added in v1.0.6
type SessionTypeChrome struct {
// contains filtered or unexported fields
}
The session is running on the Chrome browser
func UnmarshalSessionTypeChrome ¶ added in v1.0.6
func UnmarshalSessionTypeChrome(data json.RawMessage) (*SessionTypeChrome, error)
func (*SessionTypeChrome) GetClass ¶ added in v1.0.6
func (*SessionTypeChrome) GetClass() string
func (*SessionTypeChrome) GetType ¶ added in v1.0.6
func (*SessionTypeChrome) GetType() string
func (*SessionTypeChrome) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeChrome) MarshalJSON() ([]byte, error)
func (*SessionTypeChrome) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeChrome) SessionTypeType() string
type SessionTypeEdge ¶ added in v1.0.6
type SessionTypeEdge struct {
// contains filtered or unexported fields
}
The session is running on the Edge browser
func UnmarshalSessionTypeEdge ¶ added in v1.0.6
func UnmarshalSessionTypeEdge(data json.RawMessage) (*SessionTypeEdge, error)
func (*SessionTypeEdge) GetClass ¶ added in v1.0.6
func (*SessionTypeEdge) GetClass() string
func (*SessionTypeEdge) GetType ¶ added in v1.0.6
func (*SessionTypeEdge) GetType() string
func (*SessionTypeEdge) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeEdge) MarshalJSON() ([]byte, error)
func (*SessionTypeEdge) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeEdge) SessionTypeType() string
type SessionTypeFirefox ¶ added in v1.0.6
type SessionTypeFirefox struct {
// contains filtered or unexported fields
}
The session is running on the Firefox browser
func UnmarshalSessionTypeFirefox ¶ added in v1.0.6
func UnmarshalSessionTypeFirefox(data json.RawMessage) (*SessionTypeFirefox, error)
func (*SessionTypeFirefox) GetClass ¶ added in v1.0.6
func (*SessionTypeFirefox) GetClass() string
func (*SessionTypeFirefox) GetType ¶ added in v1.0.6
func (*SessionTypeFirefox) GetType() string
func (*SessionTypeFirefox) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeFirefox) MarshalJSON() ([]byte, error)
func (*SessionTypeFirefox) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeFirefox) SessionTypeType() string
type SessionTypeIpad ¶ added in v1.0.6
type SessionTypeIpad struct {
// contains filtered or unexported fields
}
The session is running on an iPad device
func UnmarshalSessionTypeIpad ¶ added in v1.0.6
func UnmarshalSessionTypeIpad(data json.RawMessage) (*SessionTypeIpad, error)
func (*SessionTypeIpad) GetClass ¶ added in v1.0.6
func (*SessionTypeIpad) GetClass() string
func (*SessionTypeIpad) GetType ¶ added in v1.0.6
func (*SessionTypeIpad) GetType() string
func (*SessionTypeIpad) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeIpad) MarshalJSON() ([]byte, error)
func (*SessionTypeIpad) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeIpad) SessionTypeType() string
type SessionTypeIphone ¶ added in v1.0.6
type SessionTypeIphone struct {
// contains filtered or unexported fields
}
The session is running on an iPhone device
func UnmarshalSessionTypeIphone ¶ added in v1.0.6
func UnmarshalSessionTypeIphone(data json.RawMessage) (*SessionTypeIphone, error)
func (*SessionTypeIphone) GetClass ¶ added in v1.0.6
func (*SessionTypeIphone) GetClass() string
func (*SessionTypeIphone) GetType ¶ added in v1.0.6
func (*SessionTypeIphone) GetType() string
func (*SessionTypeIphone) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeIphone) MarshalJSON() ([]byte, error)
func (*SessionTypeIphone) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeIphone) SessionTypeType() string
type SessionTypeLinux ¶ added in v1.0.6
type SessionTypeLinux struct {
// contains filtered or unexported fields
}
The session is running on a Linux device
func UnmarshalSessionTypeLinux ¶ added in v1.0.6
func UnmarshalSessionTypeLinux(data json.RawMessage) (*SessionTypeLinux, error)
func (*SessionTypeLinux) GetClass ¶ added in v1.0.6
func (*SessionTypeLinux) GetClass() string
func (*SessionTypeLinux) GetType ¶ added in v1.0.6
func (*SessionTypeLinux) GetType() string
func (*SessionTypeLinux) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeLinux) MarshalJSON() ([]byte, error)
func (*SessionTypeLinux) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeLinux) SessionTypeType() string
type SessionTypeMac ¶ added in v1.0.6
type SessionTypeMac struct {
// contains filtered or unexported fields
}
The session is running on a Mac device
func UnmarshalSessionTypeMac ¶ added in v1.0.6
func UnmarshalSessionTypeMac(data json.RawMessage) (*SessionTypeMac, error)
func (*SessionTypeMac) GetClass ¶ added in v1.0.6
func (*SessionTypeMac) GetClass() string
func (*SessionTypeMac) GetType ¶ added in v1.0.6
func (*SessionTypeMac) GetType() string
func (*SessionTypeMac) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeMac) MarshalJSON() ([]byte, error)
func (*SessionTypeMac) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeMac) SessionTypeType() string
type SessionTypeOpera ¶ added in v1.0.6
type SessionTypeOpera struct {
// contains filtered or unexported fields
}
The session is running on the Opera browser
func UnmarshalSessionTypeOpera ¶ added in v1.0.6
func UnmarshalSessionTypeOpera(data json.RawMessage) (*SessionTypeOpera, error)
func (*SessionTypeOpera) GetClass ¶ added in v1.0.6
func (*SessionTypeOpera) GetClass() string
func (*SessionTypeOpera) GetType ¶ added in v1.0.6
func (*SessionTypeOpera) GetType() string
func (*SessionTypeOpera) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeOpera) MarshalJSON() ([]byte, error)
func (*SessionTypeOpera) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeOpera) SessionTypeType() string
type SessionTypeSafari ¶ added in v1.0.6
type SessionTypeSafari struct {
// contains filtered or unexported fields
}
The session is running on the Safari browser
func UnmarshalSessionTypeSafari ¶ added in v1.0.6
func UnmarshalSessionTypeSafari(data json.RawMessage) (*SessionTypeSafari, error)
func (*SessionTypeSafari) GetClass ¶ added in v1.0.6
func (*SessionTypeSafari) GetClass() string
func (*SessionTypeSafari) GetType ¶ added in v1.0.6
func (*SessionTypeSafari) GetType() string
func (*SessionTypeSafari) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeSafari) MarshalJSON() ([]byte, error)
func (*SessionTypeSafari) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeSafari) SessionTypeType() string
type SessionTypeUbuntu ¶ added in v1.0.6
type SessionTypeUbuntu struct {
// contains filtered or unexported fields
}
The session is running on an Ubuntu device
func UnmarshalSessionTypeUbuntu ¶ added in v1.0.6
func UnmarshalSessionTypeUbuntu(data json.RawMessage) (*SessionTypeUbuntu, error)
func (*SessionTypeUbuntu) GetClass ¶ added in v1.0.6
func (*SessionTypeUbuntu) GetClass() string
func (*SessionTypeUbuntu) GetType ¶ added in v1.0.6
func (*SessionTypeUbuntu) GetType() string
func (*SessionTypeUbuntu) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeUbuntu) MarshalJSON() ([]byte, error)
func (*SessionTypeUbuntu) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeUbuntu) SessionTypeType() string
type SessionTypeUnknown ¶ added in v1.0.6
type SessionTypeUnknown struct {
// contains filtered or unexported fields
}
The session is running on an unknown type of device
func UnmarshalSessionTypeUnknown ¶ added in v1.0.6
func UnmarshalSessionTypeUnknown(data json.RawMessage) (*SessionTypeUnknown, error)
func (*SessionTypeUnknown) GetClass ¶ added in v1.0.6
func (*SessionTypeUnknown) GetClass() string
func (*SessionTypeUnknown) GetType ¶ added in v1.0.6
func (*SessionTypeUnknown) GetType() string
func (*SessionTypeUnknown) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeUnknown) MarshalJSON() ([]byte, error)
func (*SessionTypeUnknown) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeUnknown) SessionTypeType() string
type SessionTypeVivaldi ¶ added in v1.0.6
type SessionTypeVivaldi struct {
// contains filtered or unexported fields
}
The session is running on the Vivaldi browser
func UnmarshalSessionTypeVivaldi ¶ added in v1.0.6
func UnmarshalSessionTypeVivaldi(data json.RawMessage) (*SessionTypeVivaldi, error)
func (*SessionTypeVivaldi) GetClass ¶ added in v1.0.6
func (*SessionTypeVivaldi) GetClass() string
func (*SessionTypeVivaldi) GetType ¶ added in v1.0.6
func (*SessionTypeVivaldi) GetType() string
func (*SessionTypeVivaldi) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeVivaldi) MarshalJSON() ([]byte, error)
func (*SessionTypeVivaldi) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeVivaldi) SessionTypeType() string
type SessionTypeWindows ¶ added in v1.0.6
type SessionTypeWindows struct {
// contains filtered or unexported fields
}
The session is running on a Windows device
func UnmarshalSessionTypeWindows ¶ added in v1.0.6
func UnmarshalSessionTypeWindows(data json.RawMessage) (*SessionTypeWindows, error)
func (*SessionTypeWindows) GetClass ¶ added in v1.0.6
func (*SessionTypeWindows) GetClass() string
func (*SessionTypeWindows) GetType ¶ added in v1.0.6
func (*SessionTypeWindows) GetType() string
func (*SessionTypeWindows) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeWindows) MarshalJSON() ([]byte, error)
func (*SessionTypeWindows) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeWindows) SessionTypeType() string
type SessionTypeXbox ¶ added in v1.0.6
type SessionTypeXbox struct {
// contains filtered or unexported fields
}
The session is running on an Xbox console
func UnmarshalSessionTypeXbox ¶ added in v1.0.6
func UnmarshalSessionTypeXbox(data json.RawMessage) (*SessionTypeXbox, error)
func (*SessionTypeXbox) GetClass ¶ added in v1.0.6
func (*SessionTypeXbox) GetClass() string
func (*SessionTypeXbox) GetType ¶ added in v1.0.6
func (*SessionTypeXbox) GetType() string
func (*SessionTypeXbox) MarshalJSON ¶ added in v1.0.6
func (entity *SessionTypeXbox) MarshalJSON() ([]byte, error)
func (*SessionTypeXbox) SessionTypeType ¶ added in v1.0.6
func (*SessionTypeXbox) SessionTypeType() string
type Sessions ¶
type Sessions struct { // List of sessions Sessions []*Session `json:"sessions"` // Number of days of inactivity before sessions will automatically be terminated; 1-366 days InactiveSessionTtlDays int32 `json:"inactive_session_ttl_days"` // contains filtered or unexported fields }
Contains a list of sessions
func UnmarshalSessions ¶
func UnmarshalSessions(data json.RawMessage) (*Sessions, error)
func (*Sessions) MarshalJSON ¶
type SetAccountTtlRequest ¶
type SetAccountTtlRequest struct { // New account TTL Ttl *AccountTtl `json:"ttl"` }
type SetAlarmRequest ¶
type SetAlarmRequest struct { // Number of seconds before the function returns Seconds float64 `json:"seconds"` }
type SetArchiveChatListSettingsRequest ¶ added in v1.2.3
type SetArchiveChatListSettingsRequest struct { // New settings Settings *ArchiveChatListSettings `json:"settings"` }
type SetAuthenticationEmailAddressRequest ¶ added in v1.2.3
type SetAuthenticationEmailAddressRequest struct { // The email address of the user EmailAddress string `json:"email_address"` }
type SetAuthenticationPhoneNumberRequest ¶
type SetAuthenticationPhoneNumberRequest struct { // The phone number of the user, in international format PhoneNumber string `json:"phone_number"` // Settings for the authentication of the user's phone number; pass null to use default settings Settings *PhoneNumberAuthenticationSettings `json:"settings"` }
type SetAutoDownloadSettingsRequest ¶
type SetAutoDownloadSettingsRequest struct { // New user auto-download settings Settings *AutoDownloadSettings `json:"settings"` // Type of the network for which the new settings are relevant Type NetworkType `json:"type"` }
type SetAutosaveSettingsRequest ¶ added in v1.2.3
type SetAutosaveSettingsRequest struct { // Autosave settings scope Scope AutosaveSettingsScope `json:"scope"` // New autosave settings for the scope; pass null to set autosave settings to default Settings *ScopeAutosaveSettings `json:"settings"` }
type SetBackgroundRequest ¶
type SetBackgroundRequest struct { // The input background to use; pass null to create a new filled background or to remove the current background Background InputBackground `json:"background"` // Background type; pass null to use the default type of the remote background or to remove the current background Type BackgroundType `json:"type"` // Pass true if the background is changed for a dark theme ForDarkTheme bool `json:"for_dark_theme"` }
type SetBioRequest ¶
type SetBioRequest struct { // The new value of the user bio; 0-getOption("bio_length_max") characters without line feeds Bio string `json:"bio"` }
type SetBotInfoDescriptionRequest ¶ added in v1.2.3
type SetBotInfoDescriptionRequest struct { // Identifier of the target bot BotUserId int64 `json:"bot_user_id"` // A two-letter ISO 639-1 language code. If empty, the description will be shown to all users for whose languages there is no dedicated description LanguageCode string `json:"language_code"` // New bot's description on the specified language Description string `json:"description"` }
type SetBotInfoShortDescriptionRequest ¶ added in v1.2.3
type SetBotInfoShortDescriptionRequest struct { // Identifier of the target bot BotUserId int64 `json:"bot_user_id"` // A two-letter ISO 639-1 language code. If empty, the short description will be shown to all users for whose languages there is no dedicated description LanguageCode string `json:"language_code"` // New bot's short description on the specified language ShortDescription string `json:"short_description"` }
type SetBotNameRequest ¶ added in v1.2.3
type SetBotNameRequest struct { // Identifier of the target bot BotUserId int64 `json:"bot_user_id"` // A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose languages there is no dedicated name LanguageCode string `json:"language_code"` // New bot's name on the specified language; 0-64 characters; must be non-empty if language code is empty Name string `json:"name"` }
type SetBotProfilePhotoRequest ¶ added in v1.2.3
type SetBotProfilePhotoRequest struct { // Identifier of the target bot BotUserId int64 `json:"bot_user_id"` // Profile photo to set; pass null to delete the chat photo Photo InputChatPhoto `json:"photo"` }
type SetChatActiveStoriesListRequest ¶ added in v1.2.3
type SetChatAvailableReactionsRequest ¶ added in v1.0.6
type SetChatAvailableReactionsRequest struct { // Identifier of the chat ChatId int64 `json:"chat_id"` // Reactions available in the chat. All emoji reactions must be active AvailableReactions ChatAvailableReactions `json:"available_reactions"` }
type SetChatBackgroundRequest ¶ added in v1.2.3
type SetChatBackgroundRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // The input background to use; pass null to create a new filled background or to remove the current background Background InputBackground `json:"background"` // Background type; pass null to remove the current background Type BackgroundType `json:"type"` // Dimming of the background in dark themes, as a percentage; 0-100 DarkThemeDimming int32 `json:"dark_theme_dimming"` }
type SetChatDiscussionGroupRequest ¶
type SetChatDiscussionGroupRequest struct { // Identifier of the channel chat. Pass 0 to remove a link from the supergroup passed in the second argument to a linked channel chat (requires can_pin_messages rights in the supergroup) ChatId int64 `json:"chat_id"` // Identifier of a new channel's discussion group. Use 0 to remove the discussion group. Use the method getSuitableDiscussionChats to find all suitable groups. Basic group chats must be first upgraded to supergroup chats. If new chat members don't have access to old messages in the supergroup, then toggleSupergroupIsAllHistoryAvailable must be used first to change that DiscussionChatId int64 `json:"discussion_chat_id"` }
type SetChatDraftMessageRequest ¶
type SetChatDraftMessageRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // If not 0, a message thread identifier in which the draft was changed MessageThreadId int64 `json:"message_thread_id"` // New draft message; pass null to remove the draft DraftMessage *DraftMessage `json:"draft_message"` }
type SetChatLocationRequest ¶
type SetChatLocationRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // New location for the chat; must be valid and not null Location *ChatLocation `json:"location"` }
type SetChatMemberStatusRequest ¶
type SetChatMemberStatusRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Member identifier. Chats can be only banned and unbanned in supergroups and channels MemberId MessageSender `json:"member_id"` // The new status of the member in the chat Status ChatMemberStatus `json:"status"` }
type SetChatMessageAutoDeleteTimeRequest ¶ added in v1.2.3
type SetChatMessageAutoDeleteTimeRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // New time value, in seconds; unless the chat is secret, it must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically MessageAutoDeleteTime int32 `json:"message_auto_delete_time"` }
type SetChatMessageSenderRequest ¶
type SetChatMessageSenderRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // New message sender for the chat MessageSenderId MessageSender `json:"message_sender_id"` }
type SetChatNotificationSettingsRequest ¶
type SetChatNotificationSettingsRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // New notification settings for the chat. If the chat is muted for more than 366 days, it is considered to be muted forever NotificationSettings *ChatNotificationSettings `json:"notification_settings"` }
type SetChatPermissionsRequest ¶
type SetChatPermissionsRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // New non-administrator members permissions in the chat Permissions *ChatPermissions `json:"permissions"` }
type SetChatPhotoRequest ¶
type SetChatPhotoRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // New chat photo; pass null to delete the chat photo Photo InputChatPhoto `json:"photo"` }
type SetChatThemeRequest ¶
type SetChatTitleRequest ¶
type SetCloseFriendsRequest ¶ added in v1.2.3
type SetCloseFriendsRequest struct { // User identifiers of close friends; the users must be contacts of the current user UserIds []int64 `json:"user_ids"` }
type SetCommandsRequest ¶
type SetCommandsRequest struct { // The scope to which the commands are relevant; pass null to change commands in the default bot command scope Scope BotCommandScope `json:"scope"` // A two-letter ISO 639-1 language code. If empty, the commands will be applied to all users from the given scope, for which language there are no dedicated commands LanguageCode string `json:"language_code"` // List of the bot's commands Commands []*BotCommand `json:"commands"` }
type SetCustomEmojiStickerSetThumbnailRequest ¶ added in v1.2.3
type SetCustomLanguagePackRequest ¶
type SetCustomLanguagePackRequest struct { // Information about the language pack. Language pack identifier must start with 'X', consist only of English letters, digits and hyphens, and must not exceed 64 characters. Can be called before authorization Info *LanguagePackInfo `json:"info"` // Strings of the new language pack Strings []*LanguagePackString `json:"strings"` }
type SetCustomLanguagePackStringRequest ¶
type SetCustomLanguagePackStringRequest struct { // Identifier of a previously added custom local language pack in the current localization target LanguagePackId string `json:"language_pack_id"` // New language pack string NewString *LanguagePackString `json:"new_string"` }
type SetDatabaseEncryptionKeyRequest ¶
type SetDatabaseEncryptionKeyRequest struct { // New encryption key NewEncryptionKey []byte `json:"new_encryption_key"` }
type SetDefaultChannelAdministratorRightsRequest ¶ added in v1.0.6
type SetDefaultChannelAdministratorRightsRequest struct { // Default administrator rights for adding the bot to channels; pass null to remove default rights DefaultChannelAdministratorRights *ChatAdministratorRights `json:"default_channel_administrator_rights"` }
type SetDefaultGroupAdministratorRightsRequest ¶ added in v1.0.6
type SetDefaultGroupAdministratorRightsRequest struct { // Default administrator rights for adding the bot to basic group and supergroup chats; pass null to remove default rights DefaultGroupAdministratorRights *ChatAdministratorRights `json:"default_group_administrator_rights"` }
type SetDefaultMessageAutoDeleteTimeRequest ¶ added in v1.2.3
type SetDefaultMessageAutoDeleteTimeRequest struct { // New default message auto-delete time; must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically MessageAutoDeleteTime *MessageAutoDeleteTime `json:"message_auto_delete_time"` }
type SetDefaultReactionTypeRequest ¶ added in v1.2.3
type SetDefaultReactionTypeRequest struct { // New type of the default reaction ReactionType ReactionType `json:"reaction_type"` }
type SetEmojiStatusRequest ¶ added in v1.2.3
type SetEmojiStatusRequest struct { // New emoji status; pass null to switch to the default badge EmojiStatus *EmojiStatus `json:"emoji_status"` }
type SetFileGenerationProgressRequest ¶
type SetFileGenerationProgressRequest struct { // The identifier of the generation process GenerationId JsonInt64 `json:"generation_id"` // Expected size of the generated file, in bytes; 0 if unknown ExpectedSize int64 `json:"expected_size"` // The number of bytes already generated LocalPrefixSize int64 `json:"local_prefix_size"` }
type SetForumTopicNotificationSettingsRequest ¶ added in v1.2.3
type SetForumTopicNotificationSettingsRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Message thread identifier of the forum topic MessageThreadId int64 `json:"message_thread_id"` // New notification settings for the forum topic. If the topic is muted for more than 366 days, it is considered to be muted forever NotificationSettings *ChatNotificationSettings `json:"notification_settings"` }
type SetGameScoreRequest ¶
type SetGameScoreRequest struct { // The chat to which the message with the game belongs ChatId int64 `json:"chat_id"` // Identifier of the message MessageId int64 `json:"message_id"` // Pass true to edit the game message to include the current scoreboard EditMessage bool `json:"edit_message"` // User identifier UserId int64 `json:"user_id"` // The new score Score int32 `json:"score"` // Pass true to update the score even if it decreases. If the score is 0, the user will be deleted from the high score table Force bool `json:"force"` }
type SetGroupCallParticipantIsSpeakingRequest ¶
type SetGroupCallParticipantIsSpeakingRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` // Group call participant's synchronization audio source identifier, or 0 for the current user AudioSource int32 `json:"audio_source"` // Pass true if the user is speaking IsSpeaking bool `json:"is_speaking"` }
type SetGroupCallParticipantVolumeLevelRequest ¶
type SetGroupCallParticipantVolumeLevelRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` // Participant identifier ParticipantId MessageSender `json:"participant_id"` // New participant's volume level; 1-20000 in hundreds of percents VolumeLevel int32 `json:"volume_level"` }
type SetInactiveSessionTtlRequest ¶
type SetInactiveSessionTtlRequest struct { // New number of days of inactivity before sessions will be automatically terminated; 1-366 days InactiveSessionTtlDays int32 `json:"inactive_session_ttl_days"` }
type SetInlineGameScoreRequest ¶
type SetInlineGameScoreRequest struct { // Inline message identifier InlineMessageId string `json:"inline_message_id"` // Pass true to edit the game message to include the current scoreboard EditMessage bool `json:"edit_message"` // User identifier UserId int64 `json:"user_id"` // The new score Score int32 `json:"score"` // Pass true to update the score even if it decreases. If the score is 0, the user will be deleted from the high score table Force bool `json:"force"` }
type SetLocationRequest ¶
type SetLocationRequest struct { // The new location of the user Location *Location `json:"location"` }
type SetLogStreamRequest ¶
type SetLogStreamRequest struct { // New log stream LogStream LogStream `json:"log_stream"` }
type SetLogVerbosityLevelRequest ¶
type SetLogVerbosityLevelRequest struct { // New value of the verbosity level for logging. Value 0 corresponds to fatal errors, value 1 corresponds to errors, value 2 corresponds to warnings and debug warnings, value 3 corresponds to informational, value 4 corresponds to debug, value 5 corresponds to verbose debug, value greater than 5 and up to 1023 can be used to enable even more logging NewVerbosityLevel int32 `json:"new_verbosity_level"` }
type SetLoginEmailAddressRequest ¶ added in v1.2.3
type SetLoginEmailAddressRequest struct { // New login email address NewLoginEmailAddress string `json:"new_login_email_address"` }
type SetMenuButtonRequest ¶ added in v1.0.6
type SetMenuButtonRequest struct { // Identifier of the user or 0 to set menu button for all users UserId int64 `json:"user_id"` // New menu button MenuButton *BotMenuButton `json:"menu_button"` }
type SetMessageSenderBlockListRequest ¶ added in v1.2.3
type SetMessageSenderBlockListRequest struct { // Identifier of a message sender to block/unblock SenderId MessageSender `json:"sender_id"` // New block list for the message sender; pass null to unblock the message sender BlockList BlockList `json:"block_list"` }
type SetNameRequest ¶
type SetNetworkTypeRequest ¶
type SetNetworkTypeRequest struct { // The new network type; pass null to set network type to networkTypeOther Type NetworkType `json:"type"` }
type SetOptionRequest ¶
type SetOptionRequest struct { // The name of the option Name string `json:"name"` // The new value of the option; pass null to reset option value to a default value Value OptionValue `json:"value"` }
type SetPassportElementErrorsRequest ¶
type SetPassportElementErrorsRequest struct { // User identifier UserId int64 `json:"user_id"` // The errors Errors []*InputPassportElementError `json:"errors"` }
type SetPassportElementRequest ¶
type SetPassportElementRequest struct { // Input Telegram Passport element Element InputPassportElement `json:"element"` // The 2-step verification password of the current user Password string `json:"password"` }
type SetPasswordRequest ¶
type SetPasswordRequest struct { // Previous 2-step verification password of the user OldPassword string `json:"old_password"` // New 2-step verification password of the user; may be empty to remove the password NewPassword string `json:"new_password"` // New password hint; may be empty NewHint string `json:"new_hint"` // Pass true to change also the recovery email address SetRecoveryEmailAddress bool `json:"set_recovery_email_address"` // New recovery email address; may be empty NewRecoveryEmailAddress string `json:"new_recovery_email_address"` }
type SetPinnedChatsRequest ¶
type SetPinnedForumTopicsRequest ¶ added in v1.2.3
type SetPollAnswerRequest ¶
type SetPollAnswerRequest struct { // Identifier of the chat to which the poll belongs ChatId int64 `json:"chat_id"` // Identifier of the message containing the poll MessageId int64 `json:"message_id"` // 0-based identifiers of answer options, chosen by the user. User can choose more than 1 answer option only is the poll allows multiple answers OptionIds []int32 `json:"option_ids"` }
type SetProfilePhotoRequest ¶
type SetProfilePhotoRequest struct { // Profile photo to set Photo InputChatPhoto `json:"photo"` // Pass true to set a public photo, which will be visible even the main photo is hidden by privacy settings IsPublic bool `json:"is_public"` }
type SetScopeNotificationSettingsRequest ¶
type SetScopeNotificationSettingsRequest struct { // Types of chats for which to change the notification settings Scope NotificationSettingsScope `json:"scope"` // The new notification settings for the given scope NotificationSettings *ScopeNotificationSettings `json:"notification_settings"` }
type SetStickerEmojisRequest ¶ added in v1.2.3
type SetStickerKeywordsRequest ¶ added in v1.2.3
type SetStickerMaskPositionRequest ¶ added in v1.2.3
type SetStickerMaskPositionRequest struct { // Sticker Sticker InputFile `json:"sticker"` // Position where the mask is placed; pass null to remove mask position MaskPosition *MaskPosition `json:"mask_position"` }
type SetStickerSetThumbnailRequest ¶
type SetStickerSetThumbnailRequest struct { // Sticker set owner UserId int64 `json:"user_id"` // Sticker set name Name string `json:"name"` // Thumbnail to set in PNG, TGS, or WEBM format; pass null to remove the sticker set thumbnail. Thumbnail format must match the format of stickers in the set Thumbnail InputFile `json:"thumbnail"` }
type SetStickerSetTitleRequest ¶ added in v1.2.3
type SetStoryPrivacySettingsRequest ¶ added in v1.2.3
type SetStoryPrivacySettingsRequest struct { // Identifier of the story StoryId int32 `json:"story_id"` // The new privacy settigs for the story PrivacySettings StoryPrivacySettings `json:"privacy_settings"` }
type SetStoryReactionRequest ¶ added in v1.2.3
type SetStoryReactionRequest struct { // The identifier of the sender of the story StorySenderChatId int64 `json:"story_sender_chat_id"` // The identifier of the story StoryId int32 `json:"story_id"` // Type of the reaction to set; pass null to remove the reaction. `reactionTypeCustomEmoji` reactions can be used only by Telegram Premium users ReactionType ReactionType `json:"reaction_type"` // Pass true if the reaction needs to be added to recent reactions UpdateRecentReactions bool `json:"update_recent_reactions"` }
type SetSupergroupUsernameRequest ¶
type SetSupergroupUsernameRequest struct { // Identifier of the supergroup or channel SupergroupId int64 `json:"supergroup_id"` // New value of the username. Use an empty string to remove the username. The username can't be completely removed if there is another active or disabled username Username string `json:"username"` }
type SetTdlibParametersRequest ¶
type SetTdlibParametersRequest struct { // Pass true to use Telegram test environment instead of the production environment UseTestDc bool `json:"use_test_dc"` // The path to the directory for the persistent database; if empty, the current working directory will be used DatabaseDirectory string `json:"database_directory"` // The path to the directory for storing files; if empty, database_directory will be used FilesDirectory string `json:"files_directory"` // Encryption key for the database. If the encryption key is invalid, then an error with code 401 will be returned DatabaseEncryptionKey []byte `json:"database_encryption_key"` // Pass true to keep information about downloaded and uploaded files between application restarts UseFileDatabase bool `json:"use_file_database"` // Pass true to keep cache of users, basic groups, supergroups, channels and secret chats between restarts. Implies use_file_database UseChatInfoDatabase bool `json:"use_chat_info_database"` // Pass true to keep cache of chats and messages between restarts. Implies use_chat_info_database UseMessageDatabase bool `json:"use_message_database"` // Pass true to enable support for secret chats UseSecretChats bool `json:"use_secret_chats"` // Application identifier for Telegram API access, which can be obtained at https://my.telegram.org ApiId int32 `json:"api_id"` // Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org ApiHash string `json:"api_hash"` // IETF language tag of the user's operating system language; must be non-empty SystemLanguageCode string `json:"system_language_code"` // Model of the device the application is being run on; must be non-empty DeviceModel string `json:"device_model"` // Version of the operating system the application is being run on. If empty, the version is automatically detected by TDLib SystemVersion string `json:"system_version"` // Application version; must be non-empty ApplicationVersion string `json:"application_version"` // Pass true to automatically delete old files in background EnableStorageOptimizer bool `json:"enable_storage_optimizer"` // Pass true to ignore original file names for downloaded files. Otherwise, downloaded files are saved under names as close as possible to the original name IgnoreFileNames bool `json:"ignore_file_names"` }
type SetUserPersonalProfilePhotoRequest ¶ added in v1.2.3
type SetUserPersonalProfilePhotoRequest struct { // User identifier UserId int64 `json:"user_id"` // Profile photo to set; pass null to delete the photo; inputChatPhotoPrevious isn't supported in this function Photo InputChatPhoto `json:"photo"` }
type SetUserPrivacySettingRulesRequest ¶
type SetUserPrivacySettingRulesRequest struct { // The privacy setting Setting UserPrivacySetting `json:"setting"` // The new privacy rules Rules *UserPrivacySettingRules `json:"rules"` }
type SetUserSupportInfoRequest ¶ added in v1.2.3
type SetUserSupportInfoRequest struct { // User identifier UserId int64 `json:"user_id"` // New information message Message *FormattedText `json:"message"` }
type SetUsernameRequest ¶
type SetUsernameRequest struct { // The new value of the username. Use an empty string to remove the username. The username can't be completely removed if there is another active or disabled username Username string `json:"username"` }
type SetVideoChatDefaultParticipantRequest ¶
type SetVideoChatDefaultParticipantRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Default group call participant identifier to join the video chats DefaultParticipantId MessageSender `json:"default_participant_id"` }
type ShareChatWithBotRequest ¶ added in v1.2.3
type SharePhoneNumberRequest ¶
type SharePhoneNumberRequest struct { int64 `json:"user_id"` }UserId
type ShareUserWithBotRequest ¶ added in v1.2.3
type ShippingOption ¶
type ShippingOption struct { // Shipping option identifier Id string `json:"id"` // Option title Title string `json:"title"` // A list of objects used to calculate the total shipping costs PriceParts []*LabeledPricePart `json:"price_parts"` // contains filtered or unexported fields }
One shipping option
func UnmarshalShippingOption ¶
func UnmarshalShippingOption(data json.RawMessage) (*ShippingOption, error)
func (*ShippingOption) GetClass ¶
func (*ShippingOption) GetClass() string
func (*ShippingOption) GetType ¶
func (*ShippingOption) GetType() string
func (*ShippingOption) MarshalJSON ¶
func (entity *ShippingOption) MarshalJSON() ([]byte, error)
type SpeechRecognitionResult ¶ added in v1.2.3
type SpeechRecognitionResult interface {
SpeechRecognitionResultType() string
}
Describes result of speech recognition in a voice note
func UnmarshalListOfSpeechRecognitionResult ¶ added in v1.2.3
func UnmarshalListOfSpeechRecognitionResult(dataList []json.RawMessage) ([]SpeechRecognitionResult, error)
func UnmarshalSpeechRecognitionResult ¶ added in v1.2.3
func UnmarshalSpeechRecognitionResult(data json.RawMessage) (SpeechRecognitionResult, error)
type SpeechRecognitionResultError ¶ added in v1.2.3
type SpeechRecognitionResultError struct { // Recognition error Error *Error `json:"error"` // contains filtered or unexported fields }
The speech recognition failed
func UnmarshalSpeechRecognitionResultError ¶ added in v1.2.3
func UnmarshalSpeechRecognitionResultError(data json.RawMessage) (*SpeechRecognitionResultError, error)
func (*SpeechRecognitionResultError) GetClass ¶ added in v1.2.3
func (*SpeechRecognitionResultError) GetClass() string
func (*SpeechRecognitionResultError) GetType ¶ added in v1.2.3
func (*SpeechRecognitionResultError) GetType() string
func (*SpeechRecognitionResultError) MarshalJSON ¶ added in v1.2.3
func (entity *SpeechRecognitionResultError) MarshalJSON() ([]byte, error)
func (*SpeechRecognitionResultError) SpeechRecognitionResultType ¶ added in v1.2.3
func (*SpeechRecognitionResultError) SpeechRecognitionResultType() string
type SpeechRecognitionResultPending ¶ added in v1.2.3
type SpeechRecognitionResultPending struct { // Partially recognized text PartialText string `json:"partial_text"` // contains filtered or unexported fields }
The speech recognition is ongoing
func UnmarshalSpeechRecognitionResultPending ¶ added in v1.2.3
func UnmarshalSpeechRecognitionResultPending(data json.RawMessage) (*SpeechRecognitionResultPending, error)
func (*SpeechRecognitionResultPending) GetClass ¶ added in v1.2.3
func (*SpeechRecognitionResultPending) GetClass() string
func (*SpeechRecognitionResultPending) GetType ¶ added in v1.2.3
func (*SpeechRecognitionResultPending) GetType() string
func (*SpeechRecognitionResultPending) MarshalJSON ¶ added in v1.2.3
func (entity *SpeechRecognitionResultPending) MarshalJSON() ([]byte, error)
func (*SpeechRecognitionResultPending) SpeechRecognitionResultType ¶ added in v1.2.3
func (*SpeechRecognitionResultPending) SpeechRecognitionResultType() string
type SpeechRecognitionResultText ¶ added in v1.2.3
type SpeechRecognitionResultText struct { // Recognized text Text string `json:"text"` // contains filtered or unexported fields }
The speech recognition successfully finished
func UnmarshalSpeechRecognitionResultText ¶ added in v1.2.3
func UnmarshalSpeechRecognitionResultText(data json.RawMessage) (*SpeechRecognitionResultText, error)
func (*SpeechRecognitionResultText) GetClass ¶ added in v1.2.3
func (*SpeechRecognitionResultText) GetClass() string
func (*SpeechRecognitionResultText) GetType ¶ added in v1.2.3
func (*SpeechRecognitionResultText) GetType() string
func (*SpeechRecognitionResultText) MarshalJSON ¶ added in v1.2.3
func (entity *SpeechRecognitionResultText) MarshalJSON() ([]byte, error)
func (*SpeechRecognitionResultText) SpeechRecognitionResultType ¶ added in v1.2.3
func (*SpeechRecognitionResultText) SpeechRecognitionResultType() string
type SponsoredMessage ¶
type SponsoredMessage struct { // Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages MessageId int64 `json:"message_id"` // True, if the message needs to be labeled as "recommended" instead of "sponsored" IsRecommended bool `json:"is_recommended"` // Content of the message. Currently, can be only of the type messageText Content MessageContent `json:"content"` // Information about the sponsor of the message Sponsor *MessageSponsor `json:"sponsor"` // If non-empty, additional information about the sponsored message to be shown along with the message AdditionalInfo string `json:"additional_info"` // contains filtered or unexported fields }
Describes a sponsored message
func UnmarshalSponsoredMessage ¶
func UnmarshalSponsoredMessage(data json.RawMessage) (*SponsoredMessage, error)
func (*SponsoredMessage) GetClass ¶
func (*SponsoredMessage) GetClass() string
func (*SponsoredMessage) GetType ¶
func (*SponsoredMessage) GetType() string
func (*SponsoredMessage) MarshalJSON ¶
func (entity *SponsoredMessage) MarshalJSON() ([]byte, error)
func (*SponsoredMessage) UnmarshalJSON ¶
func (sponsoredMessage *SponsoredMessage) UnmarshalJSON(data []byte) error
type SponsoredMessages ¶ added in v1.2.3
type SponsoredMessages struct { // List of sponsored messages Messages []*SponsoredMessage `json:"messages"` // The minimum number of messages between shown sponsored messages, or 0 if only one sponsored message must be shown after all ordinary messages MessagesBetween int32 `json:"messages_between"` // contains filtered or unexported fields }
Contains a list of sponsored messages
func UnmarshalSponsoredMessages ¶ added in v1.2.3
func UnmarshalSponsoredMessages(data json.RawMessage) (*SponsoredMessages, error)
func (*SponsoredMessages) GetClass ¶ added in v1.2.3
func (*SponsoredMessages) GetClass() string
func (*SponsoredMessages) GetType ¶ added in v1.2.3
func (*SponsoredMessages) GetType() string
func (*SponsoredMessages) MarshalJSON ¶ added in v1.2.3
func (entity *SponsoredMessages) MarshalJSON() ([]byte, error)
type StartGroupCallRecordingRequest ¶
type StartGroupCallRecordingRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` // Group call recording title; 0-64 characters Title string `json:"title"` // Pass true to record a video file instead of an audio file RecordVideo bool `json:"record_video"` // Pass true to use portrait orientation for video instead of landscape one UsePortraitOrientation bool `json:"use_portrait_orientation"` }
type StartGroupCallScreenSharingRequest ¶
type StartGroupCallScreenSharingRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` // Screen sharing audio channel synchronization source identifier; received from tgcalls AudioSourceId int32 `json:"audio_source_id"` // Group call join payload; received from tgcalls Payload string `json:"payload"` }
type StartScheduledGroupCallRequest ¶
type StartScheduledGroupCallRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` }
type StatisticalGraph ¶
type StatisticalGraph interface {
StatisticalGraphType() string
}
Describes a statistical graph
func UnmarshalListOfStatisticalGraph ¶
func UnmarshalListOfStatisticalGraph(dataList []json.RawMessage) ([]StatisticalGraph, error)
func UnmarshalStatisticalGraph ¶
func UnmarshalStatisticalGraph(data json.RawMessage) (StatisticalGraph, error)
type StatisticalGraphAsync ¶
type StatisticalGraphAsync struct { // The token to use for data loading Token string `json:"token"` // contains filtered or unexported fields }
The graph data to be asynchronously loaded through getStatisticalGraph
func UnmarshalStatisticalGraphAsync ¶
func UnmarshalStatisticalGraphAsync(data json.RawMessage) (*StatisticalGraphAsync, error)
func (*StatisticalGraphAsync) GetClass ¶
func (*StatisticalGraphAsync) GetClass() string
func (*StatisticalGraphAsync) GetType ¶
func (*StatisticalGraphAsync) GetType() string
func (*StatisticalGraphAsync) MarshalJSON ¶
func (entity *StatisticalGraphAsync) MarshalJSON() ([]byte, error)
func (*StatisticalGraphAsync) StatisticalGraphType ¶
func (*StatisticalGraphAsync) StatisticalGraphType() string
type StatisticalGraphData ¶
type StatisticalGraphData struct { // Graph data in JSON format JsonData string `json:"json_data"` // If non-empty, a token which can be used to receive a zoomed in graph ZoomToken string `json:"zoom_token"` // contains filtered or unexported fields }
A graph data
func UnmarshalStatisticalGraphData ¶
func UnmarshalStatisticalGraphData(data json.RawMessage) (*StatisticalGraphData, error)
func (*StatisticalGraphData) GetClass ¶
func (*StatisticalGraphData) GetClass() string
func (*StatisticalGraphData) GetType ¶
func (*StatisticalGraphData) GetType() string
func (*StatisticalGraphData) MarshalJSON ¶
func (entity *StatisticalGraphData) MarshalJSON() ([]byte, error)
func (*StatisticalGraphData) StatisticalGraphType ¶
func (*StatisticalGraphData) StatisticalGraphType() string
type StatisticalGraphError ¶
type StatisticalGraphError struct { // The error message ErrorMessage string `json:"error_message"` // contains filtered or unexported fields }
An error message to be shown to the user instead of the graph
func UnmarshalStatisticalGraphError ¶
func UnmarshalStatisticalGraphError(data json.RawMessage) (*StatisticalGraphError, error)
func (*StatisticalGraphError) GetClass ¶
func (*StatisticalGraphError) GetClass() string
func (*StatisticalGraphError) GetType ¶
func (*StatisticalGraphError) GetType() string
func (*StatisticalGraphError) MarshalJSON ¶
func (entity *StatisticalGraphError) MarshalJSON() ([]byte, error)
func (*StatisticalGraphError) StatisticalGraphType ¶
func (*StatisticalGraphError) StatisticalGraphType() string
type StatisticalValue ¶
type StatisticalValue struct { // The current value Value float64 `json:"value"` // The value for the previous day PreviousValue float64 `json:"previous_value"` // The growth rate of the value, as a percentage GrowthRatePercentage float64 `json:"growth_rate_percentage"` // contains filtered or unexported fields }
A value with information about its recent changes
func UnmarshalStatisticalValue ¶
func UnmarshalStatisticalValue(data json.RawMessage) (*StatisticalValue, error)
func (*StatisticalValue) GetClass ¶
func (*StatisticalValue) GetClass() string
func (*StatisticalValue) GetType ¶
func (*StatisticalValue) GetType() string
func (*StatisticalValue) MarshalJSON ¶
func (entity *StatisticalValue) MarshalJSON() ([]byte, error)
type Sticker ¶
type Sticker struct { // Unique sticker identifier within the set; 0 if none Id JsonInt64 `json:"id"` // Identifier of the sticker set to which the sticker belongs; 0 if none SetId JsonInt64 `json:"set_id"` // Sticker width; as defined by the sender Width int32 `json:"width"` // Sticker height; as defined by the sender Height int32 `json:"height"` // Emoji corresponding to the sticker Emoji string `json:"emoji"` // Sticker format Format StickerFormat `json:"format"` // Sticker's full type FullType StickerFullType `json:"full_type"` // Sticker's outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner Outline []*ClosedVectorPath `json:"outline"` // Sticker thumbnail in WEBP or JPEG format; may be null Thumbnail *Thumbnail `json:"thumbnail"` // File containing the sticker Sticker *File `json:"sticker"` // contains filtered or unexported fields }
Describes a sticker
func UnmarshalSticker ¶
func UnmarshalSticker(data json.RawMessage) (*Sticker, error)
func (*Sticker) MarshalJSON ¶
func (*Sticker) UnmarshalJSON ¶ added in v1.0.6
type StickerFormat ¶ added in v1.2.3
type StickerFormat interface {
StickerFormatType() string
}
Describes format of a sticker
func UnmarshalListOfStickerFormat ¶ added in v1.2.3
func UnmarshalListOfStickerFormat(dataList []json.RawMessage) ([]StickerFormat, error)
func UnmarshalStickerFormat ¶ added in v1.2.3
func UnmarshalStickerFormat(data json.RawMessage) (StickerFormat, error)
type StickerFormatTgs ¶ added in v1.2.3
type StickerFormatTgs struct {
// contains filtered or unexported fields
}
The sticker is an animation in TGS format
func UnmarshalStickerFormatTgs ¶ added in v1.2.3
func UnmarshalStickerFormatTgs(data json.RawMessage) (*StickerFormatTgs, error)
func (*StickerFormatTgs) GetClass ¶ added in v1.2.3
func (*StickerFormatTgs) GetClass() string
func (*StickerFormatTgs) GetType ¶ added in v1.2.3
func (*StickerFormatTgs) GetType() string
func (*StickerFormatTgs) MarshalJSON ¶ added in v1.2.3
func (entity *StickerFormatTgs) MarshalJSON() ([]byte, error)
func (*StickerFormatTgs) StickerFormatType ¶ added in v1.2.3
func (*StickerFormatTgs) StickerFormatType() string
type StickerFormatWebm ¶ added in v1.2.3
type StickerFormatWebm struct {
// contains filtered or unexported fields
}
The sticker is a video in WEBM format
func UnmarshalStickerFormatWebm ¶ added in v1.2.3
func UnmarshalStickerFormatWebm(data json.RawMessage) (*StickerFormatWebm, error)
func (*StickerFormatWebm) GetClass ¶ added in v1.2.3
func (*StickerFormatWebm) GetClass() string
func (*StickerFormatWebm) GetType ¶ added in v1.2.3
func (*StickerFormatWebm) GetType() string
func (*StickerFormatWebm) MarshalJSON ¶ added in v1.2.3
func (entity *StickerFormatWebm) MarshalJSON() ([]byte, error)
func (*StickerFormatWebm) StickerFormatType ¶ added in v1.2.3
func (*StickerFormatWebm) StickerFormatType() string
type StickerFormatWebp ¶ added in v1.2.3
type StickerFormatWebp struct {
// contains filtered or unexported fields
}
The sticker is an image in WEBP format
func UnmarshalStickerFormatWebp ¶ added in v1.2.3
func UnmarshalStickerFormatWebp(data json.RawMessage) (*StickerFormatWebp, error)
func (*StickerFormatWebp) GetClass ¶ added in v1.2.3
func (*StickerFormatWebp) GetClass() string
func (*StickerFormatWebp) GetType ¶ added in v1.2.3
func (*StickerFormatWebp) GetType() string
func (*StickerFormatWebp) MarshalJSON ¶ added in v1.2.3
func (entity *StickerFormatWebp) MarshalJSON() ([]byte, error)
func (*StickerFormatWebp) StickerFormatType ¶ added in v1.2.3
func (*StickerFormatWebp) StickerFormatType() string
type StickerFullType ¶ added in v1.2.3
type StickerFullType interface {
StickerFullTypeType() string
}
Contains full information about sticker type
func UnmarshalListOfStickerFullType ¶ added in v1.2.3
func UnmarshalListOfStickerFullType(dataList []json.RawMessage) ([]StickerFullType, error)
func UnmarshalStickerFullType ¶ added in v1.2.3
func UnmarshalStickerFullType(data json.RawMessage) (StickerFullType, error)
type StickerFullTypeCustomEmoji ¶ added in v1.2.3
type StickerFullTypeCustomEmoji struct { // Identifier of the custom emoji CustomEmojiId JsonInt64 `json:"custom_emoji_id"` // True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, white color on chat photos, or another appropriate color in other places NeedsRepainting bool `json:"needs_repainting"` // contains filtered or unexported fields }
The sticker is a custom emoji to be used inside message text and caption. Currently, only Telegram Premium users can use custom emoji
func UnmarshalStickerFullTypeCustomEmoji ¶ added in v1.2.3
func UnmarshalStickerFullTypeCustomEmoji(data json.RawMessage) (*StickerFullTypeCustomEmoji, error)
func (*StickerFullTypeCustomEmoji) GetClass ¶ added in v1.2.3
func (*StickerFullTypeCustomEmoji) GetClass() string
func (*StickerFullTypeCustomEmoji) GetType ¶ added in v1.2.3
func (*StickerFullTypeCustomEmoji) GetType() string
func (*StickerFullTypeCustomEmoji) MarshalJSON ¶ added in v1.2.3
func (entity *StickerFullTypeCustomEmoji) MarshalJSON() ([]byte, error)
func (*StickerFullTypeCustomEmoji) StickerFullTypeType ¶ added in v1.2.3
func (*StickerFullTypeCustomEmoji) StickerFullTypeType() string
type StickerFullTypeMask ¶ added in v1.2.3
type StickerFullTypeMask struct { // Position where the mask is placed; may be null MaskPosition *MaskPosition `json:"mask_position"` // contains filtered or unexported fields }
The sticker is a mask in WEBP format to be placed on photos or videos
func UnmarshalStickerFullTypeMask ¶ added in v1.2.3
func UnmarshalStickerFullTypeMask(data json.RawMessage) (*StickerFullTypeMask, error)
func (*StickerFullTypeMask) GetClass ¶ added in v1.2.3
func (*StickerFullTypeMask) GetClass() string
func (*StickerFullTypeMask) GetType ¶ added in v1.2.3
func (*StickerFullTypeMask) GetType() string
func (*StickerFullTypeMask) MarshalJSON ¶ added in v1.2.3
func (entity *StickerFullTypeMask) MarshalJSON() ([]byte, error)
func (*StickerFullTypeMask) StickerFullTypeType ¶ added in v1.2.3
func (*StickerFullTypeMask) StickerFullTypeType() string
type StickerFullTypeRegular ¶ added in v1.2.3
type StickerFullTypeRegular struct { // Premium animation of the sticker; may be null. If present, only Telegram Premium users can use the sticker PremiumAnimation *File `json:"premium_animation"` // contains filtered or unexported fields }
The sticker is a regular sticker
func UnmarshalStickerFullTypeRegular ¶ added in v1.2.3
func UnmarshalStickerFullTypeRegular(data json.RawMessage) (*StickerFullTypeRegular, error)
func (*StickerFullTypeRegular) GetClass ¶ added in v1.2.3
func (*StickerFullTypeRegular) GetClass() string
func (*StickerFullTypeRegular) GetType ¶ added in v1.2.3
func (*StickerFullTypeRegular) GetType() string
func (*StickerFullTypeRegular) MarshalJSON ¶ added in v1.2.3
func (entity *StickerFullTypeRegular) MarshalJSON() ([]byte, error)
func (*StickerFullTypeRegular) StickerFullTypeType ¶ added in v1.2.3
func (*StickerFullTypeRegular) StickerFullTypeType() string
type StickerSet ¶
type StickerSet struct { // Identifier of the sticker set Id JsonInt64 `json:"id"` // Title of the sticker set Title string `json:"title"` // Name of the sticker set Name string `json:"name"` // Sticker set thumbnail in WEBP, TGS, or WEBM format with width and height 100; may be null. The file can be downloaded only before the thumbnail is changed Thumbnail *Thumbnail `json:"thumbnail"` // Sticker set thumbnail's outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner ThumbnailOutline []*ClosedVectorPath `json:"thumbnail_outline"` // True, if the sticker set has been installed by the current user IsInstalled bool `json:"is_installed"` // True, if the sticker set has been archived. A sticker set can't be installed and archived simultaneously IsArchived bool `json:"is_archived"` // True, if the sticker set is official IsOfficial bool `json:"is_official"` // Format of the stickers in the set StickerFormat StickerFormat `json:"sticker_format"` // Type of the stickers in the set StickerType StickerType `json:"sticker_type"` // True for already viewed trending sticker sets IsViewed bool `json:"is_viewed"` // List of stickers in this set Stickers []*Sticker `json:"stickers"` // A list of emoji corresponding to the stickers in the same order. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object Emojis []*Emojis `json:"emojis"` // contains filtered or unexported fields }
Represents a sticker set
func UnmarshalStickerSet ¶
func UnmarshalStickerSet(data json.RawMessage) (*StickerSet, error)
func (*StickerSet) GetClass ¶
func (*StickerSet) GetClass() string
func (*StickerSet) GetType ¶
func (*StickerSet) GetType() string
func (*StickerSet) MarshalJSON ¶
func (entity *StickerSet) MarshalJSON() ([]byte, error)
func (*StickerSet) UnmarshalJSON ¶ added in v1.0.6
func (stickerSet *StickerSet) UnmarshalJSON(data []byte) error
type StickerSetInfo ¶
type StickerSetInfo struct { // Identifier of the sticker set Id JsonInt64 `json:"id"` // Title of the sticker set Title string `json:"title"` // Name of the sticker set Name string `json:"name"` // Sticker set thumbnail in WEBP, TGS, or WEBM format with width and height 100; may be null Thumbnail *Thumbnail `json:"thumbnail"` // Sticker set thumbnail's outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner ThumbnailOutline []*ClosedVectorPath `json:"thumbnail_outline"` // True, if the sticker set has been installed by the current user IsInstalled bool `json:"is_installed"` // True, if the sticker set has been archived. A sticker set can't be installed and archived simultaneously IsArchived bool `json:"is_archived"` // True, if the sticker set is official IsOfficial bool `json:"is_official"` // Format of the stickers in the set StickerFormat StickerFormat `json:"sticker_format"` // Type of the stickers in the set StickerType StickerType `json:"sticker_type"` // True for already viewed trending sticker sets IsViewed bool `json:"is_viewed"` // Total number of stickers in the set Size int32 `json:"size"` // Up to the first 5 stickers from the set, depending on the context. If the application needs more stickers the full sticker set needs to be requested Covers []*Sticker `json:"covers"` // contains filtered or unexported fields }
Represents short information about a sticker set
func UnmarshalStickerSetInfo ¶
func UnmarshalStickerSetInfo(data json.RawMessage) (*StickerSetInfo, error)
func (*StickerSetInfo) GetClass ¶
func (*StickerSetInfo) GetClass() string
func (*StickerSetInfo) GetType ¶
func (*StickerSetInfo) GetType() string
func (*StickerSetInfo) MarshalJSON ¶
func (entity *StickerSetInfo) MarshalJSON() ([]byte, error)
func (*StickerSetInfo) UnmarshalJSON ¶ added in v1.0.6
func (stickerSetInfo *StickerSetInfo) UnmarshalJSON(data []byte) error
type StickerSets ¶
type StickerSets struct { // Approximate total number of sticker sets found TotalCount int32 `json:"total_count"` // List of sticker sets Sets []*StickerSetInfo `json:"sets"` // contains filtered or unexported fields }
Represents a list of sticker sets
func UnmarshalStickerSets ¶
func UnmarshalStickerSets(data json.RawMessage) (*StickerSets, error)
func (*StickerSets) GetClass ¶
func (*StickerSets) GetClass() string
func (*StickerSets) GetType ¶
func (*StickerSets) GetType() string
func (*StickerSets) MarshalJSON ¶
func (entity *StickerSets) MarshalJSON() ([]byte, error)
type StickerType ¶ added in v1.0.6
type StickerType interface {
StickerTypeType() string
}
Describes type of a sticker
func UnmarshalListOfStickerType ¶ added in v1.0.6
func UnmarshalListOfStickerType(dataList []json.RawMessage) ([]StickerType, error)
func UnmarshalStickerType ¶ added in v1.0.6
func UnmarshalStickerType(data json.RawMessage) (StickerType, error)
type StickerTypeCustomEmoji ¶ added in v1.2.3
type StickerTypeCustomEmoji struct {
// contains filtered or unexported fields
}
The sticker is a custom emoji to be used inside message text and caption
func UnmarshalStickerTypeCustomEmoji ¶ added in v1.2.3
func UnmarshalStickerTypeCustomEmoji(data json.RawMessage) (*StickerTypeCustomEmoji, error)
func (*StickerTypeCustomEmoji) GetClass ¶ added in v1.2.3
func (*StickerTypeCustomEmoji) GetClass() string
func (*StickerTypeCustomEmoji) GetType ¶ added in v1.2.3
func (*StickerTypeCustomEmoji) GetType() string
func (*StickerTypeCustomEmoji) MarshalJSON ¶ added in v1.2.3
func (entity *StickerTypeCustomEmoji) MarshalJSON() ([]byte, error)
func (*StickerTypeCustomEmoji) StickerTypeType ¶ added in v1.2.3
func (*StickerTypeCustomEmoji) StickerTypeType() string
type StickerTypeMask ¶ added in v1.0.6
type StickerTypeMask struct {
// contains filtered or unexported fields
}
The sticker is a mask in WEBP format to be placed on photos or videos
func UnmarshalStickerTypeMask ¶ added in v1.0.6
func UnmarshalStickerTypeMask(data json.RawMessage) (*StickerTypeMask, error)
func (*StickerTypeMask) GetClass ¶ added in v1.0.6
func (*StickerTypeMask) GetClass() string
func (*StickerTypeMask) GetType ¶ added in v1.0.6
func (*StickerTypeMask) GetType() string
func (*StickerTypeMask) MarshalJSON ¶ added in v1.0.6
func (entity *StickerTypeMask) MarshalJSON() ([]byte, error)
func (*StickerTypeMask) StickerTypeType ¶ added in v1.0.6
func (*StickerTypeMask) StickerTypeType() string
type StickerTypeRegular ¶ added in v1.2.3
type StickerTypeRegular struct {
// contains filtered or unexported fields
}
The sticker is a regular sticker
func UnmarshalStickerTypeRegular ¶ added in v1.2.3
func UnmarshalStickerTypeRegular(data json.RawMessage) (*StickerTypeRegular, error)
func (*StickerTypeRegular) GetClass ¶ added in v1.2.3
func (*StickerTypeRegular) GetClass() string
func (*StickerTypeRegular) GetType ¶ added in v1.2.3
func (*StickerTypeRegular) GetType() string
func (*StickerTypeRegular) MarshalJSON ¶ added in v1.2.3
func (entity *StickerTypeRegular) MarshalJSON() ([]byte, error)
func (*StickerTypeRegular) StickerTypeType ¶ added in v1.2.3
func (*StickerTypeRegular) StickerTypeType() string
type Stickers ¶
type Stickers struct { // List of stickers Stickers []*Sticker `json:"stickers"` // contains filtered or unexported fields }
Represents a list of stickers
func UnmarshalStickers ¶
func UnmarshalStickers(data json.RawMessage) (*Stickers, error)
func (*Stickers) MarshalJSON ¶
type StopPollRequest ¶
type StopPollRequest struct { // Identifier of the chat to which the poll belongs ChatId int64 `json:"chat_id"` // Identifier of the message containing the poll MessageId int64 `json:"message_id"` // The new message reply markup; pass null if none; for bots only ReplyMarkup ReplyMarkup `json:"reply_markup"` }
type StorageStatistics ¶
type StorageStatistics struct { // Total size of files, in bytes Size int64 `json:"size"` // Total number of files Count int32 `json:"count"` // Statistics split by chats ByChat []*StorageStatisticsByChat `json:"by_chat"` // contains filtered or unexported fields }
Contains the exact storage usage statistics split by chats and file type
func UnmarshalStorageStatistics ¶
func UnmarshalStorageStatistics(data json.RawMessage) (*StorageStatistics, error)
func (*StorageStatistics) GetClass ¶
func (*StorageStatistics) GetClass() string
func (*StorageStatistics) GetType ¶
func (*StorageStatistics) GetType() string
func (*StorageStatistics) MarshalJSON ¶
func (entity *StorageStatistics) MarshalJSON() ([]byte, error)
type StorageStatisticsByChat ¶
type StorageStatisticsByChat struct { // Chat identifier; 0 if none ChatId int64 `json:"chat_id"` // Total size of the files in the chat, in bytes Size int64 `json:"size"` // Total number of files in the chat Count int32 `json:"count"` // Statistics split by file types ByFileType []*StorageStatisticsByFileType `json:"by_file_type"` // contains filtered or unexported fields }
Contains the storage usage statistics for a specific chat
func UnmarshalStorageStatisticsByChat ¶
func UnmarshalStorageStatisticsByChat(data json.RawMessage) (*StorageStatisticsByChat, error)
func (*StorageStatisticsByChat) GetClass ¶
func (*StorageStatisticsByChat) GetClass() string
func (*StorageStatisticsByChat) GetType ¶
func (*StorageStatisticsByChat) GetType() string
func (*StorageStatisticsByChat) MarshalJSON ¶
func (entity *StorageStatisticsByChat) MarshalJSON() ([]byte, error)
type StorageStatisticsByFileType ¶
type StorageStatisticsByFileType struct { // File type FileType FileType `json:"file_type"` // Total size of the files, in bytes Size int64 `json:"size"` // Total number of files Count int32 `json:"count"` // contains filtered or unexported fields }
Contains the storage usage statistics for a specific file type
func UnmarshalStorageStatisticsByFileType ¶
func UnmarshalStorageStatisticsByFileType(data json.RawMessage) (*StorageStatisticsByFileType, error)
func (*StorageStatisticsByFileType) GetClass ¶
func (*StorageStatisticsByFileType) GetClass() string
func (*StorageStatisticsByFileType) GetType ¶
func (*StorageStatisticsByFileType) GetType() string
func (*StorageStatisticsByFileType) MarshalJSON ¶
func (entity *StorageStatisticsByFileType) MarshalJSON() ([]byte, error)
func (*StorageStatisticsByFileType) UnmarshalJSON ¶
func (storageStatisticsByFileType *StorageStatisticsByFileType) UnmarshalJSON(data []byte) error
type StorageStatisticsFast ¶
type StorageStatisticsFast struct { // Approximate total size of files, in bytes FilesSize int64 `json:"files_size"` // Approximate number of files FileCount int32 `json:"file_count"` // Size of the database DatabaseSize int64 `json:"database_size"` // Size of the language pack database LanguagePackDatabaseSize int64 `json:"language_pack_database_size"` // Size of the TDLib internal log LogSize int64 `json:"log_size"` // contains filtered or unexported fields }
Contains approximate storage usage statistics, excluding files of unknown file type
func UnmarshalStorageStatisticsFast ¶
func UnmarshalStorageStatisticsFast(data json.RawMessage) (*StorageStatisticsFast, error)
func (*StorageStatisticsFast) GetClass ¶
func (*StorageStatisticsFast) GetClass() string
func (*StorageStatisticsFast) GetType ¶
func (*StorageStatisticsFast) GetType() string
func (*StorageStatisticsFast) MarshalJSON ¶
func (entity *StorageStatisticsFast) MarshalJSON() ([]byte, error)
type StorePaymentPurpose ¶ added in v1.2.3
type StorePaymentPurpose interface {
StorePaymentPurposeType() string
}
Describes a purpose of an in-store payment
func UnmarshalListOfStorePaymentPurpose ¶ added in v1.2.3
func UnmarshalListOfStorePaymentPurpose(dataList []json.RawMessage) ([]StorePaymentPurpose, error)
func UnmarshalStorePaymentPurpose ¶ added in v1.2.3
func UnmarshalStorePaymentPurpose(data json.RawMessage) (StorePaymentPurpose, error)
type StorePaymentPurposeGiftedPremium ¶ added in v1.2.3
type StorePaymentPurposeGiftedPremium struct { // Identifier of the user for which Premium was gifted UserId int64 `json:"user_id"` // ISO 4217 currency code of the payment currency Currency string `json:"currency"` // Paid amount, in the smallest units of the currency Amount int64 `json:"amount"` // contains filtered or unexported fields }
The user gifted Telegram Premium to another user
func UnmarshalStorePaymentPurposeGiftedPremium ¶ added in v1.2.3
func UnmarshalStorePaymentPurposeGiftedPremium(data json.RawMessage) (*StorePaymentPurposeGiftedPremium, error)
func (*StorePaymentPurposeGiftedPremium) GetClass ¶ added in v1.2.3
func (*StorePaymentPurposeGiftedPremium) GetClass() string
func (*StorePaymentPurposeGiftedPremium) GetType ¶ added in v1.2.3
func (*StorePaymentPurposeGiftedPremium) GetType() string
func (*StorePaymentPurposeGiftedPremium) MarshalJSON ¶ added in v1.2.3
func (entity *StorePaymentPurposeGiftedPremium) MarshalJSON() ([]byte, error)
func (*StorePaymentPurposeGiftedPremium) StorePaymentPurposeType ¶ added in v1.2.3
func (*StorePaymentPurposeGiftedPremium) StorePaymentPurposeType() string
type StorePaymentPurposePremiumSubscription ¶ added in v1.2.3
type StorePaymentPurposePremiumSubscription struct { // Pass true if this is a restore of a Telegram Premium purchase; only for App Store IsRestore bool `json:"is_restore"` // Pass true if this is an upgrade from a monthly subscription to early subscription; only for App Store IsUpgrade bool `json:"is_upgrade"` // contains filtered or unexported fields }
The user subscribed to Telegram Premium
func UnmarshalStorePaymentPurposePremiumSubscription ¶ added in v1.2.3
func UnmarshalStorePaymentPurposePremiumSubscription(data json.RawMessage) (*StorePaymentPurposePremiumSubscription, error)
func (*StorePaymentPurposePremiumSubscription) GetClass ¶ added in v1.2.3
func (*StorePaymentPurposePremiumSubscription) GetClass() string
func (*StorePaymentPurposePremiumSubscription) GetType ¶ added in v1.2.3
func (*StorePaymentPurposePremiumSubscription) GetType() string
func (*StorePaymentPurposePremiumSubscription) MarshalJSON ¶ added in v1.2.3
func (entity *StorePaymentPurposePremiumSubscription) MarshalJSON() ([]byte, error)
func (*StorePaymentPurposePremiumSubscription) StorePaymentPurposeType ¶ added in v1.2.3
func (*StorePaymentPurposePremiumSubscription) StorePaymentPurposeType() string
type Stories ¶ added in v1.2.3
type Stories struct { // Approximate total number of stories found TotalCount int32 `json:"total_count"` // The list of stories Stories []*Story `json:"stories"` // contains filtered or unexported fields }
Represents a list of stories
func UnmarshalStories ¶ added in v1.2.3
func UnmarshalStories(data json.RawMessage) (*Stories, error)
func (*Stories) MarshalJSON ¶ added in v1.2.3
type Story ¶ added in v1.2.3
type Story struct { // Unique story identifier among stories of the given sender Id int32 `json:"id"` // Identifier of the chat that posted the story SenderChatId int64 `json:"sender_chat_id"` // Point in time (Unix timestamp) when the story was published Date int32 `json:"date"` // True, if the story is being sent by the current user IsBeingSent bool `json:"is_being_sent"` // True, if the story is being edited by the current user IsBeingEdited bool `json:"is_being_edited"` // True, if the story was edited IsEdited bool `json:"is_edited"` // True, if the story is saved in the sender's profile and will be available there after expiration IsPinned bool `json:"is_pinned"` // True, if the story is visible only for the current user IsVisibleOnlyForSelf bool `json:"is_visible_only_for_self"` // True, if the story can be forwarded as a message. Otherwise, screenshots and saving of the story content must be also forbidden CanBeForwarded bool `json:"can_be_forwarded"` // True, if the story can be replied in the chat with the story sender CanBeReplied bool `json:"can_be_replied"` // True, if users viewed the story can be received through getStoryViewers CanGetViewers bool `json:"can_get_viewers"` // True, if users viewed the story can't be received, because the story has expired more than getOption("story_viewers_expiration_delay") seconds ago HasExpiredViewers bool `json:"has_expired_viewers"` // Information about interactions with the story; may be null if the story isn't owned or there were no interactions InteractionInfo *StoryInteractionInfo `json:"interaction_info"` // Type of the chosen reaction; may be null if none ChosenReactionType ReactionType `json:"chosen_reaction_type"` // Privacy rules affecting story visibility; may be approximate for non-owned stories PrivacySettings StoryPrivacySettings `json:"privacy_settings"` // Content of the story Content StoryContent `json:"content"` // Clickable areas to be shown on the story content Areas []*StoryArea `json:"areas"` // Caption of the story Caption *FormattedText `json:"caption"` // contains filtered or unexported fields }
Represents a story
func UnmarshalStory ¶ added in v1.2.3
func UnmarshalStory(data json.RawMessage) (*Story, error)
func (*Story) MarshalJSON ¶ added in v1.2.3
func (*Story) UnmarshalJSON ¶ added in v1.2.3
type StoryArea ¶ added in v1.2.3
type StoryArea struct { // Position of the area Position *StoryAreaPosition `json:"position"` // Type of the area Type StoryAreaType `json:"type"` // contains filtered or unexported fields }
Describes a clickable rectangle area on a story media
func UnmarshalStoryArea ¶ added in v1.2.3
func UnmarshalStoryArea(data json.RawMessage) (*StoryArea, error)
func (*StoryArea) MarshalJSON ¶ added in v1.2.3
func (*StoryArea) UnmarshalJSON ¶ added in v1.2.3
type StoryAreaPosition ¶ added in v1.2.3
type StoryAreaPosition struct { // The abscissa of the rectangle's center, as a percentage of the media width XPercentage float64 `json:"x_percentage"` // The ordinate of the rectangle's center, as a percentage of the media height YPercentage float64 `json:"y_percentage"` // The width of the rectangle, as a percentage of the media width WidthPercentage float64 `json:"width_percentage"` // The ordinate of the rectangle's center, as a percentage of the media height HeightPercentage float64 `json:"height_percentage"` // Clockwise rotation angle of the rectangle, in degrees; 0-360 RotationAngle float64 `json:"rotation_angle"` // contains filtered or unexported fields }
Describes position of a clickable rectangle area on a story media
func UnmarshalStoryAreaPosition ¶ added in v1.2.3
func UnmarshalStoryAreaPosition(data json.RawMessage) (*StoryAreaPosition, error)
func (*StoryAreaPosition) GetClass ¶ added in v1.2.3
func (*StoryAreaPosition) GetClass() string
func (*StoryAreaPosition) GetType ¶ added in v1.2.3
func (*StoryAreaPosition) GetType() string
func (*StoryAreaPosition) MarshalJSON ¶ added in v1.2.3
func (entity *StoryAreaPosition) MarshalJSON() ([]byte, error)
type StoryAreaType ¶ added in v1.2.3
type StoryAreaType interface {
StoryAreaTypeType() string
}
Describes type of a clickable rectangle area on a story media
func UnmarshalListOfStoryAreaType ¶ added in v1.2.3
func UnmarshalListOfStoryAreaType(dataList []json.RawMessage) ([]StoryAreaType, error)
func UnmarshalStoryAreaType ¶ added in v1.2.3
func UnmarshalStoryAreaType(data json.RawMessage) (StoryAreaType, error)
type StoryAreaTypeLocation ¶ added in v1.2.3
type StoryAreaTypeLocation struct { // The location Location *Location `json:"location"` // contains filtered or unexported fields }
An area pointing to a location
func UnmarshalStoryAreaTypeLocation ¶ added in v1.2.3
func UnmarshalStoryAreaTypeLocation(data json.RawMessage) (*StoryAreaTypeLocation, error)
func (*StoryAreaTypeLocation) GetClass ¶ added in v1.2.3
func (*StoryAreaTypeLocation) GetClass() string
func (*StoryAreaTypeLocation) GetType ¶ added in v1.2.3
func (*StoryAreaTypeLocation) GetType() string
func (*StoryAreaTypeLocation) MarshalJSON ¶ added in v1.2.3
func (entity *StoryAreaTypeLocation) MarshalJSON() ([]byte, error)
func (*StoryAreaTypeLocation) StoryAreaTypeType ¶ added in v1.2.3
func (*StoryAreaTypeLocation) StoryAreaTypeType() string
type StoryAreaTypeVenue ¶ added in v1.2.3
type StoryAreaTypeVenue struct { // Information about the venue Venue *Venue `json:"venue"` // contains filtered or unexported fields }
An area pointing to a venue
func UnmarshalStoryAreaTypeVenue ¶ added in v1.2.3
func UnmarshalStoryAreaTypeVenue(data json.RawMessage) (*StoryAreaTypeVenue, error)
func (*StoryAreaTypeVenue) GetClass ¶ added in v1.2.3
func (*StoryAreaTypeVenue) GetClass() string
func (*StoryAreaTypeVenue) GetType ¶ added in v1.2.3
func (*StoryAreaTypeVenue) GetType() string
func (*StoryAreaTypeVenue) MarshalJSON ¶ added in v1.2.3
func (entity *StoryAreaTypeVenue) MarshalJSON() ([]byte, error)
func (*StoryAreaTypeVenue) StoryAreaTypeType ¶ added in v1.2.3
func (*StoryAreaTypeVenue) StoryAreaTypeType() string
type StoryContent ¶ added in v1.2.3
type StoryContent interface {
StoryContentType() string
}
Contains the content of a story
func UnmarshalListOfStoryContent ¶ added in v1.2.3
func UnmarshalListOfStoryContent(dataList []json.RawMessage) ([]StoryContent, error)
func UnmarshalStoryContent ¶ added in v1.2.3
func UnmarshalStoryContent(data json.RawMessage) (StoryContent, error)
type StoryContentPhoto ¶ added in v1.2.3
type StoryContentPhoto struct { // The photo Photo *Photo `json:"photo"` // contains filtered or unexported fields }
A photo story
func UnmarshalStoryContentPhoto ¶ added in v1.2.3
func UnmarshalStoryContentPhoto(data json.RawMessage) (*StoryContentPhoto, error)
func (*StoryContentPhoto) GetClass ¶ added in v1.2.3
func (*StoryContentPhoto) GetClass() string
func (*StoryContentPhoto) GetType ¶ added in v1.2.3
func (*StoryContentPhoto) GetType() string
func (*StoryContentPhoto) MarshalJSON ¶ added in v1.2.3
func (entity *StoryContentPhoto) MarshalJSON() ([]byte, error)
func (*StoryContentPhoto) StoryContentType ¶ added in v1.2.3
func (*StoryContentPhoto) StoryContentType() string
type StoryContentUnsupported ¶ added in v1.2.3
type StoryContentUnsupported struct {
// contains filtered or unexported fields
}
A story content that is not supported in the current TDLib version
func UnmarshalStoryContentUnsupported ¶ added in v1.2.3
func UnmarshalStoryContentUnsupported(data json.RawMessage) (*StoryContentUnsupported, error)
func (*StoryContentUnsupported) GetClass ¶ added in v1.2.3
func (*StoryContentUnsupported) GetClass() string
func (*StoryContentUnsupported) GetType ¶ added in v1.2.3
func (*StoryContentUnsupported) GetType() string
func (*StoryContentUnsupported) MarshalJSON ¶ added in v1.2.3
func (entity *StoryContentUnsupported) MarshalJSON() ([]byte, error)
func (*StoryContentUnsupported) StoryContentType ¶ added in v1.2.3
func (*StoryContentUnsupported) StoryContentType() string
type StoryContentVideo ¶ added in v1.2.3
type StoryContentVideo struct { // The video in MPEG4 format Video *StoryVideo `json:"video"` // Alternative version of the video in MPEG4 format, encoded by x264 codec; may be null AlternativeVideo *StoryVideo `json:"alternative_video"` // contains filtered or unexported fields }
A video story
func UnmarshalStoryContentVideo ¶ added in v1.2.3
func UnmarshalStoryContentVideo(data json.RawMessage) (*StoryContentVideo, error)
func (*StoryContentVideo) GetClass ¶ added in v1.2.3
func (*StoryContentVideo) GetClass() string
func (*StoryContentVideo) GetType ¶ added in v1.2.3
func (*StoryContentVideo) GetType() string
func (*StoryContentVideo) MarshalJSON ¶ added in v1.2.3
func (entity *StoryContentVideo) MarshalJSON() ([]byte, error)
func (*StoryContentVideo) StoryContentType ¶ added in v1.2.3
func (*StoryContentVideo) StoryContentType() string
type StoryInfo ¶ added in v1.2.3
type StoryInfo struct { // Unique story identifier among stories of the given sender StoryId int32 `json:"story_id"` // Point in time (Unix timestamp) when the story was published Date int32 `json:"date"` // True, if the story is available only to close friends IsForCloseFriends bool `json:"is_for_close_friends"` // contains filtered or unexported fields }
Contains basic information about a story
func UnmarshalStoryInfo ¶ added in v1.2.3
func UnmarshalStoryInfo(data json.RawMessage) (*StoryInfo, error)
func (*StoryInfo) MarshalJSON ¶ added in v1.2.3
type StoryInteractionInfo ¶ added in v1.2.3
type StoryInteractionInfo struct { // Number of times the story was viewed ViewCount int32 `json:"view_count"` // Number of reactions added to the story ReactionCount int32 `json:"reaction_count"` // Identifiers of at most 3 recent viewers of the story RecentViewerUserIds []int64 `json:"recent_viewer_user_ids"` // contains filtered or unexported fields }
Contains information about interactions with a story
func UnmarshalStoryInteractionInfo ¶ added in v1.2.3
func UnmarshalStoryInteractionInfo(data json.RawMessage) (*StoryInteractionInfo, error)
func (*StoryInteractionInfo) GetClass ¶ added in v1.2.3
func (*StoryInteractionInfo) GetClass() string
func (*StoryInteractionInfo) GetType ¶ added in v1.2.3
func (*StoryInteractionInfo) GetType() string
func (*StoryInteractionInfo) MarshalJSON ¶ added in v1.2.3
func (entity *StoryInteractionInfo) MarshalJSON() ([]byte, error)
type StoryList ¶ added in v1.2.3
type StoryList interface {
StoryListType() string
}
Describes a list of stories
func UnmarshalListOfStoryList ¶ added in v1.2.3
func UnmarshalListOfStoryList(dataList []json.RawMessage) ([]StoryList, error)
func UnmarshalStoryList ¶ added in v1.2.3
func UnmarshalStoryList(data json.RawMessage) (StoryList, error)
type StoryListArchive ¶ added in v1.2.3
type StoryListArchive struct {
// contains filtered or unexported fields
}
The list of stories, shown in the Arvhive chat list
func UnmarshalStoryListArchive ¶ added in v1.2.3
func UnmarshalStoryListArchive(data json.RawMessage) (*StoryListArchive, error)
func (*StoryListArchive) GetClass ¶ added in v1.2.3
func (*StoryListArchive) GetClass() string
func (*StoryListArchive) GetType ¶ added in v1.2.3
func (*StoryListArchive) GetType() string
func (*StoryListArchive) MarshalJSON ¶ added in v1.2.3
func (entity *StoryListArchive) MarshalJSON() ([]byte, error)
func (*StoryListArchive) StoryListType ¶ added in v1.2.3
func (*StoryListArchive) StoryListType() string
type StoryListMain ¶ added in v1.2.3
type StoryListMain struct {
// contains filtered or unexported fields
}
The list of stories, shown in the main chat list and folder chat lists
func UnmarshalStoryListMain ¶ added in v1.2.3
func UnmarshalStoryListMain(data json.RawMessage) (*StoryListMain, error)
func (*StoryListMain) GetClass ¶ added in v1.2.3
func (*StoryListMain) GetClass() string
func (*StoryListMain) GetType ¶ added in v1.2.3
func (*StoryListMain) GetType() string
func (*StoryListMain) MarshalJSON ¶ added in v1.2.3
func (entity *StoryListMain) MarshalJSON() ([]byte, error)
func (*StoryListMain) StoryListType ¶ added in v1.2.3
func (*StoryListMain) StoryListType() string
type StoryPrivacySettings ¶ added in v1.2.3
type StoryPrivacySettings interface {
StoryPrivacySettingsType() string
}
Describes privacy settings of a story
func UnmarshalListOfStoryPrivacySettings ¶ added in v1.2.3
func UnmarshalListOfStoryPrivacySettings(dataList []json.RawMessage) ([]StoryPrivacySettings, error)
func UnmarshalStoryPrivacySettings ¶ added in v1.2.3
func UnmarshalStoryPrivacySettings(data json.RawMessage) (StoryPrivacySettings, error)
type StoryPrivacySettingsCloseFriends ¶ added in v1.2.3
type StoryPrivacySettingsCloseFriends struct {
// contains filtered or unexported fields
}
The story can be viewed by all close friends
func UnmarshalStoryPrivacySettingsCloseFriends ¶ added in v1.2.3
func UnmarshalStoryPrivacySettingsCloseFriends(data json.RawMessage) (*StoryPrivacySettingsCloseFriends, error)
func (*StoryPrivacySettingsCloseFriends) GetClass ¶ added in v1.2.3
func (*StoryPrivacySettingsCloseFriends) GetClass() string
func (*StoryPrivacySettingsCloseFriends) GetType ¶ added in v1.2.3
func (*StoryPrivacySettingsCloseFriends) GetType() string
func (*StoryPrivacySettingsCloseFriends) MarshalJSON ¶ added in v1.2.3
func (entity *StoryPrivacySettingsCloseFriends) MarshalJSON() ([]byte, error)
func (*StoryPrivacySettingsCloseFriends) StoryPrivacySettingsType ¶ added in v1.2.3
func (*StoryPrivacySettingsCloseFriends) StoryPrivacySettingsType() string
type StoryPrivacySettingsContacts ¶ added in v1.2.3
type StoryPrivacySettingsContacts struct { // User identifiers of the contacts that can't see the story; always unknown and empty for non-owned stories ExceptUserIds []int64 `json:"except_user_ids"` // contains filtered or unexported fields }
The story can be viewed by all contacts except chosen users
func UnmarshalStoryPrivacySettingsContacts ¶ added in v1.2.3
func UnmarshalStoryPrivacySettingsContacts(data json.RawMessage) (*StoryPrivacySettingsContacts, error)
func (*StoryPrivacySettingsContacts) GetClass ¶ added in v1.2.3
func (*StoryPrivacySettingsContacts) GetClass() string
func (*StoryPrivacySettingsContacts) GetType ¶ added in v1.2.3
func (*StoryPrivacySettingsContacts) GetType() string
func (*StoryPrivacySettingsContacts) MarshalJSON ¶ added in v1.2.3
func (entity *StoryPrivacySettingsContacts) MarshalJSON() ([]byte, error)
func (*StoryPrivacySettingsContacts) StoryPrivacySettingsType ¶ added in v1.2.3
func (*StoryPrivacySettingsContacts) StoryPrivacySettingsType() string
type StoryPrivacySettingsEveryone ¶ added in v1.2.3
type StoryPrivacySettingsEveryone struct { // Identifiers of the users that can't see the story; always unknown and empty for non-owned stories ExceptUserIds []int64 `json:"except_user_ids"` // contains filtered or unexported fields }
The story can be viewed by everyone
func UnmarshalStoryPrivacySettingsEveryone ¶ added in v1.2.3
func UnmarshalStoryPrivacySettingsEveryone(data json.RawMessage) (*StoryPrivacySettingsEveryone, error)
func (*StoryPrivacySettingsEveryone) GetClass ¶ added in v1.2.3
func (*StoryPrivacySettingsEveryone) GetClass() string
func (*StoryPrivacySettingsEveryone) GetType ¶ added in v1.2.3
func (*StoryPrivacySettingsEveryone) GetType() string
func (*StoryPrivacySettingsEveryone) MarshalJSON ¶ added in v1.2.3
func (entity *StoryPrivacySettingsEveryone) MarshalJSON() ([]byte, error)
func (*StoryPrivacySettingsEveryone) StoryPrivacySettingsType ¶ added in v1.2.3
func (*StoryPrivacySettingsEveryone) StoryPrivacySettingsType() string
type StoryPrivacySettingsSelectedUsers ¶ added in v1.2.3
type StoryPrivacySettingsSelectedUsers struct { // Identifiers of the users; always unknown and empty for non-owned stories UserIds []int64 `json:"user_ids"` // contains filtered or unexported fields }
The story can be viewed by certain specified users
func UnmarshalStoryPrivacySettingsSelectedUsers ¶ added in v1.2.3
func UnmarshalStoryPrivacySettingsSelectedUsers(data json.RawMessage) (*StoryPrivacySettingsSelectedUsers, error)
func (*StoryPrivacySettingsSelectedUsers) GetClass ¶ added in v1.2.3
func (*StoryPrivacySettingsSelectedUsers) GetClass() string
func (*StoryPrivacySettingsSelectedUsers) GetType ¶ added in v1.2.3
func (*StoryPrivacySettingsSelectedUsers) GetType() string
func (*StoryPrivacySettingsSelectedUsers) MarshalJSON ¶ added in v1.2.3
func (entity *StoryPrivacySettingsSelectedUsers) MarshalJSON() ([]byte, error)
func (*StoryPrivacySettingsSelectedUsers) StoryPrivacySettingsType ¶ added in v1.2.3
func (*StoryPrivacySettingsSelectedUsers) StoryPrivacySettingsType() string
type StoryVideo ¶ added in v1.2.3
type StoryVideo struct { // Duration of the video, in seconds Duration float64 `json:"duration"` // Video width Width int32 `json:"width"` // Video height Height int32 `json:"height"` // True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets HasStickers bool `json:"has_stickers"` // True, if the video has no sound IsAnimation bool `json:"is_animation"` // Video minithumbnail; may be null Minithumbnail *Minithumbnail `json:"minithumbnail"` // Video thumbnail in JPEG or MPEG4 format; may be null Thumbnail *Thumbnail `json:"thumbnail"` // Size of file prefix, which is supposed to be preloaded, in bytes PreloadPrefixSize int32 `json:"preload_prefix_size"` // File containing the video Video *File `json:"video"` // contains filtered or unexported fields }
Describes a video file sent in a story
func UnmarshalStoryVideo ¶ added in v1.2.3
func UnmarshalStoryVideo(data json.RawMessage) (*StoryVideo, error)
func (*StoryVideo) GetClass ¶ added in v1.2.3
func (*StoryVideo) GetClass() string
func (*StoryVideo) GetType ¶ added in v1.2.3
func (*StoryVideo) GetType() string
func (*StoryVideo) MarshalJSON ¶ added in v1.2.3
func (entity *StoryVideo) MarshalJSON() ([]byte, error)
type StoryViewer ¶ added in v1.2.3
type StoryViewer struct { // User identifier of the viewer UserId int64 `json:"user_id"` // Approximate point in time (Unix timestamp) when the story was viewed ViewDate int32 `json:"view_date"` // Block list to which the user is added; may be null if none BlockList BlockList `json:"block_list"` // Type of the reaction that was chosen by the user; may be null if none ChosenReactionType ReactionType `json:"chosen_reaction_type"` // contains filtered or unexported fields }
Represents a viewer of a story
func UnmarshalStoryViewer ¶ added in v1.2.3
func UnmarshalStoryViewer(data json.RawMessage) (*StoryViewer, error)
func (*StoryViewer) GetClass ¶ added in v1.2.3
func (*StoryViewer) GetClass() string
func (*StoryViewer) GetType ¶ added in v1.2.3
func (*StoryViewer) GetType() string
func (*StoryViewer) MarshalJSON ¶ added in v1.2.3
func (entity *StoryViewer) MarshalJSON() ([]byte, error)
func (*StoryViewer) UnmarshalJSON ¶ added in v1.2.3
func (storyViewer *StoryViewer) UnmarshalJSON(data []byte) error
type StoryViewers ¶ added in v1.2.3
type StoryViewers struct { // Approximate total number of story viewers found TotalCount int32 `json:"total_count"` // Approximate total number of reactions set by found story viewers TotalReactionCount int32 `json:"total_reaction_count"` // List of story viewers Viewers []*StoryViewer `json:"viewers"` // The offset for the next request. If empty, there are no more results NextOffset string `json:"next_offset"` // contains filtered or unexported fields }
Represents a list of story viewers
func UnmarshalStoryViewers ¶ added in v1.2.3
func UnmarshalStoryViewers(data json.RawMessage) (*StoryViewers, error)
func (*StoryViewers) GetClass ¶ added in v1.2.3
func (*StoryViewers) GetClass() string
func (*StoryViewers) GetType ¶ added in v1.2.3
func (*StoryViewers) GetType() string
func (*StoryViewers) MarshalJSON ¶ added in v1.2.3
func (entity *StoryViewers) MarshalJSON() ([]byte, error)
type SuggestUserProfilePhotoRequest ¶ added in v1.2.3
type SuggestUserProfilePhotoRequest struct { // User identifier UserId int64 `json:"user_id"` // Profile photo to suggest; inputChatPhotoPrevious isn't supported in this function Photo InputChatPhoto `json:"photo"` }
type SuggestedAction ¶
type SuggestedAction interface {
SuggestedActionType() string
}
Describes an action suggested to the current user
func UnmarshalListOfSuggestedAction ¶
func UnmarshalListOfSuggestedAction(dataList []json.RawMessage) ([]SuggestedAction, error)
func UnmarshalSuggestedAction ¶
func UnmarshalSuggestedAction(data json.RawMessage) (SuggestedAction, error)
type SuggestedActionCheckPassword ¶
type SuggestedActionCheckPassword struct {
// contains filtered or unexported fields
}
Suggests the user to check whether they still remember their 2-step verification password
func UnmarshalSuggestedActionCheckPassword ¶
func UnmarshalSuggestedActionCheckPassword(data json.RawMessage) (*SuggestedActionCheckPassword, error)
func (*SuggestedActionCheckPassword) GetClass ¶
func (*SuggestedActionCheckPassword) GetClass() string
func (*SuggestedActionCheckPassword) GetType ¶
func (*SuggestedActionCheckPassword) GetType() string
func (*SuggestedActionCheckPassword) MarshalJSON ¶
func (entity *SuggestedActionCheckPassword) MarshalJSON() ([]byte, error)
func (*SuggestedActionCheckPassword) SuggestedActionType ¶
func (*SuggestedActionCheckPassword) SuggestedActionType() string
type SuggestedActionCheckPhoneNumber ¶
type SuggestedActionCheckPhoneNumber struct {
// contains filtered or unexported fields
}
Suggests the user to check whether authorization phone number is correct and change the phone number if it is inaccessible
func UnmarshalSuggestedActionCheckPhoneNumber ¶
func UnmarshalSuggestedActionCheckPhoneNumber(data json.RawMessage) (*SuggestedActionCheckPhoneNumber, error)
func (*SuggestedActionCheckPhoneNumber) GetClass ¶
func (*SuggestedActionCheckPhoneNumber) GetClass() string
func (*SuggestedActionCheckPhoneNumber) GetType ¶
func (*SuggestedActionCheckPhoneNumber) GetType() string
func (*SuggestedActionCheckPhoneNumber) MarshalJSON ¶
func (entity *SuggestedActionCheckPhoneNumber) MarshalJSON() ([]byte, error)
func (*SuggestedActionCheckPhoneNumber) SuggestedActionType ¶
func (*SuggestedActionCheckPhoneNumber) SuggestedActionType() string
type SuggestedActionConvertToBroadcastGroup ¶
type SuggestedActionConvertToBroadcastGroup struct { // Supergroup identifier SupergroupId int64 `json:"supergroup_id"` // contains filtered or unexported fields }
Suggests the user to convert specified supergroup to a broadcast group
func UnmarshalSuggestedActionConvertToBroadcastGroup ¶
func UnmarshalSuggestedActionConvertToBroadcastGroup(data json.RawMessage) (*SuggestedActionConvertToBroadcastGroup, error)
func (*SuggestedActionConvertToBroadcastGroup) GetClass ¶
func (*SuggestedActionConvertToBroadcastGroup) GetClass() string
func (*SuggestedActionConvertToBroadcastGroup) GetType ¶
func (*SuggestedActionConvertToBroadcastGroup) GetType() string
func (*SuggestedActionConvertToBroadcastGroup) MarshalJSON ¶
func (entity *SuggestedActionConvertToBroadcastGroup) MarshalJSON() ([]byte, error)
func (*SuggestedActionConvertToBroadcastGroup) SuggestedActionType ¶
func (*SuggestedActionConvertToBroadcastGroup) SuggestedActionType() string
type SuggestedActionEnableArchiveAndMuteNewChats ¶
type SuggestedActionEnableArchiveAndMuteNewChats struct {
// contains filtered or unexported fields
}
Suggests the user to enable archive_and_mute_new_chats_from_unknown_users setting in archiveChatListSettings
func UnmarshalSuggestedActionEnableArchiveAndMuteNewChats ¶
func UnmarshalSuggestedActionEnableArchiveAndMuteNewChats(data json.RawMessage) (*SuggestedActionEnableArchiveAndMuteNewChats, error)
func (*SuggestedActionEnableArchiveAndMuteNewChats) GetClass ¶
func (*SuggestedActionEnableArchiveAndMuteNewChats) GetClass() string
func (*SuggestedActionEnableArchiveAndMuteNewChats) GetType ¶
func (*SuggestedActionEnableArchiveAndMuteNewChats) GetType() string
func (*SuggestedActionEnableArchiveAndMuteNewChats) MarshalJSON ¶
func (entity *SuggestedActionEnableArchiveAndMuteNewChats) MarshalJSON() ([]byte, error)
func (*SuggestedActionEnableArchiveAndMuteNewChats) SuggestedActionType ¶
func (*SuggestedActionEnableArchiveAndMuteNewChats) SuggestedActionType() string
type SuggestedActionRestorePremium ¶ added in v1.2.3
type SuggestedActionRestorePremium struct {
// contains filtered or unexported fields
}
Suggests the user to restore a recently expired Premium subscription
func UnmarshalSuggestedActionRestorePremium ¶ added in v1.2.3
func UnmarshalSuggestedActionRestorePremium(data json.RawMessage) (*SuggestedActionRestorePremium, error)
func (*SuggestedActionRestorePremium) GetClass ¶ added in v1.2.3
func (*SuggestedActionRestorePremium) GetClass() string
func (*SuggestedActionRestorePremium) GetType ¶ added in v1.2.3
func (*SuggestedActionRestorePremium) GetType() string
func (*SuggestedActionRestorePremium) MarshalJSON ¶ added in v1.2.3
func (entity *SuggestedActionRestorePremium) MarshalJSON() ([]byte, error)
func (*SuggestedActionRestorePremium) SuggestedActionType ¶ added in v1.2.3
func (*SuggestedActionRestorePremium) SuggestedActionType() string
type SuggestedActionSetPassword ¶
type SuggestedActionSetPassword struct { // The number of days to pass between consecutive authorizations if the user declines to set password; if 0, then the user is advised to set the password for security reasons AuthorizationDelay int32 `json:"authorization_delay"` // contains filtered or unexported fields }
Suggests the user to set a 2-step verification password to be able to log in again
func UnmarshalSuggestedActionSetPassword ¶
func UnmarshalSuggestedActionSetPassword(data json.RawMessage) (*SuggestedActionSetPassword, error)
func (*SuggestedActionSetPassword) GetClass ¶
func (*SuggestedActionSetPassword) GetClass() string
func (*SuggestedActionSetPassword) GetType ¶
func (*SuggestedActionSetPassword) GetType() string
func (*SuggestedActionSetPassword) MarshalJSON ¶
func (entity *SuggestedActionSetPassword) MarshalJSON() ([]byte, error)
func (*SuggestedActionSetPassword) SuggestedActionType ¶
func (*SuggestedActionSetPassword) SuggestedActionType() string
type SuggestedActionSubscribeToAnnualPremium ¶ added in v1.2.3
type SuggestedActionSubscribeToAnnualPremium struct {
// contains filtered or unexported fields
}
Suggests the user to subscribe to the Premium subscription with annual payments
func UnmarshalSuggestedActionSubscribeToAnnualPremium ¶ added in v1.2.3
func UnmarshalSuggestedActionSubscribeToAnnualPremium(data json.RawMessage) (*SuggestedActionSubscribeToAnnualPremium, error)
func (*SuggestedActionSubscribeToAnnualPremium) GetClass ¶ added in v1.2.3
func (*SuggestedActionSubscribeToAnnualPremium) GetClass() string
func (*SuggestedActionSubscribeToAnnualPremium) GetType ¶ added in v1.2.3
func (*SuggestedActionSubscribeToAnnualPremium) GetType() string
func (*SuggestedActionSubscribeToAnnualPremium) MarshalJSON ¶ added in v1.2.3
func (entity *SuggestedActionSubscribeToAnnualPremium) MarshalJSON() ([]byte, error)
func (*SuggestedActionSubscribeToAnnualPremium) SuggestedActionType ¶ added in v1.2.3
func (*SuggestedActionSubscribeToAnnualPremium) SuggestedActionType() string
type SuggestedActionUpgradePremium ¶ added in v1.2.3
type SuggestedActionUpgradePremium struct {
// contains filtered or unexported fields
}
Suggests the user to upgrade the Premium subscription from monthly payments to annual payments
func UnmarshalSuggestedActionUpgradePremium ¶ added in v1.2.3
func UnmarshalSuggestedActionUpgradePremium(data json.RawMessage) (*SuggestedActionUpgradePremium, error)
func (*SuggestedActionUpgradePremium) GetClass ¶ added in v1.2.3
func (*SuggestedActionUpgradePremium) GetClass() string
func (*SuggestedActionUpgradePremium) GetType ¶ added in v1.2.3
func (*SuggestedActionUpgradePremium) GetType() string
func (*SuggestedActionUpgradePremium) MarshalJSON ¶ added in v1.2.3
func (entity *SuggestedActionUpgradePremium) MarshalJSON() ([]byte, error)
func (*SuggestedActionUpgradePremium) SuggestedActionType ¶ added in v1.2.3
func (*SuggestedActionUpgradePremium) SuggestedActionType() string
type SuggestedActionViewChecksHint ¶
type SuggestedActionViewChecksHint struct {
// contains filtered or unexported fields
}
Suggests the user to view a hint about the meaning of one and two check marks on sent messages
func UnmarshalSuggestedActionViewChecksHint ¶
func UnmarshalSuggestedActionViewChecksHint(data json.RawMessage) (*SuggestedActionViewChecksHint, error)
func (*SuggestedActionViewChecksHint) GetClass ¶
func (*SuggestedActionViewChecksHint) GetClass() string
func (*SuggestedActionViewChecksHint) GetType ¶
func (*SuggestedActionViewChecksHint) GetType() string
func (*SuggestedActionViewChecksHint) MarshalJSON ¶
func (entity *SuggestedActionViewChecksHint) MarshalJSON() ([]byte, error)
func (*SuggestedActionViewChecksHint) SuggestedActionType ¶
func (*SuggestedActionViewChecksHint) SuggestedActionType() string
type Supergroup ¶
type Supergroup struct { // Supergroup or channel identifier Id int64 `json:"id"` // Supergroup or channel access hash AccessHash JsonInt64 `json:"access_hash"` // Usernames of the supergroup or channel; may be null Usernames *Usernames `json:"usernames"` // Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member Date int32 `json:"date"` // Status of the current user in the supergroup or channel; custom title will always be empty Status ChatMemberStatus `json:"status"` // Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, getUserPrivacySettingRules, or in chatFolderInviteLinkInfo.missing_chat_ids MemberCount int32 `json:"member_count"` // True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel HasLinkedChat bool `json:"has_linked_chat"` // True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup HasLocation bool `json:"has_location"` // True, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels SignMessages bool `json:"sign_messages"` // True, if users need to join the supergroup before they can send messages. Always true for channels and non-discussion supergroups JoinToSendMessages bool `json:"join_to_send_messages"` // True, if all users directly joining the supergroup need to be approved by supergroup administrators. Always false for channels and supergroups without username, location, or a linked chat JoinByRequest bool `json:"join_by_request"` // True, if the slow mode is enabled in the supergroup IsSlowModeEnabled bool `json:"is_slow_mode_enabled"` // True, if the supergroup is a channel IsChannel bool `json:"is_channel"` // True, if the supergroup is a broadcast group, i.e. only administrators can send messages and there is no limit on the number of members IsBroadcastGroup bool `json:"is_broadcast_group"` // True, if the supergroup must be shown as a forum by default IsForum bool `json:"is_forum"` // True, if the supergroup or channel is verified IsVerified bool `json:"is_verified"` // If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted RestrictionReason string `json:"restriction_reason"` // True, if many users reported this supergroup or channel as a scam IsScam bool `json:"is_scam"` // True, if many users reported this supergroup or channel as a fake account IsFake bool `json:"is_fake"` // contains filtered or unexported fields }
Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers
func UnmarshalSupergroup ¶
func UnmarshalSupergroup(data json.RawMessage) (*Supergroup, error)
func (*Supergroup) GetClass ¶
func (*Supergroup) GetClass() string
func (*Supergroup) GetType ¶
func (*Supergroup) GetType() string
func (*Supergroup) MarshalJSON ¶
func (entity *Supergroup) MarshalJSON() ([]byte, error)
func (*Supergroup) UnmarshalJSON ¶
func (supergroup *Supergroup) UnmarshalJSON(data []byte) error
type SupergroupFullInfo ¶
type SupergroupFullInfo struct { // Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo Photo *ChatPhoto `json:"photo"` // Supergroup or channel description Description string `json:"description"` // Number of members in the supergroup or channel; 0 if unknown MemberCount int32 `json:"member_count"` // Number of privileged users in the supergroup or channel; 0 if unknown AdministratorCount int32 `json:"administrator_count"` // Number of restricted users in the supergroup; 0 if unknown RestrictedCount int32 `json:"restricted_count"` // Number of users banned from chat; 0 if unknown BannedCount int32 `json:"banned_count"` // Chat identifier of a discussion group for the channel, or a channel, for which the supergroup is the designated discussion group; 0 if none or unknown LinkedChatId int64 `json:"linked_chat_id"` // Delay between consecutive sent messages for non-administrator supergroup members, in seconds SlowModeDelay int32 `json:"slow_mode_delay"` // Time left before next message can be sent in the supergroup, in seconds. An updateSupergroupFullInfo update is not triggered when value of this field changes, but both new and old values are non-zero SlowModeDelayExpiresIn float64 `json:"slow_mode_delay_expires_in"` // True, if members of the chat can be retrieved via getSupergroupMembers or searchChatMembers CanGetMembers bool `json:"can_get_members"` // True, if non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers HasHiddenMembers bool `json:"has_hidden_members"` // True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators CanHideMembers bool `json:"can_hide_members"` // True, if the supergroup sticker set can be changed CanSetStickerSet bool `json:"can_set_sticker_set"` // True, if the supergroup location can be changed CanSetLocation bool `json:"can_set_location"` // True, if the supergroup or channel statistics are available CanGetStatistics bool `json:"can_get_statistics"` // True, if aggressive anti-spam checks can be enabled or disabled in the supergroup CanToggleAggressiveAntiSpam bool `json:"can_toggle_aggressive_anti_spam"` // True, if new chat members will have access to old messages. In public, discussion, of forum groups and all channels, old messages are always available, so this option affects only private non-forum supergroups without a linked chat. The value of this field is only available to chat administrators IsAllHistoryAvailable bool `json:"is_all_history_available"` // True, if aggressive anti-spam checks are enabled in the supergroup. The value of this field is only available to chat administrators HasAggressiveAntiSpamEnabled bool `json:"has_aggressive_anti_spam_enabled"` // Identifier of the supergroup sticker set; 0 if none StickerSetId JsonInt64 `json:"sticker_set_id"` // Location to which the supergroup is connected; may be null if none Location *ChatLocation `json:"location"` // Primary invite link for the chat; may be null. For chat administrators with can_invite_users right only InviteLink *ChatInviteLink `json:"invite_link"` // List of commands of bots in the group BotCommands []*BotCommands `json:"bot_commands"` // Identifier of the basic group from which supergroup was upgraded; 0 if none UpgradedFromBasicGroupId int64 `json:"upgraded_from_basic_group_id"` // Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none UpgradedFromMaxMessageId int64 `json:"upgraded_from_max_message_id"` // contains filtered or unexported fields }
Contains full information about a supergroup or channel
func UnmarshalSupergroupFullInfo ¶
func UnmarshalSupergroupFullInfo(data json.RawMessage) (*SupergroupFullInfo, error)
func (*SupergroupFullInfo) GetClass ¶
func (*SupergroupFullInfo) GetClass() string
func (*SupergroupFullInfo) GetType ¶
func (*SupergroupFullInfo) GetType() string
func (*SupergroupFullInfo) MarshalJSON ¶
func (entity *SupergroupFullInfo) MarshalJSON() ([]byte, error)
type SupergroupMembersFilter ¶
type SupergroupMembersFilter interface {
SupergroupMembersFilterType() string
}
Specifies the kind of chat members to return in getSupergroupMembers
func UnmarshalListOfSupergroupMembersFilter ¶
func UnmarshalListOfSupergroupMembersFilter(dataList []json.RawMessage) ([]SupergroupMembersFilter, error)
func UnmarshalSupergroupMembersFilter ¶
func UnmarshalSupergroupMembersFilter(data json.RawMessage) (SupergroupMembersFilter, error)
type SupergroupMembersFilterAdministrators ¶
type SupergroupMembersFilterAdministrators struct {
// contains filtered or unexported fields
}
Returns the owner and administrators
func UnmarshalSupergroupMembersFilterAdministrators ¶
func UnmarshalSupergroupMembersFilterAdministrators(data json.RawMessage) (*SupergroupMembersFilterAdministrators, error)
func (*SupergroupMembersFilterAdministrators) GetClass ¶
func (*SupergroupMembersFilterAdministrators) GetClass() string
func (*SupergroupMembersFilterAdministrators) GetType ¶
func (*SupergroupMembersFilterAdministrators) GetType() string
func (*SupergroupMembersFilterAdministrators) MarshalJSON ¶
func (entity *SupergroupMembersFilterAdministrators) MarshalJSON() ([]byte, error)
func (*SupergroupMembersFilterAdministrators) SupergroupMembersFilterType ¶
func (*SupergroupMembersFilterAdministrators) SupergroupMembersFilterType() string
type SupergroupMembersFilterBanned ¶
type SupergroupMembersFilterBanned struct { // Query to search for Query string `json:"query"` // contains filtered or unexported fields }
Returns users banned from the supergroup or channel; can be used only by administrators
func UnmarshalSupergroupMembersFilterBanned ¶
func UnmarshalSupergroupMembersFilterBanned(data json.RawMessage) (*SupergroupMembersFilterBanned, error)
func (*SupergroupMembersFilterBanned) GetClass ¶
func (*SupergroupMembersFilterBanned) GetClass() string
func (*SupergroupMembersFilterBanned) GetType ¶
func (*SupergroupMembersFilterBanned) GetType() string
func (*SupergroupMembersFilterBanned) MarshalJSON ¶
func (entity *SupergroupMembersFilterBanned) MarshalJSON() ([]byte, error)
func (*SupergroupMembersFilterBanned) SupergroupMembersFilterType ¶
func (*SupergroupMembersFilterBanned) SupergroupMembersFilterType() string
type SupergroupMembersFilterBots ¶
type SupergroupMembersFilterBots struct {
// contains filtered or unexported fields
}
Returns bot members of the supergroup or channel
func UnmarshalSupergroupMembersFilterBots ¶
func UnmarshalSupergroupMembersFilterBots(data json.RawMessage) (*SupergroupMembersFilterBots, error)
func (*SupergroupMembersFilterBots) GetClass ¶
func (*SupergroupMembersFilterBots) GetClass() string
func (*SupergroupMembersFilterBots) GetType ¶
func (*SupergroupMembersFilterBots) GetType() string
func (*SupergroupMembersFilterBots) MarshalJSON ¶
func (entity *SupergroupMembersFilterBots) MarshalJSON() ([]byte, error)
func (*SupergroupMembersFilterBots) SupergroupMembersFilterType ¶
func (*SupergroupMembersFilterBots) SupergroupMembersFilterType() string
type SupergroupMembersFilterContacts ¶
type SupergroupMembersFilterContacts struct { // Query to search for Query string `json:"query"` // contains filtered or unexported fields }
Returns contacts of the user, which are members of the supergroup or channel
func UnmarshalSupergroupMembersFilterContacts ¶
func UnmarshalSupergroupMembersFilterContacts(data json.RawMessage) (*SupergroupMembersFilterContacts, error)
func (*SupergroupMembersFilterContacts) GetClass ¶
func (*SupergroupMembersFilterContacts) GetClass() string
func (*SupergroupMembersFilterContacts) GetType ¶
func (*SupergroupMembersFilterContacts) GetType() string
func (*SupergroupMembersFilterContacts) MarshalJSON ¶
func (entity *SupergroupMembersFilterContacts) MarshalJSON() ([]byte, error)
func (*SupergroupMembersFilterContacts) SupergroupMembersFilterType ¶
func (*SupergroupMembersFilterContacts) SupergroupMembersFilterType() string
type SupergroupMembersFilterMention ¶
type SupergroupMembersFilterMention struct { // Query to search for Query string `json:"query"` // If non-zero, the identifier of the current message thread MessageThreadId int64 `json:"message_thread_id"` // contains filtered or unexported fields }
Returns users which can be mentioned in the supergroup
func UnmarshalSupergroupMembersFilterMention ¶
func UnmarshalSupergroupMembersFilterMention(data json.RawMessage) (*SupergroupMembersFilterMention, error)
func (*SupergroupMembersFilterMention) GetClass ¶
func (*SupergroupMembersFilterMention) GetClass() string
func (*SupergroupMembersFilterMention) GetType ¶
func (*SupergroupMembersFilterMention) GetType() string
func (*SupergroupMembersFilterMention) MarshalJSON ¶
func (entity *SupergroupMembersFilterMention) MarshalJSON() ([]byte, error)
func (*SupergroupMembersFilterMention) SupergroupMembersFilterType ¶
func (*SupergroupMembersFilterMention) SupergroupMembersFilterType() string
type SupergroupMembersFilterRecent ¶
type SupergroupMembersFilterRecent struct {
// contains filtered or unexported fields
}
Returns recently active users in reverse chronological order
func UnmarshalSupergroupMembersFilterRecent ¶
func UnmarshalSupergroupMembersFilterRecent(data json.RawMessage) (*SupergroupMembersFilterRecent, error)
func (*SupergroupMembersFilterRecent) GetClass ¶
func (*SupergroupMembersFilterRecent) GetClass() string
func (*SupergroupMembersFilterRecent) GetType ¶
func (*SupergroupMembersFilterRecent) GetType() string
func (*SupergroupMembersFilterRecent) MarshalJSON ¶
func (entity *SupergroupMembersFilterRecent) MarshalJSON() ([]byte, error)
func (*SupergroupMembersFilterRecent) SupergroupMembersFilterType ¶
func (*SupergroupMembersFilterRecent) SupergroupMembersFilterType() string
type SupergroupMembersFilterRestricted ¶
type SupergroupMembersFilterRestricted struct { // Query to search for Query string `json:"query"` // contains filtered or unexported fields }
Returns restricted supergroup members; can be used only by administrators
func UnmarshalSupergroupMembersFilterRestricted ¶
func UnmarshalSupergroupMembersFilterRestricted(data json.RawMessage) (*SupergroupMembersFilterRestricted, error)
func (*SupergroupMembersFilterRestricted) GetClass ¶
func (*SupergroupMembersFilterRestricted) GetClass() string
func (*SupergroupMembersFilterRestricted) GetType ¶
func (*SupergroupMembersFilterRestricted) GetType() string
func (*SupergroupMembersFilterRestricted) MarshalJSON ¶
func (entity *SupergroupMembersFilterRestricted) MarshalJSON() ([]byte, error)
func (*SupergroupMembersFilterRestricted) SupergroupMembersFilterType ¶
func (*SupergroupMembersFilterRestricted) SupergroupMembersFilterType() string
type SupergroupMembersFilterSearch ¶
type SupergroupMembersFilterSearch struct { // Query to search for Query string `json:"query"` // contains filtered or unexported fields }
Used to search for supergroup or channel members via a (string) query
func UnmarshalSupergroupMembersFilterSearch ¶
func UnmarshalSupergroupMembersFilterSearch(data json.RawMessage) (*SupergroupMembersFilterSearch, error)
func (*SupergroupMembersFilterSearch) GetClass ¶
func (*SupergroupMembersFilterSearch) GetClass() string
func (*SupergroupMembersFilterSearch) GetType ¶
func (*SupergroupMembersFilterSearch) GetType() string
func (*SupergroupMembersFilterSearch) MarshalJSON ¶
func (entity *SupergroupMembersFilterSearch) MarshalJSON() ([]byte, error)
func (*SupergroupMembersFilterSearch) SupergroupMembersFilterType ¶
func (*SupergroupMembersFilterSearch) SupergroupMembersFilterType() string
type SynchronizeLanguagePackRequest ¶
type SynchronizeLanguagePackRequest struct { // Language pack identifier LanguagePackId string `json:"language_pack_id"` }
type TMeUrl ¶
type TMeUrl struct { // URL Url string `json:"url"` // Type of the URL Type TMeUrlType `json:"type"` // contains filtered or unexported fields }
Represents a URL linking to an internal Telegram entity
func UnmarshalTMeUrl ¶
func UnmarshalTMeUrl(data json.RawMessage) (*TMeUrl, error)
func (*TMeUrl) MarshalJSON ¶
func (*TMeUrl) UnmarshalJSON ¶
type TMeUrlType ¶
type TMeUrlType interface {
TMeUrlTypeType() string
}
Describes the type of a URL linking to an internal Telegram entity
func UnmarshalListOfTMeUrlType ¶
func UnmarshalListOfTMeUrlType(dataList []json.RawMessage) ([]TMeUrlType, error)
func UnmarshalTMeUrlType ¶
func UnmarshalTMeUrlType(data json.RawMessage) (TMeUrlType, error)
type TMeUrlTypeChatInvite ¶
type TMeUrlTypeChatInvite struct { // Information about the chat invite link Info *ChatInviteLinkInfo `json:"info"` // contains filtered or unexported fields }
A chat invite link
func UnmarshalTMeUrlTypeChatInvite ¶
func UnmarshalTMeUrlTypeChatInvite(data json.RawMessage) (*TMeUrlTypeChatInvite, error)
func (*TMeUrlTypeChatInvite) GetClass ¶
func (*TMeUrlTypeChatInvite) GetClass() string
func (*TMeUrlTypeChatInvite) GetType ¶
func (*TMeUrlTypeChatInvite) GetType() string
func (*TMeUrlTypeChatInvite) MarshalJSON ¶
func (entity *TMeUrlTypeChatInvite) MarshalJSON() ([]byte, error)
func (*TMeUrlTypeChatInvite) TMeUrlTypeType ¶
func (*TMeUrlTypeChatInvite) TMeUrlTypeType() string
type TMeUrlTypeStickerSet ¶
type TMeUrlTypeStickerSet struct { // Identifier of the sticker set StickerSetId JsonInt64 `json:"sticker_set_id"` // contains filtered or unexported fields }
A URL linking to a sticker set
func UnmarshalTMeUrlTypeStickerSet ¶
func UnmarshalTMeUrlTypeStickerSet(data json.RawMessage) (*TMeUrlTypeStickerSet, error)
func (*TMeUrlTypeStickerSet) GetClass ¶
func (*TMeUrlTypeStickerSet) GetClass() string
func (*TMeUrlTypeStickerSet) GetType ¶
func (*TMeUrlTypeStickerSet) GetType() string
func (*TMeUrlTypeStickerSet) MarshalJSON ¶
func (entity *TMeUrlTypeStickerSet) MarshalJSON() ([]byte, error)
func (*TMeUrlTypeStickerSet) TMeUrlTypeType ¶
func (*TMeUrlTypeStickerSet) TMeUrlTypeType() string
type TMeUrlTypeSupergroup ¶
type TMeUrlTypeSupergroup struct { // Identifier of the supergroup or channel SupergroupId int64 `json:"supergroup_id"` // contains filtered or unexported fields }
A URL linking to a public supergroup or channel
func UnmarshalTMeUrlTypeSupergroup ¶
func UnmarshalTMeUrlTypeSupergroup(data json.RawMessage) (*TMeUrlTypeSupergroup, error)
func (*TMeUrlTypeSupergroup) GetClass ¶
func (*TMeUrlTypeSupergroup) GetClass() string
func (*TMeUrlTypeSupergroup) GetType ¶
func (*TMeUrlTypeSupergroup) GetType() string
func (*TMeUrlTypeSupergroup) MarshalJSON ¶
func (entity *TMeUrlTypeSupergroup) MarshalJSON() ([]byte, error)
func (*TMeUrlTypeSupergroup) TMeUrlTypeType ¶
func (*TMeUrlTypeSupergroup) TMeUrlTypeType() string
type TMeUrlTypeUser ¶
type TMeUrlTypeUser struct { // Identifier of the user UserId int64 `json:"user_id"` // contains filtered or unexported fields }
A URL linking to a user
func UnmarshalTMeUrlTypeUser ¶
func UnmarshalTMeUrlTypeUser(data json.RawMessage) (*TMeUrlTypeUser, error)
func (*TMeUrlTypeUser) GetClass ¶
func (*TMeUrlTypeUser) GetClass() string
func (*TMeUrlTypeUser) GetType ¶
func (*TMeUrlTypeUser) GetType() string
func (*TMeUrlTypeUser) MarshalJSON ¶
func (entity *TMeUrlTypeUser) MarshalJSON() ([]byte, error)
func (*TMeUrlTypeUser) TMeUrlTypeType ¶
func (*TMeUrlTypeUser) TMeUrlTypeType() string
type TMeUrls ¶
type TMeUrls struct { // List of URLs Urls []*TMeUrl `json:"urls"` // contains filtered or unexported fields }
Contains a list of t.me URLs
func UnmarshalTMeUrls ¶
func UnmarshalTMeUrls(data json.RawMessage) (*TMeUrls, error)
func (*TMeUrls) MarshalJSON ¶
type TargetChat ¶ added in v1.2.3
type TargetChat interface {
TargetChatType() string
}
Describes the target chat to be opened
func UnmarshalListOfTargetChat ¶ added in v1.2.3
func UnmarshalListOfTargetChat(dataList []json.RawMessage) ([]TargetChat, error)
func UnmarshalTargetChat ¶ added in v1.2.3
func UnmarshalTargetChat(data json.RawMessage) (TargetChat, error)
type TargetChatChosen ¶ added in v1.2.3
type TargetChatChosen struct { // True, if private chats with ordinary users are allowed AllowUserChats bool `json:"allow_user_chats"` // True, if private chats with other bots are allowed AllowBotChats bool `json:"allow_bot_chats"` // True, if basic group and supergroup chats are allowed AllowGroupChats bool `json:"allow_group_chats"` // True, if channel chats are allowed AllowChannelChats bool `json:"allow_channel_chats"` // contains filtered or unexported fields }
The chat needs to be chosen by the user among chats of the specified types
func UnmarshalTargetChatChosen ¶ added in v1.2.3
func UnmarshalTargetChatChosen(data json.RawMessage) (*TargetChatChosen, error)
func (*TargetChatChosen) GetClass ¶ added in v1.2.3
func (*TargetChatChosen) GetClass() string
func (*TargetChatChosen) GetType ¶ added in v1.2.3
func (*TargetChatChosen) GetType() string
func (*TargetChatChosen) MarshalJSON ¶ added in v1.2.3
func (entity *TargetChatChosen) MarshalJSON() ([]byte, error)
func (*TargetChatChosen) TargetChatType ¶ added in v1.2.3
func (*TargetChatChosen) TargetChatType() string
type TargetChatCurrent ¶ added in v1.2.3
type TargetChatCurrent struct {
// contains filtered or unexported fields
}
The currently opened chat needs to be kept
func UnmarshalTargetChatCurrent ¶ added in v1.2.3
func UnmarshalTargetChatCurrent(data json.RawMessage) (*TargetChatCurrent, error)
func (*TargetChatCurrent) GetClass ¶ added in v1.2.3
func (*TargetChatCurrent) GetClass() string
func (*TargetChatCurrent) GetType ¶ added in v1.2.3
func (*TargetChatCurrent) GetType() string
func (*TargetChatCurrent) MarshalJSON ¶ added in v1.2.3
func (entity *TargetChatCurrent) MarshalJSON() ([]byte, error)
func (*TargetChatCurrent) TargetChatType ¶ added in v1.2.3
func (*TargetChatCurrent) TargetChatType() string
type TargetChatInternalLink ¶ added in v1.2.3
type TargetChatInternalLink struct { // An internal link pointing to the chat Link InternalLinkType `json:"link"` // contains filtered or unexported fields }
The chat needs to be open with the provided internal link
func UnmarshalTargetChatInternalLink ¶ added in v1.2.3
func UnmarshalTargetChatInternalLink(data json.RawMessage) (*TargetChatInternalLink, error)
func (*TargetChatInternalLink) GetClass ¶ added in v1.2.3
func (*TargetChatInternalLink) GetClass() string
func (*TargetChatInternalLink) GetType ¶ added in v1.2.3
func (*TargetChatInternalLink) GetType() string
func (*TargetChatInternalLink) MarshalJSON ¶ added in v1.2.3
func (entity *TargetChatInternalLink) MarshalJSON() ([]byte, error)
func (*TargetChatInternalLink) TargetChatType ¶ added in v1.2.3
func (*TargetChatInternalLink) TargetChatType() string
func (*TargetChatInternalLink) UnmarshalJSON ¶ added in v1.2.3
func (targetChatInternalLink *TargetChatInternalLink) UnmarshalJSON(data []byte) error
type TemporaryPasswordState ¶
type TemporaryPasswordState struct { // True, if a temporary password is available HasPassword bool `json:"has_password"` // Time left before the temporary password expires, in seconds ValidFor int32 `json:"valid_for"` // contains filtered or unexported fields }
Returns information about the availability of a temporary password, which can be used for payments
func UnmarshalTemporaryPasswordState ¶
func UnmarshalTemporaryPasswordState(data json.RawMessage) (*TemporaryPasswordState, error)
func (*TemporaryPasswordState) GetClass ¶
func (*TemporaryPasswordState) GetClass() string
func (*TemporaryPasswordState) GetType ¶
func (*TemporaryPasswordState) GetType() string
func (*TemporaryPasswordState) MarshalJSON ¶
func (entity *TemporaryPasswordState) MarshalJSON() ([]byte, error)
type TerminateSessionRequest ¶
type TerminateSessionRequest struct { // Session identifier SessionId JsonInt64 `json:"session_id"` }
type TermsOfService ¶
type TermsOfService struct { // Text of the terms of service Text *FormattedText `json:"text"` // The minimum age of a user to be able to accept the terms; 0 if age isn't restricted MinUserAge int32 `json:"min_user_age"` // True, if a blocking popup with terms of service must be shown to the user ShowPopup bool `json:"show_popup"` // contains filtered or unexported fields }
Contains Telegram terms of service
func UnmarshalTermsOfService ¶
func UnmarshalTermsOfService(data json.RawMessage) (*TermsOfService, error)
func (*TermsOfService) GetClass ¶
func (*TermsOfService) GetClass() string
func (*TermsOfService) GetType ¶
func (*TermsOfService) GetType() string
func (*TermsOfService) MarshalJSON ¶
func (entity *TermsOfService) MarshalJSON() ([]byte, error)
type TestBytes ¶
type TestBytes struct { // Bytes Value []byte `json:"value"` // contains filtered or unexported fields }
A simple object containing a sequence of bytes; for testing only
func UnmarshalTestBytes ¶
func UnmarshalTestBytes(data json.RawMessage) (*TestBytes, error)
func (*TestBytes) MarshalJSON ¶
type TestCallBytesRequest ¶
type TestCallBytesRequest struct { // Bytes to return X []byte `json:"x"` }
type TestCallStringRequest ¶
type TestCallStringRequest struct { // String to return X string `json:"x"` }
type TestCallVectorIntObjectRequest ¶
type TestCallVectorIntObjectRequest struct { // Vector of objects to return X []*TestInt `json:"x"` }
type TestCallVectorIntRequest ¶
type TestCallVectorIntRequest struct { // Vector of numbers to return X []int32 `json:"x"` }
type TestCallVectorStringObjectRequest ¶
type TestCallVectorStringObjectRequest struct { // Vector of objects to return X []*TestString `json:"x"` }
type TestCallVectorStringRequest ¶
type TestCallVectorStringRequest struct { // Vector of strings to return X []string `json:"x"` }
type TestInt ¶
type TestInt struct { // Number Value int32 `json:"value"` // contains filtered or unexported fields }
A simple object containing a number; for testing only
func UnmarshalTestInt ¶
func UnmarshalTestInt(data json.RawMessage) (*TestInt, error)
func (*TestInt) MarshalJSON ¶
type TestProxyRequest ¶
type TestProxyRequest struct { // Proxy server domain or IP address Server string `json:"server"` // Proxy server port Port int32 `json:"port"` // Proxy type Type ProxyType `json:"type"` // Identifier of a datacenter with which to test connection DcId int32 `json:"dc_id"` // The maximum overall timeout for the request Timeout float64 `json:"timeout"` }
type TestReturnErrorRequest ¶
type TestReturnErrorRequest struct { // The error to be returned Error *Error `json:"error"` }
type TestSquareIntRequest ¶
type TestSquareIntRequest struct { // Number to square X int32 `json:"x"` }
type TestString ¶
type TestString struct { // String Value string `json:"value"` // contains filtered or unexported fields }
A simple object containing a string; for testing only
func UnmarshalTestString ¶
func UnmarshalTestString(data json.RawMessage) (*TestString, error)
func (*TestString) GetClass ¶
func (*TestString) GetClass() string
func (*TestString) GetType ¶
func (*TestString) GetType() string
func (*TestString) MarshalJSON ¶
func (entity *TestString) MarshalJSON() ([]byte, error)
type TestVectorInt ¶
type TestVectorInt struct { // Vector of numbers Value []int32 `json:"value"` // contains filtered or unexported fields }
A simple object containing a vector of numbers; for testing only
func UnmarshalTestVectorInt ¶
func UnmarshalTestVectorInt(data json.RawMessage) (*TestVectorInt, error)
func (*TestVectorInt) GetClass ¶
func (*TestVectorInt) GetClass() string
func (*TestVectorInt) GetType ¶
func (*TestVectorInt) GetType() string
func (*TestVectorInt) MarshalJSON ¶
func (entity *TestVectorInt) MarshalJSON() ([]byte, error)
type TestVectorIntObject ¶
type TestVectorIntObject struct { // Vector of objects Value []*TestInt `json:"value"` // contains filtered or unexported fields }
A simple object containing a vector of objects that hold a number; for testing only
func UnmarshalTestVectorIntObject ¶
func UnmarshalTestVectorIntObject(data json.RawMessage) (*TestVectorIntObject, error)
func (*TestVectorIntObject) GetClass ¶
func (*TestVectorIntObject) GetClass() string
func (*TestVectorIntObject) GetType ¶
func (*TestVectorIntObject) GetType() string
func (*TestVectorIntObject) MarshalJSON ¶
func (entity *TestVectorIntObject) MarshalJSON() ([]byte, error)
type TestVectorString ¶
type TestVectorString struct { // Vector of strings Value []string `json:"value"` // contains filtered or unexported fields }
A simple object containing a vector of strings; for testing only
func UnmarshalTestVectorString ¶
func UnmarshalTestVectorString(data json.RawMessage) (*TestVectorString, error)
func (*TestVectorString) GetClass ¶
func (*TestVectorString) GetClass() string
func (*TestVectorString) GetType ¶
func (*TestVectorString) GetType() string
func (*TestVectorString) MarshalJSON ¶
func (entity *TestVectorString) MarshalJSON() ([]byte, error)
type TestVectorStringObject ¶
type TestVectorStringObject struct { // Vector of objects Value []*TestString `json:"value"` // contains filtered or unexported fields }
A simple object containing a vector of objects that hold a string; for testing only
func UnmarshalTestVectorStringObject ¶
func UnmarshalTestVectorStringObject(data json.RawMessage) (*TestVectorStringObject, error)
func (*TestVectorStringObject) GetClass ¶
func (*TestVectorStringObject) GetClass() string
func (*TestVectorStringObject) GetType ¶
func (*TestVectorStringObject) GetType() string
func (*TestVectorStringObject) MarshalJSON ¶
func (entity *TestVectorStringObject) MarshalJSON() ([]byte, error)
type Text ¶
type Text struct { // Text Text string `json:"text"` // contains filtered or unexported fields }
Contains some text
func CleanFileName ¶
func CleanFileName(req *CleanFileNameRequest) (*Text, error)
Removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. Can be called synchronously
func GetFileExtension ¶
func GetFileExtension(req *GetFileExtensionRequest) (*Text, error)
Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously
func GetFileMimeType ¶
func GetFileMimeType(req *GetFileMimeTypeRequest) (*Text, error)
Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously
func GetJsonString ¶
func GetJsonString(req *GetJsonStringRequest) (*Text, error)
Converts a JsonValue object to corresponding JSON-serialized string. Can be called synchronously
func GetThemeParametersJsonString ¶ added in v1.0.6
func GetThemeParametersJsonString(req *GetThemeParametersJsonStringRequest) (*Text, error)
Converts a themeParameters object to corresponding JSON-serialized string. Can be called synchronously
func UnmarshalText ¶
func UnmarshalText(data json.RawMessage) (*Text, error)
func (*Text) MarshalJSON ¶
type TextEntities ¶
type TextEntities struct { // List of text entities Entities []*TextEntity `json:"entities"` // contains filtered or unexported fields }
Contains a list of text entities
func GetTextEntities ¶
func GetTextEntities(req *GetTextEntitiesRequest) (*TextEntities, error)
Returns all entities (mentions, hashtags, cashtags, bot commands, bank card numbers, URLs, and email addresses) found in the text. Can be called synchronously
func UnmarshalTextEntities ¶
func UnmarshalTextEntities(data json.RawMessage) (*TextEntities, error)
func (*TextEntities) GetClass ¶
func (*TextEntities) GetClass() string
func (*TextEntities) GetType ¶
func (*TextEntities) GetType() string
func (*TextEntities) MarshalJSON ¶
func (entity *TextEntities) MarshalJSON() ([]byte, error)
type TextEntity ¶
type TextEntity struct { // Offset of the entity, in UTF-16 code units Offset int32 `json:"offset"` // Length of the entity, in UTF-16 code units Length int32 `json:"length"` // Type of the entity Type TextEntityType `json:"type"` // contains filtered or unexported fields }
Represents a part of the text that needs to be formatted in some unusual way
func UnmarshalTextEntity ¶
func UnmarshalTextEntity(data json.RawMessage) (*TextEntity, error)
func (*TextEntity) GetClass ¶
func (*TextEntity) GetClass() string
func (*TextEntity) GetType ¶
func (*TextEntity) GetType() string
func (*TextEntity) MarshalJSON ¶
func (entity *TextEntity) MarshalJSON() ([]byte, error)
func (*TextEntity) UnmarshalJSON ¶
func (textEntity *TextEntity) UnmarshalJSON(data []byte) error
type TextEntityType ¶
type TextEntityType interface {
TextEntityTypeType() string
}
Represents a part of the text which must be formatted differently
func UnmarshalListOfTextEntityType ¶
func UnmarshalListOfTextEntityType(dataList []json.RawMessage) ([]TextEntityType, error)
func UnmarshalTextEntityType ¶
func UnmarshalTextEntityType(data json.RawMessage) (TextEntityType, error)
type TextEntityTypeBankCardNumber ¶
type TextEntityTypeBankCardNumber struct {
// contains filtered or unexported fields
}
A bank card number. The getBankCardInfo method can be used to get information about the bank card
func UnmarshalTextEntityTypeBankCardNumber ¶
func UnmarshalTextEntityTypeBankCardNumber(data json.RawMessage) (*TextEntityTypeBankCardNumber, error)
func (*TextEntityTypeBankCardNumber) GetClass ¶
func (*TextEntityTypeBankCardNumber) GetClass() string
func (*TextEntityTypeBankCardNumber) GetType ¶
func (*TextEntityTypeBankCardNumber) GetType() string
func (*TextEntityTypeBankCardNumber) MarshalJSON ¶
func (entity *TextEntityTypeBankCardNumber) MarshalJSON() ([]byte, error)
func (*TextEntityTypeBankCardNumber) TextEntityTypeType ¶
func (*TextEntityTypeBankCardNumber) TextEntityTypeType() string
type TextEntityTypeBold ¶
type TextEntityTypeBold struct {
// contains filtered or unexported fields
}
A bold text
func UnmarshalTextEntityTypeBold ¶
func UnmarshalTextEntityTypeBold(data json.RawMessage) (*TextEntityTypeBold, error)
func (*TextEntityTypeBold) GetClass ¶
func (*TextEntityTypeBold) GetClass() string
func (*TextEntityTypeBold) GetType ¶
func (*TextEntityTypeBold) GetType() string
func (*TextEntityTypeBold) MarshalJSON ¶
func (entity *TextEntityTypeBold) MarshalJSON() ([]byte, error)
func (*TextEntityTypeBold) TextEntityTypeType ¶
func (*TextEntityTypeBold) TextEntityTypeType() string
type TextEntityTypeBotCommand ¶
type TextEntityTypeBotCommand struct {
// contains filtered or unexported fields
}
A bot command, beginning with "/"
func UnmarshalTextEntityTypeBotCommand ¶
func UnmarshalTextEntityTypeBotCommand(data json.RawMessage) (*TextEntityTypeBotCommand, error)
func (*TextEntityTypeBotCommand) GetClass ¶
func (*TextEntityTypeBotCommand) GetClass() string
func (*TextEntityTypeBotCommand) GetType ¶
func (*TextEntityTypeBotCommand) GetType() string
func (*TextEntityTypeBotCommand) MarshalJSON ¶
func (entity *TextEntityTypeBotCommand) MarshalJSON() ([]byte, error)
func (*TextEntityTypeBotCommand) TextEntityTypeType ¶
func (*TextEntityTypeBotCommand) TextEntityTypeType() string
type TextEntityTypeCashtag ¶
type TextEntityTypeCashtag struct {
// contains filtered or unexported fields
}
A cashtag text, beginning with "$" and consisting of capital English letters (e.g., "$USD")
func UnmarshalTextEntityTypeCashtag ¶
func UnmarshalTextEntityTypeCashtag(data json.RawMessage) (*TextEntityTypeCashtag, error)
func (*TextEntityTypeCashtag) GetClass ¶
func (*TextEntityTypeCashtag) GetClass() string
func (*TextEntityTypeCashtag) GetType ¶
func (*TextEntityTypeCashtag) GetType() string
func (*TextEntityTypeCashtag) MarshalJSON ¶
func (entity *TextEntityTypeCashtag) MarshalJSON() ([]byte, error)
func (*TextEntityTypeCashtag) TextEntityTypeType ¶
func (*TextEntityTypeCashtag) TextEntityTypeType() string
type TextEntityTypeCode ¶
type TextEntityTypeCode struct {
// contains filtered or unexported fields
}
Text that must be formatted as if inside a code HTML tag
func UnmarshalTextEntityTypeCode ¶
func UnmarshalTextEntityTypeCode(data json.RawMessage) (*TextEntityTypeCode, error)
func (*TextEntityTypeCode) GetClass ¶
func (*TextEntityTypeCode) GetClass() string
func (*TextEntityTypeCode) GetType ¶
func (*TextEntityTypeCode) GetType() string
func (*TextEntityTypeCode) MarshalJSON ¶
func (entity *TextEntityTypeCode) MarshalJSON() ([]byte, error)
func (*TextEntityTypeCode) TextEntityTypeType ¶
func (*TextEntityTypeCode) TextEntityTypeType() string
type TextEntityTypeCustomEmoji ¶ added in v1.2.3
type TextEntityTypeCustomEmoji struct { // Unique identifier of the custom emoji CustomEmojiId JsonInt64 `json:"custom_emoji_id"` // contains filtered or unexported fields }
A custom emoji. The text behind a custom emoji must be an emoji. Only premium users can use premium custom emoji
func UnmarshalTextEntityTypeCustomEmoji ¶ added in v1.2.3
func UnmarshalTextEntityTypeCustomEmoji(data json.RawMessage) (*TextEntityTypeCustomEmoji, error)
func (*TextEntityTypeCustomEmoji) GetClass ¶ added in v1.2.3
func (*TextEntityTypeCustomEmoji) GetClass() string
func (*TextEntityTypeCustomEmoji) GetType ¶ added in v1.2.3
func (*TextEntityTypeCustomEmoji) GetType() string
func (*TextEntityTypeCustomEmoji) MarshalJSON ¶ added in v1.2.3
func (entity *TextEntityTypeCustomEmoji) MarshalJSON() ([]byte, error)
func (*TextEntityTypeCustomEmoji) TextEntityTypeType ¶ added in v1.2.3
func (*TextEntityTypeCustomEmoji) TextEntityTypeType() string
type TextEntityTypeEmailAddress ¶
type TextEntityTypeEmailAddress struct {
// contains filtered or unexported fields
}
An email address
func UnmarshalTextEntityTypeEmailAddress ¶
func UnmarshalTextEntityTypeEmailAddress(data json.RawMessage) (*TextEntityTypeEmailAddress, error)
func (*TextEntityTypeEmailAddress) GetClass ¶
func (*TextEntityTypeEmailAddress) GetClass() string
func (*TextEntityTypeEmailAddress) GetType ¶
func (*TextEntityTypeEmailAddress) GetType() string
func (*TextEntityTypeEmailAddress) MarshalJSON ¶
func (entity *TextEntityTypeEmailAddress) MarshalJSON() ([]byte, error)
func (*TextEntityTypeEmailAddress) TextEntityTypeType ¶
func (*TextEntityTypeEmailAddress) TextEntityTypeType() string
type TextEntityTypeHashtag ¶
type TextEntityTypeHashtag struct {
// contains filtered or unexported fields
}
A hashtag text, beginning with "#"
func UnmarshalTextEntityTypeHashtag ¶
func UnmarshalTextEntityTypeHashtag(data json.RawMessage) (*TextEntityTypeHashtag, error)
func (*TextEntityTypeHashtag) GetClass ¶
func (*TextEntityTypeHashtag) GetClass() string
func (*TextEntityTypeHashtag) GetType ¶
func (*TextEntityTypeHashtag) GetType() string
func (*TextEntityTypeHashtag) MarshalJSON ¶
func (entity *TextEntityTypeHashtag) MarshalJSON() ([]byte, error)
func (*TextEntityTypeHashtag) TextEntityTypeType ¶
func (*TextEntityTypeHashtag) TextEntityTypeType() string
type TextEntityTypeItalic ¶
type TextEntityTypeItalic struct {
// contains filtered or unexported fields
}
An italic text
func UnmarshalTextEntityTypeItalic ¶
func UnmarshalTextEntityTypeItalic(data json.RawMessage) (*TextEntityTypeItalic, error)
func (*TextEntityTypeItalic) GetClass ¶
func (*TextEntityTypeItalic) GetClass() string
func (*TextEntityTypeItalic) GetType ¶
func (*TextEntityTypeItalic) GetType() string
func (*TextEntityTypeItalic) MarshalJSON ¶
func (entity *TextEntityTypeItalic) MarshalJSON() ([]byte, error)
func (*TextEntityTypeItalic) TextEntityTypeType ¶
func (*TextEntityTypeItalic) TextEntityTypeType() string
type TextEntityTypeMediaTimestamp ¶
type TextEntityTypeMediaTimestamp struct { // Timestamp from which a video/audio/video note/voice note playing must start, in seconds. The media can be in the content or the web page preview of the current message, or in the same places in the replied message MediaTimestamp int32 `json:"media_timestamp"` // contains filtered or unexported fields }
A media timestamp
func UnmarshalTextEntityTypeMediaTimestamp ¶
func UnmarshalTextEntityTypeMediaTimestamp(data json.RawMessage) (*TextEntityTypeMediaTimestamp, error)
func (*TextEntityTypeMediaTimestamp) GetClass ¶
func (*TextEntityTypeMediaTimestamp) GetClass() string
func (*TextEntityTypeMediaTimestamp) GetType ¶
func (*TextEntityTypeMediaTimestamp) GetType() string
func (*TextEntityTypeMediaTimestamp) MarshalJSON ¶
func (entity *TextEntityTypeMediaTimestamp) MarshalJSON() ([]byte, error)
func (*TextEntityTypeMediaTimestamp) TextEntityTypeType ¶
func (*TextEntityTypeMediaTimestamp) TextEntityTypeType() string
type TextEntityTypeMention ¶
type TextEntityTypeMention struct {
// contains filtered or unexported fields
}
A mention of a user, a supergroup, or a channel by their username
func UnmarshalTextEntityTypeMention ¶
func UnmarshalTextEntityTypeMention(data json.RawMessage) (*TextEntityTypeMention, error)
func (*TextEntityTypeMention) GetClass ¶
func (*TextEntityTypeMention) GetClass() string
func (*TextEntityTypeMention) GetType ¶
func (*TextEntityTypeMention) GetType() string
func (*TextEntityTypeMention) MarshalJSON ¶
func (entity *TextEntityTypeMention) MarshalJSON() ([]byte, error)
func (*TextEntityTypeMention) TextEntityTypeType ¶
func (*TextEntityTypeMention) TextEntityTypeType() string
type TextEntityTypeMentionName ¶
type TextEntityTypeMentionName struct { // Identifier of the mentioned user UserId int64 `json:"user_id"` // contains filtered or unexported fields }
A text shows instead of a raw mention of the user (e.g., when the user has no username)
func UnmarshalTextEntityTypeMentionName ¶
func UnmarshalTextEntityTypeMentionName(data json.RawMessage) (*TextEntityTypeMentionName, error)
func (*TextEntityTypeMentionName) GetClass ¶
func (*TextEntityTypeMentionName) GetClass() string
func (*TextEntityTypeMentionName) GetType ¶
func (*TextEntityTypeMentionName) GetType() string
func (*TextEntityTypeMentionName) MarshalJSON ¶
func (entity *TextEntityTypeMentionName) MarshalJSON() ([]byte, error)
func (*TextEntityTypeMentionName) TextEntityTypeType ¶
func (*TextEntityTypeMentionName) TextEntityTypeType() string
type TextEntityTypePhoneNumber ¶
type TextEntityTypePhoneNumber struct {
// contains filtered or unexported fields
}
A phone number
func UnmarshalTextEntityTypePhoneNumber ¶
func UnmarshalTextEntityTypePhoneNumber(data json.RawMessage) (*TextEntityTypePhoneNumber, error)
func (*TextEntityTypePhoneNumber) GetClass ¶
func (*TextEntityTypePhoneNumber) GetClass() string
func (*TextEntityTypePhoneNumber) GetType ¶
func (*TextEntityTypePhoneNumber) GetType() string
func (*TextEntityTypePhoneNumber) MarshalJSON ¶
func (entity *TextEntityTypePhoneNumber) MarshalJSON() ([]byte, error)
func (*TextEntityTypePhoneNumber) TextEntityTypeType ¶
func (*TextEntityTypePhoneNumber) TextEntityTypeType() string
type TextEntityTypePre ¶
type TextEntityTypePre struct {
// contains filtered or unexported fields
}
Text that must be formatted as if inside a pre HTML tag
func UnmarshalTextEntityTypePre ¶
func UnmarshalTextEntityTypePre(data json.RawMessage) (*TextEntityTypePre, error)
func (*TextEntityTypePre) GetClass ¶
func (*TextEntityTypePre) GetClass() string
func (*TextEntityTypePre) GetType ¶
func (*TextEntityTypePre) GetType() string
func (*TextEntityTypePre) MarshalJSON ¶
func (entity *TextEntityTypePre) MarshalJSON() ([]byte, error)
func (*TextEntityTypePre) TextEntityTypeType ¶
func (*TextEntityTypePre) TextEntityTypeType() string
type TextEntityTypePreCode ¶
type TextEntityTypePreCode struct { // Programming language of the code; as defined by the sender Language string `json:"language"` // contains filtered or unexported fields }
Text that must be formatted as if inside pre, and code HTML tags
func UnmarshalTextEntityTypePreCode ¶
func UnmarshalTextEntityTypePreCode(data json.RawMessage) (*TextEntityTypePreCode, error)
func (*TextEntityTypePreCode) GetClass ¶
func (*TextEntityTypePreCode) GetClass() string
func (*TextEntityTypePreCode) GetType ¶
func (*TextEntityTypePreCode) GetType() string
func (*TextEntityTypePreCode) MarshalJSON ¶
func (entity *TextEntityTypePreCode) MarshalJSON() ([]byte, error)
func (*TextEntityTypePreCode) TextEntityTypeType ¶
func (*TextEntityTypePreCode) TextEntityTypeType() string
type TextEntityTypeSpoiler ¶
type TextEntityTypeSpoiler struct {
// contains filtered or unexported fields
}
A spoiler text
func UnmarshalTextEntityTypeSpoiler ¶
func UnmarshalTextEntityTypeSpoiler(data json.RawMessage) (*TextEntityTypeSpoiler, error)
func (*TextEntityTypeSpoiler) GetClass ¶
func (*TextEntityTypeSpoiler) GetClass() string
func (*TextEntityTypeSpoiler) GetType ¶
func (*TextEntityTypeSpoiler) GetType() string
func (*TextEntityTypeSpoiler) MarshalJSON ¶
func (entity *TextEntityTypeSpoiler) MarshalJSON() ([]byte, error)
func (*TextEntityTypeSpoiler) TextEntityTypeType ¶
func (*TextEntityTypeSpoiler) TextEntityTypeType() string
type TextEntityTypeStrikethrough ¶
type TextEntityTypeStrikethrough struct {
// contains filtered or unexported fields
}
A strikethrough text
func UnmarshalTextEntityTypeStrikethrough ¶
func UnmarshalTextEntityTypeStrikethrough(data json.RawMessage) (*TextEntityTypeStrikethrough, error)
func (*TextEntityTypeStrikethrough) GetClass ¶
func (*TextEntityTypeStrikethrough) GetClass() string
func (*TextEntityTypeStrikethrough) GetType ¶
func (*TextEntityTypeStrikethrough) GetType() string
func (*TextEntityTypeStrikethrough) MarshalJSON ¶
func (entity *TextEntityTypeStrikethrough) MarshalJSON() ([]byte, error)
func (*TextEntityTypeStrikethrough) TextEntityTypeType ¶
func (*TextEntityTypeStrikethrough) TextEntityTypeType() string
type TextEntityTypeTextUrl ¶
type TextEntityTypeTextUrl struct { // HTTP or tg:// URL to be opened when the link is clicked Url string `json:"url"` // contains filtered or unexported fields }
A text description shown instead of a raw URL
func UnmarshalTextEntityTypeTextUrl ¶
func UnmarshalTextEntityTypeTextUrl(data json.RawMessage) (*TextEntityTypeTextUrl, error)
func (*TextEntityTypeTextUrl) GetClass ¶
func (*TextEntityTypeTextUrl) GetClass() string
func (*TextEntityTypeTextUrl) GetType ¶
func (*TextEntityTypeTextUrl) GetType() string
func (*TextEntityTypeTextUrl) MarshalJSON ¶
func (entity *TextEntityTypeTextUrl) MarshalJSON() ([]byte, error)
func (*TextEntityTypeTextUrl) TextEntityTypeType ¶
func (*TextEntityTypeTextUrl) TextEntityTypeType() string
type TextEntityTypeUnderline ¶
type TextEntityTypeUnderline struct {
// contains filtered or unexported fields
}
An underlined text
func UnmarshalTextEntityTypeUnderline ¶
func UnmarshalTextEntityTypeUnderline(data json.RawMessage) (*TextEntityTypeUnderline, error)
func (*TextEntityTypeUnderline) GetClass ¶
func (*TextEntityTypeUnderline) GetClass() string
func (*TextEntityTypeUnderline) GetType ¶
func (*TextEntityTypeUnderline) GetType() string
func (*TextEntityTypeUnderline) MarshalJSON ¶
func (entity *TextEntityTypeUnderline) MarshalJSON() ([]byte, error)
func (*TextEntityTypeUnderline) TextEntityTypeType ¶
func (*TextEntityTypeUnderline) TextEntityTypeType() string
type TextEntityTypeUrl ¶
type TextEntityTypeUrl struct {
// contains filtered or unexported fields
}
An HTTP URL
func UnmarshalTextEntityTypeUrl ¶
func UnmarshalTextEntityTypeUrl(data json.RawMessage) (*TextEntityTypeUrl, error)
func (*TextEntityTypeUrl) GetClass ¶
func (*TextEntityTypeUrl) GetClass() string
func (*TextEntityTypeUrl) GetType ¶
func (*TextEntityTypeUrl) GetType() string
func (*TextEntityTypeUrl) MarshalJSON ¶
func (entity *TextEntityTypeUrl) MarshalJSON() ([]byte, error)
func (*TextEntityTypeUrl) TextEntityTypeType ¶
func (*TextEntityTypeUrl) TextEntityTypeType() string
type TextParseMode ¶
type TextParseMode interface {
TextParseModeType() string
}
Describes the way the text needs to be parsed for text entities
func UnmarshalListOfTextParseMode ¶
func UnmarshalListOfTextParseMode(dataList []json.RawMessage) ([]TextParseMode, error)
func UnmarshalTextParseMode ¶
func UnmarshalTextParseMode(data json.RawMessage) (TextParseMode, error)
type TextParseModeHTML ¶
type TextParseModeHTML struct {
// contains filtered or unexported fields
}
The text uses HTML-style formatting. The same as Telegram Bot API "HTML" parse mode
func UnmarshalTextParseModeHTML ¶
func UnmarshalTextParseModeHTML(data json.RawMessage) (*TextParseModeHTML, error)
func (*TextParseModeHTML) GetClass ¶
func (*TextParseModeHTML) GetClass() string
func (*TextParseModeHTML) GetType ¶
func (*TextParseModeHTML) GetType() string
func (*TextParseModeHTML) MarshalJSON ¶
func (entity *TextParseModeHTML) MarshalJSON() ([]byte, error)
func (*TextParseModeHTML) TextParseModeType ¶
func (*TextParseModeHTML) TextParseModeType() string
type TextParseModeMarkdown ¶
type TextParseModeMarkdown struct { // Version of the parser: 0 or 1 - Telegram Bot API "Markdown" parse mode, 2 - Telegram Bot API "MarkdownV2" parse mode Version int32 `json:"version"` // contains filtered or unexported fields }
The text uses Markdown-style formatting
func UnmarshalTextParseModeMarkdown ¶
func UnmarshalTextParseModeMarkdown(data json.RawMessage) (*TextParseModeMarkdown, error)
func (*TextParseModeMarkdown) GetClass ¶
func (*TextParseModeMarkdown) GetClass() string
func (*TextParseModeMarkdown) GetType ¶
func (*TextParseModeMarkdown) GetType() string
func (*TextParseModeMarkdown) MarshalJSON ¶
func (entity *TextParseModeMarkdown) MarshalJSON() ([]byte, error)
func (*TextParseModeMarkdown) TextParseModeType ¶
func (*TextParseModeMarkdown) TextParseModeType() string
type ThemeParameters ¶ added in v1.0.6
type ThemeParameters struct { // A color of the background in the RGB24 format BackgroundColor int32 `json:"background_color"` // A secondary color for the background in the RGB24 format SecondaryBackgroundColor int32 `json:"secondary_background_color"` // A color of text in the RGB24 format TextColor int32 `json:"text_color"` // A color of hints in the RGB24 format HintColor int32 `json:"hint_color"` // A color of links in the RGB24 format LinkColor int32 `json:"link_color"` // A color of the buttons in the RGB24 format ButtonColor int32 `json:"button_color"` // A color of text on the buttons in the RGB24 format ButtonTextColor int32 `json:"button_text_color"` // contains filtered or unexported fields }
Contains parameters of the application theme
func UnmarshalThemeParameters ¶ added in v1.0.6
func UnmarshalThemeParameters(data json.RawMessage) (*ThemeParameters, error)
func (*ThemeParameters) GetClass ¶ added in v1.0.6
func (*ThemeParameters) GetClass() string
func (*ThemeParameters) GetType ¶ added in v1.0.6
func (*ThemeParameters) GetType() string
func (*ThemeParameters) MarshalJSON ¶ added in v1.0.6
func (entity *ThemeParameters) MarshalJSON() ([]byte, error)
type ThemeSettings ¶
type ThemeSettings struct { // Theme accent color in ARGB format AccentColor int32 `json:"accent_color"` // The background to be used in chats; may be null Background *Background `json:"background"` // The fill to be used as a background for outgoing messages OutgoingMessageFill BackgroundFill `json:"outgoing_message_fill"` // If true, the freeform gradient fill needs to be animated on every sent message AnimateOutgoingMessageFill bool `json:"animate_outgoing_message_fill"` // Accent color of outgoing messages in ARGB format OutgoingMessageAccentColor int32 `json:"outgoing_message_accent_color"` // contains filtered or unexported fields }
Describes theme settings
func UnmarshalThemeSettings ¶
func UnmarshalThemeSettings(data json.RawMessage) (*ThemeSettings, error)
func (*ThemeSettings) GetClass ¶
func (*ThemeSettings) GetClass() string
func (*ThemeSettings) GetType ¶
func (*ThemeSettings) GetType() string
func (*ThemeSettings) MarshalJSON ¶
func (entity *ThemeSettings) MarshalJSON() ([]byte, error)
func (*ThemeSettings) UnmarshalJSON ¶
func (themeSettings *ThemeSettings) UnmarshalJSON(data []byte) error
type Thumbnail ¶
type Thumbnail struct { // Thumbnail format Format ThumbnailFormat `json:"format"` // Thumbnail width Width int32 `json:"width"` // Thumbnail height Height int32 `json:"height"` // The thumbnail File *File `json:"file"` // contains filtered or unexported fields }
Represents a thumbnail
func UnmarshalThumbnail ¶
func UnmarshalThumbnail(data json.RawMessage) (*Thumbnail, error)
func (*Thumbnail) MarshalJSON ¶
func (*Thumbnail) UnmarshalJSON ¶
type ThumbnailFormat ¶
type ThumbnailFormat interface {
ThumbnailFormatType() string
}
Describes format of a thumbnail
func UnmarshalListOfThumbnailFormat ¶
func UnmarshalListOfThumbnailFormat(dataList []json.RawMessage) ([]ThumbnailFormat, error)
func UnmarshalThumbnailFormat ¶
func UnmarshalThumbnailFormat(data json.RawMessage) (ThumbnailFormat, error)
type ThumbnailFormatGif ¶
type ThumbnailFormatGif struct {
// contains filtered or unexported fields
}
The thumbnail is in static GIF format. It will be used only for some bot inline query results
func UnmarshalThumbnailFormatGif ¶
func UnmarshalThumbnailFormatGif(data json.RawMessage) (*ThumbnailFormatGif, error)
func (*ThumbnailFormatGif) GetClass ¶
func (*ThumbnailFormatGif) GetClass() string
func (*ThumbnailFormatGif) GetType ¶
func (*ThumbnailFormatGif) GetType() string
func (*ThumbnailFormatGif) MarshalJSON ¶
func (entity *ThumbnailFormatGif) MarshalJSON() ([]byte, error)
func (*ThumbnailFormatGif) ThumbnailFormatType ¶
func (*ThumbnailFormatGif) ThumbnailFormatType() string
type ThumbnailFormatJpeg ¶
type ThumbnailFormatJpeg struct {
// contains filtered or unexported fields
}
The thumbnail is in JPEG format
func UnmarshalThumbnailFormatJpeg ¶
func UnmarshalThumbnailFormatJpeg(data json.RawMessage) (*ThumbnailFormatJpeg, error)
func (*ThumbnailFormatJpeg) GetClass ¶
func (*ThumbnailFormatJpeg) GetClass() string
func (*ThumbnailFormatJpeg) GetType ¶
func (*ThumbnailFormatJpeg) GetType() string
func (*ThumbnailFormatJpeg) MarshalJSON ¶
func (entity *ThumbnailFormatJpeg) MarshalJSON() ([]byte, error)
func (*ThumbnailFormatJpeg) ThumbnailFormatType ¶
func (*ThumbnailFormatJpeg) ThumbnailFormatType() string
type ThumbnailFormatMpeg4 ¶
type ThumbnailFormatMpeg4 struct {
// contains filtered or unexported fields
}
The thumbnail is in MPEG4 format. It will be used only for some animations and videos
func UnmarshalThumbnailFormatMpeg4 ¶
func UnmarshalThumbnailFormatMpeg4(data json.RawMessage) (*ThumbnailFormatMpeg4, error)
func (*ThumbnailFormatMpeg4) GetClass ¶
func (*ThumbnailFormatMpeg4) GetClass() string
func (*ThumbnailFormatMpeg4) GetType ¶
func (*ThumbnailFormatMpeg4) GetType() string
func (*ThumbnailFormatMpeg4) MarshalJSON ¶
func (entity *ThumbnailFormatMpeg4) MarshalJSON() ([]byte, error)
func (*ThumbnailFormatMpeg4) ThumbnailFormatType ¶
func (*ThumbnailFormatMpeg4) ThumbnailFormatType() string
type ThumbnailFormatPng ¶
type ThumbnailFormatPng struct {
// contains filtered or unexported fields
}
The thumbnail is in PNG format. It will be used only for background patterns
func UnmarshalThumbnailFormatPng ¶
func UnmarshalThumbnailFormatPng(data json.RawMessage) (*ThumbnailFormatPng, error)
func (*ThumbnailFormatPng) GetClass ¶
func (*ThumbnailFormatPng) GetClass() string
func (*ThumbnailFormatPng) GetType ¶
func (*ThumbnailFormatPng) GetType() string
func (*ThumbnailFormatPng) MarshalJSON ¶
func (entity *ThumbnailFormatPng) MarshalJSON() ([]byte, error)
func (*ThumbnailFormatPng) ThumbnailFormatType ¶
func (*ThumbnailFormatPng) ThumbnailFormatType() string
type ThumbnailFormatTgs ¶
type ThumbnailFormatTgs struct {
// contains filtered or unexported fields
}
The thumbnail is in TGS format. It will be used only for TGS sticker sets
func UnmarshalThumbnailFormatTgs ¶
func UnmarshalThumbnailFormatTgs(data json.RawMessage) (*ThumbnailFormatTgs, error)
func (*ThumbnailFormatTgs) GetClass ¶
func (*ThumbnailFormatTgs) GetClass() string
func (*ThumbnailFormatTgs) GetType ¶
func (*ThumbnailFormatTgs) GetType() string
func (*ThumbnailFormatTgs) MarshalJSON ¶
func (entity *ThumbnailFormatTgs) MarshalJSON() ([]byte, error)
func (*ThumbnailFormatTgs) ThumbnailFormatType ¶
func (*ThumbnailFormatTgs) ThumbnailFormatType() string
type ThumbnailFormatWebm ¶ added in v1.0.6
type ThumbnailFormatWebm struct {
// contains filtered or unexported fields
}
The thumbnail is in WEBM format. It will be used only for WEBM sticker sets
func UnmarshalThumbnailFormatWebm ¶ added in v1.0.6
func UnmarshalThumbnailFormatWebm(data json.RawMessage) (*ThumbnailFormatWebm, error)
func (*ThumbnailFormatWebm) GetClass ¶ added in v1.0.6
func (*ThumbnailFormatWebm) GetClass() string
func (*ThumbnailFormatWebm) GetType ¶ added in v1.0.6
func (*ThumbnailFormatWebm) GetType() string
func (*ThumbnailFormatWebm) MarshalJSON ¶ added in v1.0.6
func (entity *ThumbnailFormatWebm) MarshalJSON() ([]byte, error)
func (*ThumbnailFormatWebm) ThumbnailFormatType ¶ added in v1.0.6
func (*ThumbnailFormatWebm) ThumbnailFormatType() string
type ThumbnailFormatWebp ¶
type ThumbnailFormatWebp struct {
// contains filtered or unexported fields
}
The thumbnail is in WEBP format. It will be used only for some stickers
func UnmarshalThumbnailFormatWebp ¶
func UnmarshalThumbnailFormatWebp(data json.RawMessage) (*ThumbnailFormatWebp, error)
func (*ThumbnailFormatWebp) GetClass ¶
func (*ThumbnailFormatWebp) GetClass() string
func (*ThumbnailFormatWebp) GetType ¶
func (*ThumbnailFormatWebp) GetType() string
func (*ThumbnailFormatWebp) MarshalJSON ¶
func (entity *ThumbnailFormatWebp) MarshalJSON() ([]byte, error)
func (*ThumbnailFormatWebp) ThumbnailFormatType ¶
func (*ThumbnailFormatWebp) ThumbnailFormatType() string
type ToggleAllDownloadsArePausedRequest ¶ added in v1.0.6
type ToggleAllDownloadsArePausedRequest struct { // Pass true to pause all downloads; pass false to unpause them ArePaused bool `json:"are_paused"` }
type ToggleBotIsAddedToAttachmentMenuRequest ¶ added in v1.0.6
type ToggleBotIsAddedToAttachmentMenuRequest struct { // Bot's user identifier BotUserId int64 `json:"bot_user_id"` // Pass true to add the bot to attachment menu; pass false to remove the bot from attachment menu IsAdded bool `json:"is_added"` // Pass true if the current user allowed the bot to send them messages. Ignored if is_added is false AllowWriteAccess bool `json:"allow_write_access"` }
type ToggleBotUsernameIsActiveRequest ¶ added in v1.2.3
type ToggleChatIsTranslatableRequest ¶ added in v1.2.3
type ToggleDownloadIsPausedRequest ¶ added in v1.0.6
type ToggleForumTopicIsClosedRequest ¶ added in v1.2.3
type ToggleForumTopicIsPinnedRequest ¶ added in v1.2.3
type ToggleGeneralForumTopicIsHiddenRequest ¶ added in v1.2.3
type ToggleGroupCallParticipantIsHandRaisedRequest ¶
type ToggleGroupCallParticipantIsHandRaisedRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` // Participant identifier ParticipantId MessageSender `json:"participant_id"` // Pass true if the user's hand needs to be raised. Only self hand can be raised. Requires groupCall.can_be_managed group call flag to lower other's hand IsHandRaised bool `json:"is_hand_raised"` }
type ToggleGroupCallParticipantIsMutedRequest ¶
type ToggleGroupCallParticipantIsMutedRequest struct { // Group call identifier GroupCallId int32 `json:"group_call_id"` // Participant identifier ParticipantId MessageSender `json:"participant_id"` // Pass true to mute the user; pass false to unmute them IsMuted bool `json:"is_muted"` }
type ToggleStoryIsPinnedRequest ¶ added in v1.2.3
type ToggleSupergroupHasAggressiveAntiSpamEnabledRequest ¶ added in v1.2.3
type ToggleSupergroupHasAggressiveAntiSpamEnabledRequest struct { // The identifier of the supergroup, which isn't a broadcast group SupergroupId int64 `json:"supergroup_id"` // The new value of has_aggressive_anti_spam_enabled HasAggressiveAntiSpamEnabled bool `json:"has_aggressive_anti_spam_enabled"` }
type ToggleSupergroupHasHiddenMembersRequest ¶ added in v1.2.3
type ToggleSupergroupIsBroadcastGroupRequest ¶
type ToggleSupergroupIsBroadcastGroupRequest struct { // Identifier of the supergroup SupergroupId int64 `json:"supergroup_id"` }
type ToggleSupergroupIsForumRequest ¶ added in v1.2.3
type ToggleSupergroupJoinByRequestRequest ¶ added in v1.2.3
type ToggleSupergroupJoinToSendMessagesRequest ¶ added in v1.2.3
type ToggleSupergroupUsernameIsActiveRequest ¶ added in v1.2.3
type ToggleUsernameIsActiveRequest ¶ added in v1.2.3
type TopChatCategory ¶
type TopChatCategory interface {
TopChatCategoryType() string
}
Represents the categories of chats for which a list of frequently used chats can be retrieved
func UnmarshalListOfTopChatCategory ¶
func UnmarshalListOfTopChatCategory(dataList []json.RawMessage) ([]TopChatCategory, error)
func UnmarshalTopChatCategory ¶
func UnmarshalTopChatCategory(data json.RawMessage) (TopChatCategory, error)
type TopChatCategoryBots ¶
type TopChatCategoryBots struct {
// contains filtered or unexported fields
}
A category containing frequently used private chats with bot users
func UnmarshalTopChatCategoryBots ¶
func UnmarshalTopChatCategoryBots(data json.RawMessage) (*TopChatCategoryBots, error)
func (*TopChatCategoryBots) GetClass ¶
func (*TopChatCategoryBots) GetClass() string
func (*TopChatCategoryBots) GetType ¶
func (*TopChatCategoryBots) GetType() string
func (*TopChatCategoryBots) MarshalJSON ¶
func (entity *TopChatCategoryBots) MarshalJSON() ([]byte, error)
func (*TopChatCategoryBots) TopChatCategoryType ¶
func (*TopChatCategoryBots) TopChatCategoryType() string
type TopChatCategoryCalls ¶
type TopChatCategoryCalls struct {
// contains filtered or unexported fields
}
A category containing frequently used chats used for calls
func UnmarshalTopChatCategoryCalls ¶
func UnmarshalTopChatCategoryCalls(data json.RawMessage) (*TopChatCategoryCalls, error)
func (*TopChatCategoryCalls) GetClass ¶
func (*TopChatCategoryCalls) GetClass() string
func (*TopChatCategoryCalls) GetType ¶
func (*TopChatCategoryCalls) GetType() string
func (*TopChatCategoryCalls) MarshalJSON ¶
func (entity *TopChatCategoryCalls) MarshalJSON() ([]byte, error)
func (*TopChatCategoryCalls) TopChatCategoryType ¶
func (*TopChatCategoryCalls) TopChatCategoryType() string
type TopChatCategoryChannels ¶
type TopChatCategoryChannels struct {
// contains filtered or unexported fields
}
A category containing frequently used channels
func UnmarshalTopChatCategoryChannels ¶
func UnmarshalTopChatCategoryChannels(data json.RawMessage) (*TopChatCategoryChannels, error)
func (*TopChatCategoryChannels) GetClass ¶
func (*TopChatCategoryChannels) GetClass() string
func (*TopChatCategoryChannels) GetType ¶
func (*TopChatCategoryChannels) GetType() string
func (*TopChatCategoryChannels) MarshalJSON ¶
func (entity *TopChatCategoryChannels) MarshalJSON() ([]byte, error)
func (*TopChatCategoryChannels) TopChatCategoryType ¶
func (*TopChatCategoryChannels) TopChatCategoryType() string
type TopChatCategoryForwardChats ¶
type TopChatCategoryForwardChats struct {
// contains filtered or unexported fields
}
A category containing frequently used chats used to forward messages
func UnmarshalTopChatCategoryForwardChats ¶
func UnmarshalTopChatCategoryForwardChats(data json.RawMessage) (*TopChatCategoryForwardChats, error)
func (*TopChatCategoryForwardChats) GetClass ¶
func (*TopChatCategoryForwardChats) GetClass() string
func (*TopChatCategoryForwardChats) GetType ¶
func (*TopChatCategoryForwardChats) GetType() string
func (*TopChatCategoryForwardChats) MarshalJSON ¶
func (entity *TopChatCategoryForwardChats) MarshalJSON() ([]byte, error)
func (*TopChatCategoryForwardChats) TopChatCategoryType ¶
func (*TopChatCategoryForwardChats) TopChatCategoryType() string
type TopChatCategoryGroups ¶
type TopChatCategoryGroups struct {
// contains filtered or unexported fields
}
A category containing frequently used basic groups and supergroups
func UnmarshalTopChatCategoryGroups ¶
func UnmarshalTopChatCategoryGroups(data json.RawMessage) (*TopChatCategoryGroups, error)
func (*TopChatCategoryGroups) GetClass ¶
func (*TopChatCategoryGroups) GetClass() string
func (*TopChatCategoryGroups) GetType ¶
func (*TopChatCategoryGroups) GetType() string
func (*TopChatCategoryGroups) MarshalJSON ¶
func (entity *TopChatCategoryGroups) MarshalJSON() ([]byte, error)
func (*TopChatCategoryGroups) TopChatCategoryType ¶
func (*TopChatCategoryGroups) TopChatCategoryType() string
type TopChatCategoryInlineBots ¶
type TopChatCategoryInlineBots struct {
// contains filtered or unexported fields
}
A category containing frequently used chats with inline bots sorted by their usage in inline mode
func UnmarshalTopChatCategoryInlineBots ¶
func UnmarshalTopChatCategoryInlineBots(data json.RawMessage) (*TopChatCategoryInlineBots, error)
func (*TopChatCategoryInlineBots) GetClass ¶
func (*TopChatCategoryInlineBots) GetClass() string
func (*TopChatCategoryInlineBots) GetType ¶
func (*TopChatCategoryInlineBots) GetType() string
func (*TopChatCategoryInlineBots) MarshalJSON ¶
func (entity *TopChatCategoryInlineBots) MarshalJSON() ([]byte, error)
func (*TopChatCategoryInlineBots) TopChatCategoryType ¶
func (*TopChatCategoryInlineBots) TopChatCategoryType() string
type TopChatCategoryUsers ¶
type TopChatCategoryUsers struct {
// contains filtered or unexported fields
}
A category containing frequently used private chats with non-bot users
func UnmarshalTopChatCategoryUsers ¶
func UnmarshalTopChatCategoryUsers(data json.RawMessage) (*TopChatCategoryUsers, error)
func (*TopChatCategoryUsers) GetClass ¶
func (*TopChatCategoryUsers) GetClass() string
func (*TopChatCategoryUsers) GetType ¶
func (*TopChatCategoryUsers) GetType() string
func (*TopChatCategoryUsers) MarshalJSON ¶
func (entity *TopChatCategoryUsers) MarshalJSON() ([]byte, error)
func (*TopChatCategoryUsers) TopChatCategoryType ¶
func (*TopChatCategoryUsers) TopChatCategoryType() string
type TransferChatOwnershipRequest ¶
type TransferChatOwnershipRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Identifier of the user to which transfer the ownership. The ownership can't be transferred to a bot or to a deleted user UserId int64 `json:"user_id"` // The 2-step verification password of the current user Password string `json:"password"` }
type TranslateMessageTextRequest ¶ added in v1.2.3
type TranslateMessageTextRequest struct { // Identifier of the chat to which the message belongs ChatId int64 `json:"chat_id"` // Identifier of the message MessageId int64 `json:"message_id"` // Language code of the language to which the message is translated. Must be one of "af", "sq", "am", "ar", "hy", "az", "eu", "be", "bn", "bs", "bg", "ca", "ceb", "zh-CN", "zh", "zh-Hans", "zh-TW", "zh-Hant", "co", "hr", "cs", "da", "nl", "en", "eo", "et", "fi", "fr", "fy", "gl", "ka", "de", "el", "gu", "ht", "ha", "haw", "he", "iw", "hi", "hmn", "hu", "is", "ig", "id", "in", "ga", "it", "ja", "jv", "kn", "kk", "km", "rw", "ko", "ku", "ky", "lo", "la", "lv", "lt", "lb", "mk", "mg", "ms", "ml", "mt", "mi", "mr", "mn", "my", "ne", "no", "ny", "or", "ps", "fa", "pl", "pt", "pa", "ro", "ru", "sm", "gd", "sr", "st", "sn", "sd", "si", "sk", "sl", "so", "es", "su", "sw", "sv", "tl", "tg", "ta", "tt", "te", "th", "tr", "tk", "uk", "ur", "ug", "uz", "vi", "cy", "xh", "yi", "ji", "yo", "zu" ToLanguageCode string `json:"to_language_code"` }
type TranslateTextRequest ¶ added in v1.0.6
type TranslateTextRequest struct { // Text to translate Text *FormattedText `json:"text"` // Language code of the language to which the message is translated. Must be one of "af", "sq", "am", "ar", "hy", "az", "eu", "be", "bn", "bs", "bg", "ca", "ceb", "zh-CN", "zh", "zh-Hans", "zh-TW", "zh-Hant", "co", "hr", "cs", "da", "nl", "en", "eo", "et", "fi", "fr", "fy", "gl", "ka", "de", "el", "gu", "ht", "ha", "haw", "he", "iw", "hi", "hmn", "hu", "is", "ig", "id", "in", "ga", "it", "ja", "jv", "kn", "kk", "km", "rw", "ko", "ku", "ky", "lo", "la", "lv", "lt", "lb", "mk", "mg", "ms", "ml", "mt", "mi", "mr", "mn", "my", "ne", "no", "ny", "or", "ps", "fa", "pl", "pt", "pa", "ro", "ru", "sm", "gd", "sr", "st", "sn", "sd", "si", "sk", "sl", "so", "es", "su", "sw", "sv", "tl", "tg", "ta", "tt", "te", "th", "tr", "tk", "uk", "ur", "ug", "uz", "vi", "cy", "xh", "yi", "ji", "yo", "zu" ToLanguageCode string `json:"to_language_code"` }
type TrendingStickerSets ¶ added in v1.2.3
type TrendingStickerSets struct { // Approximate total number of trending sticker sets TotalCount int32 `json:"total_count"` // List of trending sticker sets Sets []*StickerSetInfo `json:"sets"` // True, if the list contains sticker sets with premium stickers IsPremium bool `json:"is_premium"` // contains filtered or unexported fields }
Represents a list of trending sticker sets
func UnmarshalTrendingStickerSets ¶ added in v1.2.3
func UnmarshalTrendingStickerSets(data json.RawMessage) (*TrendingStickerSets, error)
func (*TrendingStickerSets) GetClass ¶ added in v1.2.3
func (*TrendingStickerSets) GetClass() string
func (*TrendingStickerSets) GetType ¶ added in v1.2.3
func (*TrendingStickerSets) GetType() string
func (*TrendingStickerSets) MarshalJSON ¶ added in v1.2.3
func (entity *TrendingStickerSets) MarshalJSON() ([]byte, error)
type Type ¶
func UnmarshalType ¶
func UnmarshalType(data json.RawMessage) (Type, error)
type UnconfirmedSession ¶ added in v1.2.3
type UnconfirmedSession struct { // Session identifier Id JsonInt64 `json:"id"` // Point in time (Unix timestamp) when the user has logged in LogInDate int32 `json:"log_in_date"` // Model of the device that was used for the session creation, as provided by the application DeviceModel string `json:"device_model"` // A human-readable description of the location from which the session was created, based on the IP address Location string `json:"location"` // contains filtered or unexported fields }
Contains information about an unconfirmed session
func UnmarshalUnconfirmedSession ¶ added in v1.2.3
func UnmarshalUnconfirmedSession(data json.RawMessage) (*UnconfirmedSession, error)
func (*UnconfirmedSession) GetClass ¶ added in v1.2.3
func (*UnconfirmedSession) GetClass() string
func (*UnconfirmedSession) GetType ¶ added in v1.2.3
func (*UnconfirmedSession) GetType() string
func (*UnconfirmedSession) MarshalJSON ¶ added in v1.2.3
func (entity *UnconfirmedSession) MarshalJSON() ([]byte, error)
type UnpinAllChatMessagesRequest ¶
type UnpinAllChatMessagesRequest struct { // Identifier of the chat ChatId int64 `json:"chat_id"` }
type UnpinAllMessageThreadMessagesRequest ¶ added in v1.2.3
type UnpinChatMessageRequest ¶
type UnreadReaction ¶ added in v1.0.6
type UnreadReaction struct { // Type of the reaction Type ReactionType `json:"type"` // Identifier of the sender, added the reaction SenderId MessageSender `json:"sender_id"` // True, if the reaction was added with a big animation IsBig bool `json:"is_big"` // contains filtered or unexported fields }
Contains information about an unread reaction to a message
func UnmarshalUnreadReaction ¶ added in v1.0.6
func UnmarshalUnreadReaction(data json.RawMessage) (*UnreadReaction, error)
func (*UnreadReaction) GetClass ¶ added in v1.0.6
func (*UnreadReaction) GetClass() string
func (*UnreadReaction) GetType ¶ added in v1.0.6
func (*UnreadReaction) GetType() string
func (*UnreadReaction) MarshalJSON ¶ added in v1.0.6
func (entity *UnreadReaction) MarshalJSON() ([]byte, error)
func (*UnreadReaction) UnmarshalJSON ¶ added in v1.0.6
func (unreadReaction *UnreadReaction) UnmarshalJSON(data []byte) error
type Update ¶
type Update interface {
UpdateType() string
}
Contains notifications about data changes
func UnmarshalListOfUpdate ¶
func UnmarshalListOfUpdate(dataList []json.RawMessage) ([]Update, error)
func UnmarshalUpdate ¶
func UnmarshalUpdate(data json.RawMessage) (Update, error)
type UpdateActiveEmojiReactions ¶ added in v1.2.3
type UpdateActiveEmojiReactions struct { // The new list of active emoji reactions Emojis []string `json:"emojis"` // contains filtered or unexported fields }
The list of active emoji reactions has changed
func UnmarshalUpdateActiveEmojiReactions ¶ added in v1.2.3
func UnmarshalUpdateActiveEmojiReactions(data json.RawMessage) (*UpdateActiveEmojiReactions, error)
func (*UpdateActiveEmojiReactions) GetClass ¶ added in v1.2.3
func (*UpdateActiveEmojiReactions) GetClass() string
func (*UpdateActiveEmojiReactions) GetType ¶ added in v1.2.3
func (*UpdateActiveEmojiReactions) GetType() string
func (*UpdateActiveEmojiReactions) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateActiveEmojiReactions) MarshalJSON() ([]byte, error)
func (*UpdateActiveEmojiReactions) UpdateType ¶ added in v1.2.3
func (*UpdateActiveEmojiReactions) UpdateType() string
type UpdateActiveNotifications ¶
type UpdateActiveNotifications struct { // Lists of active notification groups Groups []*NotificationGroup `json:"groups"` // contains filtered or unexported fields }
Contains active notifications that was shown on previous application launches. This update is sent only if the message database is used. In that case it comes once before any updateNotification and updateNotificationGroup update
func UnmarshalUpdateActiveNotifications ¶
func UnmarshalUpdateActiveNotifications(data json.RawMessage) (*UpdateActiveNotifications, error)
func (*UpdateActiveNotifications) GetClass ¶
func (*UpdateActiveNotifications) GetClass() string
func (*UpdateActiveNotifications) GetType ¶
func (*UpdateActiveNotifications) GetType() string
func (*UpdateActiveNotifications) MarshalJSON ¶
func (entity *UpdateActiveNotifications) MarshalJSON() ([]byte, error)
func (*UpdateActiveNotifications) UpdateType ¶
func (*UpdateActiveNotifications) UpdateType() string
type UpdateAddChatMembersPrivacyForbidden ¶ added in v1.2.3
type UpdateAddChatMembersPrivacyForbidden struct { // Chat identifier ChatId int64 `json:"chat_id"` // Identifiers of users, which weren't added because of their privacy settings UserIds []int64 `json:"user_ids"` // contains filtered or unexported fields }
Adding users to a chat has failed because of their privacy settings. An invite link can be shared with the users if appropriate
func UnmarshalUpdateAddChatMembersPrivacyForbidden ¶ added in v1.2.3
func UnmarshalUpdateAddChatMembersPrivacyForbidden(data json.RawMessage) (*UpdateAddChatMembersPrivacyForbidden, error)
func (*UpdateAddChatMembersPrivacyForbidden) GetClass ¶ added in v1.2.3
func (*UpdateAddChatMembersPrivacyForbidden) GetClass() string
func (*UpdateAddChatMembersPrivacyForbidden) GetType ¶ added in v1.2.3
func (*UpdateAddChatMembersPrivacyForbidden) GetType() string
func (*UpdateAddChatMembersPrivacyForbidden) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateAddChatMembersPrivacyForbidden) MarshalJSON() ([]byte, error)
func (*UpdateAddChatMembersPrivacyForbidden) UpdateType ¶ added in v1.2.3
func (*UpdateAddChatMembersPrivacyForbidden) UpdateType() string
type UpdateAnimatedEmojiMessageClicked ¶
type UpdateAnimatedEmojiMessageClicked struct { // Chat identifier ChatId int64 `json:"chat_id"` // Message identifier MessageId int64 `json:"message_id"` // The animated sticker to be played Sticker *Sticker `json:"sticker"` // contains filtered or unexported fields }
Some animated emoji message was clicked and a big animated sticker must be played if the message is visible on the screen. chatActionWatchingAnimations with the text of the message needs to be sent if the sticker is played
func UnmarshalUpdateAnimatedEmojiMessageClicked ¶
func UnmarshalUpdateAnimatedEmojiMessageClicked(data json.RawMessage) (*UpdateAnimatedEmojiMessageClicked, error)
func (*UpdateAnimatedEmojiMessageClicked) GetClass ¶
func (*UpdateAnimatedEmojiMessageClicked) GetClass() string
func (*UpdateAnimatedEmojiMessageClicked) GetType ¶
func (*UpdateAnimatedEmojiMessageClicked) GetType() string
func (*UpdateAnimatedEmojiMessageClicked) MarshalJSON ¶
func (entity *UpdateAnimatedEmojiMessageClicked) MarshalJSON() ([]byte, error)
func (*UpdateAnimatedEmojiMessageClicked) UpdateType ¶
func (*UpdateAnimatedEmojiMessageClicked) UpdateType() string
type UpdateAnimationSearchParameters ¶
type UpdateAnimationSearchParameters struct { // Name of the animation search provider Provider string `json:"provider"` // The new list of emojis suggested for searching Emojis []string `json:"emojis"` // contains filtered or unexported fields }
The parameters of animation search through getOption("animation_search_bot_username") bot has changed
func UnmarshalUpdateAnimationSearchParameters ¶
func UnmarshalUpdateAnimationSearchParameters(data json.RawMessage) (*UpdateAnimationSearchParameters, error)
func (*UpdateAnimationSearchParameters) GetClass ¶
func (*UpdateAnimationSearchParameters) GetClass() string
func (*UpdateAnimationSearchParameters) GetType ¶
func (*UpdateAnimationSearchParameters) GetType() string
func (*UpdateAnimationSearchParameters) MarshalJSON ¶
func (entity *UpdateAnimationSearchParameters) MarshalJSON() ([]byte, error)
func (*UpdateAnimationSearchParameters) UpdateType ¶
func (*UpdateAnimationSearchParameters) UpdateType() string
type UpdateAttachmentMenuBots ¶ added in v1.0.6
type UpdateAttachmentMenuBots struct { // The new list of bots. The bots must not be shown on scheduled messages screen Bots []*AttachmentMenuBot `json:"bots"` // contains filtered or unexported fields }
The list of bots added to attachment or side menu has changed
func UnmarshalUpdateAttachmentMenuBots ¶ added in v1.0.6
func UnmarshalUpdateAttachmentMenuBots(data json.RawMessage) (*UpdateAttachmentMenuBots, error)
func (*UpdateAttachmentMenuBots) GetClass ¶ added in v1.0.6
func (*UpdateAttachmentMenuBots) GetClass() string
func (*UpdateAttachmentMenuBots) GetType ¶ added in v1.0.6
func (*UpdateAttachmentMenuBots) GetType() string
func (*UpdateAttachmentMenuBots) MarshalJSON ¶ added in v1.0.6
func (entity *UpdateAttachmentMenuBots) MarshalJSON() ([]byte, error)
func (*UpdateAttachmentMenuBots) UpdateType ¶ added in v1.0.6
func (*UpdateAttachmentMenuBots) UpdateType() string
type UpdateAuthorizationState ¶
type UpdateAuthorizationState struct { // New authorization state AuthorizationState AuthorizationState `json:"authorization_state"` // contains filtered or unexported fields }
The user authorization state has changed
func UnmarshalUpdateAuthorizationState ¶
func UnmarshalUpdateAuthorizationState(data json.RawMessage) (*UpdateAuthorizationState, error)
func (*UpdateAuthorizationState) GetClass ¶
func (*UpdateAuthorizationState) GetClass() string
func (*UpdateAuthorizationState) GetType ¶
func (*UpdateAuthorizationState) GetType() string
func (*UpdateAuthorizationState) MarshalJSON ¶
func (entity *UpdateAuthorizationState) MarshalJSON() ([]byte, error)
func (*UpdateAuthorizationState) UnmarshalJSON ¶
func (updateAuthorizationState *UpdateAuthorizationState) UnmarshalJSON(data []byte) error
func (*UpdateAuthorizationState) UpdateType ¶
func (*UpdateAuthorizationState) UpdateType() string
type UpdateAutosaveSettings ¶ added in v1.2.3
type UpdateAutosaveSettings struct { // Type of chats for which autosave settings were updated Scope AutosaveSettingsScope `json:"scope"` // The new autosave settings; may be null if the settings are reset to default Settings *ScopeAutosaveSettings `json:"settings"` // contains filtered or unexported fields }
Autosave settings for some type of chats were updated
func UnmarshalUpdateAutosaveSettings ¶ added in v1.2.3
func UnmarshalUpdateAutosaveSettings(data json.RawMessage) (*UpdateAutosaveSettings, error)
func (*UpdateAutosaveSettings) GetClass ¶ added in v1.2.3
func (*UpdateAutosaveSettings) GetClass() string
func (*UpdateAutosaveSettings) GetType ¶ added in v1.2.3
func (*UpdateAutosaveSettings) GetType() string
func (*UpdateAutosaveSettings) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateAutosaveSettings) MarshalJSON() ([]byte, error)
func (*UpdateAutosaveSettings) UnmarshalJSON ¶ added in v1.2.3
func (updateAutosaveSettings *UpdateAutosaveSettings) UnmarshalJSON(data []byte) error
func (*UpdateAutosaveSettings) UpdateType ¶ added in v1.2.3
func (*UpdateAutosaveSettings) UpdateType() string
type UpdateBasicGroup ¶
type UpdateBasicGroup struct { // New data about the group BasicGroup *BasicGroup `json:"basic_group"` // contains filtered or unexported fields }
Some data of a basic group has changed. This update is guaranteed to come before the basic group identifier is returned to the application
func UnmarshalUpdateBasicGroup ¶
func UnmarshalUpdateBasicGroup(data json.RawMessage) (*UpdateBasicGroup, error)
func (*UpdateBasicGroup) GetClass ¶
func (*UpdateBasicGroup) GetClass() string
func (*UpdateBasicGroup) GetType ¶
func (*UpdateBasicGroup) GetType() string
func (*UpdateBasicGroup) MarshalJSON ¶
func (entity *UpdateBasicGroup) MarshalJSON() ([]byte, error)
func (*UpdateBasicGroup) UpdateType ¶
func (*UpdateBasicGroup) UpdateType() string
type UpdateBasicGroupFullInfo ¶
type UpdateBasicGroupFullInfo struct { // Identifier of a basic group BasicGroupId int64 `json:"basic_group_id"` // New full information about the group BasicGroupFullInfo *BasicGroupFullInfo `json:"basic_group_full_info"` // contains filtered or unexported fields }
Some data in basicGroupFullInfo has been changed
func UnmarshalUpdateBasicGroupFullInfo ¶
func UnmarshalUpdateBasicGroupFullInfo(data json.RawMessage) (*UpdateBasicGroupFullInfo, error)
func (*UpdateBasicGroupFullInfo) GetClass ¶
func (*UpdateBasicGroupFullInfo) GetClass() string
func (*UpdateBasicGroupFullInfo) GetType ¶
func (*UpdateBasicGroupFullInfo) GetType() string
func (*UpdateBasicGroupFullInfo) MarshalJSON ¶
func (entity *UpdateBasicGroupFullInfo) MarshalJSON() ([]byte, error)
func (*UpdateBasicGroupFullInfo) UpdateType ¶
func (*UpdateBasicGroupFullInfo) UpdateType() string
type UpdateCall ¶
type UpdateCall struct { // New data about a call Call *Call `json:"call"` // contains filtered or unexported fields }
New call was created or information about a call was updated
func UnmarshalUpdateCall ¶
func UnmarshalUpdateCall(data json.RawMessage) (*UpdateCall, error)
func (*UpdateCall) GetClass ¶
func (*UpdateCall) GetClass() string
func (*UpdateCall) GetType ¶
func (*UpdateCall) GetType() string
func (*UpdateCall) MarshalJSON ¶
func (entity *UpdateCall) MarshalJSON() ([]byte, error)
func (*UpdateCall) UpdateType ¶
func (*UpdateCall) UpdateType() string
type UpdateChatAction ¶
type UpdateChatAction struct { // Chat identifier ChatId int64 `json:"chat_id"` // If not 0, a message thread identifier in which the action was performed MessageThreadId int64 `json:"message_thread_id"` // Identifier of a message sender performing the action SenderId MessageSender `json:"sender_id"` // The action Action ChatAction `json:"action"` // contains filtered or unexported fields }
A message sender activity in the chat has changed
func UnmarshalUpdateChatAction ¶
func UnmarshalUpdateChatAction(data json.RawMessage) (*UpdateChatAction, error)
func (*UpdateChatAction) GetClass ¶
func (*UpdateChatAction) GetClass() string
func (*UpdateChatAction) GetType ¶
func (*UpdateChatAction) GetType() string
func (*UpdateChatAction) MarshalJSON ¶
func (entity *UpdateChatAction) MarshalJSON() ([]byte, error)
func (*UpdateChatAction) UnmarshalJSON ¶
func (updateChatAction *UpdateChatAction) UnmarshalJSON(data []byte) error
func (*UpdateChatAction) UpdateType ¶
func (*UpdateChatAction) UpdateType() string
type UpdateChatActionBar ¶
type UpdateChatActionBar struct { // Chat identifier ChatId int64 `json:"chat_id"` // The new value of the action bar; may be null ActionBar ChatActionBar `json:"action_bar"` // contains filtered or unexported fields }
The chat action bar was changed
func UnmarshalUpdateChatActionBar ¶
func UnmarshalUpdateChatActionBar(data json.RawMessage) (*UpdateChatActionBar, error)
func (*UpdateChatActionBar) GetClass ¶
func (*UpdateChatActionBar) GetClass() string
func (*UpdateChatActionBar) GetType ¶
func (*UpdateChatActionBar) GetType() string
func (*UpdateChatActionBar) MarshalJSON ¶
func (entity *UpdateChatActionBar) MarshalJSON() ([]byte, error)
func (*UpdateChatActionBar) UnmarshalJSON ¶
func (updateChatActionBar *UpdateChatActionBar) UnmarshalJSON(data []byte) error
func (*UpdateChatActionBar) UpdateType ¶
func (*UpdateChatActionBar) UpdateType() string
type UpdateChatActiveStories ¶ added in v1.2.3
type UpdateChatActiveStories struct { // The new list of active stories ActiveStories *ChatActiveStories `json:"active_stories"` // contains filtered or unexported fields }
The list of active stories posted by a specific chat has changed
func UnmarshalUpdateChatActiveStories ¶ added in v1.2.3
func UnmarshalUpdateChatActiveStories(data json.RawMessage) (*UpdateChatActiveStories, error)
func (*UpdateChatActiveStories) GetClass ¶ added in v1.2.3
func (*UpdateChatActiveStories) GetClass() string
func (*UpdateChatActiveStories) GetType ¶ added in v1.2.3
func (*UpdateChatActiveStories) GetType() string
func (*UpdateChatActiveStories) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateChatActiveStories) MarshalJSON() ([]byte, error)
func (*UpdateChatActiveStories) UpdateType ¶ added in v1.2.3
func (*UpdateChatActiveStories) UpdateType() string
type UpdateChatAvailableReactions ¶ added in v1.0.6
type UpdateChatAvailableReactions struct { // Chat identifier ChatId int64 `json:"chat_id"` // The new reactions, available in the chat AvailableReactions ChatAvailableReactions `json:"available_reactions"` // contains filtered or unexported fields }
The chat available reactions were changed
func UnmarshalUpdateChatAvailableReactions ¶ added in v1.0.6
func UnmarshalUpdateChatAvailableReactions(data json.RawMessage) (*UpdateChatAvailableReactions, error)
func (*UpdateChatAvailableReactions) GetClass ¶ added in v1.0.6
func (*UpdateChatAvailableReactions) GetClass() string
func (*UpdateChatAvailableReactions) GetType ¶ added in v1.0.6
func (*UpdateChatAvailableReactions) GetType() string
func (*UpdateChatAvailableReactions) MarshalJSON ¶ added in v1.0.6
func (entity *UpdateChatAvailableReactions) MarshalJSON() ([]byte, error)
func (*UpdateChatAvailableReactions) UnmarshalJSON ¶ added in v1.2.3
func (updateChatAvailableReactions *UpdateChatAvailableReactions) UnmarshalJSON(data []byte) error
func (*UpdateChatAvailableReactions) UpdateType ¶ added in v1.0.6
func (*UpdateChatAvailableReactions) UpdateType() string
type UpdateChatBackground ¶ added in v1.2.3
type UpdateChatBackground struct { // Chat identifier ChatId int64 `json:"chat_id"` // The new chat background; may be null if background was reset to default Background *ChatBackground `json:"background"` // contains filtered or unexported fields }
The chat background was changed
func UnmarshalUpdateChatBackground ¶ added in v1.2.3
func UnmarshalUpdateChatBackground(data json.RawMessage) (*UpdateChatBackground, error)
func (*UpdateChatBackground) GetClass ¶ added in v1.2.3
func (*UpdateChatBackground) GetClass() string
func (*UpdateChatBackground) GetType ¶ added in v1.2.3
func (*UpdateChatBackground) GetType() string
func (*UpdateChatBackground) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateChatBackground) MarshalJSON() ([]byte, error)
func (*UpdateChatBackground) UpdateType ¶ added in v1.2.3
func (*UpdateChatBackground) UpdateType() string
type UpdateChatBlockList ¶ added in v1.2.3
type UpdateChatBlockList struct { // Chat identifier ChatId int64 `json:"chat_id"` // Block list to which the chat is added; may be null if none BlockList BlockList `json:"block_list"` // contains filtered or unexported fields }
A chat was blocked or unblocked
func UnmarshalUpdateChatBlockList ¶ added in v1.2.3
func UnmarshalUpdateChatBlockList(data json.RawMessage) (*UpdateChatBlockList, error)
func (*UpdateChatBlockList) GetClass ¶ added in v1.2.3
func (*UpdateChatBlockList) GetClass() string
func (*UpdateChatBlockList) GetType ¶ added in v1.2.3
func (*UpdateChatBlockList) GetType() string
func (*UpdateChatBlockList) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateChatBlockList) MarshalJSON() ([]byte, error)
func (*UpdateChatBlockList) UnmarshalJSON ¶ added in v1.2.3
func (updateChatBlockList *UpdateChatBlockList) UnmarshalJSON(data []byte) error
func (*UpdateChatBlockList) UpdateType ¶ added in v1.2.3
func (*UpdateChatBlockList) UpdateType() string
type UpdateChatDefaultDisableNotification ¶
type UpdateChatDefaultDisableNotification struct { // Chat identifier ChatId int64 `json:"chat_id"` // The new default_disable_notification value DefaultDisableNotification bool `json:"default_disable_notification"` // contains filtered or unexported fields }
The value of the default disable_notification parameter, used when a message is sent to the chat, was changed
func UnmarshalUpdateChatDefaultDisableNotification ¶
func UnmarshalUpdateChatDefaultDisableNotification(data json.RawMessage) (*UpdateChatDefaultDisableNotification, error)
func (*UpdateChatDefaultDisableNotification) GetClass ¶
func (*UpdateChatDefaultDisableNotification) GetClass() string
func (*UpdateChatDefaultDisableNotification) GetType ¶
func (*UpdateChatDefaultDisableNotification) GetType() string
func (*UpdateChatDefaultDisableNotification) MarshalJSON ¶
func (entity *UpdateChatDefaultDisableNotification) MarshalJSON() ([]byte, error)
func (*UpdateChatDefaultDisableNotification) UpdateType ¶
func (*UpdateChatDefaultDisableNotification) UpdateType() string
type UpdateChatDraftMessage ¶
type UpdateChatDraftMessage struct { // Chat identifier ChatId int64 `json:"chat_id"` // The new draft message; may be null DraftMessage *DraftMessage `json:"draft_message"` // The new chat positions in the chat lists Positions []*ChatPosition `json:"positions"` // contains filtered or unexported fields }
A chat draft has changed. Be aware that the update may come in the currently opened chat but with old content of the draft. If the user has changed the content of the draft, this update mustn't be applied
func UnmarshalUpdateChatDraftMessage ¶
func UnmarshalUpdateChatDraftMessage(data json.RawMessage) (*UpdateChatDraftMessage, error)
func (*UpdateChatDraftMessage) GetClass ¶
func (*UpdateChatDraftMessage) GetClass() string
func (*UpdateChatDraftMessage) GetType ¶
func (*UpdateChatDraftMessage) GetType() string
func (*UpdateChatDraftMessage) MarshalJSON ¶
func (entity *UpdateChatDraftMessage) MarshalJSON() ([]byte, error)
func (*UpdateChatDraftMessage) UpdateType ¶
func (*UpdateChatDraftMessage) UpdateType() string
type UpdateChatFolders ¶ added in v1.2.3
type UpdateChatFolders struct { // The new list of chat folders ChatFolders []*ChatFolderInfo `json:"chat_folders"` // Position of the main chat list among chat folders, 0-based MainChatListPosition int32 `json:"main_chat_list_position"` // contains filtered or unexported fields }
The list of chat folders or a chat folder has changed
func UnmarshalUpdateChatFolders ¶ added in v1.2.3
func UnmarshalUpdateChatFolders(data json.RawMessage) (*UpdateChatFolders, error)
func (*UpdateChatFolders) GetClass ¶ added in v1.2.3
func (*UpdateChatFolders) GetClass() string
func (*UpdateChatFolders) GetType ¶ added in v1.2.3
func (*UpdateChatFolders) GetType() string
func (*UpdateChatFolders) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateChatFolders) MarshalJSON() ([]byte, error)
func (*UpdateChatFolders) UpdateType ¶ added in v1.2.3
func (*UpdateChatFolders) UpdateType() string
type UpdateChatHasProtectedContent ¶
type UpdateChatHasProtectedContent struct { // Chat identifier ChatId int64 `json:"chat_id"` // New value of has_protected_content HasProtectedContent bool `json:"has_protected_content"` // contains filtered or unexported fields }
A chat content was allowed or restricted for saving
func UnmarshalUpdateChatHasProtectedContent ¶
func UnmarshalUpdateChatHasProtectedContent(data json.RawMessage) (*UpdateChatHasProtectedContent, error)
func (*UpdateChatHasProtectedContent) GetClass ¶
func (*UpdateChatHasProtectedContent) GetClass() string
func (*UpdateChatHasProtectedContent) GetType ¶
func (*UpdateChatHasProtectedContent) GetType() string
func (*UpdateChatHasProtectedContent) MarshalJSON ¶
func (entity *UpdateChatHasProtectedContent) MarshalJSON() ([]byte, error)
func (*UpdateChatHasProtectedContent) UpdateType ¶
func (*UpdateChatHasProtectedContent) UpdateType() string
type UpdateChatHasScheduledMessages ¶
type UpdateChatHasScheduledMessages struct { // Chat identifier ChatId int64 `json:"chat_id"` // New value of has_scheduled_messages HasScheduledMessages bool `json:"has_scheduled_messages"` // contains filtered or unexported fields }
A chat's has_scheduled_messages field has changed
func UnmarshalUpdateChatHasScheduledMessages ¶
func UnmarshalUpdateChatHasScheduledMessages(data json.RawMessage) (*UpdateChatHasScheduledMessages, error)
func (*UpdateChatHasScheduledMessages) GetClass ¶
func (*UpdateChatHasScheduledMessages) GetClass() string
func (*UpdateChatHasScheduledMessages) GetType ¶
func (*UpdateChatHasScheduledMessages) GetType() string
func (*UpdateChatHasScheduledMessages) MarshalJSON ¶
func (entity *UpdateChatHasScheduledMessages) MarshalJSON() ([]byte, error)
func (*UpdateChatHasScheduledMessages) UpdateType ¶
func (*UpdateChatHasScheduledMessages) UpdateType() string
type UpdateChatIsMarkedAsUnread ¶
type UpdateChatIsMarkedAsUnread struct { // Chat identifier ChatId int64 `json:"chat_id"` // New value of is_marked_as_unread IsMarkedAsUnread bool `json:"is_marked_as_unread"` // contains filtered or unexported fields }
A chat was marked as unread or was read
func UnmarshalUpdateChatIsMarkedAsUnread ¶
func UnmarshalUpdateChatIsMarkedAsUnread(data json.RawMessage) (*UpdateChatIsMarkedAsUnread, error)
func (*UpdateChatIsMarkedAsUnread) GetClass ¶
func (*UpdateChatIsMarkedAsUnread) GetClass() string
func (*UpdateChatIsMarkedAsUnread) GetType ¶
func (*UpdateChatIsMarkedAsUnread) GetType() string
func (*UpdateChatIsMarkedAsUnread) MarshalJSON ¶
func (entity *UpdateChatIsMarkedAsUnread) MarshalJSON() ([]byte, error)
func (*UpdateChatIsMarkedAsUnread) UpdateType ¶
func (*UpdateChatIsMarkedAsUnread) UpdateType() string
type UpdateChatIsTranslatable ¶ added in v1.2.3
type UpdateChatIsTranslatable struct { // Chat identifier ChatId int64 `json:"chat_id"` // New value of is_translatable IsTranslatable bool `json:"is_translatable"` // contains filtered or unexported fields }
Translation of chat messages was enabled or disabled
func UnmarshalUpdateChatIsTranslatable ¶ added in v1.2.3
func UnmarshalUpdateChatIsTranslatable(data json.RawMessage) (*UpdateChatIsTranslatable, error)
func (*UpdateChatIsTranslatable) GetClass ¶ added in v1.2.3
func (*UpdateChatIsTranslatable) GetClass() string
func (*UpdateChatIsTranslatable) GetType ¶ added in v1.2.3
func (*UpdateChatIsTranslatable) GetType() string
func (*UpdateChatIsTranslatable) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateChatIsTranslatable) MarshalJSON() ([]byte, error)
func (*UpdateChatIsTranslatable) UpdateType ¶ added in v1.2.3
func (*UpdateChatIsTranslatable) UpdateType() string
type UpdateChatLastMessage ¶
type UpdateChatLastMessage struct { // Chat identifier ChatId int64 `json:"chat_id"` // The new last message in the chat; may be null LastMessage *Message `json:"last_message"` // The new chat positions in the chat lists Positions []*ChatPosition `json:"positions"` // contains filtered or unexported fields }
The last message of a chat was changed. If last_message is null, then the last message in the chat became unknown. Some new unknown messages might be added to the chat in this case
func UnmarshalUpdateChatLastMessage ¶
func UnmarshalUpdateChatLastMessage(data json.RawMessage) (*UpdateChatLastMessage, error)
func (*UpdateChatLastMessage) GetClass ¶
func (*UpdateChatLastMessage) GetClass() string
func (*UpdateChatLastMessage) GetType ¶
func (*UpdateChatLastMessage) GetType() string
func (*UpdateChatLastMessage) MarshalJSON ¶
func (entity *UpdateChatLastMessage) MarshalJSON() ([]byte, error)
func (*UpdateChatLastMessage) UpdateType ¶
func (*UpdateChatLastMessage) UpdateType() string
type UpdateChatMember ¶
type UpdateChatMember struct { // Chat identifier ChatId int64 `json:"chat_id"` // Identifier of the user, changing the rights ActorUserId int64 `json:"actor_user_id"` // Point in time (Unix timestamp) when the user rights was changed Date int32 `json:"date"` // If user has joined the chat using an invite link, the invite link; may be null InviteLink *ChatInviteLink `json:"invite_link"` // True, if the user has joined the chat using an invite link for a chat folder ViaChatFolderInviteLink bool `json:"via_chat_folder_invite_link"` // Previous chat member OldChatMember *ChatMember `json:"old_chat_member"` // New chat member NewChatMember *ChatMember `json:"new_chat_member"` // contains filtered or unexported fields }
User rights changed in a chat; for bots only
func UnmarshalUpdateChatMember ¶
func UnmarshalUpdateChatMember(data json.RawMessage) (*UpdateChatMember, error)
func (*UpdateChatMember) GetClass ¶
func (*UpdateChatMember) GetClass() string
func (*UpdateChatMember) GetType ¶
func (*UpdateChatMember) GetType() string
func (*UpdateChatMember) MarshalJSON ¶
func (entity *UpdateChatMember) MarshalJSON() ([]byte, error)
func (*UpdateChatMember) UpdateType ¶
func (*UpdateChatMember) UpdateType() string
type UpdateChatMessageAutoDeleteTime ¶ added in v1.2.3
type UpdateChatMessageAutoDeleteTime struct { // Chat identifier ChatId int64 `json:"chat_id"` // New value of message_auto_delete_time MessageAutoDeleteTime int32 `json:"message_auto_delete_time"` // contains filtered or unexported fields }
The message auto-delete or self-destruct timer setting for a chat was changed
func UnmarshalUpdateChatMessageAutoDeleteTime ¶ added in v1.2.3
func UnmarshalUpdateChatMessageAutoDeleteTime(data json.RawMessage) (*UpdateChatMessageAutoDeleteTime, error)
func (*UpdateChatMessageAutoDeleteTime) GetClass ¶ added in v1.2.3
func (*UpdateChatMessageAutoDeleteTime) GetClass() string
func (*UpdateChatMessageAutoDeleteTime) GetType ¶ added in v1.2.3
func (*UpdateChatMessageAutoDeleteTime) GetType() string
func (*UpdateChatMessageAutoDeleteTime) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateChatMessageAutoDeleteTime) MarshalJSON() ([]byte, error)
func (*UpdateChatMessageAutoDeleteTime) UpdateType ¶ added in v1.2.3
func (*UpdateChatMessageAutoDeleteTime) UpdateType() string
type UpdateChatMessageSender ¶
type UpdateChatMessageSender struct { // Chat identifier ChatId int64 `json:"chat_id"` // New value of message_sender_id; may be null if the user can't change message sender MessageSenderId MessageSender `json:"message_sender_id"` // contains filtered or unexported fields }
The message sender that is selected to send messages in a chat has changed
func UnmarshalUpdateChatMessageSender ¶
func UnmarshalUpdateChatMessageSender(data json.RawMessage) (*UpdateChatMessageSender, error)
func (*UpdateChatMessageSender) GetClass ¶
func (*UpdateChatMessageSender) GetClass() string
func (*UpdateChatMessageSender) GetType ¶
func (*UpdateChatMessageSender) GetType() string
func (*UpdateChatMessageSender) MarshalJSON ¶
func (entity *UpdateChatMessageSender) MarshalJSON() ([]byte, error)
func (*UpdateChatMessageSender) UnmarshalJSON ¶
func (updateChatMessageSender *UpdateChatMessageSender) UnmarshalJSON(data []byte) error
func (*UpdateChatMessageSender) UpdateType ¶
func (*UpdateChatMessageSender) UpdateType() string
type UpdateChatNotificationSettings ¶
type UpdateChatNotificationSettings struct { // Chat identifier ChatId int64 `json:"chat_id"` // The new notification settings NotificationSettings *ChatNotificationSettings `json:"notification_settings"` // contains filtered or unexported fields }
Notification settings for a chat were changed
func UnmarshalUpdateChatNotificationSettings ¶
func UnmarshalUpdateChatNotificationSettings(data json.RawMessage) (*UpdateChatNotificationSettings, error)
func (*UpdateChatNotificationSettings) GetClass ¶
func (*UpdateChatNotificationSettings) GetClass() string
func (*UpdateChatNotificationSettings) GetType ¶
func (*UpdateChatNotificationSettings) GetType() string
func (*UpdateChatNotificationSettings) MarshalJSON ¶
func (entity *UpdateChatNotificationSettings) MarshalJSON() ([]byte, error)
func (*UpdateChatNotificationSettings) UpdateType ¶
func (*UpdateChatNotificationSettings) UpdateType() string
type UpdateChatOnlineMemberCount ¶
type UpdateChatOnlineMemberCount struct { // Identifier of the chat ChatId int64 `json:"chat_id"` // New number of online members in the chat, or 0 if unknown OnlineMemberCount int32 `json:"online_member_count"` // contains filtered or unexported fields }
The number of online group members has changed. This update with non-zero number of online group members is sent only for currently opened chats. There is no guarantee that it will be sent just after the number of online users has changed
func UnmarshalUpdateChatOnlineMemberCount ¶
func UnmarshalUpdateChatOnlineMemberCount(data json.RawMessage) (*UpdateChatOnlineMemberCount, error)
func (*UpdateChatOnlineMemberCount) GetClass ¶
func (*UpdateChatOnlineMemberCount) GetClass() string
func (*UpdateChatOnlineMemberCount) GetType ¶
func (*UpdateChatOnlineMemberCount) GetType() string
func (*UpdateChatOnlineMemberCount) MarshalJSON ¶
func (entity *UpdateChatOnlineMemberCount) MarshalJSON() ([]byte, error)
func (*UpdateChatOnlineMemberCount) UpdateType ¶
func (*UpdateChatOnlineMemberCount) UpdateType() string
type UpdateChatPendingJoinRequests ¶
type UpdateChatPendingJoinRequests struct { // Chat identifier ChatId int64 `json:"chat_id"` // The new data about pending join requests; may be null PendingJoinRequests *ChatJoinRequestsInfo `json:"pending_join_requests"` // contains filtered or unexported fields }
The chat pending join requests were changed
func UnmarshalUpdateChatPendingJoinRequests ¶
func UnmarshalUpdateChatPendingJoinRequests(data json.RawMessage) (*UpdateChatPendingJoinRequests, error)
func (*UpdateChatPendingJoinRequests) GetClass ¶
func (*UpdateChatPendingJoinRequests) GetClass() string
func (*UpdateChatPendingJoinRequests) GetType ¶
func (*UpdateChatPendingJoinRequests) GetType() string
func (*UpdateChatPendingJoinRequests) MarshalJSON ¶
func (entity *UpdateChatPendingJoinRequests) MarshalJSON() ([]byte, error)
func (*UpdateChatPendingJoinRequests) UpdateType ¶
func (*UpdateChatPendingJoinRequests) UpdateType() string
type UpdateChatPermissions ¶
type UpdateChatPermissions struct { // Chat identifier ChatId int64 `json:"chat_id"` // The new chat permissions Permissions *ChatPermissions `json:"permissions"` // contains filtered or unexported fields }
Chat permissions was changed
func UnmarshalUpdateChatPermissions ¶
func UnmarshalUpdateChatPermissions(data json.RawMessage) (*UpdateChatPermissions, error)
func (*UpdateChatPermissions) GetClass ¶
func (*UpdateChatPermissions) GetClass() string
func (*UpdateChatPermissions) GetType ¶
func (*UpdateChatPermissions) GetType() string
func (*UpdateChatPermissions) MarshalJSON ¶
func (entity *UpdateChatPermissions) MarshalJSON() ([]byte, error)
func (*UpdateChatPermissions) UpdateType ¶
func (*UpdateChatPermissions) UpdateType() string
type UpdateChatPhoto ¶
type UpdateChatPhoto struct { // Chat identifier ChatId int64 `json:"chat_id"` // The new chat photo; may be null Photo *ChatPhotoInfo `json:"photo"` // contains filtered or unexported fields }
A chat photo was changed
func UnmarshalUpdateChatPhoto ¶
func UnmarshalUpdateChatPhoto(data json.RawMessage) (*UpdateChatPhoto, error)
func (*UpdateChatPhoto) GetClass ¶
func (*UpdateChatPhoto) GetClass() string
func (*UpdateChatPhoto) GetType ¶
func (*UpdateChatPhoto) GetType() string
func (*UpdateChatPhoto) MarshalJSON ¶
func (entity *UpdateChatPhoto) MarshalJSON() ([]byte, error)
func (*UpdateChatPhoto) UpdateType ¶
func (*UpdateChatPhoto) UpdateType() string
type UpdateChatPosition ¶
type UpdateChatPosition struct { // Chat identifier ChatId int64 `json:"chat_id"` // New chat position. If new order is 0, then the chat needs to be removed from the list Position *ChatPosition `json:"position"` // contains filtered or unexported fields }
The position of a chat in a chat list has changed. An updateChatLastMessage or updateChatDraftMessage update might be sent instead of the update
func UnmarshalUpdateChatPosition ¶
func UnmarshalUpdateChatPosition(data json.RawMessage) (*UpdateChatPosition, error)
func (*UpdateChatPosition) GetClass ¶
func (*UpdateChatPosition) GetClass() string
func (*UpdateChatPosition) GetType ¶
func (*UpdateChatPosition) GetType() string
func (*UpdateChatPosition) MarshalJSON ¶
func (entity *UpdateChatPosition) MarshalJSON() ([]byte, error)
func (*UpdateChatPosition) UpdateType ¶
func (*UpdateChatPosition) UpdateType() string
type UpdateChatReadInbox ¶
type UpdateChatReadInbox struct { // Chat identifier ChatId int64 `json:"chat_id"` // Identifier of the last read incoming message LastReadInboxMessageId int64 `json:"last_read_inbox_message_id"` // The number of unread messages left in the chat UnreadCount int32 `json:"unread_count"` // contains filtered or unexported fields }
Incoming messages were read or the number of unread messages has been changed
func UnmarshalUpdateChatReadInbox ¶
func UnmarshalUpdateChatReadInbox(data json.RawMessage) (*UpdateChatReadInbox, error)
func (*UpdateChatReadInbox) GetClass ¶
func (*UpdateChatReadInbox) GetClass() string
func (*UpdateChatReadInbox) GetType ¶
func (*UpdateChatReadInbox) GetType() string
func (*UpdateChatReadInbox) MarshalJSON ¶
func (entity *UpdateChatReadInbox) MarshalJSON() ([]byte, error)
func (*UpdateChatReadInbox) UpdateType ¶
func (*UpdateChatReadInbox) UpdateType() string
type UpdateChatReadOutbox ¶
type UpdateChatReadOutbox struct { // Chat identifier ChatId int64 `json:"chat_id"` // Identifier of last read outgoing message LastReadOutboxMessageId int64 `json:"last_read_outbox_message_id"` // contains filtered or unexported fields }
Outgoing messages were read
func UnmarshalUpdateChatReadOutbox ¶
func UnmarshalUpdateChatReadOutbox(data json.RawMessage) (*UpdateChatReadOutbox, error)
func (*UpdateChatReadOutbox) GetClass ¶
func (*UpdateChatReadOutbox) GetClass() string
func (*UpdateChatReadOutbox) GetType ¶
func (*UpdateChatReadOutbox) GetType() string
func (*UpdateChatReadOutbox) MarshalJSON ¶
func (entity *UpdateChatReadOutbox) MarshalJSON() ([]byte, error)
func (*UpdateChatReadOutbox) UpdateType ¶
func (*UpdateChatReadOutbox) UpdateType() string
type UpdateChatReplyMarkup ¶
type UpdateChatReplyMarkup struct { // Chat identifier ChatId int64 `json:"chat_id"` // Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat ReplyMarkupMessageId int64 `json:"reply_markup_message_id"` // contains filtered or unexported fields }
The default chat reply markup was changed. Can occur because new messages with reply markup were received or because an old reply markup was hidden by the user
func UnmarshalUpdateChatReplyMarkup ¶
func UnmarshalUpdateChatReplyMarkup(data json.RawMessage) (*UpdateChatReplyMarkup, error)
func (*UpdateChatReplyMarkup) GetClass ¶
func (*UpdateChatReplyMarkup) GetClass() string
func (*UpdateChatReplyMarkup) GetType ¶
func (*UpdateChatReplyMarkup) GetType() string
func (*UpdateChatReplyMarkup) MarshalJSON ¶
func (entity *UpdateChatReplyMarkup) MarshalJSON() ([]byte, error)
func (*UpdateChatReplyMarkup) UpdateType ¶
func (*UpdateChatReplyMarkup) UpdateType() string
type UpdateChatTheme ¶
type UpdateChatTheme struct { // Chat identifier ChatId int64 `json:"chat_id"` // The new name of the chat theme; may be empty if theme was reset to default ThemeName string `json:"theme_name"` // contains filtered or unexported fields }
The chat theme was changed
func UnmarshalUpdateChatTheme ¶
func UnmarshalUpdateChatTheme(data json.RawMessage) (*UpdateChatTheme, error)
func (*UpdateChatTheme) GetClass ¶
func (*UpdateChatTheme) GetClass() string
func (*UpdateChatTheme) GetType ¶
func (*UpdateChatTheme) GetType() string
func (*UpdateChatTheme) MarshalJSON ¶
func (entity *UpdateChatTheme) MarshalJSON() ([]byte, error)
func (*UpdateChatTheme) UpdateType ¶
func (*UpdateChatTheme) UpdateType() string
type UpdateChatThemes ¶
type UpdateChatThemes struct { // The new list of chat themes ChatThemes []*ChatTheme `json:"chat_themes"` // contains filtered or unexported fields }
The list of available chat themes has changed
func UnmarshalUpdateChatThemes ¶
func UnmarshalUpdateChatThemes(data json.RawMessage) (*UpdateChatThemes, error)
func (*UpdateChatThemes) GetClass ¶
func (*UpdateChatThemes) GetClass() string
func (*UpdateChatThemes) GetType ¶
func (*UpdateChatThemes) GetType() string
func (*UpdateChatThemes) MarshalJSON ¶
func (entity *UpdateChatThemes) MarshalJSON() ([]byte, error)
func (*UpdateChatThemes) UpdateType ¶
func (*UpdateChatThemes) UpdateType() string
type UpdateChatTitle ¶
type UpdateChatTitle struct { // Chat identifier ChatId int64 `json:"chat_id"` // The new chat title Title string `json:"title"` // contains filtered or unexported fields }
The title of a chat was changed
func UnmarshalUpdateChatTitle ¶
func UnmarshalUpdateChatTitle(data json.RawMessage) (*UpdateChatTitle, error)
func (*UpdateChatTitle) GetClass ¶
func (*UpdateChatTitle) GetClass() string
func (*UpdateChatTitle) GetType ¶
func (*UpdateChatTitle) GetType() string
func (*UpdateChatTitle) MarshalJSON ¶
func (entity *UpdateChatTitle) MarshalJSON() ([]byte, error)
func (*UpdateChatTitle) UpdateType ¶
func (*UpdateChatTitle) UpdateType() string
type UpdateChatUnreadMentionCount ¶
type UpdateChatUnreadMentionCount struct { // Chat identifier ChatId int64 `json:"chat_id"` // The number of unread mention messages left in the chat UnreadMentionCount int32 `json:"unread_mention_count"` // contains filtered or unexported fields }
The chat unread_mention_count has changed
func UnmarshalUpdateChatUnreadMentionCount ¶
func UnmarshalUpdateChatUnreadMentionCount(data json.RawMessage) (*UpdateChatUnreadMentionCount, error)
func (*UpdateChatUnreadMentionCount) GetClass ¶
func (*UpdateChatUnreadMentionCount) GetClass() string
func (*UpdateChatUnreadMentionCount) GetType ¶
func (*UpdateChatUnreadMentionCount) GetType() string
func (*UpdateChatUnreadMentionCount) MarshalJSON ¶
func (entity *UpdateChatUnreadMentionCount) MarshalJSON() ([]byte, error)
func (*UpdateChatUnreadMentionCount) UpdateType ¶
func (*UpdateChatUnreadMentionCount) UpdateType() string
type UpdateChatUnreadReactionCount ¶ added in v1.0.6
type UpdateChatUnreadReactionCount struct { // Chat identifier ChatId int64 `json:"chat_id"` // The number of messages with unread reactions left in the chat UnreadReactionCount int32 `json:"unread_reaction_count"` // contains filtered or unexported fields }
The chat unread_reaction_count has changed
func UnmarshalUpdateChatUnreadReactionCount ¶ added in v1.0.6
func UnmarshalUpdateChatUnreadReactionCount(data json.RawMessage) (*UpdateChatUnreadReactionCount, error)
func (*UpdateChatUnreadReactionCount) GetClass ¶ added in v1.0.6
func (*UpdateChatUnreadReactionCount) GetClass() string
func (*UpdateChatUnreadReactionCount) GetType ¶ added in v1.0.6
func (*UpdateChatUnreadReactionCount) GetType() string
func (*UpdateChatUnreadReactionCount) MarshalJSON ¶ added in v1.0.6
func (entity *UpdateChatUnreadReactionCount) MarshalJSON() ([]byte, error)
func (*UpdateChatUnreadReactionCount) UpdateType ¶ added in v1.0.6
func (*UpdateChatUnreadReactionCount) UpdateType() string
type UpdateChatVideoChat ¶
type UpdateChatVideoChat struct { // Chat identifier ChatId int64 `json:"chat_id"` // New value of video_chat VideoChat *VideoChat `json:"video_chat"` // contains filtered or unexported fields }
A chat video chat state has changed
func UnmarshalUpdateChatVideoChat ¶
func UnmarshalUpdateChatVideoChat(data json.RawMessage) (*UpdateChatVideoChat, error)
func (*UpdateChatVideoChat) GetClass ¶
func (*UpdateChatVideoChat) GetClass() string
func (*UpdateChatVideoChat) GetType ¶
func (*UpdateChatVideoChat) GetType() string
func (*UpdateChatVideoChat) MarshalJSON ¶
func (entity *UpdateChatVideoChat) MarshalJSON() ([]byte, error)
func (*UpdateChatVideoChat) UpdateType ¶
func (*UpdateChatVideoChat) UpdateType() string
type UpdateConnectionState ¶
type UpdateConnectionState struct { // The new connection state State ConnectionState `json:"state"` // contains filtered or unexported fields }
The connection state has changed. This update must be used only to show a human-readable description of the connection state
func UnmarshalUpdateConnectionState ¶
func UnmarshalUpdateConnectionState(data json.RawMessage) (*UpdateConnectionState, error)
func (*UpdateConnectionState) GetClass ¶
func (*UpdateConnectionState) GetClass() string
func (*UpdateConnectionState) GetType ¶
func (*UpdateConnectionState) GetType() string
func (*UpdateConnectionState) MarshalJSON ¶
func (entity *UpdateConnectionState) MarshalJSON() ([]byte, error)
func (*UpdateConnectionState) UnmarshalJSON ¶
func (updateConnectionState *UpdateConnectionState) UnmarshalJSON(data []byte) error
func (*UpdateConnectionState) UpdateType ¶
func (*UpdateConnectionState) UpdateType() string
type UpdateDefaultReactionType ¶ added in v1.2.3
type UpdateDefaultReactionType struct { // The new type of the default reaction ReactionType ReactionType `json:"reaction_type"` // contains filtered or unexported fields }
The type of default reaction has changed
func UnmarshalUpdateDefaultReactionType ¶ added in v1.2.3
func UnmarshalUpdateDefaultReactionType(data json.RawMessage) (*UpdateDefaultReactionType, error)
func (*UpdateDefaultReactionType) GetClass ¶ added in v1.2.3
func (*UpdateDefaultReactionType) GetClass() string
func (*UpdateDefaultReactionType) GetType ¶ added in v1.2.3
func (*UpdateDefaultReactionType) GetType() string
func (*UpdateDefaultReactionType) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateDefaultReactionType) MarshalJSON() ([]byte, error)
func (*UpdateDefaultReactionType) UnmarshalJSON ¶ added in v1.2.3
func (updateDefaultReactionType *UpdateDefaultReactionType) UnmarshalJSON(data []byte) error
func (*UpdateDefaultReactionType) UpdateType ¶ added in v1.2.3
func (*UpdateDefaultReactionType) UpdateType() string
type UpdateDeleteMessages ¶
type UpdateDeleteMessages struct { // Chat identifier ChatId int64 `json:"chat_id"` // Identifiers of the deleted messages MessageIds []int64 `json:"message_ids"` // True, if the messages are permanently deleted by a user (as opposed to just becoming inaccessible) IsPermanent bool `json:"is_permanent"` // True, if the messages are deleted only from the cache and can possibly be retrieved again in the future FromCache bool `json:"from_cache"` // contains filtered or unexported fields }
Some messages were deleted
func UnmarshalUpdateDeleteMessages ¶
func UnmarshalUpdateDeleteMessages(data json.RawMessage) (*UpdateDeleteMessages, error)
func (*UpdateDeleteMessages) GetClass ¶
func (*UpdateDeleteMessages) GetClass() string
func (*UpdateDeleteMessages) GetType ¶
func (*UpdateDeleteMessages) GetType() string
func (*UpdateDeleteMessages) MarshalJSON ¶
func (entity *UpdateDeleteMessages) MarshalJSON() ([]byte, error)
func (*UpdateDeleteMessages) UpdateType ¶
func (*UpdateDeleteMessages) UpdateType() string
type UpdateDiceEmojis ¶
type UpdateDiceEmojis struct { // The new list of supported dice emojis Emojis []string `json:"emojis"` // contains filtered or unexported fields }
The list of supported dice emojis has changed
func UnmarshalUpdateDiceEmojis ¶
func UnmarshalUpdateDiceEmojis(data json.RawMessage) (*UpdateDiceEmojis, error)
func (*UpdateDiceEmojis) GetClass ¶
func (*UpdateDiceEmojis) GetClass() string
func (*UpdateDiceEmojis) GetType ¶
func (*UpdateDiceEmojis) GetType() string
func (*UpdateDiceEmojis) MarshalJSON ¶
func (entity *UpdateDiceEmojis) MarshalJSON() ([]byte, error)
func (*UpdateDiceEmojis) UpdateType ¶
func (*UpdateDiceEmojis) UpdateType() string
type UpdateFavoriteStickers ¶
type UpdateFavoriteStickers struct { // The new list of file identifiers of favorite stickers StickerIds []int32 `json:"sticker_ids"` // contains filtered or unexported fields }
The list of favorite stickers was updated
func UnmarshalUpdateFavoriteStickers ¶
func UnmarshalUpdateFavoriteStickers(data json.RawMessage) (*UpdateFavoriteStickers, error)
func (*UpdateFavoriteStickers) GetClass ¶
func (*UpdateFavoriteStickers) GetClass() string
func (*UpdateFavoriteStickers) GetType ¶
func (*UpdateFavoriteStickers) GetType() string
func (*UpdateFavoriteStickers) MarshalJSON ¶
func (entity *UpdateFavoriteStickers) MarshalJSON() ([]byte, error)
func (*UpdateFavoriteStickers) UpdateType ¶
func (*UpdateFavoriteStickers) UpdateType() string
type UpdateFile ¶
type UpdateFile struct { // New data about the file File *File `json:"file"` // contains filtered or unexported fields }
Information about a file was updated
func UnmarshalUpdateFile ¶
func UnmarshalUpdateFile(data json.RawMessage) (*UpdateFile, error)
func (*UpdateFile) GetClass ¶
func (*UpdateFile) GetClass() string
func (*UpdateFile) GetType ¶
func (*UpdateFile) GetType() string
func (*UpdateFile) MarshalJSON ¶
func (entity *UpdateFile) MarshalJSON() ([]byte, error)
func (*UpdateFile) UpdateType ¶
func (*UpdateFile) UpdateType() string
type UpdateFileAddedToDownloads ¶ added in v1.0.6
type UpdateFileAddedToDownloads struct { // The added file download FileDownload *FileDownload `json:"file_download"` // New number of being downloaded and recently downloaded files found Counts *DownloadedFileCounts `json:"counts"` // contains filtered or unexported fields }
A file was added to the file download list. This update is sent only after file download list is loaded for the first time
func UnmarshalUpdateFileAddedToDownloads ¶ added in v1.0.6
func UnmarshalUpdateFileAddedToDownloads(data json.RawMessage) (*UpdateFileAddedToDownloads, error)
func (*UpdateFileAddedToDownloads) GetClass ¶ added in v1.0.6
func (*UpdateFileAddedToDownloads) GetClass() string
func (*UpdateFileAddedToDownloads) GetType ¶ added in v1.0.6
func (*UpdateFileAddedToDownloads) GetType() string
func (*UpdateFileAddedToDownloads) MarshalJSON ¶ added in v1.0.6
func (entity *UpdateFileAddedToDownloads) MarshalJSON() ([]byte, error)
func (*UpdateFileAddedToDownloads) UpdateType ¶ added in v1.0.6
func (*UpdateFileAddedToDownloads) UpdateType() string
type UpdateFileDownload ¶ added in v1.0.6
type UpdateFileDownload struct { // File identifier FileId int32 `json:"file_id"` // Point in time (Unix timestamp) when the file downloading was completed; 0 if the file downloading isn't completed CompleteDate int32 `json:"complete_date"` // True, if downloading of the file is paused IsPaused bool `json:"is_paused"` // New number of being downloaded and recently downloaded files found Counts *DownloadedFileCounts `json:"counts"` // contains filtered or unexported fields }
A file download was changed. This update is sent only after file download list is loaded for the first time
func UnmarshalUpdateFileDownload ¶ added in v1.0.6
func UnmarshalUpdateFileDownload(data json.RawMessage) (*UpdateFileDownload, error)
func (*UpdateFileDownload) GetClass ¶ added in v1.0.6
func (*UpdateFileDownload) GetClass() string
func (*UpdateFileDownload) GetType ¶ added in v1.0.6
func (*UpdateFileDownload) GetType() string
func (*UpdateFileDownload) MarshalJSON ¶ added in v1.0.6
func (entity *UpdateFileDownload) MarshalJSON() ([]byte, error)
func (*UpdateFileDownload) UpdateType ¶ added in v1.0.6
func (*UpdateFileDownload) UpdateType() string
type UpdateFileDownloads ¶ added in v1.0.6
type UpdateFileDownloads struct { // Total size of files in the file download list, in bytes TotalSize int64 `json:"total_size"` // Total number of files in the file download list TotalCount int32 `json:"total_count"` // Total downloaded size of files in the file download list, in bytes DownloadedSize int64 `json:"downloaded_size"` // contains filtered or unexported fields }
The state of the file download list has changed
func UnmarshalUpdateFileDownloads ¶ added in v1.0.6
func UnmarshalUpdateFileDownloads(data json.RawMessage) (*UpdateFileDownloads, error)
func (*UpdateFileDownloads) GetClass ¶ added in v1.0.6
func (*UpdateFileDownloads) GetClass() string
func (*UpdateFileDownloads) GetType ¶ added in v1.0.6
func (*UpdateFileDownloads) GetType() string
func (*UpdateFileDownloads) MarshalJSON ¶ added in v1.0.6
func (entity *UpdateFileDownloads) MarshalJSON() ([]byte, error)
func (*UpdateFileDownloads) UpdateType ¶ added in v1.0.6
func (*UpdateFileDownloads) UpdateType() string
type UpdateFileGenerationStart ¶
type UpdateFileGenerationStart struct { // Unique identifier for the generation process GenerationId JsonInt64 `json:"generation_id"` // The path to a file from which a new file is generated; may be empty OriginalPath string `json:"original_path"` // The path to a file that must be created and where the new file is generated DestinationPath string `json:"destination_path"` // String specifying the conversion applied to the original file. If conversion is "#url#" than original_path contains an HTTP/HTTPS URL of a file, which must be downloaded by the application Conversion string `json:"conversion"` // contains filtered or unexported fields }
The file generation process needs to be started by the application
func UnmarshalUpdateFileGenerationStart ¶
func UnmarshalUpdateFileGenerationStart(data json.RawMessage) (*UpdateFileGenerationStart, error)
func (*UpdateFileGenerationStart) GetClass ¶
func (*UpdateFileGenerationStart) GetClass() string
func (*UpdateFileGenerationStart) GetType ¶
func (*UpdateFileGenerationStart) GetType() string
func (*UpdateFileGenerationStart) MarshalJSON ¶
func (entity *UpdateFileGenerationStart) MarshalJSON() ([]byte, error)
func (*UpdateFileGenerationStart) UpdateType ¶
func (*UpdateFileGenerationStart) UpdateType() string
type UpdateFileGenerationStop ¶
type UpdateFileGenerationStop struct { // Unique identifier for the generation process GenerationId JsonInt64 `json:"generation_id"` // contains filtered or unexported fields }
File generation is no longer needed
func UnmarshalUpdateFileGenerationStop ¶
func UnmarshalUpdateFileGenerationStop(data json.RawMessage) (*UpdateFileGenerationStop, error)
func (*UpdateFileGenerationStop) GetClass ¶
func (*UpdateFileGenerationStop) GetClass() string
func (*UpdateFileGenerationStop) GetType ¶
func (*UpdateFileGenerationStop) GetType() string
func (*UpdateFileGenerationStop) MarshalJSON ¶
func (entity *UpdateFileGenerationStop) MarshalJSON() ([]byte, error)
func (*UpdateFileGenerationStop) UpdateType ¶
func (*UpdateFileGenerationStop) UpdateType() string
type UpdateFileRemovedFromDownloads ¶ added in v1.0.6
type UpdateFileRemovedFromDownloads struct { // File identifier FileId int32 `json:"file_id"` // New number of being downloaded and recently downloaded files found Counts *DownloadedFileCounts `json:"counts"` // contains filtered or unexported fields }
A file was removed from the file download list. This update is sent only after file download list is loaded for the first time
func UnmarshalUpdateFileRemovedFromDownloads ¶ added in v1.0.6
func UnmarshalUpdateFileRemovedFromDownloads(data json.RawMessage) (*UpdateFileRemovedFromDownloads, error)
func (*UpdateFileRemovedFromDownloads) GetClass ¶ added in v1.0.6
func (*UpdateFileRemovedFromDownloads) GetClass() string
func (*UpdateFileRemovedFromDownloads) GetType ¶ added in v1.0.6
func (*UpdateFileRemovedFromDownloads) GetType() string
func (*UpdateFileRemovedFromDownloads) MarshalJSON ¶ added in v1.0.6
func (entity *UpdateFileRemovedFromDownloads) MarshalJSON() ([]byte, error)
func (*UpdateFileRemovedFromDownloads) UpdateType ¶ added in v1.0.6
func (*UpdateFileRemovedFromDownloads) UpdateType() string
type UpdateForumTopicInfo ¶ added in v1.2.3
type UpdateForumTopicInfo struct { // Chat identifier ChatId int64 `json:"chat_id"` // New information about the topic Info *ForumTopicInfo `json:"info"` // contains filtered or unexported fields }
Basic information about a topic in a forum chat was changed
func UnmarshalUpdateForumTopicInfo ¶ added in v1.2.3
func UnmarshalUpdateForumTopicInfo(data json.RawMessage) (*UpdateForumTopicInfo, error)
func (*UpdateForumTopicInfo) GetClass ¶ added in v1.2.3
func (*UpdateForumTopicInfo) GetClass() string
func (*UpdateForumTopicInfo) GetType ¶ added in v1.2.3
func (*UpdateForumTopicInfo) GetType() string
func (*UpdateForumTopicInfo) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateForumTopicInfo) MarshalJSON() ([]byte, error)
func (*UpdateForumTopicInfo) UpdateType ¶ added in v1.2.3
func (*UpdateForumTopicInfo) UpdateType() string
type UpdateGroupCall ¶
type UpdateGroupCall struct { // New data about a group call GroupCall *GroupCall `json:"group_call"` // contains filtered or unexported fields }
Information about a group call was updated
func UnmarshalUpdateGroupCall ¶
func UnmarshalUpdateGroupCall(data json.RawMessage) (*UpdateGroupCall, error)
func (*UpdateGroupCall) GetClass ¶
func (*UpdateGroupCall) GetClass() string
func (*UpdateGroupCall) GetType ¶
func (*UpdateGroupCall) GetType() string
func (*UpdateGroupCall) MarshalJSON ¶
func (entity *UpdateGroupCall) MarshalJSON() ([]byte, error)
func (*UpdateGroupCall) UpdateType ¶
func (*UpdateGroupCall) UpdateType() string
type UpdateGroupCallParticipant ¶
type UpdateGroupCallParticipant struct { // Identifier of group call GroupCallId int32 `json:"group_call_id"` // New data about a participant Participant *GroupCallParticipant `json:"participant"` // contains filtered or unexported fields }
Information about a group call participant was changed. The updates are sent only after the group call is received through getGroupCall and only if the call is joined or being joined
func UnmarshalUpdateGroupCallParticipant ¶
func UnmarshalUpdateGroupCallParticipant(data json.RawMessage) (*UpdateGroupCallParticipant, error)
func (*UpdateGroupCallParticipant) GetClass ¶
func (*UpdateGroupCallParticipant) GetClass() string
func (*UpdateGroupCallParticipant) GetType ¶
func (*UpdateGroupCallParticipant) GetType() string
func (*UpdateGroupCallParticipant) MarshalJSON ¶
func (entity *UpdateGroupCallParticipant) MarshalJSON() ([]byte, error)
func (*UpdateGroupCallParticipant) UpdateType ¶
func (*UpdateGroupCallParticipant) UpdateType() string
type UpdateHavePendingNotifications ¶
type UpdateHavePendingNotifications struct { // True, if there are some delayed notification updates, which will be sent soon HaveDelayedNotifications bool `json:"have_delayed_notifications"` // True, if there can be some yet unreceived notifications, which are being fetched from the server HaveUnreceivedNotifications bool `json:"have_unreceived_notifications"` // contains filtered or unexported fields }
Describes whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications
func UnmarshalUpdateHavePendingNotifications ¶
func UnmarshalUpdateHavePendingNotifications(data json.RawMessage) (*UpdateHavePendingNotifications, error)
func (*UpdateHavePendingNotifications) GetClass ¶
func (*UpdateHavePendingNotifications) GetClass() string
func (*UpdateHavePendingNotifications) GetType ¶
func (*UpdateHavePendingNotifications) GetType() string
func (*UpdateHavePendingNotifications) MarshalJSON ¶
func (entity *UpdateHavePendingNotifications) MarshalJSON() ([]byte, error)
func (*UpdateHavePendingNotifications) UpdateType ¶
func (*UpdateHavePendingNotifications) UpdateType() string
type UpdateInstalledStickerSets ¶
type UpdateInstalledStickerSets struct { // Type of the affected stickers StickerType StickerType `json:"sticker_type"` // The new list of installed ordinary sticker sets StickerSetIds []JsonInt64 `json:"sticker_set_ids"` // contains filtered or unexported fields }
The list of installed sticker sets was updated
func UnmarshalUpdateInstalledStickerSets ¶
func UnmarshalUpdateInstalledStickerSets(data json.RawMessage) (*UpdateInstalledStickerSets, error)
func (*UpdateInstalledStickerSets) GetClass ¶
func (*UpdateInstalledStickerSets) GetClass() string
func (*UpdateInstalledStickerSets) GetType ¶
func (*UpdateInstalledStickerSets) GetType() string
func (*UpdateInstalledStickerSets) MarshalJSON ¶
func (entity *UpdateInstalledStickerSets) MarshalJSON() ([]byte, error)
func (*UpdateInstalledStickerSets) UnmarshalJSON ¶ added in v1.2.3
func (updateInstalledStickerSets *UpdateInstalledStickerSets) UnmarshalJSON(data []byte) error
func (*UpdateInstalledStickerSets) UpdateType ¶
func (*UpdateInstalledStickerSets) UpdateType() string
type UpdateLanguagePackStrings ¶
type UpdateLanguagePackStrings struct { // Localization target to which the language pack belongs LocalizationTarget string `json:"localization_target"` // Identifier of the updated language pack LanguagePackId string `json:"language_pack_id"` // List of changed language pack strings; empty if all strings have changed Strings []*LanguagePackString `json:"strings"` // contains filtered or unexported fields }
Some language pack strings have been updated
func UnmarshalUpdateLanguagePackStrings ¶
func UnmarshalUpdateLanguagePackStrings(data json.RawMessage) (*UpdateLanguagePackStrings, error)
func (*UpdateLanguagePackStrings) GetClass ¶
func (*UpdateLanguagePackStrings) GetClass() string
func (*UpdateLanguagePackStrings) GetType ¶
func (*UpdateLanguagePackStrings) GetType() string
func (*UpdateLanguagePackStrings) MarshalJSON ¶
func (entity *UpdateLanguagePackStrings) MarshalJSON() ([]byte, error)
func (*UpdateLanguagePackStrings) UpdateType ¶
func (*UpdateLanguagePackStrings) UpdateType() string
type UpdateMessageContent ¶
type UpdateMessageContent struct { // Chat identifier ChatId int64 `json:"chat_id"` // Message identifier MessageId int64 `json:"message_id"` // New message content NewContent MessageContent `json:"new_content"` // contains filtered or unexported fields }
The message content has changed
func UnmarshalUpdateMessageContent ¶
func UnmarshalUpdateMessageContent(data json.RawMessage) (*UpdateMessageContent, error)
func (*UpdateMessageContent) GetClass ¶
func (*UpdateMessageContent) GetClass() string
func (*UpdateMessageContent) GetType ¶
func (*UpdateMessageContent) GetType() string
func (*UpdateMessageContent) MarshalJSON ¶
func (entity *UpdateMessageContent) MarshalJSON() ([]byte, error)
func (*UpdateMessageContent) UnmarshalJSON ¶
func (updateMessageContent *UpdateMessageContent) UnmarshalJSON(data []byte) error
func (*UpdateMessageContent) UpdateType ¶
func (*UpdateMessageContent) UpdateType() string
type UpdateMessageContentOpened ¶
type UpdateMessageContentOpened struct { // Chat identifier ChatId int64 `json:"chat_id"` // Message identifier MessageId int64 `json:"message_id"` // contains filtered or unexported fields }
The message content was opened. Updates voice note messages to "listened", video note messages to "viewed" and starts the self-destruct timer
func UnmarshalUpdateMessageContentOpened ¶
func UnmarshalUpdateMessageContentOpened(data json.RawMessage) (*UpdateMessageContentOpened, error)
func (*UpdateMessageContentOpened) GetClass ¶
func (*UpdateMessageContentOpened) GetClass() string
func (*UpdateMessageContentOpened) GetType ¶
func (*UpdateMessageContentOpened) GetType() string
func (*UpdateMessageContentOpened) MarshalJSON ¶
func (entity *UpdateMessageContentOpened) MarshalJSON() ([]byte, error)
func (*UpdateMessageContentOpened) UpdateType ¶
func (*UpdateMessageContentOpened) UpdateType() string
type UpdateMessageEdited ¶
type UpdateMessageEdited struct { // Chat identifier ChatId int64 `json:"chat_id"` // Message identifier MessageId int64 `json:"message_id"` // Point in time (Unix timestamp) when the message was edited EditDate int32 `json:"edit_date"` // New message reply markup; may be null ReplyMarkup ReplyMarkup `json:"reply_markup"` // contains filtered or unexported fields }
A message was edited. Changes in the message content will come in a separate updateMessageContent
func UnmarshalUpdateMessageEdited ¶
func UnmarshalUpdateMessageEdited(data json.RawMessage) (*UpdateMessageEdited, error)
func (*UpdateMessageEdited) GetClass ¶
func (*UpdateMessageEdited) GetClass() string
func (*UpdateMessageEdited) GetType ¶
func (*UpdateMessageEdited) GetType() string
func (*UpdateMessageEdited) MarshalJSON ¶
func (entity *UpdateMessageEdited) MarshalJSON() ([]byte, error)
func (*UpdateMessageEdited) UnmarshalJSON ¶
func (updateMessageEdited *UpdateMessageEdited) UnmarshalJSON(data []byte) error
func (*UpdateMessageEdited) UpdateType ¶
func (*UpdateMessageEdited) UpdateType() string
type UpdateMessageInteractionInfo ¶
type UpdateMessageInteractionInfo struct { // Chat identifier ChatId int64 `json:"chat_id"` // Message identifier MessageId int64 `json:"message_id"` // New information about interactions with the message; may be null InteractionInfo *MessageInteractionInfo `json:"interaction_info"` // contains filtered or unexported fields }
The information about interactions with a message has changed
func UnmarshalUpdateMessageInteractionInfo ¶
func UnmarshalUpdateMessageInteractionInfo(data json.RawMessage) (*UpdateMessageInteractionInfo, error)
func (*UpdateMessageInteractionInfo) GetClass ¶
func (*UpdateMessageInteractionInfo) GetClass() string
func (*UpdateMessageInteractionInfo) GetType ¶
func (*UpdateMessageInteractionInfo) GetType() string
func (*UpdateMessageInteractionInfo) MarshalJSON ¶
func (entity *UpdateMessageInteractionInfo) MarshalJSON() ([]byte, error)
func (*UpdateMessageInteractionInfo) UpdateType ¶
func (*UpdateMessageInteractionInfo) UpdateType() string
type UpdateMessageIsPinned ¶
type UpdateMessageIsPinned struct { // Chat identifier ChatId int64 `json:"chat_id"` // The message identifier MessageId int64 `json:"message_id"` // True, if the message is pinned IsPinned bool `json:"is_pinned"` // contains filtered or unexported fields }
The message pinned state was changed
func UnmarshalUpdateMessageIsPinned ¶
func UnmarshalUpdateMessageIsPinned(data json.RawMessage) (*UpdateMessageIsPinned, error)
func (*UpdateMessageIsPinned) GetClass ¶
func (*UpdateMessageIsPinned) GetClass() string
func (*UpdateMessageIsPinned) GetType ¶
func (*UpdateMessageIsPinned) GetType() string
func (*UpdateMessageIsPinned) MarshalJSON ¶
func (entity *UpdateMessageIsPinned) MarshalJSON() ([]byte, error)
func (*UpdateMessageIsPinned) UpdateType ¶
func (*UpdateMessageIsPinned) UpdateType() string
type UpdateMessageLiveLocationViewed ¶
type UpdateMessageLiveLocationViewed struct { // Identifier of the chat with the live location message ChatId int64 `json:"chat_id"` // Identifier of the message with live location MessageId int64 `json:"message_id"` // contains filtered or unexported fields }
A message with a live location was viewed. When the update is received, the application is supposed to update the live location
func UnmarshalUpdateMessageLiveLocationViewed ¶
func UnmarshalUpdateMessageLiveLocationViewed(data json.RawMessage) (*UpdateMessageLiveLocationViewed, error)
func (*UpdateMessageLiveLocationViewed) GetClass ¶
func (*UpdateMessageLiveLocationViewed) GetClass() string
func (*UpdateMessageLiveLocationViewed) GetType ¶
func (*UpdateMessageLiveLocationViewed) GetType() string
func (*UpdateMessageLiveLocationViewed) MarshalJSON ¶
func (entity *UpdateMessageLiveLocationViewed) MarshalJSON() ([]byte, error)
func (*UpdateMessageLiveLocationViewed) UpdateType ¶
func (*UpdateMessageLiveLocationViewed) UpdateType() string
type UpdateMessageMentionRead ¶
type UpdateMessageMentionRead struct { // Chat identifier ChatId int64 `json:"chat_id"` // Message identifier MessageId int64 `json:"message_id"` // The new number of unread mention messages left in the chat UnreadMentionCount int32 `json:"unread_mention_count"` // contains filtered or unexported fields }
A message with an unread mention was read
func UnmarshalUpdateMessageMentionRead ¶
func UnmarshalUpdateMessageMentionRead(data json.RawMessage) (*UpdateMessageMentionRead, error)
func (*UpdateMessageMentionRead) GetClass ¶
func (*UpdateMessageMentionRead) GetClass() string
func (*UpdateMessageMentionRead) GetType ¶
func (*UpdateMessageMentionRead) GetType() string
func (*UpdateMessageMentionRead) MarshalJSON ¶
func (entity *UpdateMessageMentionRead) MarshalJSON() ([]byte, error)
func (*UpdateMessageMentionRead) UpdateType ¶
func (*UpdateMessageMentionRead) UpdateType() string
type UpdateMessageSendAcknowledged ¶
type UpdateMessageSendAcknowledged struct { // The chat identifier of the sent message ChatId int64 `json:"chat_id"` // A temporary message identifier MessageId int64 `json:"message_id"` // contains filtered or unexported fields }
A request to send a message has reached the Telegram server. This doesn't mean that the message will be sent successfully or even that the send message request will be processed. This update will be sent only if the option "use_quick_ack" is set to true. This update may be sent multiple times for the same message
func UnmarshalUpdateMessageSendAcknowledged ¶
func UnmarshalUpdateMessageSendAcknowledged(data json.RawMessage) (*UpdateMessageSendAcknowledged, error)
func (*UpdateMessageSendAcknowledged) GetClass ¶
func (*UpdateMessageSendAcknowledged) GetClass() string
func (*UpdateMessageSendAcknowledged) GetType ¶
func (*UpdateMessageSendAcknowledged) GetType() string
func (*UpdateMessageSendAcknowledged) MarshalJSON ¶
func (entity *UpdateMessageSendAcknowledged) MarshalJSON() ([]byte, error)
func (*UpdateMessageSendAcknowledged) UpdateType ¶
func (*UpdateMessageSendAcknowledged) UpdateType() string
type UpdateMessageSendFailed ¶
type UpdateMessageSendFailed struct { // The failed to send message Message *Message `json:"message"` // The previous temporary message identifier OldMessageId int64 `json:"old_message_id"` // An error code ErrorCode int32 `json:"error_code"` // Error message ErrorMessage string `json:"error_message"` // contains filtered or unexported fields }
A message failed to send. Be aware that some messages being sent can be irrecoverably deleted, in which case updateDeleteMessages will be received instead of this update
func UnmarshalUpdateMessageSendFailed ¶
func UnmarshalUpdateMessageSendFailed(data json.RawMessage) (*UpdateMessageSendFailed, error)
func (*UpdateMessageSendFailed) GetClass ¶
func (*UpdateMessageSendFailed) GetClass() string
func (*UpdateMessageSendFailed) GetType ¶
func (*UpdateMessageSendFailed) GetType() string
func (*UpdateMessageSendFailed) MarshalJSON ¶
func (entity *UpdateMessageSendFailed) MarshalJSON() ([]byte, error)
func (*UpdateMessageSendFailed) UpdateType ¶
func (*UpdateMessageSendFailed) UpdateType() string
type UpdateMessageSendSucceeded ¶
type UpdateMessageSendSucceeded struct { // The sent message. Usually only the message identifier, date, and content are changed, but almost all other fields can also change Message *Message `json:"message"` // The previous temporary message identifier OldMessageId int64 `json:"old_message_id"` // contains filtered or unexported fields }
A message has been successfully sent
func UnmarshalUpdateMessageSendSucceeded ¶
func UnmarshalUpdateMessageSendSucceeded(data json.RawMessage) (*UpdateMessageSendSucceeded, error)
func (*UpdateMessageSendSucceeded) GetClass ¶
func (*UpdateMessageSendSucceeded) GetClass() string
func (*UpdateMessageSendSucceeded) GetType ¶
func (*UpdateMessageSendSucceeded) GetType() string
func (*UpdateMessageSendSucceeded) MarshalJSON ¶
func (entity *UpdateMessageSendSucceeded) MarshalJSON() ([]byte, error)
func (*UpdateMessageSendSucceeded) UpdateType ¶
func (*UpdateMessageSendSucceeded) UpdateType() string
type UpdateMessageUnreadReactions ¶ added in v1.0.6
type UpdateMessageUnreadReactions struct { // Chat identifier ChatId int64 `json:"chat_id"` // Message identifier MessageId int64 `json:"message_id"` // The new list of unread reactions UnreadReactions []*UnreadReaction `json:"unread_reactions"` // The new number of messages with unread reactions left in the chat UnreadReactionCount int32 `json:"unread_reaction_count"` // contains filtered or unexported fields }
The list of unread reactions added to a message was changed
func UnmarshalUpdateMessageUnreadReactions ¶ added in v1.0.6
func UnmarshalUpdateMessageUnreadReactions(data json.RawMessage) (*UpdateMessageUnreadReactions, error)
func (*UpdateMessageUnreadReactions) GetClass ¶ added in v1.0.6
func (*UpdateMessageUnreadReactions) GetClass() string
func (*UpdateMessageUnreadReactions) GetType ¶ added in v1.0.6
func (*UpdateMessageUnreadReactions) GetType() string
func (*UpdateMessageUnreadReactions) MarshalJSON ¶ added in v1.0.6
func (entity *UpdateMessageUnreadReactions) MarshalJSON() ([]byte, error)
func (*UpdateMessageUnreadReactions) UpdateType ¶ added in v1.0.6
func (*UpdateMessageUnreadReactions) UpdateType() string
type UpdateNewCallSignalingData ¶
type UpdateNewCallSignalingData struct { // The call identifier CallId int32 `json:"call_id"` // The data Data []byte `json:"data"` // contains filtered or unexported fields }
New call signaling data arrived
func UnmarshalUpdateNewCallSignalingData ¶
func UnmarshalUpdateNewCallSignalingData(data json.RawMessage) (*UpdateNewCallSignalingData, error)
func (*UpdateNewCallSignalingData) GetClass ¶
func (*UpdateNewCallSignalingData) GetClass() string
func (*UpdateNewCallSignalingData) GetType ¶
func (*UpdateNewCallSignalingData) GetType() string
func (*UpdateNewCallSignalingData) MarshalJSON ¶
func (entity *UpdateNewCallSignalingData) MarshalJSON() ([]byte, error)
func (*UpdateNewCallSignalingData) UpdateType ¶
func (*UpdateNewCallSignalingData) UpdateType() string
type UpdateNewCallbackQuery ¶
type UpdateNewCallbackQuery struct { // Unique query identifier Id JsonInt64 `json:"id"` // Identifier of the user who sent the query SenderUserId int64 `json:"sender_user_id"` // Identifier of the chat where the query was sent ChatId int64 `json:"chat_id"` // Identifier of the message from which the query originated MessageId int64 `json:"message_id"` // Identifier that uniquely corresponds to the chat to which the message was sent ChatInstance JsonInt64 `json:"chat_instance"` // Query payload Payload CallbackQueryPayload `json:"payload"` // contains filtered or unexported fields }
A new incoming callback query; for bots only
func UnmarshalUpdateNewCallbackQuery ¶
func UnmarshalUpdateNewCallbackQuery(data json.RawMessage) (*UpdateNewCallbackQuery, error)
func (*UpdateNewCallbackQuery) GetClass ¶
func (*UpdateNewCallbackQuery) GetClass() string
func (*UpdateNewCallbackQuery) GetType ¶
func (*UpdateNewCallbackQuery) GetType() string
func (*UpdateNewCallbackQuery) MarshalJSON ¶
func (entity *UpdateNewCallbackQuery) MarshalJSON() ([]byte, error)
func (*UpdateNewCallbackQuery) UnmarshalJSON ¶
func (updateNewCallbackQuery *UpdateNewCallbackQuery) UnmarshalJSON(data []byte) error
func (*UpdateNewCallbackQuery) UpdateType ¶
func (*UpdateNewCallbackQuery) UpdateType() string
type UpdateNewChat ¶
type UpdateNewChat struct { // The chat Chat *Chat `json:"chat"` // contains filtered or unexported fields }
A new chat has been loaded/created. This update is guaranteed to come before the chat identifier is returned to the application. The chat field changes will be reported through separate updates
func UnmarshalUpdateNewChat ¶
func UnmarshalUpdateNewChat(data json.RawMessage) (*UpdateNewChat, error)
func (*UpdateNewChat) GetClass ¶
func (*UpdateNewChat) GetClass() string
func (*UpdateNewChat) GetType ¶
func (*UpdateNewChat) GetType() string
func (*UpdateNewChat) MarshalJSON ¶
func (entity *UpdateNewChat) MarshalJSON() ([]byte, error)
func (*UpdateNewChat) UpdateType ¶
func (*UpdateNewChat) UpdateType() string
type UpdateNewChatJoinRequest ¶
type UpdateNewChatJoinRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // Join request Request *ChatJoinRequest `json:"request"` // Chat identifier of the private chat with the user UserChatId int64 `json:"user_chat_id"` // The invite link, which was used to send join request; may be null InviteLink *ChatInviteLink `json:"invite_link"` // contains filtered or unexported fields }
A user sent a join request to a chat; for bots only
func UnmarshalUpdateNewChatJoinRequest ¶
func UnmarshalUpdateNewChatJoinRequest(data json.RawMessage) (*UpdateNewChatJoinRequest, error)
func (*UpdateNewChatJoinRequest) GetClass ¶
func (*UpdateNewChatJoinRequest) GetClass() string
func (*UpdateNewChatJoinRequest) GetType ¶
func (*UpdateNewChatJoinRequest) GetType() string
func (*UpdateNewChatJoinRequest) MarshalJSON ¶
func (entity *UpdateNewChatJoinRequest) MarshalJSON() ([]byte, error)
func (*UpdateNewChatJoinRequest) UpdateType ¶
func (*UpdateNewChatJoinRequest) UpdateType() string
type UpdateNewChosenInlineResult ¶
type UpdateNewChosenInlineResult struct { // Identifier of the user who sent the query SenderUserId int64 `json:"sender_user_id"` // User location; may be null UserLocation *Location `json:"user_location"` // Text of the query Query string `json:"query"` // Identifier of the chosen result ResultId string `json:"result_id"` // Identifier of the sent inline message, if known InlineMessageId string `json:"inline_message_id"` // contains filtered or unexported fields }
The user has chosen a result of an inline query; for bots only
func UnmarshalUpdateNewChosenInlineResult ¶
func UnmarshalUpdateNewChosenInlineResult(data json.RawMessage) (*UpdateNewChosenInlineResult, error)
func (*UpdateNewChosenInlineResult) GetClass ¶
func (*UpdateNewChosenInlineResult) GetClass() string
func (*UpdateNewChosenInlineResult) GetType ¶
func (*UpdateNewChosenInlineResult) GetType() string
func (*UpdateNewChosenInlineResult) MarshalJSON ¶
func (entity *UpdateNewChosenInlineResult) MarshalJSON() ([]byte, error)
func (*UpdateNewChosenInlineResult) UpdateType ¶
func (*UpdateNewChosenInlineResult) UpdateType() string
type UpdateNewCustomEvent ¶
type UpdateNewCustomEvent struct { // A JSON-serialized event Event string `json:"event"` // contains filtered or unexported fields }
A new incoming event; for bots only
func UnmarshalUpdateNewCustomEvent ¶
func UnmarshalUpdateNewCustomEvent(data json.RawMessage) (*UpdateNewCustomEvent, error)
func (*UpdateNewCustomEvent) GetClass ¶
func (*UpdateNewCustomEvent) GetClass() string
func (*UpdateNewCustomEvent) GetType ¶
func (*UpdateNewCustomEvent) GetType() string
func (*UpdateNewCustomEvent) MarshalJSON ¶
func (entity *UpdateNewCustomEvent) MarshalJSON() ([]byte, error)
func (*UpdateNewCustomEvent) UpdateType ¶
func (*UpdateNewCustomEvent) UpdateType() string
type UpdateNewCustomQuery ¶
type UpdateNewCustomQuery struct { // The query identifier Id JsonInt64 `json:"id"` // JSON-serialized query data Data string `json:"data"` // Query timeout Timeout int32 `json:"timeout"` // contains filtered or unexported fields }
A new incoming query; for bots only
func UnmarshalUpdateNewCustomQuery ¶
func UnmarshalUpdateNewCustomQuery(data json.RawMessage) (*UpdateNewCustomQuery, error)
func (*UpdateNewCustomQuery) GetClass ¶
func (*UpdateNewCustomQuery) GetClass() string
func (*UpdateNewCustomQuery) GetType ¶
func (*UpdateNewCustomQuery) GetType() string
func (*UpdateNewCustomQuery) MarshalJSON ¶
func (entity *UpdateNewCustomQuery) MarshalJSON() ([]byte, error)
func (*UpdateNewCustomQuery) UpdateType ¶
func (*UpdateNewCustomQuery) UpdateType() string
type UpdateNewInlineCallbackQuery ¶
type UpdateNewInlineCallbackQuery struct { // Unique query identifier Id JsonInt64 `json:"id"` // Identifier of the user who sent the query SenderUserId int64 `json:"sender_user_id"` // Identifier of the inline message from which the query originated InlineMessageId string `json:"inline_message_id"` // An identifier uniquely corresponding to the chat a message was sent to ChatInstance JsonInt64 `json:"chat_instance"` // Query payload Payload CallbackQueryPayload `json:"payload"` // contains filtered or unexported fields }
A new incoming callback query from a message sent via a bot; for bots only
func UnmarshalUpdateNewInlineCallbackQuery ¶
func UnmarshalUpdateNewInlineCallbackQuery(data json.RawMessage) (*UpdateNewInlineCallbackQuery, error)
func (*UpdateNewInlineCallbackQuery) GetClass ¶
func (*UpdateNewInlineCallbackQuery) GetClass() string
func (*UpdateNewInlineCallbackQuery) GetType ¶
func (*UpdateNewInlineCallbackQuery) GetType() string
func (*UpdateNewInlineCallbackQuery) MarshalJSON ¶
func (entity *UpdateNewInlineCallbackQuery) MarshalJSON() ([]byte, error)
func (*UpdateNewInlineCallbackQuery) UnmarshalJSON ¶
func (updateNewInlineCallbackQuery *UpdateNewInlineCallbackQuery) UnmarshalJSON(data []byte) error
func (*UpdateNewInlineCallbackQuery) UpdateType ¶
func (*UpdateNewInlineCallbackQuery) UpdateType() string
type UpdateNewInlineQuery ¶
type UpdateNewInlineQuery struct { // Unique query identifier Id JsonInt64 `json:"id"` // Identifier of the user who sent the query SenderUserId int64 `json:"sender_user_id"` // User location; may be null UserLocation *Location `json:"user_location"` // The type of the chat from which the query originated; may be null if unknown ChatType ChatType `json:"chat_type"` // Text of the query Query string `json:"query"` // Offset of the first entry to return Offset string `json:"offset"` // contains filtered or unexported fields }
A new incoming inline query; for bots only
func UnmarshalUpdateNewInlineQuery ¶
func UnmarshalUpdateNewInlineQuery(data json.RawMessage) (*UpdateNewInlineQuery, error)
func (*UpdateNewInlineQuery) GetClass ¶
func (*UpdateNewInlineQuery) GetClass() string
func (*UpdateNewInlineQuery) GetType ¶
func (*UpdateNewInlineQuery) GetType() string
func (*UpdateNewInlineQuery) MarshalJSON ¶
func (entity *UpdateNewInlineQuery) MarshalJSON() ([]byte, error)
func (*UpdateNewInlineQuery) UnmarshalJSON ¶
func (updateNewInlineQuery *UpdateNewInlineQuery) UnmarshalJSON(data []byte) error
func (*UpdateNewInlineQuery) UpdateType ¶
func (*UpdateNewInlineQuery) UpdateType() string
type UpdateNewMessage ¶
type UpdateNewMessage struct { // The new message Message *Message `json:"message"` // contains filtered or unexported fields }
A new message was received; can also be an outgoing message
func UnmarshalUpdateNewMessage ¶
func UnmarshalUpdateNewMessage(data json.RawMessage) (*UpdateNewMessage, error)
func (*UpdateNewMessage) GetClass ¶
func (*UpdateNewMessage) GetClass() string
func (*UpdateNewMessage) GetType ¶
func (*UpdateNewMessage) GetType() string
func (*UpdateNewMessage) MarshalJSON ¶
func (entity *UpdateNewMessage) MarshalJSON() ([]byte, error)
func (*UpdateNewMessage) UpdateType ¶
func (*UpdateNewMessage) UpdateType() string
type UpdateNewPreCheckoutQuery ¶
type UpdateNewPreCheckoutQuery struct { // Unique query identifier Id JsonInt64 `json:"id"` // Identifier of the user who sent the query SenderUserId int64 `json:"sender_user_id"` // Currency for the product price Currency string `json:"currency"` // Total price for the product, in the smallest units of the currency TotalAmount int64 `json:"total_amount"` // Invoice payload InvoicePayload []byte `json:"invoice_payload"` // Identifier of a shipping option chosen by the user; may be empty if not applicable ShippingOptionId string `json:"shipping_option_id"` // Information about the order; may be null OrderInfo *OrderInfo `json:"order_info"` // contains filtered or unexported fields }
A new incoming pre-checkout query; for bots only. Contains full information about a checkout
func UnmarshalUpdateNewPreCheckoutQuery ¶
func UnmarshalUpdateNewPreCheckoutQuery(data json.RawMessage) (*UpdateNewPreCheckoutQuery, error)
func (*UpdateNewPreCheckoutQuery) GetClass ¶
func (*UpdateNewPreCheckoutQuery) GetClass() string
func (*UpdateNewPreCheckoutQuery) GetType ¶
func (*UpdateNewPreCheckoutQuery) GetType() string
func (*UpdateNewPreCheckoutQuery) MarshalJSON ¶
func (entity *UpdateNewPreCheckoutQuery) MarshalJSON() ([]byte, error)
func (*UpdateNewPreCheckoutQuery) UpdateType ¶
func (*UpdateNewPreCheckoutQuery) UpdateType() string
type UpdateNewShippingQuery ¶
type UpdateNewShippingQuery struct { // Unique query identifier Id JsonInt64 `json:"id"` // Identifier of the user who sent the query SenderUserId int64 `json:"sender_user_id"` // Invoice payload InvoicePayload string `json:"invoice_payload"` // User shipping address ShippingAddress *Address `json:"shipping_address"` // contains filtered or unexported fields }
A new incoming shipping query; for bots only. Only for invoices with flexible price
func UnmarshalUpdateNewShippingQuery ¶
func UnmarshalUpdateNewShippingQuery(data json.RawMessage) (*UpdateNewShippingQuery, error)
func (*UpdateNewShippingQuery) GetClass ¶
func (*UpdateNewShippingQuery) GetClass() string
func (*UpdateNewShippingQuery) GetType ¶
func (*UpdateNewShippingQuery) GetType() string
func (*UpdateNewShippingQuery) MarshalJSON ¶
func (entity *UpdateNewShippingQuery) MarshalJSON() ([]byte, error)
func (*UpdateNewShippingQuery) UpdateType ¶
func (*UpdateNewShippingQuery) UpdateType() string
type UpdateNotification ¶
type UpdateNotification struct { // Unique notification group identifier NotificationGroupId int32 `json:"notification_group_id"` // Changed notification Notification *Notification `json:"notification"` // contains filtered or unexported fields }
A notification was changed
func UnmarshalUpdateNotification ¶
func UnmarshalUpdateNotification(data json.RawMessage) (*UpdateNotification, error)
func (*UpdateNotification) GetClass ¶
func (*UpdateNotification) GetClass() string
func (*UpdateNotification) GetType ¶
func (*UpdateNotification) GetType() string
func (*UpdateNotification) MarshalJSON ¶
func (entity *UpdateNotification) MarshalJSON() ([]byte, error)
func (*UpdateNotification) UpdateType ¶
func (*UpdateNotification) UpdateType() string
type UpdateNotificationGroup ¶
type UpdateNotificationGroup struct { // Unique notification group identifier NotificationGroupId int32 `json:"notification_group_id"` // New type of the notification group Type NotificationGroupType `json:"type"` // Identifier of a chat to which all notifications in the group belong ChatId int64 `json:"chat_id"` // Chat identifier, which notification settings must be applied to the added notifications NotificationSettingsChatId int64 `json:"notification_settings_chat_id"` // Identifier of the notification sound to be played; 0 if sound is disabled NotificationSoundId JsonInt64 `json:"notification_sound_id"` // Total number of unread notifications in the group, can be bigger than number of active notifications TotalCount int32 `json:"total_count"` // List of added group notifications, sorted by notification identifier AddedNotifications []*Notification `json:"added_notifications"` // Identifiers of removed group notifications, sorted by notification identifier RemovedNotificationIds []int32 `json:"removed_notification_ids"` // contains filtered or unexported fields }
A list of active notifications in a notification group has changed
func UnmarshalUpdateNotificationGroup ¶
func UnmarshalUpdateNotificationGroup(data json.RawMessage) (*UpdateNotificationGroup, error)
func (*UpdateNotificationGroup) GetClass ¶
func (*UpdateNotificationGroup) GetClass() string
func (*UpdateNotificationGroup) GetType ¶
func (*UpdateNotificationGroup) GetType() string
func (*UpdateNotificationGroup) MarshalJSON ¶
func (entity *UpdateNotificationGroup) MarshalJSON() ([]byte, error)
func (*UpdateNotificationGroup) UnmarshalJSON ¶
func (updateNotificationGroup *UpdateNotificationGroup) UnmarshalJSON(data []byte) error
func (*UpdateNotificationGroup) UpdateType ¶
func (*UpdateNotificationGroup) UpdateType() string
type UpdateOption ¶
type UpdateOption struct { // The option name Name string `json:"name"` // The new option value Value OptionValue `json:"value"` // contains filtered or unexported fields }
An option changed its value
func UnmarshalUpdateOption ¶
func UnmarshalUpdateOption(data json.RawMessage) (*UpdateOption, error)
func (*UpdateOption) GetClass ¶
func (*UpdateOption) GetClass() string
func (*UpdateOption) GetType ¶
func (*UpdateOption) GetType() string
func (*UpdateOption) MarshalJSON ¶
func (entity *UpdateOption) MarshalJSON() ([]byte, error)
func (*UpdateOption) UnmarshalJSON ¶
func (updateOption *UpdateOption) UnmarshalJSON(data []byte) error
func (*UpdateOption) UpdateType ¶
func (*UpdateOption) UpdateType() string
type UpdatePoll ¶
type UpdatePoll struct { // New data about the poll Poll *Poll `json:"poll"` // contains filtered or unexported fields }
A poll was updated; for bots only
func UnmarshalUpdatePoll ¶
func UnmarshalUpdatePoll(data json.RawMessage) (*UpdatePoll, error)
func (*UpdatePoll) GetClass ¶
func (*UpdatePoll) GetClass() string
func (*UpdatePoll) GetType ¶
func (*UpdatePoll) GetType() string
func (*UpdatePoll) MarshalJSON ¶
func (entity *UpdatePoll) MarshalJSON() ([]byte, error)
func (*UpdatePoll) UpdateType ¶
func (*UpdatePoll) UpdateType() string
type UpdatePollAnswer ¶
type UpdatePollAnswer struct { // Unique poll identifier PollId JsonInt64 `json:"poll_id"` // Identifier of the message sender that changed the answer to the poll VoterId MessageSender `json:"voter_id"` // 0-based identifiers of answer options, chosen by the user OptionIds []int32 `json:"option_ids"` // contains filtered or unexported fields }
A user changed the answer to a poll; for bots only
func UnmarshalUpdatePollAnswer ¶
func UnmarshalUpdatePollAnswer(data json.RawMessage) (*UpdatePollAnswer, error)
func (*UpdatePollAnswer) GetClass ¶
func (*UpdatePollAnswer) GetClass() string
func (*UpdatePollAnswer) GetType ¶
func (*UpdatePollAnswer) GetType() string
func (*UpdatePollAnswer) MarshalJSON ¶
func (entity *UpdatePollAnswer) MarshalJSON() ([]byte, error)
func (*UpdatePollAnswer) UnmarshalJSON ¶ added in v1.2.3
func (updatePollAnswer *UpdatePollAnswer) UnmarshalJSON(data []byte) error
func (*UpdatePollAnswer) UpdateType ¶
func (*UpdatePollAnswer) UpdateType() string
type UpdateRecentStickers ¶
type UpdateRecentStickers struct { // True, if the list of stickers attached to photo or video files was updated; otherwise, the list of sent stickers is updated IsAttached bool `json:"is_attached"` // The new list of file identifiers of recently used stickers StickerIds []int32 `json:"sticker_ids"` // contains filtered or unexported fields }
The list of recently used stickers was updated
func UnmarshalUpdateRecentStickers ¶
func UnmarshalUpdateRecentStickers(data json.RawMessage) (*UpdateRecentStickers, error)
func (*UpdateRecentStickers) GetClass ¶
func (*UpdateRecentStickers) GetClass() string
func (*UpdateRecentStickers) GetType ¶
func (*UpdateRecentStickers) GetType() string
func (*UpdateRecentStickers) MarshalJSON ¶
func (entity *UpdateRecentStickers) MarshalJSON() ([]byte, error)
func (*UpdateRecentStickers) UpdateType ¶
func (*UpdateRecentStickers) UpdateType() string
type UpdateSavedAnimations ¶
type UpdateSavedAnimations struct { // The new list of file identifiers of saved animations AnimationIds []int32 `json:"animation_ids"` // contains filtered or unexported fields }
The list of saved animations was updated
func UnmarshalUpdateSavedAnimations ¶
func UnmarshalUpdateSavedAnimations(data json.RawMessage) (*UpdateSavedAnimations, error)
func (*UpdateSavedAnimations) GetClass ¶
func (*UpdateSavedAnimations) GetClass() string
func (*UpdateSavedAnimations) GetType ¶
func (*UpdateSavedAnimations) GetType() string
func (*UpdateSavedAnimations) MarshalJSON ¶
func (entity *UpdateSavedAnimations) MarshalJSON() ([]byte, error)
func (*UpdateSavedAnimations) UpdateType ¶
func (*UpdateSavedAnimations) UpdateType() string
type UpdateSavedNotificationSounds ¶ added in v1.0.6
type UpdateSavedNotificationSounds struct { // The new list of identifiers of saved notification sounds NotificationSoundIds []JsonInt64 `json:"notification_sound_ids"` // contains filtered or unexported fields }
The list of saved notifications sounds was updated. This update may not be sent until information about a notification sound was requested for the first time
func UnmarshalUpdateSavedNotificationSounds ¶ added in v1.0.6
func UnmarshalUpdateSavedNotificationSounds(data json.RawMessage) (*UpdateSavedNotificationSounds, error)
func (*UpdateSavedNotificationSounds) GetClass ¶ added in v1.0.6
func (*UpdateSavedNotificationSounds) GetClass() string
func (*UpdateSavedNotificationSounds) GetType ¶ added in v1.0.6
func (*UpdateSavedNotificationSounds) GetType() string
func (*UpdateSavedNotificationSounds) MarshalJSON ¶ added in v1.0.6
func (entity *UpdateSavedNotificationSounds) MarshalJSON() ([]byte, error)
func (*UpdateSavedNotificationSounds) UpdateType ¶ added in v1.0.6
func (*UpdateSavedNotificationSounds) UpdateType() string
type UpdateScopeNotificationSettings ¶
type UpdateScopeNotificationSettings struct { // Types of chats for which notification settings were updated Scope NotificationSettingsScope `json:"scope"` // The new notification settings NotificationSettings *ScopeNotificationSettings `json:"notification_settings"` // contains filtered or unexported fields }
Notification settings for some type of chats were updated
func UnmarshalUpdateScopeNotificationSettings ¶
func UnmarshalUpdateScopeNotificationSettings(data json.RawMessage) (*UpdateScopeNotificationSettings, error)
func (*UpdateScopeNotificationSettings) GetClass ¶
func (*UpdateScopeNotificationSettings) GetClass() string
func (*UpdateScopeNotificationSettings) GetType ¶
func (*UpdateScopeNotificationSettings) GetType() string
func (*UpdateScopeNotificationSettings) MarshalJSON ¶
func (entity *UpdateScopeNotificationSettings) MarshalJSON() ([]byte, error)
func (*UpdateScopeNotificationSettings) UnmarshalJSON ¶
func (updateScopeNotificationSettings *UpdateScopeNotificationSettings) UnmarshalJSON(data []byte) error
func (*UpdateScopeNotificationSettings) UpdateType ¶
func (*UpdateScopeNotificationSettings) UpdateType() string
type UpdateSecretChat ¶
type UpdateSecretChat struct { // New data about the secret chat SecretChat *SecretChat `json:"secret_chat"` // contains filtered or unexported fields }
Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned to the application
func UnmarshalUpdateSecretChat ¶
func UnmarshalUpdateSecretChat(data json.RawMessage) (*UpdateSecretChat, error)
func (*UpdateSecretChat) GetClass ¶
func (*UpdateSecretChat) GetClass() string
func (*UpdateSecretChat) GetType ¶
func (*UpdateSecretChat) GetType() string
func (*UpdateSecretChat) MarshalJSON ¶
func (entity *UpdateSecretChat) MarshalJSON() ([]byte, error)
func (*UpdateSecretChat) UpdateType ¶
func (*UpdateSecretChat) UpdateType() string
type UpdateSelectedBackground ¶
type UpdateSelectedBackground struct { // True, if background for dark theme has changed ForDarkTheme bool `json:"for_dark_theme"` // The new selected background; may be null Background *Background `json:"background"` // contains filtered or unexported fields }
The selected background has changed
func UnmarshalUpdateSelectedBackground ¶
func UnmarshalUpdateSelectedBackground(data json.RawMessage) (*UpdateSelectedBackground, error)
func (*UpdateSelectedBackground) GetClass ¶
func (*UpdateSelectedBackground) GetClass() string
func (*UpdateSelectedBackground) GetType ¶
func (*UpdateSelectedBackground) GetType() string
func (*UpdateSelectedBackground) MarshalJSON ¶
func (entity *UpdateSelectedBackground) MarshalJSON() ([]byte, error)
func (*UpdateSelectedBackground) UpdateType ¶
func (*UpdateSelectedBackground) UpdateType() string
type UpdateServiceNotification ¶
type UpdateServiceNotification struct { // Notification type. If type begins with "AUTH_KEY_DROP_", then two buttons "Cancel" and "Log out" must be shown under notification; if user presses the second, all local data must be destroyed using Destroy method Type string `json:"type"` // Notification content Content MessageContent `json:"content"` // contains filtered or unexported fields }
A service notification from the server was received. Upon receiving this the application must show a popup with the content of the notification
func UnmarshalUpdateServiceNotification ¶
func UnmarshalUpdateServiceNotification(data json.RawMessage) (*UpdateServiceNotification, error)
func (*UpdateServiceNotification) GetClass ¶
func (*UpdateServiceNotification) GetClass() string
func (*UpdateServiceNotification) GetType ¶
func (*UpdateServiceNotification) GetType() string
func (*UpdateServiceNotification) MarshalJSON ¶
func (entity *UpdateServiceNotification) MarshalJSON() ([]byte, error)
func (*UpdateServiceNotification) UnmarshalJSON ¶
func (updateServiceNotification *UpdateServiceNotification) UnmarshalJSON(data []byte) error
func (*UpdateServiceNotification) UpdateType ¶
func (*UpdateServiceNotification) UpdateType() string
type UpdateStickerSet ¶
type UpdateStickerSet struct { // The sticker set StickerSet *StickerSet `json:"sticker_set"` // contains filtered or unexported fields }
A sticker set has changed
func UnmarshalUpdateStickerSet ¶
func UnmarshalUpdateStickerSet(data json.RawMessage) (*UpdateStickerSet, error)
func (*UpdateStickerSet) GetClass ¶
func (*UpdateStickerSet) GetClass() string
func (*UpdateStickerSet) GetType ¶
func (*UpdateStickerSet) GetType() string
func (*UpdateStickerSet) MarshalJSON ¶
func (entity *UpdateStickerSet) MarshalJSON() ([]byte, error)
func (*UpdateStickerSet) UpdateType ¶
func (*UpdateStickerSet) UpdateType() string
type UpdateStory ¶ added in v1.2.3
type UpdateStory struct { // The new information about the story Story *Story `json:"story"` // contains filtered or unexported fields }
A story was changed
func UnmarshalUpdateStory ¶ added in v1.2.3
func UnmarshalUpdateStory(data json.RawMessage) (*UpdateStory, error)
func (*UpdateStory) GetClass ¶ added in v1.2.3
func (*UpdateStory) GetClass() string
func (*UpdateStory) GetType ¶ added in v1.2.3
func (*UpdateStory) GetType() string
func (*UpdateStory) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateStory) MarshalJSON() ([]byte, error)
func (*UpdateStory) UpdateType ¶ added in v1.2.3
func (*UpdateStory) UpdateType() string
type UpdateStoryDeleted ¶ added in v1.2.3
type UpdateStoryDeleted struct { // Identifier of the chat that posted the story StorySenderChatId int64 `json:"story_sender_chat_id"` // Story identifier StoryId int32 `json:"story_id"` // contains filtered or unexported fields }
A story became inaccessible
func UnmarshalUpdateStoryDeleted ¶ added in v1.2.3
func UnmarshalUpdateStoryDeleted(data json.RawMessage) (*UpdateStoryDeleted, error)
func (*UpdateStoryDeleted) GetClass ¶ added in v1.2.3
func (*UpdateStoryDeleted) GetClass() string
func (*UpdateStoryDeleted) GetType ¶ added in v1.2.3
func (*UpdateStoryDeleted) GetType() string
func (*UpdateStoryDeleted) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateStoryDeleted) MarshalJSON() ([]byte, error)
func (*UpdateStoryDeleted) UpdateType ¶ added in v1.2.3
func (*UpdateStoryDeleted) UpdateType() string
type UpdateStoryListChatCount ¶ added in v1.2.3
type UpdateStoryListChatCount struct { // The story list StoryList StoryList `json:"story_list"` // Approximate total number of chats with active stories in the list ChatCount int32 `json:"chat_count"` // contains filtered or unexported fields }
Number of chats in a story list has changed
func UnmarshalUpdateStoryListChatCount ¶ added in v1.2.3
func UnmarshalUpdateStoryListChatCount(data json.RawMessage) (*UpdateStoryListChatCount, error)
func (*UpdateStoryListChatCount) GetClass ¶ added in v1.2.3
func (*UpdateStoryListChatCount) GetClass() string
func (*UpdateStoryListChatCount) GetType ¶ added in v1.2.3
func (*UpdateStoryListChatCount) GetType() string
func (*UpdateStoryListChatCount) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateStoryListChatCount) MarshalJSON() ([]byte, error)
func (*UpdateStoryListChatCount) UnmarshalJSON ¶ added in v1.2.3
func (updateStoryListChatCount *UpdateStoryListChatCount) UnmarshalJSON(data []byte) error
func (*UpdateStoryListChatCount) UpdateType ¶ added in v1.2.3
func (*UpdateStoryListChatCount) UpdateType() string
type UpdateStorySendFailed ¶ added in v1.2.3
type UpdateStorySendFailed struct { // The failed to send story Story *Story `json:"story"` // The cause of the failure; may be null if unknown Error CanSendStoryResult `json:"error"` // An error code ErrorCode int32 `json:"error_code"` // Error message ErrorMessage string `json:"error_message"` // contains filtered or unexported fields }
A story failed to send. If the story sending is canceled, then updateStoryDeleted will be received instead of this update
func UnmarshalUpdateStorySendFailed ¶ added in v1.2.3
func UnmarshalUpdateStorySendFailed(data json.RawMessage) (*UpdateStorySendFailed, error)
func (*UpdateStorySendFailed) GetClass ¶ added in v1.2.3
func (*UpdateStorySendFailed) GetClass() string
func (*UpdateStorySendFailed) GetType ¶ added in v1.2.3
func (*UpdateStorySendFailed) GetType() string
func (*UpdateStorySendFailed) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateStorySendFailed) MarshalJSON() ([]byte, error)
func (*UpdateStorySendFailed) UnmarshalJSON ¶ added in v1.2.3
func (updateStorySendFailed *UpdateStorySendFailed) UnmarshalJSON(data []byte) error
func (*UpdateStorySendFailed) UpdateType ¶ added in v1.2.3
func (*UpdateStorySendFailed) UpdateType() string
type UpdateStorySendSucceeded ¶ added in v1.2.3
type UpdateStorySendSucceeded struct { // The sent story Story *Story `json:"story"` // The previous temporary story identifier OldStoryId int32 `json:"old_story_id"` // contains filtered or unexported fields }
A story has been successfully sent
func UnmarshalUpdateStorySendSucceeded ¶ added in v1.2.3
func UnmarshalUpdateStorySendSucceeded(data json.RawMessage) (*UpdateStorySendSucceeded, error)
func (*UpdateStorySendSucceeded) GetClass ¶ added in v1.2.3
func (*UpdateStorySendSucceeded) GetClass() string
func (*UpdateStorySendSucceeded) GetType ¶ added in v1.2.3
func (*UpdateStorySendSucceeded) GetType() string
func (*UpdateStorySendSucceeded) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateStorySendSucceeded) MarshalJSON() ([]byte, error)
func (*UpdateStorySendSucceeded) UpdateType ¶ added in v1.2.3
func (*UpdateStorySendSucceeded) UpdateType() string
type UpdateStoryStealthMode ¶ added in v1.2.3
type UpdateStoryStealthMode struct { // Point in time (Unix timestamp) until stealth mode is active; 0 if it is disabled ActiveUntilDate int32 `json:"active_until_date"` // Point in time (Unix timestamp) when stealth mode can be enabled again; 0 if there is no active cooldown CooldownUntilDate int32 `json:"cooldown_until_date"` // contains filtered or unexported fields }
Story stealth mode settings have changed
func UnmarshalUpdateStoryStealthMode ¶ added in v1.2.3
func UnmarshalUpdateStoryStealthMode(data json.RawMessage) (*UpdateStoryStealthMode, error)
func (*UpdateStoryStealthMode) GetClass ¶ added in v1.2.3
func (*UpdateStoryStealthMode) GetClass() string
func (*UpdateStoryStealthMode) GetType ¶ added in v1.2.3
func (*UpdateStoryStealthMode) GetType() string
func (*UpdateStoryStealthMode) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateStoryStealthMode) MarshalJSON() ([]byte, error)
func (*UpdateStoryStealthMode) UpdateType ¶ added in v1.2.3
func (*UpdateStoryStealthMode) UpdateType() string
type UpdateSuggestedActions ¶
type UpdateSuggestedActions struct { // Added suggested actions AddedActions []SuggestedAction `json:"added_actions"` // Removed suggested actions RemovedActions []SuggestedAction `json:"removed_actions"` // contains filtered or unexported fields }
The list of suggested to the user actions has changed
func UnmarshalUpdateSuggestedActions ¶
func UnmarshalUpdateSuggestedActions(data json.RawMessage) (*UpdateSuggestedActions, error)
func (*UpdateSuggestedActions) GetClass ¶
func (*UpdateSuggestedActions) GetClass() string
func (*UpdateSuggestedActions) GetType ¶
func (*UpdateSuggestedActions) GetType() string
func (*UpdateSuggestedActions) MarshalJSON ¶
func (entity *UpdateSuggestedActions) MarshalJSON() ([]byte, error)
func (*UpdateSuggestedActions) UnmarshalJSON ¶
func (updateSuggestedActions *UpdateSuggestedActions) UnmarshalJSON(data []byte) error
func (*UpdateSuggestedActions) UpdateType ¶
func (*UpdateSuggestedActions) UpdateType() string
type UpdateSupergroup ¶
type UpdateSupergroup struct { // New data about the supergroup Supergroup *Supergroup `json:"supergroup"` // contains filtered or unexported fields }
Some data of a supergroup or a channel has changed. This update is guaranteed to come before the supergroup identifier is returned to the application
func UnmarshalUpdateSupergroup ¶
func UnmarshalUpdateSupergroup(data json.RawMessage) (*UpdateSupergroup, error)
func (*UpdateSupergroup) GetClass ¶
func (*UpdateSupergroup) GetClass() string
func (*UpdateSupergroup) GetType ¶
func (*UpdateSupergroup) GetType() string
func (*UpdateSupergroup) MarshalJSON ¶
func (entity *UpdateSupergroup) MarshalJSON() ([]byte, error)
func (*UpdateSupergroup) UpdateType ¶
func (*UpdateSupergroup) UpdateType() string
type UpdateSupergroupFullInfo ¶
type UpdateSupergroupFullInfo struct { // Identifier of the supergroup or channel SupergroupId int64 `json:"supergroup_id"` // New full information about the supergroup SupergroupFullInfo *SupergroupFullInfo `json:"supergroup_full_info"` // contains filtered or unexported fields }
Some data in supergroupFullInfo has been changed
func UnmarshalUpdateSupergroupFullInfo ¶
func UnmarshalUpdateSupergroupFullInfo(data json.RawMessage) (*UpdateSupergroupFullInfo, error)
func (*UpdateSupergroupFullInfo) GetClass ¶
func (*UpdateSupergroupFullInfo) GetClass() string
func (*UpdateSupergroupFullInfo) GetType ¶
func (*UpdateSupergroupFullInfo) GetType() string
func (*UpdateSupergroupFullInfo) MarshalJSON ¶
func (entity *UpdateSupergroupFullInfo) MarshalJSON() ([]byte, error)
func (*UpdateSupergroupFullInfo) UpdateType ¶
func (*UpdateSupergroupFullInfo) UpdateType() string
type UpdateTermsOfService ¶
type UpdateTermsOfService struct { // Identifier of the terms of service TermsOfServiceId string `json:"terms_of_service_id"` // The new terms of service TermsOfService *TermsOfService `json:"terms_of_service"` // contains filtered or unexported fields }
New terms of service must be accepted by the user. If the terms of service are declined, then the deleteAccount method must be called with the reason "Decline ToS update"
func UnmarshalUpdateTermsOfService ¶
func UnmarshalUpdateTermsOfService(data json.RawMessage) (*UpdateTermsOfService, error)
func (*UpdateTermsOfService) GetClass ¶
func (*UpdateTermsOfService) GetClass() string
func (*UpdateTermsOfService) GetType ¶
func (*UpdateTermsOfService) GetType() string
func (*UpdateTermsOfService) MarshalJSON ¶
func (entity *UpdateTermsOfService) MarshalJSON() ([]byte, error)
func (*UpdateTermsOfService) UpdateType ¶
func (*UpdateTermsOfService) UpdateType() string
type UpdateTrendingStickerSets ¶
type UpdateTrendingStickerSets struct { // Type of the affected stickers StickerType StickerType `json:"sticker_type"` // The prefix of the list of trending sticker sets with the newest trending sticker sets StickerSets *TrendingStickerSets `json:"sticker_sets"` // contains filtered or unexported fields }
The list of trending sticker sets was updated or some of them were viewed
func UnmarshalUpdateTrendingStickerSets ¶
func UnmarshalUpdateTrendingStickerSets(data json.RawMessage) (*UpdateTrendingStickerSets, error)
func (*UpdateTrendingStickerSets) GetClass ¶
func (*UpdateTrendingStickerSets) GetClass() string
func (*UpdateTrendingStickerSets) GetType ¶
func (*UpdateTrendingStickerSets) GetType() string
func (*UpdateTrendingStickerSets) MarshalJSON ¶
func (entity *UpdateTrendingStickerSets) MarshalJSON() ([]byte, error)
func (*UpdateTrendingStickerSets) UnmarshalJSON ¶ added in v1.2.3
func (updateTrendingStickerSets *UpdateTrendingStickerSets) UnmarshalJSON(data []byte) error
func (*UpdateTrendingStickerSets) UpdateType ¶
func (*UpdateTrendingStickerSets) UpdateType() string
type UpdateUnconfirmedSession ¶ added in v1.2.3
type UpdateUnconfirmedSession struct { // The unconfirmed session; may be null if none Session *UnconfirmedSession `json:"session"` // contains filtered or unexported fields }
The first unconfirmed session has changed
func UnmarshalUpdateUnconfirmedSession ¶ added in v1.2.3
func UnmarshalUpdateUnconfirmedSession(data json.RawMessage) (*UpdateUnconfirmedSession, error)
func (*UpdateUnconfirmedSession) GetClass ¶ added in v1.2.3
func (*UpdateUnconfirmedSession) GetClass() string
func (*UpdateUnconfirmedSession) GetType ¶ added in v1.2.3
func (*UpdateUnconfirmedSession) GetType() string
func (*UpdateUnconfirmedSession) MarshalJSON ¶ added in v1.2.3
func (entity *UpdateUnconfirmedSession) MarshalJSON() ([]byte, error)
func (*UpdateUnconfirmedSession) UpdateType ¶ added in v1.2.3
func (*UpdateUnconfirmedSession) UpdateType() string
type UpdateUnreadChatCount ¶
type UpdateUnreadChatCount struct { // The chat list with changed number of unread messages ChatList ChatList `json:"chat_list"` // Approximate total number of chats in the chat list TotalCount int32 `json:"total_count"` // Total number of unread chats UnreadCount int32 `json:"unread_count"` // Total number of unread unmuted chats UnreadUnmutedCount int32 `json:"unread_unmuted_count"` // Total number of chats marked as unread MarkedAsUnreadCount int32 `json:"marked_as_unread_count"` // Total number of unmuted chats marked as unread MarkedAsUnreadUnmutedCount int32 `json:"marked_as_unread_unmuted_count"` // contains filtered or unexported fields }
Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if the message database is used
func UnmarshalUpdateUnreadChatCount ¶
func UnmarshalUpdateUnreadChatCount(data json.RawMessage) (*UpdateUnreadChatCount, error)
func (*UpdateUnreadChatCount) GetClass ¶
func (*UpdateUnreadChatCount) GetClass() string
func (*UpdateUnreadChatCount) GetType ¶
func (*UpdateUnreadChatCount) GetType() string
func (*UpdateUnreadChatCount) MarshalJSON ¶
func (entity *UpdateUnreadChatCount) MarshalJSON() ([]byte, error)
func (*UpdateUnreadChatCount) UnmarshalJSON ¶
func (updateUnreadChatCount *UpdateUnreadChatCount) UnmarshalJSON(data []byte) error
func (*UpdateUnreadChatCount) UpdateType ¶
func (*UpdateUnreadChatCount) UpdateType() string
type UpdateUnreadMessageCount ¶
type UpdateUnreadMessageCount struct { // The chat list with changed number of unread messages ChatList ChatList `json:"chat_list"` // Total number of unread messages UnreadCount int32 `json:"unread_count"` // Total number of unread messages in unmuted chats UnreadUnmutedCount int32 `json:"unread_unmuted_count"` // contains filtered or unexported fields }
Number of unread messages in a chat list has changed. This update is sent only if the message database is used
func UnmarshalUpdateUnreadMessageCount ¶
func UnmarshalUpdateUnreadMessageCount(data json.RawMessage) (*UpdateUnreadMessageCount, error)
func (*UpdateUnreadMessageCount) GetClass ¶
func (*UpdateUnreadMessageCount) GetClass() string
func (*UpdateUnreadMessageCount) GetType ¶
func (*UpdateUnreadMessageCount) GetType() string
func (*UpdateUnreadMessageCount) MarshalJSON ¶
func (entity *UpdateUnreadMessageCount) MarshalJSON() ([]byte, error)
func (*UpdateUnreadMessageCount) UnmarshalJSON ¶
func (updateUnreadMessageCount *UpdateUnreadMessageCount) UnmarshalJSON(data []byte) error
func (*UpdateUnreadMessageCount) UpdateType ¶
func (*UpdateUnreadMessageCount) UpdateType() string
type UpdateUser ¶
type UpdateUser struct { // New data about the user User *User `json:"user"` // contains filtered or unexported fields }
Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the application
func UnmarshalUpdateUser ¶
func UnmarshalUpdateUser(data json.RawMessage) (*UpdateUser, error)
func (*UpdateUser) GetClass ¶
func (*UpdateUser) GetClass() string
func (*UpdateUser) GetType ¶
func (*UpdateUser) GetType() string
func (*UpdateUser) MarshalJSON ¶
func (entity *UpdateUser) MarshalJSON() ([]byte, error)
func (*UpdateUser) UpdateType ¶
func (*UpdateUser) UpdateType() string
type UpdateUserFullInfo ¶
type UpdateUserFullInfo struct { // User identifier UserId int64 `json:"user_id"` // New full information about the user UserFullInfo *UserFullInfo `json:"user_full_info"` // contains filtered or unexported fields }
Some data in userFullInfo has been changed
func UnmarshalUpdateUserFullInfo ¶
func UnmarshalUpdateUserFullInfo(data json.RawMessage) (*UpdateUserFullInfo, error)
func (*UpdateUserFullInfo) GetClass ¶
func (*UpdateUserFullInfo) GetClass() string
func (*UpdateUserFullInfo) GetType ¶
func (*UpdateUserFullInfo) GetType() string
func (*UpdateUserFullInfo) MarshalJSON ¶
func (entity *UpdateUserFullInfo) MarshalJSON() ([]byte, error)
func (*UpdateUserFullInfo) UpdateType ¶
func (*UpdateUserFullInfo) UpdateType() string
type UpdateUserPrivacySettingRules ¶
type UpdateUserPrivacySettingRules struct { // The privacy setting Setting UserPrivacySetting `json:"setting"` // New privacy rules Rules *UserPrivacySettingRules `json:"rules"` // contains filtered or unexported fields }
Some privacy setting rules have been changed
func UnmarshalUpdateUserPrivacySettingRules ¶
func UnmarshalUpdateUserPrivacySettingRules(data json.RawMessage) (*UpdateUserPrivacySettingRules, error)
func (*UpdateUserPrivacySettingRules) GetClass ¶
func (*UpdateUserPrivacySettingRules) GetClass() string
func (*UpdateUserPrivacySettingRules) GetType ¶
func (*UpdateUserPrivacySettingRules) GetType() string
func (*UpdateUserPrivacySettingRules) MarshalJSON ¶
func (entity *UpdateUserPrivacySettingRules) MarshalJSON() ([]byte, error)
func (*UpdateUserPrivacySettingRules) UnmarshalJSON ¶
func (updateUserPrivacySettingRules *UpdateUserPrivacySettingRules) UnmarshalJSON(data []byte) error
func (*UpdateUserPrivacySettingRules) UpdateType ¶
func (*UpdateUserPrivacySettingRules) UpdateType() string
type UpdateUserStatus ¶
type UpdateUserStatus struct { // User identifier UserId int64 `json:"user_id"` // New status of the user Status UserStatus `json:"status"` // contains filtered or unexported fields }
The user went online or offline
func UnmarshalUpdateUserStatus ¶
func UnmarshalUpdateUserStatus(data json.RawMessage) (*UpdateUserStatus, error)
func (*UpdateUserStatus) GetClass ¶
func (*UpdateUserStatus) GetClass() string
func (*UpdateUserStatus) GetType ¶
func (*UpdateUserStatus) GetType() string
func (*UpdateUserStatus) MarshalJSON ¶
func (entity *UpdateUserStatus) MarshalJSON() ([]byte, error)
func (*UpdateUserStatus) UnmarshalJSON ¶
func (updateUserStatus *UpdateUserStatus) UnmarshalJSON(data []byte) error
func (*UpdateUserStatus) UpdateType ¶
func (*UpdateUserStatus) UpdateType() string
type UpdateUsersNearby ¶
type UpdateUsersNearby struct { // The new list of users nearby UsersNearby []*ChatNearby `json:"users_nearby"` // contains filtered or unexported fields }
The list of users nearby has changed. The update is guaranteed to be sent only 60 seconds after a successful searchChatsNearby request
func UnmarshalUpdateUsersNearby ¶
func UnmarshalUpdateUsersNearby(data json.RawMessage) (*UpdateUsersNearby, error)
func (*UpdateUsersNearby) GetClass ¶
func (*UpdateUsersNearby) GetClass() string
func (*UpdateUsersNearby) GetType ¶
func (*UpdateUsersNearby) GetType() string
func (*UpdateUsersNearby) MarshalJSON ¶
func (entity *UpdateUsersNearby) MarshalJSON() ([]byte, error)
func (*UpdateUsersNearby) UpdateType ¶
func (*UpdateUsersNearby) UpdateType() string
type UpdateWebAppMessageSent ¶ added in v1.0.6
type UpdateWebAppMessageSent struct { // Identifier of Web App launch WebAppLaunchId JsonInt64 `json:"web_app_launch_id"` // contains filtered or unexported fields }
A message was sent by an opened Web App, so the Web App needs to be closed
func UnmarshalUpdateWebAppMessageSent ¶ added in v1.0.6
func UnmarshalUpdateWebAppMessageSent(data json.RawMessage) (*UpdateWebAppMessageSent, error)
func (*UpdateWebAppMessageSent) GetClass ¶ added in v1.0.6
func (*UpdateWebAppMessageSent) GetClass() string
func (*UpdateWebAppMessageSent) GetType ¶ added in v1.0.6
func (*UpdateWebAppMessageSent) GetType() string
func (*UpdateWebAppMessageSent) MarshalJSON ¶ added in v1.0.6
func (entity *UpdateWebAppMessageSent) MarshalJSON() ([]byte, error)
func (*UpdateWebAppMessageSent) UpdateType ¶ added in v1.0.6
func (*UpdateWebAppMessageSent) UpdateType() string
type Updates ¶
type Updates struct { // List of updates Updates []Update `json:"updates"` // contains filtered or unexported fields }
Contains a list of updates
func UnmarshalUpdates ¶
func UnmarshalUpdates(data json.RawMessage) (*Updates, error)
func (*Updates) MarshalJSON ¶
func (*Updates) UnmarshalJSON ¶
type UpgradeBasicGroupChatToSupergroupChatRequest ¶
type UpgradeBasicGroupChatToSupergroupChatRequest struct { // Identifier of the chat to upgrade ChatId int64 `json:"chat_id"` }
type UploadStickerFileRequest ¶
type UploadStickerFileRequest struct { // Sticker file owner; ignored for regular users UserId int64 `json:"user_id"` // Sticker format StickerFormat StickerFormat `json:"sticker_format"` // File file to upload; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements Sticker InputFile `json:"sticker"` }
type User ¶
type User struct { // User identifier Id int64 `json:"id"` // User access hash AccessHash JsonInt64 `json:"access_hash"` // First name of the user FirstName string `json:"first_name"` // Last name of the user LastName string `json:"last_name"` // Usernames of the user; may be null Usernames *Usernames `json:"usernames"` // Phone number of the user PhoneNumber string `json:"phone_number"` // Current online status of the user Status UserStatus `json:"status"` // Profile photo of the user; may be null ProfilePhoto *ProfilePhoto `json:"profile_photo"` // Emoji status to be shown instead of the default Telegram Premium badge; may be null. For Telegram Premium users only EmojiStatus *EmojiStatus `json:"emoji_status"` // The user is a contact of the current user IsContact bool `json:"is_contact"` // The user is a contact of the current user and the current user is a contact of the user IsMutualContact bool `json:"is_mutual_contact"` // The user is a close friend of the current user; implies that the user is a contact IsCloseFriend bool `json:"is_close_friend"` // True, if the user is verified IsVerified bool `json:"is_verified"` // True, if the user is a Telegram Premium user IsPremium bool `json:"is_premium"` // True, if the user is Telegram support account IsSupport bool `json:"is_support"` // If non-empty, it contains a human-readable description of the reason why access to this user must be restricted RestrictionReason string `json:"restriction_reason"` // True, if many users reported this user as a scam IsScam bool `json:"is_scam"` // True, if many users reported this user as a fake account IsFake bool `json:"is_fake"` // True, if the user has non-expired stories available to the current user HasActiveStories bool `json:"has_active_stories"` // True, if the user has unread non-expired stories available to the current user HasUnreadActiveStories bool `json:"has_unread_active_stories"` // If false, the user is inaccessible, and the only information known about the user is inside this class. Identifier of the user can't be passed to any method HaveAccess bool `json:"have_access"` // Type of the user Type UserType `json:"type"` // IETF language tag of the user's language; only available to bots LanguageCode string `json:"language_code"` // True, if the user added the current bot to attachment menu; only available to bots AddedToAttachmentMenu bool `json:"added_to_attachment_menu"` // contains filtered or unexported fields }
Represents a user
func UnmarshalUser ¶
func UnmarshalUser(data json.RawMessage) (*User, error)
func (*User) MarshalJSON ¶
func (*User) UnmarshalJSON ¶
type UserFullInfo ¶
type UserFullInfo struct { // User profile photo set by the current user for the contact; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null, then it is the same photo as in user.profile_photo and chat.photo. This photo isn't returned in the list of user photos PersonalPhoto *ChatPhoto `json:"personal_photo"` // User profile photo; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null and personal_photo is null, then it is the same photo as in user.profile_photo and chat.photo Photo *ChatPhoto `json:"photo"` // User profile photo visible if the main photo is hidden by privacy settings; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null and both photo and personal_photo are null, then it is the same photo as in user.profile_photo and chat.photo. This photo isn't returned in the list of user photos PublicPhoto *ChatPhoto `json:"public_photo"` // Block list to which the user is added; may be null if none BlockList BlockList `json:"block_list"` // True, if the user can be called CanBeCalled bool `json:"can_be_called"` // True, if a video call can be created with the user SupportsVideoCalls bool `json:"supports_video_calls"` // True, if the user can't be called due to their privacy settings HasPrivateCalls bool `json:"has_private_calls"` // True, if the user can't be linked in forwarded messages due to their privacy settings HasPrivateForwards bool `json:"has_private_forwards"` // True, if voice and video notes can't be sent or forwarded to the user HasRestrictedVoiceAndVideoNoteMessages bool `json:"has_restricted_voice_and_video_note_messages"` // True, if the user has pinned stories HasPinnedStories bool `json:"has_pinned_stories"` // True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used NeedPhoneNumberPrivacyException bool `json:"need_phone_number_privacy_exception"` // A short user bio; may be null for bots Bio *FormattedText `json:"bio"` // The list of available options for gifting Telegram Premium to the user PremiumGiftOptions []*PremiumPaymentOption `json:"premium_gift_options"` // Number of group chats where both the other user and the current user are a member; 0 for the current user GroupInCommonCount int32 `json:"group_in_common_count"` // For bots, information about the bot; may be null if the user isn't a bot BotInfo *BotInfo `json:"bot_info"` // contains filtered or unexported fields }
Contains full information about a user
func UnmarshalUserFullInfo ¶
func UnmarshalUserFullInfo(data json.RawMessage) (*UserFullInfo, error)
func (*UserFullInfo) GetClass ¶
func (*UserFullInfo) GetClass() string
func (*UserFullInfo) GetType ¶
func (*UserFullInfo) GetType() string
func (*UserFullInfo) MarshalJSON ¶
func (entity *UserFullInfo) MarshalJSON() ([]byte, error)
func (*UserFullInfo) UnmarshalJSON ¶ added in v1.2.3
func (userFullInfo *UserFullInfo) UnmarshalJSON(data []byte) error
type UserLink ¶ added in v1.2.3
type UserLink struct { // The URL Url string `json:"url"` // Left time for which the link is valid, in seconds; 0 if the link is a public username link ExpiresIn int32 `json:"expires_in"` // contains filtered or unexported fields }
Contains an HTTPS URL, which can be used to get information about a user
func UnmarshalUserLink ¶ added in v1.2.3
func UnmarshalUserLink(data json.RawMessage) (*UserLink, error)
func (*UserLink) MarshalJSON ¶ added in v1.2.3
type UserPrivacySetting ¶
type UserPrivacySetting interface {
UserPrivacySettingType() string
}
Describes available user privacy settings
func UnmarshalListOfUserPrivacySetting ¶
func UnmarshalListOfUserPrivacySetting(dataList []json.RawMessage) ([]UserPrivacySetting, error)
func UnmarshalUserPrivacySetting ¶
func UnmarshalUserPrivacySetting(data json.RawMessage) (UserPrivacySetting, error)
type UserPrivacySettingAllowCalls ¶
type UserPrivacySettingAllowCalls struct {
// contains filtered or unexported fields
}
A privacy setting for managing whether the user can be called
func UnmarshalUserPrivacySettingAllowCalls ¶
func UnmarshalUserPrivacySettingAllowCalls(data json.RawMessage) (*UserPrivacySettingAllowCalls, error)
func (*UserPrivacySettingAllowCalls) GetClass ¶
func (*UserPrivacySettingAllowCalls) GetClass() string
func (*UserPrivacySettingAllowCalls) GetType ¶
func (*UserPrivacySettingAllowCalls) GetType() string
func (*UserPrivacySettingAllowCalls) MarshalJSON ¶
func (entity *UserPrivacySettingAllowCalls) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingAllowCalls) UserPrivacySettingType ¶
func (*UserPrivacySettingAllowCalls) UserPrivacySettingType() string
type UserPrivacySettingAllowChatInvites ¶
type UserPrivacySettingAllowChatInvites struct {
// contains filtered or unexported fields
}
A privacy setting for managing whether the user can be invited to chats
func UnmarshalUserPrivacySettingAllowChatInvites ¶
func UnmarshalUserPrivacySettingAllowChatInvites(data json.RawMessage) (*UserPrivacySettingAllowChatInvites, error)
func (*UserPrivacySettingAllowChatInvites) GetClass ¶
func (*UserPrivacySettingAllowChatInvites) GetClass() string
func (*UserPrivacySettingAllowChatInvites) GetType ¶
func (*UserPrivacySettingAllowChatInvites) GetType() string
func (*UserPrivacySettingAllowChatInvites) MarshalJSON ¶
func (entity *UserPrivacySettingAllowChatInvites) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingAllowChatInvites) UserPrivacySettingType ¶
func (*UserPrivacySettingAllowChatInvites) UserPrivacySettingType() string
type UserPrivacySettingAllowFindingByPhoneNumber ¶
type UserPrivacySettingAllowFindingByPhoneNumber struct {
// contains filtered or unexported fields
}
A privacy setting for managing whether the user can be found by their phone number. Checked only if the phone number is not known to the other user. Can be set only to "Allow contacts" or "Allow all"
func UnmarshalUserPrivacySettingAllowFindingByPhoneNumber ¶
func UnmarshalUserPrivacySettingAllowFindingByPhoneNumber(data json.RawMessage) (*UserPrivacySettingAllowFindingByPhoneNumber, error)
func (*UserPrivacySettingAllowFindingByPhoneNumber) GetClass ¶
func (*UserPrivacySettingAllowFindingByPhoneNumber) GetClass() string
func (*UserPrivacySettingAllowFindingByPhoneNumber) GetType ¶
func (*UserPrivacySettingAllowFindingByPhoneNumber) GetType() string
func (*UserPrivacySettingAllowFindingByPhoneNumber) MarshalJSON ¶
func (entity *UserPrivacySettingAllowFindingByPhoneNumber) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingAllowFindingByPhoneNumber) UserPrivacySettingType ¶
func (*UserPrivacySettingAllowFindingByPhoneNumber) UserPrivacySettingType() string
type UserPrivacySettingAllowPeerToPeerCalls ¶
type UserPrivacySettingAllowPeerToPeerCalls struct {
// contains filtered or unexported fields
}
A privacy setting for managing whether peer-to-peer connections can be used for calls
func UnmarshalUserPrivacySettingAllowPeerToPeerCalls ¶
func UnmarshalUserPrivacySettingAllowPeerToPeerCalls(data json.RawMessage) (*UserPrivacySettingAllowPeerToPeerCalls, error)
func (*UserPrivacySettingAllowPeerToPeerCalls) GetClass ¶
func (*UserPrivacySettingAllowPeerToPeerCalls) GetClass() string
func (*UserPrivacySettingAllowPeerToPeerCalls) GetType ¶
func (*UserPrivacySettingAllowPeerToPeerCalls) GetType() string
func (*UserPrivacySettingAllowPeerToPeerCalls) MarshalJSON ¶
func (entity *UserPrivacySettingAllowPeerToPeerCalls) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingAllowPeerToPeerCalls) UserPrivacySettingType ¶
func (*UserPrivacySettingAllowPeerToPeerCalls) UserPrivacySettingType() string
type UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages ¶ added in v1.2.3
type UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages struct {
// contains filtered or unexported fields
}
A privacy setting for managing whether the user can receive voice and video messages in private chats
func UnmarshalUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages ¶ added in v1.2.3
func UnmarshalUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages(data json.RawMessage) (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages, error)
func (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) GetClass ¶ added in v1.2.3
func (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) GetClass() string
func (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) GetType ¶ added in v1.2.3
func (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) GetType() string
func (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) MarshalJSON ¶ added in v1.2.3
func (entity *UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) UserPrivacySettingType ¶ added in v1.2.3
func (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) UserPrivacySettingType() string
type UserPrivacySettingRule ¶
type UserPrivacySettingRule interface {
UserPrivacySettingRuleType() string
}
Represents a single rule for managing user privacy settings
func UnmarshalListOfUserPrivacySettingRule ¶
func UnmarshalListOfUserPrivacySettingRule(dataList []json.RawMessage) ([]UserPrivacySettingRule, error)
func UnmarshalUserPrivacySettingRule ¶
func UnmarshalUserPrivacySettingRule(data json.RawMessage) (UserPrivacySettingRule, error)
type UserPrivacySettingRuleAllowAll ¶
type UserPrivacySettingRuleAllowAll struct {
// contains filtered or unexported fields
}
A rule to allow all users to do something
func UnmarshalUserPrivacySettingRuleAllowAll ¶
func UnmarshalUserPrivacySettingRuleAllowAll(data json.RawMessage) (*UserPrivacySettingRuleAllowAll, error)
func (*UserPrivacySettingRuleAllowAll) GetClass ¶
func (*UserPrivacySettingRuleAllowAll) GetClass() string
func (*UserPrivacySettingRuleAllowAll) GetType ¶
func (*UserPrivacySettingRuleAllowAll) GetType() string
func (*UserPrivacySettingRuleAllowAll) MarshalJSON ¶
func (entity *UserPrivacySettingRuleAllowAll) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingRuleAllowAll) UserPrivacySettingRuleType ¶
func (*UserPrivacySettingRuleAllowAll) UserPrivacySettingRuleType() string
type UserPrivacySettingRuleAllowChatMembers ¶
type UserPrivacySettingRuleAllowChatMembers struct { // The chat identifiers, total number of chats in all rules must not exceed 20 ChatIds []int64 `json:"chat_ids"` // contains filtered or unexported fields }
A rule to allow all members of certain specified basic groups and supergroups to doing something
func UnmarshalUserPrivacySettingRuleAllowChatMembers ¶
func UnmarshalUserPrivacySettingRuleAllowChatMembers(data json.RawMessage) (*UserPrivacySettingRuleAllowChatMembers, error)
func (*UserPrivacySettingRuleAllowChatMembers) GetClass ¶
func (*UserPrivacySettingRuleAllowChatMembers) GetClass() string
func (*UserPrivacySettingRuleAllowChatMembers) GetType ¶
func (*UserPrivacySettingRuleAllowChatMembers) GetType() string
func (*UserPrivacySettingRuleAllowChatMembers) MarshalJSON ¶
func (entity *UserPrivacySettingRuleAllowChatMembers) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingRuleAllowChatMembers) UserPrivacySettingRuleType ¶
func (*UserPrivacySettingRuleAllowChatMembers) UserPrivacySettingRuleType() string
type UserPrivacySettingRuleAllowContacts ¶
type UserPrivacySettingRuleAllowContacts struct {
// contains filtered or unexported fields
}
A rule to allow all contacts of the user to do something
func UnmarshalUserPrivacySettingRuleAllowContacts ¶
func UnmarshalUserPrivacySettingRuleAllowContacts(data json.RawMessage) (*UserPrivacySettingRuleAllowContacts, error)
func (*UserPrivacySettingRuleAllowContacts) GetClass ¶
func (*UserPrivacySettingRuleAllowContacts) GetClass() string
func (*UserPrivacySettingRuleAllowContacts) GetType ¶
func (*UserPrivacySettingRuleAllowContacts) GetType() string
func (*UserPrivacySettingRuleAllowContacts) MarshalJSON ¶
func (entity *UserPrivacySettingRuleAllowContacts) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingRuleAllowContacts) UserPrivacySettingRuleType ¶
func (*UserPrivacySettingRuleAllowContacts) UserPrivacySettingRuleType() string
type UserPrivacySettingRuleAllowUsers ¶
type UserPrivacySettingRuleAllowUsers struct { // The user identifiers, total number of users in all rules must not exceed 1000 UserIds []int64 `json:"user_ids"` // contains filtered or unexported fields }
A rule to allow certain specified users to do something
func UnmarshalUserPrivacySettingRuleAllowUsers ¶
func UnmarshalUserPrivacySettingRuleAllowUsers(data json.RawMessage) (*UserPrivacySettingRuleAllowUsers, error)
func (*UserPrivacySettingRuleAllowUsers) GetClass ¶
func (*UserPrivacySettingRuleAllowUsers) GetClass() string
func (*UserPrivacySettingRuleAllowUsers) GetType ¶
func (*UserPrivacySettingRuleAllowUsers) GetType() string
func (*UserPrivacySettingRuleAllowUsers) MarshalJSON ¶
func (entity *UserPrivacySettingRuleAllowUsers) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingRuleAllowUsers) UserPrivacySettingRuleType ¶
func (*UserPrivacySettingRuleAllowUsers) UserPrivacySettingRuleType() string
type UserPrivacySettingRuleRestrictAll ¶
type UserPrivacySettingRuleRestrictAll struct {
// contains filtered or unexported fields
}
A rule to restrict all users from doing something
func UnmarshalUserPrivacySettingRuleRestrictAll ¶
func UnmarshalUserPrivacySettingRuleRestrictAll(data json.RawMessage) (*UserPrivacySettingRuleRestrictAll, error)
func (*UserPrivacySettingRuleRestrictAll) GetClass ¶
func (*UserPrivacySettingRuleRestrictAll) GetClass() string
func (*UserPrivacySettingRuleRestrictAll) GetType ¶
func (*UserPrivacySettingRuleRestrictAll) GetType() string
func (*UserPrivacySettingRuleRestrictAll) MarshalJSON ¶
func (entity *UserPrivacySettingRuleRestrictAll) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingRuleRestrictAll) UserPrivacySettingRuleType ¶
func (*UserPrivacySettingRuleRestrictAll) UserPrivacySettingRuleType() string
type UserPrivacySettingRuleRestrictChatMembers ¶
type UserPrivacySettingRuleRestrictChatMembers struct { // The chat identifiers, total number of chats in all rules must not exceed 20 ChatIds []int64 `json:"chat_ids"` // contains filtered or unexported fields }
A rule to restrict all members of specified basic groups and supergroups from doing something
func UnmarshalUserPrivacySettingRuleRestrictChatMembers ¶
func UnmarshalUserPrivacySettingRuleRestrictChatMembers(data json.RawMessage) (*UserPrivacySettingRuleRestrictChatMembers, error)
func (*UserPrivacySettingRuleRestrictChatMembers) GetClass ¶
func (*UserPrivacySettingRuleRestrictChatMembers) GetClass() string
func (*UserPrivacySettingRuleRestrictChatMembers) GetType ¶
func (*UserPrivacySettingRuleRestrictChatMembers) GetType() string
func (*UserPrivacySettingRuleRestrictChatMembers) MarshalJSON ¶
func (entity *UserPrivacySettingRuleRestrictChatMembers) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingRuleRestrictChatMembers) UserPrivacySettingRuleType ¶
func (*UserPrivacySettingRuleRestrictChatMembers) UserPrivacySettingRuleType() string
type UserPrivacySettingRuleRestrictContacts ¶
type UserPrivacySettingRuleRestrictContacts struct {
// contains filtered or unexported fields
}
A rule to restrict all contacts of the user from doing something
func UnmarshalUserPrivacySettingRuleRestrictContacts ¶
func UnmarshalUserPrivacySettingRuleRestrictContacts(data json.RawMessage) (*UserPrivacySettingRuleRestrictContacts, error)
func (*UserPrivacySettingRuleRestrictContacts) GetClass ¶
func (*UserPrivacySettingRuleRestrictContacts) GetClass() string
func (*UserPrivacySettingRuleRestrictContacts) GetType ¶
func (*UserPrivacySettingRuleRestrictContacts) GetType() string
func (*UserPrivacySettingRuleRestrictContacts) MarshalJSON ¶
func (entity *UserPrivacySettingRuleRestrictContacts) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingRuleRestrictContacts) UserPrivacySettingRuleType ¶
func (*UserPrivacySettingRuleRestrictContacts) UserPrivacySettingRuleType() string
type UserPrivacySettingRuleRestrictUsers ¶
type UserPrivacySettingRuleRestrictUsers struct { // The user identifiers, total number of users in all rules must not exceed 1000 UserIds []int64 `json:"user_ids"` // contains filtered or unexported fields }
A rule to restrict all specified users from doing something
func UnmarshalUserPrivacySettingRuleRestrictUsers ¶
func UnmarshalUserPrivacySettingRuleRestrictUsers(data json.RawMessage) (*UserPrivacySettingRuleRestrictUsers, error)
func (*UserPrivacySettingRuleRestrictUsers) GetClass ¶
func (*UserPrivacySettingRuleRestrictUsers) GetClass() string
func (*UserPrivacySettingRuleRestrictUsers) GetType ¶
func (*UserPrivacySettingRuleRestrictUsers) GetType() string
func (*UserPrivacySettingRuleRestrictUsers) MarshalJSON ¶
func (entity *UserPrivacySettingRuleRestrictUsers) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingRuleRestrictUsers) UserPrivacySettingRuleType ¶
func (*UserPrivacySettingRuleRestrictUsers) UserPrivacySettingRuleType() string
type UserPrivacySettingRules ¶
type UserPrivacySettingRules struct { // A list of rules Rules []UserPrivacySettingRule `json:"rules"` // contains filtered or unexported fields }
A list of privacy rules. Rules are matched in the specified order. The first matched rule defines the privacy setting for a given user. If no rule matches, the action is not allowed
func UnmarshalUserPrivacySettingRules ¶
func UnmarshalUserPrivacySettingRules(data json.RawMessage) (*UserPrivacySettingRules, error)
func (*UserPrivacySettingRules) GetClass ¶
func (*UserPrivacySettingRules) GetClass() string
func (*UserPrivacySettingRules) GetType ¶
func (*UserPrivacySettingRules) GetType() string
func (*UserPrivacySettingRules) MarshalJSON ¶
func (entity *UserPrivacySettingRules) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingRules) UnmarshalJSON ¶
func (userPrivacySettingRules *UserPrivacySettingRules) UnmarshalJSON(data []byte) error
type UserPrivacySettingShowBio ¶ added in v1.2.3
type UserPrivacySettingShowBio struct {
// contains filtered or unexported fields
}
A privacy setting for managing whether the user's bio is visible
func UnmarshalUserPrivacySettingShowBio ¶ added in v1.2.3
func UnmarshalUserPrivacySettingShowBio(data json.RawMessage) (*UserPrivacySettingShowBio, error)
func (*UserPrivacySettingShowBio) GetClass ¶ added in v1.2.3
func (*UserPrivacySettingShowBio) GetClass() string
func (*UserPrivacySettingShowBio) GetType ¶ added in v1.2.3
func (*UserPrivacySettingShowBio) GetType() string
func (*UserPrivacySettingShowBio) MarshalJSON ¶ added in v1.2.3
func (entity *UserPrivacySettingShowBio) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingShowBio) UserPrivacySettingType ¶ added in v1.2.3
func (*UserPrivacySettingShowBio) UserPrivacySettingType() string
type UserPrivacySettingShowLinkInForwardedMessages ¶
type UserPrivacySettingShowLinkInForwardedMessages struct {
// contains filtered or unexported fields
}
A privacy setting for managing whether a link to the user's account is included in forwarded messages
func UnmarshalUserPrivacySettingShowLinkInForwardedMessages ¶
func UnmarshalUserPrivacySettingShowLinkInForwardedMessages(data json.RawMessage) (*UserPrivacySettingShowLinkInForwardedMessages, error)
func (*UserPrivacySettingShowLinkInForwardedMessages) GetClass ¶
func (*UserPrivacySettingShowLinkInForwardedMessages) GetClass() string
func (*UserPrivacySettingShowLinkInForwardedMessages) GetType ¶
func (*UserPrivacySettingShowLinkInForwardedMessages) GetType() string
func (*UserPrivacySettingShowLinkInForwardedMessages) MarshalJSON ¶
func (entity *UserPrivacySettingShowLinkInForwardedMessages) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingShowLinkInForwardedMessages) UserPrivacySettingType ¶
func (*UserPrivacySettingShowLinkInForwardedMessages) UserPrivacySettingType() string
type UserPrivacySettingShowPhoneNumber ¶
type UserPrivacySettingShowPhoneNumber struct {
// contains filtered or unexported fields
}
A privacy setting for managing whether the user's phone number is visible
func UnmarshalUserPrivacySettingShowPhoneNumber ¶
func UnmarshalUserPrivacySettingShowPhoneNumber(data json.RawMessage) (*UserPrivacySettingShowPhoneNumber, error)
func (*UserPrivacySettingShowPhoneNumber) GetClass ¶
func (*UserPrivacySettingShowPhoneNumber) GetClass() string
func (*UserPrivacySettingShowPhoneNumber) GetType ¶
func (*UserPrivacySettingShowPhoneNumber) GetType() string
func (*UserPrivacySettingShowPhoneNumber) MarshalJSON ¶
func (entity *UserPrivacySettingShowPhoneNumber) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingShowPhoneNumber) UserPrivacySettingType ¶
func (*UserPrivacySettingShowPhoneNumber) UserPrivacySettingType() string
type UserPrivacySettingShowProfilePhoto ¶
type UserPrivacySettingShowProfilePhoto struct {
// contains filtered or unexported fields
}
A privacy setting for managing whether the user's profile photo is visible
func UnmarshalUserPrivacySettingShowProfilePhoto ¶
func UnmarshalUserPrivacySettingShowProfilePhoto(data json.RawMessage) (*UserPrivacySettingShowProfilePhoto, error)
func (*UserPrivacySettingShowProfilePhoto) GetClass ¶
func (*UserPrivacySettingShowProfilePhoto) GetClass() string
func (*UserPrivacySettingShowProfilePhoto) GetType ¶
func (*UserPrivacySettingShowProfilePhoto) GetType() string
func (*UserPrivacySettingShowProfilePhoto) MarshalJSON ¶
func (entity *UserPrivacySettingShowProfilePhoto) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingShowProfilePhoto) UserPrivacySettingType ¶
func (*UserPrivacySettingShowProfilePhoto) UserPrivacySettingType() string
type UserPrivacySettingShowStatus ¶
type UserPrivacySettingShowStatus struct {
// contains filtered or unexported fields
}
A privacy setting for managing whether the user's online status is visible
func UnmarshalUserPrivacySettingShowStatus ¶
func UnmarshalUserPrivacySettingShowStatus(data json.RawMessage) (*UserPrivacySettingShowStatus, error)
func (*UserPrivacySettingShowStatus) GetClass ¶
func (*UserPrivacySettingShowStatus) GetClass() string
func (*UserPrivacySettingShowStatus) GetType ¶
func (*UserPrivacySettingShowStatus) GetType() string
func (*UserPrivacySettingShowStatus) MarshalJSON ¶
func (entity *UserPrivacySettingShowStatus) MarshalJSON() ([]byte, error)
func (*UserPrivacySettingShowStatus) UserPrivacySettingType ¶
func (*UserPrivacySettingShowStatus) UserPrivacySettingType() string
type UserStatus ¶
type UserStatus interface {
UserStatusType() string
}
Describes the last time the user was online
func UnmarshalListOfUserStatus ¶
func UnmarshalListOfUserStatus(dataList []json.RawMessage) ([]UserStatus, error)
func UnmarshalUserStatus ¶
func UnmarshalUserStatus(data json.RawMessage) (UserStatus, error)
type UserStatusEmpty ¶
type UserStatusEmpty struct {
// contains filtered or unexported fields
}
The user status was never changed
func UnmarshalUserStatusEmpty ¶
func UnmarshalUserStatusEmpty(data json.RawMessage) (*UserStatusEmpty, error)
func (*UserStatusEmpty) GetClass ¶
func (*UserStatusEmpty) GetClass() string
func (*UserStatusEmpty) GetType ¶
func (*UserStatusEmpty) GetType() string
func (*UserStatusEmpty) MarshalJSON ¶
func (entity *UserStatusEmpty) MarshalJSON() ([]byte, error)
func (*UserStatusEmpty) UserStatusType ¶
func (*UserStatusEmpty) UserStatusType() string
type UserStatusLastMonth ¶
type UserStatusLastMonth struct {
// contains filtered or unexported fields
}
The user is offline, but was online last month
func UnmarshalUserStatusLastMonth ¶
func UnmarshalUserStatusLastMonth(data json.RawMessage) (*UserStatusLastMonth, error)
func (*UserStatusLastMonth) GetClass ¶
func (*UserStatusLastMonth) GetClass() string
func (*UserStatusLastMonth) GetType ¶
func (*UserStatusLastMonth) GetType() string
func (*UserStatusLastMonth) MarshalJSON ¶
func (entity *UserStatusLastMonth) MarshalJSON() ([]byte, error)
func (*UserStatusLastMonth) UserStatusType ¶
func (*UserStatusLastMonth) UserStatusType() string
type UserStatusLastWeek ¶
type UserStatusLastWeek struct {
// contains filtered or unexported fields
}
The user is offline, but was online last week
func UnmarshalUserStatusLastWeek ¶
func UnmarshalUserStatusLastWeek(data json.RawMessage) (*UserStatusLastWeek, error)
func (*UserStatusLastWeek) GetClass ¶
func (*UserStatusLastWeek) GetClass() string
func (*UserStatusLastWeek) GetType ¶
func (*UserStatusLastWeek) GetType() string
func (*UserStatusLastWeek) MarshalJSON ¶
func (entity *UserStatusLastWeek) MarshalJSON() ([]byte, error)
func (*UserStatusLastWeek) UserStatusType ¶
func (*UserStatusLastWeek) UserStatusType() string
type UserStatusOffline ¶
type UserStatusOffline struct { // Point in time (Unix timestamp) when the user was last online WasOnline int32 `json:"was_online"` // contains filtered or unexported fields }
The user is offline
func UnmarshalUserStatusOffline ¶
func UnmarshalUserStatusOffline(data json.RawMessage) (*UserStatusOffline, error)
func (*UserStatusOffline) GetClass ¶
func (*UserStatusOffline) GetClass() string
func (*UserStatusOffline) GetType ¶
func (*UserStatusOffline) GetType() string
func (*UserStatusOffline) MarshalJSON ¶
func (entity *UserStatusOffline) MarshalJSON() ([]byte, error)
func (*UserStatusOffline) UserStatusType ¶
func (*UserStatusOffline) UserStatusType() string
type UserStatusOnline ¶
type UserStatusOnline struct { // Point in time (Unix timestamp) when the user's online status will expire Expires int32 `json:"expires"` // contains filtered or unexported fields }
The user is online
func UnmarshalUserStatusOnline ¶
func UnmarshalUserStatusOnline(data json.RawMessage) (*UserStatusOnline, error)
func (*UserStatusOnline) GetClass ¶
func (*UserStatusOnline) GetClass() string
func (*UserStatusOnline) GetType ¶
func (*UserStatusOnline) GetType() string
func (*UserStatusOnline) MarshalJSON ¶
func (entity *UserStatusOnline) MarshalJSON() ([]byte, error)
func (*UserStatusOnline) UserStatusType ¶
func (*UserStatusOnline) UserStatusType() string
type UserStatusRecently ¶
type UserStatusRecently struct {
// contains filtered or unexported fields
}
The user was online recently
func UnmarshalUserStatusRecently ¶
func UnmarshalUserStatusRecently(data json.RawMessage) (*UserStatusRecently, error)
func (*UserStatusRecently) GetClass ¶
func (*UserStatusRecently) GetClass() string
func (*UserStatusRecently) GetType ¶
func (*UserStatusRecently) GetType() string
func (*UserStatusRecently) MarshalJSON ¶
func (entity *UserStatusRecently) MarshalJSON() ([]byte, error)
func (*UserStatusRecently) UserStatusType ¶
func (*UserStatusRecently) UserStatusType() string
type UserSupportInfo ¶ added in v1.2.3
type UserSupportInfo struct { // Information message Message *FormattedText `json:"message"` // Information author Author string `json:"author"` // Information change date Date int32 `json:"date"` // contains filtered or unexported fields }
Contains custom information about the user
func UnmarshalUserSupportInfo ¶ added in v1.2.3
func UnmarshalUserSupportInfo(data json.RawMessage) (*UserSupportInfo, error)
func (*UserSupportInfo) GetClass ¶ added in v1.2.3
func (*UserSupportInfo) GetClass() string
func (*UserSupportInfo) GetType ¶ added in v1.2.3
func (*UserSupportInfo) GetType() string
func (*UserSupportInfo) MarshalJSON ¶ added in v1.2.3
func (entity *UserSupportInfo) MarshalJSON() ([]byte, error)
type UserType ¶
type UserType interface {
UserTypeType() string
}
Represents the type of a user. The following types are possible: regular users, deleted users and bots
func UnmarshalListOfUserType ¶
func UnmarshalListOfUserType(dataList []json.RawMessage) ([]UserType, error)
func UnmarshalUserType ¶
func UnmarshalUserType(data json.RawMessage) (UserType, error)
type UserTypeBot ¶
type UserTypeBot struct { // True, if the bot is owned by the current user and can be edited using the methods toggleBotUsernameIsActive, reorderBotActiveUsernames, setBotProfilePhoto, setBotName, setBotInfoDescription, and setBotInfoShortDescription CanBeEdited bool `json:"can_be_edited"` // True, if the bot can be invited to basic group and supergroup chats CanJoinGroups bool `json:"can_join_groups"` // True, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot. In private and channel chats a bot can always read all messages CanReadAllGroupMessages bool `json:"can_read_all_group_messages"` // True, if the bot supports inline queries IsInline bool `json:"is_inline"` // Placeholder for inline queries (displayed on the application input field) InlineQueryPlaceholder string `json:"inline_query_placeholder"` // True, if the location of the user is expected to be sent with every inline query to this bot NeedLocation bool `json:"need_location"` // True, if the bot can be added to attachment or side menu CanBeAddedToAttachmentMenu bool `json:"can_be_added_to_attachment_menu"` // contains filtered or unexported fields }
A bot (see https://core.telegram.org/bots)
func UnmarshalUserTypeBot ¶
func UnmarshalUserTypeBot(data json.RawMessage) (*UserTypeBot, error)
func (*UserTypeBot) GetClass ¶
func (*UserTypeBot) GetClass() string
func (*UserTypeBot) GetType ¶
func (*UserTypeBot) GetType() string
func (*UserTypeBot) MarshalJSON ¶
func (entity *UserTypeBot) MarshalJSON() ([]byte, error)
func (*UserTypeBot) UserTypeType ¶
func (*UserTypeBot) UserTypeType() string
type UserTypeDeleted ¶
type UserTypeDeleted struct {
// contains filtered or unexported fields
}
A deleted user or deleted bot. No information on the user besides the user identifier is available. It is not possible to perform any active actions on this type of user
func UnmarshalUserTypeDeleted ¶
func UnmarshalUserTypeDeleted(data json.RawMessage) (*UserTypeDeleted, error)
func (*UserTypeDeleted) GetClass ¶
func (*UserTypeDeleted) GetClass() string
func (*UserTypeDeleted) GetType ¶
func (*UserTypeDeleted) GetType() string
func (*UserTypeDeleted) MarshalJSON ¶
func (entity *UserTypeDeleted) MarshalJSON() ([]byte, error)
func (*UserTypeDeleted) UserTypeType ¶
func (*UserTypeDeleted) UserTypeType() string
type UserTypeRegular ¶
type UserTypeRegular struct {
// contains filtered or unexported fields
}
A regular user
func UnmarshalUserTypeRegular ¶
func UnmarshalUserTypeRegular(data json.RawMessage) (*UserTypeRegular, error)
func (*UserTypeRegular) GetClass ¶
func (*UserTypeRegular) GetClass() string
func (*UserTypeRegular) GetType ¶
func (*UserTypeRegular) GetType() string
func (*UserTypeRegular) MarshalJSON ¶
func (entity *UserTypeRegular) MarshalJSON() ([]byte, error)
func (*UserTypeRegular) UserTypeType ¶
func (*UserTypeRegular) UserTypeType() string
type UserTypeUnknown ¶
type UserTypeUnknown struct {
// contains filtered or unexported fields
}
No information on the user besides the user identifier is available, yet this user has not been deleted. This object is extremely rare and must be handled like a deleted user. It is not possible to perform any actions on users of this type
func UnmarshalUserTypeUnknown ¶
func UnmarshalUserTypeUnknown(data json.RawMessage) (*UserTypeUnknown, error)
func (*UserTypeUnknown) GetClass ¶
func (*UserTypeUnknown) GetClass() string
func (*UserTypeUnknown) GetType ¶
func (*UserTypeUnknown) GetType() string
func (*UserTypeUnknown) MarshalJSON ¶
func (entity *UserTypeUnknown) MarshalJSON() ([]byte, error)
func (*UserTypeUnknown) UserTypeType ¶
func (*UserTypeUnknown) UserTypeType() string
type Usernames ¶ added in v1.2.3
type Usernames struct { // List of active usernames; the first one must be shown as the primary username. The order of active usernames can be changed with reorderActiveUsernames, reorderBotActiveUsernames or reorderSupergroupActiveUsernames ActiveUsernames []string `json:"active_usernames"` // List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive DisabledUsernames []string `json:"disabled_usernames"` // The active username, which can be changed with setUsername or setSupergroupUsername EditableUsername string `json:"editable_username"` // contains filtered or unexported fields }
Describes usernames assigned to a user, a supergroup, or a channel
func UnmarshalUsernames ¶ added in v1.2.3
func UnmarshalUsernames(data json.RawMessage) (*Usernames, error)
func (*Usernames) MarshalJSON ¶ added in v1.2.3
type Users ¶
type Users struct { // Approximate total number of users found TotalCount int32 `json:"total_count"` // A list of user identifiers UserIds []int64 `json:"user_ids"` // contains filtered or unexported fields }
Represents a list of users
func UnmarshalUsers ¶
func UnmarshalUsers(data json.RawMessage) (*Users, error)
func (*Users) MarshalJSON ¶
type ValidateOrderInfoRequest ¶
type ValidateOrderInfoRequest struct { // The invoice InputInvoice InputInvoice `json:"input_invoice"` // The order information, provided by the user; pass null if empty OrderInfo *OrderInfo `json:"order_info"` // Pass true to save the order information AllowSave bool `json:"allow_save"` }
type ValidatedOrderInfo ¶
type ValidatedOrderInfo struct { // Temporary identifier of the order information OrderInfoId string `json:"order_info_id"` // Available shipping options ShippingOptions []*ShippingOption `json:"shipping_options"` // contains filtered or unexported fields }
Contains a temporary identifier of validated order information, which is stored for one hour, and the available shipping options
func UnmarshalValidatedOrderInfo ¶
func UnmarshalValidatedOrderInfo(data json.RawMessage) (*ValidatedOrderInfo, error)
func (*ValidatedOrderInfo) GetClass ¶
func (*ValidatedOrderInfo) GetClass() string
func (*ValidatedOrderInfo) GetType ¶
func (*ValidatedOrderInfo) GetType() string
func (*ValidatedOrderInfo) MarshalJSON ¶
func (entity *ValidatedOrderInfo) MarshalJSON() ([]byte, error)
type VectorPathCommand ¶
type VectorPathCommand interface {
VectorPathCommandType() string
}
Represents a vector path command
func UnmarshalListOfVectorPathCommand ¶
func UnmarshalListOfVectorPathCommand(dataList []json.RawMessage) ([]VectorPathCommand, error)
func UnmarshalVectorPathCommand ¶
func UnmarshalVectorPathCommand(data json.RawMessage) (VectorPathCommand, error)
type VectorPathCommandCubicBezierCurve ¶
type VectorPathCommandCubicBezierCurve struct { // The start control point of the curve StartControlPoint *Point `json:"start_control_point"` // The end control point of the curve EndControlPoint *Point `json:"end_control_point"` // The end point of the curve EndPoint *Point `json:"end_point"` // contains filtered or unexported fields }
A cubic Bézier curve to a given point
func UnmarshalVectorPathCommandCubicBezierCurve ¶
func UnmarshalVectorPathCommandCubicBezierCurve(data json.RawMessage) (*VectorPathCommandCubicBezierCurve, error)
func (*VectorPathCommandCubicBezierCurve) GetClass ¶
func (*VectorPathCommandCubicBezierCurve) GetClass() string
func (*VectorPathCommandCubicBezierCurve) GetType ¶
func (*VectorPathCommandCubicBezierCurve) GetType() string
func (*VectorPathCommandCubicBezierCurve) MarshalJSON ¶
func (entity *VectorPathCommandCubicBezierCurve) MarshalJSON() ([]byte, error)
func (*VectorPathCommandCubicBezierCurve) VectorPathCommandType ¶
func (*VectorPathCommandCubicBezierCurve) VectorPathCommandType() string
type VectorPathCommandLine ¶
type VectorPathCommandLine struct { // The end point of the straight line EndPoint *Point `json:"end_point"` // contains filtered or unexported fields }
A straight line to a given point
func UnmarshalVectorPathCommandLine ¶
func UnmarshalVectorPathCommandLine(data json.RawMessage) (*VectorPathCommandLine, error)
func (*VectorPathCommandLine) GetClass ¶
func (*VectorPathCommandLine) GetClass() string
func (*VectorPathCommandLine) GetType ¶
func (*VectorPathCommandLine) GetType() string
func (*VectorPathCommandLine) MarshalJSON ¶
func (entity *VectorPathCommandLine) MarshalJSON() ([]byte, error)
func (*VectorPathCommandLine) VectorPathCommandType ¶
func (*VectorPathCommandLine) VectorPathCommandType() string
type Venue ¶
type Venue struct { // Venue location; as defined by the sender Location *Location `json:"location"` // Venue name; as defined by the sender Title string `json:"title"` // Venue address; as defined by the sender Address string `json:"address"` // Provider of the venue database; as defined by the sender. Currently, only "foursquare" and "gplaces" (Google Places) need to be supported Provider string `json:"provider"` // Identifier of the venue in the provider database; as defined by the sender Id string `json:"id"` // Type of the venue in the provider database; as defined by the sender Type string `json:"type"` // contains filtered or unexported fields }
Describes a venue
func UnmarshalVenue ¶
func UnmarshalVenue(data json.RawMessage) (*Venue, error)
func (*Venue) MarshalJSON ¶
type Video ¶
type Video struct { // Duration of the video, in seconds; as defined by the sender Duration int32 `json:"duration"` // Video width; as defined by the sender Width int32 `json:"width"` // Video height; as defined by the sender Height int32 `json:"height"` // Original name of the file; as defined by the sender FileName string `json:"file_name"` // MIME type of the file; as defined by the sender MimeType string `json:"mime_type"` // True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets HasStickers bool `json:"has_stickers"` // True, if the video is supposed to be streamed SupportsStreaming bool `json:"supports_streaming"` // Video minithumbnail; may be null Minithumbnail *Minithumbnail `json:"minithumbnail"` // Video thumbnail in JPEG or MPEG4 format; as defined by the sender; may be null Thumbnail *Thumbnail `json:"thumbnail"` // File containing the video Video *File `json:"video"` // contains filtered or unexported fields }
Describes a video file
func UnmarshalVideo ¶
func UnmarshalVideo(data json.RawMessage) (*Video, error)
func (*Video) MarshalJSON ¶
type VideoChat ¶
type VideoChat struct { // Group call identifier of an active video chat; 0 if none. Full information about the video chat can be received through the method getGroupCall GroupCallId int32 `json:"group_call_id"` // True, if the video chat has participants HasParticipants bool `json:"has_participants"` // Default group call participant identifier to join the video chat; may be null DefaultParticipantId MessageSender `json:"default_participant_id"` // contains filtered or unexported fields }
Describes a video chat
func UnmarshalVideoChat ¶
func UnmarshalVideoChat(data json.RawMessage) (*VideoChat, error)
func (*VideoChat) MarshalJSON ¶
func (*VideoChat) UnmarshalJSON ¶
type VideoNote ¶
type VideoNote struct { // Duration of the video, in seconds; as defined by the sender Duration int32 `json:"duration"` // A waveform representation of the video note's audio in 5-bit format; may be empty if unknown Waveform []byte `json:"waveform"` // Video width and height; as defined by the sender Length int32 `json:"length"` // Video minithumbnail; may be null Minithumbnail *Minithumbnail `json:"minithumbnail"` // Video thumbnail in JPEG format; as defined by the sender; may be null Thumbnail *Thumbnail `json:"thumbnail"` // Result of speech recognition in the video note; may be null SpeechRecognitionResult SpeechRecognitionResult `json:"speech_recognition_result"` // File containing the video Video *File `json:"video"` // contains filtered or unexported fields }
Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format
func UnmarshalVideoNote ¶
func UnmarshalVideoNote(data json.RawMessage) (*VideoNote, error)
func (*VideoNote) MarshalJSON ¶
func (*VideoNote) UnmarshalJSON ¶ added in v1.2.3
type ViewMessagesRequest ¶
type ViewMessagesRequest struct { // Chat identifier ChatId int64 `json:"chat_id"` // The identifiers of the messages being viewed MessageIds []int64 `json:"message_ids"` // Source of the message view; pass null to guess the source based on chat open state Source MessageSource `json:"source"` // Pass true to mark as read the specified messages even the chat is closed ForceRead bool `json:"force_read"` }
type ViewPremiumFeatureRequest ¶ added in v1.2.3
type ViewPremiumFeatureRequest struct { // The viewed premium feature Feature PremiumFeature `json:"feature"` }
type ViewTrendingStickerSetsRequest ¶
type ViewTrendingStickerSetsRequest struct { // Identifiers of viewed trending sticker sets StickerSetIds []JsonInt64 `json:"sticker_set_ids"` }
type VoiceNote ¶
type VoiceNote struct { // Duration of the voice note, in seconds; as defined by the sender Duration int32 `json:"duration"` // A waveform representation of the voice note in 5-bit format Waveform []byte `json:"waveform"` // MIME type of the file; as defined by the sender MimeType string `json:"mime_type"` // Result of speech recognition in the voice note; may be null SpeechRecognitionResult SpeechRecognitionResult `json:"speech_recognition_result"` // File containing the voice note Voice *File `json:"voice"` // contains filtered or unexported fields }
Describes a voice note. The voice note must be encoded with the Opus codec, and stored inside an OGG container. Voice notes can have only a single audio channel
func UnmarshalVoiceNote ¶
func UnmarshalVoiceNote(data json.RawMessage) (*VoiceNote, error)
func (*VoiceNote) MarshalJSON ¶
func (*VoiceNote) UnmarshalJSON ¶ added in v1.2.3
type WebApp ¶ added in v1.2.3
type WebApp struct { // Web App short name ShortName string `json:"short_name"` // Web App title Title string `json:"title"` // Web App description Description string `json:"description"` // Web App photo Photo *Photo `json:"photo"` // Web App animation; may be null Animation *Animation `json:"animation"` // contains filtered or unexported fields }
Describes a Web App. Use getInternalLink with internalLinkTypeWebApp to share the Web App
func UnmarshalWebApp ¶ added in v1.2.3
func UnmarshalWebApp(data json.RawMessage) (*WebApp, error)
func (*WebApp) MarshalJSON ¶ added in v1.2.3
type WebAppInfo ¶ added in v1.0.6
type WebAppInfo struct { // Unique identifier for the Web App launch LaunchId JsonInt64 `json:"launch_id"` // A Web App URL to open in a web view Url string `json:"url"` // contains filtered or unexported fields }
Contains information about a Web App
func UnmarshalWebAppInfo ¶ added in v1.0.6
func UnmarshalWebAppInfo(data json.RawMessage) (*WebAppInfo, error)
func (*WebAppInfo) GetClass ¶ added in v1.0.6
func (*WebAppInfo) GetClass() string
func (*WebAppInfo) GetType ¶ added in v1.0.6
func (*WebAppInfo) GetType() string
func (*WebAppInfo) MarshalJSON ¶ added in v1.0.6
func (entity *WebAppInfo) MarshalJSON() ([]byte, error)
type WebPage ¶
type WebPage struct { // Original URL of the link Url string `json:"url"` // URL to display DisplayUrl string `json:"display_url"` // Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else Type string `json:"type"` // Short name of the site (e.g., Google Docs, App Store) SiteName string `json:"site_name"` // Title of the content Title string `json:"title"` // Description of the content Description *FormattedText `json:"description"` // Image representing the content; may be null Photo *Photo `json:"photo"` // URL to show in the embedded preview EmbedUrl string `json:"embed_url"` // MIME type of the embedded preview, (e.g., text/html or video/mp4) EmbedType string `json:"embed_type"` // Width of the embedded preview EmbedWidth int32 `json:"embed_width"` // Height of the embedded preview EmbedHeight int32 `json:"embed_height"` // Duration of the content, in seconds Duration int32 `json:"duration"` // Author of the content Author string `json:"author"` // Preview of the content as an animation, if available; may be null Animation *Animation `json:"animation"` // Preview of the content as an audio file, if available; may be null Audio *Audio `json:"audio"` // Preview of the content as a document, if available; may be null Document *Document `json:"document"` // Preview of the content as a sticker for small WEBP files, if available; may be null Sticker *Sticker `json:"sticker"` // Preview of the content as a video, if available; may be null Video *Video `json:"video"` // Preview of the content as a video note, if available; may be null VideoNote *VideoNote `json:"video_note"` // Preview of the content as a voice note, if available; may be null VoiceNote *VoiceNote `json:"voice_note"` // The identifier of the sender of the previewed story; 0 if none StorySenderChatId int64 `json:"story_sender_chat_id"` // The identifier of the previewed story; 0 if none StoryId int32 `json:"story_id"` // Version of web page instant view (currently, can be 1 or 2); 0 if none InstantViewVersion int32 `json:"instant_view_version"` // contains filtered or unexported fields }
Describes a web page preview
func UnmarshalWebPage ¶
func UnmarshalWebPage(data json.RawMessage) (*WebPage, error)
func (*WebPage) MarshalJSON ¶
type WebPageInstantView ¶
type WebPageInstantView struct { // Content of the web page PageBlocks []PageBlock `json:"page_blocks"` // Number of the instant view views; 0 if unknown ViewCount int32 `json:"view_count"` // Version of the instant view; currently, can be 1 or 2 Version int32 `json:"version"` // True, if the instant view must be shown from right to left IsRtl bool `json:"is_rtl"` // True, if the instant view contains the full page. A network request might be needed to get the full web page instant view IsFull bool `json:"is_full"` // An internal link to be opened to leave feedback about the instant view FeedbackLink InternalLinkType `json:"feedback_link"` // contains filtered or unexported fields }
Describes an instant view page for a web page
func UnmarshalWebPageInstantView ¶
func UnmarshalWebPageInstantView(data json.RawMessage) (*WebPageInstantView, error)
func (*WebPageInstantView) GetClass ¶
func (*WebPageInstantView) GetClass() string
func (*WebPageInstantView) GetType ¶
func (*WebPageInstantView) GetType() string
func (*WebPageInstantView) MarshalJSON ¶
func (entity *WebPageInstantView) MarshalJSON() ([]byte, error)
func (*WebPageInstantView) UnmarshalJSON ¶
func (webPageInstantView *WebPageInstantView) UnmarshalJSON(data []byte) error