client

package
v0.7.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 11 Imported by: 89

Documentation

Index

Constants

View Source
const (
	ClassAuthenticationCodeType                 = "AuthenticationCodeType"
	ClassEmailAddressAuthentication             = "EmailAddressAuthentication"
	ClassEmailAddressResetState                 = "EmailAddressResetState"
	ClassAuthorizationState                     = "AuthorizationState"
	ClassFirebaseDeviceVerificationParameters   = "FirebaseDeviceVerificationParameters"
	ClassInputFile                              = "InputFile"
	ClassThumbnailFormat                        = "ThumbnailFormat"
	ClassMaskPoint                              = "MaskPoint"
	ClassStickerFormat                          = "StickerFormat"
	ClassStickerType                            = "StickerType"
	ClassStickerFullType                        = "StickerFullType"
	ClassPollType                               = "PollType"
	ClassUserType                               = "UserType"
	ClassBusinessAwayMessageSchedule            = "BusinessAwayMessageSchedule"
	ClassChatPhotoStickerType                   = "ChatPhotoStickerType"
	ClassInputChatPhoto                         = "InputChatPhoto"
	ClassStarSubscriptionType                   = "StarSubscriptionType"
	ClassStarTransactionDirection               = "StarTransactionDirection"
	ClassBotTransactionPurpose                  = "BotTransactionPurpose"
	ClassChatTransactionPurpose                 = "ChatTransactionPurpose"
	ClassUserTransactionPurpose                 = "UserTransactionPurpose"
	ClassStarTransactionPartner                 = "StarTransactionPartner"
	ClassGiveawayParticipantStatus              = "GiveawayParticipantStatus"
	ClassGiveawayInfo                           = "GiveawayInfo"
	ClassGiveawayPrize                          = "GiveawayPrize"
	ClassChatMemberStatus                       = "ChatMemberStatus"
	ClassChatMembersFilter                      = "ChatMembersFilter"
	ClassSupergroupMembersFilter                = "SupergroupMembersFilter"
	ClassInviteLinkChatType                     = "InviteLinkChatType"
	ClassSecretChatState                        = "SecretChatState"
	ClassMessageSender                          = "MessageSender"
	ClassMessageReadDate                        = "MessageReadDate"
	ClassMessageOrigin                          = "MessageOrigin"
	ClassReactionType                           = "ReactionType"
	ClassMessageEffectType                      = "MessageEffectType"
	ClassMessageSendingState                    = "MessageSendingState"
	ClassMessageReplyTo                         = "MessageReplyTo"
	ClassInputMessageReplyTo                    = "InputMessageReplyTo"
	ClassMessageSource                          = "MessageSource"
	ClassReportChatSponsoredMessageResult       = "ReportChatSponsoredMessageResult"
	ClassNotificationSettingsScope              = "NotificationSettingsScope"
	ClassReactionNotificationSource             = "ReactionNotificationSource"
	ClassChatType                               = "ChatType"
	ClassChatList                               = "ChatList"
	ClassChatSource                             = "ChatSource"
	ClassChatAvailableReactions                 = "ChatAvailableReactions"
	ClassPublicChatType                         = "PublicChatType"
	ClassChatActionBar                          = "ChatActionBar"
	ClassKeyboardButtonType                     = "KeyboardButtonType"
	ClassInlineKeyboardButtonType               = "InlineKeyboardButtonType"
	ClassReplyMarkup                            = "ReplyMarkup"
	ClassLoginUrlInfo                           = "LoginUrlInfo"
	ClassWebAppOpenMode                         = "WebAppOpenMode"
	ClassSavedMessagesTopicType                 = "SavedMessagesTopicType"
	ClassRichText                               = "RichText"
	ClassPageBlockHorizontalAlignment           = "PageBlockHorizontalAlignment"
	ClassPageBlockVerticalAlignment             = "PageBlockVerticalAlignment"
	ClassPageBlock                              = "PageBlock"
	ClassLinkPreviewAlbumMedia                  = "LinkPreviewAlbumMedia"
	ClassLinkPreviewType                        = "LinkPreviewType"
	ClassCollectibleItemType                    = "CollectibleItemType"
	ClassInputCredentials                       = "InputCredentials"
	ClassPaymentProvider                        = "PaymentProvider"
	ClassPaymentFormType                        = "PaymentFormType"
	ClassPaymentReceiptType                     = "PaymentReceiptType"
	ClassInputInvoice                           = "InputInvoice"
	ClassPaidMedia                              = "PaidMedia"
	ClassPassportElementType                    = "PassportElementType"
	ClassPassportElement                        = "PassportElement"
	ClassInputPassportElement                   = "InputPassportElement"
	ClassPassportElementErrorSource             = "PassportElementErrorSource"
	ClassInputPassportElementErrorSource        = "InputPassportElementErrorSource"
	ClassMessageContent                         = "MessageContent"
	ClassTextEntityType                         = "TextEntityType"
	ClassInputPaidMediaType                     = "InputPaidMediaType"
	ClassMessageSchedulingState                 = "MessageSchedulingState"
	ClassMessageSelfDestructType                = "MessageSelfDestructType"
	ClassInputMessageContent                    = "InputMessageContent"
	ClassSearchMessagesFilter                   = "SearchMessagesFilter"
	ClassChatAction                             = "ChatAction"
	ClassUserStatus                             = "UserStatus"
	ClassEmojiCategorySource                    = "EmojiCategorySource"
	ClassEmojiCategoryType                      = "EmojiCategoryType"
	ClassStoryAreaType                          = "StoryAreaType"
	ClassInputStoryAreaType                     = "InputStoryAreaType"
	ClassStoryContent                           = "StoryContent"
	ClassInputStoryContent                      = "InputStoryContent"
	ClassStoryList                              = "StoryList"
	ClassStoryOrigin                            = "StoryOrigin"
	ClassStoryInteractionType                   = "StoryInteractionType"
	ClassPublicForward                          = "PublicForward"
	ClassChatBoostSource                        = "ChatBoostSource"
	ClassResendCodeReason                       = "ResendCodeReason"
	ClassCallDiscardReason                      = "CallDiscardReason"
	ClassCallServerType                         = "CallServerType"
	ClassCallState                              = "CallState"
	ClassGroupCallVideoQuality                  = "GroupCallVideoQuality"
	ClassCallProblem                            = "CallProblem"
	ClassFirebaseAuthenticationSettings         = "FirebaseAuthenticationSettings"
	ClassReactionUnavailabilityReason           = "ReactionUnavailabilityReason"
	ClassDiceStickers                           = "DiceStickers"
	ClassSpeechRecognitionResult                = "SpeechRecognitionResult"
	ClassBotWriteAccessAllowReason              = "BotWriteAccessAllowReason"
	ClassTargetChat                             = "TargetChat"
	ClassInputInlineQueryResult                 = "InputInlineQueryResult"
	ClassInlineQueryResult                      = "InlineQueryResult"
	ClassInlineQueryResultsButtonType           = "InlineQueryResultsButtonType"
	ClassCallbackQueryPayload                   = "CallbackQueryPayload"
	ClassChatEventAction                        = "ChatEventAction"
	ClassLanguagePackStringValue                = "LanguagePackStringValue"
	ClassPremiumLimitType                       = "PremiumLimitType"
	ClassPremiumFeature                         = "PremiumFeature"
	ClassBusinessFeature                        = "BusinessFeature"
	ClassPremiumStoryFeature                    = "PremiumStoryFeature"
	ClassPremiumSource                          = "PremiumSource"
	ClassStorePaymentPurpose                    = "StorePaymentPurpose"
	ClassTelegramPaymentPurpose                 = "TelegramPaymentPurpose"
	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"
	ClassCanSendMessageToUserResult             = "CanSendMessageToUserResult"
	ClassSessionType                            = "SessionType"
	ClassReportReason                           = "ReportReason"
	ClassReportChatResult                       = "ReportChatResult"
	ClassReportStoryResult                      = "ReportStoryResult"
	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"
	ClassChatStatisticsObjectType               = "ChatStatisticsObjectType"
	ClassChatStatistics                         = "ChatStatistics"
	ClassRevenueWithdrawalState                 = "RevenueWithdrawalState"
	ClassChatRevenueTransactionType             = "ChatRevenueTransactionType"
	ClassVectorPathCommand                      = "VectorPathCommand"
	ClassBotCommandScope                        = "BotCommandScope"
	ClassPhoneNumberCodeType                    = "PhoneNumberCodeType"
	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"
	ClassOutline                                = "Outline"
	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"
	ClassAlternativeVideo                       = "AlternativeVideo"
	ClassBackground                             = "Background"
	ClassBackgrounds                            = "Backgrounds"
	ClassChatBackground                         = "ChatBackground"
	ClassProfilePhoto                           = "ProfilePhoto"
	ClassChatPhotoInfo                          = "ChatPhotoInfo"
	ClassBotCommand                             = "BotCommand"
	ClassBotCommands                            = "BotCommands"
	ClassBotMenuButton                          = "BotMenuButton"
	ClassChatLocation                           = "ChatLocation"
	ClassBirthdate                              = "Birthdate"
	ClassCloseBirthdayUser                      = "CloseBirthdayUser"
	ClassBusinessLocation                       = "BusinessLocation"
	ClassBusinessRecipients                     = "BusinessRecipients"
	ClassBusinessAwayMessageSettings            = "BusinessAwayMessageSettings"
	ClassBusinessGreetingMessageSettings        = "BusinessGreetingMessageSettings"
	ClassBusinessConnectedBot                   = "BusinessConnectedBot"
	ClassBusinessStartPage                      = "BusinessStartPage"
	ClassInputBusinessStartPage                 = "InputBusinessStartPage"
	ClassBusinessOpeningHoursInterval           = "BusinessOpeningHoursInterval"
	ClassBusinessOpeningHours                   = "BusinessOpeningHours"
	ClassBusinessInfo                           = "BusinessInfo"
	ClassBusinessChatLink                       = "BusinessChatLink"
	ClassBusinessChatLinks                      = "BusinessChatLinks"
	ClassInputBusinessChatLink                  = "InputBusinessChatLink"
	ClassBusinessChatLinkInfo                   = "BusinessChatLinkInfo"
	ClassChatPhotoSticker                       = "ChatPhotoSticker"
	ClassAnimatedChatPhoto                      = "AnimatedChatPhoto"
	ClassChatPhoto                              = "ChatPhoto"
	ClassChatPhotos                             = "ChatPhotos"
	ClassChatPermissions                        = "ChatPermissions"
	ClassChatAdministratorRights                = "ChatAdministratorRights"
	ClassStarSubscriptionPricing                = "StarSubscriptionPricing"
	ClassStarSubscription                       = "StarSubscription"
	ClassStarSubscriptions                      = "StarSubscriptions"
	ClassProductInfo                            = "ProductInfo"
	ClassPremiumPaymentOption                   = "PremiumPaymentOption"
	ClassPremiumStatePaymentOption              = "PremiumStatePaymentOption"
	ClassPremiumGiftCodePaymentOption           = "PremiumGiftCodePaymentOption"
	ClassPremiumGiftCodePaymentOptions          = "PremiumGiftCodePaymentOptions"
	ClassPremiumGiftCodeInfo                    = "PremiumGiftCodeInfo"
	ClassStarPaymentOption                      = "StarPaymentOption"
	ClassStarPaymentOptions                     = "StarPaymentOptions"
	ClassStarGiveawayWinnerOption               = "StarGiveawayWinnerOption"
	ClassStarGiveawayPaymentOption              = "StarGiveawayPaymentOption"
	ClassStarGiveawayPaymentOptions             = "StarGiveawayPaymentOptions"
	ClassGift                                   = "Gift"
	ClassGifts                                  = "Gifts"
	ClassUserGift                               = "UserGift"
	ClassUserGifts                              = "UserGifts"
	ClassStarTransaction                        = "StarTransaction"
	ClassStarTransactions                       = "StarTransactions"
	ClassAccentColor                            = "AccentColor"
	ClassProfileAccentColors                    = "ProfileAccentColors"
	ClassProfileAccentColor                     = "ProfileAccentColor"
	ClassEmojiStatus                            = "EmojiStatus"
	ClassEmojiStatuses                          = "EmojiStatuses"
	ClassUsernames                              = "Usernames"
	ClassUser                                   = "User"
	ClassBotInfo                                = "BotInfo"
	ClassUserFullInfo                           = "UserFullInfo"
	ClassUsers                                  = "Users"
	ClassFoundUsers                             = "FoundUsers"
	ClassChatAdministrator                      = "ChatAdministrator"
	ClassChatAdministrators                     = "ChatAdministrators"
	ClassChatMember                             = "ChatMember"
	ClassChatMembers                            = "ChatMembers"
	ClassChatInviteLink                         = "ChatInviteLink"
	ClassChatInviteLinks                        = "ChatInviteLinks"
	ClassChatInviteLinkCount                    = "ChatInviteLinkCount"
	ClassChatInviteLinkCounts                   = "ChatInviteLinkCounts"
	ClassChatInviteLinkMember                   = "ChatInviteLinkMember"
	ClassChatInviteLinkMembers                  = "ChatInviteLinkMembers"
	ClassChatInviteLinkSubscriptionInfo         = "ChatInviteLinkSubscriptionInfo"
	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"
	ClassForwardSource                          = "ForwardSource"
	ClassPaidReactor                            = "PaidReactor"
	ClassMessageForwardInfo                     = "MessageForwardInfo"
	ClassMessageImportInfo                      = "MessageImportInfo"
	ClassMessageReplyInfo                       = "MessageReplyInfo"
	ClassMessageReaction                        = "MessageReaction"
	ClassMessageReactions                       = "MessageReactions"
	ClassMessageInteractionInfo                 = "MessageInteractionInfo"
	ClassUnreadReaction                         = "UnreadReaction"
	ClassMessageEffect                          = "MessageEffect"
	ClassTextQuote                              = "TextQuote"
	ClassInputTextQuote                         = "InputTextQuote"
	ClassFactCheck                              = "FactCheck"
	ClassMessage                                = "Message"
	ClassMessages                               = "Messages"
	ClassFoundMessages                          = "FoundMessages"
	ClassFoundChatMessages                      = "FoundChatMessages"
	ClassMessagePosition                        = "MessagePosition"
	ClassMessagePositions                       = "MessagePositions"
	ClassMessageCalendarDay                     = "MessageCalendarDay"
	ClassMessageCalendar                        = "MessageCalendar"
	ClassBusinessMessage                        = "BusinessMessage"
	ClassBusinessMessages                       = "BusinessMessages"
	ClassMessageSponsor                         = "MessageSponsor"
	ClassSponsoredMessage                       = "SponsoredMessage"
	ClassSponsoredMessages                      = "SponsoredMessages"
	ClassReportOption                           = "ReportOption"
	ClassFileDownload                           = "FileDownload"
	ClassDownloadedFileCounts                   = "DownloadedFileCounts"
	ClassFoundFileDownloads                     = "FoundFileDownloads"
	ClassChatNotificationSettings               = "ChatNotificationSettings"
	ClassScopeNotificationSettings              = "ScopeNotificationSettings"
	ClassReactionNotificationSettings           = "ReactionNotificationSettings"
	ClassDraftMessage                           = "DraftMessage"
	ClassChatFolderIcon                         = "ChatFolderIcon"
	ClassChatFolder                             = "ChatFolder"
	ClassChatFolderInfo                         = "ChatFolderInfo"
	ClassChatFolderInviteLink                   = "ChatFolderInviteLink"
	ClassChatFolderInviteLinks                  = "ChatFolderInviteLinks"
	ClassChatFolderInviteLinkInfo               = "ChatFolderInviteLinkInfo"
	ClassRecommendedChatFolder                  = "RecommendedChatFolder"
	ClassRecommendedChatFolders                 = "RecommendedChatFolders"
	ClassArchiveChatListSettings                = "ArchiveChatListSettings"
	ClassChatLists                              = "ChatLists"
	ClassChatPosition                           = "ChatPosition"
	ClassSavedMessagesTag                       = "SavedMessagesTag"
	ClassSavedMessagesTags                      = "SavedMessagesTags"
	ClassBusinessBotManageBar                   = "BusinessBotManageBar"
	ClassVideoChat                              = "VideoChat"
	ClassChat                                   = "Chat"
	ClassChats                                  = "Chats"
	ClassFailedToAddMember                      = "FailedToAddMember"
	ClassFailedToAddMembers                     = "FailedToAddMembers"
	ClassCreatedBasicGroupChat                  = "CreatedBasicGroupChat"
	ClassKeyboardButton                         = "KeyboardButton"
	ClassInlineKeyboardButton                   = "InlineKeyboardButton"
	ClassThemeParameters                        = "ThemeParameters"
	ClassFoundWebApp                            = "FoundWebApp"
	ClassWebAppInfo                             = "WebAppInfo"
	ClassMainWebApp                             = "MainWebApp"
	ClassWebAppOpenParameters                   = "WebAppOpenParameters"
	ClassMessageThreadInfo                      = "MessageThreadInfo"
	ClassSavedMessagesTopic                     = "SavedMessagesTopic"
	ClassForumTopicIcon                         = "ForumTopicIcon"
	ClassForumTopicInfo                         = "ForumTopicInfo"
	ClassForumTopic                             = "ForumTopic"
	ClassForumTopics                            = "ForumTopics"
	ClassLinkPreviewOptions                     = "LinkPreviewOptions"
	ClassSharedUser                             = "SharedUser"
	ClassSharedChat                             = "SharedChat"
	ClassThemeSettings                          = "ThemeSettings"
	ClassPageBlockCaption                       = "PageBlockCaption"
	ClassPageBlockListItem                      = "PageBlockListItem"
	ClassPageBlockTableCell                     = "PageBlockTableCell"
	ClassPageBlockRelatedArticle                = "PageBlockRelatedArticle"
	ClassWebPageInstantView                     = "WebPageInstantView"
	ClassLinkPreview                            = "LinkPreview"
	ClassCountryInfo                            = "CountryInfo"
	ClassCountries                              = "Countries"
	ClassPhoneNumberInfo                        = "PhoneNumberInfo"
	ClassCollectibleItemInfo                    = "CollectibleItemInfo"
	ClassBankCardActionOpenUrl                  = "BankCardActionOpenUrl"
	ClassBankCardInfo                           = "BankCardInfo"
	ClassAddress                                = "Address"
	ClassLocationAddress                        = "LocationAddress"
	ClassLabeledPricePart                       = "LabeledPricePart"
	ClassInvoice                                = "Invoice"
	ClassOrderInfo                              = "OrderInfo"
	ClassShippingOption                         = "ShippingOption"
	ClassSavedCredentials                       = "SavedCredentials"
	ClassPaymentOption                          = "PaymentOption"
	ClassPaymentForm                            = "PaymentForm"
	ClassValidatedOrderInfo                     = "ValidatedOrderInfo"
	ClassPaymentResult                          = "PaymentResult"
	ClassPaymentReceipt                         = "PaymentReceipt"
	ClassGiveawayParameters                     = "GiveawayParameters"
	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"
	ClassInputPaidMedia                         = "InputPaidMedia"
	ClassMessageSendOptions                     = "MessageSendOptions"
	ClassMessageCopyOptions                     = "MessageCopyOptions"
	ClassMessageProperties                      = "MessageProperties"
	ClassEmojiKeyword                           = "EmojiKeyword"
	ClassEmojiKeywords                          = "EmojiKeywords"
	ClassStickers                               = "Stickers"
	ClassEmojis                                 = "Emojis"
	ClassStickerSet                             = "StickerSet"
	ClassStickerSetInfo                         = "StickerSetInfo"
	ClassStickerSets                            = "StickerSets"
	ClassTrendingStickerSets                    = "TrendingStickerSets"
	ClassEmojiCategory                          = "EmojiCategory"
	ClassEmojiCategories                        = "EmojiCategories"
	ClassCurrentWeather                         = "CurrentWeather"
	ClassStoryAreaPosition                      = "StoryAreaPosition"
	ClassStoryArea                              = "StoryArea"
	ClassInputStoryArea                         = "InputStoryArea"
	ClassInputStoryAreas                        = "InputStoryAreas"
	ClassStoryVideo                             = "StoryVideo"
	ClassStoryRepostInfo                        = "StoryRepostInfo"
	ClassStoryInteractionInfo                   = "StoryInteractionInfo"
	ClassStory                                  = "Story"
	ClassStories                                = "Stories"
	ClassFoundStories                           = "FoundStories"
	ClassStoryFullId                            = "StoryFullId"
	ClassStoryInfo                              = "StoryInfo"
	ClassChatActiveStories                      = "ChatActiveStories"
	ClassStoryInteraction                       = "StoryInteraction"
	ClassStoryInteractions                      = "StoryInteractions"
	ClassQuickReplyMessage                      = "QuickReplyMessage"
	ClassQuickReplyMessages                     = "QuickReplyMessages"
	ClassQuickReplyShortcut                     = "QuickReplyShortcut"
	ClassPublicForwards                         = "PublicForwards"
	ClassBotMediaPreview                        = "BotMediaPreview"
	ClassBotMediaPreviews                       = "BotMediaPreviews"
	ClassBotMediaPreviewInfo                    = "BotMediaPreviewInfo"
	ClassChatBoostLevelFeatures                 = "ChatBoostLevelFeatures"
	ClassChatBoostFeatures                      = "ChatBoostFeatures"
	ClassPrepaidGiveaway                        = "PrepaidGiveaway"
	ClassChatBoostStatus                        = "ChatBoostStatus"
	ClassChatBoost                              = "ChatBoost"
	ClassFoundChatBoosts                        = "FoundChatBoosts"
	ClassChatBoostSlot                          = "ChatBoostSlot"
	ClassChatBoostSlots                         = "ChatBoostSlots"
	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"
	ClassBusinessConnection                     = "BusinessConnection"
	ClassAttachmentMenuBotColor                 = "AttachmentMenuBotColor"
	ClassAttachmentMenuBot                      = "AttachmentMenuBot"
	ClassSentWebAppMessage                      = "SentWebAppMessage"
	ClassHttpUrl                                = "HttpUrl"
	ClassUserLink                               = "UserLink"
	ClassTargetChatTypes                        = "TargetChatTypes"
	ClassInlineQueryResultsButton               = "InlineQueryResultsButton"
	ClassInlineQueryResults                     = "InlineQueryResults"
	ClassPreparedInlineMessageId                = "PreparedInlineMessageId"
	ClassPreparedInlineMessage                  = "PreparedInlineMessage"
	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"
	ClassBusinessFeatures                       = "BusinessFeatures"
	ClassPremiumFeaturePromotionAnimation       = "PremiumFeaturePromotionAnimation"
	ClassBusinessFeaturePromotionAnimation      = "BusinessFeaturePromotionAnimation"
	ClassPremiumState                           = "PremiumState"
	ClassPushReceiverId                         = "PushReceiverId"
	ClassChatTheme                              = "ChatTheme"
	ClassTimeZone                               = "TimeZone"
	ClassTimeZones                              = "TimeZones"
	ClassHashtags                               = "Hashtags"
	ClassNotificationSound                      = "NotificationSound"
	ClassNotificationSounds                     = "NotificationSounds"
	ClassNotification                           = "Notification"
	ClassNotificationGroup                      = "NotificationGroup"
	ClassJsonObjectMember                       = "JsonObjectMember"
	ClassUserPrivacySettingRules                = "UserPrivacySettingRules"
	ClassReadDatePrivacySettings                = "ReadDatePrivacySettings"
	ClassNewChatPrivacySettings                 = "NewChatPrivacySettings"
	ClassAccountTtl                             = "AccountTtl"
	ClassMessageAutoDeleteTime                  = "MessageAutoDeleteTime"
	ClassSession                                = "Session"
	ClassSessions                               = "Sessions"
	ClassUnconfirmedSession                     = "UnconfirmedSession"
	ClassConnectedWebsite                       = "ConnectedWebsite"
	ClassConnectedWebsites                      = "ConnectedWebsites"
	ClassMessageLink                            = "MessageLink"
	ClassMessageLinkInfo                        = "MessageLinkInfo"
	ClassChatBoostLink                          = "ChatBoostLink"
	ClassChatBoostLinkInfo                      = "ChatBoostLinkInfo"
	ClassFilePart                               = "FilePart"
	ClassStorageStatisticsByFileType            = "StorageStatisticsByFileType"
	ClassStorageStatisticsByChat                = "StorageStatisticsByChat"
	ClassStorageStatistics                      = "StorageStatistics"
	ClassStorageStatisticsFast                  = "StorageStatisticsFast"
	ClassDatabaseStatistics                     = "DatabaseStatistics"
	ClassNetworkStatistics                      = "NetworkStatistics"
	ClassAutoDownloadSettings                   = "AutoDownloadSettings"
	ClassAutoDownloadSettingsPresets            = "AutoDownloadSettingsPresets"
	ClassScopeAutosaveSettings                  = "ScopeAutosaveSettings"
	ClassAutosaveSettingsException              = "AutosaveSettingsException"
	ClassAutosaveSettings                       = "AutosaveSettings"
	ClassFoundPosition                          = "FoundPosition"
	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"
	ClassChatStatisticsInteractionInfo          = "ChatStatisticsInteractionInfo"
	ClassChatStatisticsMessageSenderInfo        = "ChatStatisticsMessageSenderInfo"
	ClassChatStatisticsAdministratorActionsInfo = "ChatStatisticsAdministratorActionsInfo"
	ClassChatStatisticsInviterInfo              = "ChatStatisticsInviterInfo"
	ClassChatRevenueAmount                      = "ChatRevenueAmount"
	ClassChatRevenueStatistics                  = "ChatRevenueStatistics"
	ClassMessageStatistics                      = "MessageStatistics"
	ClassStoryStatistics                        = "StoryStatistics"
	ClassChatRevenueTransaction                 = "ChatRevenueTransaction"
	ClassChatRevenueTransactions                = "ChatRevenueTransactions"
	ClassStarRevenueStatus                      = "StarRevenueStatus"
	ClassStarRevenueStatistics                  = "StarRevenueStatistics"
	ClassPoint                                  = "Point"
	ClassUpdates                                = "Updates"
	ClassLogVerbosityLevel                      = "LogVerbosityLevel"
	ClassLogTags                                = "LogTags"
	ClassUserSupportInfo                        = "UserSupportInfo"
	ClassTestInt                                = "TestInt"
	ClassTestString                             = "TestString"
	ClassTestBytes                              = "TestBytes"
	ClassTestVectorInt                          = "TestVectorInt"
	ClassTestVectorIntObject                    = "TestVectorIntObject"
	ClassTestVectorString                       = "TestVectorString"
	ClassTestVectorStringObject                 = "TestVectorStringObject"
)
View Source
const (
	TypeError                                                   = "error"
	TypeOk                                                      = "ok"
	TypeAuthenticationCodeTypeTelegramMessage                   = "authenticationCodeTypeTelegramMessage"
	TypeAuthenticationCodeTypeSms                               = "authenticationCodeTypeSms"
	TypeAuthenticationCodeTypeSmsWord                           = "authenticationCodeTypeSmsWord"
	TypeAuthenticationCodeTypeSmsPhrase                         = "authenticationCodeTypeSmsPhrase"
	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"
	TypeFirebaseDeviceVerificationParametersSafetyNet           = "firebaseDeviceVerificationParametersSafetyNet"
	TypeFirebaseDeviceVerificationParametersPlayIntegrity       = "firebaseDeviceVerificationParametersPlayIntegrity"
	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"
	TypeOutline                                                 = "outline"
	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"
	TypeAlternativeVideo                                        = "alternativeVideo"
	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"
	TypeBirthdate                                               = "birthdate"
	TypeCloseBirthdayUser                                       = "closeBirthdayUser"
	TypeBusinessAwayMessageScheduleAlways                       = "businessAwayMessageScheduleAlways"
	TypeBusinessAwayMessageScheduleOutsideOfOpeningHours        = "businessAwayMessageScheduleOutsideOfOpeningHours"
	TypeBusinessAwayMessageScheduleCustom                       = "businessAwayMessageScheduleCustom"
	TypeBusinessLocation                                        = "businessLocation"
	TypeBusinessRecipients                                      = "businessRecipients"
	TypeBusinessAwayMessageSettings                             = "businessAwayMessageSettings"
	TypeBusinessGreetingMessageSettings                         = "businessGreetingMessageSettings"
	TypeBusinessConnectedBot                                    = "businessConnectedBot"
	TypeBusinessStartPage                                       = "businessStartPage"
	TypeInputBusinessStartPage                                  = "inputBusinessStartPage"
	TypeBusinessOpeningHoursInterval                            = "businessOpeningHoursInterval"
	TypeBusinessOpeningHours                                    = "businessOpeningHours"
	TypeBusinessInfo                                            = "businessInfo"
	TypeBusinessChatLink                                        = "businessChatLink"
	TypeBusinessChatLinks                                       = "businessChatLinks"
	TypeInputBusinessChatLink                                   = "inputBusinessChatLink"
	TypeBusinessChatLinkInfo                                    = "businessChatLinkInfo"
	TypeChatPhotoStickerTypeRegularOrMask                       = "chatPhotoStickerTypeRegularOrMask"
	TypeChatPhotoStickerTypeCustomEmoji                         = "chatPhotoStickerTypeCustomEmoji"
	TypeChatPhotoSticker                                        = "chatPhotoSticker"
	TypeAnimatedChatPhoto                                       = "animatedChatPhoto"
	TypeChatPhoto                                               = "chatPhoto"
	TypeChatPhotos                                              = "chatPhotos"
	TypeInputChatPhotoPrevious                                  = "inputChatPhotoPrevious"
	TypeInputChatPhotoStatic                                    = "inputChatPhotoStatic"
	TypeInputChatPhotoAnimation                                 = "inputChatPhotoAnimation"
	TypeInputChatPhotoSticker                                   = "inputChatPhotoSticker"
	TypeChatPermissions                                         = "chatPermissions"
	TypeChatAdministratorRights                                 = "chatAdministratorRights"
	TypeStarSubscriptionTypeChannel                             = "starSubscriptionTypeChannel"
	TypeStarSubscriptionTypeBot                                 = "starSubscriptionTypeBot"
	TypeStarSubscriptionPricing                                 = "starSubscriptionPricing"
	TypeStarSubscription                                        = "starSubscription"
	TypeStarSubscriptions                                       = "starSubscriptions"
	TypeProductInfo                                             = "productInfo"
	TypePremiumPaymentOption                                    = "premiumPaymentOption"
	TypePremiumStatePaymentOption                               = "premiumStatePaymentOption"
	TypePremiumGiftCodePaymentOption                            = "premiumGiftCodePaymentOption"
	TypePremiumGiftCodePaymentOptions                           = "premiumGiftCodePaymentOptions"
	TypePremiumGiftCodeInfo                                     = "premiumGiftCodeInfo"
	TypeStarPaymentOption                                       = "starPaymentOption"
	TypeStarPaymentOptions                                      = "starPaymentOptions"
	TypeStarGiveawayWinnerOption                                = "starGiveawayWinnerOption"
	TypeStarGiveawayPaymentOption                               = "starGiveawayPaymentOption"
	TypeStarGiveawayPaymentOptions                              = "starGiveawayPaymentOptions"
	TypeGift                                                    = "gift"
	TypeGifts                                                   = "gifts"
	TypeUserGift                                                = "userGift"
	TypeUserGifts                                               = "userGifts"
	TypeStarTransactionDirectionIncoming                        = "starTransactionDirectionIncoming"
	TypeStarTransactionDirectionOutgoing                        = "starTransactionDirectionOutgoing"
	TypeBotTransactionPurposePaidMedia                          = "botTransactionPurposePaidMedia"
	TypeBotTransactionPurposeInvoicePayment                     = "botTransactionPurposeInvoicePayment"
	TypeBotTransactionPurposeSubscription                       = "botTransactionPurposeSubscription"
	TypeChatTransactionPurposePaidMedia                         = "chatTransactionPurposePaidMedia"
	TypeChatTransactionPurposeJoin                              = "chatTransactionPurposeJoin"
	TypeChatTransactionPurposeReaction                          = "chatTransactionPurposeReaction"
	TypeChatTransactionPurposeGiveaway                          = "chatTransactionPurposeGiveaway"
	TypeUserTransactionPurposeGiftedStars                       = "userTransactionPurposeGiftedStars"
	TypeUserTransactionPurposeGiftSell                          = "userTransactionPurposeGiftSell"
	TypeUserTransactionPurposeGiftSend                          = "userTransactionPurposeGiftSend"
	TypeStarTransactionPartnerTelegram                          = "starTransactionPartnerTelegram"
	TypeStarTransactionPartnerAppStore                          = "starTransactionPartnerAppStore"
	TypeStarTransactionPartnerGooglePlay                        = "starTransactionPartnerGooglePlay"
	TypeStarTransactionPartnerFragment                          = "starTransactionPartnerFragment"
	TypeStarTransactionPartnerTelegramAds                       = "starTransactionPartnerTelegramAds"
	TypeStarTransactionPartnerTelegramApi                       = "starTransactionPartnerTelegramApi"
	TypeStarTransactionPartnerBot                               = "starTransactionPartnerBot"
	TypeStarTransactionPartnerBusiness                          = "starTransactionPartnerBusiness"
	TypeStarTransactionPartnerChat                              = "starTransactionPartnerChat"
	TypeStarTransactionPartnerUser                              = "starTransactionPartnerUser"
	TypeStarTransactionPartnerUnsupported                       = "starTransactionPartnerUnsupported"
	TypeStarTransaction                                         = "starTransaction"
	TypeStarTransactions                                        = "starTransactions"
	TypeGiveawayParticipantStatusEligible                       = "giveawayParticipantStatusEligible"
	TypeGiveawayParticipantStatusParticipating                  = "giveawayParticipantStatusParticipating"
	TypeGiveawayParticipantStatusAlreadyWasMember               = "giveawayParticipantStatusAlreadyWasMember"
	TypeGiveawayParticipantStatusAdministrator                  = "giveawayParticipantStatusAdministrator"
	TypeGiveawayParticipantStatusDisallowedCountry              = "giveawayParticipantStatusDisallowedCountry"
	TypeGiveawayInfoOngoing                                     = "giveawayInfoOngoing"
	TypeGiveawayInfoCompleted                                   = "giveawayInfoCompleted"
	TypeGiveawayPrizePremium                                    = "giveawayPrizePremium"
	TypeGiveawayPrizeStars                                      = "giveawayPrizeStars"
	TypeAccentColor                                             = "accentColor"
	TypeProfileAccentColors                                     = "profileAccentColors"
	TypeProfileAccentColor                                      = "profileAccentColor"
	TypeEmojiStatus                                             = "emojiStatus"
	TypeEmojiStatuses                                           = "emojiStatuses"
	TypeUsernames                                               = "usernames"
	TypeUser                                                    = "user"
	TypeBotInfo                                                 = "botInfo"
	TypeUserFullInfo                                            = "userFullInfo"
	TypeUsers                                                   = "users"
	TypeFoundUsers                                              = "foundUsers"
	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"
	TypeChatInviteLinkSubscriptionInfo                          = "chatInviteLinkSubscriptionInfo"
	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"
	TypeMessageReadDateRead                                     = "messageReadDateRead"
	TypeMessageReadDateUnread                                   = "messageReadDateUnread"
	TypeMessageReadDateTooOld                                   = "messageReadDateTooOld"
	TypeMessageReadDateUserPrivacyRestricted                    = "messageReadDateUserPrivacyRestricted"
	TypeMessageReadDateMyPrivacyRestricted                      = "messageReadDateMyPrivacyRestricted"
	TypeMessageViewer                                           = "messageViewer"
	TypeMessageViewers                                          = "messageViewers"
	TypeMessageOriginUser                                       = "messageOriginUser"
	TypeMessageOriginHiddenUser                                 = "messageOriginHiddenUser"
	TypeMessageOriginChat                                       = "messageOriginChat"
	TypeMessageOriginChannel                                    = "messageOriginChannel"
	TypeForwardSource                                           = "forwardSource"
	TypeReactionTypeEmoji                                       = "reactionTypeEmoji"
	TypeReactionTypeCustomEmoji                                 = "reactionTypeCustomEmoji"
	TypeReactionTypePaid                                        = "reactionTypePaid"
	TypePaidReactor                                             = "paidReactor"
	TypeMessageForwardInfo                                      = "messageForwardInfo"
	TypeMessageImportInfo                                       = "messageImportInfo"
	TypeMessageReplyInfo                                        = "messageReplyInfo"
	TypeMessageReaction                                         = "messageReaction"
	TypeMessageReactions                                        = "messageReactions"
	TypeMessageInteractionInfo                                  = "messageInteractionInfo"
	TypeUnreadReaction                                          = "unreadReaction"
	TypeMessageEffectTypeEmojiReaction                          = "messageEffectTypeEmojiReaction"
	TypeMessageEffectTypePremiumSticker                         = "messageEffectTypePremiumSticker"
	TypeMessageEffect                                           = "messageEffect"
	TypeMessageSendingStatePending                              = "messageSendingStatePending"
	TypeMessageSendingStateFailed                               = "messageSendingStateFailed"
	TypeTextQuote                                               = "textQuote"
	TypeInputTextQuote                                          = "inputTextQuote"
	TypeMessageReplyToMessage                                   = "messageReplyToMessage"
	TypeMessageReplyToStory                                     = "messageReplyToStory"
	TypeInputMessageReplyToMessage                              = "inputMessageReplyToMessage"
	TypeInputMessageReplyToExternalMessage                      = "inputMessageReplyToExternalMessage"
	TypeInputMessageReplyToStory                                = "inputMessageReplyToStory"
	TypeFactCheck                                               = "factCheck"
	TypeMessage                                                 = "message"
	TypeMessages                                                = "messages"
	TypeFoundMessages                                           = "foundMessages"
	TypeFoundChatMessages                                       = "foundChatMessages"
	TypeMessagePosition                                         = "messagePosition"
	TypeMessagePositions                                        = "messagePositions"
	TypeMessageCalendarDay                                      = "messageCalendarDay"
	TypeMessageCalendar                                         = "messageCalendar"
	TypeBusinessMessage                                         = "businessMessage"
	TypeBusinessMessages                                        = "businessMessages"
	TypeMessageSourceChatHistory                                = "messageSourceChatHistory"
	TypeMessageSourceMessageThreadHistory                       = "messageSourceMessageThreadHistory"
	TypeMessageSourceForumTopicHistory                          = "messageSourceForumTopicHistory"
	TypeMessageSourceHistoryPreview                             = "messageSourceHistoryPreview"
	TypeMessageSourceChatList                                   = "messageSourceChatList"
	TypeMessageSourceSearch                                     = "messageSourceSearch"
	TypeMessageSourceChatEventLog                               = "messageSourceChatEventLog"
	TypeMessageSourceNotification                               = "messageSourceNotification"
	TypeMessageSourceScreenshot                                 = "messageSourceScreenshot"
	TypeMessageSourceOther                                      = "messageSourceOther"
	TypeMessageSponsor                                          = "messageSponsor"
	TypeSponsoredMessage                                        = "sponsoredMessage"
	TypeSponsoredMessages                                       = "sponsoredMessages"
	TypeReportOption                                            = "reportOption"
	TypeReportChatSponsoredMessageResultOk                      = "reportChatSponsoredMessageResultOk"
	TypeReportChatSponsoredMessageResultFailed                  = "reportChatSponsoredMessageResultFailed"
	TypeReportChatSponsoredMessageResultOptionRequired          = "reportChatSponsoredMessageResultOptionRequired"
	TypeReportChatSponsoredMessageResultAdsHidden               = "reportChatSponsoredMessageResultAdsHidden"
	TypeReportChatSponsoredMessageResultPremiumRequired         = "reportChatSponsoredMessageResultPremiumRequired"
	TypeFileDownload                                            = "fileDownload"
	TypeDownloadedFileCounts                                    = "downloadedFileCounts"
	TypeFoundFileDownloads                                      = "foundFileDownloads"
	TypeNotificationSettingsScopePrivateChats                   = "notificationSettingsScopePrivateChats"
	TypeNotificationSettingsScopeGroupChats                     = "notificationSettingsScopeGroupChats"
	TypeNotificationSettingsScopeChannelChats                   = "notificationSettingsScopeChannelChats"
	TypeChatNotificationSettings                                = "chatNotificationSettings"
	TypeScopeNotificationSettings                               = "scopeNotificationSettings"
	TypeReactionNotificationSourceNone                          = "reactionNotificationSourceNone"
	TypeReactionNotificationSourceContacts                      = "reactionNotificationSourceContacts"
	TypeReactionNotificationSourceAll                           = "reactionNotificationSourceAll"
	TypeReactionNotificationSettings                            = "reactionNotificationSettings"
	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"
	TypeSavedMessagesTag                                        = "savedMessagesTag"
	TypeSavedMessagesTags                                       = "savedMessagesTags"
	TypeBusinessBotManageBar                                    = "businessBotManageBar"
	TypeVideoChat                                               = "videoChat"
	TypeChat                                                    = "chat"
	TypeChats                                                   = "chats"
	TypeFailedToAddMember                                       = "failedToAddMember"
	TypeFailedToAddMembers                                      = "failedToAddMembers"
	TypeCreatedBasicGroupChat                                   = "createdBasicGroupChat"
	TypePublicChatTypeHasUsername                               = "publicChatTypeHasUsername"
	TypePublicChatTypeIsLocationBased                           = "publicChatTypeIsLocationBased"
	TypeChatActionBarReportSpam                                 = "chatActionBarReportSpam"
	TypeChatActionBarInviteMembers                              = "chatActionBarInviteMembers"
	TypeChatActionBarReportAddBlock                             = "chatActionBarReportAddBlock"
	TypeChatActionBarAddContact                                 = "chatActionBarAddContact"
	TypeChatActionBarSharePhoneNumber                           = "chatActionBarSharePhoneNumber"
	TypeChatActionBarJoinRequest                                = "chatActionBarJoinRequest"
	TypeKeyboardButtonTypeText                                  = "keyboardButtonTypeText"
	TypeKeyboardButtonTypeRequestPhoneNumber                    = "keyboardButtonTypeRequestPhoneNumber"
	TypeKeyboardButtonTypeRequestLocation                       = "keyboardButtonTypeRequestLocation"
	TypeKeyboardButtonTypeRequestPoll                           = "keyboardButtonTypeRequestPoll"
	TypeKeyboardButtonTypeRequestUsers                          = "keyboardButtonTypeRequestUsers"
	TypeKeyboardButtonTypeRequestChat                           = "keyboardButtonTypeRequestChat"
	TypeKeyboardButtonTypeWebApp                                = "keyboardButtonTypeWebApp"
	TypeKeyboardButton                                          = "keyboardButton"
	TypeInlineKeyboardButtonTypeUrl                             = "inlineKeyboardButtonTypeUrl"
	TypeInlineKeyboardButtonTypeLoginUrl                        = "inlineKeyboardButtonTypeLoginUrl"
	TypeInlineKeyboardButtonTypeWebApp                          = "inlineKeyboardButtonTypeWebApp"
	TypeInlineKeyboardButtonTypeCallback                        = "inlineKeyboardButtonTypeCallback"
	TypeInlineKeyboardButtonTypeCallbackWithPassword            = "inlineKeyboardButtonTypeCallbackWithPassword"
	TypeInlineKeyboardButtonTypeCallbackGame                    = "inlineKeyboardButtonTypeCallbackGame"
	TypeInlineKeyboardButtonTypeSwitchInline                    = "inlineKeyboardButtonTypeSwitchInline"
	TypeInlineKeyboardButtonTypeBuy                             = "inlineKeyboardButtonTypeBuy"
	TypeInlineKeyboardButtonTypeUser                            = "inlineKeyboardButtonTypeUser"
	TypeInlineKeyboardButtonTypeCopyText                        = "inlineKeyboardButtonTypeCopyText"
	TypeInlineKeyboardButton                                    = "inlineKeyboardButton"
	TypeReplyMarkupRemoveKeyboard                               = "replyMarkupRemoveKeyboard"
	TypeReplyMarkupForceReply                                   = "replyMarkupForceReply"
	TypeReplyMarkupShowKeyboard                                 = "replyMarkupShowKeyboard"
	TypeReplyMarkupInlineKeyboard                               = "replyMarkupInlineKeyboard"
	TypeLoginUrlInfoOpen                                        = "loginUrlInfoOpen"
	TypeLoginUrlInfoRequestConfirmation                         = "loginUrlInfoRequestConfirmation"
	TypeThemeParameters                                         = "themeParameters"
	TypeWebAppOpenModeCompact                                   = "webAppOpenModeCompact"
	TypeWebAppOpenModeFullSize                                  = "webAppOpenModeFullSize"
	TypeWebAppOpenModeFullScreen                                = "webAppOpenModeFullScreen"
	TypeFoundWebApp                                             = "foundWebApp"
	TypeWebAppInfo                                              = "webAppInfo"
	TypeMainWebApp                                              = "mainWebApp"
	TypeWebAppOpenParameters                                    = "webAppOpenParameters"
	TypeMessageThreadInfo                                       = "messageThreadInfo"
	TypeSavedMessagesTopicTypeMyNotes                           = "savedMessagesTopicTypeMyNotes"
	TypeSavedMessagesTopicTypeAuthorHidden                      = "savedMessagesTopicTypeAuthorHidden"
	TypeSavedMessagesTopicTypeSavedFromChat                     = "savedMessagesTopicTypeSavedFromChat"
	TypeSavedMessagesTopic                                      = "savedMessagesTopic"
	TypeForumTopicIcon                                          = "forumTopicIcon"
	TypeForumTopicInfo                                          = "forumTopicInfo"
	TypeForumTopic                                              = "forumTopic"
	TypeForumTopics                                             = "forumTopics"
	TypeLinkPreviewOptions                                      = "linkPreviewOptions"
	TypeSharedUser                                              = "sharedUser"
	TypeSharedChat                                              = "sharedChat"
	TypeThemeSettings                                           = "themeSettings"
	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"
	TypePageBlockFooter                                         = "pageBlockFooter"
	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"
	TypeLinkPreviewAlbumMediaPhoto                              = "linkPreviewAlbumMediaPhoto"
	TypeLinkPreviewAlbumMediaVideo                              = "linkPreviewAlbumMediaVideo"
	TypeLinkPreviewTypeAlbum                                    = "linkPreviewTypeAlbum"
	TypeLinkPreviewTypeAnimation                                = "linkPreviewTypeAnimation"
	TypeLinkPreviewTypeApp                                      = "linkPreviewTypeApp"
	TypeLinkPreviewTypeArticle                                  = "linkPreviewTypeArticle"
	TypeLinkPreviewTypeAudio                                    = "linkPreviewTypeAudio"
	TypeLinkPreviewTypeBackground                               = "linkPreviewTypeBackground"
	TypeLinkPreviewTypeChannelBoost                             = "linkPreviewTypeChannelBoost"
	TypeLinkPreviewTypeChat                                     = "linkPreviewTypeChat"
	TypeLinkPreviewTypeDocument                                 = "linkPreviewTypeDocument"
	TypeLinkPreviewTypeEmbeddedAnimationPlayer                  = "linkPreviewTypeEmbeddedAnimationPlayer"
	TypeLinkPreviewTypeEmbeddedAudioPlayer                      = "linkPreviewTypeEmbeddedAudioPlayer"
	TypeLinkPreviewTypeEmbeddedVideoPlayer                      = "linkPreviewTypeEmbeddedVideoPlayer"
	TypeLinkPreviewTypeExternalAudio                            = "linkPreviewTypeExternalAudio"
	TypeLinkPreviewTypeExternalVideo                            = "linkPreviewTypeExternalVideo"
	TypeLinkPreviewTypeInvoice                                  = "linkPreviewTypeInvoice"
	TypeLinkPreviewTypeMessage                                  = "linkPreviewTypeMessage"
	TypeLinkPreviewTypePhoto                                    = "linkPreviewTypePhoto"
	TypeLinkPreviewTypePremiumGiftCode                          = "linkPreviewTypePremiumGiftCode"
	TypeLinkPreviewTypeShareableChatFolder                      = "linkPreviewTypeShareableChatFolder"
	TypeLinkPreviewTypeSticker                                  = "linkPreviewTypeSticker"
	TypeLinkPreviewTypeStickerSet                               = "linkPreviewTypeStickerSet"
	TypeLinkPreviewTypeStory                                    = "linkPreviewTypeStory"
	TypeLinkPreviewTypeSupergroupBoost                          = "linkPreviewTypeSupergroupBoost"
	TypeLinkPreviewTypeTheme                                    = "linkPreviewTypeTheme"
	TypeLinkPreviewTypeUnsupported                              = "linkPreviewTypeUnsupported"
	TypeLinkPreviewTypeUser                                     = "linkPreviewTypeUser"
	TypeLinkPreviewTypeVideo                                    = "linkPreviewTypeVideo"
	TypeLinkPreviewTypeVideoChat                                = "linkPreviewTypeVideoChat"
	TypeLinkPreviewTypeVideoNote                                = "linkPreviewTypeVideoNote"
	TypeLinkPreviewTypeVoiceNote                                = "linkPreviewTypeVoiceNote"
	TypeLinkPreviewTypeWebApp                                   = "linkPreviewTypeWebApp"
	TypeLinkPreview                                             = "linkPreview"
	TypeCountryInfo                                             = "countryInfo"
	TypeCountries                                               = "countries"
	TypePhoneNumberInfo                                         = "phoneNumberInfo"
	TypeCollectibleItemTypeUsername                             = "collectibleItemTypeUsername"
	TypeCollectibleItemTypePhoneNumber                          = "collectibleItemTypePhoneNumber"
	TypeCollectibleItemInfo                                     = "collectibleItemInfo"
	TypeBankCardActionOpenUrl                                   = "bankCardActionOpenUrl"
	TypeBankCardInfo                                            = "bankCardInfo"
	TypeAddress                                                 = "address"
	TypeLocationAddress                                         = "locationAddress"
	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"
	TypePaymentFormTypeRegular                                  = "paymentFormTypeRegular"
	TypePaymentFormTypeStars                                    = "paymentFormTypeStars"
	TypePaymentFormTypeStarSubscription                         = "paymentFormTypeStarSubscription"
	TypePaymentForm                                             = "paymentForm"
	TypeValidatedOrderInfo                                      = "validatedOrderInfo"
	TypePaymentResult                                           = "paymentResult"
	TypePaymentReceiptTypeRegular                               = "paymentReceiptTypeRegular"
	TypePaymentReceiptTypeStars                                 = "paymentReceiptTypeStars"
	TypePaymentReceipt                                          = "paymentReceipt"
	TypeInputInvoiceMessage                                     = "inputInvoiceMessage"
	TypeInputInvoiceName                                        = "inputInvoiceName"
	TypeInputInvoiceTelegram                                    = "inputInvoiceTelegram"
	TypePaidMediaPreview                                        = "paidMediaPreview"
	TypePaidMediaPhoto                                          = "paidMediaPhoto"
	TypePaidMediaVideo                                          = "paidMediaVideo"
	TypePaidMediaUnsupported                                    = "paidMediaUnsupported"
	TypeGiveawayParameters                                      = "giveawayParameters"
	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"
	TypeMessagePaidMedia                                        = "messagePaidMedia"
	TypeMessagePhoto                                            = "messagePhoto"
	TypeMessageSticker                                          = "messageSticker"
	TypeMessageVideo                                            = "messageVideo"
	TypeMessageVideoNote                                        = "messageVideoNote"
	TypeMessageVoiceNote                                        = "messageVoiceNote"
	TypeMessageExpiredPhoto                                     = "messageExpiredPhoto"
	TypeMessageExpiredVideo                                     = "messageExpiredVideo"
	TypeMessageExpiredVideoNote                                 = "messageExpiredVideoNote"
	TypeMessageExpiredVoiceNote                                 = "messageExpiredVoiceNote"
	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"
	TypeMessageChatBoost                                        = "messageChatBoost"
	TypeMessageForumTopicCreated                                = "messageForumTopicCreated"
	TypeMessageForumTopicEdited                                 = "messageForumTopicEdited"
	TypeMessageForumTopicIsClosedToggled                        = "messageForumTopicIsClosedToggled"
	TypeMessageForumTopicIsHiddenToggled                        = "messageForumTopicIsHiddenToggled"
	TypeMessageSuggestProfilePhoto                              = "messageSuggestProfilePhoto"
	TypeMessageCustomServiceAction                              = "messageCustomServiceAction"
	TypeMessageGameScore                                        = "messageGameScore"
	TypeMessagePaymentSuccessful                                = "messagePaymentSuccessful"
	TypeMessagePaymentSuccessfulBot                             = "messagePaymentSuccessfulBot"
	TypeMessagePaymentRefunded                                  = "messagePaymentRefunded"
	TypeMessageGiftedPremium                                    = "messageGiftedPremium"
	TypeMessagePremiumGiftCode                                  = "messagePremiumGiftCode"
	TypeMessageGiveawayCreated                                  = "messageGiveawayCreated"
	TypeMessageGiveaway                                         = "messageGiveaway"
	TypeMessageGiveawayCompleted                                = "messageGiveawayCompleted"
	TypeMessageGiveawayWinners                                  = "messageGiveawayWinners"
	TypeMessageGiftedStars                                      = "messageGiftedStars"
	TypeMessageGiveawayPrizeStars                               = "messageGiveawayPrizeStars"
	TypeMessageGift                                             = "messageGift"
	TypeMessageContactRegistered                                = "messageContactRegistered"
	TypeMessageUsersShared                                      = "messageUsersShared"
	TypeMessageChatShared                                       = "messageChatShared"
	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"
	TypeTextEntityTypeBlockQuote                                = "textEntityTypeBlockQuote"
	TypeTextEntityTypeExpandableBlockQuote                      = "textEntityTypeExpandableBlockQuote"
	TypeTextEntityTypeTextUrl                                   = "textEntityTypeTextUrl"
	TypeTextEntityTypeMentionName                               = "textEntityTypeMentionName"
	TypeTextEntityTypeCustomEmoji                               = "textEntityTypeCustomEmoji"
	TypeTextEntityTypeMediaTimestamp                            = "textEntityTypeMediaTimestamp"
	TypeInputThumbnail                                          = "inputThumbnail"
	TypeInputPaidMediaTypePhoto                                 = "inputPaidMediaTypePhoto"
	TypeInputPaidMediaTypeVideo                                 = "inputPaidMediaTypeVideo"
	TypeInputPaidMedia                                          = "inputPaidMedia"
	TypeMessageSchedulingStateSendAtDate                        = "messageSchedulingStateSendAtDate"
	TypeMessageSchedulingStateSendWhenOnline                    = "messageSchedulingStateSendWhenOnline"
	TypeMessageSchedulingStateSendWhenVideoProcessed            = "messageSchedulingStateSendWhenVideoProcessed"
	TypeMessageSelfDestructTypeTimer                            = "messageSelfDestructTypeTimer"
	TypeMessageSelfDestructTypeImmediately                      = "messageSelfDestructTypeImmediately"
	TypeMessageSendOptions                                      = "messageSendOptions"
	TypeMessageCopyOptions                                      = "messageCopyOptions"
	TypeInputMessageText                                        = "inputMessageText"
	TypeInputMessageAnimation                                   = "inputMessageAnimation"
	TypeInputMessageAudio                                       = "inputMessageAudio"
	TypeInputMessageDocument                                    = "inputMessageDocument"
	TypeInputMessagePaidMedia                                   = "inputMessagePaidMedia"
	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"
	TypeMessageProperties                                       = "messageProperties"
	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"
	TypeEmojiKeyword                                            = "emojiKeyword"
	TypeEmojiKeywords                                           = "emojiKeywords"
	TypeStickers                                                = "stickers"
	TypeEmojis                                                  = "emojis"
	TypeStickerSet                                              = "stickerSet"
	TypeStickerSetInfo                                          = "stickerSetInfo"
	TypeStickerSets                                             = "stickerSets"
	TypeTrendingStickerSets                                     = "trendingStickerSets"
	TypeEmojiCategorySourceSearch                               = "emojiCategorySourceSearch"
	TypeEmojiCategorySourcePremium                              = "emojiCategorySourcePremium"
	TypeEmojiCategory                                           = "emojiCategory"
	TypeEmojiCategories                                         = "emojiCategories"
	TypeEmojiCategoryTypeDefault                                = "emojiCategoryTypeDefault"
	TypeEmojiCategoryTypeRegularStickers                        = "emojiCategoryTypeRegularStickers"
	TypeEmojiCategoryTypeEmojiStatus                            = "emojiCategoryTypeEmojiStatus"
	TypeEmojiCategoryTypeChatPhoto                              = "emojiCategoryTypeChatPhoto"
	TypeCurrentWeather                                          = "currentWeather"
	TypeStoryAreaPosition                                       = "storyAreaPosition"
	TypeStoryAreaTypeLocation                                   = "storyAreaTypeLocation"
	TypeStoryAreaTypeVenue                                      = "storyAreaTypeVenue"
	TypeStoryAreaTypeSuggestedReaction                          = "storyAreaTypeSuggestedReaction"
	TypeStoryAreaTypeMessage                                    = "storyAreaTypeMessage"
	TypeStoryAreaTypeLink                                       = "storyAreaTypeLink"
	TypeStoryAreaTypeWeather                                    = "storyAreaTypeWeather"
	TypeStoryArea                                               = "storyArea"
	TypeInputStoryAreaTypeLocation                              = "inputStoryAreaTypeLocation"
	TypeInputStoryAreaTypeFoundVenue                            = "inputStoryAreaTypeFoundVenue"
	TypeInputStoryAreaTypePreviousVenue                         = "inputStoryAreaTypePreviousVenue"
	TypeInputStoryAreaTypeSuggestedReaction                     = "inputStoryAreaTypeSuggestedReaction"
	TypeInputStoryAreaTypeMessage                               = "inputStoryAreaTypeMessage"
	TypeInputStoryAreaTypeLink                                  = "inputStoryAreaTypeLink"
	TypeInputStoryAreaTypeWeather                               = "inputStoryAreaTypeWeather"
	TypeInputStoryArea                                          = "inputStoryArea"
	TypeInputStoryAreas                                         = "inputStoryAreas"
	TypeStoryVideo                                              = "storyVideo"
	TypeStoryContentPhoto                                       = "storyContentPhoto"
	TypeStoryContentVideo                                       = "storyContentVideo"
	TypeStoryContentUnsupported                                 = "storyContentUnsupported"
	TypeInputStoryContentPhoto                                  = "inputStoryContentPhoto"
	TypeInputStoryContentVideo                                  = "inputStoryContentVideo"
	TypeStoryListMain                                           = "storyListMain"
	TypeStoryListArchive                                        = "storyListArchive"
	TypeStoryOriginPublicStory                                  = "storyOriginPublicStory"
	TypeStoryOriginHiddenUser                                   = "storyOriginHiddenUser"
	TypeStoryRepostInfo                                         = "storyRepostInfo"
	TypeStoryInteractionInfo                                    = "storyInteractionInfo"
	TypeStory                                                   = "story"
	TypeStories                                                 = "stories"
	TypeFoundStories                                            = "foundStories"
	TypeStoryFullId                                             = "storyFullId"
	TypeStoryInfo                                               = "storyInfo"
	TypeChatActiveStories                                       = "chatActiveStories"
	TypeStoryInteractionTypeView                                = "storyInteractionTypeView"
	TypeStoryInteractionTypeForward                             = "storyInteractionTypeForward"
	TypeStoryInteractionTypeRepost                              = "storyInteractionTypeRepost"
	TypeStoryInteraction                                        = "storyInteraction"
	TypeStoryInteractions                                       = "storyInteractions"
	TypeQuickReplyMessage                                       = "quickReplyMessage"
	TypeQuickReplyMessages                                      = "quickReplyMessages"
	TypeQuickReplyShortcut                                      = "quickReplyShortcut"
	TypePublicForwardMessage                                    = "publicForwardMessage"
	TypePublicForwardStory                                      = "publicForwardStory"
	TypePublicForwards                                          = "publicForwards"
	TypeBotMediaPreview                                         = "botMediaPreview"
	TypeBotMediaPreviews                                        = "botMediaPreviews"
	TypeBotMediaPreviewInfo                                     = "botMediaPreviewInfo"
	TypeChatBoostLevelFeatures                                  = "chatBoostLevelFeatures"
	TypeChatBoostFeatures                                       = "chatBoostFeatures"
	TypeChatBoostSourceGiftCode                                 = "chatBoostSourceGiftCode"
	TypeChatBoostSourceGiveaway                                 = "chatBoostSourceGiveaway"
	TypeChatBoostSourcePremium                                  = "chatBoostSourcePremium"
	TypePrepaidGiveaway                                         = "prepaidGiveaway"
	TypeChatBoostStatus                                         = "chatBoostStatus"
	TypeChatBoost                                               = "chatBoost"
	TypeFoundChatBoosts                                         = "foundChatBoosts"
	TypeChatBoostSlot                                           = "chatBoostSlot"
	TypeChatBoostSlots                                          = "chatBoostSlots"
	TypeResendCodeReasonUserRequest                             = "resendCodeReasonUserRequest"
	TypeResendCodeReasonVerificationFailed                      = "resendCodeReasonVerificationFailed"
	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"
	TypeReactionUnavailabilityReasonAnonymousAdministrator      = "reactionUnavailabilityReasonAnonymousAdministrator"
	TypeReactionUnavailabilityReasonGuest                       = "reactionUnavailabilityReasonGuest"
	TypeAnimations                                              = "animations"
	TypeDiceStickersRegular                                     = "diceStickersRegular"
	TypeDiceStickersSlotMachine                                 = "diceStickersSlotMachine"
	TypeImportedContacts                                        = "importedContacts"
	TypeSpeechRecognitionResultPending                          = "speechRecognitionResultPending"
	TypeSpeechRecognitionResultText                             = "speechRecognitionResultText"
	TypeSpeechRecognitionResultError                            = "speechRecognitionResultError"
	TypeBusinessConnection                                      = "businessConnection"
	TypeAttachmentMenuBotColor                                  = "attachmentMenuBotColor"
	TypeAttachmentMenuBot                                       = "attachmentMenuBot"
	TypeSentWebAppMessage                                       = "sentWebAppMessage"
	TypeBotWriteAccessAllowReasonConnectedWebsite               = "botWriteAccessAllowReasonConnectedWebsite"
	TypeBotWriteAccessAllowReasonAddedToAttachmentMenu          = "botWriteAccessAllowReasonAddedToAttachmentMenu"
	TypeBotWriteAccessAllowReasonLaunchedWebApp                 = "botWriteAccessAllowReasonLaunchedWebApp"
	TypeBotWriteAccessAllowReasonAcceptedRequest                = "botWriteAccessAllowReasonAcceptedRequest"
	TypeHttpUrl                                                 = "httpUrl"
	TypeUserLink                                                = "userLink"
	TypeTargetChatTypes                                         = "targetChatTypes"
	TypeTargetChatCurrent                                       = "targetChatCurrent"
	TypeTargetChatChosen                                        = "targetChatChosen"
	TypeTargetChatInternalLink                                  = "targetChatInternalLink"
	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"
	TypePreparedInlineMessageId                                 = "preparedInlineMessageId"
	TypePreparedInlineMessage                                   = "preparedInlineMessage"
	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"
	TypeChatEventMemberSubscriptionExtended                     = "chatEventMemberSubscriptionExtended"
	TypeChatEventAvailableReactionsChanged                      = "chatEventAvailableReactionsChanged"
	TypeChatEventBackgroundChanged                              = "chatEventBackgroundChanged"
	TypeChatEventDescriptionChanged                             = "chatEventDescriptionChanged"
	TypeChatEventEmojiStatusChanged                             = "chatEventEmojiStatusChanged"
	TypeChatEventLinkedChatChanged                              = "chatEventLinkedChatChanged"
	TypeChatEventLocationChanged                                = "chatEventLocationChanged"
	TypeChatEventMessageAutoDeleteTimeChanged                   = "chatEventMessageAutoDeleteTimeChanged"
	TypeChatEventPermissionsChanged                             = "chatEventPermissionsChanged"
	TypeChatEventPhotoChanged                                   = "chatEventPhotoChanged"
	TypeChatEventSlowModeDelayChanged                           = "chatEventSlowModeDelayChanged"
	TypeChatEventStickerSetChanged                              = "chatEventStickerSetChanged"
	TypeChatEventCustomEmojiStickerSetChanged                   = "chatEventCustomEmojiStickerSetChanged"
	TypeChatEventTitleChanged                                   = "chatEventTitleChanged"
	TypeChatEventUsernameChanged                                = "chatEventUsernameChanged"
	TypeChatEventActiveUsernamesChanged                         = "chatEventActiveUsernamesChanged"
	TypeChatEventAccentColorChanged                             = "chatEventAccentColorChanged"
	TypeChatEventProfileAccentColorChanged                      = "chatEventProfileAccentColorChanged"
	TypeChatEventHasProtectedContentToggled                     = "chatEventHasProtectedContentToggled"
	TypeChatEventInvitesToggled                                 = "chatEventInvitesToggled"
	TypeChatEventIsAllHistoryAvailableToggled                   = "chatEventIsAllHistoryAvailableToggled"
	TypeChatEventHasAggressiveAntiSpamEnabledToggled            = "chatEventHasAggressiveAntiSpamEnabledToggled"
	TypeChatEventSignMessagesToggled                            = "chatEventSignMessagesToggled"
	TypeChatEventShowMessageSenderToggled                       = "chatEventShowMessageSenderToggled"
	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"
	TypePremiumLimitTypePinnedSavedMessagesTopicCount           = "premiumLimitTypePinnedSavedMessagesTopicCount"
	TypePremiumLimitTypeCaptionLength                           = "premiumLimitTypeCaptionLength"
	TypePremiumLimitTypeBioLength                               = "premiumLimitTypeBioLength"
	TypePremiumLimitTypeChatFolderInviteLinkCount               = "premiumLimitTypeChatFolderInviteLinkCount"
	TypePremiumLimitTypeShareableChatFolderCount                = "premiumLimitTypeShareableChatFolderCount"
	TypePremiumLimitTypeActiveStoryCount                        = "premiumLimitTypeActiveStoryCount"
	TypePremiumLimitTypeWeeklySentStoryCount                    = "premiumLimitTypeWeeklySentStoryCount"
	TypePremiumLimitTypeMonthlySentStoryCount                   = "premiumLimitTypeMonthlySentStoryCount"
	TypePremiumLimitTypeStoryCaptionLength                      = "premiumLimitTypeStoryCaptionLength"
	TypePremiumLimitTypeStorySuggestedReactionAreaCount         = "premiumLimitTypeStorySuggestedReactionAreaCount"
	TypePremiumLimitTypeSimilarChatCount                        = "premiumLimitTypeSimilarChatCount"
	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"
	TypePremiumFeatureChatBoost                                 = "premiumFeatureChatBoost"
	TypePremiumFeatureAccentColor                               = "premiumFeatureAccentColor"
	TypePremiumFeatureBackgroundForBoth                         = "premiumFeatureBackgroundForBoth"
	TypePremiumFeatureSavedMessagesTags                         = "premiumFeatureSavedMessagesTags"
	TypePremiumFeatureMessagePrivacy                            = "premiumFeatureMessagePrivacy"
	TypePremiumFeatureLastSeenTimes                             = "premiumFeatureLastSeenTimes"
	TypePremiumFeatureBusiness                                  = "premiumFeatureBusiness"
	TypePremiumFeatureMessageEffects                            = "premiumFeatureMessageEffects"
	TypeBusinessFeatureLocation                                 = "businessFeatureLocation"
	TypeBusinessFeatureOpeningHours                             = "businessFeatureOpeningHours"
	TypeBusinessFeatureQuickReplies                             = "businessFeatureQuickReplies"
	TypeBusinessFeatureGreetingMessage                          = "businessFeatureGreetingMessage"
	TypeBusinessFeatureAwayMessage                              = "businessFeatureAwayMessage"
	TypeBusinessFeatureAccountLinks                             = "businessFeatureAccountLinks"
	TypeBusinessFeatureStartPage                                = "businessFeatureStartPage"
	TypeBusinessFeatureBots                                     = "businessFeatureBots"
	TypeBusinessFeatureEmojiStatus                              = "businessFeatureEmojiStatus"
	TypeBusinessFeatureChatFolderTags                           = "businessFeatureChatFolderTags"
	TypeBusinessFeatureUpgradedStories                          = "businessFeatureUpgradedStories"
	TypePremiumStoryFeaturePriorityOrder                        = "premiumStoryFeaturePriorityOrder"
	TypePremiumStoryFeatureStealthMode                          = "premiumStoryFeatureStealthMode"
	TypePremiumStoryFeaturePermanentViewsHistory                = "premiumStoryFeaturePermanentViewsHistory"
	TypePremiumStoryFeatureCustomExpirationDuration             = "premiumStoryFeatureCustomExpirationDuration"
	TypePremiumStoryFeatureSaveStories                          = "premiumStoryFeatureSaveStories"
	TypePremiumStoryFeatureLinksAndFormatting                   = "premiumStoryFeatureLinksAndFormatting"
	TypePremiumStoryFeatureVideoQuality                         = "premiumStoryFeatureVideoQuality"
	TypePremiumLimit                                            = "premiumLimit"
	TypePremiumFeatures                                         = "premiumFeatures"
	TypeBusinessFeatures                                        = "businessFeatures"
	TypePremiumSourceLimitExceeded                              = "premiumSourceLimitExceeded"
	TypePremiumSourceFeature                                    = "premiumSourceFeature"
	TypePremiumSourceBusinessFeature                            = "premiumSourceBusinessFeature"
	TypePremiumSourceStoryFeature                               = "premiumSourceStoryFeature"
	TypePremiumSourceLink                                       = "premiumSourceLink"
	TypePremiumSourceSettings                                   = "premiumSourceSettings"
	TypePremiumFeaturePromotionAnimation                        = "premiumFeaturePromotionAnimation"
	TypeBusinessFeaturePromotionAnimation                       = "businessFeaturePromotionAnimation"
	TypePremiumState                                            = "premiumState"
	TypeStorePaymentPurposePremiumSubscription                  = "storePaymentPurposePremiumSubscription"
	TypeStorePaymentPurposePremiumGiftCodes                     = "storePaymentPurposePremiumGiftCodes"
	TypeStorePaymentPurposePremiumGiveaway                      = "storePaymentPurposePremiumGiveaway"
	TypeStorePaymentPurposeStarGiveaway                         = "storePaymentPurposeStarGiveaway"
	TypeStorePaymentPurposeStars                                = "storePaymentPurposeStars"
	TypeStorePaymentPurposeGiftedStars                          = "storePaymentPurposeGiftedStars"
	TypeTelegramPaymentPurposePremiumGiftCodes                  = "telegramPaymentPurposePremiumGiftCodes"
	TypeTelegramPaymentPurposePremiumGiveaway                   = "telegramPaymentPurposePremiumGiveaway"
	TypeTelegramPaymentPurposeStars                             = "telegramPaymentPurposeStars"
	TypeTelegramPaymentPurposeGiftedStars                       = "telegramPaymentPurposeGiftedStars"
	TypeTelegramPaymentPurposeStarGiveaway                      = "telegramPaymentPurposeStarGiveaway"
	TypeTelegramPaymentPurposeJoinChat                          = "telegramPaymentPurposeJoinChat"
	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"
	TypeBackgroundTypeChatTheme                                 = "backgroundTypeChatTheme"
	TypeInputBackgroundLocal                                    = "inputBackgroundLocal"
	TypeInputBackgroundRemote                                   = "inputBackgroundRemote"
	TypeInputBackgroundPrevious                                 = "inputBackgroundPrevious"
	TypeChatTheme                                               = "chatTheme"
	TypeTimeZone                                                = "timeZone"
	TypeTimeZones                                               = "timeZones"
	TypeHashtags                                                = "hashtags"
	TypeCanSendStoryResultOk                                    = "canSendStoryResultOk"
	TypeCanSendStoryResultPremiumNeeded                         = "canSendStoryResultPremiumNeeded"
	TypeCanSendStoryResultBoostNeeded                           = "canSendStoryResultBoostNeeded"
	TypeCanSendStoryResultActiveStoryLimitExceeded              = "canSendStoryResultActiveStoryLimitExceeded"
	TypeCanSendStoryResultWeeklyLimitExceeded                   = "canSendStoryResultWeeklyLimitExceeded"
	TypeCanSendStoryResultMonthlyLimitExceeded                  = "canSendStoryResultMonthlyLimitExceeded"
	TypeCanTransferOwnershipResultOk                            = "canTransferOwnershipResultOk"
	TypeCanTransferOwnershipResultPasswordNeeded                = "canTransferOwnershipResultPasswordNeeded"
	TypeCanTransferOwnershipResultPasswordTooFresh              = "canTransferOwnershipResultPasswordTooFresh"
	TypeCanTransferOwnershipResultSessionTooFresh               = "canTransferOwnershipResultSessionTooFresh"
	TypeCheckChatUsernameResultOk                               = "checkChatUsernameResultOk"
	TypeCheckChatUsernameResultUsernameInvalid                  = "checkChatUsernameResultUsernameInvalid"
	TypeCheckChatUsernameResultUsernameOccupied                 = "checkChatUsernameResultUsernameOccupied"
	TypeCheckChatUsernameResultUsernamePurchasable              = "checkChatUsernameResultUsernamePurchasable"
	TypeCheckChatUsernameResultPublicChatsTooMany               = "checkChatUsernameResultPublicChatsTooMany"
	TypeCheckChatUsernameResultPublicGroupsUnavailable          = "checkChatUsernameResultPublicGroupsUnavailable"
	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"
	TypePushMessageContentPaidMedia                             = "pushMessageContentPaidMedia"
	TypePushMessageContentPhoto                                 = "pushMessageContentPhoto"
	TypePushMessageContentPoll                                  = "pushMessageContentPoll"
	TypePushMessageContentPremiumGiftCode                       = "pushMessageContentPremiumGiftCode"
	TypePushMessageContentGiveaway                              = "pushMessageContentGiveaway"
	TypePushMessageContentGift                                  = "pushMessageContentGift"
	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"
	TypeUserPrivacySettingRuleAllowBots                         = "userPrivacySettingRuleAllowBots"
	TypeUserPrivacySettingRuleAllowPremiumUsers                 = "userPrivacySettingRuleAllowPremiumUsers"
	TypeUserPrivacySettingRuleAllowUsers                        = "userPrivacySettingRuleAllowUsers"
	TypeUserPrivacySettingRuleAllowChatMembers                  = "userPrivacySettingRuleAllowChatMembers"
	TypeUserPrivacySettingRuleRestrictAll                       = "userPrivacySettingRuleRestrictAll"
	TypeUserPrivacySettingRuleRestrictContacts                  = "userPrivacySettingRuleRestrictContacts"
	TypeUserPrivacySettingRuleRestrictBots                      = "userPrivacySettingRuleRestrictBots"
	TypeUserPrivacySettingRuleRestrictUsers                     = "userPrivacySettingRuleRestrictUsers"
	TypeUserPrivacySettingRuleRestrictChatMembers               = "userPrivacySettingRuleRestrictChatMembers"
	TypeUserPrivacySettingRules                                 = "userPrivacySettingRules"
	TypeUserPrivacySettingShowStatus                            = "userPrivacySettingShowStatus"
	TypeUserPrivacySettingShowProfilePhoto                      = "userPrivacySettingShowProfilePhoto"
	TypeUserPrivacySettingShowLinkInForwardedMessages           = "userPrivacySettingShowLinkInForwardedMessages"
	TypeUserPrivacySettingShowPhoneNumber                       = "userPrivacySettingShowPhoneNumber"
	TypeUserPrivacySettingShowBio                               = "userPrivacySettingShowBio"
	TypeUserPrivacySettingShowBirthdate                         = "userPrivacySettingShowBirthdate"
	TypeUserPrivacySettingAllowChatInvites                      = "userPrivacySettingAllowChatInvites"
	TypeUserPrivacySettingAllowCalls                            = "userPrivacySettingAllowCalls"
	TypeUserPrivacySettingAllowPeerToPeerCalls                  = "userPrivacySettingAllowPeerToPeerCalls"
	TypeUserPrivacySettingAllowFindingByPhoneNumber             = "userPrivacySettingAllowFindingByPhoneNumber"
	TypeUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages = "userPrivacySettingAllowPrivateVoiceAndVideoNoteMessages"
	TypeUserPrivacySettingAutosaveGifts                         = "userPrivacySettingAutosaveGifts"
	TypeReadDatePrivacySettings                                 = "readDatePrivacySettings"
	TypeNewChatPrivacySettings                                  = "newChatPrivacySettings"
	TypeCanSendMessageToUserResultOk                            = "canSendMessageToUserResultOk"
	TypeCanSendMessageToUserResultUserIsDeleted                 = "canSendMessageToUserResultUserIsDeleted"
	TypeCanSendMessageToUserResultUserRestrictsNewChats         = "canSendMessageToUserResultUserRestrictsNewChats"
	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"
	TypeReportReasonUnrelatedLocation                           = "reportReasonUnrelatedLocation"
	TypeReportReasonFake                                        = "reportReasonFake"
	TypeReportReasonIllegalDrugs                                = "reportReasonIllegalDrugs"
	TypeReportReasonPersonalDetails                             = "reportReasonPersonalDetails"
	TypeReportReasonCustom                                      = "reportReasonCustom"
	TypeReportChatResultOk                                      = "reportChatResultOk"
	TypeReportChatResultOptionRequired                          = "reportChatResultOptionRequired"
	TypeReportChatResultTextRequired                            = "reportChatResultTextRequired"
	TypeReportChatResultMessagesRequired                        = "reportChatResultMessagesRequired"
	TypeReportStoryResultOk                                     = "reportStoryResultOk"
	TypeReportStoryResultOptionRequired                         = "reportStoryResultOptionRequired"
	TypeReportStoryResultTextRequired                           = "reportStoryResultTextRequired"
	TypeInternalLinkTypeActiveSessions                          = "internalLinkTypeActiveSessions"
	TypeInternalLinkTypeAttachmentMenuBot                       = "internalLinkTypeAttachmentMenuBot"
	TypeInternalLinkTypeAuthenticationCode                      = "internalLinkTypeAuthenticationCode"
	TypeInternalLinkTypeBackground                              = "internalLinkTypeBackground"
	TypeInternalLinkTypeBotAddToChannel                         = "internalLinkTypeBotAddToChannel"
	TypeInternalLinkTypeBotStart                                = "internalLinkTypeBotStart"
	TypeInternalLinkTypeBotStartInGroup                         = "internalLinkTypeBotStartInGroup"
	TypeInternalLinkTypeBusinessChat                            = "internalLinkTypeBusinessChat"
	TypeInternalLinkTypeBuyStars                                = "internalLinkTypeBuyStars"
	TypeInternalLinkTypeChangePhoneNumber                       = "internalLinkTypeChangePhoneNumber"
	TypeInternalLinkTypeChatBoost                               = "internalLinkTypeChatBoost"
	TypeInternalLinkTypeChatFolderInvite                        = "internalLinkTypeChatFolderInvite"
	TypeInternalLinkTypeChatFolderSettings                      = "internalLinkTypeChatFolderSettings"
	TypeInternalLinkTypeChatInvite                              = "internalLinkTypeChatInvite"
	TypeInternalLinkTypeDefaultMessageAutoDeleteTimerSettings   = "internalLinkTypeDefaultMessageAutoDeleteTimerSettings"
	TypeInternalLinkTypeEditProfileSettings                     = "internalLinkTypeEditProfileSettings"
	TypeInternalLinkTypeGame                                    = "internalLinkTypeGame"
	TypeInternalLinkTypeInstantView                             = "internalLinkTypeInstantView"
	TypeInternalLinkTypeInvoice                                 = "internalLinkTypeInvoice"
	TypeInternalLinkTypeLanguagePack                            = "internalLinkTypeLanguagePack"
	TypeInternalLinkTypeLanguageSettings                        = "internalLinkTypeLanguageSettings"
	TypeInternalLinkTypeMainWebApp                              = "internalLinkTypeMainWebApp"
	TypeInternalLinkTypeMessage                                 = "internalLinkTypeMessage"
	TypeInternalLinkTypeMessageDraft                            = "internalLinkTypeMessageDraft"
	TypeInternalLinkTypePassportDataRequest                     = "internalLinkTypePassportDataRequest"
	TypeInternalLinkTypePhoneNumberConfirmation                 = "internalLinkTypePhoneNumberConfirmation"
	TypeInternalLinkTypePremiumFeatures                         = "internalLinkTypePremiumFeatures"
	TypeInternalLinkTypePremiumGift                             = "internalLinkTypePremiumGift"
	TypeInternalLinkTypePremiumGiftCode                         = "internalLinkTypePremiumGiftCode"
	TypeInternalLinkTypePrivacyAndSecuritySettings              = "internalLinkTypePrivacyAndSecuritySettings"
	TypeInternalLinkTypeProxy                                   = "internalLinkTypeProxy"
	TypeInternalLinkTypePublicChat                              = "internalLinkTypePublicChat"
	TypeInternalLinkTypeQrCodeAuthentication                    = "internalLinkTypeQrCodeAuthentication"
	TypeInternalLinkTypeRestorePurchases                        = "internalLinkTypeRestorePurchases"
	TypeInternalLinkTypeSettings                                = "internalLinkTypeSettings"
	TypeInternalLinkTypeStickerSet                              = "internalLinkTypeStickerSet"
	TypeInternalLinkTypeStory                                   = "internalLinkTypeStory"
	TypeInternalLinkTypeTheme                                   = "internalLinkTypeTheme"
	TypeInternalLinkTypeThemeSettings                           = "internalLinkTypeThemeSettings"
	TypeInternalLinkTypeUnknownDeepLink                         = "internalLinkTypeUnknownDeepLink"
	TypeInternalLinkTypeUnsupportedProxy                        = "internalLinkTypeUnsupportedProxy"
	TypeInternalLinkTypeUserPhoneNumber                         = "internalLinkTypeUserPhoneNumber"
	TypeInternalLinkTypeUserToken                               = "internalLinkTypeUserToken"
	TypeInternalLinkTypeVideoChat                               = "internalLinkTypeVideoChat"
	TypeInternalLinkTypeWebApp                                  = "internalLinkTypeWebApp"
	TypeMessageLink                                             = "messageLink"
	TypeMessageLinkInfo                                         = "messageLinkInfo"
	TypeChatBoostLink                                           = "chatBoostLink"
	TypeChatBoostLinkInfo                                       = "chatBoostLinkInfo"
	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"
	TypeTopChatCategoryWebAppBots                               = "topChatCategoryWebAppBots"
	TypeTopChatCategoryCalls                                    = "topChatCategoryCalls"
	TypeTopChatCategoryForwardChats                             = "topChatCategoryForwardChats"
	TypeFoundPosition                                           = "foundPosition"
	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"
	TypeSuggestedActionGiftPremiumForChristmas                  = "suggestedActionGiftPremiumForChristmas"
	TypeSuggestedActionSetBirthdate                             = "suggestedActionSetBirthdate"
	TypeSuggestedActionExtendPremium                            = "suggestedActionExtendPremium"
	TypeSuggestedActionExtendStarSubscriptions                  = "suggestedActionExtendStarSubscriptions"
	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"
	TypeChatStatisticsObjectTypeMessage                         = "chatStatisticsObjectTypeMessage"
	TypeChatStatisticsObjectTypeStory                           = "chatStatisticsObjectTypeStory"
	TypeChatStatisticsInteractionInfo                           = "chatStatisticsInteractionInfo"
	TypeChatStatisticsMessageSenderInfo                         = "chatStatisticsMessageSenderInfo"
	TypeChatStatisticsAdministratorActionsInfo                  = "chatStatisticsAdministratorActionsInfo"
	TypeChatStatisticsInviterInfo                               = "chatStatisticsInviterInfo"
	TypeChatStatisticsSupergroup                                = "chatStatisticsSupergroup"
	TypeChatStatisticsChannel                                   = "chatStatisticsChannel"
	TypeChatRevenueAmount                                       = "chatRevenueAmount"
	TypeChatRevenueStatistics                                   = "chatRevenueStatistics"
	TypeMessageStatistics                                       = "messageStatistics"
	TypeStoryStatistics                                         = "storyStatistics"
	TypeRevenueWithdrawalStatePending                           = "revenueWithdrawalStatePending"
	TypeRevenueWithdrawalStateSucceeded                         = "revenueWithdrawalStateSucceeded"
	TypeRevenueWithdrawalStateFailed                            = "revenueWithdrawalStateFailed"
	TypeChatRevenueTransactionTypeEarnings                      = "chatRevenueTransactionTypeEarnings"
	TypeChatRevenueTransactionTypeWithdrawal                    = "chatRevenueTransactionTypeWithdrawal"
	TypeChatRevenueTransactionTypeRefund                        = "chatRevenueTransactionTypeRefund"
	TypeChatRevenueTransaction                                  = "chatRevenueTransaction"
	TypeChatRevenueTransactions                                 = "chatRevenueTransactions"
	TypeStarRevenueStatus                                       = "starRevenueStatus"
	TypeStarRevenueStatistics                                   = "starRevenueStatistics"
	TypePoint                                                   = "point"
	TypeVectorPathCommandLine                                   = "vectorPathCommandLine"
	TypeVectorPathCommandCubicBezierCurve                       = "vectorPathCommandCubicBezierCurve"
	TypeBotCommandScopeDefault                                  = "botCommandScopeDefault"
	TypeBotCommandScopeAllPrivateChats                          = "botCommandScopeAllPrivateChats"
	TypeBotCommandScopeAllGroupChats                            = "botCommandScopeAllGroupChats"
	TypeBotCommandScopeAllChatAdministrators                    = "botCommandScopeAllChatAdministrators"
	TypeBotCommandScopeChat                                     = "botCommandScopeChat"
	TypeBotCommandScopeChatAdministrators                       = "botCommandScopeChatAdministrators"
	TypeBotCommandScopeChatMember                               = "botCommandScopeChatMember"
	TypePhoneNumberCodeTypeChange                               = "phoneNumberCodeTypeChange"
	TypePhoneNumberCodeTypeVerify                               = "phoneNumberCodeTypeVerify"
	TypePhoneNumberCodeTypeConfirmOwnership                     = "phoneNumberCodeTypeConfirmOwnership"
	TypeUpdateAuthorizationState                                = "updateAuthorizationState"
	TypeUpdateNewMessage                                        = "updateNewMessage"
	TypeUpdateMessageSendAcknowledged                           = "updateMessageSendAcknowledged"
	TypeUpdateMessageSendSucceeded                              = "updateMessageSendSucceeded"
	TypeUpdateMessageSendFailed                                 = "updateMessageSendFailed"
	TypeUpdateMessageContent                                    = "updateMessageContent"
	TypeUpdateMessageEdited                                     = "updateMessageEdited"
	TypeUpdateMessageIsPinned                                   = "updateMessageIsPinned"
	TypeUpdateMessageInteractionInfo                            = "updateMessageInteractionInfo"
	TypeUpdateMessageContentOpened                              = "updateMessageContentOpened"
	TypeUpdateMessageMentionRead                                = "updateMessageMentionRead"
	TypeUpdateMessageUnreadReactions                            = "updateMessageUnreadReactions"
	TypeUpdateMessageFactCheck                                  = "updateMessageFactCheck"
	TypeUpdateMessageLiveLocationViewed                         = "updateMessageLiveLocationViewed"
	TypeUpdateVideoPublished                                    = "updateVideoPublished"
	TypeUpdateNewChat                                           = "updateNewChat"
	TypeUpdateChatTitle                                         = "updateChatTitle"
	TypeUpdateChatPhoto                                         = "updateChatPhoto"
	TypeUpdateChatAccentColors                                  = "updateChatAccentColors"
	TypeUpdateChatPermissions                                   = "updateChatPermissions"
	TypeUpdateChatLastMessage                                   = "updateChatLastMessage"
	TypeUpdateChatPosition                                      = "updateChatPosition"
	TypeUpdateChatAddedToList                                   = "updateChatAddedToList"
	TypeUpdateChatRemovedFromList                               = "updateChatRemovedFromList"
	TypeUpdateChatReadInbox                                     = "updateChatReadInbox"
	TypeUpdateChatReadOutbox                                    = "updateChatReadOutbox"
	TypeUpdateChatActionBar                                     = "updateChatActionBar"
	TypeUpdateChatBusinessBotManageBar                          = "updateChatBusinessBotManageBar"
	TypeUpdateChatAvailableReactions                            = "updateChatAvailableReactions"
	TypeUpdateChatDraftMessage                                  = "updateChatDraftMessage"
	TypeUpdateChatEmojiStatus                                   = "updateChatEmojiStatus"
	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"
	TypeUpdateChatViewAsTopics                                  = "updateChatViewAsTopics"
	TypeUpdateChatBlockList                                     = "updateChatBlockList"
	TypeUpdateChatHasScheduledMessages                          = "updateChatHasScheduledMessages"
	TypeUpdateChatFolders                                       = "updateChatFolders"
	TypeUpdateChatOnlineMemberCount                             = "updateChatOnlineMemberCount"
	TypeUpdateSavedMessagesTopic                                = "updateSavedMessagesTopic"
	TypeUpdateSavedMessagesTopicCount                           = "updateSavedMessagesTopicCount"
	TypeUpdateQuickReplyShortcut                                = "updateQuickReplyShortcut"
	TypeUpdateQuickReplyShortcutDeleted                         = "updateQuickReplyShortcutDeleted"
	TypeUpdateQuickReplyShortcuts                               = "updateQuickReplyShortcuts"
	TypeUpdateQuickReplyShortcutMessages                        = "updateQuickReplyShortcutMessages"
	TypeUpdateForumTopicInfo                                    = "updateForumTopicInfo"
	TypeUpdateScopeNotificationSettings                         = "updateScopeNotificationSettings"
	TypeUpdateReactionNotificationSettings                      = "updateReactionNotificationSettings"
	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"
	TypeUpdateApplicationVerificationRequired                   = "updateApplicationVerificationRequired"
	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"
	TypeUpdateDefaultBackground                                 = "updateDefaultBackground"
	TypeUpdateChatThemes                                        = "updateChatThemes"
	TypeUpdateAccentColors                                      = "updateAccentColors"
	TypeUpdateProfileAccentColors                               = "updateProfileAccentColors"
	TypeUpdateLanguagePackStrings                               = "updateLanguagePackStrings"
	TypeUpdateConnectionState                                   = "updateConnectionState"
	TypeUpdateTermsOfService                                    = "updateTermsOfService"
	TypeUpdateUnconfirmedSession                                = "updateUnconfirmedSession"
	TypeUpdateAttachmentMenuBots                                = "updateAttachmentMenuBots"
	TypeUpdateWebAppMessageSent                                 = "updateWebAppMessageSent"
	TypeUpdateActiveEmojiReactions                              = "updateActiveEmojiReactions"
	TypeUpdateAvailableMessageEffects                           = "updateAvailableMessageEffects"
	TypeUpdateDefaultReactionType                               = "updateDefaultReactionType"
	TypeUpdateSavedMessagesTags                                 = "updateSavedMessagesTags"
	TypeUpdateActiveLiveLocationMessages                        = "updateActiveLiveLocationMessages"
	TypeUpdateOwnedStarCount                                    = "updateOwnedStarCount"
	TypeUpdateChatRevenueAmount                                 = "updateChatRevenueAmount"
	TypeUpdateStarRevenueStatus                                 = "updateStarRevenueStatus"
	TypeUpdateSpeechRecognitionTrial                            = "updateSpeechRecognitionTrial"
	TypeUpdateDiceEmojis                                        = "updateDiceEmojis"
	TypeUpdateAnimatedEmojiMessageClicked                       = "updateAnimatedEmojiMessageClicked"
	TypeUpdateAnimationSearchParameters                         = "updateAnimationSearchParameters"
	TypeUpdateSuggestedActions                                  = "updateSuggestedActions"
	TypeUpdateSpeedLimitNotification                            = "updateSpeedLimitNotification"
	TypeUpdateContactCloseBirthdays                             = "updateContactCloseBirthdays"
	TypeUpdateAutosaveSettings                                  = "updateAutosaveSettings"
	TypeUpdateBusinessConnection                                = "updateBusinessConnection"
	TypeUpdateNewBusinessMessage                                = "updateNewBusinessMessage"
	TypeUpdateBusinessMessageEdited                             = "updateBusinessMessageEdited"
	TypeUpdateBusinessMessagesDeleted                           = "updateBusinessMessagesDeleted"
	TypeUpdateNewInlineQuery                                    = "updateNewInlineQuery"
	TypeUpdateNewChosenInlineResult                             = "updateNewChosenInlineResult"
	TypeUpdateNewCallbackQuery                                  = "updateNewCallbackQuery"
	TypeUpdateNewInlineCallbackQuery                            = "updateNewInlineCallbackQuery"
	TypeUpdateNewBusinessCallbackQuery                          = "updateNewBusinessCallbackQuery"
	TypeUpdateNewShippingQuery                                  = "updateNewShippingQuery"
	TypeUpdateNewPreCheckoutQuery                               = "updateNewPreCheckoutQuery"
	TypeUpdateNewCustomEvent                                    = "updateNewCustomEvent"
	TypeUpdateNewCustomQuery                                    = "updateNewCustomQuery"
	TypeUpdatePoll                                              = "updatePoll"
	TypeUpdatePollAnswer                                        = "updatePollAnswer"
	TypeUpdateChatMember                                        = "updateChatMember"
	TypeUpdateNewChatJoinRequest                                = "updateNewChatJoinRequest"
	TypeUpdateChatBoost                                         = "updateChatBoost"
	TypeUpdateMessageReaction                                   = "updateMessageReaction"
	TypeUpdateMessageReactions                                  = "updateMessageReactions"
	TypeUpdatePaidMediaPurchased                                = "updatePaidMediaPurchased"
	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

This section is empty.

Functions

func Authorize

func Authorize(client *Client, authorizationStateHandler AuthorizationStateHandler) error

func BotAuthorizer

func BotAuthorizer(tdlibParameters *SetTdlibParametersRequest, token string) *botAuthorizer

func CliInteractor

func CliInteractor(clientAuthorizer *clientAuthorizer)

func ClientAuthorizer

func ClientAuthorizer(tdlibParameters *SetTdlibParametersRequest) *clientAuthorizer

func NotSupportedAuthorizationState added in v0.7.6

func NotSupportedAuthorizationState(state AuthorizationState) error

func QrAuthorizer added in v0.7.6

func QrAuthorizer(tdlibParameters *SetTdlibParametersRequest, linkHandler func(link string) error) *qrAuthorizer

Types

type AccentColor added in v0.7.1

type AccentColor struct {

	// Accent color identifier
	Id int32 `json:"id"`
	// Identifier of a built-in color to use in places, where only one color is needed; 0-6
	BuiltInAccentColorId int32 `json:"built_in_accent_color_id"`
	// The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes
	LightThemeColors []int32 `json:"light_theme_colors"`
	// The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes
	DarkThemeColors []int32 `json:"dark_theme_colors"`
	// The minimum chat boost level required to use the color in a channel chat
	MinChannelChatBoostLevel int32 `json:"min_channel_chat_boost_level"`
	// contains filtered or unexported fields
}

Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews

func UnmarshalAccentColor added in v0.7.1

func UnmarshalAccentColor(data json.RawMessage) (*AccentColor, error)

func (*AccentColor) GetClass added in v0.7.1

func (*AccentColor) GetClass() string

func (*AccentColor) GetType added in v0.7.1

func (*AccentColor) GetType() string

func (*AccentColor) MarshalJSON added in v0.7.1

func (entity *AccentColor) MarshalJSON() ([]byte, error)

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-730 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 AddBotMediaPreviewRequest added in v0.7.3

type AddBotMediaPreviewRequest struct {
	// Identifier of the target bot. The bot must be owned and must have the main Web App
	BotUserId int64 `json:"bot_user_id"`
	// A two-letter ISO 639-1 language code for which preview is added. If empty, then the preview will be shown to all users for whose languages there are no dedicated previews. If non-empty, then there must be an official language pack of the same name, which is returned by getLocalizationTargetInfo
	LanguageCode string `json:"language_code"`
	// Content of the added preview
	Content InputStoryContent `json:"content"`
}

type AddChatFolderByInviteLinkRequest added in v0.7.0

type AddChatFolderByInviteLinkRequest struct {
	// Invite link for the chat folder
	InviteLink string `json:"invite_link"`
	// Identifiers of the chats added to the chat folder. The chats are automatically joined if they aren't joined yet
	ChatIds []int64 `json:"chat_ids"`
}

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 AddChatMembersRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Identifiers of the users to be added to the chat. The maximum number of added users is 20 for supergroups and 100 for channels
	UserIds []int64 `json:"user_ids"`
}

type AddChatToListRequest added in v0.3.0

type AddChatToListRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// The chat list. Use getChatListsToAddChat to get suitable chat lists
	ChatList ChatList `json:"chat_list"`
}

type AddContactRequest added in v0.2.0

type AddContactRequest struct {
	// The contact to add or edit; phone number may be empty and needs to be specified only if known, vCard is ignored
	Contact *Contact `json:"contact"`
	// Pass true to share the current user's phone number with the new contact. A corresponding rule to userPrivacySettingShowPhoneNumber will be added if needed. Use the field userFullInfo.need_phone_number_privacy_exception to check whether the current user needs to be asked to share their phone number
	SharePhoneNumber bool `json:"share_phone_number"`
}

type AddCustomServerLanguagePackRequest added in v0.0.13

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 v0.7.0

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"`
	// Information about the message or story to be replied; pass null if none
	ReplyTo InputMessageReplyTo `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 added in v0.0.13

type AddLogMessageRequest struct {
	// The minimum verbosity level needed for the message to be logged; 0-1023
	VerbosityLevel int32 `json:"verbosity_level"`
	// Text of a message to log
	Text string `json:"text"`
}

type AddMessageReactionRequest added in v0.7.0

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. Use addPendingPaidMessageReaction instead to add the paid reaction
	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; tags are never added to the list of 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 AddPendingPaidMessageReactionRequest added in v0.7.3

type AddPendingPaidMessageReactionRequest struct {
	// Identifier of the chat to which the message belongs
	ChatId int64 `json:"chat_id"`
	// Identifier of the message
	MessageId int64 `json:"message_id"`
	// Number of Telegram Stars to be used for the reaction. The total number of pending paid reactions must not exceed getOption("paid_reaction_star_count_max")
	StarCount int64 `json:"star_count"`
	// Pass true if the user didn't choose anonymity explicitly, for example, the reaction is set from the message bubble
	UseDefaultIsAnonymous bool `json:"use_default_is_anonymous"`
	// Pass true to make paid reaction of the user on the message anonymous; pass false to make the user's profile visible among top reactors. Ignored if use_default_is_anonymous == true
	IsAnonymous bool `json:"is_anonymous"`
}

type AddProxyRequest

type AddProxyRequest struct {
	// 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 AddQuickReplyShortcutInlineQueryResultMessageRequest added in v0.7.3

type AddQuickReplyShortcutInlineQueryResultMessageRequest struct {
	// Name of the target shortcut
	ShortcutName string `json:"shortcut_name"`
	// Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none
	ReplyToMessageId int64 `json:"reply_to_message_id"`
	// 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 AddQuickReplyShortcutMessageAlbumRequest added in v0.7.3

type AddQuickReplyShortcutMessageAlbumRequest struct {
	// Name of the target shortcut
	ShortcutName string `json:"shortcut_name"`
	// Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none
	ReplyToMessageId int64 `json:"reply_to_message_id"`
	// Contents of messages to be sent. At most 10 messages can be added to an album. All messages must have the same value of show_caption_above_media
	InputMessageContents []InputMessageContent `json:"input_message_contents"`
}

type AddQuickReplyShortcutMessageRequest added in v0.7.3

type AddQuickReplyShortcutMessageRequest struct {
	// Name of the target shortcut
	ShortcutName string `json:"shortcut_name"`
	// Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none
	ReplyToMessageId int64 `json:"reply_to_message_id"`
	// The content of the message to be added; inputMessagePoll, inputMessageForwarded and inputMessageLocation with live_period aren't supported
	InputMessageContent InputMessageContent `json:"input_message_content"`
}

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 v0.7.0

type AddSavedNotificationSoundRequest struct {
	// Notification sound file to add
	Sound InputFile `json:"sound"`
}

type AddStickerToSetRequest

type AddStickerToSetRequest struct {
	// Sticker set owner; ignored for regular users
	UserId int64 `json:"user_id"`
	// Sticker set name. The sticker set must be owned by the current user, and contain less than 200 stickers for custom emoji sticker sets and less than 120 otherwise
	Name string `json:"name"`
	// Sticker to add to the set
	Sticker *InputSticker `json:"sticker"`
}

type AddedReaction added in v0.7.0

type AddedReaction struct {

	// Type of the reaction
	Type ReactionType `json:"type"`
	// Identifier of the chat member, applied the reaction
	SenderId MessageSender `json:"sender_id"`
	// True, if the reaction was added by the current user
	IsOutgoing bool `json:"is_outgoing"`
	// 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 v0.7.0

func UnmarshalAddedReaction(data json.RawMessage) (*AddedReaction, error)

func (*AddedReaction) GetClass added in v0.7.0

func (*AddedReaction) GetClass() string

func (*AddedReaction) GetType added in v0.7.0

func (*AddedReaction) GetType() string

func (*AddedReaction) MarshalJSON added in v0.7.0

func (entity *AddedReaction) MarshalJSON() ([]byte, error)

func (*AddedReaction) UnmarshalJSON added in v0.7.0

func (addedReaction *AddedReaction) UnmarshalJSON(data []byte) error

type AddedReactions added in v0.7.0

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, then 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 v0.7.0

func UnmarshalAddedReactions(data json.RawMessage) (*AddedReactions, error)

func (*AddedReactions) GetClass added in v0.7.0

func (*AddedReactions) GetClass() string

func (*AddedReactions) GetType added in v0.7.0

func (*AddedReactions) GetType() string

func (*AddedReactions) MarshalJSON added in v0.7.0

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) GetClass

func (*Address) GetClass() string

func (*Address) GetType

func (*Address) GetType() string

func (*Address) MarshalJSON

func (entity *Address) MarshalJSON() ([]byte, error)

type AllowBotToSendMessagesRequest added in v0.7.0

type AllowBotToSendMessagesRequest struct {
	// Identifier of the target bot
	BotUserId int64 `json:"bot_user_id"`
}

type AlternativeVideo added in v0.7.3

type AlternativeVideo struct {

	// Video width
	Width int32 `json:"width"`
	// Video height
	Height int32 `json:"height"`
	// Codec used for video file encoding, for example, "h264", "h265", or "av1"
	Codec string `json:"codec"`
	// HLS file describing the video
	HlsFile *File `json:"hls_file"`
	// File containing the video
	Video *File `json:"video"`
	// contains filtered or unexported fields
}

Describes an alternative re-encoded quality of a video file

func UnmarshalAlternativeVideo added in v0.7.3

func UnmarshalAlternativeVideo(data json.RawMessage) (*AlternativeVideo, error)

func (*AlternativeVideo) GetClass added in v0.7.3

func (*AlternativeVideo) GetClass() string

func (*AlternativeVideo) GetType added in v0.7.3

func (*AlternativeVideo) GetType() string

func (*AlternativeVideo) MarshalJSON added in v0.7.3

func (entity *AlternativeVideo) MarshalJSON() ([]byte, error)

type AnimatedChatPhoto added in v0.3.0

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 added in v0.3.0

func UnmarshalAnimatedChatPhoto(data json.RawMessage) (*AnimatedChatPhoto, error)

func (*AnimatedChatPhoto) GetClass added in v0.3.0

func (*AnimatedChatPhoto) GetClass() string

func (*AnimatedChatPhoto) GetType added in v0.3.0

func (*AnimatedChatPhoto) GetType() string

func (*AnimatedChatPhoto) MarshalJSON added in v0.3.0

func (entity *AnimatedChatPhoto) MarshalJSON() ([]byte, error)

type AnimatedEmoji added in v0.5.0

type AnimatedEmoji struct {

	// Sticker for the emoji; may be null if yet unknown for a custom emoji. If the sticker is a custom emoji, then it can have arbitrary format
	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 added in v0.5.0

func UnmarshalAnimatedEmoji(data json.RawMessage) (*AnimatedEmoji, error)

func (*AnimatedEmoji) GetClass added in v0.5.0

func (*AnimatedEmoji) GetClass() string

func (*AnimatedEmoji) GetType added in v0.5.0

func (*AnimatedEmoji) GetType() string

func (*AnimatedEmoji) MarshalJSON added in v0.5.0

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) GetClass

func (*Animation) GetClass() string

func (*Animation) GetType

func (*Animation) GetType() string

func (*Animation) MarshalJSON

func (entity *Animation) MarshalJSON() ([]byte, error)

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 AnswerCustomQueryRequest

type AnswerCustomQueryRequest struct {
	// Identifier of a custom query
	CustomQueryId JsonInt64 `json:"custom_query_id"`
	// JSON-serialized answer to the query
	Data string `json:"data"`
}

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 AnswerPreCheckoutQueryRequest

type AnswerPreCheckoutQueryRequest struct {
	// Identifier of the pre-checkout query
	PreCheckoutQueryId JsonInt64 `json:"pre_checkout_query_id"`
	// An error message, empty on success
	ErrorMessage string `json:"error_message"`
}

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 v0.7.0

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 ApplyPremiumGiftCodeRequest added in v0.7.1

type ApplyPremiumGiftCodeRequest struct {
	// The code to apply
	Code string `json:"code"`
}

type ArchiveChatListSettings added in v0.7.0

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 v0.7.0

func UnmarshalArchiveChatListSettings(data json.RawMessage) (*ArchiveChatListSettings, error)

func (*ArchiveChatListSettings) GetClass added in v0.7.0

func (*ArchiveChatListSettings) GetClass() string

func (*ArchiveChatListSettings) GetType added in v0.7.0

func (*ArchiveChatListSettings) GetType() string

func (*ArchiveChatListSettings) MarshalJSON added in v0.7.0

func (entity *ArchiveChatListSettings) MarshalJSON() ([]byte, error)

type AssignAppStoreTransactionRequest added in v0.7.0

type AssignAppStoreTransactionRequest struct {
	// App Store receipt
	Receipt []byte `json:"receipt"`
	// Transaction purpose
	Purpose StorePaymentPurpose `json:"purpose"`
}

type AssignGooglePlayTransactionRequest added in v0.7.0

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 v0.7.0

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 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 v0.7.0

func UnmarshalAttachmentMenuBot(data json.RawMessage) (*AttachmentMenuBot, error)

func (*AttachmentMenuBot) GetClass added in v0.7.0

func (*AttachmentMenuBot) GetClass() string

func (*AttachmentMenuBot) GetType added in v0.7.0

func (*AttachmentMenuBot) GetType() string

func (*AttachmentMenuBot) MarshalJSON added in v0.7.0

func (entity *AttachmentMenuBot) MarshalJSON() ([]byte, error)

type AttachmentMenuBotColor added in v0.7.0

type AttachmentMenuBotColor struct {

	// Color in the RGB format for light themes
	LightColor int32 `json:"light_color"`
	// Color in the RGB 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 v0.7.0

func UnmarshalAttachmentMenuBotColor(data json.RawMessage) (*AttachmentMenuBotColor, error)

func (*AttachmentMenuBotColor) GetClass added in v0.7.0

func (*AttachmentMenuBotColor) GetClass() string

func (*AttachmentMenuBotColor) GetType added in v0.7.0

func (*AttachmentMenuBotColor) GetType() string

func (*AttachmentMenuBotColor) MarshalJSON added in v0.7.0

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 expected 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) GetClass

func (*Audio) GetClass() string

func (*Audio) GetType

func (*Audio) GetType() string

func (*Audio) MarshalJSON

func (entity *Audio) MarshalJSON() ([]byte, error)

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 added in v0.3.2

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
}

A digit-only 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) MarshalJSON

func (entity *AuthenticationCodeTypeCall) MarshalJSON() ([]byte, error)

type AuthenticationCodeTypeFirebaseAndroid added in v0.7.0

type AuthenticationCodeTypeFirebaseAndroid struct {

	// Parameters to be used for device verification
	DeviceVerificationParameters FirebaseDeviceVerificationParameters `json:"device_verification_parameters"`
	// Length of the code
	Length int32 `json:"length"`
	// contains filtered or unexported fields
}

A digit-only authentication code is delivered via Firebase Authentication to the official Android application

func UnmarshalAuthenticationCodeTypeFirebaseAndroid added in v0.7.0

func UnmarshalAuthenticationCodeTypeFirebaseAndroid(data json.RawMessage) (*AuthenticationCodeTypeFirebaseAndroid, error)

func (*AuthenticationCodeTypeFirebaseAndroid) AuthenticationCodeTypeType added in v0.7.0

func (*AuthenticationCodeTypeFirebaseAndroid) AuthenticationCodeTypeType() string

func (*AuthenticationCodeTypeFirebaseAndroid) GetClass added in v0.7.0

func (*AuthenticationCodeTypeFirebaseAndroid) GetType added in v0.7.0

func (*AuthenticationCodeTypeFirebaseAndroid) MarshalJSON added in v0.7.0

func (entity *AuthenticationCodeTypeFirebaseAndroid) MarshalJSON() ([]byte, error)

func (*AuthenticationCodeTypeFirebaseAndroid) UnmarshalJSON added in v0.7.3

func (authenticationCodeTypeFirebaseAndroid *AuthenticationCodeTypeFirebaseAndroid) UnmarshalJSON(data []byte) error

type AuthenticationCodeTypeFirebaseIos added in v0.7.0

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 expected 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
}

A digit-only authentication code is delivered via Firebase Authentication to the official iOS application

func UnmarshalAuthenticationCodeTypeFirebaseIos added in v0.7.0

func UnmarshalAuthenticationCodeTypeFirebaseIos(data json.RawMessage) (*AuthenticationCodeTypeFirebaseIos, error)

func (*AuthenticationCodeTypeFirebaseIos) AuthenticationCodeTypeType added in v0.7.0

func (*AuthenticationCodeTypeFirebaseIos) AuthenticationCodeTypeType() string

func (*AuthenticationCodeTypeFirebaseIos) GetClass added in v0.7.0

func (*AuthenticationCodeTypeFirebaseIos) GetType added in v0.7.0

func (*AuthenticationCodeTypeFirebaseIos) MarshalJSON added in v0.7.0

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) GetType

func (*AuthenticationCodeTypeFlashCall) MarshalJSON

func (entity *AuthenticationCodeTypeFlashCall) MarshalJSON() ([]byte, error)

type AuthenticationCodeTypeFragment added in v0.7.0

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
}

A digit-only 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 v0.7.0

func UnmarshalAuthenticationCodeTypeFragment(data json.RawMessage) (*AuthenticationCodeTypeFragment, error)

func (*AuthenticationCodeTypeFragment) AuthenticationCodeTypeType added in v0.7.0

func (*AuthenticationCodeTypeFragment) AuthenticationCodeTypeType() string

func (*AuthenticationCodeTypeFragment) GetClass added in v0.7.0

func (*AuthenticationCodeTypeFragment) GetType added in v0.7.0

func (*AuthenticationCodeTypeFragment) MarshalJSON added in v0.7.0

func (entity *AuthenticationCodeTypeFragment) MarshalJSON() ([]byte, error)

type AuthenticationCodeTypeMissedCall added in v0.5.0

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 added in v0.5.0

func UnmarshalAuthenticationCodeTypeMissedCall(data json.RawMessage) (*AuthenticationCodeTypeMissedCall, error)

func (*AuthenticationCodeTypeMissedCall) AuthenticationCodeTypeType added in v0.5.0

func (*AuthenticationCodeTypeMissedCall) AuthenticationCodeTypeType() string

func (*AuthenticationCodeTypeMissedCall) GetClass added in v0.5.0

func (*AuthenticationCodeTypeMissedCall) GetType added in v0.5.0

func (*AuthenticationCodeTypeMissedCall) MarshalJSON added in v0.5.0

func (entity *AuthenticationCodeTypeMissedCall) MarshalJSON() ([]byte, error)

type AuthenticationCodeTypeSms

type AuthenticationCodeTypeSms struct {

	// Length of the code
	Length int32 `json:"length"`
	// contains filtered or unexported fields
}

A digit-only authentication code is delivered via an SMS message to the specified phone number; non-official 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 AuthenticationCodeTypeSmsPhrase added in v0.7.3

type AuthenticationCodeTypeSmsPhrase struct {

	// The first word of the phrase if known
	FirstWord string `json:"first_word"`
	// contains filtered or unexported fields
}

An authentication code is a phrase from multiple words delivered via an SMS message to the specified phone number; non-official applications may not receive this type of code

func UnmarshalAuthenticationCodeTypeSmsPhrase added in v0.7.3

func UnmarshalAuthenticationCodeTypeSmsPhrase(data json.RawMessage) (*AuthenticationCodeTypeSmsPhrase, error)

func (*AuthenticationCodeTypeSmsPhrase) AuthenticationCodeTypeType added in v0.7.3

func (*AuthenticationCodeTypeSmsPhrase) AuthenticationCodeTypeType() string

func (*AuthenticationCodeTypeSmsPhrase) GetClass added in v0.7.3

func (*AuthenticationCodeTypeSmsPhrase) GetType added in v0.7.3

func (*AuthenticationCodeTypeSmsPhrase) MarshalJSON added in v0.7.3

func (entity *AuthenticationCodeTypeSmsPhrase) MarshalJSON() ([]byte, error)

type AuthenticationCodeTypeSmsWord added in v0.7.3

type AuthenticationCodeTypeSmsWord struct {

	// The first letters of the word if known
	FirstLetter string `json:"first_letter"`
	// contains filtered or unexported fields
}

An authentication code is a word delivered via an SMS message to the specified phone number; non-official applications may not receive this type of code

func UnmarshalAuthenticationCodeTypeSmsWord added in v0.7.3

func UnmarshalAuthenticationCodeTypeSmsWord(data json.RawMessage) (*AuthenticationCodeTypeSmsWord, error)

func (*AuthenticationCodeTypeSmsWord) AuthenticationCodeTypeType added in v0.7.3

func (*AuthenticationCodeTypeSmsWord) AuthenticationCodeTypeType() string

func (*AuthenticationCodeTypeSmsWord) GetClass added in v0.7.3

func (*AuthenticationCodeTypeSmsWord) GetType added in v0.7.3

func (*AuthenticationCodeTypeSmsWord) MarshalJSON added in v0.7.3

func (entity *AuthenticationCodeTypeSmsWord) MarshalJSON() ([]byte, error)

type AuthenticationCodeTypeTelegramMessage

type AuthenticationCodeTypeTelegramMessage struct {

	// Length of the code
	Length int32 `json:"length"`
	// contains filtered or unexported fields
}

A digit-only 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) GetType

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 added in v0.3.2

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) GetType

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) MarshalJSON

func (entity *AuthorizationStateWaitCode) MarshalJSON() ([]byte, error)

type AuthorizationStateWaitEmailAddress added in v0.7.0

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 v0.7.0

func UnmarshalAuthorizationStateWaitEmailAddress(data json.RawMessage) (*AuthorizationStateWaitEmailAddress, error)

func (*AuthorizationStateWaitEmailAddress) AuthorizationStateType added in v0.7.0

func (*AuthorizationStateWaitEmailAddress) AuthorizationStateType() string

func (*AuthorizationStateWaitEmailAddress) GetClass added in v0.7.0

func (*AuthorizationStateWaitEmailAddress) GetType added in v0.7.0

func (*AuthorizationStateWaitEmailAddress) MarshalJSON added in v0.7.0

func (entity *AuthorizationStateWaitEmailAddress) MarshalJSON() ([]byte, error)

type AuthorizationStateWaitEmailCode added in v0.7.0

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 v0.7.0

func UnmarshalAuthorizationStateWaitEmailCode(data json.RawMessage) (*AuthorizationStateWaitEmailCode, error)

func (*AuthorizationStateWaitEmailCode) AuthorizationStateType added in v0.7.0

func (*AuthorizationStateWaitEmailCode) AuthorizationStateType() string

func (*AuthorizationStateWaitEmailCode) GetClass added in v0.7.0

func (*AuthorizationStateWaitEmailCode) GetType added in v0.7.0

func (*AuthorizationStateWaitEmailCode) MarshalJSON added in v0.7.0

func (entity *AuthorizationStateWaitEmailCode) MarshalJSON() ([]byte, error)

func (*AuthorizationStateWaitEmailCode) UnmarshalJSON added in v0.7.0

func (authorizationStateWaitEmailCode *AuthorizationStateWaitEmailCode) UnmarshalJSON(data []byte) error

type AuthorizationStateWaitOtherDeviceConfirmation added in v0.2.0

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 added in v0.2.0

func UnmarshalAuthorizationStateWaitOtherDeviceConfirmation(data json.RawMessage) (*AuthorizationStateWaitOtherDeviceConfirmation, error)

func (*AuthorizationStateWaitOtherDeviceConfirmation) AuthorizationStateType added in v0.2.0

func (*AuthorizationStateWaitOtherDeviceConfirmation) AuthorizationStateType() string

func (*AuthorizationStateWaitOtherDeviceConfirmation) GetClass added in v0.2.0

func (*AuthorizationStateWaitOtherDeviceConfirmation) GetType added in v0.2.0

func (*AuthorizationStateWaitOtherDeviceConfirmation) MarshalJSON added in v0.2.0

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) GetType

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) GetType

func (*AuthorizationStateWaitPhoneNumber) MarshalJSON

func (entity *AuthorizationStateWaitPhoneNumber) MarshalJSON() ([]byte, error)

type AuthorizationStateWaitRegistration added in v0.1.0

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 added in v0.1.0

func UnmarshalAuthorizationStateWaitRegistration(data json.RawMessage) (*AuthorizationStateWaitRegistration, error)

func (*AuthorizationStateWaitRegistration) AuthorizationStateType added in v0.1.0

func (*AuthorizationStateWaitRegistration) AuthorizationStateType() string

func (*AuthorizationStateWaitRegistration) GetClass added in v0.1.0

func (*AuthorizationStateWaitRegistration) GetType added in v0.1.0

func (*AuthorizationStateWaitRegistration) MarshalJSON added in v0.1.0

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) GetType

func (*AuthorizationStateWaitTdlibParameters) MarshalJSON

func (entity *AuthorizationStateWaitTdlibParameters) MarshalJSON() ([]byte, error)

type AutoDownloadSettings added in v0.1.0

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 added in v0.1.0

func UnmarshalAutoDownloadSettings(data json.RawMessage) (*AutoDownloadSettings, error)

func (*AutoDownloadSettings) GetClass added in v0.1.0

func (*AutoDownloadSettings) GetClass() string

func (*AutoDownloadSettings) GetType added in v0.1.0

func (*AutoDownloadSettings) GetType() string

func (*AutoDownloadSettings) MarshalJSON added in v0.1.0

func (entity *AutoDownloadSettings) MarshalJSON() ([]byte, error)

type AutoDownloadSettingsPresets added in v0.1.0

type AutoDownloadSettingsPresets struct {

	// Preset with lowest settings; expected to be used by default when roaming
	Low *AutoDownloadSettings `json:"low"`
	// Preset with medium settings; expected to be used by default when using mobile data
	Medium *AutoDownloadSettings `json:"medium"`
	// Preset with highest settings; expected 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 added in v0.1.0

func UnmarshalAutoDownloadSettingsPresets(data json.RawMessage) (*AutoDownloadSettingsPresets, error)

func (*AutoDownloadSettingsPresets) GetClass added in v0.1.0

func (*AutoDownloadSettingsPresets) GetClass() string

func (*AutoDownloadSettingsPresets) GetType added in v0.1.0

func (*AutoDownloadSettingsPresets) MarshalJSON added in v0.1.0

func (entity *AutoDownloadSettingsPresets) MarshalJSON() ([]byte, error)

type AutosaveSettings added in v0.7.0

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 v0.7.0

func UnmarshalAutosaveSettings(data json.RawMessage) (*AutosaveSettings, error)

func (*AutosaveSettings) GetClass added in v0.7.0

func (*AutosaveSettings) GetClass() string

func (*AutosaveSettings) GetType added in v0.7.0

func (*AutosaveSettings) GetType() string

func (*AutosaveSettings) MarshalJSON added in v0.7.0

func (entity *AutosaveSettings) MarshalJSON() ([]byte, error)

type AutosaveSettingsException added in v0.7.0

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 v0.7.0

func UnmarshalAutosaveSettingsException(data json.RawMessage) (*AutosaveSettingsException, error)

func (*AutosaveSettingsException) GetClass added in v0.7.0

func (*AutosaveSettingsException) GetClass() string

func (*AutosaveSettingsException) GetType added in v0.7.0

func (*AutosaveSettingsException) GetType() string

func (*AutosaveSettingsException) MarshalJSON added in v0.7.0

func (entity *AutosaveSettingsException) MarshalJSON() ([]byte, error)

type AutosaveSettingsScope added in v0.7.0

type AutosaveSettingsScope interface {
	AutosaveSettingsScopeType() string
}

Describes scope of autosave settings

func UnmarshalAutosaveSettingsScope added in v0.7.0

func UnmarshalAutosaveSettingsScope(data json.RawMessage) (AutosaveSettingsScope, error)

func UnmarshalListOfAutosaveSettingsScope added in v0.7.0

func UnmarshalListOfAutosaveSettingsScope(dataList []json.RawMessage) ([]AutosaveSettingsScope, error)

type AutosaveSettingsScopeChannelChats added in v0.7.0

type AutosaveSettingsScopeChannelChats struct {
	// contains filtered or unexported fields
}

Autosave settings applied to all channel chats without chat-specific settings

func UnmarshalAutosaveSettingsScopeChannelChats added in v0.7.0

func UnmarshalAutosaveSettingsScopeChannelChats(data json.RawMessage) (*AutosaveSettingsScopeChannelChats, error)

func (*AutosaveSettingsScopeChannelChats) AutosaveSettingsScopeType added in v0.7.0

func (*AutosaveSettingsScopeChannelChats) AutosaveSettingsScopeType() string

func (*AutosaveSettingsScopeChannelChats) GetClass added in v0.7.0

func (*AutosaveSettingsScopeChannelChats) GetType added in v0.7.0

func (*AutosaveSettingsScopeChannelChats) MarshalJSON added in v0.7.0

func (entity *AutosaveSettingsScopeChannelChats) MarshalJSON() ([]byte, error)

type AutosaveSettingsScopeChat added in v0.7.0

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 v0.7.0

func UnmarshalAutosaveSettingsScopeChat(data json.RawMessage) (*AutosaveSettingsScopeChat, error)

func (*AutosaveSettingsScopeChat) AutosaveSettingsScopeType added in v0.7.0

func (*AutosaveSettingsScopeChat) AutosaveSettingsScopeType() string

func (*AutosaveSettingsScopeChat) GetClass added in v0.7.0

func (*AutosaveSettingsScopeChat) GetClass() string

func (*AutosaveSettingsScopeChat) GetType added in v0.7.0

func (*AutosaveSettingsScopeChat) GetType() string

func (*AutosaveSettingsScopeChat) MarshalJSON added in v0.7.0

func (entity *AutosaveSettingsScopeChat) MarshalJSON() ([]byte, error)

type AutosaveSettingsScopeGroupChats added in v0.7.0

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 v0.7.0

func UnmarshalAutosaveSettingsScopeGroupChats(data json.RawMessage) (*AutosaveSettingsScopeGroupChats, error)

func (*AutosaveSettingsScopeGroupChats) AutosaveSettingsScopeType added in v0.7.0

func (*AutosaveSettingsScopeGroupChats) AutosaveSettingsScopeType() string

func (*AutosaveSettingsScopeGroupChats) GetClass added in v0.7.0

func (*AutosaveSettingsScopeGroupChats) GetType added in v0.7.0

func (*AutosaveSettingsScopeGroupChats) MarshalJSON added in v0.7.0

func (entity *AutosaveSettingsScopeGroupChats) MarshalJSON() ([]byte, error)

type AutosaveSettingsScopePrivateChats added in v0.7.0

type AutosaveSettingsScopePrivateChats struct {
	// contains filtered or unexported fields
}

Autosave settings applied to all private chats without chat-specific settings

func UnmarshalAutosaveSettingsScopePrivateChats added in v0.7.0

func UnmarshalAutosaveSettingsScopePrivateChats(data json.RawMessage) (*AutosaveSettingsScopePrivateChats, error)

func (*AutosaveSettingsScopePrivateChats) AutosaveSettingsScopeType added in v0.7.0

func (*AutosaveSettingsScopePrivateChats) AutosaveSettingsScopeType() string

func (*AutosaveSettingsScopePrivateChats) GetClass added in v0.7.0

func (*AutosaveSettingsScopePrivateChats) GetType added in v0.7.0

func (*AutosaveSettingsScopePrivateChats) MarshalJSON added in v0.7.0

func (entity *AutosaveSettingsScopePrivateChats) MarshalJSON() ([]byte, error)

type AvailableReaction added in v0.7.0

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 v0.7.0

func UnmarshalAvailableReaction(data json.RawMessage) (*AvailableReaction, error)

func (*AvailableReaction) GetClass added in v0.7.0

func (*AvailableReaction) GetClass() string

func (*AvailableReaction) GetType added in v0.7.0

func (*AvailableReaction) GetType() string

func (*AvailableReaction) MarshalJSON added in v0.7.0

func (entity *AvailableReaction) MarshalJSON() ([]byte, error)

func (*AvailableReaction) UnmarshalJSON added in v0.7.0

func (availableReaction *AvailableReaction) UnmarshalJSON(data []byte) error

type AvailableReactions added in v0.7.0

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 any custom emoji reaction can be added by Telegram Premium subscribers
	AllowCustomEmoji bool `json:"allow_custom_emoji"`
	// True, if the reactions will be tags and the message can be found by them
	AreTags bool `json:"are_tags"`
	// The reason why the current user can't add reactions to the message, despite some other users can; may be null if none
	UnavailabilityReason ReactionUnavailabilityReason `json:"unavailability_reason"`
	// contains filtered or unexported fields
}

Represents a list of reactions that can be added to a message

func UnmarshalAvailableReactions added in v0.7.0

func UnmarshalAvailableReactions(data json.RawMessage) (*AvailableReactions, error)

func (*AvailableReactions) GetClass added in v0.7.0

func (*AvailableReactions) GetClass() string

func (*AvailableReactions) GetType added in v0.7.0

func (*AvailableReactions) GetType() string

func (*AvailableReactions) MarshalJSON added in v0.7.0

func (entity *AvailableReactions) MarshalJSON() ([]byte, error)

func (*AvailableReactions) UnmarshalJSON added in v0.7.2

func (availableReactions *AvailableReactions) UnmarshalJSON(data []byte) error

type Background added in v0.1.0

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 and chat theme backgrounds
	Document *Document `json:"document"`
	// Type of the background
	Type BackgroundType `json:"type"`
	// contains filtered or unexported fields
}

Describes a chat background

func UnmarshalBackground added in v0.1.0

func UnmarshalBackground(data json.RawMessage) (*Background, error)

func (*Background) GetClass added in v0.1.0

func (*Background) GetClass() string

func (*Background) GetType added in v0.1.0

func (*Background) GetType() string

func (*Background) MarshalJSON added in v0.1.0

func (entity *Background) MarshalJSON() ([]byte, error)

func (*Background) UnmarshalJSON added in v0.1.0

func (background *Background) UnmarshalJSON(data []byte) error

type BackgroundFill added in v0.2.0

type BackgroundFill interface {
	BackgroundFillType() string
}

Describes a fill of a background

func UnmarshalBackgroundFill added in v0.2.0

func UnmarshalBackgroundFill(data json.RawMessage) (BackgroundFill, error)

func UnmarshalListOfBackgroundFill added in v0.3.2

func UnmarshalListOfBackgroundFill(dataList []json.RawMessage) ([]BackgroundFill, error)

type BackgroundFillFreeformGradient added in v0.5.0

type BackgroundFillFreeformGradient struct {

	// A list of 3 or 4 colors of the freeform gradient in the RGB format
	Colors []int32 `json:"colors"`
	// contains filtered or unexported fields
}

Describes a freeform gradient fill of a background

func UnmarshalBackgroundFillFreeformGradient added in v0.5.0

func UnmarshalBackgroundFillFreeformGradient(data json.RawMessage) (*BackgroundFillFreeformGradient, error)

func (*BackgroundFillFreeformGradient) BackgroundFillType added in v0.5.0

func (*BackgroundFillFreeformGradient) BackgroundFillType() string

func (*BackgroundFillFreeformGradient) GetClass added in v0.5.0

func (*BackgroundFillFreeformGradient) GetType added in v0.5.0

func (*BackgroundFillFreeformGradient) MarshalJSON added in v0.5.0

func (entity *BackgroundFillFreeformGradient) MarshalJSON() ([]byte, error)

type BackgroundFillGradient added in v0.2.0

type BackgroundFillGradient struct {

	// A top color of the background in the RGB format
	TopColor int32 `json:"top_color"`
	// A bottom color of the background in the RGB 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 added in v0.2.0

func UnmarshalBackgroundFillGradient(data json.RawMessage) (*BackgroundFillGradient, error)

func (*BackgroundFillGradient) BackgroundFillType added in v0.2.0

func (*BackgroundFillGradient) BackgroundFillType() string

func (*BackgroundFillGradient) GetClass added in v0.2.0

func (*BackgroundFillGradient) GetClass() string

func (*BackgroundFillGradient) GetType added in v0.2.0

func (*BackgroundFillGradient) GetType() string

func (*BackgroundFillGradient) MarshalJSON added in v0.2.0

func (entity *BackgroundFillGradient) MarshalJSON() ([]byte, error)

type BackgroundFillSolid added in v0.2.0

type BackgroundFillSolid struct {

	// A color of the background in the RGB format
	Color int32 `json:"color"`
	// contains filtered or unexported fields
}

Describes a solid fill of a background

func UnmarshalBackgroundFillSolid added in v0.2.0

func UnmarshalBackgroundFillSolid(data json.RawMessage) (*BackgroundFillSolid, error)

func (*BackgroundFillSolid) BackgroundFillType added in v0.2.0

func (*BackgroundFillSolid) BackgroundFillType() string

func (*BackgroundFillSolid) GetClass added in v0.2.0

func (*BackgroundFillSolid) GetClass() string

func (*BackgroundFillSolid) GetType added in v0.2.0

func (*BackgroundFillSolid) GetType() string

func (*BackgroundFillSolid) MarshalJSON added in v0.2.0

func (entity *BackgroundFillSolid) MarshalJSON() ([]byte, error)

type BackgroundType added in v0.1.0

type BackgroundType interface {
	BackgroundTypeType() string
}

Describes the type of background

func UnmarshalBackgroundType added in v0.1.0

func UnmarshalBackgroundType(data json.RawMessage) (BackgroundType, error)

func UnmarshalListOfBackgroundType added in v0.3.2

func UnmarshalListOfBackgroundType(dataList []json.RawMessage) ([]BackgroundType, error)

type BackgroundTypeChatTheme added in v0.7.2

type BackgroundTypeChatTheme struct {

	// Name of the chat theme
	ThemeName string `json:"theme_name"`
	// contains filtered or unexported fields
}

A background from a chat theme; can be used only as a chat background in channels

func UnmarshalBackgroundTypeChatTheme added in v0.7.2

func UnmarshalBackgroundTypeChatTheme(data json.RawMessage) (*BackgroundTypeChatTheme, error)

func (*BackgroundTypeChatTheme) BackgroundTypeType added in v0.7.2

func (*BackgroundTypeChatTheme) BackgroundTypeType() string

func (*BackgroundTypeChatTheme) GetClass added in v0.7.2

func (*BackgroundTypeChatTheme) GetClass() string

func (*BackgroundTypeChatTheme) GetType added in v0.7.2

func (*BackgroundTypeChatTheme) GetType() string

func (*BackgroundTypeChatTheme) MarshalJSON added in v0.7.2

func (entity *BackgroundTypeChatTheme) MarshalJSON() ([]byte, error)

type BackgroundTypeFill added in v0.2.0

type BackgroundTypeFill struct {

	// The background fill
	Fill BackgroundFill `json:"fill"`
	// contains filtered or unexported fields
}

A filled background

func UnmarshalBackgroundTypeFill added in v0.2.0

func UnmarshalBackgroundTypeFill(data json.RawMessage) (*BackgroundTypeFill, error)

func (*BackgroundTypeFill) BackgroundTypeType added in v0.2.0

func (*BackgroundTypeFill) BackgroundTypeType() string

func (*BackgroundTypeFill) GetClass added in v0.2.0

func (*BackgroundTypeFill) GetClass() string

func (*BackgroundTypeFill) GetType added in v0.2.0

func (*BackgroundTypeFill) GetType() string

func (*BackgroundTypeFill) MarshalJSON added in v0.2.0

func (entity *BackgroundTypeFill) MarshalJSON() ([]byte, error)

func (*BackgroundTypeFill) UnmarshalJSON added in v0.2.0

func (backgroundTypeFill *BackgroundTypeFill) UnmarshalJSON(data []byte) error

type BackgroundTypePattern added in v0.1.0

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 added in v0.1.0

func UnmarshalBackgroundTypePattern(data json.RawMessage) (*BackgroundTypePattern, error)

func (*BackgroundTypePattern) BackgroundTypeType added in v0.1.0

func (*BackgroundTypePattern) BackgroundTypeType() string

func (*BackgroundTypePattern) GetClass added in v0.1.0

func (*BackgroundTypePattern) GetClass() string

func (*BackgroundTypePattern) GetType added in v0.1.0

func (*BackgroundTypePattern) GetType() string

func (*BackgroundTypePattern) MarshalJSON added in v0.1.0

func (entity *BackgroundTypePattern) MarshalJSON() ([]byte, error)

func (*BackgroundTypePattern) UnmarshalJSON added in v0.2.0

func (backgroundTypePattern *BackgroundTypePattern) UnmarshalJSON(data []byte) error

type BackgroundTypeWallpaper added in v0.1.0

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 added in v0.1.0

func UnmarshalBackgroundTypeWallpaper(data json.RawMessage) (*BackgroundTypeWallpaper, error)

func (*BackgroundTypeWallpaper) BackgroundTypeType added in v0.1.0

func (*BackgroundTypeWallpaper) BackgroundTypeType() string

func (*BackgroundTypeWallpaper) GetClass added in v0.1.0

func (*BackgroundTypeWallpaper) GetClass() string

func (*BackgroundTypeWallpaper) GetType added in v0.1.0

func (*BackgroundTypeWallpaper) GetType() string

func (*BackgroundTypeWallpaper) MarshalJSON added in v0.1.0

func (entity *BackgroundTypeWallpaper) MarshalJSON() ([]byte, error)

type Backgrounds added in v0.1.0

type Backgrounds struct {

	// A list of backgrounds
	Backgrounds []*Background `json:"backgrounds"`
	// contains filtered or unexported fields
}

Contains a list of backgrounds

func UnmarshalBackgrounds added in v0.1.0

func UnmarshalBackgrounds(data json.RawMessage) (*Backgrounds, error)

func (*Backgrounds) GetClass added in v0.1.0

func (*Backgrounds) GetClass() string

func (*Backgrounds) GetType added in v0.1.0

func (*Backgrounds) GetType() string

func (*Backgrounds) MarshalJSON added in v0.1.0

func (entity *Backgrounds) MarshalJSON() ([]byte, error)

type BanChatMemberRequest added in v0.5.0

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 added in v0.3.0

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 added in v0.3.0

func UnmarshalBankCardActionOpenUrl(data json.RawMessage) (*BankCardActionOpenUrl, error)

func (*BankCardActionOpenUrl) GetClass added in v0.3.0

func (*BankCardActionOpenUrl) GetClass() string

func (*BankCardActionOpenUrl) GetType added in v0.3.0

func (*BankCardActionOpenUrl) GetType() string

func (*BankCardActionOpenUrl) MarshalJSON added in v0.3.0

func (entity *BankCardActionOpenUrl) MarshalJSON() ([]byte, error)

type BankCardInfo added in v0.3.0

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 added in v0.3.0

func UnmarshalBankCardInfo(data json.RawMessage) (*BankCardInfo, error)

func (*BankCardInfo) GetClass added in v0.3.0

func (*BankCardInfo) GetClass() string

func (*BankCardInfo) GetType added in v0.3.0

func (*BankCardInfo) GetType() string

func (*BankCardInfo) MarshalJSON added in v0.3.0

func (entity *BankCardInfo) MarshalJSON() ([]byte, error)

type BasicGroup

type BasicGroup struct {

	// Group identifier
	Id int64 `json:"id"`
	// 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 Birthdate added in v0.7.2

type Birthdate struct {

	// Day of the month; 1-31
	Day int32 `json:"day"`
	// Month of the year; 1-12
	Month int32 `json:"month"`
	// Birth year; 0 if unknown
	Year int32 `json:"year"`
	// contains filtered or unexported fields
}

Represents a birthdate of a user

func UnmarshalBirthdate added in v0.7.2

func UnmarshalBirthdate(data json.RawMessage) (*Birthdate, error)

func (*Birthdate) GetClass added in v0.7.2

func (*Birthdate) GetClass() string

func (*Birthdate) GetType added in v0.7.2

func (*Birthdate) GetType() string

func (*Birthdate) MarshalJSON added in v0.7.2

func (entity *Birthdate) MarshalJSON() ([]byte, error)

type BlockList added in v0.7.0

type BlockList interface {
	BlockListType() string
}

Describes type of block list

func UnmarshalBlockList added in v0.7.0

func UnmarshalBlockList(data json.RawMessage) (BlockList, error)

func UnmarshalListOfBlockList added in v0.7.0

func UnmarshalListOfBlockList(dataList []json.RawMessage) ([]BlockList, error)

type BlockListMain added in v0.7.0

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 v0.7.0

func UnmarshalBlockListMain(data json.RawMessage) (*BlockListMain, error)

func (*BlockListMain) BlockListType added in v0.7.0

func (*BlockListMain) BlockListType() string

func (*BlockListMain) GetClass added in v0.7.0

func (*BlockListMain) GetClass() string

func (*BlockListMain) GetType added in v0.7.0

func (*BlockListMain) GetType() string

func (*BlockListMain) MarshalJSON added in v0.7.0

func (entity *BlockListMain) MarshalJSON() ([]byte, error)

type BlockListStories added in v0.7.0

type BlockListStories struct {
	// contains filtered or unexported fields
}

The block list that disallows viewing of stories of the current user

func UnmarshalBlockListStories added in v0.7.0

func UnmarshalBlockListStories(data json.RawMessage) (*BlockListStories, error)

func (*BlockListStories) BlockListType added in v0.7.0

func (*BlockListStories) BlockListType() string

func (*BlockListStories) GetClass added in v0.7.0

func (*BlockListStories) GetClass() string

func (*BlockListStories) GetType added in v0.7.0

func (*BlockListStories) GetType() string

func (*BlockListStories) MarshalJSON added in v0.7.0

func (entity *BlockListStories) MarshalJSON() ([]byte, error)

type BlockMessageSenderFromRepliesRequest added in v0.3.0

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 BoostChatRequest added in v0.7.1

type BoostChatRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
	// Identifiers of boost slots of the current user from which to apply boosts to the chat
	SlotIds []int32 `json:"slot_ids"`
}

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 added in v0.5.0

type BotCommandScope interface {
	BotCommandScopeType() string
}

Represents the scope to which bot commands are relevant

func UnmarshalBotCommandScope added in v0.5.0

func UnmarshalBotCommandScope(data json.RawMessage) (BotCommandScope, error)

func UnmarshalListOfBotCommandScope added in v0.5.0

func UnmarshalListOfBotCommandScope(dataList []json.RawMessage) ([]BotCommandScope, error)

type BotCommandScopeAllChatAdministrators added in v0.5.0

type BotCommandScopeAllChatAdministrators struct {
	// contains filtered or unexported fields
}

A scope covering all group and supergroup chat administrators

func UnmarshalBotCommandScopeAllChatAdministrators added in v0.5.0

func UnmarshalBotCommandScopeAllChatAdministrators(data json.RawMessage) (*BotCommandScopeAllChatAdministrators, error)

func (*BotCommandScopeAllChatAdministrators) BotCommandScopeType added in v0.5.0

func (*BotCommandScopeAllChatAdministrators) BotCommandScopeType() string

func (*BotCommandScopeAllChatAdministrators) GetClass added in v0.5.0

func (*BotCommandScopeAllChatAdministrators) GetType added in v0.5.0

func (*BotCommandScopeAllChatAdministrators) MarshalJSON added in v0.5.0

func (entity *BotCommandScopeAllChatAdministrators) MarshalJSON() ([]byte, error)

type BotCommandScopeAllGroupChats added in v0.5.0

type BotCommandScopeAllGroupChats struct {
	// contains filtered or unexported fields
}

A scope covering all group and supergroup chats

func UnmarshalBotCommandScopeAllGroupChats added in v0.5.0

func UnmarshalBotCommandScopeAllGroupChats(data json.RawMessage) (*BotCommandScopeAllGroupChats, error)

func (*BotCommandScopeAllGroupChats) BotCommandScopeType added in v0.5.0

func (*BotCommandScopeAllGroupChats) BotCommandScopeType() string

func (*BotCommandScopeAllGroupChats) GetClass added in v0.5.0

func (*BotCommandScopeAllGroupChats) GetType added in v0.5.0

func (*BotCommandScopeAllGroupChats) MarshalJSON added in v0.5.0

func (entity *BotCommandScopeAllGroupChats) MarshalJSON() ([]byte, error)

type BotCommandScopeAllPrivateChats added in v0.5.0

type BotCommandScopeAllPrivateChats struct {
	// contains filtered or unexported fields
}

A scope covering all private chats

func UnmarshalBotCommandScopeAllPrivateChats added in v0.5.0

func UnmarshalBotCommandScopeAllPrivateChats(data json.RawMessage) (*BotCommandScopeAllPrivateChats, error)

func (*BotCommandScopeAllPrivateChats) BotCommandScopeType added in v0.5.0

func (*BotCommandScopeAllPrivateChats) BotCommandScopeType() string

func (*BotCommandScopeAllPrivateChats) GetClass added in v0.5.0

func (*BotCommandScopeAllPrivateChats) GetType added in v0.5.0

func (*BotCommandScopeAllPrivateChats) MarshalJSON added in v0.5.0

func (entity *BotCommandScopeAllPrivateChats) MarshalJSON() ([]byte, error)

type BotCommandScopeChat added in v0.5.0

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 added in v0.5.0

func UnmarshalBotCommandScopeChat(data json.RawMessage) (*BotCommandScopeChat, error)

func (*BotCommandScopeChat) BotCommandScopeType added in v0.5.0

func (*BotCommandScopeChat) BotCommandScopeType() string

func (*BotCommandScopeChat) GetClass added in v0.5.0

func (*BotCommandScopeChat) GetClass() string

func (*BotCommandScopeChat) GetType added in v0.5.0

func (*BotCommandScopeChat) GetType() string

func (*BotCommandScopeChat) MarshalJSON added in v0.5.0

func (entity *BotCommandScopeChat) MarshalJSON() ([]byte, error)

type BotCommandScopeChatAdministrators added in v0.5.0

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 added in v0.5.0

func UnmarshalBotCommandScopeChatAdministrators(data json.RawMessage) (*BotCommandScopeChatAdministrators, error)

func (*BotCommandScopeChatAdministrators) BotCommandScopeType added in v0.5.0

func (*BotCommandScopeChatAdministrators) BotCommandScopeType() string

func (*BotCommandScopeChatAdministrators) GetClass added in v0.5.0

func (*BotCommandScopeChatAdministrators) GetType added in v0.5.0

func (*BotCommandScopeChatAdministrators) MarshalJSON added in v0.5.0

func (entity *BotCommandScopeChatAdministrators) MarshalJSON() ([]byte, error)

type BotCommandScopeChatMember added in v0.5.0

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 added in v0.5.0

func UnmarshalBotCommandScopeChatMember(data json.RawMessage) (*BotCommandScopeChatMember, error)

func (*BotCommandScopeChatMember) BotCommandScopeType added in v0.5.0

func (*BotCommandScopeChatMember) BotCommandScopeType() string

func (*BotCommandScopeChatMember) GetClass added in v0.5.0

func (*BotCommandScopeChatMember) GetClass() string

func (*BotCommandScopeChatMember) GetType added in v0.5.0

func (*BotCommandScopeChatMember) GetType() string

func (*BotCommandScopeChatMember) MarshalJSON added in v0.5.0

func (entity *BotCommandScopeChatMember) MarshalJSON() ([]byte, error)

type BotCommandScopeDefault added in v0.5.0

type BotCommandScopeDefault struct {
	// contains filtered or unexported fields
}

A scope covering all users

func UnmarshalBotCommandScopeDefault added in v0.5.0

func UnmarshalBotCommandScopeDefault(data json.RawMessage) (*BotCommandScopeDefault, error)

func (*BotCommandScopeDefault) BotCommandScopeType added in v0.5.0

func (*BotCommandScopeDefault) BotCommandScopeType() string

func (*BotCommandScopeDefault) GetClass added in v0.5.0

func (*BotCommandScopeDefault) GetClass() string

func (*BotCommandScopeDefault) GetType added in v0.5.0

func (*BotCommandScopeDefault) GetType() string

func (*BotCommandScopeDefault) MarshalJSON added in v0.5.0

func (entity *BotCommandScopeDefault) MarshalJSON() ([]byte, error)

type BotCommands added in v0.5.0

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 added in v0.5.0

func UnmarshalBotCommands(data json.RawMessage) (*BotCommands, error)

func (*BotCommands) GetClass added in v0.5.0

func (*BotCommands) GetClass() string

func (*BotCommands) GetType added in v0.5.0

func (*BotCommands) GetType() string

func (*BotCommands) MarshalJSON added in v0.5.0

func (entity *BotCommands) MarshalJSON() ([]byte, error)

type BotInfo

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"`
	// The HTTP link to the privacy policy of the bot. If empty, then /privacy command must be used if supported by the bot. If the command isn't supported, then https://telegram.org/privacy-tpa must be opened
	PrivacyPolicyUrl string `json:"privacy_policy_url"`
	// 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"`
	// Default light background color for bot Web Apps; -1 if not specified
	WebAppBackgroundLightColor int32 `json:"web_app_background_light_color"`
	// Default dark background color for bot Web Apps; -1 if not specified
	WebAppBackgroundDarkColor int32 `json:"web_app_background_dark_color"`
	// Default light header color for bot Web Apps; -1 if not specified
	WebAppHeaderLightColor int32 `json:"web_app_header_light_color"`
	// Default dark header color for bot Web Apps; -1 if not specified
	WebAppHeaderDarkColor int32 `json:"web_app_header_dark_color"`
	// True, if the bot's revenue statistics are available to the current user
	CanGetRevenueStatistics bool `json:"can_get_revenue_statistics"`
	// True, if the bot can manage emoji status of the current user
	CanManageEmojiStatus bool `json:"can_manage_emoji_status"`
	// True, if the bot has media previews
	HasMediaPreviews bool `json:"has_media_previews"`
	// 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

func UnmarshalBotInfo(data json.RawMessage) (*BotInfo, error)

func (*BotInfo) GetClass

func (*BotInfo) GetClass() string

func (*BotInfo) GetType

func (*BotInfo) GetType() string

func (*BotInfo) MarshalJSON

func (entity *BotInfo) MarshalJSON() ([]byte, error)

func (*BotInfo) UnmarshalJSON added in v0.7.0

func (botInfo *BotInfo) UnmarshalJSON(data []byte) error

type BotMediaPreview added in v0.7.3

type BotMediaPreview struct {

	// Point in time (Unix timestamp) when the preview was added or changed last time
	Date int32 `json:"date"`
	// Content of the preview
	Content StoryContent `json:"content"`
	// contains filtered or unexported fields
}

Describes media previews of a bot

func UnmarshalBotMediaPreview added in v0.7.3

func UnmarshalBotMediaPreview(data json.RawMessage) (*BotMediaPreview, error)

func (*BotMediaPreview) GetClass added in v0.7.3

func (*BotMediaPreview) GetClass() string

func (*BotMediaPreview) GetType added in v0.7.3

func (*BotMediaPreview) GetType() string

func (*BotMediaPreview) MarshalJSON added in v0.7.3

func (entity *BotMediaPreview) MarshalJSON() ([]byte, error)

func (*BotMediaPreview) UnmarshalJSON added in v0.7.3

func (botMediaPreview *BotMediaPreview) UnmarshalJSON(data []byte) error

type BotMediaPreviewInfo added in v0.7.3

type BotMediaPreviewInfo struct {

	// List of media previews
	Previews []*BotMediaPreview `json:"previews"`
	// List of language codes for which the bot has dedicated previews
	LanguageCodes []string `json:"language_codes"`
	// contains filtered or unexported fields
}

Contains a list of media previews of a bot for the given language and the list of languages for which the bot has dedicated previews

func UnmarshalBotMediaPreviewInfo added in v0.7.3

func UnmarshalBotMediaPreviewInfo(data json.RawMessage) (*BotMediaPreviewInfo, error)

func (*BotMediaPreviewInfo) GetClass added in v0.7.3

func (*BotMediaPreviewInfo) GetClass() string

func (*BotMediaPreviewInfo) GetType added in v0.7.3

func (*BotMediaPreviewInfo) GetType() string

func (*BotMediaPreviewInfo) MarshalJSON added in v0.7.3

func (entity *BotMediaPreviewInfo) MarshalJSON() ([]byte, error)

type BotMediaPreviews added in v0.7.3

type BotMediaPreviews struct {

	// List of media previews
	Previews []*BotMediaPreview `json:"previews"`
	// contains filtered or unexported fields
}

Contains a list of media previews of a bot

func UnmarshalBotMediaPreviews added in v0.7.3

func UnmarshalBotMediaPreviews(data json.RawMessage) (*BotMediaPreviews, error)

func (*BotMediaPreviews) GetClass added in v0.7.3

func (*BotMediaPreviews) GetClass() string

func (*BotMediaPreviews) GetType added in v0.7.3

func (*BotMediaPreviews) GetType() string

func (*BotMediaPreviews) MarshalJSON added in v0.7.3

func (entity *BotMediaPreviews) MarshalJSON() ([]byte, error)

type BotMenuButton added in v0.7.0

type BotMenuButton struct {

	// Text of the button
	Text string `json:"text"`
	// URL of a Web App to open when the button is pressed. If the link is of the type internalLinkTypeWebApp, then it must be processed accordingly. Otherwise, the link must 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 v0.7.0

func UnmarshalBotMenuButton(data json.RawMessage) (*BotMenuButton, error)

func (*BotMenuButton) GetClass added in v0.7.0

func (*BotMenuButton) GetClass() string

func (*BotMenuButton) GetType added in v0.7.0

func (*BotMenuButton) GetType() string

func (*BotMenuButton) MarshalJSON added in v0.7.0

func (entity *BotMenuButton) MarshalJSON() ([]byte, error)

type BotTransactionPurpose added in v0.7.3

type BotTransactionPurpose interface {
	BotTransactionPurposeType() string
}

Describes purpose of a transaction with a bot

func UnmarshalBotTransactionPurpose added in v0.7.3

func UnmarshalBotTransactionPurpose(data json.RawMessage) (BotTransactionPurpose, error)

func UnmarshalListOfBotTransactionPurpose added in v0.7.3

func UnmarshalListOfBotTransactionPurpose(dataList []json.RawMessage) ([]BotTransactionPurpose, error)

type BotTransactionPurposeInvoicePayment added in v0.7.3

type BotTransactionPurposeInvoicePayment struct {

	// Information about the bought product; may be null if not applicable
	ProductInfo *ProductInfo `json:"product_info"`
	// Invoice payload; for bots only
	InvoicePayload []byte `json:"invoice_payload"`
	// contains filtered or unexported fields
}

User bought a product from the bot

func UnmarshalBotTransactionPurposeInvoicePayment added in v0.7.3

func UnmarshalBotTransactionPurposeInvoicePayment(data json.RawMessage) (*BotTransactionPurposeInvoicePayment, error)

func (*BotTransactionPurposeInvoicePayment) BotTransactionPurposeType added in v0.7.3

func (*BotTransactionPurposeInvoicePayment) BotTransactionPurposeType() string

func (*BotTransactionPurposeInvoicePayment) GetClass added in v0.7.3

func (*BotTransactionPurposeInvoicePayment) GetType added in v0.7.3

func (*BotTransactionPurposeInvoicePayment) MarshalJSON added in v0.7.3

func (entity *BotTransactionPurposeInvoicePayment) MarshalJSON() ([]byte, error)

type BotTransactionPurposePaidMedia added in v0.7.3

type BotTransactionPurposePaidMedia struct {

	// The bought media if the transaction wasn't refunded
	Media []PaidMedia `json:"media"`
	// Bot-provided payload; for bots only
	Payload string `json:"payload"`
	// contains filtered or unexported fields
}

Paid media were bought

func UnmarshalBotTransactionPurposePaidMedia added in v0.7.3

func UnmarshalBotTransactionPurposePaidMedia(data json.RawMessage) (*BotTransactionPurposePaidMedia, error)

func (*BotTransactionPurposePaidMedia) BotTransactionPurposeType added in v0.7.3

func (*BotTransactionPurposePaidMedia) BotTransactionPurposeType() string

func (*BotTransactionPurposePaidMedia) GetClass added in v0.7.3

func (*BotTransactionPurposePaidMedia) GetType added in v0.7.3

func (*BotTransactionPurposePaidMedia) MarshalJSON added in v0.7.3

func (entity *BotTransactionPurposePaidMedia) MarshalJSON() ([]byte, error)

func (*BotTransactionPurposePaidMedia) UnmarshalJSON added in v0.7.3

func (botTransactionPurposePaidMedia *BotTransactionPurposePaidMedia) UnmarshalJSON(data []byte) error

type BotTransactionPurposeSubscription added in v0.7.4

type BotTransactionPurposeSubscription struct {

	// The number of seconds between consecutive Telegram Star debiting
	Period int32 `json:"period"`
	// Information about the bought subscription; may be null if not applicable
	ProductInfo *ProductInfo `json:"product_info"`
	// Invoice payload; for bots only
	InvoicePayload []byte `json:"invoice_payload"`
	// contains filtered or unexported fields
}

User bought a subscription in a bot or a business account

func UnmarshalBotTransactionPurposeSubscription added in v0.7.4

func UnmarshalBotTransactionPurposeSubscription(data json.RawMessage) (*BotTransactionPurposeSubscription, error)

func (*BotTransactionPurposeSubscription) BotTransactionPurposeType added in v0.7.4

func (*BotTransactionPurposeSubscription) BotTransactionPurposeType() string

func (*BotTransactionPurposeSubscription) GetClass added in v0.7.4

func (*BotTransactionPurposeSubscription) GetType added in v0.7.4

func (*BotTransactionPurposeSubscription) MarshalJSON added in v0.7.4

func (entity *BotTransactionPurposeSubscription) MarshalJSON() ([]byte, error)

type BotWriteAccessAllowReason added in v0.7.1

type BotWriteAccessAllowReason interface {
	BotWriteAccessAllowReasonType() string
}

Describes a reason why a bot was allowed to write messages to the current user

func UnmarshalBotWriteAccessAllowReason added in v0.7.1

func UnmarshalBotWriteAccessAllowReason(data json.RawMessage) (BotWriteAccessAllowReason, error)

func UnmarshalListOfBotWriteAccessAllowReason added in v0.7.1

func UnmarshalListOfBotWriteAccessAllowReason(dataList []json.RawMessage) ([]BotWriteAccessAllowReason, error)

type BotWriteAccessAllowReasonAcceptedRequest added in v0.7.1

type BotWriteAccessAllowReasonAcceptedRequest struct {
	// contains filtered or unexported fields
}

The user accepted bot's request to send messages with allowBotToSendMessages

func UnmarshalBotWriteAccessAllowReasonAcceptedRequest added in v0.7.1

func UnmarshalBotWriteAccessAllowReasonAcceptedRequest(data json.RawMessage) (*BotWriteAccessAllowReasonAcceptedRequest, error)

func (*BotWriteAccessAllowReasonAcceptedRequest) BotWriteAccessAllowReasonType added in v0.7.1

func (*BotWriteAccessAllowReasonAcceptedRequest) BotWriteAccessAllowReasonType() string

func (*BotWriteAccessAllowReasonAcceptedRequest) GetClass added in v0.7.1

func (*BotWriteAccessAllowReasonAcceptedRequest) GetType added in v0.7.1

func (*BotWriteAccessAllowReasonAcceptedRequest) MarshalJSON added in v0.7.1

func (entity *BotWriteAccessAllowReasonAcceptedRequest) MarshalJSON() ([]byte, error)

type BotWriteAccessAllowReasonAddedToAttachmentMenu added in v0.7.1

type BotWriteAccessAllowReasonAddedToAttachmentMenu struct {
	// contains filtered or unexported fields
}

The user added the bot to attachment or side menu using toggleBotIsAddedToAttachmentMenu

func UnmarshalBotWriteAccessAllowReasonAddedToAttachmentMenu added in v0.7.1

func UnmarshalBotWriteAccessAllowReasonAddedToAttachmentMenu(data json.RawMessage) (*BotWriteAccessAllowReasonAddedToAttachmentMenu, error)

func (*BotWriteAccessAllowReasonAddedToAttachmentMenu) BotWriteAccessAllowReasonType added in v0.7.1

func (*BotWriteAccessAllowReasonAddedToAttachmentMenu) BotWriteAccessAllowReasonType() string

func (*BotWriteAccessAllowReasonAddedToAttachmentMenu) GetClass added in v0.7.1

func (*BotWriteAccessAllowReasonAddedToAttachmentMenu) GetType added in v0.7.1

func (*BotWriteAccessAllowReasonAddedToAttachmentMenu) MarshalJSON added in v0.7.1

func (entity *BotWriteAccessAllowReasonAddedToAttachmentMenu) MarshalJSON() ([]byte, error)

type BotWriteAccessAllowReasonConnectedWebsite added in v0.7.1

type BotWriteAccessAllowReasonConnectedWebsite struct {

	// Domain name of the connected website
	DomainName string `json:"domain_name"`
	// contains filtered or unexported fields
}

The user connected a website by logging in using Telegram Login Widget on it

func UnmarshalBotWriteAccessAllowReasonConnectedWebsite added in v0.7.1

func UnmarshalBotWriteAccessAllowReasonConnectedWebsite(data json.RawMessage) (*BotWriteAccessAllowReasonConnectedWebsite, error)

func (*BotWriteAccessAllowReasonConnectedWebsite) BotWriteAccessAllowReasonType added in v0.7.1

func (*BotWriteAccessAllowReasonConnectedWebsite) BotWriteAccessAllowReasonType() string

func (*BotWriteAccessAllowReasonConnectedWebsite) GetClass added in v0.7.1

func (*BotWriteAccessAllowReasonConnectedWebsite) GetType added in v0.7.1

func (*BotWriteAccessAllowReasonConnectedWebsite) MarshalJSON added in v0.7.1

func (entity *BotWriteAccessAllowReasonConnectedWebsite) MarshalJSON() ([]byte, error)

type BotWriteAccessAllowReasonLaunchedWebApp added in v0.7.1

type BotWriteAccessAllowReasonLaunchedWebApp struct {

	// Information about the Web App
	WebApp *WebApp `json:"web_app"`
	// contains filtered or unexported fields
}

The user launched a Web App using getWebAppLinkUrl

func UnmarshalBotWriteAccessAllowReasonLaunchedWebApp added in v0.7.1

func UnmarshalBotWriteAccessAllowReasonLaunchedWebApp(data json.RawMessage) (*BotWriteAccessAllowReasonLaunchedWebApp, error)

func (*BotWriteAccessAllowReasonLaunchedWebApp) BotWriteAccessAllowReasonType added in v0.7.1

func (*BotWriteAccessAllowReasonLaunchedWebApp) BotWriteAccessAllowReasonType() string

func (*BotWriteAccessAllowReasonLaunchedWebApp) GetClass added in v0.7.1

func (*BotWriteAccessAllowReasonLaunchedWebApp) GetType added in v0.7.1

func (*BotWriteAccessAllowReasonLaunchedWebApp) MarshalJSON added in v0.7.1

func (entity *BotWriteAccessAllowReasonLaunchedWebApp) MarshalJSON() ([]byte, error)

type BusinessAwayMessageSchedule added in v0.7.2

type BusinessAwayMessageSchedule interface {
	BusinessAwayMessageScheduleType() string
}

Describes conditions for sending of away messages by a Telegram Business account

func UnmarshalBusinessAwayMessageSchedule added in v0.7.2

func UnmarshalBusinessAwayMessageSchedule(data json.RawMessage) (BusinessAwayMessageSchedule, error)

func UnmarshalListOfBusinessAwayMessageSchedule added in v0.7.2

func UnmarshalListOfBusinessAwayMessageSchedule(dataList []json.RawMessage) ([]BusinessAwayMessageSchedule, error)

type BusinessAwayMessageScheduleAlways added in v0.7.2

type BusinessAwayMessageScheduleAlways struct {
	// contains filtered or unexported fields
}

Send away messages always

func UnmarshalBusinessAwayMessageScheduleAlways added in v0.7.2

func UnmarshalBusinessAwayMessageScheduleAlways(data json.RawMessage) (*BusinessAwayMessageScheduleAlways, error)

func (*BusinessAwayMessageScheduleAlways) BusinessAwayMessageScheduleType added in v0.7.2

func (*BusinessAwayMessageScheduleAlways) BusinessAwayMessageScheduleType() string

func (*BusinessAwayMessageScheduleAlways) GetClass added in v0.7.2

func (*BusinessAwayMessageScheduleAlways) GetType added in v0.7.2

func (*BusinessAwayMessageScheduleAlways) MarshalJSON added in v0.7.2

func (entity *BusinessAwayMessageScheduleAlways) MarshalJSON() ([]byte, error)

type BusinessAwayMessageScheduleCustom added in v0.7.2

type BusinessAwayMessageScheduleCustom struct {

	// Point in time (Unix timestamp) when the away messages will start to be sent
	StartDate int32 `json:"start_date"`
	// Point in time (Unix timestamp) when the away messages will stop to be sent
	EndDate int32 `json:"end_date"`
	// contains filtered or unexported fields
}

Send away messages only in the specified time span

func UnmarshalBusinessAwayMessageScheduleCustom added in v0.7.2

func UnmarshalBusinessAwayMessageScheduleCustom(data json.RawMessage) (*BusinessAwayMessageScheduleCustom, error)

func (*BusinessAwayMessageScheduleCustom) BusinessAwayMessageScheduleType added in v0.7.2

func (*BusinessAwayMessageScheduleCustom) BusinessAwayMessageScheduleType() string

func (*BusinessAwayMessageScheduleCustom) GetClass added in v0.7.2

func (*BusinessAwayMessageScheduleCustom) GetType added in v0.7.2

func (*BusinessAwayMessageScheduleCustom) MarshalJSON added in v0.7.2

func (entity *BusinessAwayMessageScheduleCustom) MarshalJSON() ([]byte, error)

type BusinessAwayMessageScheduleOutsideOfOpeningHours added in v0.7.2

type BusinessAwayMessageScheduleOutsideOfOpeningHours struct {
	// contains filtered or unexported fields
}

Send away messages outside of the business opening hours

func UnmarshalBusinessAwayMessageScheduleOutsideOfOpeningHours added in v0.7.2

func UnmarshalBusinessAwayMessageScheduleOutsideOfOpeningHours(data json.RawMessage) (*BusinessAwayMessageScheduleOutsideOfOpeningHours, error)

func (*BusinessAwayMessageScheduleOutsideOfOpeningHours) BusinessAwayMessageScheduleType added in v0.7.2

func (*BusinessAwayMessageScheduleOutsideOfOpeningHours) BusinessAwayMessageScheduleType() string

func (*BusinessAwayMessageScheduleOutsideOfOpeningHours) GetClass added in v0.7.2

func (*BusinessAwayMessageScheduleOutsideOfOpeningHours) GetType added in v0.7.2

func (*BusinessAwayMessageScheduleOutsideOfOpeningHours) MarshalJSON added in v0.7.2

func (entity *BusinessAwayMessageScheduleOutsideOfOpeningHours) MarshalJSON() ([]byte, error)

type BusinessAwayMessageSettings added in v0.7.2

type BusinessAwayMessageSettings struct {

	// Unique quick reply shortcut identifier for the away messages
	ShortcutId int32 `json:"shortcut_id"`
	// Chosen recipients of the away messages
	Recipients *BusinessRecipients `json:"recipients"`
	// Settings used to check whether the current user is away
	Schedule BusinessAwayMessageSchedule `json:"schedule"`
	// True, if the messages must not be sent if the account was online in the last 10 minutes
	OfflineOnly bool `json:"offline_only"`
	// contains filtered or unexported fields
}

Describes settings for messages that are automatically sent by a Telegram Business account when it is away

func UnmarshalBusinessAwayMessageSettings added in v0.7.2

func UnmarshalBusinessAwayMessageSettings(data json.RawMessage) (*BusinessAwayMessageSettings, error)

func (*BusinessAwayMessageSettings) GetClass added in v0.7.2

func (*BusinessAwayMessageSettings) GetClass() string

func (*BusinessAwayMessageSettings) GetType added in v0.7.2

func (*BusinessAwayMessageSettings) MarshalJSON added in v0.7.2

func (entity *BusinessAwayMessageSettings) MarshalJSON() ([]byte, error)

func (*BusinessAwayMessageSettings) UnmarshalJSON added in v0.7.2

func (businessAwayMessageSettings *BusinessAwayMessageSettings) UnmarshalJSON(data []byte) error

type BusinessBotManageBar added in v0.7.3

type BusinessBotManageBar struct {

	// User identifier of the bot
	BotUserId int64 `json:"bot_user_id"`
	// URL to be opened to manage the bot
	ManageUrl string `json:"manage_url"`
	// True, if the bot is paused. Use toggleBusinessConnectedBotChatIsPaused to change the value of the field
	IsBotPaused bool `json:"is_bot_paused"`
	// True, if the bot can reply
	CanBotReply bool `json:"can_bot_reply"`
	// contains filtered or unexported fields
}

Contains information about a business bot that manages the chat

func UnmarshalBusinessBotManageBar added in v0.7.3

func UnmarshalBusinessBotManageBar(data json.RawMessage) (*BusinessBotManageBar, error)

func (*BusinessBotManageBar) GetClass added in v0.7.3

func (*BusinessBotManageBar) GetClass() string

func (*BusinessBotManageBar) GetType added in v0.7.3

func (*BusinessBotManageBar) GetType() string

func (*BusinessBotManageBar) MarshalJSON added in v0.7.3

func (entity *BusinessBotManageBar) MarshalJSON() ([]byte, error)
type BusinessChatLink struct {

	// The HTTPS link
	Link string `json:"link"`
	// Message draft text that will be added to the input field
	Text *FormattedText `json:"text"`
	// Link title
	Title string `json:"title"`
	// Number of times the link was used
	ViewCount int32 `json:"view_count"`
	// contains filtered or unexported fields
}

Contains information about a business chat link

func UnmarshalBusinessChatLink(data json.RawMessage) (*BusinessChatLink, error)

func (*BusinessChatLink) GetClass added in v0.7.3

func (*BusinessChatLink) GetClass() string

func (*BusinessChatLink) GetType added in v0.7.3

func (*BusinessChatLink) GetType() string

func (*BusinessChatLink) MarshalJSON added in v0.7.3

func (entity *BusinessChatLink) MarshalJSON() ([]byte, error)

type BusinessChatLinkInfo added in v0.7.3

type BusinessChatLinkInfo struct {

	// Identifier of the private chat that created the link
	ChatId int64 `json:"chat_id"`
	// Message draft text that must be added to the input field
	Text *FormattedText `json:"text"`
	// contains filtered or unexported fields
}

Contains information about a business chat link

func UnmarshalBusinessChatLinkInfo added in v0.7.3

func UnmarshalBusinessChatLinkInfo(data json.RawMessage) (*BusinessChatLinkInfo, error)

func (*BusinessChatLinkInfo) GetClass added in v0.7.3

func (*BusinessChatLinkInfo) GetClass() string

func (*BusinessChatLinkInfo) GetType added in v0.7.3

func (*BusinessChatLinkInfo) GetType() string

func (*BusinessChatLinkInfo) MarshalJSON added in v0.7.3

func (entity *BusinessChatLinkInfo) MarshalJSON() ([]byte, error)
type BusinessChatLinks struct {

	// List of links
	Links []*BusinessChatLink `json:"links"`
	// contains filtered or unexported fields
}

Contains a list of business chat links created by the user

func UnmarshalBusinessChatLinks(data json.RawMessage) (*BusinessChatLinks, error)

func (*BusinessChatLinks) GetClass added in v0.7.3

func (*BusinessChatLinks) GetClass() string

func (*BusinessChatLinks) GetType added in v0.7.3

func (*BusinessChatLinks) GetType() string

func (*BusinessChatLinks) MarshalJSON added in v0.7.3

func (entity *BusinessChatLinks) MarshalJSON() ([]byte, error)

type BusinessConnectedBot added in v0.7.2

type BusinessConnectedBot struct {

	// User identifier of the bot
	BotUserId int64 `json:"bot_user_id"`
	// Private chats that will be accessible to the bot
	Recipients *BusinessRecipients `json:"recipients"`
	// True, if the bot can send messages to the private chats; false otherwise
	CanReply bool `json:"can_reply"`
	// contains filtered or unexported fields
}

Describes a bot connected to a business account

func UnmarshalBusinessConnectedBot added in v0.7.2

func UnmarshalBusinessConnectedBot(data json.RawMessage) (*BusinessConnectedBot, error)

func (*BusinessConnectedBot) GetClass added in v0.7.2

func (*BusinessConnectedBot) GetClass() string

func (*BusinessConnectedBot) GetType added in v0.7.2

func (*BusinessConnectedBot) GetType() string

func (*BusinessConnectedBot) MarshalJSON added in v0.7.2

func (entity *BusinessConnectedBot) MarshalJSON() ([]byte, error)

type BusinessConnection added in v0.7.2

type BusinessConnection struct {

	// Unique identifier of the connection
	Id string `json:"id"`
	// Identifier of the business user that created the connection
	UserId int64 `json:"user_id"`
	// Chat identifier of the private chat with the user
	UserChatId int64 `json:"user_chat_id"`
	// Point in time (Unix timestamp) when the connection was established
	Date int32 `json:"date"`
	// True, if the bot can send messages to the connected user; false otherwise
	CanReply bool `json:"can_reply"`
	// True, if the connection is enabled; false otherwise
	IsEnabled bool `json:"is_enabled"`
	// contains filtered or unexported fields
}

Describes a connection of the bot with a business account

func UnmarshalBusinessConnection added in v0.7.2

func UnmarshalBusinessConnection(data json.RawMessage) (*BusinessConnection, error)

func (*BusinessConnection) GetClass added in v0.7.2

func (*BusinessConnection) GetClass() string

func (*BusinessConnection) GetType added in v0.7.2

func (*BusinessConnection) GetType() string

func (*BusinessConnection) MarshalJSON added in v0.7.2

func (entity *BusinessConnection) MarshalJSON() ([]byte, error)

type BusinessFeature added in v0.7.2

type BusinessFeature interface {
	BusinessFeatureType() string
}

Describes a feature available to Business user accounts

func UnmarshalBusinessFeature added in v0.7.2

func UnmarshalBusinessFeature(data json.RawMessage) (BusinessFeature, error)

func UnmarshalListOfBusinessFeature added in v0.7.2

func UnmarshalListOfBusinessFeature(dataList []json.RawMessage) ([]BusinessFeature, error)
type BusinessFeatureAccountLinks struct {
	// contains filtered or unexported fields
}

The ability to create links to the business account with predefined message text

func UnmarshalBusinessFeatureAccountLinks(data json.RawMessage) (*BusinessFeatureAccountLinks, error)

func (*BusinessFeatureAccountLinks) BusinessFeatureType added in v0.7.2

func (*BusinessFeatureAccountLinks) BusinessFeatureType() string

func (*BusinessFeatureAccountLinks) GetClass added in v0.7.2

func (*BusinessFeatureAccountLinks) GetClass() string

func (*BusinessFeatureAccountLinks) GetType added in v0.7.2

func (*BusinessFeatureAccountLinks) MarshalJSON added in v0.7.2

func (entity *BusinessFeatureAccountLinks) MarshalJSON() ([]byte, error)

type BusinessFeatureAwayMessage added in v0.7.2

type BusinessFeatureAwayMessage struct {
	// contains filtered or unexported fields
}

The ability to set up an away message

func UnmarshalBusinessFeatureAwayMessage added in v0.7.2

func UnmarshalBusinessFeatureAwayMessage(data json.RawMessage) (*BusinessFeatureAwayMessage, error)

func (*BusinessFeatureAwayMessage) BusinessFeatureType added in v0.7.2

func (*BusinessFeatureAwayMessage) BusinessFeatureType() string

func (*BusinessFeatureAwayMessage) GetClass added in v0.7.2

func (*BusinessFeatureAwayMessage) GetClass() string

func (*BusinessFeatureAwayMessage) GetType added in v0.7.2

func (*BusinessFeatureAwayMessage) MarshalJSON added in v0.7.2

func (entity *BusinessFeatureAwayMessage) MarshalJSON() ([]byte, error)

type BusinessFeatureBots added in v0.7.2

type BusinessFeatureBots struct {
	// contains filtered or unexported fields
}

The ability to connect a bot to the account

func UnmarshalBusinessFeatureBots added in v0.7.2

func UnmarshalBusinessFeatureBots(data json.RawMessage) (*BusinessFeatureBots, error)

func (*BusinessFeatureBots) BusinessFeatureType added in v0.7.2

func (*BusinessFeatureBots) BusinessFeatureType() string

func (*BusinessFeatureBots) GetClass added in v0.7.2

func (*BusinessFeatureBots) GetClass() string

func (*BusinessFeatureBots) GetType added in v0.7.2

func (*BusinessFeatureBots) GetType() string

func (*BusinessFeatureBots) MarshalJSON added in v0.7.2

func (entity *BusinessFeatureBots) MarshalJSON() ([]byte, error)

type BusinessFeatureChatFolderTags added in v0.7.2

type BusinessFeatureChatFolderTags struct {
	// contains filtered or unexported fields
}

The ability to display folder names for each chat in the chat list

func UnmarshalBusinessFeatureChatFolderTags added in v0.7.2

func UnmarshalBusinessFeatureChatFolderTags(data json.RawMessage) (*BusinessFeatureChatFolderTags, error)

func (*BusinessFeatureChatFolderTags) BusinessFeatureType added in v0.7.2

func (*BusinessFeatureChatFolderTags) BusinessFeatureType() string

func (*BusinessFeatureChatFolderTags) GetClass added in v0.7.2

func (*BusinessFeatureChatFolderTags) GetType added in v0.7.2

func (*BusinessFeatureChatFolderTags) MarshalJSON added in v0.7.2

func (entity *BusinessFeatureChatFolderTags) MarshalJSON() ([]byte, error)

type BusinessFeatureEmojiStatus added in v0.7.2

type BusinessFeatureEmojiStatus struct {
	// contains filtered or unexported fields
}

The ability to show an emoji status along with the business name

func UnmarshalBusinessFeatureEmojiStatus added in v0.7.2

func UnmarshalBusinessFeatureEmojiStatus(data json.RawMessage) (*BusinessFeatureEmojiStatus, error)

func (*BusinessFeatureEmojiStatus) BusinessFeatureType added in v0.7.2

func (*BusinessFeatureEmojiStatus) BusinessFeatureType() string

func (*BusinessFeatureEmojiStatus) GetClass added in v0.7.2

func (*BusinessFeatureEmojiStatus) GetClass() string

func (*BusinessFeatureEmojiStatus) GetType added in v0.7.2

func (*BusinessFeatureEmojiStatus) MarshalJSON added in v0.7.2

func (entity *BusinessFeatureEmojiStatus) MarshalJSON() ([]byte, error)

type BusinessFeatureGreetingMessage added in v0.7.2

type BusinessFeatureGreetingMessage struct {
	// contains filtered or unexported fields
}

The ability to set up a greeting message

func UnmarshalBusinessFeatureGreetingMessage added in v0.7.2

func UnmarshalBusinessFeatureGreetingMessage(data json.RawMessage) (*BusinessFeatureGreetingMessage, error)

func (*BusinessFeatureGreetingMessage) BusinessFeatureType added in v0.7.2

func (*BusinessFeatureGreetingMessage) BusinessFeatureType() string

func (*BusinessFeatureGreetingMessage) GetClass added in v0.7.2

func (*BusinessFeatureGreetingMessage) GetType added in v0.7.2

func (*BusinessFeatureGreetingMessage) MarshalJSON added in v0.7.2

func (entity *BusinessFeatureGreetingMessage) MarshalJSON() ([]byte, error)

type BusinessFeatureLocation added in v0.7.2

type BusinessFeatureLocation struct {
	// contains filtered or unexported fields
}

The ability to set location

func UnmarshalBusinessFeatureLocation added in v0.7.2

func UnmarshalBusinessFeatureLocation(data json.RawMessage) (*BusinessFeatureLocation, error)

func (*BusinessFeatureLocation) BusinessFeatureType added in v0.7.2

func (*BusinessFeatureLocation) BusinessFeatureType() string

func (*BusinessFeatureLocation) GetClass added in v0.7.2

func (*BusinessFeatureLocation) GetClass() string

func (*BusinessFeatureLocation) GetType added in v0.7.2

func (*BusinessFeatureLocation) GetType() string

func (*BusinessFeatureLocation) MarshalJSON added in v0.7.2

func (entity *BusinessFeatureLocation) MarshalJSON() ([]byte, error)

type BusinessFeatureOpeningHours added in v0.7.2

type BusinessFeatureOpeningHours struct {
	// contains filtered or unexported fields
}

The ability to set opening hours

func UnmarshalBusinessFeatureOpeningHours added in v0.7.2

func UnmarshalBusinessFeatureOpeningHours(data json.RawMessage) (*BusinessFeatureOpeningHours, error)

func (*BusinessFeatureOpeningHours) BusinessFeatureType added in v0.7.2

func (*BusinessFeatureOpeningHours) BusinessFeatureType() string

func (*BusinessFeatureOpeningHours) GetClass added in v0.7.2

func (*BusinessFeatureOpeningHours) GetClass() string

func (*BusinessFeatureOpeningHours) GetType added in v0.7.2

func (*BusinessFeatureOpeningHours) MarshalJSON added in v0.7.2

func (entity *BusinessFeatureOpeningHours) MarshalJSON() ([]byte, error)

type BusinessFeaturePromotionAnimation added in v0.7.2

type BusinessFeaturePromotionAnimation struct {

	// Business feature
	Feature BusinessFeature `json:"feature"`
	// Promotion animation for the feature
	Animation *Animation `json:"animation"`
	// contains filtered or unexported fields
}

Describes a promotion animation for a Business feature

func UnmarshalBusinessFeaturePromotionAnimation added in v0.7.2

func UnmarshalBusinessFeaturePromotionAnimation(data json.RawMessage) (*BusinessFeaturePromotionAnimation, error)

func (*BusinessFeaturePromotionAnimation) GetClass added in v0.7.2

func (*BusinessFeaturePromotionAnimation) GetType added in v0.7.2

func (*BusinessFeaturePromotionAnimation) MarshalJSON added in v0.7.2

func (entity *BusinessFeaturePromotionAnimation) MarshalJSON() ([]byte, error)

func (*BusinessFeaturePromotionAnimation) UnmarshalJSON added in v0.7.2

func (businessFeaturePromotionAnimation *BusinessFeaturePromotionAnimation) UnmarshalJSON(data []byte) error

type BusinessFeatureQuickReplies added in v0.7.2

type BusinessFeatureQuickReplies struct {
	// contains filtered or unexported fields
}

The ability to use quick replies

func UnmarshalBusinessFeatureQuickReplies added in v0.7.2

func UnmarshalBusinessFeatureQuickReplies(data json.RawMessage) (*BusinessFeatureQuickReplies, error)

func (*BusinessFeatureQuickReplies) BusinessFeatureType added in v0.7.2

func (*BusinessFeatureQuickReplies) BusinessFeatureType() string

func (*BusinessFeatureQuickReplies) GetClass added in v0.7.2

func (*BusinessFeatureQuickReplies) GetClass() string

func (*BusinessFeatureQuickReplies) GetType added in v0.7.2

func (*BusinessFeatureQuickReplies) MarshalJSON added in v0.7.2

func (entity *BusinessFeatureQuickReplies) MarshalJSON() ([]byte, error)

type BusinessFeatureStartPage added in v0.7.3

type BusinessFeatureStartPage struct {
	// contains filtered or unexported fields
}

The ability to customize start page

func UnmarshalBusinessFeatureStartPage added in v0.7.3

func UnmarshalBusinessFeatureStartPage(data json.RawMessage) (*BusinessFeatureStartPage, error)

func (*BusinessFeatureStartPage) BusinessFeatureType added in v0.7.3

func (*BusinessFeatureStartPage) BusinessFeatureType() string

func (*BusinessFeatureStartPage) GetClass added in v0.7.3

func (*BusinessFeatureStartPage) GetClass() string

func (*BusinessFeatureStartPage) GetType added in v0.7.3

func (*BusinessFeatureStartPage) GetType() string

func (*BusinessFeatureStartPage) MarshalJSON added in v0.7.3

func (entity *BusinessFeatureStartPage) MarshalJSON() ([]byte, error)

type BusinessFeatureUpgradedStories added in v0.7.2

type BusinessFeatureUpgradedStories struct {
	// contains filtered or unexported fields
}

Allowed to use many additional features for stories

func UnmarshalBusinessFeatureUpgradedStories added in v0.7.2

func UnmarshalBusinessFeatureUpgradedStories(data json.RawMessage) (*BusinessFeatureUpgradedStories, error)

func (*BusinessFeatureUpgradedStories) BusinessFeatureType added in v0.7.2

func (*BusinessFeatureUpgradedStories) BusinessFeatureType() string

func (*BusinessFeatureUpgradedStories) GetClass added in v0.7.2

func (*BusinessFeatureUpgradedStories) GetType added in v0.7.2

func (*BusinessFeatureUpgradedStories) MarshalJSON added in v0.7.2

func (entity *BusinessFeatureUpgradedStories) MarshalJSON() ([]byte, error)

type BusinessFeatures added in v0.7.2

type BusinessFeatures struct {

	// The list of available business features
	Features []BusinessFeature `json:"features"`
	// contains filtered or unexported fields
}

Contains information about features, available to Business user accounts

func UnmarshalBusinessFeatures added in v0.7.2

func UnmarshalBusinessFeatures(data json.RawMessage) (*BusinessFeatures, error)

func (*BusinessFeatures) GetClass added in v0.7.2

func (*BusinessFeatures) GetClass() string

func (*BusinessFeatures) GetType added in v0.7.2

func (*BusinessFeatures) GetType() string

func (*BusinessFeatures) MarshalJSON added in v0.7.2

func (entity *BusinessFeatures) MarshalJSON() ([]byte, error)

func (*BusinessFeatures) UnmarshalJSON added in v0.7.2

func (businessFeatures *BusinessFeatures) UnmarshalJSON(data []byte) error

type BusinessGreetingMessageSettings added in v0.7.2

type BusinessGreetingMessageSettings struct {

	// Unique quick reply shortcut identifier for the greeting messages
	ShortcutId int32 `json:"shortcut_id"`
	// Chosen recipients of the greeting messages
	Recipients *BusinessRecipients `json:"recipients"`
	// The number of days after which a chat will be considered as inactive; currently, must be on of 7, 14, 21, or 28
	InactivityDays int32 `json:"inactivity_days"`
	// contains filtered or unexported fields
}

Describes settings for greeting messages that are automatically sent by a Telegram Business account as response to incoming messages in an inactive private chat

func UnmarshalBusinessGreetingMessageSettings added in v0.7.2

func UnmarshalBusinessGreetingMessageSettings(data json.RawMessage) (*BusinessGreetingMessageSettings, error)

func (*BusinessGreetingMessageSettings) GetClass added in v0.7.2

func (*BusinessGreetingMessageSettings) GetType added in v0.7.2

func (*BusinessGreetingMessageSettings) MarshalJSON added in v0.7.2

func (entity *BusinessGreetingMessageSettings) MarshalJSON() ([]byte, error)

type BusinessInfo added in v0.7.2

type BusinessInfo struct {

	// Location of the business; may be null if none
	Location *BusinessLocation `json:"location"`
	// Opening hours of the business; may be null if none. The hours are guaranteed to be valid and has already been split by week days
	OpeningHours *BusinessOpeningHours `json:"opening_hours"`
	// Opening hours of the business in the local time; may be null if none. The hours are guaranteed to be valid and has already been split by week days. Local time zone identifier will be empty. An updateUserFullInfo update is not triggered when value of this field changes
	LocalOpeningHours *BusinessOpeningHours `json:"local_opening_hours"`
	// Time left before the business will open the next time, in seconds; 0 if unknown. An updateUserFullInfo update is not triggered when value of this field changes
	NextOpenIn int32 `json:"next_open_in"`
	// Time left before the business will close the next time, in seconds; 0 if unknown. An updateUserFullInfo update is not triggered when value of this field changes
	NextCloseIn int32 `json:"next_close_in"`
	// The greeting message; may be null if none or the Business account is not of the current user
	GreetingMessageSettings *BusinessGreetingMessageSettings `json:"greeting_message_settings"`
	// The away message; may be null if none or the Business account is not of the current user
	AwayMessageSettings *BusinessAwayMessageSettings `json:"away_message_settings"`
	// Information about start page of the account; may be null if none
	StartPage *BusinessStartPage `json:"start_page"`
	// contains filtered or unexported fields
}

Contains information about a Telegram Business account

func UnmarshalBusinessInfo added in v0.7.2

func UnmarshalBusinessInfo(data json.RawMessage) (*BusinessInfo, error)

func (*BusinessInfo) GetClass added in v0.7.2

func (*BusinessInfo) GetClass() string

func (*BusinessInfo) GetType added in v0.7.2

func (*BusinessInfo) GetType() string

func (*BusinessInfo) MarshalJSON added in v0.7.2

func (entity *BusinessInfo) MarshalJSON() ([]byte, error)

type BusinessLocation added in v0.7.2

type BusinessLocation struct {

	// The location; may be null if not specified
	Location *Location `json:"location"`
	// Location address; 1-96 characters
	Address string `json:"address"`
	// contains filtered or unexported fields
}

Represents a location of a business

func UnmarshalBusinessLocation added in v0.7.2

func UnmarshalBusinessLocation(data json.RawMessage) (*BusinessLocation, error)

func (*BusinessLocation) GetClass added in v0.7.2

func (*BusinessLocation) GetClass() string

func (*BusinessLocation) GetType added in v0.7.2

func (*BusinessLocation) GetType() string

func (*BusinessLocation) MarshalJSON added in v0.7.2

func (entity *BusinessLocation) MarshalJSON() ([]byte, error)

type BusinessMessage added in v0.7.2

type BusinessMessage struct {

	// The message
	Message *Message `json:"message"`
	// Message that is replied by the message in the same chat; may be null if none
	ReplyToMessage *Message `json:"reply_to_message"`
	// contains filtered or unexported fields
}

Describes a message from a business account as received by a bot

func UnmarshalBusinessMessage added in v0.7.2

func UnmarshalBusinessMessage(data json.RawMessage) (*BusinessMessage, error)

func (*BusinessMessage) GetClass added in v0.7.2

func (*BusinessMessage) GetClass() string

func (*BusinessMessage) GetType added in v0.7.2

func (*BusinessMessage) GetType() string

func (*BusinessMessage) MarshalJSON added in v0.7.2

func (entity *BusinessMessage) MarshalJSON() ([]byte, error)

type BusinessMessages added in v0.7.2

type BusinessMessages struct {

	// List of business messages
	Messages []*BusinessMessage `json:"messages"`
	// contains filtered or unexported fields
}

Contains a list of messages from a business account as received by a bot

func UnmarshalBusinessMessages added in v0.7.2

func UnmarshalBusinessMessages(data json.RawMessage) (*BusinessMessages, error)

func (*BusinessMessages) GetClass added in v0.7.2

func (*BusinessMessages) GetClass() string

func (*BusinessMessages) GetType added in v0.7.2

func (*BusinessMessages) GetType() string

func (*BusinessMessages) MarshalJSON added in v0.7.2

func (entity *BusinessMessages) MarshalJSON() ([]byte, error)

type BusinessOpeningHours added in v0.7.2

type BusinessOpeningHours struct {

	// Unique time zone identifier
	TimeZoneId string `json:"time_zone_id"`
	// Intervals of the time when the business is open
	OpeningHours []*BusinessOpeningHoursInterval `json:"opening_hours"`
	// contains filtered or unexported fields
}

Describes opening hours of a business

func UnmarshalBusinessOpeningHours added in v0.7.2

func UnmarshalBusinessOpeningHours(data json.RawMessage) (*BusinessOpeningHours, error)

func (*BusinessOpeningHours) GetClass added in v0.7.2

func (*BusinessOpeningHours) GetClass() string

func (*BusinessOpeningHours) GetType added in v0.7.2

func (*BusinessOpeningHours) GetType() string

func (*BusinessOpeningHours) MarshalJSON added in v0.7.2

func (entity *BusinessOpeningHours) MarshalJSON() ([]byte, error)

type BusinessOpeningHoursInterval added in v0.7.2

type BusinessOpeningHoursInterval struct {

	// The minute's sequence number in a week, starting on Monday, marking the start of the time interval during which the business is open; 0-7*24*60
	StartMinute int32 `json:"start_minute"`
	// The minute's sequence number in a week, starting on Monday, marking the end of the time interval during which the business is open; 1-8*24*60
	EndMinute int32 `json:"end_minute"`
	// contains filtered or unexported fields
}

Describes an interval of time when the business is open

func UnmarshalBusinessOpeningHoursInterval added in v0.7.2

func UnmarshalBusinessOpeningHoursInterval(data json.RawMessage) (*BusinessOpeningHoursInterval, error)

func (*BusinessOpeningHoursInterval) GetClass added in v0.7.2

func (*BusinessOpeningHoursInterval) GetType added in v0.7.2

func (*BusinessOpeningHoursInterval) MarshalJSON added in v0.7.2

func (entity *BusinessOpeningHoursInterval) MarshalJSON() ([]byte, error)

type BusinessRecipients added in v0.7.2

type BusinessRecipients struct {

	// Identifiers of selected private chats
	ChatIds []int64 `json:"chat_ids"`
	// Identifiers of private chats that are always excluded; for businessConnectedBot only
	ExcludedChatIds []int64 `json:"excluded_chat_ids"`
	// True, if all existing private chats are selected
	SelectExistingChats bool `json:"select_existing_chats"`
	// True, if all new private chats are selected
	SelectNewChats bool `json:"select_new_chats"`
	// True, if all private chats with contacts are selected
	SelectContacts bool `json:"select_contacts"`
	// True, if all private chats with non-contacts are selected
	SelectNonContacts bool `json:"select_non_contacts"`
	// If true, then all private chats except the selected are chosen. Otherwise, only the selected chats are chosen
	ExcludeSelected bool `json:"exclude_selected"`
	// contains filtered or unexported fields
}

Describes private chats chosen for automatic interaction with a business

func UnmarshalBusinessRecipients added in v0.7.2

func UnmarshalBusinessRecipients(data json.RawMessage) (*BusinessRecipients, error)

func (*BusinessRecipients) GetClass added in v0.7.2

func (*BusinessRecipients) GetClass() string

func (*BusinessRecipients) GetType added in v0.7.2

func (*BusinessRecipients) GetType() string

func (*BusinessRecipients) MarshalJSON added in v0.7.2

func (entity *BusinessRecipients) MarshalJSON() ([]byte, error)

type BusinessStartPage added in v0.7.3

type BusinessStartPage struct {

	// Title text of the start page
	Title string `json:"title"`
	// Message text of the start page
	Message string `json:"message"`
	// Greeting sticker of the start page; may be null if none
	Sticker *Sticker `json:"sticker"`
	// contains filtered or unexported fields
}

Describes settings for a business account start page

func UnmarshalBusinessStartPage added in v0.7.3

func UnmarshalBusinessStartPage(data json.RawMessage) (*BusinessStartPage, error)

func (*BusinessStartPage) GetClass added in v0.7.3

func (*BusinessStartPage) GetClass() string

func (*BusinessStartPage) GetType added in v0.7.3

func (*BusinessStartPage) GetType() string

func (*BusinessStartPage) MarshalJSON added in v0.7.3

func (entity *BusinessStartPage) MarshalJSON() ([]byte, error)

type Call

type Call struct {

	// Call identifier, not persistent
	Id int32 `json:"id"`
	// User identifier of the other call participant
	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) GetClass

func (*Call) GetClass() string

func (*Call) GetType

func (*Call) GetType() string

func (*Call) MarshalJSON

func (entity *Call) MarshalJSON() ([]byte, error)

func (*Call) UnmarshalJSON

func (call *Call) UnmarshalJSON(data []byte) error

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 added in v0.3.2

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) GetType

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) GetClass

func (*CallId) GetClass() string

func (*CallId) GetType

func (*CallId) GetType() string

func (*CallId) MarshalJSON

func (entity *CallId) MarshalJSON() ([]byte, error)

type CallProblem added in v0.1.0

type CallProblem interface {
	CallProblemType() string
}

Describes the exact type of problem with a call

func UnmarshalCallProblem added in v0.1.0

func UnmarshalCallProblem(data json.RawMessage) (CallProblem, error)

func UnmarshalListOfCallProblem added in v0.3.2

func UnmarshalListOfCallProblem(dataList []json.RawMessage) ([]CallProblem, error)

type CallProblemDistortedSpeech added in v0.1.0

type CallProblemDistortedSpeech struct {
	// contains filtered or unexported fields
}

The speech was distorted

func UnmarshalCallProblemDistortedSpeech added in v0.1.0

func UnmarshalCallProblemDistortedSpeech(data json.RawMessage) (*CallProblemDistortedSpeech, error)

func (*CallProblemDistortedSpeech) CallProblemType added in v0.1.0

func (*CallProblemDistortedSpeech) CallProblemType() string

func (*CallProblemDistortedSpeech) GetClass added in v0.1.0

func (*CallProblemDistortedSpeech) GetClass() string

func (*CallProblemDistortedSpeech) GetType added in v0.1.0

func (*CallProblemDistortedSpeech) MarshalJSON added in v0.1.0

func (entity *CallProblemDistortedSpeech) MarshalJSON() ([]byte, error)

type CallProblemDistortedVideo added in v0.3.0

type CallProblemDistortedVideo struct {
	// contains filtered or unexported fields
}

The video was distorted

func UnmarshalCallProblemDistortedVideo added in v0.3.0

func UnmarshalCallProblemDistortedVideo(data json.RawMessage) (*CallProblemDistortedVideo, error)

func (*CallProblemDistortedVideo) CallProblemType added in v0.3.0

func (*CallProblemDistortedVideo) CallProblemType() string

func (*CallProblemDistortedVideo) GetClass added in v0.3.0

func (*CallProblemDistortedVideo) GetClass() string

func (*CallProblemDistortedVideo) GetType added in v0.3.0

func (*CallProblemDistortedVideo) GetType() string

func (*CallProblemDistortedVideo) MarshalJSON added in v0.3.0

func (entity *CallProblemDistortedVideo) MarshalJSON() ([]byte, error)

type CallProblemDropped added in v0.1.0

type CallProblemDropped struct {
	// contains filtered or unexported fields
}

The call ended unexpectedly

func UnmarshalCallProblemDropped added in v0.1.0

func UnmarshalCallProblemDropped(data json.RawMessage) (*CallProblemDropped, error)

func (*CallProblemDropped) CallProblemType added in v0.1.0

func (*CallProblemDropped) CallProblemType() string

func (*CallProblemDropped) GetClass added in v0.1.0

func (*CallProblemDropped) GetClass() string

func (*CallProblemDropped) GetType added in v0.1.0

func (*CallProblemDropped) GetType() string

func (*CallProblemDropped) MarshalJSON added in v0.1.0

func (entity *CallProblemDropped) MarshalJSON() ([]byte, error)

type CallProblemEcho added in v0.1.0

type CallProblemEcho struct {
	// contains filtered or unexported fields
}

The user heard their own voice

func UnmarshalCallProblemEcho added in v0.1.0

func UnmarshalCallProblemEcho(data json.RawMessage) (*CallProblemEcho, error)

func (*CallProblemEcho) CallProblemType added in v0.1.0

func (*CallProblemEcho) CallProblemType() string

func (*CallProblemEcho) GetClass added in v0.1.0

func (*CallProblemEcho) GetClass() string

func (*CallProblemEcho) GetType added in v0.1.0

func (*CallProblemEcho) GetType() string

func (*CallProblemEcho) MarshalJSON added in v0.1.0

func (entity *CallProblemEcho) MarshalJSON() ([]byte, error)

type CallProblemInterruptions added in v0.1.0

type CallProblemInterruptions struct {
	// contains filtered or unexported fields
}

The other side kept disappearing

func UnmarshalCallProblemInterruptions added in v0.1.0

func UnmarshalCallProblemInterruptions(data json.RawMessage) (*CallProblemInterruptions, error)

func (*CallProblemInterruptions) CallProblemType added in v0.1.0

func (*CallProblemInterruptions) CallProblemType() string

func (*CallProblemInterruptions) GetClass added in v0.1.0

func (*CallProblemInterruptions) GetClass() string

func (*CallProblemInterruptions) GetType added in v0.1.0

func (*CallProblemInterruptions) GetType() string

func (*CallProblemInterruptions) MarshalJSON added in v0.1.0

func (entity *CallProblemInterruptions) MarshalJSON() ([]byte, error)

type CallProblemNoise added in v0.1.0

type CallProblemNoise struct {
	// contains filtered or unexported fields
}

The user heard background noise

func UnmarshalCallProblemNoise added in v0.1.0

func UnmarshalCallProblemNoise(data json.RawMessage) (*CallProblemNoise, error)

func (*CallProblemNoise) CallProblemType added in v0.1.0

func (*CallProblemNoise) CallProblemType() string

func (*CallProblemNoise) GetClass added in v0.1.0

func (*CallProblemNoise) GetClass() string

func (*CallProblemNoise) GetType added in v0.1.0

func (*CallProblemNoise) GetType() string

func (*CallProblemNoise) MarshalJSON added in v0.1.0

func (entity *CallProblemNoise) MarshalJSON() ([]byte, error)

type CallProblemPixelatedVideo added in v0.3.0

type CallProblemPixelatedVideo struct {
	// contains filtered or unexported fields
}

The video was pixelated

func UnmarshalCallProblemPixelatedVideo added in v0.3.0

func UnmarshalCallProblemPixelatedVideo(data json.RawMessage) (*CallProblemPixelatedVideo, error)

func (*CallProblemPixelatedVideo) CallProblemType added in v0.3.0

func (*CallProblemPixelatedVideo) CallProblemType() string

func (*CallProblemPixelatedVideo) GetClass added in v0.3.0

func (*CallProblemPixelatedVideo) GetClass() string

func (*CallProblemPixelatedVideo) GetType added in v0.3.0

func (*CallProblemPixelatedVideo) GetType() string

func (*CallProblemPixelatedVideo) MarshalJSON added in v0.3.0

func (entity *CallProblemPixelatedVideo) MarshalJSON() ([]byte, error)

type CallProblemSilentLocal added in v0.1.0

type CallProblemSilentLocal struct {
	// contains filtered or unexported fields
}

The user couldn't hear the other side

func UnmarshalCallProblemSilentLocal added in v0.1.0

func UnmarshalCallProblemSilentLocal(data json.RawMessage) (*CallProblemSilentLocal, error)

func (*CallProblemSilentLocal) CallProblemType added in v0.1.0

func (*CallProblemSilentLocal) CallProblemType() string

func (*CallProblemSilentLocal) GetClass added in v0.1.0

func (*CallProblemSilentLocal) GetClass() string

func (*CallProblemSilentLocal) GetType added in v0.1.0

func (*CallProblemSilentLocal) GetType() string

func (*CallProblemSilentLocal) MarshalJSON added in v0.1.0

func (entity *CallProblemSilentLocal) MarshalJSON() ([]byte, error)

type CallProblemSilentRemote added in v0.1.0

type CallProblemSilentRemote struct {
	// contains filtered or unexported fields
}

The other side couldn't hear the user

func UnmarshalCallProblemSilentRemote added in v0.1.0

func UnmarshalCallProblemSilentRemote(data json.RawMessage) (*CallProblemSilentRemote, error)

func (*CallProblemSilentRemote) CallProblemType added in v0.1.0

func (*CallProblemSilentRemote) CallProblemType() string

func (*CallProblemSilentRemote) GetClass added in v0.1.0

func (*CallProblemSilentRemote) GetClass() string

func (*CallProblemSilentRemote) GetType added in v0.1.0

func (*CallProblemSilentRemote) GetType() string

func (*CallProblemSilentRemote) MarshalJSON added in v0.1.0

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 added in v0.3.0

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 added in v0.3.0

func UnmarshalCallServer(data json.RawMessage) (*CallServer, error)

func (*CallServer) GetClass added in v0.3.0

func (*CallServer) GetClass() string

func (*CallServer) GetType added in v0.3.0

func (*CallServer) GetType() string

func (*CallServer) MarshalJSON added in v0.3.0

func (entity *CallServer) MarshalJSON() ([]byte, error)

func (*CallServer) UnmarshalJSON added in v0.3.0

func (callServer *CallServer) UnmarshalJSON(data []byte) error

type CallServerType added in v0.3.0

type CallServerType interface {
	CallServerTypeType() string
}

Describes the type of call server

func UnmarshalCallServerType added in v0.3.0

func UnmarshalCallServerType(data json.RawMessage) (CallServerType, error)

func UnmarshalListOfCallServerType added in v0.3.2

func UnmarshalListOfCallServerType(dataList []json.RawMessage) ([]CallServerType, error)

type CallServerTypeTelegramReflector added in v0.3.0

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 added in v0.3.0

func UnmarshalCallServerTypeTelegramReflector(data json.RawMessage) (*CallServerTypeTelegramReflector, error)

func (*CallServerTypeTelegramReflector) CallServerTypeType added in v0.3.0

func (*CallServerTypeTelegramReflector) CallServerTypeType() string

func (*CallServerTypeTelegramReflector) GetClass added in v0.3.0

func (*CallServerTypeTelegramReflector) GetType added in v0.3.0

func (*CallServerTypeTelegramReflector) MarshalJSON added in v0.3.0

func (entity *CallServerTypeTelegramReflector) MarshalJSON() ([]byte, error)

type CallServerTypeWebrtc added in v0.3.0

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 added in v0.3.0

func UnmarshalCallServerTypeWebrtc(data json.RawMessage) (*CallServerTypeWebrtc, error)

func (*CallServerTypeWebrtc) CallServerTypeType added in v0.3.0

func (*CallServerTypeWebrtc) CallServerTypeType() string

func (*CallServerTypeWebrtc) GetClass added in v0.3.0

func (*CallServerTypeWebrtc) GetClass() string

func (*CallServerTypeWebrtc) GetType added in v0.3.0

func (*CallServerTypeWebrtc) GetType() string

func (*CallServerTypeWebrtc) MarshalJSON added in v0.3.0

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 added in v0.3.2

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 other call participant
	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 fingerprint represented as 4 emoji
	Emojis []string `json:"emojis"`
	// True, if peer-to-peer connection is allowed by users privacy settings
	AllowP2p bool `json:"allow_p2p"`
	// Custom JSON-encoded call parameters to be passed to tgcalls
	CustomParameters string `json:"custom_parameters"`
	// 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 added in v0.3.2

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 added in v0.3.0

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 added in v0.3.0

func UnmarshalCallbackQueryPayloadDataWithPassword(data json.RawMessage) (*CallbackQueryPayloadDataWithPassword, error)

func (*CallbackQueryPayloadDataWithPassword) CallbackQueryPayloadType added in v0.3.0

func (*CallbackQueryPayloadDataWithPassword) CallbackQueryPayloadType() string

func (*CallbackQueryPayloadDataWithPassword) GetClass added in v0.3.0

func (*CallbackQueryPayloadDataWithPassword) GetType added in v0.3.0

func (*CallbackQueryPayloadDataWithPassword) MarshalJSON added in v0.3.0

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 v0.7.0

type CanBotSendMessagesRequest struct {
	// Identifier of the target bot
	BotUserId int64 `json:"bot_user_id"`
}

type CanPurchaseFromStoreRequest added in v0.7.3

type CanPurchaseFromStoreRequest struct {
	// Transaction purpose
	Purpose StorePaymentPurpose `json:"purpose"`
}

type CanSendMessageToUserRequest added in v0.7.2

type CanSendMessageToUserRequest struct {
	// Identifier of the other user
	UserId int64 `json:"user_id"`
	// Pass true to get only locally available information without sending network requests
	OnlyLocal bool `json:"only_local"`
}

type CanSendMessageToUserResult added in v0.7.2

type CanSendMessageToUserResult interface {
	CanSendMessageToUserResultType() string
}

Describes result of canSendMessageToUser

func UnmarshalCanSendMessageToUserResult added in v0.7.2

func UnmarshalCanSendMessageToUserResult(data json.RawMessage) (CanSendMessageToUserResult, error)

func UnmarshalListOfCanSendMessageToUserResult added in v0.7.2

func UnmarshalListOfCanSendMessageToUserResult(dataList []json.RawMessage) ([]CanSendMessageToUserResult, error)

type CanSendMessageToUserResultOk added in v0.7.2

type CanSendMessageToUserResultOk struct {
	// contains filtered or unexported fields
}

The user can be messaged

func UnmarshalCanSendMessageToUserResultOk added in v0.7.2

func UnmarshalCanSendMessageToUserResultOk(data json.RawMessage) (*CanSendMessageToUserResultOk, error)

func (*CanSendMessageToUserResultOk) CanSendMessageToUserResultType added in v0.7.2

func (*CanSendMessageToUserResultOk) CanSendMessageToUserResultType() string

func (*CanSendMessageToUserResultOk) GetClass added in v0.7.2

func (*CanSendMessageToUserResultOk) GetType added in v0.7.2

func (*CanSendMessageToUserResultOk) MarshalJSON added in v0.7.2

func (entity *CanSendMessageToUserResultOk) MarshalJSON() ([]byte, error)

type CanSendMessageToUserResultUserIsDeleted added in v0.7.2

type CanSendMessageToUserResultUserIsDeleted struct {
	// contains filtered or unexported fields
}

The user can't be messaged, because they are deleted or unknown

func UnmarshalCanSendMessageToUserResultUserIsDeleted added in v0.7.2

func UnmarshalCanSendMessageToUserResultUserIsDeleted(data json.RawMessage) (*CanSendMessageToUserResultUserIsDeleted, error)

func (*CanSendMessageToUserResultUserIsDeleted) CanSendMessageToUserResultType added in v0.7.2

func (*CanSendMessageToUserResultUserIsDeleted) CanSendMessageToUserResultType() string

func (*CanSendMessageToUserResultUserIsDeleted) GetClass added in v0.7.2

func (*CanSendMessageToUserResultUserIsDeleted) GetType added in v0.7.2

func (*CanSendMessageToUserResultUserIsDeleted) MarshalJSON added in v0.7.2

func (entity *CanSendMessageToUserResultUserIsDeleted) MarshalJSON() ([]byte, error)

type CanSendMessageToUserResultUserRestrictsNewChats added in v0.7.2

type CanSendMessageToUserResultUserRestrictsNewChats struct {
	// contains filtered or unexported fields
}

The user can't be messaged, because they restrict new chats with non-contacts

func UnmarshalCanSendMessageToUserResultUserRestrictsNewChats added in v0.7.2

func UnmarshalCanSendMessageToUserResultUserRestrictsNewChats(data json.RawMessage) (*CanSendMessageToUserResultUserRestrictsNewChats, error)

func (*CanSendMessageToUserResultUserRestrictsNewChats) CanSendMessageToUserResultType added in v0.7.2

func (*CanSendMessageToUserResultUserRestrictsNewChats) CanSendMessageToUserResultType() string

func (*CanSendMessageToUserResultUserRestrictsNewChats) GetClass added in v0.7.2

func (*CanSendMessageToUserResultUserRestrictsNewChats) GetType added in v0.7.2

func (*CanSendMessageToUserResultUserRestrictsNewChats) MarshalJSON added in v0.7.2

func (entity *CanSendMessageToUserResultUserRestrictsNewChats) MarshalJSON() ([]byte, error)

type CanSendStoryRequest added in v0.7.1

type CanSendStoryRequest struct {
	// Chat identifier. Pass Saved Messages chat identifier when posting a story on behalf of the current user
	ChatId int64 `json:"chat_id"`
}

type CanSendStoryResult added in v0.7.0

type CanSendStoryResult interface {
	CanSendStoryResultType() string
}

Represents result of checking whether the current user can send a story in the specific chat

func UnmarshalCanSendStoryResult added in v0.7.0

func UnmarshalCanSendStoryResult(data json.RawMessage) (CanSendStoryResult, error)

func UnmarshalListOfCanSendStoryResult added in v0.7.0

func UnmarshalListOfCanSendStoryResult(dataList []json.RawMessage) ([]CanSendStoryResult, error)

type CanSendStoryResultActiveStoryLimitExceeded added in v0.7.0

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 v0.7.0

func UnmarshalCanSendStoryResultActiveStoryLimitExceeded(data json.RawMessage) (*CanSendStoryResultActiveStoryLimitExceeded, error)

func (*CanSendStoryResultActiveStoryLimitExceeded) CanSendStoryResultType added in v0.7.0

func (*CanSendStoryResultActiveStoryLimitExceeded) CanSendStoryResultType() string

func (*CanSendStoryResultActiveStoryLimitExceeded) GetClass added in v0.7.0

func (*CanSendStoryResultActiveStoryLimitExceeded) GetType added in v0.7.0

func (*CanSendStoryResultActiveStoryLimitExceeded) MarshalJSON added in v0.7.0

func (entity *CanSendStoryResultActiveStoryLimitExceeded) MarshalJSON() ([]byte, error)

type CanSendStoryResultBoostNeeded added in v0.7.1

type CanSendStoryResultBoostNeeded struct {
	// contains filtered or unexported fields
}

The chat must be boosted first by Telegram Premium subscribers to post more stories. Call getChatBoostStatus to get current boost status of the chat

func UnmarshalCanSendStoryResultBoostNeeded added in v0.7.1

func UnmarshalCanSendStoryResultBoostNeeded(data json.RawMessage) (*CanSendStoryResultBoostNeeded, error)

func (*CanSendStoryResultBoostNeeded) CanSendStoryResultType added in v0.7.1

func (*CanSendStoryResultBoostNeeded) CanSendStoryResultType() string

func (*CanSendStoryResultBoostNeeded) GetClass added in v0.7.1

func (*CanSendStoryResultBoostNeeded) GetType added in v0.7.1

func (*CanSendStoryResultBoostNeeded) MarshalJSON added in v0.7.1

func (entity *CanSendStoryResultBoostNeeded) MarshalJSON() ([]byte, error)

type CanSendStoryResultMonthlyLimitExceeded added in v0.7.0

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 v0.7.0

func UnmarshalCanSendStoryResultMonthlyLimitExceeded(data json.RawMessage) (*CanSendStoryResultMonthlyLimitExceeded, error)

func (*CanSendStoryResultMonthlyLimitExceeded) CanSendStoryResultType added in v0.7.0

func (*CanSendStoryResultMonthlyLimitExceeded) CanSendStoryResultType() string

func (*CanSendStoryResultMonthlyLimitExceeded) GetClass added in v0.7.0

func (*CanSendStoryResultMonthlyLimitExceeded) GetType added in v0.7.0

func (*CanSendStoryResultMonthlyLimitExceeded) MarshalJSON added in v0.7.0

func (entity *CanSendStoryResultMonthlyLimitExceeded) MarshalJSON() ([]byte, error)

type CanSendStoryResultOk added in v0.7.0

type CanSendStoryResultOk struct {
	// contains filtered or unexported fields
}

A story can be sent

func UnmarshalCanSendStoryResultOk added in v0.7.0

func UnmarshalCanSendStoryResultOk(data json.RawMessage) (*CanSendStoryResultOk, error)

func (*CanSendStoryResultOk) CanSendStoryResultType added in v0.7.0

func (*CanSendStoryResultOk) CanSendStoryResultType() string

func (*CanSendStoryResultOk) GetClass added in v0.7.0

func (*CanSendStoryResultOk) GetClass() string

func (*CanSendStoryResultOk) GetType added in v0.7.0

func (*CanSendStoryResultOk) GetType() string

func (*CanSendStoryResultOk) MarshalJSON added in v0.7.0

func (entity *CanSendStoryResultOk) MarshalJSON() ([]byte, error)

type CanSendStoryResultPremiumNeeded added in v0.7.0

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 v0.7.0

func UnmarshalCanSendStoryResultPremiumNeeded(data json.RawMessage) (*CanSendStoryResultPremiumNeeded, error)

func (*CanSendStoryResultPremiumNeeded) CanSendStoryResultType added in v0.7.0

func (*CanSendStoryResultPremiumNeeded) CanSendStoryResultType() string

func (*CanSendStoryResultPremiumNeeded) GetClass added in v0.7.0

func (*CanSendStoryResultPremiumNeeded) GetType added in v0.7.0

func (*CanSendStoryResultPremiumNeeded) MarshalJSON added in v0.7.0

func (entity *CanSendStoryResultPremiumNeeded) MarshalJSON() ([]byte, error)

type CanSendStoryResultWeeklyLimitExceeded added in v0.7.0

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 v0.7.0

func UnmarshalCanSendStoryResultWeeklyLimitExceeded(data json.RawMessage) (*CanSendStoryResultWeeklyLimitExceeded, error)

func (*CanSendStoryResultWeeklyLimitExceeded) CanSendStoryResultType added in v0.7.0

func (*CanSendStoryResultWeeklyLimitExceeded) CanSendStoryResultType() string

func (*CanSendStoryResultWeeklyLimitExceeded) GetClass added in v0.7.0

func (*CanSendStoryResultWeeklyLimitExceeded) GetType added in v0.7.0

func (*CanSendStoryResultWeeklyLimitExceeded) MarshalJSON added in v0.7.0

func (entity *CanSendStoryResultWeeklyLimitExceeded) MarshalJSON() ([]byte, error)

type CanTransferOwnershipResult added in v0.2.0

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 added in v0.2.0

func UnmarshalCanTransferOwnershipResult(data json.RawMessage) (CanTransferOwnershipResult, error)

func UnmarshalListOfCanTransferOwnershipResult added in v0.3.2

func UnmarshalListOfCanTransferOwnershipResult(dataList []json.RawMessage) ([]CanTransferOwnershipResult, error)

type CanTransferOwnershipResultOk added in v0.2.0

type CanTransferOwnershipResultOk struct {
	// contains filtered or unexported fields
}

The session can be used

func UnmarshalCanTransferOwnershipResultOk added in v0.2.0

func UnmarshalCanTransferOwnershipResultOk(data json.RawMessage) (*CanTransferOwnershipResultOk, error)

func (*CanTransferOwnershipResultOk) CanTransferOwnershipResultType added in v0.2.0

func (*CanTransferOwnershipResultOk) CanTransferOwnershipResultType() string

func (*CanTransferOwnershipResultOk) GetClass added in v0.2.0

func (*CanTransferOwnershipResultOk) GetType added in v0.2.0

func (*CanTransferOwnershipResultOk) MarshalJSON added in v0.2.0

func (entity *CanTransferOwnershipResultOk) MarshalJSON() ([]byte, error)

type CanTransferOwnershipResultPasswordNeeded added in v0.2.0

type CanTransferOwnershipResultPasswordNeeded struct {
	// contains filtered or unexported fields
}

The 2-step verification needs to be enabled first

func UnmarshalCanTransferOwnershipResultPasswordNeeded added in v0.2.0

func UnmarshalCanTransferOwnershipResultPasswordNeeded(data json.RawMessage) (*CanTransferOwnershipResultPasswordNeeded, error)

func (*CanTransferOwnershipResultPasswordNeeded) CanTransferOwnershipResultType added in v0.2.0

func (*CanTransferOwnershipResultPasswordNeeded) CanTransferOwnershipResultType() string

func (*CanTransferOwnershipResultPasswordNeeded) GetClass added in v0.2.0

func (*CanTransferOwnershipResultPasswordNeeded) GetType added in v0.2.0

func (*CanTransferOwnershipResultPasswordNeeded) MarshalJSON added in v0.2.0

func (entity *CanTransferOwnershipResultPasswordNeeded) MarshalJSON() ([]byte, error)

type CanTransferOwnershipResultPasswordTooFresh added in v0.2.0

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 added in v0.2.0

func UnmarshalCanTransferOwnershipResultPasswordTooFresh(data json.RawMessage) (*CanTransferOwnershipResultPasswordTooFresh, error)

func (*CanTransferOwnershipResultPasswordTooFresh) CanTransferOwnershipResultType added in v0.2.0

func (*CanTransferOwnershipResultPasswordTooFresh) CanTransferOwnershipResultType() string

func (*CanTransferOwnershipResultPasswordTooFresh) GetClass added in v0.2.0

func (*CanTransferOwnershipResultPasswordTooFresh) GetType added in v0.2.0

func (*CanTransferOwnershipResultPasswordTooFresh) MarshalJSON added in v0.2.0

func (entity *CanTransferOwnershipResultPasswordTooFresh) MarshalJSON() ([]byte, error)

type CanTransferOwnershipResultSessionTooFresh added in v0.2.0

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 added in v0.2.0

func UnmarshalCanTransferOwnershipResultSessionTooFresh(data json.RawMessage) (*CanTransferOwnershipResultSessionTooFresh, error)

func (*CanTransferOwnershipResultSessionTooFresh) CanTransferOwnershipResultType added in v0.2.0

func (*CanTransferOwnershipResultSessionTooFresh) CanTransferOwnershipResultType() string

func (*CanTransferOwnershipResultSessionTooFresh) GetClass added in v0.2.0

func (*CanTransferOwnershipResultSessionTooFresh) GetType added in v0.2.0

func (*CanTransferOwnershipResultSessionTooFresh) MarshalJSON added in v0.2.0

func (entity *CanTransferOwnershipResultSessionTooFresh) MarshalJSON() ([]byte, error)

type CancelDownloadFileRequest

type CancelDownloadFileRequest struct {
	// Identifier of a file to stop downloading
	FileId int32 `json:"file_id"`
	// Pass true to stop downloading only if it hasn't been started, i.e. request hasn't been sent to server
	OnlyIfPending bool `json:"only_if_pending"`
}

type CancelPreliminaryUploadFileRequest added in v0.7.0

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 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"`
	// Identifier of the accent color for message sender name, and backgrounds of chat photo, reply header, and link preview
	AccentColorId int32 `json:"accent_color_id"`
	// Identifier of a custom emoji to be shown on the reply header and link preview background for messages sent by the chat; 0 if none
	BackgroundCustomEmojiId JsonInt64 `json:"background_custom_emoji_id"`
	// Identifier of the profile accent color for the chat's profile; -1 if none
	ProfileAccentColorId int32 `json:"profile_accent_color_id"`
	// Identifier of a custom emoji to be shown on the background of the chat's profile; 0 if none
	ProfileBackgroundCustomEmojiId JsonInt64 `json:"profile_background_custom_emoji_id"`
	// 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"`
	// Chat lists to which the chat belongs. A chat can have a non-zero position in a chat list even it doesn't belong to the chat list and have no position in a chat list even it belongs to the chat list
	ChatLists []ChatList `json:"chat_lists"`
	// 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 is a forum supergroup that must be shown in the "View as topics" mode, or Saved Messages chat that must be shown in the "View as chats"
	ViewAsTopics bool `json:"view_as_topics"`
	// 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"`
	// Emoji status to be shown along with chat title; may be null
	EmojiStatus *EmojiStatus `json:"emoji_status"`
	// 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 bar for managing a business bot in the chat; may be null if none
	BusinessBotManageBar *BusinessBotManageBar `json:"business_bot_manage_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) GetClass

func (*Chat) GetClass() string

func (*Chat) GetType

func (*Chat) GetType() string

func (*Chat) MarshalJSON

func (entity *Chat) MarshalJSON() ([]byte, error)

func (*Chat) UnmarshalJSON

func (chat *Chat) UnmarshalJSON(data []byte) error

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 added in v0.3.2

func UnmarshalListOfChatAction(dataList []json.RawMessage) ([]ChatAction, error)

type ChatActionBar added in v0.2.0

type ChatActionBar interface {
	ChatActionBarType() string
}

Describes actions which must be possible to do through a chat action bar

func UnmarshalChatActionBar added in v0.2.0

func UnmarshalChatActionBar(data json.RawMessage) (ChatActionBar, error)

func UnmarshalListOfChatActionBar added in v0.3.2

func UnmarshalListOfChatActionBar(dataList []json.RawMessage) ([]ChatActionBar, error)

type ChatActionBarAddContact added in v0.2.0

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 added in v0.2.0

func UnmarshalChatActionBarAddContact(data json.RawMessage) (*ChatActionBarAddContact, error)

func (*ChatActionBarAddContact) ChatActionBarType added in v0.2.0

func (*ChatActionBarAddContact) ChatActionBarType() string

func (*ChatActionBarAddContact) GetClass added in v0.2.0

func (*ChatActionBarAddContact) GetClass() string

func (*ChatActionBarAddContact) GetType added in v0.2.0

func (*ChatActionBarAddContact) GetType() string

func (*ChatActionBarAddContact) MarshalJSON added in v0.2.0

func (entity *ChatActionBarAddContact) MarshalJSON() ([]byte, error)

type ChatActionBarInviteMembers added in v0.5.0

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 added in v0.5.0

func UnmarshalChatActionBarInviteMembers(data json.RawMessage) (*ChatActionBarInviteMembers, error)

func (*ChatActionBarInviteMembers) ChatActionBarType added in v0.5.0

func (*ChatActionBarInviteMembers) ChatActionBarType() string

func (*ChatActionBarInviteMembers) GetClass added in v0.5.0

func (*ChatActionBarInviteMembers) GetClass() string

func (*ChatActionBarInviteMembers) GetType added in v0.5.0

func (*ChatActionBarInviteMembers) MarshalJSON added in v0.5.0

func (entity *ChatActionBarInviteMembers) MarshalJSON() ([]byte, error)

type ChatActionBarJoinRequest added in v0.5.0

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 added in v0.5.0

func UnmarshalChatActionBarJoinRequest(data json.RawMessage) (*ChatActionBarJoinRequest, error)

func (*ChatActionBarJoinRequest) ChatActionBarType added in v0.5.0

func (*ChatActionBarJoinRequest) ChatActionBarType() string

func (*ChatActionBarJoinRequest) GetClass added in v0.5.0

func (*ChatActionBarJoinRequest) GetClass() string

func (*ChatActionBarJoinRequest) GetType added in v0.5.0

func (*ChatActionBarJoinRequest) GetType() string

func (*ChatActionBarJoinRequest) MarshalJSON added in v0.5.0

func (entity *ChatActionBarJoinRequest) MarshalJSON() ([]byte, error)

type ChatActionBarReportAddBlock added in v0.2.0

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"`
	// 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 added in v0.2.0

func UnmarshalChatActionBarReportAddBlock(data json.RawMessage) (*ChatActionBarReportAddBlock, error)

func (*ChatActionBarReportAddBlock) ChatActionBarType added in v0.2.0

func (*ChatActionBarReportAddBlock) ChatActionBarType() string

func (*ChatActionBarReportAddBlock) GetClass added in v0.2.0

func (*ChatActionBarReportAddBlock) GetClass() string

func (*ChatActionBarReportAddBlock) GetType added in v0.2.0

func (*ChatActionBarReportAddBlock) MarshalJSON added in v0.2.0

func (entity *ChatActionBarReportAddBlock) MarshalJSON() ([]byte, error)

type ChatActionBarReportSpam added in v0.2.0

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 an empty option_id and message_ids. 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 added in v0.2.0

func UnmarshalChatActionBarReportSpam(data json.RawMessage) (*ChatActionBarReportSpam, error)

func (*ChatActionBarReportSpam) ChatActionBarType added in v0.2.0

func (*ChatActionBarReportSpam) ChatActionBarType() string

func (*ChatActionBarReportSpam) GetClass added in v0.2.0

func (*ChatActionBarReportSpam) GetClass() string

func (*ChatActionBarReportSpam) GetType added in v0.2.0

func (*ChatActionBarReportSpam) GetType() string

func (*ChatActionBarReportSpam) MarshalJSON added in v0.2.0

func (entity *ChatActionBarReportSpam) MarshalJSON() ([]byte, error)

type ChatActionBarSharePhoneNumber added in v0.2.0

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 added in v0.2.0

func UnmarshalChatActionBarSharePhoneNumber(data json.RawMessage) (*ChatActionBarSharePhoneNumber, error)

func (*ChatActionBarSharePhoneNumber) ChatActionBarType added in v0.2.0

func (*ChatActionBarSharePhoneNumber) ChatActionBarType() string

func (*ChatActionBarSharePhoneNumber) GetClass added in v0.2.0

func (*ChatActionBarSharePhoneNumber) GetType added in v0.2.0

func (*ChatActionBarSharePhoneNumber) MarshalJSON added in v0.2.0

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) MarshalJSON

func (entity *ChatActionChoosingLocation) MarshalJSON() ([]byte, error)

type ChatActionChoosingSticker added in v0.5.0

type ChatActionChoosingSticker struct {
	// contains filtered or unexported fields
}

The user is picking a sticker to send

func UnmarshalChatActionChoosingSticker added in v0.5.0

func UnmarshalChatActionChoosingSticker(data json.RawMessage) (*ChatActionChoosingSticker, error)

func (*ChatActionChoosingSticker) ChatActionType added in v0.5.0

func (*ChatActionChoosingSticker) ChatActionType() string

func (*ChatActionChoosingSticker) GetClass added in v0.5.0

func (*ChatActionChoosingSticker) GetClass() string

func (*ChatActionChoosingSticker) GetType added in v0.5.0

func (*ChatActionChoosingSticker) GetType() string

func (*ChatActionChoosingSticker) MarshalJSON added in v0.5.0

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) GetType

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) GetType

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) 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) 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) GetType

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) GetType

func (*ChatActionUploadingVoiceNote) MarshalJSON

func (entity *ChatActionUploadingVoiceNote) MarshalJSON() ([]byte, error)

type ChatActionWatchingAnimations added in v0.5.0

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 added in v0.5.0

func UnmarshalChatActionWatchingAnimations(data json.RawMessage) (*ChatActionWatchingAnimations, error)

func (*ChatActionWatchingAnimations) ChatActionType added in v0.5.0

func (*ChatActionWatchingAnimations) ChatActionType() string

func (*ChatActionWatchingAnimations) GetClass added in v0.5.0

func (*ChatActionWatchingAnimations) GetType added in v0.5.0

func (*ChatActionWatchingAnimations) MarshalJSON added in v0.5.0

func (entity *ChatActionWatchingAnimations) MarshalJSON() ([]byte, error)

type ChatActiveStories added in v0.7.0

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 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 v0.7.0

func UnmarshalChatActiveStories(data json.RawMessage) (*ChatActiveStories, error)

func (*ChatActiveStories) GetClass added in v0.7.0

func (*ChatActiveStories) GetClass() string

func (*ChatActiveStories) GetType added in v0.7.0

func (*ChatActiveStories) GetType() string

func (*ChatActiveStories) MarshalJSON added in v0.7.0

func (entity *ChatActiveStories) MarshalJSON() ([]byte, error)

func (*ChatActiveStories) UnmarshalJSON added in v0.7.0

func (chatActiveStories *ChatActiveStories) UnmarshalJSON(data []byte) error

type ChatAdministrator added in v0.2.0

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 added in v0.2.0

func UnmarshalChatAdministrator(data json.RawMessage) (*ChatAdministrator, error)

func (*ChatAdministrator) GetClass added in v0.2.0

func (*ChatAdministrator) GetClass() string

func (*ChatAdministrator) GetType added in v0.2.0

func (*ChatAdministrator) GetType() string

func (*ChatAdministrator) MarshalJSON added in v0.2.0

func (entity *ChatAdministrator) MarshalJSON() ([]byte, error)

type ChatAdministratorRights added in v0.7.0

type ChatAdministratorRights struct {

	// True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report supergroup spam messages 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 or view channel statistics; 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 or view supergroup statistics; 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 create, rename, close, reopen, hide, and unhide forum 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 can create new chat stories, or edit and delete posted stories; applicable to supergroups and channels only
	CanPostStories bool `json:"can_post_stories"`
	// True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access story archive; applicable to supergroups and channels only
	CanEditStories bool `json:"can_edit_stories"`
	// True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only
	CanDeleteStories bool `json:"can_delete_stories"`
	// 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 v0.7.0

func UnmarshalChatAdministratorRights(data json.RawMessage) (*ChatAdministratorRights, error)

func (*ChatAdministratorRights) GetClass added in v0.7.0

func (*ChatAdministratorRights) GetClass() string

func (*ChatAdministratorRights) GetType added in v0.7.0

func (*ChatAdministratorRights) GetType() string

func (*ChatAdministratorRights) MarshalJSON added in v0.7.0

func (entity *ChatAdministratorRights) MarshalJSON() ([]byte, error)

type ChatAdministrators added in v0.2.0

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 added in v0.2.0

func UnmarshalChatAdministrators(data json.RawMessage) (*ChatAdministrators, error)

func (*ChatAdministrators) GetClass added in v0.2.0

func (*ChatAdministrators) GetClass() string

func (*ChatAdministrators) GetType added in v0.2.0

func (*ChatAdministrators) GetType() string

func (*ChatAdministrators) MarshalJSON added in v0.2.0

func (entity *ChatAdministrators) MarshalJSON() ([]byte, error)

type ChatAvailableReactions added in v0.7.0

type ChatAvailableReactions interface {
	ChatAvailableReactionsType() string
}

Describes reactions available in the chat

func UnmarshalChatAvailableReactions added in v0.7.0

func UnmarshalChatAvailableReactions(data json.RawMessage) (ChatAvailableReactions, error)

func UnmarshalListOfChatAvailableReactions added in v0.7.0

func UnmarshalListOfChatAvailableReactions(dataList []json.RawMessage) ([]ChatAvailableReactions, error)

type ChatAvailableReactionsAll added in v0.7.0

type ChatAvailableReactionsAll struct {

	// The maximum allowed number of reactions per message; 1-11
	MaxReactionCount int32 `json:"max_reaction_count"`
	// contains filtered or unexported fields
}

All reactions are available in the chat, excluding the paid reaction and custom reactions in channel chats

func UnmarshalChatAvailableReactionsAll added in v0.7.0

func UnmarshalChatAvailableReactionsAll(data json.RawMessage) (*ChatAvailableReactionsAll, error)

func (*ChatAvailableReactionsAll) ChatAvailableReactionsType added in v0.7.0

func (*ChatAvailableReactionsAll) ChatAvailableReactionsType() string

func (*ChatAvailableReactionsAll) GetClass added in v0.7.0

func (*ChatAvailableReactionsAll) GetClass() string

func (*ChatAvailableReactionsAll) GetType added in v0.7.0

func (*ChatAvailableReactionsAll) GetType() string

func (*ChatAvailableReactionsAll) MarshalJSON added in v0.7.0

func (entity *ChatAvailableReactionsAll) MarshalJSON() ([]byte, error)

type ChatAvailableReactionsSome added in v0.7.0

type ChatAvailableReactionsSome struct {

	// The list of reactions
	Reactions []ReactionType `json:"reactions"`
	// The maximum allowed number of reactions per message; 1-11
	MaxReactionCount int32 `json:"max_reaction_count"`
	// contains filtered or unexported fields
}

Only specific reactions are available in the chat

func UnmarshalChatAvailableReactionsSome added in v0.7.0

func UnmarshalChatAvailableReactionsSome(data json.RawMessage) (*ChatAvailableReactionsSome, error)

func (*ChatAvailableReactionsSome) ChatAvailableReactionsType added in v0.7.0

func (*ChatAvailableReactionsSome) ChatAvailableReactionsType() string

func (*ChatAvailableReactionsSome) GetClass added in v0.7.0

func (*ChatAvailableReactionsSome) GetClass() string

func (*ChatAvailableReactionsSome) GetType added in v0.7.0

func (*ChatAvailableReactionsSome) MarshalJSON added in v0.7.0

func (entity *ChatAvailableReactionsSome) MarshalJSON() ([]byte, error)

func (*ChatAvailableReactionsSome) UnmarshalJSON added in v0.7.0

func (chatAvailableReactionsSome *ChatAvailableReactionsSome) UnmarshalJSON(data []byte) error

type ChatBackground added in v0.7.0

type ChatBackground struct {

	// The background
	Background *Background `json:"background"`
	// Dimming of the background in dark themes, as a percentage; 0-100. Applied only to Wallpaper and Fill types of background
	DarkThemeDimming int32 `json:"dark_theme_dimming"`
	// contains filtered or unexported fields
}

Describes a background set for a specific chat

func UnmarshalChatBackground added in v0.7.0

func UnmarshalChatBackground(data json.RawMessage) (*ChatBackground, error)

func (*ChatBackground) GetClass added in v0.7.0

func (*ChatBackground) GetClass() string

func (*ChatBackground) GetType added in v0.7.0

func (*ChatBackground) GetType() string

func (*ChatBackground) MarshalJSON added in v0.7.0

func (entity *ChatBackground) MarshalJSON() ([]byte, error)

type ChatBoost added in v0.7.1

type ChatBoost struct {

	// Unique identifier of the boost
	Id string `json:"id"`
	// The number of identical boosts applied
	Count int32 `json:"count"`
	// Source of the boost
	Source ChatBoostSource `json:"source"`
	// Point in time (Unix timestamp) when the chat was boosted
	StartDate int32 `json:"start_date"`
	// Point in time (Unix timestamp) when the boost will expire
	ExpirationDate int32 `json:"expiration_date"`
	// contains filtered or unexported fields
}

Describes a boost applied to a chat

func UnmarshalChatBoost added in v0.7.1

func UnmarshalChatBoost(data json.RawMessage) (*ChatBoost, error)

func (*ChatBoost) GetClass added in v0.7.1

func (*ChatBoost) GetClass() string

func (*ChatBoost) GetType added in v0.7.1

func (*ChatBoost) GetType() string

func (*ChatBoost) MarshalJSON added in v0.7.1

func (entity *ChatBoost) MarshalJSON() ([]byte, error)

func (*ChatBoost) UnmarshalJSON added in v0.7.1

func (chatBoost *ChatBoost) UnmarshalJSON(data []byte) error

type ChatBoostFeatures added in v0.7.2

type ChatBoostFeatures struct {

	// The list of features
	Features []*ChatBoostLevelFeatures `json:"features"`
	// The minimum boost level required to set custom emoji for profile background
	MinProfileBackgroundCustomEmojiBoostLevel int32 `json:"min_profile_background_custom_emoji_boost_level"`
	// The minimum boost level required to set custom emoji for reply header and link preview background; for channel chats only
	MinBackgroundCustomEmojiBoostLevel int32 `json:"min_background_custom_emoji_boost_level"`
	// The minimum boost level required to set emoji status
	MinEmojiStatusBoostLevel int32 `json:"min_emoji_status_boost_level"`
	// The minimum boost level required to set a chat theme background as chat background
	MinChatThemeBackgroundBoostLevel int32 `json:"min_chat_theme_background_boost_level"`
	// The minimum boost level required to set custom chat background
	MinCustomBackgroundBoostLevel int32 `json:"min_custom_background_boost_level"`
	// The minimum boost level required to set custom emoji sticker set for the chat; for supergroup chats only
	MinCustomEmojiStickerSetBoostLevel int32 `json:"min_custom_emoji_sticker_set_boost_level"`
	// The minimum boost level allowing to recognize speech in video note and voice note messages for non-Premium users; for supergroup chats only
	MinSpeechRecognitionBoostLevel int32 `json:"min_speech_recognition_boost_level"`
	// The minimum boost level allowing to disable sponsored messages in the chat; for channel chats only
	MinSponsoredMessageDisableBoostLevel int32 `json:"min_sponsored_message_disable_boost_level"`
	// contains filtered or unexported fields
}

Contains a list of features available on the first chat boost levels

func UnmarshalChatBoostFeatures added in v0.7.2

func UnmarshalChatBoostFeatures(data json.RawMessage) (*ChatBoostFeatures, error)

func (*ChatBoostFeatures) GetClass added in v0.7.2

func (*ChatBoostFeatures) GetClass() string

func (*ChatBoostFeatures) GetType added in v0.7.2

func (*ChatBoostFeatures) GetType() string

func (*ChatBoostFeatures) MarshalJSON added in v0.7.2

func (entity *ChatBoostFeatures) MarshalJSON() ([]byte, error)

type ChatBoostLevelFeatures added in v0.7.2

type ChatBoostLevelFeatures struct {

	// Target chat boost level
	Level int32 `json:"level"`
	// Number of stories that the chat can publish daily
	StoryPerDayCount int32 `json:"story_per_day_count"`
	// Number of custom emoji reactions that can be added to the list of available reactions
	CustomEmojiReactionCount int32 `json:"custom_emoji_reaction_count"`
	// Number of custom colors for chat title
	TitleColorCount int32 `json:"title_color_count"`
	// Number of custom colors for profile photo background
	ProfileAccentColorCount int32 `json:"profile_accent_color_count"`
	// True, if custom emoji for profile background can be set
	CanSetProfileBackgroundCustomEmoji bool `json:"can_set_profile_background_custom_emoji"`
	// Number of custom colors for background of empty chat photo, replies to messages and link previews
	AccentColorCount int32 `json:"accent_color_count"`
	// True, if custom emoji for reply header and link preview background can be set
	CanSetBackgroundCustomEmoji bool `json:"can_set_background_custom_emoji"`
	// True, if emoji status can be set
	CanSetEmojiStatus bool `json:"can_set_emoji_status"`
	// Number of chat theme backgrounds that can be set as chat background
	ChatThemeBackgroundCount int32 `json:"chat_theme_background_count"`
	// True, if custom background can be set in the chat for all users
	CanSetCustomBackground bool `json:"can_set_custom_background"`
	// True, if custom emoji sticker set can be set for the chat
	CanSetCustomEmojiStickerSet bool `json:"can_set_custom_emoji_sticker_set"`
	// True, if speech recognition can be used for video note and voice note messages by all users
	CanRecognizeSpeech bool `json:"can_recognize_speech"`
	// True, if sponsored messages can be disabled in the chat
	CanDisableSponsoredMessages bool `json:"can_disable_sponsored_messages"`
	// contains filtered or unexported fields
}

Contains a list of features available on a specific chat boost level

func UnmarshalChatBoostLevelFeatures added in v0.7.2

func UnmarshalChatBoostLevelFeatures(data json.RawMessage) (*ChatBoostLevelFeatures, error)

func (*ChatBoostLevelFeatures) GetClass added in v0.7.2

func (*ChatBoostLevelFeatures) GetClass() string

func (*ChatBoostLevelFeatures) GetType added in v0.7.2

func (*ChatBoostLevelFeatures) GetType() string

func (*ChatBoostLevelFeatures) MarshalJSON added in v0.7.2

func (entity *ChatBoostLevelFeatures) MarshalJSON() ([]byte, error)
type ChatBoostLink 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 boost a chat

func UnmarshalChatBoostLink(data json.RawMessage) (*ChatBoostLink, error)

func (*ChatBoostLink) GetClass added in v0.7.1

func (*ChatBoostLink) GetClass() string

func (*ChatBoostLink) GetType added in v0.7.1

func (*ChatBoostLink) GetType() string

func (*ChatBoostLink) MarshalJSON added in v0.7.1

func (entity *ChatBoostLink) MarshalJSON() ([]byte, error)

type ChatBoostLinkInfo added in v0.7.1

type ChatBoostLinkInfo struct {

	// True, if the link will work for non-members of the chat
	IsPublic bool `json:"is_public"`
	// Identifier of the chat to which the link points; 0 if the chat isn't found
	ChatId int64 `json:"chat_id"`
	// contains filtered or unexported fields
}

Contains information about a link to boost a chat

func UnmarshalChatBoostLinkInfo added in v0.7.1

func UnmarshalChatBoostLinkInfo(data json.RawMessage) (*ChatBoostLinkInfo, error)

func (*ChatBoostLinkInfo) GetClass added in v0.7.1

func (*ChatBoostLinkInfo) GetClass() string

func (*ChatBoostLinkInfo) GetType added in v0.7.1

func (*ChatBoostLinkInfo) GetType() string

func (*ChatBoostLinkInfo) MarshalJSON added in v0.7.1

func (entity *ChatBoostLinkInfo) MarshalJSON() ([]byte, error)

type ChatBoostSlot added in v0.7.1

type ChatBoostSlot struct {

	// Unique identifier of the slot
	SlotId int32 `json:"slot_id"`
	// Identifier of the currently boosted chat; 0 if none
	CurrentlyBoostedChatId int64 `json:"currently_boosted_chat_id"`
	// Point in time (Unix timestamp) when the chat was boosted; 0 if none
	StartDate int32 `json:"start_date"`
	// Point in time (Unix timestamp) when the boost will expire
	ExpirationDate int32 `json:"expiration_date"`
	// Point in time (Unix timestamp) after which the boost can be used for another chat
	CooldownUntilDate int32 `json:"cooldown_until_date"`
	// contains filtered or unexported fields
}

Describes a slot for chat boost

func UnmarshalChatBoostSlot added in v0.7.1

func UnmarshalChatBoostSlot(data json.RawMessage) (*ChatBoostSlot, error)

func (*ChatBoostSlot) GetClass added in v0.7.1

func (*ChatBoostSlot) GetClass() string

func (*ChatBoostSlot) GetType added in v0.7.1

func (*ChatBoostSlot) GetType() string

func (*ChatBoostSlot) MarshalJSON added in v0.7.1

func (entity *ChatBoostSlot) MarshalJSON() ([]byte, error)

type ChatBoostSlots added in v0.7.1

type ChatBoostSlots struct {

	// List of boost slots
	Slots []*ChatBoostSlot `json:"slots"`
	// contains filtered or unexported fields
}

Contains a list of chat boost slots

func UnmarshalChatBoostSlots added in v0.7.1

func UnmarshalChatBoostSlots(data json.RawMessage) (*ChatBoostSlots, error)

func (*ChatBoostSlots) GetClass added in v0.7.1

func (*ChatBoostSlots) GetClass() string

func (*ChatBoostSlots) GetType added in v0.7.1

func (*ChatBoostSlots) GetType() string

func (*ChatBoostSlots) MarshalJSON added in v0.7.1

func (entity *ChatBoostSlots) MarshalJSON() ([]byte, error)

type ChatBoostSource added in v0.7.1

type ChatBoostSource interface {
	ChatBoostSourceType() string
}

Describes source of a chat boost

func UnmarshalChatBoostSource added in v0.7.1

func UnmarshalChatBoostSource(data json.RawMessage) (ChatBoostSource, error)

func UnmarshalListOfChatBoostSource added in v0.7.1

func UnmarshalListOfChatBoostSource(dataList []json.RawMessage) ([]ChatBoostSource, error)

type ChatBoostSourceGiftCode added in v0.7.1

type ChatBoostSourceGiftCode struct {

	// Identifier of a user, for which the gift code was created
	UserId int64 `json:"user_id"`
	// The created Telegram Premium gift code, which is known only if this is a gift code for the current user, or it has already been claimed
	GiftCode string `json:"gift_code"`
	// contains filtered or unexported fields
}

The chat created a Telegram Premium gift code for a user

func UnmarshalChatBoostSourceGiftCode added in v0.7.1

func UnmarshalChatBoostSourceGiftCode(data json.RawMessage) (*ChatBoostSourceGiftCode, error)

func (*ChatBoostSourceGiftCode) ChatBoostSourceType added in v0.7.1

func (*ChatBoostSourceGiftCode) ChatBoostSourceType() string

func (*ChatBoostSourceGiftCode) GetClass added in v0.7.1

func (*ChatBoostSourceGiftCode) GetClass() string

func (*ChatBoostSourceGiftCode) GetType added in v0.7.1

func (*ChatBoostSourceGiftCode) GetType() string

func (*ChatBoostSourceGiftCode) MarshalJSON added in v0.7.1

func (entity *ChatBoostSourceGiftCode) MarshalJSON() ([]byte, error)

type ChatBoostSourceGiveaway added in v0.7.1

type ChatBoostSourceGiveaway struct {

	// Identifier of a user that won in the giveaway; 0 if none
	UserId int64 `json:"user_id"`
	// The created Telegram Premium gift code if it was used by the user or can be claimed by the current user; an empty string otherwise; for Telegram Premium giveways only
	GiftCode string `json:"gift_code"`
	// Number of Telegram Stars distributed among winners of the giveaway
	StarCount int64 `json:"star_count"`
	// Identifier of the corresponding giveaway message; can be an identifier of a deleted message
	GiveawayMessageId int64 `json:"giveaway_message_id"`
	// True, if the winner for the corresponding giveaway prize wasn't chosen, because there were not enough participants
	IsUnclaimed bool `json:"is_unclaimed"`
	// contains filtered or unexported fields
}

The chat created a giveaway

func UnmarshalChatBoostSourceGiveaway added in v0.7.1

func UnmarshalChatBoostSourceGiveaway(data json.RawMessage) (*ChatBoostSourceGiveaway, error)

func (*ChatBoostSourceGiveaway) ChatBoostSourceType added in v0.7.1

func (*ChatBoostSourceGiveaway) ChatBoostSourceType() string

func (*ChatBoostSourceGiveaway) GetClass added in v0.7.1

func (*ChatBoostSourceGiveaway) GetClass() string

func (*ChatBoostSourceGiveaway) GetType added in v0.7.1

func (*ChatBoostSourceGiveaway) GetType() string

func (*ChatBoostSourceGiveaway) MarshalJSON added in v0.7.1

func (entity *ChatBoostSourceGiveaway) MarshalJSON() ([]byte, error)

type ChatBoostSourcePremium added in v0.7.1

type ChatBoostSourcePremium struct {

	// Identifier of the user
	UserId int64 `json:"user_id"`
	// contains filtered or unexported fields
}

A user with Telegram Premium subscription or gifted Telegram Premium boosted the chat

func UnmarshalChatBoostSourcePremium added in v0.7.1

func UnmarshalChatBoostSourcePremium(data json.RawMessage) (*ChatBoostSourcePremium, error)

func (*ChatBoostSourcePremium) ChatBoostSourceType added in v0.7.1

func (*ChatBoostSourcePremium) ChatBoostSourceType() string

func (*ChatBoostSourcePremium) GetClass added in v0.7.1

func (*ChatBoostSourcePremium) GetClass() string

func (*ChatBoostSourcePremium) GetType added in v0.7.1

func (*ChatBoostSourcePremium) GetType() string

func (*ChatBoostSourcePremium) MarshalJSON added in v0.7.1

func (entity *ChatBoostSourcePremium) MarshalJSON() ([]byte, error)

type ChatBoostStatus added in v0.7.1

type ChatBoostStatus struct {

	// An HTTP URL, which can be used to boost the chat
	BoostUrl string `json:"boost_url"`
	// Identifiers of boost slots of the current user applied to the chat
	AppliedSlotIds []int32 `json:"applied_slot_ids"`
	// Current boost level of the chat
	Level int32 `json:"level"`
	// The number of boosts received by the chat from created Telegram Premium gift codes and giveaways; always 0 if the current user isn't an administrator in the chat
	GiftCodeBoostCount int32 `json:"gift_code_boost_count"`
	// The number of boosts received by the chat
	BoostCount int32 `json:"boost_count"`
	// The number of boosts added to reach the current level
	CurrentLevelBoostCount int32 `json:"current_level_boost_count"`
	// The number of boosts needed to reach the next level; 0 if the next level isn't available
	NextLevelBoostCount int32 `json:"next_level_boost_count"`
	// Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat
	PremiumMemberCount int32 `json:"premium_member_count"`
	// A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat
	PremiumMemberPercentage float64 `json:"premium_member_percentage"`
	// The list of prepaid giveaways available for the chat; only for chat administrators
	PrepaidGiveaways []*PrepaidGiveaway `json:"prepaid_giveaways"`
	// contains filtered or unexported fields
}

Describes current boost status of a chat

func UnmarshalChatBoostStatus added in v0.7.1

func UnmarshalChatBoostStatus(data json.RawMessage) (*ChatBoostStatus, error)

func (*ChatBoostStatus) GetClass added in v0.7.1

func (*ChatBoostStatus) GetClass() string

func (*ChatBoostStatus) GetType added in v0.7.1

func (*ChatBoostStatus) GetType() string

func (*ChatBoostStatus) MarshalJSON added in v0.7.1

func (entity *ChatBoostStatus) 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) GetClass

func (*ChatEvent) GetClass() string

func (*ChatEvent) GetType

func (*ChatEvent) GetType() string

func (*ChatEvent) MarshalJSON

func (entity *ChatEvent) MarshalJSON() ([]byte, error)

func (*ChatEvent) UnmarshalJSON

func (chatEvent *ChatEvent) UnmarshalJSON(data []byte) error

type ChatEventAccentColorChanged added in v0.7.1

type ChatEventAccentColorChanged struct {

	// Previous identifier of chat accent color
	OldAccentColorId int32 `json:"old_accent_color_id"`
	// Previous identifier of the custom emoji; 0 if none
	OldBackgroundCustomEmojiId JsonInt64 `json:"old_background_custom_emoji_id"`
	// New identifier of chat accent color
	NewAccentColorId int32 `json:"new_accent_color_id"`
	// New identifier of the custom emoji; 0 if none
	NewBackgroundCustomEmojiId JsonInt64 `json:"new_background_custom_emoji_id"`
	// contains filtered or unexported fields
}

The chat accent color or background custom emoji were changed

func UnmarshalChatEventAccentColorChanged added in v0.7.1

func UnmarshalChatEventAccentColorChanged(data json.RawMessage) (*ChatEventAccentColorChanged, error)

func (*ChatEventAccentColorChanged) ChatEventActionType added in v0.7.1

func (*ChatEventAccentColorChanged) ChatEventActionType() string

func (*ChatEventAccentColorChanged) GetClass added in v0.7.1

func (*ChatEventAccentColorChanged) GetClass() string

func (*ChatEventAccentColorChanged) GetType added in v0.7.1

func (*ChatEventAccentColorChanged) MarshalJSON added in v0.7.1

func (entity *ChatEventAccentColorChanged) MarshalJSON() ([]byte, error)

type ChatEventAction

type ChatEventAction interface {
	ChatEventActionType() string
}

Represents a chat event

func UnmarshalChatEventAction

func UnmarshalChatEventAction(data json.RawMessage) (ChatEventAction, error)

func UnmarshalListOfChatEventAction added in v0.3.2

func UnmarshalListOfChatEventAction(dataList []json.RawMessage) ([]ChatEventAction, error)

type ChatEventActiveUsernamesChanged added in v0.7.0

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 v0.7.0

func UnmarshalChatEventActiveUsernamesChanged(data json.RawMessage) (*ChatEventActiveUsernamesChanged, error)

func (*ChatEventActiveUsernamesChanged) ChatEventActionType added in v0.7.0

func (*ChatEventActiveUsernamesChanged) ChatEventActionType() string

func (*ChatEventActiveUsernamesChanged) GetClass added in v0.7.0

func (*ChatEventActiveUsernamesChanged) GetType added in v0.7.0

func (*ChatEventActiveUsernamesChanged) MarshalJSON added in v0.7.0

func (entity *ChatEventActiveUsernamesChanged) MarshalJSON() ([]byte, error)

type ChatEventAvailableReactionsChanged added in v0.7.0

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 v0.7.0

func UnmarshalChatEventAvailableReactionsChanged(data json.RawMessage) (*ChatEventAvailableReactionsChanged, error)

func (*ChatEventAvailableReactionsChanged) ChatEventActionType added in v0.7.0

func (*ChatEventAvailableReactionsChanged) ChatEventActionType() string

func (*ChatEventAvailableReactionsChanged) GetClass added in v0.7.0

func (*ChatEventAvailableReactionsChanged) GetType added in v0.7.0

func (*ChatEventAvailableReactionsChanged) MarshalJSON added in v0.7.0

func (entity *ChatEventAvailableReactionsChanged) MarshalJSON() ([]byte, error)

func (*ChatEventAvailableReactionsChanged) UnmarshalJSON added in v0.7.0

func (chatEventAvailableReactionsChanged *ChatEventAvailableReactionsChanged) UnmarshalJSON(data []byte) error

type ChatEventBackgroundChanged added in v0.7.2

type ChatEventBackgroundChanged struct {

	// Previous background; may be null if none
	OldBackground *ChatBackground `json:"old_background"`
	// New background; may be null if none
	NewBackground *ChatBackground `json:"new_background"`
	// contains filtered or unexported fields
}

The chat background was changed

func UnmarshalChatEventBackgroundChanged added in v0.7.2

func UnmarshalChatEventBackgroundChanged(data json.RawMessage) (*ChatEventBackgroundChanged, error)

func (*ChatEventBackgroundChanged) ChatEventActionType added in v0.7.2

func (*ChatEventBackgroundChanged) ChatEventActionType() string

func (*ChatEventBackgroundChanged) GetClass added in v0.7.2

func (*ChatEventBackgroundChanged) GetClass() string

func (*ChatEventBackgroundChanged) GetType added in v0.7.2

func (*ChatEventBackgroundChanged) MarshalJSON added in v0.7.2

func (entity *ChatEventBackgroundChanged) MarshalJSON() ([]byte, error)

type ChatEventCustomEmojiStickerSetChanged added in v0.7.2

type ChatEventCustomEmojiStickerSetChanged 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 with allowed custom emoji was changed

func UnmarshalChatEventCustomEmojiStickerSetChanged added in v0.7.2

func UnmarshalChatEventCustomEmojiStickerSetChanged(data json.RawMessage) (*ChatEventCustomEmojiStickerSetChanged, error)

func (*ChatEventCustomEmojiStickerSetChanged) ChatEventActionType added in v0.7.2

func (*ChatEventCustomEmojiStickerSetChanged) ChatEventActionType() string

func (*ChatEventCustomEmojiStickerSetChanged) GetClass added in v0.7.2

func (*ChatEventCustomEmojiStickerSetChanged) GetType added in v0.7.2

func (*ChatEventCustomEmojiStickerSetChanged) MarshalJSON added in v0.7.2

func (entity *ChatEventCustomEmojiStickerSetChanged) MarshalJSON() ([]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) MarshalJSON

func (entity *ChatEventDescriptionChanged) MarshalJSON() ([]byte, error)

type ChatEventEmojiStatusChanged added in v0.7.2

type ChatEventEmojiStatusChanged struct {

	// Previous emoji status; may be null if none
	OldEmojiStatus *EmojiStatus `json:"old_emoji_status"`
	// New emoji status; may be null if none
	NewEmojiStatus *EmojiStatus `json:"new_emoji_status"`
	// contains filtered or unexported fields
}

The chat emoji status was changed

func UnmarshalChatEventEmojiStatusChanged added in v0.7.2

func UnmarshalChatEventEmojiStatusChanged(data json.RawMessage) (*ChatEventEmojiStatusChanged, error)

func (*ChatEventEmojiStatusChanged) ChatEventActionType added in v0.7.2

func (*ChatEventEmojiStatusChanged) ChatEventActionType() string

func (*ChatEventEmojiStatusChanged) GetClass added in v0.7.2

func (*ChatEventEmojiStatusChanged) GetClass() string

func (*ChatEventEmojiStatusChanged) GetType added in v0.7.2

func (*ChatEventEmojiStatusChanged) MarshalJSON added in v0.7.2

func (entity *ChatEventEmojiStatusChanged) MarshalJSON() ([]byte, error)

type ChatEventForumTopicCreated added in v0.7.0

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 v0.7.0

func UnmarshalChatEventForumTopicCreated(data json.RawMessage) (*ChatEventForumTopicCreated, error)

func (*ChatEventForumTopicCreated) ChatEventActionType added in v0.7.0

func (*ChatEventForumTopicCreated) ChatEventActionType() string

func (*ChatEventForumTopicCreated) GetClass added in v0.7.0

func (*ChatEventForumTopicCreated) GetClass() string

func (*ChatEventForumTopicCreated) GetType added in v0.7.0

func (*ChatEventForumTopicCreated) MarshalJSON added in v0.7.0

func (entity *ChatEventForumTopicCreated) MarshalJSON() ([]byte, error)

type ChatEventForumTopicDeleted added in v0.7.0

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 v0.7.0

func UnmarshalChatEventForumTopicDeleted(data json.RawMessage) (*ChatEventForumTopicDeleted, error)

func (*ChatEventForumTopicDeleted) ChatEventActionType added in v0.7.0

func (*ChatEventForumTopicDeleted) ChatEventActionType() string

func (*ChatEventForumTopicDeleted) GetClass added in v0.7.0

func (*ChatEventForumTopicDeleted) GetClass() string

func (*ChatEventForumTopicDeleted) GetType added in v0.7.0

func (*ChatEventForumTopicDeleted) MarshalJSON added in v0.7.0

func (entity *ChatEventForumTopicDeleted) MarshalJSON() ([]byte, error)

type ChatEventForumTopicEdited added in v0.7.0

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 v0.7.0

func UnmarshalChatEventForumTopicEdited(data json.RawMessage) (*ChatEventForumTopicEdited, error)

func (*ChatEventForumTopicEdited) ChatEventActionType added in v0.7.0

func (*ChatEventForumTopicEdited) ChatEventActionType() string

func (*ChatEventForumTopicEdited) GetClass added in v0.7.0

func (*ChatEventForumTopicEdited) GetClass() string

func (*ChatEventForumTopicEdited) GetType added in v0.7.0

func (*ChatEventForumTopicEdited) GetType() string

func (*ChatEventForumTopicEdited) MarshalJSON added in v0.7.0

func (entity *ChatEventForumTopicEdited) MarshalJSON() ([]byte, error)

type ChatEventForumTopicPinned added in v0.7.0

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 v0.7.0

func UnmarshalChatEventForumTopicPinned(data json.RawMessage) (*ChatEventForumTopicPinned, error)

func (*ChatEventForumTopicPinned) ChatEventActionType added in v0.7.0

func (*ChatEventForumTopicPinned) ChatEventActionType() string

func (*ChatEventForumTopicPinned) GetClass added in v0.7.0

func (*ChatEventForumTopicPinned) GetClass() string

func (*ChatEventForumTopicPinned) GetType added in v0.7.0

func (*ChatEventForumTopicPinned) GetType() string

func (*ChatEventForumTopicPinned) MarshalJSON added in v0.7.0

func (entity *ChatEventForumTopicPinned) MarshalJSON() ([]byte, error)

type ChatEventForumTopicToggleIsClosed added in v0.7.0

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 v0.7.0

func UnmarshalChatEventForumTopicToggleIsClosed(data json.RawMessage) (*ChatEventForumTopicToggleIsClosed, error)

func (*ChatEventForumTopicToggleIsClosed) ChatEventActionType added in v0.7.0

func (*ChatEventForumTopicToggleIsClosed) ChatEventActionType() string

func (*ChatEventForumTopicToggleIsClosed) GetClass added in v0.7.0

func (*ChatEventForumTopicToggleIsClosed) GetType added in v0.7.0

func (*ChatEventForumTopicToggleIsClosed) MarshalJSON added in v0.7.0

func (entity *ChatEventForumTopicToggleIsClosed) MarshalJSON() ([]byte, error)

type ChatEventForumTopicToggleIsHidden added in v0.7.0

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 v0.7.0

func UnmarshalChatEventForumTopicToggleIsHidden(data json.RawMessage) (*ChatEventForumTopicToggleIsHidden, error)

func (*ChatEventForumTopicToggleIsHidden) ChatEventActionType added in v0.7.0

func (*ChatEventForumTopicToggleIsHidden) ChatEventActionType() string

func (*ChatEventForumTopicToggleIsHidden) GetClass added in v0.7.0

func (*ChatEventForumTopicToggleIsHidden) GetType added in v0.7.0

func (*ChatEventForumTopicToggleIsHidden) MarshalJSON added in v0.7.0

func (entity *ChatEventForumTopicToggleIsHidden) MarshalJSON() ([]byte, error)

type ChatEventHasAggressiveAntiSpamEnabledToggled added in v0.7.0

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 v0.7.0

func UnmarshalChatEventHasAggressiveAntiSpamEnabledToggled(data json.RawMessage) (*ChatEventHasAggressiveAntiSpamEnabledToggled, error)

func (*ChatEventHasAggressiveAntiSpamEnabledToggled) ChatEventActionType added in v0.7.0

func (*ChatEventHasAggressiveAntiSpamEnabledToggled) GetClass added in v0.7.0

func (*ChatEventHasAggressiveAntiSpamEnabledToggled) GetType added in v0.7.0

func (*ChatEventHasAggressiveAntiSpamEnabledToggled) MarshalJSON added in v0.7.0

func (entity *ChatEventHasAggressiveAntiSpamEnabledToggled) MarshalJSON() ([]byte, error)

type ChatEventHasProtectedContentToggled added in v0.5.0

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 added in v0.5.0

func UnmarshalChatEventHasProtectedContentToggled(data json.RawMessage) (*ChatEventHasProtectedContentToggled, error)

func (*ChatEventHasProtectedContentToggled) ChatEventActionType added in v0.5.0

func (*ChatEventHasProtectedContentToggled) ChatEventActionType() string

func (*ChatEventHasProtectedContentToggled) GetClass added in v0.5.0

func (*ChatEventHasProtectedContentToggled) GetType added in v0.5.0

func (*ChatEventHasProtectedContentToggled) MarshalJSON added in v0.5.0

func (entity *ChatEventHasProtectedContentToggled) MarshalJSON() ([]byte, error)

type ChatEventInviteLinkDeleted added in v0.5.0

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 added in v0.5.0

func UnmarshalChatEventInviteLinkDeleted(data json.RawMessage) (*ChatEventInviteLinkDeleted, error)

func (*ChatEventInviteLinkDeleted) ChatEventActionType added in v0.5.0

func (*ChatEventInviteLinkDeleted) ChatEventActionType() string

func (*ChatEventInviteLinkDeleted) GetClass added in v0.5.0

func (*ChatEventInviteLinkDeleted) GetClass() string

func (*ChatEventInviteLinkDeleted) GetType added in v0.5.0

func (*ChatEventInviteLinkDeleted) MarshalJSON added in v0.5.0

func (entity *ChatEventInviteLinkDeleted) MarshalJSON() ([]byte, error)

type ChatEventInviteLinkEdited added in v0.5.0

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 added in v0.5.0

func UnmarshalChatEventInviteLinkEdited(data json.RawMessage) (*ChatEventInviteLinkEdited, error)

func (*ChatEventInviteLinkEdited) ChatEventActionType added in v0.5.0

func (*ChatEventInviteLinkEdited) ChatEventActionType() string

func (*ChatEventInviteLinkEdited) GetClass added in v0.5.0

func (*ChatEventInviteLinkEdited) GetClass() string

func (*ChatEventInviteLinkEdited) GetType added in v0.5.0

func (*ChatEventInviteLinkEdited) GetType() string

func (*ChatEventInviteLinkEdited) MarshalJSON added in v0.5.0

func (entity *ChatEventInviteLinkEdited) MarshalJSON() ([]byte, error)

type ChatEventInviteLinkRevoked added in v0.5.0

type ChatEventInviteLinkRevoked struct {

	// The invite link
	InviteLink *ChatInviteLink `json:"invite_link"`
	// contains filtered or unexported fields
}

A chat invite link was revoked

func UnmarshalChatEventInviteLinkRevoked added in v0.5.0

func UnmarshalChatEventInviteLinkRevoked(data json.RawMessage) (*ChatEventInviteLinkRevoked, error)

func (*ChatEventInviteLinkRevoked) ChatEventActionType added in v0.5.0

func (*ChatEventInviteLinkRevoked) ChatEventActionType() string

func (*ChatEventInviteLinkRevoked) GetClass added in v0.5.0

func (*ChatEventInviteLinkRevoked) GetClass() string

func (*ChatEventInviteLinkRevoked) GetType added in v0.5.0

func (*ChatEventInviteLinkRevoked) MarshalJSON added in v0.5.0

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) GetType

func (*ChatEventIsAllHistoryAvailableToggled) MarshalJSON

func (entity *ChatEventIsAllHistoryAvailableToggled) MarshalJSON() ([]byte, error)

type ChatEventIsForumToggled added in v0.7.0

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 v0.7.0

func UnmarshalChatEventIsForumToggled(data json.RawMessage) (*ChatEventIsForumToggled, error)

func (*ChatEventIsForumToggled) ChatEventActionType added in v0.7.0

func (*ChatEventIsForumToggled) ChatEventActionType() string

func (*ChatEventIsForumToggled) GetClass added in v0.7.0

func (*ChatEventIsForumToggled) GetClass() string

func (*ChatEventIsForumToggled) GetType added in v0.7.0

func (*ChatEventIsForumToggled) GetType() string

func (*ChatEventIsForumToggled) MarshalJSON added in v0.7.0

func (entity *ChatEventIsForumToggled) MarshalJSON() ([]byte, error)

type ChatEventLinkedChatChanged added in v0.2.0

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 added in v0.2.0

func UnmarshalChatEventLinkedChatChanged(data json.RawMessage) (*ChatEventLinkedChatChanged, error)

func (*ChatEventLinkedChatChanged) ChatEventActionType added in v0.2.0

func (*ChatEventLinkedChatChanged) ChatEventActionType() string

func (*ChatEventLinkedChatChanged) GetClass added in v0.2.0

func (*ChatEventLinkedChatChanged) GetClass() string

func (*ChatEventLinkedChatChanged) GetType added in v0.2.0

func (*ChatEventLinkedChatChanged) MarshalJSON added in v0.2.0

func (entity *ChatEventLinkedChatChanged) MarshalJSON() ([]byte, error)

type ChatEventLocationChanged added in v0.2.0

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 added in v0.2.0

func UnmarshalChatEventLocationChanged(data json.RawMessage) (*ChatEventLocationChanged, error)

func (*ChatEventLocationChanged) ChatEventActionType added in v0.2.0

func (*ChatEventLocationChanged) ChatEventActionType() string

func (*ChatEventLocationChanged) GetClass added in v0.2.0

func (*ChatEventLocationChanged) GetClass() string

func (*ChatEventLocationChanged) GetType added in v0.2.0

func (*ChatEventLocationChanged) GetType() string

func (*ChatEventLocationChanged) MarshalJSON added in v0.2.0

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"`
	// True, if subscription extensions need to be returned
	SubscriptionExtensions bool `json:"subscription_extensions"`
	// 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 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(data json.RawMessage) (*ChatEventMemberJoinedByInviteLink, error)

func (*ChatEventMemberJoinedByInviteLink) ChatEventActionType added in v0.5.0

func (*ChatEventMemberJoinedByInviteLink) ChatEventActionType() string

func (*ChatEventMemberJoinedByInviteLink) GetClass added in v0.5.0

func (*ChatEventMemberJoinedByInviteLink) GetType added in v0.5.0

func (*ChatEventMemberJoinedByInviteLink) MarshalJSON added in v0.5.0

func (entity *ChatEventMemberJoinedByInviteLink) MarshalJSON() ([]byte, error)

type ChatEventMemberJoinedByRequest added in v0.5.0

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 added in v0.5.0

func UnmarshalChatEventMemberJoinedByRequest(data json.RawMessage) (*ChatEventMemberJoinedByRequest, error)

func (*ChatEventMemberJoinedByRequest) ChatEventActionType added in v0.5.0

func (*ChatEventMemberJoinedByRequest) ChatEventActionType() string

func (*ChatEventMemberJoinedByRequest) GetClass added in v0.5.0

func (*ChatEventMemberJoinedByRequest) GetType added in v0.5.0

func (*ChatEventMemberJoinedByRequest) MarshalJSON added in v0.5.0

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 ChatEventMemberSubscriptionExtended added in v0.7.3

type ChatEventMemberSubscriptionExtended 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 extended their subscription to the chat

func UnmarshalChatEventMemberSubscriptionExtended added in v0.7.3

func UnmarshalChatEventMemberSubscriptionExtended(data json.RawMessage) (*ChatEventMemberSubscriptionExtended, error)

func (*ChatEventMemberSubscriptionExtended) ChatEventActionType added in v0.7.3

func (*ChatEventMemberSubscriptionExtended) ChatEventActionType() string

func (*ChatEventMemberSubscriptionExtended) GetClass added in v0.7.3

func (*ChatEventMemberSubscriptionExtended) GetType added in v0.7.3

func (*ChatEventMemberSubscriptionExtended) MarshalJSON added in v0.7.3

func (entity *ChatEventMemberSubscriptionExtended) MarshalJSON() ([]byte, error)

func (*ChatEventMemberSubscriptionExtended) UnmarshalJSON added in v0.7.3

func (chatEventMemberSubscriptionExtended *ChatEventMemberSubscriptionExtended) UnmarshalJSON(data []byte) error

type ChatEventMessageAutoDeleteTimeChanged added in v0.7.0

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 v0.7.0

func UnmarshalChatEventMessageAutoDeleteTimeChanged(data json.RawMessage) (*ChatEventMessageAutoDeleteTimeChanged, error)

func (*ChatEventMessageAutoDeleteTimeChanged) ChatEventActionType added in v0.7.0

func (*ChatEventMessageAutoDeleteTimeChanged) ChatEventActionType() string

func (*ChatEventMessageAutoDeleteTimeChanged) GetClass added in v0.7.0

func (*ChatEventMessageAutoDeleteTimeChanged) GetType added in v0.7.0

func (*ChatEventMessageAutoDeleteTimeChanged) MarshalJSON added in v0.7.0

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 added in v0.1.0

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 were changed

func UnmarshalChatEventPermissionsChanged added in v0.1.0

func UnmarshalChatEventPermissionsChanged(data json.RawMessage) (*ChatEventPermissionsChanged, error)

func (*ChatEventPermissionsChanged) ChatEventActionType added in v0.1.0

func (*ChatEventPermissionsChanged) ChatEventActionType() string

func (*ChatEventPermissionsChanged) GetClass added in v0.1.0

func (*ChatEventPermissionsChanged) GetClass() string

func (*ChatEventPermissionsChanged) GetType added in v0.1.0

func (*ChatEventPermissionsChanged) MarshalJSON added in v0.1.0

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 added in v0.1.0

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 added in v0.1.0

func UnmarshalChatEventPollStopped(data json.RawMessage) (*ChatEventPollStopped, error)

func (*ChatEventPollStopped) ChatEventActionType added in v0.1.0

func (*ChatEventPollStopped) ChatEventActionType() string

func (*ChatEventPollStopped) GetClass added in v0.1.0

func (*ChatEventPollStopped) GetClass() string

func (*ChatEventPollStopped) GetType added in v0.1.0

func (*ChatEventPollStopped) GetType() string

func (*ChatEventPollStopped) MarshalJSON added in v0.1.0

func (entity *ChatEventPollStopped) MarshalJSON() ([]byte, error)

type ChatEventProfileAccentColorChanged added in v0.7.2

type ChatEventProfileAccentColorChanged struct {

	// Previous identifier of chat's profile accent color; -1 if none
	OldProfileAccentColorId int32 `json:"old_profile_accent_color_id"`
	// Previous identifier of the custom emoji; 0 if none
	OldProfileBackgroundCustomEmojiId JsonInt64 `json:"old_profile_background_custom_emoji_id"`
	// New identifier of chat's profile accent color; -1 if none
	NewProfileAccentColorId int32 `json:"new_profile_accent_color_id"`
	// New identifier of the custom emoji; 0 if none
	NewProfileBackgroundCustomEmojiId JsonInt64 `json:"new_profile_background_custom_emoji_id"`
	// contains filtered or unexported fields
}

The chat's profile accent color or profile background custom emoji were changed

func UnmarshalChatEventProfileAccentColorChanged added in v0.7.2

func UnmarshalChatEventProfileAccentColorChanged(data json.RawMessage) (*ChatEventProfileAccentColorChanged, error)

func (*ChatEventProfileAccentColorChanged) ChatEventActionType added in v0.7.2

func (*ChatEventProfileAccentColorChanged) ChatEventActionType() string

func (*ChatEventProfileAccentColorChanged) GetClass added in v0.7.2

func (*ChatEventProfileAccentColorChanged) GetType added in v0.7.2

func (*ChatEventProfileAccentColorChanged) MarshalJSON added in v0.7.2

func (entity *ChatEventProfileAccentColorChanged) MarshalJSON() ([]byte, error)

type ChatEventShowMessageSenderToggled added in v0.7.3

type ChatEventShowMessageSenderToggled struct {

	// New value of show_message_sender
	ShowMessageSender bool `json:"show_message_sender"`
	// contains filtered or unexported fields
}

The show_message_sender setting of a channel was toggled

func UnmarshalChatEventShowMessageSenderToggled added in v0.7.3

func UnmarshalChatEventShowMessageSenderToggled(data json.RawMessage) (*ChatEventShowMessageSenderToggled, error)

func (*ChatEventShowMessageSenderToggled) ChatEventActionType added in v0.7.3

func (*ChatEventShowMessageSenderToggled) ChatEventActionType() string

func (*ChatEventShowMessageSenderToggled) GetClass added in v0.7.3

func (*ChatEventShowMessageSenderToggled) GetType added in v0.7.3

func (*ChatEventShowMessageSenderToggled) MarshalJSON added in v0.7.3

func (entity *ChatEventShowMessageSenderToggled) 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) GetType

func (*ChatEventSignMessagesToggled) MarshalJSON

func (entity *ChatEventSignMessagesToggled) MarshalJSON() ([]byte, error)

type ChatEventSlowModeDelayChanged added in v0.2.0

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 added in v0.2.0

func UnmarshalChatEventSlowModeDelayChanged(data json.RawMessage) (*ChatEventSlowModeDelayChanged, error)

func (*ChatEventSlowModeDelayChanged) ChatEventActionType added in v0.2.0

func (*ChatEventSlowModeDelayChanged) ChatEventActionType() string

func (*ChatEventSlowModeDelayChanged) GetClass added in v0.2.0

func (*ChatEventSlowModeDelayChanged) GetType added in v0.2.0

func (*ChatEventSlowModeDelayChanged) MarshalJSON added in v0.2.0

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) 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 added in v0.5.0

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 added in v0.5.0

func UnmarshalChatEventVideoChatCreated(data json.RawMessage) (*ChatEventVideoChatCreated, error)

func (*ChatEventVideoChatCreated) ChatEventActionType added in v0.5.0

func (*ChatEventVideoChatCreated) ChatEventActionType() string

func (*ChatEventVideoChatCreated) GetClass added in v0.5.0

func (*ChatEventVideoChatCreated) GetClass() string

func (*ChatEventVideoChatCreated) GetType added in v0.5.0

func (*ChatEventVideoChatCreated) GetType() string

func (*ChatEventVideoChatCreated) MarshalJSON added in v0.5.0

func (entity *ChatEventVideoChatCreated) MarshalJSON() ([]byte, error)

type ChatEventVideoChatEnded added in v0.5.0

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 added in v0.5.0

func UnmarshalChatEventVideoChatEnded(data json.RawMessage) (*ChatEventVideoChatEnded, error)

func (*ChatEventVideoChatEnded) ChatEventActionType added in v0.5.0

func (*ChatEventVideoChatEnded) ChatEventActionType() string

func (*ChatEventVideoChatEnded) GetClass added in v0.5.0

func (*ChatEventVideoChatEnded) GetClass() string

func (*ChatEventVideoChatEnded) GetType added in v0.5.0

func (*ChatEventVideoChatEnded) GetType() string

func (*ChatEventVideoChatEnded) MarshalJSON added in v0.5.0

func (entity *ChatEventVideoChatEnded) MarshalJSON() ([]byte, error)

type ChatEventVideoChatMuteNewParticipantsToggled added in v0.5.0

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 added in v0.5.0

func UnmarshalChatEventVideoChatMuteNewParticipantsToggled(data json.RawMessage) (*ChatEventVideoChatMuteNewParticipantsToggled, error)

func (*ChatEventVideoChatMuteNewParticipantsToggled) ChatEventActionType added in v0.5.0

func (*ChatEventVideoChatMuteNewParticipantsToggled) GetClass added in v0.5.0

func (*ChatEventVideoChatMuteNewParticipantsToggled) GetType added in v0.5.0

func (*ChatEventVideoChatMuteNewParticipantsToggled) MarshalJSON added in v0.5.0

func (entity *ChatEventVideoChatMuteNewParticipantsToggled) MarshalJSON() ([]byte, error)

type ChatEventVideoChatParticipantIsMutedToggled added in v0.5.0

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 added in v0.5.0

func UnmarshalChatEventVideoChatParticipantIsMutedToggled(data json.RawMessage) (*ChatEventVideoChatParticipantIsMutedToggled, error)

func (*ChatEventVideoChatParticipantIsMutedToggled) ChatEventActionType added in v0.5.0

func (*ChatEventVideoChatParticipantIsMutedToggled) ChatEventActionType() string

func (*ChatEventVideoChatParticipantIsMutedToggled) GetClass added in v0.5.0

func (*ChatEventVideoChatParticipantIsMutedToggled) GetType added in v0.5.0

func (*ChatEventVideoChatParticipantIsMutedToggled) MarshalJSON added in v0.5.0

func (entity *ChatEventVideoChatParticipantIsMutedToggled) MarshalJSON() ([]byte, error)

func (*ChatEventVideoChatParticipantIsMutedToggled) UnmarshalJSON added in v0.5.0

func (chatEventVideoChatParticipantIsMutedToggled *ChatEventVideoChatParticipantIsMutedToggled) UnmarshalJSON(data []byte) error

type ChatEventVideoChatParticipantVolumeLevelChanged added in v0.5.0

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 added in v0.5.0

func UnmarshalChatEventVideoChatParticipantVolumeLevelChanged(data json.RawMessage) (*ChatEventVideoChatParticipantVolumeLevelChanged, error)

func (*ChatEventVideoChatParticipantVolumeLevelChanged) ChatEventActionType added in v0.5.0

func (*ChatEventVideoChatParticipantVolumeLevelChanged) GetClass added in v0.5.0

func (*ChatEventVideoChatParticipantVolumeLevelChanged) GetType added in v0.5.0

func (*ChatEventVideoChatParticipantVolumeLevelChanged) MarshalJSON added in v0.5.0

func (entity *ChatEventVideoChatParticipantVolumeLevelChanged) MarshalJSON() ([]byte, error)

func (*ChatEventVideoChatParticipantVolumeLevelChanged) UnmarshalJSON added in v0.5.0

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 v0.7.0

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"`
	// The identifier of the chosen color for the chat folder icon; from -1 to 6. If -1, then color is disabled. Can't be changed if folder tags are disabled or the current user doesn't have Telegram Premium subscription
	ColorId int32 `json:"color_id"`
	// True, if at least one link has been created for the folder
	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 v0.7.0

func UnmarshalChatFolder(data json.RawMessage) (*ChatFolder, error)

func (*ChatFolder) GetClass added in v0.7.0

func (*ChatFolder) GetClass() string

func (*ChatFolder) GetType added in v0.7.0

func (*ChatFolder) GetType() string

func (*ChatFolder) MarshalJSON added in v0.7.0

func (entity *ChatFolder) MarshalJSON() ([]byte, error)

type ChatFolderIcon added in v0.7.0

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 v0.7.0

func GetChatFolderDefaultIconName(req *GetChatFolderDefaultIconNameRequest) (*ChatFolderIcon, error)

Returns default icon name for a folder. Can be called synchronously

func UnmarshalChatFolderIcon added in v0.7.0

func UnmarshalChatFolderIcon(data json.RawMessage) (*ChatFolderIcon, error)

func (*ChatFolderIcon) GetClass added in v0.7.0

func (*ChatFolderIcon) GetClass() string

func (*ChatFolderIcon) GetType added in v0.7.0

func (*ChatFolderIcon) GetType() string

func (*ChatFolderIcon) MarshalJSON added in v0.7.0

func (entity *ChatFolderIcon) MarshalJSON() ([]byte, error)

type ChatFolderInfo added in v0.7.0

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"`
	// The identifier of the chosen color for the chat folder icon; from -1 to 6. If -1, then color is disabled
	ColorId int32 `json:"color_id"`
	// True, if at least one link has been created for the folder
	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 v0.7.0

func UnmarshalChatFolderInfo(data json.RawMessage) (*ChatFolderInfo, error)

func (*ChatFolderInfo) GetClass added in v0.7.0

func (*ChatFolderInfo) GetClass() string

func (*ChatFolderInfo) GetType added in v0.7.0

func (*ChatFolderInfo) GetType() string

func (*ChatFolderInfo) MarshalJSON added in v0.7.0

func (entity *ChatFolderInfo) MarshalJSON() ([]byte, error)
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(data json.RawMessage) (*ChatFolderInviteLink, error)

func (*ChatFolderInviteLink) GetClass added in v0.7.0

func (*ChatFolderInviteLink) GetClass() string

func (*ChatFolderInviteLink) GetType added in v0.7.0

func (*ChatFolderInviteLink) GetType() string

func (*ChatFolderInviteLink) MarshalJSON added in v0.7.0

func (entity *ChatFolderInviteLink) MarshalJSON() ([]byte, error)

type ChatFolderInviteLinkInfo added in v0.7.0

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 v0.7.0

func UnmarshalChatFolderInviteLinkInfo(data json.RawMessage) (*ChatFolderInviteLinkInfo, error)

func (*ChatFolderInviteLinkInfo) GetClass added in v0.7.0

func (*ChatFolderInviteLinkInfo) GetClass() string

func (*ChatFolderInviteLinkInfo) GetType added in v0.7.0

func (*ChatFolderInviteLinkInfo) GetType() string

func (*ChatFolderInviteLinkInfo) MarshalJSON added in v0.7.0

func (entity *ChatFolderInviteLinkInfo) MarshalJSON() ([]byte, error)
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(data json.RawMessage) (*ChatFolderInviteLinks, error)

func (*ChatFolderInviteLinks) GetClass added in v0.7.0

func (*ChatFolderInviteLinks) GetClass() string

func (*ChatFolderInviteLinks) GetType added in v0.7.0

func (*ChatFolderInviteLinks) GetType() string

func (*ChatFolderInviteLinks) MarshalJSON added in v0.7.0

func (entity *ChatFolderInviteLinks) MarshalJSON() ([]byte, error)
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"`
	// Information about subscription plan that is applied to the users joining the chat by the link; may be null if the link doesn't require subscription
	SubscriptionPricing *StarSubscriptionPricing `json:"subscription_pricing"`
	// 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 chat members, which joined the chat using the link, but have already left because of expired subscription; for subscription links only
	ExpiredMemberCount int32 `json:"expired_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(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 added in v0.5.0

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 added in v0.5.0

func UnmarshalChatInviteLinkCount(data json.RawMessage) (*ChatInviteLinkCount, error)

func (*ChatInviteLinkCount) GetClass added in v0.5.0

func (*ChatInviteLinkCount) GetClass() string

func (*ChatInviteLinkCount) GetType added in v0.5.0

func (*ChatInviteLinkCount) GetType() string

func (*ChatInviteLinkCount) MarshalJSON added in v0.5.0

func (entity *ChatInviteLinkCount) MarshalJSON() ([]byte, error)

type ChatInviteLinkCounts added in v0.5.0

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 added in v0.5.0

func UnmarshalChatInviteLinkCounts(data json.RawMessage) (*ChatInviteLinkCounts, error)

func (*ChatInviteLinkCounts) GetClass added in v0.5.0

func (*ChatInviteLinkCounts) GetClass() string

func (*ChatInviteLinkCounts) GetType added in v0.5.0

func (*ChatInviteLinkCounts) GetType() string

func (*ChatInviteLinkCounts) MarshalJSON added in v0.5.0

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"`
	// Identifier of the accent color for chat title and background of chat photo
	AccentColorId int32 `json:"accent_color_id"`
	// 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"`
	// Information about subscription plan that must be paid by the user to use the link; may be null if the link doesn't require subscription
	SubscriptionInfo *ChatInviteLinkSubscriptionInfo `json:"subscription_info"`
	// 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 added in v0.5.0

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 added in v0.5.0

func UnmarshalChatInviteLinkMember(data json.RawMessage) (*ChatInviteLinkMember, error)

func (*ChatInviteLinkMember) GetClass added in v0.5.0

func (*ChatInviteLinkMember) GetClass() string

func (*ChatInviteLinkMember) GetType added in v0.5.0

func (*ChatInviteLinkMember) GetType() string

func (*ChatInviteLinkMember) MarshalJSON added in v0.5.0

func (entity *ChatInviteLinkMember) MarshalJSON() ([]byte, error)

type ChatInviteLinkMembers added in v0.5.0

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 added in v0.5.0

func UnmarshalChatInviteLinkMembers(data json.RawMessage) (*ChatInviteLinkMembers, error)

func (*ChatInviteLinkMembers) GetClass added in v0.5.0

func (*ChatInviteLinkMembers) GetClass() string

func (*ChatInviteLinkMembers) GetType added in v0.5.0

func (*ChatInviteLinkMembers) GetType() string

func (*ChatInviteLinkMembers) MarshalJSON added in v0.5.0

func (entity *ChatInviteLinkMembers) MarshalJSON() ([]byte, error)

type ChatInviteLinkSubscriptionInfo added in v0.7.3

type ChatInviteLinkSubscriptionInfo struct {

	// Information about subscription plan that must be paid by the user to use the link
	Pricing *StarSubscriptionPricing `json:"pricing"`
	// True, if the user has already paid for the subscription and can use joinChatByInviteLink to join the subscribed chat again
	CanReuse bool `json:"can_reuse"`
	// Identifier of the payment form to use for subscription payment; 0 if the subscription can't be paid
	FormId JsonInt64 `json:"form_id"`
	// contains filtered or unexported fields
}

Contains information about subscription plan that must be paid by the user to use a chat invite link

func UnmarshalChatInviteLinkSubscriptionInfo added in v0.7.3

func UnmarshalChatInviteLinkSubscriptionInfo(data json.RawMessage) (*ChatInviteLinkSubscriptionInfo, error)

func (*ChatInviteLinkSubscriptionInfo) GetClass added in v0.7.3

func (*ChatInviteLinkSubscriptionInfo) GetType added in v0.7.3

func (*ChatInviteLinkSubscriptionInfo) MarshalJSON added in v0.7.3

func (entity *ChatInviteLinkSubscriptionInfo) MarshalJSON() ([]byte, error)
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(data json.RawMessage) (*ChatInviteLinks, error)

func (*ChatInviteLinks) GetClass added in v0.5.0

func (*ChatInviteLinks) GetClass() string

func (*ChatInviteLinks) GetType added in v0.5.0

func (*ChatInviteLinks) GetType() string

func (*ChatInviteLinks) MarshalJSON added in v0.5.0

func (entity *ChatInviteLinks) MarshalJSON() ([]byte, error)

type ChatJoinRequest added in v0.5.0

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 added in v0.5.0

func UnmarshalChatJoinRequest(data json.RawMessage) (*ChatJoinRequest, error)

func (*ChatJoinRequest) GetClass added in v0.5.0

func (*ChatJoinRequest) GetClass() string

func (*ChatJoinRequest) GetType added in v0.5.0

func (*ChatJoinRequest) GetType() string

func (*ChatJoinRequest) MarshalJSON added in v0.5.0

func (entity *ChatJoinRequest) MarshalJSON() ([]byte, error)

type ChatJoinRequests added in v0.5.0

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 added in v0.5.0

func UnmarshalChatJoinRequests(data json.RawMessage) (*ChatJoinRequests, error)

func (*ChatJoinRequests) GetClass added in v0.5.0

func (*ChatJoinRequests) GetClass() string

func (*ChatJoinRequests) GetType added in v0.5.0

func (*ChatJoinRequests) GetType() string

func (*ChatJoinRequests) MarshalJSON added in v0.5.0

func (entity *ChatJoinRequests) MarshalJSON() ([]byte, error)

type ChatJoinRequestsInfo added in v0.5.0

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 added in v0.5.0

func UnmarshalChatJoinRequestsInfo(data json.RawMessage) (*ChatJoinRequestsInfo, error)

func (*ChatJoinRequestsInfo) GetClass added in v0.5.0

func (*ChatJoinRequestsInfo) GetClass() string

func (*ChatJoinRequestsInfo) GetType added in v0.5.0

func (*ChatJoinRequestsInfo) GetType() string

func (*ChatJoinRequestsInfo) MarshalJSON added in v0.5.0

func (entity *ChatJoinRequestsInfo) MarshalJSON() ([]byte, error)

type ChatList added in v0.2.0

type ChatList interface {
	ChatListType() string
}

Describes a list of chats

func UnmarshalChatList added in v0.2.0

func UnmarshalChatList(data json.RawMessage) (ChatList, error)

func UnmarshalListOfChatList added in v0.3.2

func UnmarshalListOfChatList(dataList []json.RawMessage) ([]ChatList, error)

type ChatListArchive added in v0.2.0

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 added in v0.2.0

func UnmarshalChatListArchive(data json.RawMessage) (*ChatListArchive, error)

func (*ChatListArchive) ChatListType added in v0.2.0

func (*ChatListArchive) ChatListType() string

func (*ChatListArchive) GetClass added in v0.2.0

func (*ChatListArchive) GetClass() string

func (*ChatListArchive) GetType added in v0.2.0

func (*ChatListArchive) GetType() string

func (*ChatListArchive) MarshalJSON added in v0.2.0

func (entity *ChatListArchive) MarshalJSON() ([]byte, error)

type ChatListFolder added in v0.7.0

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 v0.7.0

func UnmarshalChatListFolder(data json.RawMessage) (*ChatListFolder, error)

func (*ChatListFolder) ChatListType added in v0.7.0

func (*ChatListFolder) ChatListType() string

func (*ChatListFolder) GetClass added in v0.7.0

func (*ChatListFolder) GetClass() string

func (*ChatListFolder) GetType added in v0.7.0

func (*ChatListFolder) GetType() string

func (*ChatListFolder) MarshalJSON added in v0.7.0

func (entity *ChatListFolder) MarshalJSON() ([]byte, error)

type ChatListMain added in v0.2.0

type ChatListMain struct {
	// contains filtered or unexported fields
}

A main list of chats

func UnmarshalChatListMain added in v0.2.0

func UnmarshalChatListMain(data json.RawMessage) (*ChatListMain, error)

func (*ChatListMain) ChatListType added in v0.2.0

func (*ChatListMain) ChatListType() string

func (*ChatListMain) GetClass added in v0.2.0

func (*ChatListMain) GetClass() string

func (*ChatListMain) GetType added in v0.2.0

func (*ChatListMain) GetType() string

func (*ChatListMain) MarshalJSON added in v0.2.0

func (entity *ChatListMain) MarshalJSON() ([]byte, error)

type ChatLists added in v0.3.0

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 added in v0.3.0

func UnmarshalChatLists(data json.RawMessage) (*ChatLists, error)

func (*ChatLists) GetClass added in v0.3.0

func (*ChatLists) GetClass() string

func (*ChatLists) GetType added in v0.3.0

func (*ChatLists) GetType() string

func (*ChatLists) MarshalJSON added in v0.3.0

func (entity *ChatLists) MarshalJSON() ([]byte, error)

func (*ChatLists) UnmarshalJSON added in v0.3.2

func (chatLists *ChatLists) UnmarshalJSON(data []byte) error

type ChatLocation added in v0.2.0

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 added in v0.2.0

func UnmarshalChatLocation(data json.RawMessage) (*ChatLocation, error)

func (*ChatLocation) GetClass added in v0.2.0

func (*ChatLocation) GetClass() string

func (*ChatLocation) GetType added in v0.2.0

func (*ChatLocation) GetType() string

func (*ChatLocation) MarshalJSON added in v0.2.0

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 added in v0.3.2

func UnmarshalListOfChatMemberStatus(dataList []json.RawMessage) ([]ChatMemberStatus, error)

type ChatMemberStatusAdministrator

type ChatMemberStatusAdministrator struct {

	// A custom title of the administrator; 0-16 characters without emoji; 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) GetType

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 emoji; 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 {

	// Point in time (Unix timestamp) when the user will be removed from the chat because of the expired subscription; 0 if never. Ignored in setChatMemberStatus
	MemberUntilDate int32 `json:"member_until_date"`
	// 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) 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 added in v0.3.2

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) GetType

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 added in v0.1.0

type ChatMembersFilterContacts struct {
	// contains filtered or unexported fields
}

Returns contacts of the user

func UnmarshalChatMembersFilterContacts added in v0.1.0

func UnmarshalChatMembersFilterContacts(data json.RawMessage) (*ChatMembersFilterContacts, error)

func (*ChatMembersFilterContacts) ChatMembersFilterType added in v0.1.0

func (*ChatMembersFilterContacts) ChatMembersFilterType() string

func (*ChatMembersFilterContacts) GetClass added in v0.1.0

func (*ChatMembersFilterContacts) GetClass() string

func (*ChatMembersFilterContacts) GetType added in v0.1.0

func (*ChatMembersFilterContacts) GetType() string

func (*ChatMembersFilterContacts) MarshalJSON added in v0.1.0

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 added in v0.3.0

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 added in v0.3.0

func UnmarshalChatMembersFilterMention(data json.RawMessage) (*ChatMembersFilterMention, error)

func (*ChatMembersFilterMention) ChatMembersFilterType added in v0.3.0

func (*ChatMembersFilterMention) ChatMembersFilterType() string

func (*ChatMembersFilterMention) GetClass added in v0.3.0

func (*ChatMembersFilterMention) GetClass() string

func (*ChatMembersFilterMention) GetType added in v0.3.0

func (*ChatMembersFilterMention) GetType() string

func (*ChatMembersFilterMention) MarshalJSON added in v0.3.0

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) MarshalJSON

func (entity *ChatMembersFilterRestricted) MarshalJSON() ([]byte, error)

type ChatMessageSender added in v0.7.0

type ChatMessageSender struct {

	// The message sender
	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 v0.7.0

func UnmarshalChatMessageSender(data json.RawMessage) (*ChatMessageSender, error)

func (*ChatMessageSender) GetClass added in v0.7.0

func (*ChatMessageSender) GetClass() string

func (*ChatMessageSender) GetType added in v0.7.0

func (*ChatMessageSender) GetType() string

func (*ChatMessageSender) MarshalJSON added in v0.7.0

func (entity *ChatMessageSender) MarshalJSON() ([]byte, error)

func (*ChatMessageSender) UnmarshalJSON added in v0.7.0

func (chatMessageSender *ChatMessageSender) UnmarshalJSON(data []byte) error

type ChatMessageSenders added in v0.7.0

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 v0.7.0

func UnmarshalChatMessageSenders(data json.RawMessage) (*ChatMessageSenders, error)

func (*ChatMessageSenders) GetClass added in v0.7.0

func (*ChatMessageSenders) GetClass() string

func (*ChatMessageSenders) GetType added in v0.7.0

func (*ChatMessageSenders) GetType() string

func (*ChatMessageSenders) MarshalJSON added in v0.7.0

func (entity *ChatMessageSenders) MarshalJSON() ([]byte, error)

type ChatNotificationSettings

type ChatNotificationSettings struct {

	// If true, the value for the relevant type of chat or the forum chat is used instead of mute_for
	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, the value for the relevant type of chat or the forum chat is used instead of show_preview
	UseDefaultShowPreview bool `json:"use_default_show_preview"`
	// True, if message content must be displayed in notifications
	ShowPreview bool `json:"show_preview"`
	// If true, the value for the relevant type of chat is used instead of mute_stories
	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, the value for the relevant type of chat is used instead of show_story_sender
	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, the value for the relevant type of chat or the forum chat is used instead of disable_pinned_message_notifications
	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, the value for the relevant type of chat or the forum chat is used instead of disable_mention_notifications
	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 added in v0.1.0

type ChatPermissions struct {

	// True, if the user can send text messages, contacts, giveaways, giveaway winners, 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 photos
	CanSendPhotos bool `json:"can_send_photos"`
	// True, if the user can send 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 animations, games, stickers, and dice and use inline bots
	CanSendOtherMessages bool `json:"can_send_other_messages"`
	// True, if the user may add a link preview to their messages
	CanAddLinkPreviews bool `json:"can_add_link_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 create topics
	CanCreateTopics bool `json:"can_create_topics"`
	// contains filtered or unexported fields
}

Describes actions that a user is allowed to take in a chat

func UnmarshalChatPermissions added in v0.1.0

func UnmarshalChatPermissions(data json.RawMessage) (*ChatPermissions, error)

func (*ChatPermissions) GetClass added in v0.1.0

func (*ChatPermissions) GetClass() string

func (*ChatPermissions) GetType added in v0.1.0

func (*ChatPermissions) GetType() string

func (*ChatPermissions) MarshalJSON added in v0.1.0

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) GetClass

func (*ChatPhoto) GetClass() string

func (*ChatPhoto) GetType

func (*ChatPhoto) GetType() string

func (*ChatPhoto) MarshalJSON

func (entity *ChatPhoto) MarshalJSON() ([]byte, error)

type ChatPhotoInfo added in v0.3.0

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 added in v0.3.0

func UnmarshalChatPhotoInfo(data json.RawMessage) (*ChatPhotoInfo, error)

func (*ChatPhotoInfo) GetClass added in v0.3.0

func (*ChatPhotoInfo) GetClass() string

func (*ChatPhotoInfo) GetType added in v0.3.0

func (*ChatPhotoInfo) GetType() string

func (*ChatPhotoInfo) MarshalJSON added in v0.3.0

func (entity *ChatPhotoInfo) MarshalJSON() ([]byte, error)

type ChatPhotoSticker added in v0.7.0

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 v0.7.0

func UnmarshalChatPhotoSticker(data json.RawMessage) (*ChatPhotoSticker, error)

func (*ChatPhotoSticker) GetClass added in v0.7.0

func (*ChatPhotoSticker) GetClass() string

func (*ChatPhotoSticker) GetType added in v0.7.0

func (*ChatPhotoSticker) GetType() string

func (*ChatPhotoSticker) MarshalJSON added in v0.7.0

func (entity *ChatPhotoSticker) MarshalJSON() ([]byte, error)

func (*ChatPhotoSticker) UnmarshalJSON added in v0.7.0

func (chatPhotoSticker *ChatPhotoSticker) UnmarshalJSON(data []byte) error

type ChatPhotoStickerType added in v0.7.0

type ChatPhotoStickerType interface {
	ChatPhotoStickerTypeType() string
}

Describes type of sticker, which was used to create a chat photo

func UnmarshalChatPhotoStickerType added in v0.7.0

func UnmarshalChatPhotoStickerType(data json.RawMessage) (ChatPhotoStickerType, error)

func UnmarshalListOfChatPhotoStickerType added in v0.7.0

func UnmarshalListOfChatPhotoStickerType(dataList []json.RawMessage) ([]ChatPhotoStickerType, error)

type ChatPhotoStickerTypeCustomEmoji added in v0.7.0

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 v0.7.0

func UnmarshalChatPhotoStickerTypeCustomEmoji(data json.RawMessage) (*ChatPhotoStickerTypeCustomEmoji, error)

func (*ChatPhotoStickerTypeCustomEmoji) ChatPhotoStickerTypeType added in v0.7.0

func (*ChatPhotoStickerTypeCustomEmoji) ChatPhotoStickerTypeType() string

func (*ChatPhotoStickerTypeCustomEmoji) GetClass added in v0.7.0

func (*ChatPhotoStickerTypeCustomEmoji) GetType added in v0.7.0

func (*ChatPhotoStickerTypeCustomEmoji) MarshalJSON added in v0.7.0

func (entity *ChatPhotoStickerTypeCustomEmoji) MarshalJSON() ([]byte, error)

type ChatPhotoStickerTypeRegularOrMask added in v0.7.0

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 v0.7.0

func UnmarshalChatPhotoStickerTypeRegularOrMask(data json.RawMessage) (*ChatPhotoStickerTypeRegularOrMask, error)

func (*ChatPhotoStickerTypeRegularOrMask) ChatPhotoStickerTypeType added in v0.7.0

func (*ChatPhotoStickerTypeRegularOrMask) ChatPhotoStickerTypeType() string

func (*ChatPhotoStickerTypeRegularOrMask) GetClass added in v0.7.0

func (*ChatPhotoStickerTypeRegularOrMask) GetType added in v0.7.0

func (*ChatPhotoStickerTypeRegularOrMask) MarshalJSON added in v0.7.0

func (entity *ChatPhotoStickerTypeRegularOrMask) MarshalJSON() ([]byte, error)

type ChatPhotos added in v0.3.0

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 added in v0.3.0

func UnmarshalChatPhotos(data json.RawMessage) (*ChatPhotos, error)

func (*ChatPhotos) GetClass added in v0.3.0

func (*ChatPhotos) GetClass() string

func (*ChatPhotos) GetType added in v0.3.0

func (*ChatPhotos) GetType() string

func (*ChatPhotos) MarshalJSON added in v0.3.0

func (entity *ChatPhotos) MarshalJSON() ([]byte, error)

type ChatPosition added in v0.3.0

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 added in v0.3.0

func UnmarshalChatPosition(data json.RawMessage) (*ChatPosition, error)

func (*ChatPosition) GetClass added in v0.3.0

func (*ChatPosition) GetClass() string

func (*ChatPosition) GetType added in v0.3.0

func (*ChatPosition) GetType() string

func (*ChatPosition) MarshalJSON added in v0.3.0

func (entity *ChatPosition) MarshalJSON() ([]byte, error)

func (*ChatPosition) UnmarshalJSON added in v0.3.0

func (chatPosition *ChatPosition) UnmarshalJSON(data []byte) error

type ChatRevenueAmount added in v0.7.3

type ChatRevenueAmount struct {

	// Cryptocurrency in which revenue is calculated
	Cryptocurrency string `json:"cryptocurrency"`
	// Total amount of the cryptocurrency earned, in the smallest units of the cryptocurrency
	TotalAmount JsonInt64 `json:"total_amount"`
	// Amount of the cryptocurrency that isn't withdrawn yet, in the smallest units of the cryptocurrency
	BalanceAmount JsonInt64 `json:"balance_amount"`
	// Amount of the cryptocurrency available for withdrawal, in the smallest units of the cryptocurrency
	AvailableAmount JsonInt64 `json:"available_amount"`
	// True, if Telegram Stars can be withdrawn now or later
	WithdrawalEnabled bool `json:"withdrawal_enabled"`
	// contains filtered or unexported fields
}

Contains information about revenue earned from sponsored messages in a chat

func UnmarshalChatRevenueAmount added in v0.7.3

func UnmarshalChatRevenueAmount(data json.RawMessage) (*ChatRevenueAmount, error)

func (*ChatRevenueAmount) GetClass added in v0.7.3

func (*ChatRevenueAmount) GetClass() string

func (*ChatRevenueAmount) GetType added in v0.7.3

func (*ChatRevenueAmount) GetType() string

func (*ChatRevenueAmount) MarshalJSON added in v0.7.3

func (entity *ChatRevenueAmount) MarshalJSON() ([]byte, error)

type ChatRevenueStatistics added in v0.7.3

type ChatRevenueStatistics struct {

	// A graph containing amount of revenue in a given hour
	RevenueByHourGraph StatisticalGraph `json:"revenue_by_hour_graph"`
	// A graph containing amount of revenue
	RevenueGraph StatisticalGraph `json:"revenue_graph"`
	// Amount of earned revenue
	RevenueAmount *ChatRevenueAmount `json:"revenue_amount"`
	// Current conversion rate of the cryptocurrency in which revenue is calculated to USD
	UsdRate float64 `json:"usd_rate"`
	// contains filtered or unexported fields
}

A detailed statistics about revenue earned from sponsored messages in a chat

func UnmarshalChatRevenueStatistics added in v0.7.3

func UnmarshalChatRevenueStatistics(data json.RawMessage) (*ChatRevenueStatistics, error)

func (*ChatRevenueStatistics) GetClass added in v0.7.3

func (*ChatRevenueStatistics) GetClass() string

func (*ChatRevenueStatistics) GetType added in v0.7.3

func (*ChatRevenueStatistics) GetType() string

func (*ChatRevenueStatistics) MarshalJSON added in v0.7.3

func (entity *ChatRevenueStatistics) MarshalJSON() ([]byte, error)

func (*ChatRevenueStatistics) UnmarshalJSON added in v0.7.3

func (chatRevenueStatistics *ChatRevenueStatistics) UnmarshalJSON(data []byte) error

type ChatRevenueTransaction added in v0.7.3

type ChatRevenueTransaction struct {

	// Cryptocurrency in which revenue is calculated
	Cryptocurrency string `json:"cryptocurrency"`
	// The withdrawn amount, in the smallest units of the cryptocurrency
	CryptocurrencyAmount JsonInt64 `json:"cryptocurrency_amount"`
	// Type of the transaction
	Type ChatRevenueTransactionType `json:"type"`
	// contains filtered or unexported fields
}

Contains a chat revenue transactions

func UnmarshalChatRevenueTransaction added in v0.7.3

func UnmarshalChatRevenueTransaction(data json.RawMessage) (*ChatRevenueTransaction, error)

func (*ChatRevenueTransaction) GetClass added in v0.7.3

func (*ChatRevenueTransaction) GetClass() string

func (*ChatRevenueTransaction) GetType added in v0.7.3

func (*ChatRevenueTransaction) GetType() string

func (*ChatRevenueTransaction) MarshalJSON added in v0.7.3

func (entity *ChatRevenueTransaction) MarshalJSON() ([]byte, error)

func (*ChatRevenueTransaction) UnmarshalJSON added in v0.7.3

func (chatRevenueTransaction *ChatRevenueTransaction) UnmarshalJSON(data []byte) error

type ChatRevenueTransactionType added in v0.7.3

type ChatRevenueTransactionType interface {
	ChatRevenueTransactionTypeType() string
}

Describes type of transaction for revenue earned from sponsored messages in a chat

func UnmarshalChatRevenueTransactionType added in v0.7.3

func UnmarshalChatRevenueTransactionType(data json.RawMessage) (ChatRevenueTransactionType, error)

func UnmarshalListOfChatRevenueTransactionType added in v0.7.3

func UnmarshalListOfChatRevenueTransactionType(dataList []json.RawMessage) ([]ChatRevenueTransactionType, error)

type ChatRevenueTransactionTypeEarnings added in v0.7.3

type ChatRevenueTransactionTypeEarnings struct {

	// Point in time (Unix timestamp) when the earnings started
	StartDate int32 `json:"start_date"`
	// Point in time (Unix timestamp) when the earnings ended
	EndDate int32 `json:"end_date"`
	// contains filtered or unexported fields
}

Describes earnings from sponsored messages in a chat in some time frame

func UnmarshalChatRevenueTransactionTypeEarnings added in v0.7.3

func UnmarshalChatRevenueTransactionTypeEarnings(data json.RawMessage) (*ChatRevenueTransactionTypeEarnings, error)

func (*ChatRevenueTransactionTypeEarnings) ChatRevenueTransactionTypeType added in v0.7.3

func (*ChatRevenueTransactionTypeEarnings) ChatRevenueTransactionTypeType() string

func (*ChatRevenueTransactionTypeEarnings) GetClass added in v0.7.3

func (*ChatRevenueTransactionTypeEarnings) GetType added in v0.7.3

func (*ChatRevenueTransactionTypeEarnings) MarshalJSON added in v0.7.3

func (entity *ChatRevenueTransactionTypeEarnings) MarshalJSON() ([]byte, error)

type ChatRevenueTransactionTypeRefund added in v0.7.3

type ChatRevenueTransactionTypeRefund struct {

	// Point in time (Unix timestamp) when the transaction was refunded
	RefundDate int32 `json:"refund_date"`
	// Name of the payment provider
	Provider string `json:"provider"`
	// contains filtered or unexported fields
}

Describes a refund for failed withdrawal of earnings

func UnmarshalChatRevenueTransactionTypeRefund added in v0.7.3

func UnmarshalChatRevenueTransactionTypeRefund(data json.RawMessage) (*ChatRevenueTransactionTypeRefund, error)

func (*ChatRevenueTransactionTypeRefund) ChatRevenueTransactionTypeType added in v0.7.3

func (*ChatRevenueTransactionTypeRefund) ChatRevenueTransactionTypeType() string

func (*ChatRevenueTransactionTypeRefund) GetClass added in v0.7.3

func (*ChatRevenueTransactionTypeRefund) GetType added in v0.7.3

func (*ChatRevenueTransactionTypeRefund) MarshalJSON added in v0.7.3

func (entity *ChatRevenueTransactionTypeRefund) MarshalJSON() ([]byte, error)

type ChatRevenueTransactionTypeWithdrawal added in v0.7.3

type ChatRevenueTransactionTypeWithdrawal struct {

	// Point in time (Unix timestamp) when the earnings withdrawal started
	WithdrawalDate int32 `json:"withdrawal_date"`
	// Name of the payment provider
	Provider string `json:"provider"`
	// State of the withdrawal
	State RevenueWithdrawalState `json:"state"`
	// contains filtered or unexported fields
}

Describes a withdrawal of earnings

func UnmarshalChatRevenueTransactionTypeWithdrawal added in v0.7.3

func UnmarshalChatRevenueTransactionTypeWithdrawal(data json.RawMessage) (*ChatRevenueTransactionTypeWithdrawal, error)

func (*ChatRevenueTransactionTypeWithdrawal) ChatRevenueTransactionTypeType added in v0.7.3

func (*ChatRevenueTransactionTypeWithdrawal) ChatRevenueTransactionTypeType() string

func (*ChatRevenueTransactionTypeWithdrawal) GetClass added in v0.7.3

func (*ChatRevenueTransactionTypeWithdrawal) GetType added in v0.7.3

func (*ChatRevenueTransactionTypeWithdrawal) MarshalJSON added in v0.7.3

func (entity *ChatRevenueTransactionTypeWithdrawal) MarshalJSON() ([]byte, error)

func (*ChatRevenueTransactionTypeWithdrawal) UnmarshalJSON added in v0.7.3

func (chatRevenueTransactionTypeWithdrawal *ChatRevenueTransactionTypeWithdrawal) UnmarshalJSON(data []byte) error

type ChatRevenueTransactions added in v0.7.3

type ChatRevenueTransactions struct {

	// Total number of transactions
	TotalCount int32 `json:"total_count"`
	// List of transactions
	Transactions []*ChatRevenueTransaction `json:"transactions"`
	// contains filtered or unexported fields
}

Contains a list of chat revenue transactions

func UnmarshalChatRevenueTransactions added in v0.7.3

func UnmarshalChatRevenueTransactions(data json.RawMessage) (*ChatRevenueTransactions, error)

func (*ChatRevenueTransactions) GetClass added in v0.7.3

func (*ChatRevenueTransactions) GetClass() string

func (*ChatRevenueTransactions) GetType added in v0.7.3

func (*ChatRevenueTransactions) GetType() string

func (*ChatRevenueTransactions) MarshalJSON added in v0.7.3

func (entity *ChatRevenueTransactions) MarshalJSON() ([]byte, error)

type ChatSource added in v0.3.0

type ChatSource interface {
	ChatSourceType() string
}

Describes a reason why an external chat is shown in a chat list

func UnmarshalChatSource added in v0.3.0

func UnmarshalChatSource(data json.RawMessage) (ChatSource, error)

func UnmarshalListOfChatSource added in v0.3.2

func UnmarshalListOfChatSource(dataList []json.RawMessage) ([]ChatSource, error)

type ChatSourceMtprotoProxy added in v0.3.0

type ChatSourceMtprotoProxy struct {
	// contains filtered or unexported fields
}

The chat is sponsored by the user's MTProxy server

func UnmarshalChatSourceMtprotoProxy added in v0.3.0

func UnmarshalChatSourceMtprotoProxy(data json.RawMessage) (*ChatSourceMtprotoProxy, error)

func (*ChatSourceMtprotoProxy) ChatSourceType added in v0.3.0

func (*ChatSourceMtprotoProxy) ChatSourceType() string

func (*ChatSourceMtprotoProxy) GetClass added in v0.3.0

func (*ChatSourceMtprotoProxy) GetClass() string

func (*ChatSourceMtprotoProxy) GetType added in v0.3.0

func (*ChatSourceMtprotoProxy) GetType() string

func (*ChatSourceMtprotoProxy) MarshalJSON added in v0.3.0

func (entity *ChatSourceMtprotoProxy) MarshalJSON() ([]byte, error)

type ChatSourcePublicServiceAnnouncement added in v0.3.0

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 added in v0.3.0

func UnmarshalChatSourcePublicServiceAnnouncement(data json.RawMessage) (*ChatSourcePublicServiceAnnouncement, error)

func (*ChatSourcePublicServiceAnnouncement) ChatSourceType added in v0.3.0

func (*ChatSourcePublicServiceAnnouncement) ChatSourceType() string

func (*ChatSourcePublicServiceAnnouncement) GetClass added in v0.3.0

func (*ChatSourcePublicServiceAnnouncement) GetType added in v0.3.0

func (*ChatSourcePublicServiceAnnouncement) MarshalJSON added in v0.3.0

func (entity *ChatSourcePublicServiceAnnouncement) MarshalJSON() ([]byte, error)

type ChatStatistics added in v0.3.0

type ChatStatistics interface {
	ChatStatisticsType() string
}

Contains a detailed statistics about a chat

func UnmarshalChatStatistics added in v0.3.0

func UnmarshalChatStatistics(data json.RawMessage) (ChatStatistics, error)

func UnmarshalListOfChatStatistics added in v0.3.2

func UnmarshalListOfChatStatistics(dataList []json.RawMessage) ([]ChatStatistics, error)

type ChatStatisticsAdministratorActionsInfo added in v0.3.0

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 added in v0.3.0

func UnmarshalChatStatisticsAdministratorActionsInfo(data json.RawMessage) (*ChatStatisticsAdministratorActionsInfo, error)

func (*ChatStatisticsAdministratorActionsInfo) GetClass added in v0.3.0

func (*ChatStatisticsAdministratorActionsInfo) GetType added in v0.3.0

func (*ChatStatisticsAdministratorActionsInfo) MarshalJSON added in v0.3.0

func (entity *ChatStatisticsAdministratorActionsInfo) MarshalJSON() ([]byte, error)

type ChatStatisticsChannel added in v0.3.0

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 were viewed
	MeanMessageViewCount *StatisticalValue `json:"mean_message_view_count"`
	// Mean number of times the recently sent messages were shared
	MeanMessageShareCount *StatisticalValue `json:"mean_message_share_count"`
	// Mean number of times reactions were added to the recently sent messages
	MeanMessageReactionCount *StatisticalValue `json:"mean_message_reaction_count"`
	// Mean number of times the recently sent stories were viewed
	MeanStoryViewCount *StatisticalValue `json:"mean_story_view_count"`
	// Mean number of times the recently sent stories were shared
	MeanStoryShareCount *StatisticalValue `json:"mean_story_share_count"`
	// Mean number of times reactions were added to the recently sent stories
	MeanStoryReactionCount *StatisticalValue `json:"mean_story_reaction_count"`
	// A percentage of users with enabled notifications for the chat; 0-100
	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 reactions on messages
	MessageReactionGraph StatisticalGraph `json:"message_reaction_graph"`
	// A graph containing number of story views and shares
	StoryInteractionGraph StatisticalGraph `json:"story_interaction_graph"`
	// A graph containing number of reactions on stories
	StoryReactionGraph StatisticalGraph `json:"story_reaction_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 and stories
	RecentInteractions []*ChatStatisticsInteractionInfo `json:"recent_interactions"`
	// contains filtered or unexported fields
}

A detailed statistics about a channel chat

func UnmarshalChatStatisticsChannel added in v0.3.0

func UnmarshalChatStatisticsChannel(data json.RawMessage) (*ChatStatisticsChannel, error)

func (*ChatStatisticsChannel) ChatStatisticsType added in v0.3.0

func (*ChatStatisticsChannel) ChatStatisticsType() string

func (*ChatStatisticsChannel) GetClass added in v0.3.0

func (*ChatStatisticsChannel) GetClass() string

func (*ChatStatisticsChannel) GetType added in v0.3.0

func (*ChatStatisticsChannel) GetType() string

func (*ChatStatisticsChannel) MarshalJSON added in v0.3.0

func (entity *ChatStatisticsChannel) MarshalJSON() ([]byte, error)

func (*ChatStatisticsChannel) UnmarshalJSON added in v0.3.0

func (chatStatisticsChannel *ChatStatisticsChannel) UnmarshalJSON(data []byte) error

type ChatStatisticsInteractionInfo added in v0.7.1

type ChatStatisticsInteractionInfo struct {

	// Type of the object
	ObjectType ChatStatisticsObjectType `json:"object_type"`
	// Number of times the object was viewed
	ViewCount int32 `json:"view_count"`
	// Number of times the object was forwarded
	ForwardCount int32 `json:"forward_count"`
	// Number of times reactions were added to the object
	ReactionCount int32 `json:"reaction_count"`
	// contains filtered or unexported fields
}

Contains statistics about interactions with a message sent in the chat or a story sent by the chat

func UnmarshalChatStatisticsInteractionInfo added in v0.7.1

func UnmarshalChatStatisticsInteractionInfo(data json.RawMessage) (*ChatStatisticsInteractionInfo, error)

func (*ChatStatisticsInteractionInfo) GetClass added in v0.7.1

func (*ChatStatisticsInteractionInfo) GetType added in v0.7.1

func (*ChatStatisticsInteractionInfo) MarshalJSON added in v0.7.1

func (entity *ChatStatisticsInteractionInfo) MarshalJSON() ([]byte, error)

func (*ChatStatisticsInteractionInfo) UnmarshalJSON added in v0.7.1

func (chatStatisticsInteractionInfo *ChatStatisticsInteractionInfo) UnmarshalJSON(data []byte) error

type ChatStatisticsInviterInfo added in v0.3.0

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 added in v0.3.0

func UnmarshalChatStatisticsInviterInfo(data json.RawMessage) (*ChatStatisticsInviterInfo, error)

func (*ChatStatisticsInviterInfo) GetClass added in v0.3.0

func (*ChatStatisticsInviterInfo) GetClass() string

func (*ChatStatisticsInviterInfo) GetType added in v0.3.0

func (*ChatStatisticsInviterInfo) GetType() string

func (*ChatStatisticsInviterInfo) MarshalJSON added in v0.3.0

func (entity *ChatStatisticsInviterInfo) MarshalJSON() ([]byte, error)

type ChatStatisticsMessageSenderInfo added in v0.3.0

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 added in v0.3.0

func UnmarshalChatStatisticsMessageSenderInfo(data json.RawMessage) (*ChatStatisticsMessageSenderInfo, error)

func (*ChatStatisticsMessageSenderInfo) GetClass added in v0.3.0

func (*ChatStatisticsMessageSenderInfo) GetType added in v0.3.0

func (*ChatStatisticsMessageSenderInfo) MarshalJSON added in v0.3.0

func (entity *ChatStatisticsMessageSenderInfo) MarshalJSON() ([]byte, error)

type ChatStatisticsObjectType added in v0.7.1

type ChatStatisticsObjectType interface {
	ChatStatisticsObjectTypeType() string
}

Describes type of object, for which statistics are provided

func UnmarshalChatStatisticsObjectType added in v0.7.1

func UnmarshalChatStatisticsObjectType(data json.RawMessage) (ChatStatisticsObjectType, error)

func UnmarshalListOfChatStatisticsObjectType added in v0.7.1

func UnmarshalListOfChatStatisticsObjectType(dataList []json.RawMessage) ([]ChatStatisticsObjectType, error)

type ChatStatisticsObjectTypeMessage added in v0.7.1

type ChatStatisticsObjectTypeMessage struct {

	// Message identifier
	MessageId int64 `json:"message_id"`
	// contains filtered or unexported fields
}

Describes a message sent in the chat

func UnmarshalChatStatisticsObjectTypeMessage added in v0.7.1

func UnmarshalChatStatisticsObjectTypeMessage(data json.RawMessage) (*ChatStatisticsObjectTypeMessage, error)

func (*ChatStatisticsObjectTypeMessage) ChatStatisticsObjectTypeType added in v0.7.1

func (*ChatStatisticsObjectTypeMessage) ChatStatisticsObjectTypeType() string

func (*ChatStatisticsObjectTypeMessage) GetClass added in v0.7.1

func (*ChatStatisticsObjectTypeMessage) GetType added in v0.7.1

func (*ChatStatisticsObjectTypeMessage) MarshalJSON added in v0.7.1

func (entity *ChatStatisticsObjectTypeMessage) MarshalJSON() ([]byte, error)

type ChatStatisticsObjectTypeStory added in v0.7.1

type ChatStatisticsObjectTypeStory struct {

	// Story identifier
	StoryId int32 `json:"story_id"`
	// contains filtered or unexported fields
}

Describes a story sent by the chat

func UnmarshalChatStatisticsObjectTypeStory added in v0.7.1

func UnmarshalChatStatisticsObjectTypeStory(data json.RawMessage) (*ChatStatisticsObjectTypeStory, error)

func (*ChatStatisticsObjectTypeStory) ChatStatisticsObjectTypeType added in v0.7.1

func (*ChatStatisticsObjectTypeStory) ChatStatisticsObjectTypeType() string

func (*ChatStatisticsObjectTypeStory) GetClass added in v0.7.1

func (*ChatStatisticsObjectTypeStory) GetType added in v0.7.1

func (*ChatStatisticsObjectTypeStory) MarshalJSON added in v0.7.1

func (entity *ChatStatisticsObjectTypeStory) MarshalJSON() ([]byte, error)

type ChatStatisticsSupergroup added in v0.3.0

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 added in v0.3.0

func UnmarshalChatStatisticsSupergroup(data json.RawMessage) (*ChatStatisticsSupergroup, error)

func (*ChatStatisticsSupergroup) ChatStatisticsType added in v0.3.0

func (*ChatStatisticsSupergroup) ChatStatisticsType() string

func (*ChatStatisticsSupergroup) GetClass added in v0.3.0

func (*ChatStatisticsSupergroup) GetClass() string

func (*ChatStatisticsSupergroup) GetType added in v0.3.0

func (*ChatStatisticsSupergroup) GetType() string

func (*ChatStatisticsSupergroup) MarshalJSON added in v0.3.0

func (entity *ChatStatisticsSupergroup) MarshalJSON() ([]byte, error)

func (*ChatStatisticsSupergroup) UnmarshalJSON added in v0.3.0

func (chatStatisticsSupergroup *ChatStatisticsSupergroup) UnmarshalJSON(data []byte) error

type ChatTheme added in v0.5.0

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 added in v0.5.0

func UnmarshalChatTheme(data json.RawMessage) (*ChatTheme, error)

func (*ChatTheme) GetClass added in v0.5.0

func (*ChatTheme) GetClass() string

func (*ChatTheme) GetType added in v0.5.0

func (*ChatTheme) GetType() string

func (*ChatTheme) MarshalJSON added in v0.5.0

func (entity *ChatTheme) MarshalJSON() ([]byte, error)

type ChatTransactionPurpose added in v0.7.3

type ChatTransactionPurpose interface {
	ChatTransactionPurposeType() string
}

Describes purpose of a transaction with a supergroup or a channel

func UnmarshalChatTransactionPurpose added in v0.7.3

func UnmarshalChatTransactionPurpose(data json.RawMessage) (ChatTransactionPurpose, error)

func UnmarshalListOfChatTransactionPurpose added in v0.7.3

func UnmarshalListOfChatTransactionPurpose(dataList []json.RawMessage) ([]ChatTransactionPurpose, error)

type ChatTransactionPurposeGiveaway added in v0.7.3

type ChatTransactionPurposeGiveaway struct {

	// Identifier of the message with giveaway; can be 0 or an identifier of a deleted message
	GiveawayMessageId int64 `json:"giveaway_message_id"`
	// contains filtered or unexported fields
}

User received Telegram Stars from a giveaway

func UnmarshalChatTransactionPurposeGiveaway added in v0.7.3

func UnmarshalChatTransactionPurposeGiveaway(data json.RawMessage) (*ChatTransactionPurposeGiveaway, error)

func (*ChatTransactionPurposeGiveaway) ChatTransactionPurposeType added in v0.7.3

func (*ChatTransactionPurposeGiveaway) ChatTransactionPurposeType() string

func (*ChatTransactionPurposeGiveaway) GetClass added in v0.7.3

func (*ChatTransactionPurposeGiveaway) GetType added in v0.7.3

func (*ChatTransactionPurposeGiveaway) MarshalJSON added in v0.7.3

func (entity *ChatTransactionPurposeGiveaway) MarshalJSON() ([]byte, error)

type ChatTransactionPurposeJoin added in v0.7.3

type ChatTransactionPurposeJoin struct {

	// The number of seconds between consecutive Telegram Star debiting
	Period int32 `json:"period"`
	// contains filtered or unexported fields
}

User joined the channel and subscribed to regular payments in Telegram Stars

func UnmarshalChatTransactionPurposeJoin added in v0.7.3

func UnmarshalChatTransactionPurposeJoin(data json.RawMessage) (*ChatTransactionPurposeJoin, error)

func (*ChatTransactionPurposeJoin) ChatTransactionPurposeType added in v0.7.3

func (*ChatTransactionPurposeJoin) ChatTransactionPurposeType() string

func (*ChatTransactionPurposeJoin) GetClass added in v0.7.3

func (*ChatTransactionPurposeJoin) GetClass() string

func (*ChatTransactionPurposeJoin) GetType added in v0.7.3

func (*ChatTransactionPurposeJoin) MarshalJSON added in v0.7.3

func (entity *ChatTransactionPurposeJoin) MarshalJSON() ([]byte, error)

type ChatTransactionPurposePaidMedia added in v0.7.3

type ChatTransactionPurposePaidMedia struct {

	// Identifier of the corresponding message with paid media; can be 0 or an identifier of a deleted message
	MessageId int64 `json:"message_id"`
	// The bought media if the transaction wasn't refunded
	Media []PaidMedia `json:"media"`
	// contains filtered or unexported fields
}

Paid media were bought

func UnmarshalChatTransactionPurposePaidMedia added in v0.7.3

func UnmarshalChatTransactionPurposePaidMedia(data json.RawMessage) (*ChatTransactionPurposePaidMedia, error)

func (*ChatTransactionPurposePaidMedia) ChatTransactionPurposeType added in v0.7.3

func (*ChatTransactionPurposePaidMedia) ChatTransactionPurposeType() string

func (*ChatTransactionPurposePaidMedia) GetClass added in v0.7.3

func (*ChatTransactionPurposePaidMedia) GetType added in v0.7.3

func (*ChatTransactionPurposePaidMedia) MarshalJSON added in v0.7.3

func (entity *ChatTransactionPurposePaidMedia) MarshalJSON() ([]byte, error)

func (*ChatTransactionPurposePaidMedia) UnmarshalJSON added in v0.7.3

func (chatTransactionPurposePaidMedia *ChatTransactionPurposePaidMedia) UnmarshalJSON(data []byte) error

type ChatTransactionPurposeReaction added in v0.7.3

type ChatTransactionPurposeReaction struct {

	// Identifier of the reacted message; can be 0 or an identifier of a deleted message
	MessageId int64 `json:"message_id"`
	// contains filtered or unexported fields
}

User paid for a reaction

func UnmarshalChatTransactionPurposeReaction added in v0.7.3

func UnmarshalChatTransactionPurposeReaction(data json.RawMessage) (*ChatTransactionPurposeReaction, error)

func (*ChatTransactionPurposeReaction) ChatTransactionPurposeType added in v0.7.3

func (*ChatTransactionPurposeReaction) ChatTransactionPurposeType() string

func (*ChatTransactionPurposeReaction) GetClass added in v0.7.3

func (*ChatTransactionPurposeReaction) GetType added in v0.7.3

func (*ChatTransactionPurposeReaction) MarshalJSON added in v0.7.3

func (entity *ChatTransactionPurposeReaction) MarshalJSON() ([]byte, error)

type ChatType

type ChatType interface {
	ChatTypeType() string
}

Describes the type of chat

func UnmarshalChatType

func UnmarshalChatType(data json.RawMessage) (ChatType, error)

func UnmarshalListOfChatType added in v0.3.2

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 other user in the secret chat
	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) GetClass

func (*Chats) GetClass() string

func (*Chats) GetType

func (*Chats) GetType() string

func (*Chats) MarshalJSON

func (entity *Chats) 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 v0.7.0

type CheckAuthenticationEmailCodeRequest struct {
	// Email address authentication to check
	Code EmailAddressAuthentication `json:"code"`
}

type CheckAuthenticationPasswordRecoveryCodeRequest added in v0.5.0

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 CheckChatFolderInviteLinkRequest added in v0.7.0

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 CheckChatUsernameRequest

type CheckChatUsernameRequest struct {
	// Chat identifier; must be identifier of a supergroup chat, or a channel chat, or a private chat with self, or 0 if the chat is being created
	ChatId int64 `json:"chat_id"`
	// Username to be checked
	Username string `json:"username"`
}

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 added in v0.3.2

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 v0.7.0

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 v0.7.0

func UnmarshalCheckChatUsernameResultPublicChatsTooMany(data json.RawMessage) (*CheckChatUsernameResultPublicChatsTooMany, error)

func (*CheckChatUsernameResultPublicChatsTooMany) CheckChatUsernameResultType added in v0.7.0

func (*CheckChatUsernameResultPublicChatsTooMany) CheckChatUsernameResultType() string

func (*CheckChatUsernameResultPublicChatsTooMany) GetClass added in v0.7.0

func (*CheckChatUsernameResultPublicChatsTooMany) GetType added in v0.7.0

func (*CheckChatUsernameResultPublicChatsTooMany) MarshalJSON added in v0.7.0

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) GetType

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) GetType

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) GetType

func (*CheckChatUsernameResultUsernameOccupied) MarshalJSON

func (entity *CheckChatUsernameResultUsernameOccupied) MarshalJSON() ([]byte, error)

type CheckChatUsernameResultUsernamePurchasable added in v0.7.0

type CheckChatUsernameResultUsernamePurchasable struct {
	// contains filtered or unexported fields
}

The username can be purchased at https://fragment.com. Information about the username can be received using getCollectibleItemInfo

func UnmarshalCheckChatUsernameResultUsernamePurchasable added in v0.7.0

func UnmarshalCheckChatUsernameResultUsernamePurchasable(data json.RawMessage) (*CheckChatUsernameResultUsernamePurchasable, error)

func (*CheckChatUsernameResultUsernamePurchasable) CheckChatUsernameResultType added in v0.7.0

func (*CheckChatUsernameResultUsernamePurchasable) CheckChatUsernameResultType() string

func (*CheckChatUsernameResultUsernamePurchasable) GetClass added in v0.7.0

func (*CheckChatUsernameResultUsernamePurchasable) GetType added in v0.7.0

func (*CheckChatUsernameResultUsernamePurchasable) MarshalJSON added in v0.7.0

func (entity *CheckChatUsernameResultUsernamePurchasable) MarshalJSON() ([]byte, error)

type CheckCreatedPublicChatsLimitRequest added in v0.2.0

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 v0.7.0

type CheckLoginEmailAddressCodeRequest struct {
	// Email address authentication to check
	Code EmailAddressAuthentication `json:"code"`
}

type CheckPasswordRecoveryCodeRequest added in v0.5.0

type CheckPasswordRecoveryCodeRequest struct {
	// Recovery code to check
	RecoveryCode string `json:"recovery_code"`
}

type CheckPhoneNumberCodeRequest added in v0.7.3

type CheckPhoneNumberCodeRequest struct {
	// Authentication code to check
	Code string `json:"code"`
}

type CheckPremiumGiftCodeRequest added in v0.7.1

type CheckPremiumGiftCodeRequest struct {
	// The code to check
	Code string `json:"code"`
}

type CheckQuickReplyShortcutNameRequest added in v0.7.2

type CheckQuickReplyShortcutNameRequest struct {
	// The name of the shortcut; 1-32 characters
	Name string `json:"name"`
}

type CheckRecoveryEmailAddressCodeRequest added in v0.0.13

type CheckRecoveryEmailAddressCodeRequest struct {
	// Verification code to check
	Code string `json:"code"`
}

type CheckStickerSetNameRequest added in v0.5.0

type CheckStickerSetNameRequest struct {
	// Name to be checked
	Name string `json:"name"`
}

type CheckStickerSetNameResult added in v0.5.0

type CheckStickerSetNameResult interface {
	CheckStickerSetNameResultType() string
}

Represents result of checking whether a name can be used for a new sticker set

func UnmarshalCheckStickerSetNameResult added in v0.5.0

func UnmarshalCheckStickerSetNameResult(data json.RawMessage) (CheckStickerSetNameResult, error)

func UnmarshalListOfCheckStickerSetNameResult added in v0.5.0

func UnmarshalListOfCheckStickerSetNameResult(dataList []json.RawMessage) ([]CheckStickerSetNameResult, error)

type CheckStickerSetNameResultNameInvalid added in v0.5.0

type CheckStickerSetNameResultNameInvalid struct {
	// contains filtered or unexported fields
}

The name is invalid

func UnmarshalCheckStickerSetNameResultNameInvalid added in v0.5.0

func UnmarshalCheckStickerSetNameResultNameInvalid(data json.RawMessage) (*CheckStickerSetNameResultNameInvalid, error)

func (*CheckStickerSetNameResultNameInvalid) CheckStickerSetNameResultType added in v0.5.0

func (*CheckStickerSetNameResultNameInvalid) CheckStickerSetNameResultType() string

func (*CheckStickerSetNameResultNameInvalid) GetClass added in v0.5.0

func (*CheckStickerSetNameResultNameInvalid) GetType added in v0.5.0

func (*CheckStickerSetNameResultNameInvalid) MarshalJSON added in v0.5.0

func (entity *CheckStickerSetNameResultNameInvalid) MarshalJSON() ([]byte, error)

type CheckStickerSetNameResultNameOccupied added in v0.5.0

type CheckStickerSetNameResultNameOccupied struct {
	// contains filtered or unexported fields
}

The name is occupied

func UnmarshalCheckStickerSetNameResultNameOccupied added in v0.5.0

func UnmarshalCheckStickerSetNameResultNameOccupied(data json.RawMessage) (*CheckStickerSetNameResultNameOccupied, error)

func (*CheckStickerSetNameResultNameOccupied) CheckStickerSetNameResultType added in v0.5.0

func (*CheckStickerSetNameResultNameOccupied) CheckStickerSetNameResultType() string

func (*CheckStickerSetNameResultNameOccupied) GetClass added in v0.5.0

func (*CheckStickerSetNameResultNameOccupied) GetType added in v0.5.0

func (*CheckStickerSetNameResultNameOccupied) MarshalJSON added in v0.5.0

func (entity *CheckStickerSetNameResultNameOccupied) MarshalJSON() ([]byte, error)

type CheckStickerSetNameResultOk added in v0.5.0

type CheckStickerSetNameResultOk struct {
	// contains filtered or unexported fields
}

The name can be set

func UnmarshalCheckStickerSetNameResultOk added in v0.5.0

func UnmarshalCheckStickerSetNameResultOk(data json.RawMessage) (*CheckStickerSetNameResultOk, error)

func (*CheckStickerSetNameResultOk) CheckStickerSetNameResultType added in v0.5.0

func (*CheckStickerSetNameResultOk) CheckStickerSetNameResultType() string

func (*CheckStickerSetNameResultOk) GetClass added in v0.5.0

func (*CheckStickerSetNameResultOk) GetClass() string

func (*CheckStickerSetNameResultOk) GetType added in v0.5.0

func (*CheckStickerSetNameResultOk) MarshalJSON added in v0.5.0

func (entity *CheckStickerSetNameResultOk) MarshalJSON() ([]byte, error)

type CheckWebAppFileDownloadRequest added in v0.7.4

type CheckWebAppFileDownloadRequest struct {
	// Identifier of the bot, providing the Web App
	BotUserId int64 `json:"bot_user_id"`
	// Name of the file
	FileName string `json:"file_name"`
	// URL of the file
	Url string `json:"url"`
}

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 ClearSearchedForTagsRequest added in v0.7.3

type ClearSearchedForTagsRequest struct {
	// Pass true to clear the list of recently searched for cashtags; otherwise, the list of recently searched for hashtags will be cleared
	ClearCashtags bool `json:"clear_cashtags"`
}

type ClickAnimatedEmojiMessageRequest added in v0.5.0

type ClickAnimatedEmojiMessageRequest struct {
	// Chat identifier of the message
	ChatId int64 `json:"chat_id"`
	// Identifier of the clicked message
	MessageId int64 `json:"message_id"`
}

type ClickChatSponsoredMessageRequest added in v0.7.0

type ClickChatSponsoredMessageRequest struct {
	// Chat identifier of the sponsored message
	ChatId int64 `json:"chat_id"`
	// Identifier of the sponsored message
	MessageId int64 `json:"message_id"`
	// Pass true if the media was clicked in the sponsored message
	IsMediaClick bool `json:"is_media_click"`
	// Pass true if the user expanded the video from the sponsored message fullscreen before the click
	FromFullscreen bool `json:"from_fullscreen"`
}

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 v0.7.0

func (client *Client) ActivateStoryStealthMode() (*Ok, error)

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) AddBotMediaPreview added in v0.7.3

func (client *Client) AddBotMediaPreview(req *AddBotMediaPreviewRequest) (*BotMediaPreview, error)

Adds a new media preview to the beginning of the list of media previews of a bot. Returns the added preview after addition is completed server-side. The total number of previews must not exceed getOption("bot_media_preview_count_max") for the given language

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) (*FailedToAddMembers, error)

Adds a new member to a chat; requires can_invite_users member right. Members can't be added to private or secret chats. Returns information about members that weren't added

func (*Client) AddChatMembers

func (client *Client) AddChatMembers(req *AddChatMembersRequest) (*FailedToAddMembers, error)

Adds multiple new members to a chat; requires can_invite_users member right. 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. Returns information about members that weren't added

func (*Client) AddChatToList added in v0.3.0

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 added in v0.2.0

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 added in v0.0.13

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) 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 or in WEBP or WEBM format can be added to this list. Emoji stickers can't be added to favorite stickers

func (*Client) AddFileToDownloads added in v0.7.0

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 of 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 added in v0.0.13

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 v0.7.0

func (client *Client) AddMessageReaction(req *AddMessageReactionRequest) (*Ok, error)

Adds a reaction or a tag 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) AddPendingPaidMessageReaction added in v0.7.3

func (client *Client) AddPendingPaidMessageReaction(req *AddPendingPaidMessageReactionRequest) (*Ok, error)

Adds the paid message reaction to a message. Use getMessageAvailableReactions to check whether the reaction is available for the message

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) AddQuickReplyShortcutInlineQueryResultMessage added in v0.7.3

func (client *Client) AddQuickReplyShortcutInlineQueryResultMessage(req *AddQuickReplyShortcutInlineQueryResultMessageRequest) (*QuickReplyMessage, error)

Adds a message to a quick reply shortcut via inline bot. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message

func (*Client) AddQuickReplyShortcutMessage added in v0.7.3

func (client *Client) AddQuickReplyShortcutMessage(req *AddQuickReplyShortcutMessageRequest) (*QuickReplyMessage, error)

Adds a message to a quick reply shortcut. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message

func (*Client) AddQuickReplyShortcutMessageAlbum added in v0.7.3

func (client *Client) AddQuickReplyShortcutMessageAlbum(req *AddQuickReplyShortcutMessageAlbumRequest) (*QuickReplyMessages, error)

Adds 2-10 messages grouped together into an album to a quick reply shortcut. 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) 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 or in WEBP or WEBM format 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 v0.7.0

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

func (*Client) AllowBotToSendMessages added in v0.7.0

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 v0.7.0

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) ApplyPremiumGiftCode added in v0.7.1

func (client *Client) ApplyPremiumGiftCode(req *ApplyPremiumGiftCodeRequest) (*Ok, error)

Applies a Telegram Premium gift code

func (*Client) AssignAppStoreTransaction added in v0.7.0

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 v0.7.0

func (client *Client) AssignGooglePlayTransaction(req *AssignGooglePlayTransactionRequest) (*Ok, error)

Informs server about a purchase through Google Play. For official applications only

func (*Client) BanChatMember added in v0.5.0

func (client *Client) BanChatMember(req *BanChatMemberRequest) (*Ok, error)

Bans a member in a chat; requires can_restrict_members administrator right. 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 added in v0.3.0

func (client *Client) BlockMessageSenderFromReplies(req *BlockMessageSenderFromRepliesRequest) (*Ok, error)

Blocks an original sender of a message in the Replies chat

func (*Client) BoostChat added in v0.7.1

func (client *Client) BoostChat(req *BoostChatRequest) (*ChatBoostSlots, error)

Boosts a chat and returns the list of available chat boost slots for the current user after the boost

func (*Client) CanBotSendMessages added in v0.7.0

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) CanPurchaseFromStore added in v0.7.3

func (client *Client) CanPurchaseFromStore(req *CanPurchaseFromStoreRequest) (*Ok, error)

Checks whether an in-store purchase is possible. Must be called before any in-store purchase

func (*Client) CanSendMessageToUser added in v0.7.2

func (client *Client) CanSendMessageToUser(req *CanSendMessageToUserRequest) (CanSendMessageToUserResult, error)

Check whether the current user can message another user or try to create a chat with them

func (*Client) CanSendStory added in v0.7.0

func (client *Client) CanSendStory(req *CanSendStoryRequest) (CanSendStoryResult, error)

Checks whether the current user can send a story on behalf of a chat; requires can_post_stories right for supergroup and channel chats

func (*Client) CanTransferOwnership added in v0.2.0

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 added in v0.5.0

func (client *Client) CancelPasswordReset() (*Ok, error)

Cancels reset of 2-step verification password. The method can be called if passwordState.pending_reset_date > 0

func (*Client) CancelPreliminaryUploadFile added in v0.7.0

func (client *Client) CancelPreliminaryUploadFile(req *CancelPreliminaryUploadFileRequest) (*Ok, error)

Stops the preliminary uploading of a file. Supported only for files uploaded by using preliminaryUploadFile

func (*Client) CancelRecoveryEmailAddressVerification added in v0.7.2

func (client *Client) CancelRecoveryEmailAddressVerification() (*PasswordState, error)

Cancels verification of the 2-step verification recovery email address

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) 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 v0.7.0

func (client *Client) CheckAuthenticationEmailCode(req *CheckAuthenticationEmailCodeRequest) (*Ok, error)

Checks the authentication of an 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 added in v0.5.0

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 *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 *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 added in v0.2.0

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 v0.7.0

func (client *Client) CheckLoginEmailAddressCode(req *CheckLoginEmailAddressCodeRequest) (*Ok, error)

Checks the login email address authentication

func (*Client) CheckPasswordRecoveryCode added in v0.5.0

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) CheckPhoneNumberCode added in v0.7.3

func (client *Client) CheckPhoneNumberCode(req *CheckPhoneNumberCodeRequest) (*Ok, error)

Check the authentication code and completes the request for which the code was sent if appropriate

func (*Client) CheckPremiumGiftCode added in v0.7.1

func (client *Client) CheckPremiumGiftCode(req *CheckPremiumGiftCodeRequest) (*PremiumGiftCodeInfo, error)

Return information about a Telegram Premium gift code

func (*Client) CheckQuickReplyShortcutName added in v0.7.2

func (client *Client) CheckQuickReplyShortcutName(req *CheckQuickReplyShortcutNameRequest) (*Ok, error)

deprecated Checks validness of a name for a quick reply shortcut. Can be called synchronously

func (*Client) CheckRecoveryEmailAddressCode added in v0.0.13

func (client *Client) CheckRecoveryEmailAddressCode(req *CheckRecoveryEmailAddressCodeRequest) (*PasswordState, error)

Checks the 2-step verification recovery email address verification code

func (*Client) CheckStickerSetName added in v0.5.0

func (client *Client) CheckStickerSetName(req *CheckStickerSetNameRequest) (CheckStickerSetNameResult, error)

Checks whether a name can be used for a new sticker set

func (*Client) CheckWebAppFileDownload added in v0.7.4

func (client *Client) CheckWebAppFileDownload(req *CheckWebAppFileDownloadRequest) (*Ok, error)

Checks whether a file can be downloaded and saved locally by Web App request

func (*Client) CleanFileName

func (client *Client) CleanFileName(req *CleanFileNameRequest) (*Text, error)

deprecated Removes potentially dangerous characters from the name of a file. 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 v0.7.0

func (client *Client) ClearAutosaveSettingsExceptions() (*Ok, error)

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

func (client *Client) ClearImportedContacts() (*Ok, error)

Clears all imported contacts, contact list remains unchanged

func (*Client) ClearRecentEmojiStatuses added in v0.7.0

func (client *Client) ClearRecentEmojiStatuses() (*Ok, error)

Clears the list of recently used emoji statuses for self status

func (*Client) ClearRecentReactions added in v0.7.0

func (client *Client) ClearRecentReactions() (*Ok, error)

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

func (client *Client) ClearRecentlyFoundChats() (*Ok, error)

Clears the list of recently found chats

func (*Client) ClearSearchedForTags added in v0.7.3

func (client *Client) ClearSearchedForTags(req *ClearSearchedForTagsRequest) (*Ok, error)

Clears the list of recently searched for hashtags or cashtags

func (*Client) ClickAnimatedEmojiMessage added in v0.5.0

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 v0.7.0

func (client *Client) ClickChatSponsoredMessage(req *ClickChatSponsoredMessageRequest) (*Ok, error)

Informs TDLib that the user opened the sponsored chat via the button, the name, the chat photo, a mention in the sponsored message text, or the media in the sponsored message

func (*Client) ClickPremiumSubscriptionButton added in v0.7.0

func (client *Client) ClickPremiumSubscriptionButton() (*Ok, error)

Informs TDLib that the user clicked Premium subscription button on the Premium features screen

func (*Client) Close

func (client *Client) Close() (*Ok, error)

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 v0.7.0

func (client *Client) CloseStory(req *CloseStoryRequest) (*Ok, error)

Informs TDLib that a story is closed by the user

func (*Client) CloseWebApp added in v0.7.0

func (client *Client) CloseWebApp(req *CloseWebAppRequest) (*Ok, error)

Informs TDLib that a previously opened Web App was closed

func (*Client) CommitPendingPaidMessageReactions added in v0.7.3

func (client *Client) CommitPendingPaidMessageReactions(req *CommitPendingPaidMessageReactionsRequest) (*Ok, error)

Applies all pending paid reactions on a message

func (*Client) ConfirmQrCodeAuthentication added in v0.2.0

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 v0.7.0

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 *Client) CreateBusinessChatLink(req *CreateBusinessChatLinkRequest) (*BusinessChatLink, error)

Creates a business chat link for the current account. Requires Telegram Business subscription. There can be up to getOption("business_chat_link_count_max") links created. Returns the created link

func (*Client) CreateCall

func (client *Client) CreateCall(req *CreateCallRequest) (*CallId, error)

Creates a new call

func (*Client) CreateChatFolder added in v0.7.0

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 *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 *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 *Client) CreateChatSubscriptionInviteLink(req *CreateChatSubscriptionInviteLinkRequest) (*ChatInviteLink, error)

Creates a new subscription invite link for a channel chat. Requires can_invite_users right in the chat

func (*Client) CreateForumTopic added in v0.7.0

func (client *Client) CreateForumTopic(req *CreateForumTopicRequest) (*ForumTopicInfo, error)

Creates a topic in a forum supergroup chat; requires can_manage_topics administrator or can_create_topics member right in the supergroup

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) (*CreatedBasicGroupChat, error)

Creates a new basic group and sends a corresponding messageBasicGroupChatCreate. Returns information about 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 added in v0.5.0

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 administrator right

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 added in v0.5.0

func (client *Client) DeleteAllCallMessages(req *DeleteAllCallMessagesRequest) (*Ok, error)

Deletes all call messages

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) DeleteBotMediaPreviews added in v0.7.3

func (client *Client) DeleteBotMediaPreviews(req *DeleteBotMediaPreviewsRequest) (*Ok, error)

Delete media previews from the list of media previews of a bot

func (client *Client) DeleteBusinessChatLink(req *DeleteBusinessChatLinkRequest) (*Ok, error)

Deletes a business chat link of the current account

func (*Client) DeleteBusinessConnectedBot added in v0.7.2

func (client *Client) DeleteBusinessConnectedBot(req *DeleteBusinessConnectedBotRequest) (*Ok, error)

Deletes the business bot that is connected to the current user account

func (*Client) DeleteChat added in v0.5.0

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) DeleteChatBackground added in v0.7.1

func (client *Client) DeleteChatBackground(req *DeleteChatBackgroundRequest) (*Ok, error)

Deletes background in a specific chat

func (*Client) DeleteChatFolder added in v0.7.0

func (client *Client) DeleteChatFolder(req *DeleteChatFolderRequest) (*Ok, error)

Deletes existing chat folder

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 added in v0.5.0

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 added in v0.5.0

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 added in v0.5.0

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) DeleteDefaultBackground added in v0.7.2

func (client *Client) DeleteDefaultBackground(req *DeleteDefaultBackgroundRequest) (*Ok, error)

Deletes default background for chats

func (*Client) DeleteFile

func (client *Client) DeleteFile(req *DeleteFileRequest) (*Ok, error)

Deletes a file from the TDLib file cache

func (*Client) DeleteForumTopic added in v0.7.0

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) DeleteQuickReplyShortcut added in v0.7.2

func (client *Client) DeleteQuickReplyShortcut(req *DeleteQuickReplyShortcutRequest) (*Ok, error)

Deletes a quick reply shortcut

func (*Client) DeleteQuickReplyShortcutMessages added in v0.7.2

func (client *Client) DeleteQuickReplyShortcutMessages(req *DeleteQuickReplyShortcutMessagesRequest) (*Ok, error)

Deletes specified quick reply messages

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

func (client *Client) DeleteSavedCredentials() (*Ok, error)

Deletes saved credentials for all payment provider bots

func (*Client) DeleteSavedMessagesTopicHistory added in v0.7.2

func (client *Client) DeleteSavedMessagesTopicHistory(req *DeleteSavedMessagesTopicHistoryRequest) (*Ok, error)

Deletes all messages in a Saved Messages topic

func (*Client) DeleteSavedMessagesTopicMessagesByDate added in v0.7.2

func (client *Client) DeleteSavedMessagesTopicMessagesByDate(req *DeleteSavedMessagesTopicMessagesByDateRequest) (*Ok, error)

Deletes all messages between the specified dates in a Saved Messages topic. Messages sent in the last 30 seconds will not be deleted

func (*Client) DeleteSavedOrderInfo

func (client *Client) DeleteSavedOrderInfo() (*Ok, error)

Deletes saved order information

func (*Client) DeleteStickerSet added in v0.7.0

func (client *Client) DeleteStickerSet(req *DeleteStickerSetRequest) (*Ok, error)

Completely deletes a sticker set

func (*Client) DeleteStory added in v0.7.0

func (client *Client) DeleteStory(req *DeleteStoryRequest) (*Ok, error)

Deletes a previously sent story. Can be called only if story.can_be_deleted == true

func (*Client) Destroy

func (client *Client) Destroy() (*Ok, error)

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 v0.7.0

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

func (client *Client) DisableProxy() (*Ok, error)

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

func (client *Client) DisconnectAllWebsites() (*Ok, error)

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) EditBotMediaPreview added in v0.7.3

func (client *Client) EditBotMediaPreview(req *EditBotMediaPreviewRequest) (*BotMediaPreview, error)

Replaces media preview in the list of media previews of a bot. Returns the new preview after edit is completed server-side

func (client *Client) EditBusinessChatLink(req *EditBusinessChatLinkRequest) (*BusinessChatLink, error)

Edits a business chat link of the current account. Requires Telegram Business subscription. Returns the edited link

func (*Client) EditBusinessMessageCaption added in v0.7.3

func (client *Client) EditBusinessMessageCaption(req *EditBusinessMessageCaptionRequest) (*BusinessMessage, error)

Edits the caption of a message sent on behalf of a business account; for bots only

func (*Client) EditBusinessMessageLiveLocation added in v0.7.3

func (client *Client) EditBusinessMessageLiveLocation(req *EditBusinessMessageLiveLocationRequest) (*BusinessMessage, error)

Edits the content of a live location in a message sent on behalf of a business account; for bots only

func (*Client) EditBusinessMessageMedia added in v0.7.3

func (client *Client) EditBusinessMessageMedia(req *EditBusinessMessageMediaRequest) (*BusinessMessage, error)

Edits the media content of a message with a text, an animation, an audio, a document, a photo or a video in a message sent on behalf of a business account; for bots only

func (*Client) EditBusinessMessageReplyMarkup added in v0.7.3

func (client *Client) EditBusinessMessageReplyMarkup(req *EditBusinessMessageReplyMarkupRequest) (*BusinessMessage, error)

Edits the reply markup of a message sent on behalf of a business account; for bots only

func (*Client) EditBusinessMessageText added in v0.7.3

func (client *Client) EditBusinessMessageText(req *EditBusinessMessageTextRequest) (*BusinessMessage, error)

Edits the text of a text or game message sent on behalf of a business account; for bots only

func (*Client) EditChatFolder added in v0.7.0

func (client *Client) EditChatFolder(req *EditChatFolderRequest) (*ChatFolderInfo, error)

Edits existing chat folder. Returns information about the edited chat folder

func (client *Client) EditChatFolderInviteLink(req *EditChatFolderInviteLinkRequest) (*ChatFolderInviteLink, error)

Edits an invite link for a chat folder

func (client *Client) EditChatInviteLink(req *EditChatInviteLinkRequest) (*ChatInviteLink, error)

Edits a non-primary invite link for a chat. Available for basic groups, supergroups, and channels. If the link creates a subscription, then expiration_date, member_limit and creates_join_request must not be used. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links

func (client *Client) EditChatSubscriptionInviteLink(req *EditChatSubscriptionInviteLinkRequest) (*ChatInviteLink, error)

Edits a subscription invite link for a channel chat. Requires 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 v0.7.0

func (client *Client) EditForumTopic(req *EditForumTopicRequest) (*Ok, error)

Edits title and icon of a topic in a forum supergroup chat; requires can_manage_topics 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 media content of a message with a text, 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 media content of a message, including message caption. If only the caption needs to be edited, use editMessageCaption instead. 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 added in v0.2.0

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) EditQuickReplyMessage added in v0.7.3

func (client *Client) EditQuickReplyMessage(req *EditQuickReplyMessageRequest) (*Ok, error)

Asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.can_be_edited to check whether a message can be edited. Media message can be edited only to a media message. The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa

func (*Client) EditStarSubscription added in v0.7.3

func (client *Client) EditStarSubscription(req *EditStarSubscriptionRequest) (*Ok, error)

Cancels or re-enables Telegram Star subscription

func (*Client) EditStory added in v0.7.0

func (client *Client) EditStory(req *EditStoryRequest) (*Ok, error)

Changes content and caption of a story. Can be called only if story.can_be_edited == true

func (*Client) EditStoryCover added in v0.7.3

func (client *Client) EditStoryCover(req *EditStoryCoverRequest) (*Ok, error)

Changes cover of a video story. Can be called only if story.can_be_edited == true and the story isn't being edited now

func (*Client) EditUserStarSubscription added in v0.7.4

func (client *Client) EditUserStarSubscription(req *EditUserStarSubscriptionRequest) (*Ok, error)

Cancels or re-enables Telegram Star subscription for a user; for bots only

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 added in v0.5.0

func (client *Client) EndGroupCall(req *EndGroupCallRequest) (*Ok, error)

Ends a group call. Requires groupCall.can_be_managed

func (*Client) EndGroupCallRecording added in v0.5.0

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 added in v0.5.0

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) GetActiveSessions

func (client *Client) GetActiveSessions() (*Sessions, error)

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 v0.7.0

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 added in v0.5.0

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 added in v0.0.13

func (client *Client) GetApplicationConfig() (JsonValue, error)

Returns application config, provided by the server. Can be called before authorization

func (client *Client) GetApplicationDownloadLink() (*HttpUrl, error)

Returns the link for downloading official Telegram application to be used when the current user invites friends to Telegram

func (*Client) GetArchiveChatListSettings added in v0.7.0

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) 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 v0.7.0

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 added in v0.1.0

func (client *Client) GetAutoDownloadSettingsPresets() (*AutoDownloadSettingsPresets, error)

Returns auto-download settings presets for the current user

func (*Client) GetAutosaveSettings added in v0.7.0

func (client *Client) GetAutosaveSettings() (*AutosaveSettings, error)

Returns autosave settings for the current user

func (*Client) GetAvailableChatBoostSlots added in v0.7.1

func (client *Client) GetAvailableChatBoostSlots() (*ChatBoostSlots, error)

Returns the list of available chat boost slots for the current user

func (*Client) GetAvailableGifts added in v0.7.3

func (client *Client) GetAvailableGifts() (*Gifts, error)

Returns gifts that can be sent to other users

func (*Client) GetBackgroundUrl added in v0.1.0

func (client *Client) GetBackgroundUrl(req *GetBackgroundUrlRequest) (*HttpUrl, error)

Constructs a persistent HTTP URL for a background

func (*Client) GetBankCardInfo added in v0.3.0

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 added in v0.3.0

func (client *Client) GetBlockedMessageSenders(req *GetBlockedMessageSendersRequest) (*MessageSenders, error)

Returns users and chats that were blocked by the current user

func (*Client) GetBotInfoDescription added in v0.7.0

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 v0.7.0

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) GetBotMediaPreviewInfo added in v0.7.3

func (client *Client) GetBotMediaPreviewInfo(req *GetBotMediaPreviewInfoRequest) (*BotMediaPreviewInfo, error)

Returns the list of media previews for the given language and the list of languages for which the bot has dedicated previews

func (*Client) GetBotMediaPreviews added in v0.7.3

func (client *Client) GetBotMediaPreviews(req *GetBotMediaPreviewsRequest) (*BotMediaPreviews, error)

Returns the list of media previews of a bot

func (*Client) GetBotName added in v0.7.0

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) GetBusinessChatLinkInfo added in v0.7.3

func (client *Client) GetBusinessChatLinkInfo(req *GetBusinessChatLinkInfoRequest) (*BusinessChatLinkInfo, error)

Returns information about a business chat link

func (client *Client) GetBusinessChatLinks() (*BusinessChatLinks, error)

Returns business chat links created for the current account

func (*Client) GetBusinessConnectedBot added in v0.7.2

func (client *Client) GetBusinessConnectedBot() (*BusinessConnectedBot, error)

Returns the business bot that is connected to the current user account. Returns a 404 error if there is no connected bot

func (*Client) GetBusinessConnection added in v0.7.2

func (client *Client) GetBusinessConnection(req *GetBusinessConnectionRequest) (*BusinessConnection, error)

Returns information about a business connection by its identifier; for bots only

func (*Client) GetBusinessFeatures added in v0.7.2

func (client *Client) GetBusinessFeatures(req *GetBusinessFeaturesRequest) (*BusinessFeatures, error)

Returns information about features, available to Business users

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 added in v0.3.0

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 v0.7.0

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) GetChatArchivedStories added in v0.7.1

func (client *Client) GetChatArchivedStories(req *GetChatArchivedStoriesRequest) (*Stories, error)

Returns the list of all stories posted by the given chat; requires can_edit_stories right in the chat. The stories are returned in 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) GetChatAvailableMessageSenders added in v0.5.0

func (client *Client) GetChatAvailableMessageSenders(req *GetChatAvailableMessageSendersRequest) (*ChatMessageSenders, error)

Returns the list of message sender identifiers, which can be used to send messages in a chat

func (*Client) GetChatBoostFeatures added in v0.7.2

func (client *Client) GetChatBoostFeatures(req *GetChatBoostFeaturesRequest) (*ChatBoostFeatures, error)

Returns the list of features available for different chat boost levels; this is an offline request

func (*Client) GetChatBoostLevelFeatures added in v0.7.2

func (client *Client) GetChatBoostLevelFeatures(req *GetChatBoostLevelFeaturesRequest) (*ChatBoostLevelFeatures, error)

Returns the list of features available on the specific chat boost level; this is an offline request

func (client *Client) GetChatBoostLink(req *GetChatBoostLinkRequest) (*ChatBoostLink, error)

Returns an HTTPS link to boost the specified supergroup or channel chat

func (*Client) GetChatBoostLinkInfo added in v0.7.1

func (client *Client) GetChatBoostLinkInfo(req *GetChatBoostLinkInfoRequest) (*ChatBoostLinkInfo, error)

Returns information about a link to boost a chat. Can be called for any internal link of the type internalLinkTypeChatBoost

func (*Client) GetChatBoostStatus added in v0.7.1

func (client *Client) GetChatBoostStatus(req *GetChatBoostStatusRequest) (*ChatBoostStatus, error)

Returns the current boost status for a supergroup or a channel chat

func (*Client) GetChatBoosts added in v0.7.1

func (client *Client) GetChatBoosts(req *GetChatBoostsRequest) (*FoundChatBoosts, error)

Returns the list of boosts applied to a chat; requires administrator rights in the 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 v0.7.0

func (client *Client) GetChatFolder(req *GetChatFolderRequest) (*ChatFolder, error)

Returns information about a chat folder by its identifier

func (*Client) GetChatFolderChatCount added in v0.7.0

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 v0.7.0

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 v0.7.0

func (client *Client) GetChatFolderDefaultIconName(req *GetChatFolderDefaultIconNameRequest) (*ChatFolderIcon, error)

deprecated Returns default icon name for a folder. Can be called synchronously

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 v0.7.0

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 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 *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 added in v0.5.0

func (client *Client) GetChatInviteLinkCounts(req *GetChatInviteLinkCountsRequest) (*ChatInviteLinkCounts, error)

Returns the list of chat administrators with number of their invite links. Requires owner privileges in the chat

func (*Client) GetChatInviteLinkMembers added in v0.5.0

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 *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 added in v0.5.0

func (client *Client) GetChatJoinRequests(req *GetChatJoinRequestsRequest) (*ChatJoinRequests, error)

Returns pending join requests in a chat

func (*Client) GetChatListsToAddChat added in v0.3.0

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. Returns a 404 error if such message doesn't exist

func (*Client) GetChatMessageCalendar added in v0.5.0

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 v0.7.0

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 added in v0.0.13

func (client *Client) GetChatNotificationSettingsExceptions(req *GetChatNotificationSettingsExceptionsRequest) (*Chats, error)

Returns the 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. Returns a 404 error if the message doesn't exist

func (*Client) GetChatPostedToChatPageStories added in v0.7.3

func (client *Client) GetChatPostedToChatPageStories(req *GetChatPostedToChatPageStoriesRequest) (*Stories, error)

Returns the list of stories that posted by the given chat to its chat page. If from_story_id == 0, then pinned stories are returned first. Then, stories are returned in 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) GetChatRevenueStatistics added in v0.7.3

func (client *Client) GetChatRevenueStatistics(req *GetChatRevenueStatisticsRequest) (*ChatRevenueStatistics, error)

Returns detailed revenue statistics about a chat. Currently, this method can be used only for channels if supergroupFullInfo.can_get_revenue_statistics == true or bots if userFullInfo.bot_info.can_get_revenue_statistics == true

func (*Client) GetChatRevenueTransactions added in v0.7.3

func (client *Client) GetChatRevenueTransactions(req *GetChatRevenueTransactionsRequest) (*ChatRevenueTransactions, error)

Returns the list of revenue transactions for a chat. Currently, this method can be used only for channels if supergroupFullInfo.can_get_revenue_statistics == true or bots if userFullInfo.bot_info.can_get_revenue_statistics == true

func (*Client) GetChatRevenueWithdrawalUrl added in v0.7.3

func (client *Client) GetChatRevenueWithdrawalUrl(req *GetChatRevenueWithdrawalUrlRequest) (*HttpUrl, error)

Returns a URL for chat revenue withdrawal; requires owner privileges in the channel chat or the bot. Currently, this method can be used only if getOption("can_withdraw_chat_revenue") for channels with supergroupFullInfo.can_get_revenue_statistics == true or bots with userFullInfo.bot_info.can_get_revenue_statistics == true

func (*Client) GetChatScheduledMessages added in v0.2.0

func (client *Client) GetChatScheduledMessages(req *GetChatScheduledMessagesRequest) (*Messages, error)

Returns all scheduled messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id)

func (*Client) GetChatSimilarChatCount added in v0.7.1

func (client *Client) GetChatSimilarChatCount(req *GetChatSimilarChatCountRequest) (*Count, error)

Returns approximate number of chats similar to the given chat

func (*Client) GetChatSimilarChats added in v0.7.1

func (client *Client) GetChatSimilarChats(req *GetChatSimilarChatsRequest) (*Chats, error)

Returns a list of chats similar to the given chat

func (*Client) GetChatSparseMessagePositions added in v0.5.0

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 v0.7.0

func (client *Client) GetChatSponsoredMessages(req *GetChatSponsoredMessagesRequest) (*SponsoredMessages, error)

Returns sponsored messages to be shown in a chat; for channel chats and chats with bots only

func (*Client) GetChatStatistics added in v0.3.0

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) GetChatStoryInteractions added in v0.7.2

func (client *Client) GetChatStoryInteractions(req *GetChatStoryInteractionsRequest) (*StoryInteractions, error)

Returns interactions with a story posted in a chat. Can be used only if story is posted on behalf of a chat and the user is an administrator in the chat

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 *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) GetChatsToSendStories added in v0.7.1

func (client *Client) GetChatsToSendStories() (*Chats, error)

Returns supergroup and channel chats in which the current user has the right to post stories. The chats must be rechecked with canSendStory before actually trying to post a story there

func (*Client) GetCloseFriends added in v0.7.0

func (client *Client) GetCloseFriends() (*Users, error)

Returns all close friends of the current user

func (*Client) GetCollectibleItemInfo added in v0.7.2

func (client *Client) GetCollectibleItemInfo(req *GetCollectibleItemInfoRequest) (*CollectibleItemInfo, error)

Returns information about a given collectible item that was purchased at https://fragment.com

func (*Client) GetCommands added in v0.5.0

func (client *Client) GetCommands(req *GetCommandsRequest) (*BotCommands, error)

Returns the 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

func (client *Client) GetContacts() (*Users, error)

Returns all contacts of the user

func (*Client) GetCountries added in v0.3.0

func (client *Client) GetCountries() (*Countries, error)

Returns information about existing countries. Can be called before authorization

func (*Client) GetCountryCode

func (client *Client) GetCountryCode() (*Text, error)

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) GetCountryFlagEmoji added in v0.7.2

func (client *Client) GetCountryFlagEmoji(req *GetCountryFlagEmojiRequest) (*Text, error)

deprecated Returns an emoji for the given country. Returns an empty string on failure. Can be called synchronously

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 added in v0.0.13

func (client *Client) GetCurrentState() (*Updates, error)

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) GetCurrentWeather added in v0.7.3

func (client *Client) GetCurrentWeather(req *GetCurrentWeatherRequest) (*CurrentWeather, error)

Returns the current weather in the given location

func (*Client) GetCustomEmojiReactionAnimations added in v0.7.0

func (client *Client) GetCustomEmojiReactionAnimations() (*Stickers, error)

Returns TGS stickers with generic animations for custom emoji reactions

func (*Client) GetCustomEmojiStickers added in v0.7.0

func (client *Client) GetCustomEmojiStickers(req *GetCustomEmojiStickersRequest) (*Stickers, error)

Returns the list of custom emoji stickers by their identifiers. Stickers are returned in arbitrary order. Only found stickers are returned

func (*Client) GetDatabaseStatistics added in v0.0.13

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) GetDefaultBackgroundCustomEmojiStickers added in v0.7.1

func (client *Client) GetDefaultBackgroundCustomEmojiStickers() (*Stickers, error)

Returns default list of custom emoji stickers for reply background

func (*Client) GetDefaultChatEmojiStatuses added in v0.7.2

func (client *Client) GetDefaultChatEmojiStatuses() (*EmojiStatuses, error)

Returns default emoji statuses for chats

func (*Client) GetDefaultChatPhotoCustomEmojiStickers added in v0.7.0

func (client *Client) GetDefaultChatPhotoCustomEmojiStickers() (*Stickers, error)

Returns default list of custom emoji stickers for placing on a chat photo

func (*Client) GetDefaultEmojiStatuses added in v0.7.0

func (client *Client) GetDefaultEmojiStatuses() (*EmojiStatuses, error)

Returns default emoji statuses for self status

func (*Client) GetDefaultMessageAutoDeleteTime added in v0.7.0

func (client *Client) GetDefaultMessageAutoDeleteTime() (*MessageAutoDeleteTime, error)

Returns default message auto-delete time setting for new chats

func (*Client) GetDefaultProfilePhotoCustomEmojiStickers added in v0.7.0

func (client *Client) GetDefaultProfilePhotoCustomEmojiStickers() (*Stickers, error)

Returns default list of custom emoji stickers for placing on a profile photo

func (*Client) GetDisallowedChatEmojiStatuses added in v0.7.2

func (client *Client) GetDisallowedChatEmojiStatuses() (*EmojiStatuses, error)

Returns the list of emoji statuses, which can't be used as chat emoji status, even they are from a sticker set with is_allowed_as_chat_emoji_status == true

func (*Client) GetEmojiCategories added in v0.7.0

func (client *Client) GetEmojiCategories(req *GetEmojiCategoriesRequest) (*EmojiCategories, error)

Returns available emoji categories

func (*Client) GetEmojiReaction added in v0.7.0

func (client *Client) GetEmojiReaction(req *GetEmojiReactionRequest) (*EmojiReaction, error)

Returns information about an emoji reaction. Returns a 404 error if the reaction is not found

func (*Client) GetEmojiSuggestionsUrl added in v0.1.0

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 *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 added in v0.5.0

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 link preview is disabled in secret chats

func (*Client) GetFavoriteStickers

func (client *Client) GetFavoriteStickers() (*Stickers, error)

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 added in v0.0.13

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 v0.7.0

func (client *Client) GetForumTopic(req *GetForumTopicRequest) (*ForumTopic, error)

Returns information about a forum topic

func (*Client) GetForumTopicDefaultIcons added in v0.7.0

func (client *Client) GetForumTopicDefaultIcons() (*Stickers, error)

Returns the list of custom emoji, which can be used as forum topic icon by all users

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 v0.7.0

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) GetGiveawayInfo added in v0.7.3

func (client *Client) GetGiveawayInfo(req *GetGiveawayInfoRequest) (GiveawayInfo, error)

Returns information about a giveaway

func (*Client) GetGreetingStickers added in v0.7.3

func (client *Client) GetGreetingStickers() (*Stickers, error)

Returns greeting stickers from regular sticker sets that can be used for the start page of other users

func (*Client) GetGrossingWebAppBots added in v0.7.3

func (client *Client) GetGrossingWebAppBots(req *GetGrossingWebAppBotsRequest) (*FoundUsers, error)

Returns the most grossing Web App bots

func (*Client) GetGroupCall added in v0.5.0

func (client *Client) GetGroupCall(req *GetGroupCallRequest) (*GroupCall, error)

Returns information about a group call

func (client *Client) GetGroupCallInviteLink(req *GetGroupCallInviteLinkRequest) (*HttpUrl, error)

Returns invite link to a video chat in a public chat

func (*Client) GetGroupCallStreamSegment added in v0.5.0

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 v0.7.0

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

func (client *Client) GetImportedContactCount() (*Count, error)

Returns the total number of imported contacts

func (*Client) GetInactiveSupergroupChats added in v0.2.0

func (client *Client) GetInactiveSupergroupChats() (*Chats, error)

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) GetInstalledBackgrounds added in v0.7.2

func (client *Client) GetInstalledBackgrounds(req *GetInstalledBackgroundsRequest) (*Backgrounds, error)

Returns backgrounds installed by the user

func (*Client) GetInstalledStickerSets

func (client *Client) GetInstalledStickerSets(req *GetInstalledStickerSetsRequest) (*StickerSets, error)

Returns a list of installed sticker sets

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 added in v0.5.0

func (client *Client) GetInternalLinkType(req *GetInternalLinkTypeRequest) (InternalLinkType, error)

Returns information about the type of internal link. Returns a 404 error if the link is not internal. Can be called before authorization

func (*Client) GetJsonString added in v0.0.13

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 added in v0.0.13

func (client *Client) GetJsonValue(req *GetJsonValueRequest) (JsonValue, error)

deprecated Converts a JSON-serialized string to corresponding JsonValue object. Can be called synchronously

func (*Client) GetKeywordEmojis added in v0.7.2

func (client *Client) GetKeywordEmojis(req *GetKeywordEmojisRequest) (*Emojis, error)

Return emojis matching the keyword. Supported only if the file database is enabled. Order of results is unspecified

func (*Client) GetLanguagePackInfo added in v0.0.13

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) GetLinkPreview added in v0.7.3

func (client *Client) GetLinkPreview(req *GetLinkPreviewRequest) (*LinkPreview, error)

Returns a link preview by the text of a message. Do not call this function too often. Returns a 404 error if the text has no link preview

func (*Client) GetListener

func (client *Client) GetListener() *Listener

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 added in v0.0.13

func (client *Client) GetLogStream() (LogStream, error)

deprecated Returns information about currently used log stream for internal logging of TDLib. Can be called synchronously

func (*Client) GetLogTagVerbosityLevel added in v0.0.13

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 added in v0.0.13

func (client *Client) GetLogTags() (*LogTags, error)

deprecated Returns the list of available TDLib internal log tags, for example, ["actor", "binlog", "connections", "notifications", "proxy"]. Can be called synchronously

func (*Client) GetLogVerbosityLevel added in v0.0.13

func (client *Client) GetLogVerbosityLevel() (*LogVerbosityLevel, error)

deprecated Returns current verbosity level of the internal logging of TDLib. Can be called synchronously

func (*Client) GetLoginUrl added in v0.2.0

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 added in v0.2.0

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) GetMainWebApp added in v0.7.3

func (client *Client) GetMainWebApp(req *GetMainWebAppRequest) (*MainWebApp, error)

Returns information needed to open the main Web App of a bot

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 added in v0.3.0

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) GetMe

func (client *Client) GetMe() (*User, error)

Returns the current user

func (*Client) GetMenuButton added in v0.7.0

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. Returns a 404 error if the message doesn't exist

func (*Client) GetMessageAddedReactions added in v0.7.0

func (client *Client) GetMessageAddedReactions(req *GetMessageAddedReactionsRequest) (*AddedReactions, error)

Returns reactions added for a message, along with their sender

func (*Client) GetMessageAvailableReactions added in v0.7.0

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) GetMessageEffect added in v0.7.3

func (client *Client) GetMessageEffect(req *GetMessageEffectRequest) (*MessageEffect, error)

Returns information about a message effect. Returns a 404 error if the effect is not found

func (*Client) GetMessageEmbeddingCode added in v0.3.0

func (client *Client) GetMessageEmbeddingCode(req *GetMessageEmbeddingCodeRequest) (*Text, error)

Returns an HTML code for embedding the message. Available only if messageProperties.can_get_embedding_code

func (*Client) GetMessageFileType added in v0.5.0

func (client *Client) GetMessageFileType(req *GetMessageFileTypeRequest) (MessageFileType, error)

Returns information about a file with messages exported from another application

func (*Client) GetMessageImportConfirmationText added in v0.5.0

func (client *Client) GetMessageImportConfirmationText(req *GetMessageImportConfirmationTextRequest) (*Text, error)

Returns a confirmation text to be shown to the user before starting message import

func (client *Client) GetMessageLink(req *GetMessageLinkRequest) (*MessageLink, error)

Returns an HTTPS link to a message in a chat. Available only if messageProperties.can_get_link, or if messageProperties.can_get_media_timestamp_links and a media timestamp link is generated. This is an offline request

func (*Client) GetMessageLinkInfo added in v0.1.0

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 added in v0.0.13

func (client *Client) GetMessageLocally(req *GetMessageLocallyRequest) (*Message, error)

Returns information about a message, if it is available without sending network request. Returns a 404 error if message isn't available locally. This is an offline request

func (*Client) GetMessageProperties added in v0.7.3

func (client *Client) GetMessageProperties(req *GetMessagePropertiesRequest) (*MessageProperties, error)

Returns properties of a message; this is an offline request

func (*Client) GetMessagePublicForwards added in v0.3.0

func (client *Client) GetMessagePublicForwards(req *GetMessagePublicForwardsRequest) (*PublicForwards, error)

Returns forwarded copies of a channel message to different public channels and public reposts as a story. Can be used only if messageProperties.can_get_statistics == true. For optimal performance, the number of returned messages and stories is chosen by TDLib

func (*Client) GetMessageReadDate added in v0.7.2

func (client *Client) GetMessageReadDate(req *GetMessageReadDateRequest) (MessageReadDate, error)

Returns read date of a recent outgoing message in a private chat. The method can be called if messageProperties.can_get_read_date == true

func (*Client) GetMessageStatistics added in v0.3.0

func (client *Client) GetMessageStatistics(req *GetMessageStatisticsRequest) (*MessageStatistics, error)

Returns detailed statistics about a message. Can be used only if messageProperties.can_get_statistics == true

func (*Client) GetMessageThread added in v0.3.0

func (client *Client) GetMessageThread(req *GetMessageThreadRequest) (*MessageThreadInfo, error)

Returns information about a message thread. Can be used only if messageProperties.can_get_message_thread == true

func (*Client) GetMessageThreadHistory added in v0.3.0

func (client *Client) GetMessageThreadHistory(req *GetMessageThreadHistoryRequest) (*Messages, error)

Returns messages in a message thread of a message. Can be used only if messageProperties.can_get_message_thread == true. Message thread of a channel message is in the channel's linked supergroup. The messages are returned 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) GetMessageViewers added in v0.5.0

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 messageProperties.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) GetNewChatPrivacySettings added in v0.7.2

func (client *Client) GetNewChatPrivacySettings() (*NewChatPrivacySettings, error)

Returns privacy settings for new chat creation

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) GetOwnedStickerSets added in v0.7.2

func (client *Client) GetOwnedStickerSets(req *GetOwnedStickerSetsRequest) (*StickerSets, error)

Returns sticker sets owned by the current user

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 added in v0.0.13

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 inline button of the type inlineKeyboardButtonTypeBuy, or wants to buy access to media in a messagePaidMedia message

func (*Client) GetPaymentReceipt

func (client *Client) GetPaymentReceipt(req *GetPaymentReceiptRequest) (*PaymentReceipt, error)

Returns information about a successful payment

func (*Client) GetPhoneNumberInfo added in v0.3.0

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 added in v0.5.0

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 added in v0.2.0

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 v0.7.0

func (client *Client) GetPremiumFeatures(req *GetPremiumFeaturesRequest) (*PremiumFeatures, error)

Returns information about features, available to Premium users

func (*Client) GetPremiumGiftCodePaymentOptions added in v0.7.1

func (client *Client) GetPremiumGiftCodePaymentOptions(req *GetPremiumGiftCodePaymentOptionsRequest) (*PremiumGiftCodePaymentOptions, error)

Returns available options for Telegram Premium gift code or Telegram Premium giveaway creation

func (*Client) GetPremiumInfoSticker added in v0.7.3

func (client *Client) GetPremiumInfoSticker(req *GetPremiumInfoStickerRequest) (*Sticker, error)

Returns the sticker to be used as representation of the Telegram Premium subscription

func (*Client) GetPremiumLimit added in v0.7.0

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 v0.7.0

func (client *Client) GetPremiumState() (*PremiumState, error)

Returns state of Telegram Premium subscription and promotion videos for Premium features

func (*Client) GetPremiumStickerExamples added in v0.7.0

func (client *Client) GetPremiumStickerExamples() (*Stickers, error)

Returns examples of premium stickers for demonstration purposes

func (*Client) GetPremiumStickers added in v0.7.0

func (client *Client) GetPremiumStickers(req *GetPremiumStickersRequest) (*Stickers, error)

Returns premium stickers from regular sticker sets

func (*Client) GetPreparedInlineMessage added in v0.7.4

func (client *Client) GetPreparedInlineMessage(req *GetPreparedInlineMessageRequest) (*PreparedInlineMessage, error)

Saves an inline message to be sent by the given user; for bots only

func (*Client) GetProxies

func (client *Client) GetProxies() (*Proxies, error)

Returns the list of proxies that are currently set up. Can be called before authorization

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 added in v0.0.13

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) GetReadDatePrivacySettings added in v0.7.2

func (client *Client) GetReadDatePrivacySettings() (*ReadDatePrivacySettings, error)

Returns privacy settings for message read date

func (*Client) GetRecentEmojiStatuses added in v0.7.0

func (client *Client) GetRecentEmojiStatuses() (*EmojiStatuses, error)

Returns recent emoji statuses for self status

func (*Client) GetRecentInlineBots

func (client *Client) GetRecentInlineBots() (*Users, error)

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 added in v0.5.0

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 v0.7.0

func (client *Client) GetRecommendedChatFolders() (*RecommendedChatFolders, error)

Returns recommended chat folders for the current user

func (*Client) GetRecommendedChats added in v0.7.3

func (client *Client) GetRecommendedChats() (*Chats, error)

Returns a list of channel chats recommended to 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 non-bundled message that is replied by a given message. Also, returns the pinned message, the game message, the invoice message, the message with a previously set same background, the giveaway message, and the topic creation message for messages of the types messagePinMessage, messageGameScore, messagePaymentSuccessful, messageChatSetBackground, messageGiveawayCompleted and topic messages without non-bundled replied message respectively. Returns a 404 error if the message doesn't exist

func (*Client) GetSavedAnimations

func (client *Client) GetSavedAnimations() (*Animations, error)

Returns saved animations

func (*Client) GetSavedMessagesTags added in v0.7.2

func (client *Client) GetSavedMessagesTags(req *GetSavedMessagesTagsRequest) (*SavedMessagesTags, error)

Returns tags used in Saved Messages or a Saved Messages topic

func (*Client) GetSavedMessagesTopicHistory added in v0.7.2

func (client *Client) GetSavedMessagesTopicHistory(req *GetSavedMessagesTopicHistoryRequest) (*Messages, error)

Returns messages in a Saved Messages topic. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id)

func (*Client) GetSavedMessagesTopicMessageByDate added in v0.7.2

func (client *Client) GetSavedMessagesTopicMessageByDate(req *GetSavedMessagesTopicMessageByDateRequest) (*Message, error)

Returns the last message sent in a Saved Messages topic no later than the specified date

func (*Client) GetSavedNotificationSound added in v0.7.0

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 v0.7.0

func (client *Client) GetSavedNotificationSounds() (*NotificationSounds, error)

Returns the list of saved notification sounds. If a sound isn't in the list, then default sound needs to be used

func (*Client) GetSavedOrderInfo

func (client *Client) GetSavedOrderInfo() (*OrderInfo, error)

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) GetSearchedForTags added in v0.7.3

func (client *Client) GetSearchedForTags(req *GetSearchedForTagsRequest) (*Hashtags, error)

Returns recently searched for hashtags or cashtags by their prefix

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) GetStarAdAccountUrl added in v0.7.3

func (client *Client) GetStarAdAccountUrl(req *GetStarAdAccountUrlRequest) (*HttpUrl, error)

Returns a URL for a Telegram Ad platform account that can be used to set up advertisements for the chat paid in the owned Telegram Stars

func (*Client) GetStarGiftPaymentOptions added in v0.7.3

func (client *Client) GetStarGiftPaymentOptions(req *GetStarGiftPaymentOptionsRequest) (*StarPaymentOptions, error)

Returns available options for Telegram Stars gifting

func (*Client) GetStarGiveawayPaymentOptions added in v0.7.3

func (client *Client) GetStarGiveawayPaymentOptions() (*StarGiveawayPaymentOptions, error)

Returns available options for Telegram Star giveaway creation

func (*Client) GetStarPaymentOptions added in v0.7.3

func (client *Client) GetStarPaymentOptions() (*StarPaymentOptions, error)

Returns available options for Telegram Stars purchase

func (*Client) GetStarRevenueStatistics added in v0.7.3

func (client *Client) GetStarRevenueStatistics(req *GetStarRevenueStatisticsRequest) (*StarRevenueStatistics, error)

Returns detailed Telegram Star revenue statistics

func (*Client) GetStarSubscriptions added in v0.7.3

func (client *Client) GetStarSubscriptions(req *GetStarSubscriptionsRequest) (*StarSubscriptions, error)

Returns the list of Telegram Star subscriptions for the current user

func (*Client) GetStarTransactions added in v0.7.3

func (client *Client) GetStarTransactions(req *GetStarTransactionsRequest) (*StarTransactions, error)

Returns the list of Telegram Star transactions for the specified owner

func (*Client) GetStarWithdrawalUrl added in v0.7.3

func (client *Client) GetStarWithdrawalUrl(req *GetStarWithdrawalUrlRequest) (*HttpUrl, error)

Returns a URL for Telegram Star withdrawal

func (*Client) GetStatisticalGraph added in v0.3.0

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) GetStickerOutline added in v0.7.4

func (client *Client) GetStickerOutline(req *GetStickerOutlineRequest) (*Outline, error)

Returns outline of a sticker; this is an offline request. Returns a 404 error if the outline isn't known

func (*Client) GetStickerSet

func (client *Client) GetStickerSet(req *GetStickerSetRequest) (*StickerSet, error)

Returns information about a sticker set by its identifier

func (*Client) GetStickerSetName added in v0.7.3

func (client *Client) GetStickerSetName(req *GetStickerSetNameRequest) (*Text, error)

Returns name of 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 v0.7.0

func (client *Client) GetStory(req *GetStoryRequest) (*Story, error)

Returns a story

func (*Client) GetStoryAvailableReactions added in v0.7.0

func (client *Client) GetStoryAvailableReactions(req *GetStoryAvailableReactionsRequest) (*AvailableReactions, error)

Returns reactions, which can be chosen for a story

func (*Client) GetStoryInteractions added in v0.7.2

func (client *Client) GetStoryInteractions(req *GetStoryInteractionsRequest) (*StoryInteractions, error)

Returns interactions with a story. The method can be called only for stories posted on behalf of the current user

func (*Client) GetStoryNotificationSettingsExceptions added in v0.7.0

func (client *Client) GetStoryNotificationSettingsExceptions() (*Chats, error)

Returns the list of chats with non-default notification settings for stories

func (*Client) GetStoryPublicForwards added in v0.7.1

func (client *Client) GetStoryPublicForwards(req *GetStoryPublicForwardsRequest) (*PublicForwards, error)

Returns forwards of a story as a message to public chats and reposts by public channels. Can be used only if the story is posted on behalf of the current user or story.can_get_statistics == true. For optimal performance, the number of returned messages and stories is chosen by TDLib

func (*Client) GetStoryStatistics added in v0.7.1

func (client *Client) GetStoryStatistics(req *GetStoryStatisticsRequest) (*StoryStatistics, error)

Returns detailed statistics about a story. Can be used only if story.can_get_statistics == true

func (*Client) GetSuggestedFileName added in v0.5.0

func (client *Client) GetSuggestedFileName(req *GetSuggestedFileNameRequest) (*Text, error)

Returns suggested name for saving a file in a given directory

func (*Client) GetSuggestedStickerSetName added in v0.5.0

func (client *Client) GetSuggestedStickerSetName(req *GetSuggestedStickerSetNameRequest) (*Text, error)

Returns a suggested name for a new sticker set with a given title

func (*Client) GetSuitableDiscussionChats added in v0.2.0

func (client *Client) GetSuitableDiscussionChats() (*Chats, error)

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) GetSuitablePersonalChats added in v0.7.2

func (client *Client) GetSuitablePersonalChats() (*Chats, error)

Returns a list of channel chats, which can be used as a personal chat

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 v0.7.0

func (client *Client) GetSupportName() (*Text, error)

Returns localized name of the Telegram support user; for Telegram support only

func (*Client) GetSupportUser

func (client *Client) GetSupportUser() (*User, error)

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 v0.7.0

func (client *Client) GetThemeParametersJsonString(req *GetThemeParametersJsonStringRequest) (*Text, error)

deprecated Converts a themeParameters object to corresponding JSON-serialized string. Can be called synchronously

func (*Client) GetThemedChatEmojiStatuses added in v0.7.2

func (client *Client) GetThemedChatEmojiStatuses() (*EmojiStatuses, error)

Returns up to 8 emoji statuses, which must be shown in the emoji status list for chats

func (*Client) GetThemedEmojiStatuses added in v0.7.0

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 for self status

func (*Client) GetTimeZones added in v0.7.2

func (client *Client) GetTimeZones() (*TimeZones, error)

Returns the list of supported time zones

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) GetUserChatBoosts added in v0.7.1

func (client *Client) GetUserChatBoosts(req *GetUserChatBoostsRequest) (*FoundChatBoosts, error)

Returns the list of boosts applied to a chat by a given user; requires administrator rights in the chat; for bots only

func (*Client) GetUserFullInfo

func (client *Client) GetUserFullInfo(req *GetUserFullInfoRequest) (*UserFullInfo, error)

Returns full information about a user by their identifier

func (*Client) GetUserGifts added in v0.7.3

func (client *Client) GetUserGifts(req *GetUserGiftsRequest) (*UserGifts, error)

Returns gifts saved to profile by the given user

func (client *Client) GetUserLink() (*UserLink, error)

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 v0.7.0

func (client *Client) GetUserSupportInfo(req *GetUserSupportInfoRequest) (*UserSupportInfo, error)

Returns support information for the given user; for Telegram support only

func (*Client) GetVideoChatAvailableParticipants added in v0.5.0

func (client *Client) GetVideoChatAvailableParticipants(req *GetVideoChatAvailableParticipantsRequest) (*MessageSenders, error)

Returns the list of participant identifiers, on whose behalf a video chat in the chat can be joined

func (*Client) GetVideoChatRtmpUrl added in v0.7.0

func (client *Client) GetVideoChatRtmpUrl(req *GetVideoChatRtmpUrlRequest) (*RtmpUrl, error)

Returns RTMP URL for streaming to the chat; requires can_manage_video_chats administrator right

func (*Client) GetWebAppLinkUrl added in v0.7.0

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) GetWebAppPlaceholder added in v0.7.4

func (client *Client) GetWebAppPlaceholder(req *GetWebAppPlaceholderRequest) (*Outline, error)

Returns a default placeholder for Web Apps of a bot; this is an offline request. Returns a 404 error if the placeholder isn't known

func (*Client) GetWebAppUrl added in v0.7.0

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, or an inlineQueryResultsButtonTypeWebApp button

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) HideContactCloseBirthdays added in v0.7.3

func (client *Client) HideContactCloseBirthdays() (*Ok, error)

Hides the list of contacts that have close birthdays for 24 hours

func (*Client) HideSuggestedAction added in v0.3.0

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 added in v0.5.0

func (client *Client) ImportMessages(req *ImportMessagesRequest) (*Ok, error)

Imports messages exported from another app

func (*Client) InviteGroupCallParticipants added in v0.5.0

func (client *Client) InviteGroupCallParticipants(req *InviteGroupCallParticipantsRequest) (*Ok, error)

Invites users to an active group call. Sends a service message of type messageInviteVideoChatParticipants 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 *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 added in v0.5.0

func (client *Client) JoinGroupCall(req *JoinGroupCallRequest) (*Text, error)

Joins an active group call. Returns join response payload for tgcalls

func (*Client) LaunchPrepaidGiveaway added in v0.7.3

func (client *Client) LaunchPrepaidGiveaway(req *LaunchPrepaidGiveawayRequest) (*Ok, error)

Launches a prepaid giveaway

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 added in v0.5.0

func (client *Client) LeaveGroupCall(req *LeaveGroupCallRequest) (*Ok, error)

Leaves a group call

func (*Client) LoadActiveStories added in v0.7.0

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 added in v0.5.0

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 added in v0.5.0

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) LoadQuickReplyShortcutMessages added in v0.7.2

func (client *Client) LoadQuickReplyShortcutMessages(req *LoadQuickReplyShortcutMessagesRequest) (*Ok, error)

Loads quick reply messages that can be sent by a given quick reply shortcut. The loaded messages will be sent through updateQuickReplyShortcutMessages

func (*Client) LoadQuickReplyShortcuts added in v0.7.2

func (client *Client) LoadQuickReplyShortcuts() (*Ok, error)

Loads quick reply shortcuts created by the current user. The loaded data will be sent through updateQuickReplyShortcut and updateQuickReplyShortcuts

func (*Client) LoadSavedMessagesTopics added in v0.7.2

func (client *Client) LoadSavedMessagesTopics(req *LoadSavedMessagesTopicsRequest) (*Ok, error)

Loads more Saved Messages topics. The loaded topics will be sent through updateSavedMessagesTopic. Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded

func (*Client) LogOut

func (client *Client) LogOut() (*Ok, error)

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) OpenChatSimilarChat added in v0.7.2

func (client *Client) OpenChatSimilarChat(req *OpenChatSimilarChatRequest) (*Ok, error)

Informs TDLib that a chat was opened from the list of similar chats. The method is independent of openChat and closeChat methods

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 v0.7.0

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 v0.7.0

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 added in v0.3.0

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, BlockQuote, ExpandableBlockQuote, Code, Pre, PreCode, TextUrl and MentionName entities from a marked-up text. Can be called synchronously

func (*Client) PinChatMessage added in v0.0.13

func (client *Client) PinChatMessage(req *PinChatMessageRequest) (*Ok, error)

Pins a message in a chat. A message can be pinned only if messageProperties.can_be_pinned

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 v0.7.0

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. In all other cases there is no need to preliminary upload a file. Updates updateFile will be used to notify about upload progress. The upload will not be completed until the file is sent in a message

func (*Client) ProcessChatFolderNewChats added in v0.7.0

func (client *Client) ProcessChatFolderNewChats(req *ProcessChatFolderNewChatsRequest) (*Ok, error)

Process new chats added to a shareable chat folder by its owner

func (*Client) ProcessChatJoinRequest added in v0.5.0

func (client *Client) ProcessChatJoinRequest(req *ProcessChatJoinRequestRequest) (*Ok, error)

Handles a pending join request in a chat

func (*Client) ProcessChatJoinRequests added in v0.5.0

func (client *Client) ProcessChatJoinRequests(req *ProcessChatJoinRequestsRequest) (*Ok, error)

Handles all pending join requests for a given link in a chat

func (*Client) ProcessPushNotification added in v0.0.13

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 v0.7.0

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 v0.7.0

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 v0.7.0

func (client *Client) ReadAllMessageThreadMentions(req *ReadAllMessageThreadMentionsRequest) (*Ok, error)

Marks all mentions in a forum topic as read

func (*Client) ReadAllMessageThreadReactions added in v0.7.0

func (client *Client) ReadAllMessageThreadReactions(req *ReadAllMessageThreadReactionsRequest) (*Ok, error)

Marks all reactions in a forum topic as read

func (*Client) ReadChatList added in v0.7.0

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 added in v0.0.13

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) ReaddQuickReplyShortcutMessages added in v0.7.3

func (client *Client) ReaddQuickReplyShortcutMessages(req *ReaddQuickReplyShortcutMessagesRequest) (*QuickReplyMessages, error)

Readds quick reply messages which failed to add. 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 readded, 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 readded, null will be returned instead of the message

func (*Client) RecognizeSpeech added in v0.7.0

func (client *Client) RecognizeSpeech(req *RecognizeSpeechRequest) (*Ok, error)

Recognizes speech in a video note or a voice note message

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) RefundStarPayment added in v0.7.3

func (client *Client) RefundStarPayment(req *RefundStarPaymentRequest) (*Ok, error)

Refunds a previously done payment in Telegram Stars; for bots only

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 added in v0.1.0

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 v0.7.0

func (client *Client) RemoveAllFilesFromDownloads(req *RemoveAllFilesFromDownloadsRequest) (*Ok, error)

Removes all files from the file download list

func (*Client) RemoveBusinessConnectedBotFromChat added in v0.7.3

func (client *Client) RemoveBusinessConnectedBotFromChat(req *RemoveBusinessConnectedBotFromChatRequest) (*Ok, error)

Removes the connected business bot from a specific chat by adding the chat to businessRecipients.excluded_chat_ids

func (*Client) RemoveChatActionBar added in v0.2.0

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 v0.7.0

func (client *Client) RemoveFileFromDownloads(req *RemoveFileFromDownloadsRequest) (*Ok, error)

Removes a file from the file download list

func (*Client) RemoveInstalledBackground added in v0.7.2

func (client *Client) RemoveInstalledBackground(req *RemoveInstalledBackgroundRequest) (*Ok, error)

Removes background from the list of installed backgrounds

func (*Client) RemoveMessageReaction added in v0.7.0

func (client *Client) RemoveMessageReaction(req *RemoveMessageReactionRequest) (*Ok, error)

Removes a reaction from a message. A chosen reaction can always be removed

func (*Client) RemoveNotification added in v0.0.13

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 added in v0.0.13

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) RemovePendingPaidMessageReactions added in v0.7.3

func (client *Client) RemovePendingPaidMessageReactions(req *RemovePendingPaidMessageReactionsRequest) (*Ok, error)

Removes all pending paid reactions on a message

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 v0.7.0

func (client *Client) RemoveSavedNotificationSound(req *RemoveSavedNotificationSoundRequest) (*Ok, error)

Removes a notification sound from the list of saved notification sounds

func (*Client) RemoveSearchedForTag added in v0.7.3

func (client *Client) RemoveSearchedForTag(req *RemoveSearchedForTagRequest) (*Ok, error)

Removes a hashtag or a cashtag from the list of recently searched for hashtags or cashtags

func (*Client) RemoveStickerFromSet

func (client *Client) RemoveStickerFromSet(req *RemoveStickerFromSetRequest) (*Ok, error)

Removes a sticker from the set to which it belongs. The sticker set must be owned by the current user

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 v0.7.0

func (client *Client) ReorderActiveUsernames(req *ReorderActiveUsernamesRequest) (*Ok, error)

Changes order of active usernames of the current user

func (*Client) ReorderBotActiveUsernames added in v0.7.0

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) ReorderBotMediaPreviews added in v0.7.3

func (client *Client) ReorderBotMediaPreviews(req *ReorderBotMediaPreviewsRequest) (*Ok, error)

Changes order of media previews in the list of media previews of a bot

func (*Client) ReorderChatFolders added in v0.7.0

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) ReorderQuickReplyShortcuts added in v0.7.2

func (client *Client) ReorderQuickReplyShortcuts(req *ReorderQuickReplyShortcutsRequest) (*Ok, error)

Changes the order of quick reply shortcuts

func (*Client) ReorderSupergroupActiveUsernames added in v0.7.0

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 *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) ReplaceStickerInSet added in v0.7.2

func (client *Client) ReplaceStickerInSet(req *ReplaceStickerInSetRequest) (*Ok, error)

Replaces existing sticker in a set. The function is equivalent to removeStickerFromSet, then addStickerToSet, then setStickerPositionInSet

func (*Client) ReplaceVideoChatRtmpUrl added in v0.7.0

func (client *Client) ReplaceVideoChatRtmpUrl(req *ReplaceVideoChatRtmpUrlRequest) (*RtmpUrl, error)

Replaces the current RTMP URL for streaming to the chat; requires owner privileges

func (*Client) ReportAuthenticationCodeMissing added in v0.7.3

func (client *Client) ReportAuthenticationCodeMissing(req *ReportAuthenticationCodeMissingRequest) (*Ok, error)

Reports that authentication code wasn't delivered via SMS; for official mobile applications only. Works only when the current authorization state is authorizationStateWaitCode

func (*Client) ReportChat

func (client *Client) ReportChat(req *ReportChatRequest) (ReportChatResult, 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 added in v0.5.0

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) ReportChatSponsoredMessage added in v0.7.2

func (client *Client) ReportChatSponsoredMessage(req *ReportChatSponsoredMessageRequest) (ReportChatSponsoredMessageResult, error)

Reports a sponsored message to Telegram moderators

func (*Client) ReportMessageReactions added in v0.7.0

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 messageProperties.can_report_reactions

func (*Client) ReportPhoneNumberCodeMissing added in v0.7.3

func (client *Client) ReportPhoneNumberCodeMissing(req *ReportPhoneNumberCodeMissingRequest) (*Ok, error)

Reports that authentication code wasn't delivered via SMS to the specified phone number; for official mobile applications only

func (*Client) ReportStory added in v0.7.0

func (client *Client) ReportStory(req *ReportStoryRequest) (ReportStoryResult, error)

Reports a story to the Telegram moderators

func (*Client) ReportSupergroupAntiSpamFalsePositive added in v0.7.0

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

func (client *Client) RequestAuthenticationPasswordRecovery() (*Ok, error)

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 added in v0.2.0

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

func (client *Client) ResendAuthenticationCode(req *ResendAuthenticationCodeRequest) (*Ok, error)

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) 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 v0.7.0

func (client *Client) ResendLoginEmailAddressCode() (*EmailAddressAuthenticationCodeInfo, error)

Resends the login email address verification code

func (*Client) ResendMessages added in v0.1.0

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) ResendPhoneNumberCode added in v0.7.3

func (client *Client) ResendPhoneNumberCode(req *ResendPhoneNumberCodeRequest) (*AuthenticationCodeInfo, error)

Resends the authentication code sent to a phone number. Works only if the previously received authenticationCodeInfo next_code_type was not null and the server-specified timeout has passed

func (*Client) ResendRecoveryEmailAddressCode added in v0.0.13

func (client *Client) ResendRecoveryEmailAddressCode() (*PasswordState, error)

Resends the 2-step verification recovery email address verification code

func (*Client) ResetAllNotificationSettings

func (client *Client) ResetAllNotificationSettings() (*Ok, error)

Resets all chat and scope notification settings to their default values. By default, all chats are unmuted and message previews are shown

func (*Client) ResetAuthenticationEmailAddress added in v0.7.0

func (client *Client) ResetAuthenticationEmailAddress() (*Ok, error)

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) ResetInstalledBackgrounds added in v0.7.2

func (client *Client) ResetInstalledBackgrounds() (*Ok, error)

Resets list of installed backgrounds to its default value

func (*Client) ResetNetworkStatistics

func (client *Client) ResetNetworkStatistics() (*Ok, error)

Resets all network data usage statistics to zero. Can be called before authorization

func (*Client) ResetPassword added in v0.5.0

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) ReuseStarSubscription added in v0.7.3

func (client *Client) ReuseStarSubscription(req *ReuseStarSubscriptionRequest) (*Ok, error)

Reuses an active Telegram Star subscription to a channel chat and joins the chat again

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 *Client) RevokeGroupCallInviteLink(req *RevokeGroupCallInviteLinkRequest) (*Ok, error)

Revokes invite link for a group call. Requires groupCall.can_be_managed group call flag

func (*Client) SaveApplicationLogEvent added in v0.0.13

func (client *Client) SaveApplicationLogEvent(req *SaveApplicationLogEventRequest) (*Ok, error)

Saves application log event on the server. Can be called before authorization

func (*Client) SavePreparedInlineMessage added in v0.7.4

func (client *Client) SavePreparedInlineMessage(req *SavePreparedInlineMessageRequest) (*PreparedInlineMessageId, error)

Saves an inline message to be sent by the given user; for bots only

func (*Client) SearchBackground added in v0.1.0

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 if the chat is a channel

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) 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 added in v0.1.0

func (client *Client) SearchEmojis(req *SearchEmojisRequest) (*EmojiKeywords, error)

Searches for emojis by keywords. Supported only if the file database is enabled. Order of results is unspecified

func (*Client) SearchFileDownloads added in v0.7.0

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 v0.7.0

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) SearchPublicMessagesByTag added in v0.7.3

func (client *Client) SearchPublicMessagesByTag(req *SearchPublicMessagesByTagRequest) (*FoundMessages, error)

Searches for public channel posts containing the given hashtag or cashtag. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit

func (*Client) SearchPublicStoriesByLocation added in v0.7.3

func (client *Client) SearchPublicStoriesByLocation(req *SearchPublicStoriesByLocationRequest) (*FoundStories, error)

Searches for public stories by the given address location. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit

func (*Client) SearchPublicStoriesByTag added in v0.7.3

func (client *Client) SearchPublicStoriesByTag(req *SearchPublicStoriesByTagRequest) (*FoundStories, error)

Searches for public stories containing the given hashtag or cashtag. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit

func (*Client) SearchPublicStoriesByVenue added in v0.7.3

func (client *Client) SearchPublicStoriesByVenue(req *SearchPublicStoriesByVenueRequest) (*FoundStories, error)

Searches for public stories from the given venue. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit

func (*Client) SearchQuote added in v0.7.1

func (client *Client) SearchQuote(req *SearchQuoteRequest) (*FoundPosition, error)

deprecated Searches for a given quote in a text. Returns found quote start position in UTF-16 code units. Returns a 404 error if the quote is not found. Can be called synchronously

func (*Client) SearchRecentlyFoundChats added in v0.7.0

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) SearchSavedMessages added in v0.7.2

func (client *Client) SearchSavedMessages(req *SearchSavedMessagesRequest) (*FoundChatMessages, error)

Searches for messages tagged by the given reaction and with the given words in the Saved Messages chat; for Telegram Premium users only. 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 and can be smaller than the specified limit

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 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 v0.7.0

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 v0.7.0

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 v0.7.0

func (client *Client) SearchUserByToken(req *SearchUserByTokenRequest) (*User, error)

Searches a user by a token from the user's link

func (*Client) SearchWebApp added in v0.7.0

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) SellGift added in v0.7.3

func (client *Client) SellGift(req *SellGiftRequest) (*Ok, error)

Sells a gift received by the current user for Telegram Stars

func (*Client) Send

func (client *Client) Send(req Request) (*Response, error)

func (*Client) SendAuthenticationFirebaseSms added in v0.7.0

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; requires can_invite_users member right. 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) SendBusinessMessage added in v0.7.2

func (client *Client) SendBusinessMessage(req *SendBusinessMessageRequest) (*BusinessMessage, error)

Sends a message on behalf of a business account; for bots only. Returns the message after it was sent

func (*Client) SendBusinessMessageAlbum added in v0.7.2

func (client *Client) SendBusinessMessageAlbum(req *SendBusinessMessageAlbumRequest) (*BusinessMessages, error)

Sends 2-10 messages grouped together into an album on behalf of a business account; for bots only. 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) SendCallDebugInformation

func (client *Client) SendCallDebugInformation(req *SendCallDebugInformationRequest) (*Ok, error)

Sends debug information for a call to Telegram servers

func (*Client) SendCallLog added in v0.7.0

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 added in v0.3.0

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) 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) SendGift added in v0.7.3

func (client *Client) SendGift(req *SendGiftRequest) (*Ok, error)

Sends a gift to another user. May return an error with a message "STARGIFT_USAGE_LIMITED" if the gift was sold out

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) SendPhoneNumberCode added in v0.7.3

func (client *Client) SendPhoneNumberCode(req *SendPhoneNumberCodeRequest) (*AuthenticationCodeInfo, error)

Sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success, returns information about the sent code

func (*Client) SendPhoneNumberFirebaseSms added in v0.7.3

func (client *Client) SendPhoneNumberFirebaseSms(req *SendPhoneNumberFirebaseSmsRequest) (*Ok, error)

Sends Firebase Authentication SMS to the specified phone number. Works only when received a code of the type authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos

func (*Client) SendQuickReplyShortcutMessages added in v0.7.2

func (client *Client) SendQuickReplyShortcutMessages(req *SendQuickReplyShortcutMessagesRequest) (*Messages, error)

Sends messages from a quick reply shortcut. Requires Telegram Business subscription

func (*Client) SendStory added in v0.7.0

func (client *Client) SendStory(req *SendStoryRequest) (*Story, error)

Sends a new story to a chat; requires can_post_stories right for supergroup and channel chats. Returns a temporary story

func (*Client) SendWebAppCustomRequest added in v0.7.0

func (client *Client) SendWebAppCustomRequest(req *SendWebAppCustomRequestRequest) (*CustomRequestResult, error)

Sends a custom request from a Web App

func (*Client) SendWebAppData added in v0.7.0

func (client *Client) SendWebAppData(req *SendWebAppDataRequest) (*Ok, error)

Sends data received from a keyboardButtonTypeWebApp Web App to a bot

func (*Client) SetAccentColor added in v0.7.1

func (client *Client) SetAccentColor(req *SetAccentColorRequest) (*Ok, error)

Changes accent color and background custom emoji for the current user; for Telegram Premium users only

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) SetApplicationVerificationToken added in v0.7.3

func (client *Client) SetApplicationVerificationToken(req *SetApplicationVerificationTokenRequest) (*Ok, error)

Application verification has been completed. Can be called before authorization

func (*Client) SetArchiveChatListSettings added in v0.7.0

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 v0.7.0

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 added in v0.1.0

func (client *Client) SetAutoDownloadSettings(req *SetAutoDownloadSettingsRequest) (*Ok, error)

Sets auto-download settings

func (*Client) SetAutosaveSettings added in v0.7.0

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) SetBio

func (client *Client) SetBio(req *SetBioRequest) (*Ok, error)

Changes the bio of the current user

func (*Client) SetBirthdate added in v0.7.2

func (client *Client) SetBirthdate(req *SetBirthdateRequest) (*Ok, error)

Changes the birthdate of the current user

func (*Client) SetBotInfoDescription added in v0.7.0

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 v0.7.0

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 v0.7.0

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 v0.7.0

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) SetBusinessAwayMessageSettings added in v0.7.2

func (client *Client) SetBusinessAwayMessageSettings(req *SetBusinessAwayMessageSettingsRequest) (*Ok, error)

Changes the business away message settings of the current user. Requires Telegram Business subscription

func (*Client) SetBusinessConnectedBot added in v0.7.2

func (client *Client) SetBusinessConnectedBot(req *SetBusinessConnectedBotRequest) (*Ok, error)

Adds or changes business bot that is connected to the current user account

func (*Client) SetBusinessGreetingMessageSettings added in v0.7.2

func (client *Client) SetBusinessGreetingMessageSettings(req *SetBusinessGreetingMessageSettingsRequest) (*Ok, error)

Changes the business greeting message settings of the current user. Requires Telegram Business subscription

func (*Client) SetBusinessLocation added in v0.7.2

func (client *Client) SetBusinessLocation(req *SetBusinessLocationRequest) (*Ok, error)

Changes the business location of the current user. Requires Telegram Business subscription

func (*Client) SetBusinessMessageIsPinned added in v0.7.3

func (client *Client) SetBusinessMessageIsPinned(req *SetBusinessMessageIsPinnedRequest) (*Ok, error)

Pins or unpins a message sent on behalf of a business account; for bots only

func (*Client) SetBusinessOpeningHours added in v0.7.2

func (client *Client) SetBusinessOpeningHours(req *SetBusinessOpeningHoursRequest) (*Ok, error)

Changes the business opening hours of the current user. Requires Telegram Business subscription

func (*Client) SetBusinessStartPage added in v0.7.3

func (client *Client) SetBusinessStartPage(req *SetBusinessStartPageRequest) (*Ok, error)

Changes the business start page of the current user. Requires Telegram Business subscription

func (*Client) SetChatAccentColor added in v0.7.1

func (client *Client) SetChatAccentColor(req *SetChatAccentColorRequest) (*Ok, error)

Changes accent color and background custom emoji of a channel chat. Requires can_change_info administrator right

func (*Client) SetChatActiveStoriesList added in v0.7.0

func (client *Client) SetChatActiveStoriesList(req *SetChatActiveStoriesListRequest) (*Ok, error)

Changes story list in which stories from the chat are shown

func (*Client) SetChatAvailableReactions added in v0.7.0

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 member right

func (*Client) SetChatBackground added in v0.7.0

func (client *Client) SetChatBackground(req *SetChatBackgroundRequest) (*Ok, error)

Sets the background in a specific chat. Supported only in private and secret chats with non-deleted users, and in chats with sufficient boost level and can_change_info administrator right

func (*Client) SetChatClientData

func (client *Client) SetChatClientData(req *SetChatClientDataRequest) (*Ok, error)

Changes application-specific data associated with a chat

func (*Client) SetChatDescription added in v0.1.0

func (client *Client) SetChatDescription(req *SetChatDescriptionRequest) (*Ok, error)

Changes information about a chat. Available for basic groups, supergroups, and channels. Requires can_change_info member right

func (*Client) SetChatDiscussionGroup added in v0.2.0

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) SetChatEmojiStatus added in v0.7.2

func (client *Client) SetChatEmojiStatus(req *SetChatEmojiStatusRequest) (*Ok, error)

Changes the emoji status of a chat. Use chatBoostLevelFeatures.can_set_emoji_status to check whether an emoji status can be set. Requires can_change_info administrator right

func (*Client) SetChatLocation added in v0.2.0

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; requires can_invite_users member right to add a chat member, can_promote_members administrator right to change administrator rights of the member, and can_restrict_members administrator right to change restrictions of a user. 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 v0.7.0

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 added in v0.5.0

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 added in v0.1.0

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 member right

func (*Client) SetChatPinnedStories added in v0.7.3

func (client *Client) SetChatPinnedStories(req *SetChatPinnedStoriesRequest) (*Ok, error)

Changes the list of pinned stories on a chat page; requires can_edit_stories right in the chat

func (*Client) SetChatProfileAccentColor added in v0.7.2

func (client *Client) SetChatProfileAccentColor(req *SetChatProfileAccentColorRequest) (*Ok, error)

Changes accent color and background custom emoji for profile of a supergroup or channel chat. Requires can_change_info administrator right

func (*Client) SetChatSlowModeDelay added in v0.2.0

func (client *Client) SetChatSlowModeDelay(req *SetChatSlowModeDelayRequest) (*Ok, error)

Changes the slow mode delay of a chat. Available only for supergroups; requires can_restrict_members right

func (*Client) SetChatTheme added in v0.5.0

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 member right

func (*Client) SetCloseFriends added in v0.7.0

func (client *Client) SetCloseFriends(req *SetCloseFriendsRequest) (*Ok, error)

Changes the list of close friends of the current user

func (*Client) SetCommands added in v0.3.0

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 v0.7.0

func (client *Client) SetCustomEmojiStickerSetThumbnail(req *SetCustomEmojiStickerSetThumbnailRequest) (*Ok, error)

Sets a custom emoji sticker set thumbnail

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) SetDefaultBackground added in v0.7.2

func (client *Client) SetDefaultBackground(req *SetDefaultBackgroundRequest) (*Background, error)

Sets default background for chats; adds the background to the list of installed backgrounds

func (*Client) SetDefaultChannelAdministratorRights added in v0.7.0

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 v0.7.0

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 v0.7.0

func (client *Client) SetDefaultMessageAutoDeleteTime(req *SetDefaultMessageAutoDeleteTimeRequest) (*Ok, error)

Changes the default message auto-delete time for new chats

func (*Client) SetDefaultReactionType added in v0.7.0

func (client *Client) SetDefaultReactionType(req *SetDefaultReactionTypeRequest) (*Ok, error)

Changes type of default reaction for the current user

func (*Client) SetEmojiStatus added in v0.7.0

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 v0.7.0

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 added in v0.5.0

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 added in v0.5.0

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 added in v0.5.0

func (client *Client) SetGroupCallTitle(req *SetGroupCallTitleRequest) (*Ok, error)

Sets group call title. Requires groupCall.can_be_managed group call flag

func (*Client) SetInactiveSessionTtl added in v0.5.0

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) SetLogStream added in v0.0.13

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 added in v0.0.13

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 added in v0.0.13

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 v0.7.0

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 an email address, call checkLoginEmailAddressCode directly

func (*Client) SetMenuButton added in v0.7.0

func (client *Client) SetMenuButton(req *SetMenuButtonRequest) (*Ok, error)

Sets menu button for the given user or for all users; for bots only

func (*Client) SetMessageFactCheck added in v0.7.3

func (client *Client) SetMessageFactCheck(req *SetMessageFactCheckRequest) (*Ok, error)

Changes the fact-check of a message. Can be only used if messageProperties.can_set_fact_check == true

func (*Client) SetMessageReactions added in v0.7.2

func (client *Client) SetMessageReactions(req *SetMessageReactionsRequest) (*Ok, error)

Sets reactions on a message; for bots only

func (*Client) SetMessageSenderBlockList added in v0.7.0

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) SetNewChatPrivacySettings added in v0.7.2

func (client *Client) SetNewChatPrivacySettings(req *SetNewChatPrivacySettingsRequest) (*Ok, error)

Changes privacy settings for new chat creation; can be used only if getOption("can_set_new_chat_privacy_settings")

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) SetPersonalChat added in v0.7.2

func (client *Client) SetPersonalChat(req *SetPersonalChatRequest) (*Ok, error)

Changes the personal chat of the current user

func (*Client) SetPinnedChats

func (client *Client) SetPinnedChats(req *SetPinnedChatsRequest) (*Ok, error)

Changes the order of pinned chats

func (*Client) SetPinnedForumTopics added in v0.7.0

func (client *Client) SetPinnedForumTopics(req *SetPinnedForumTopicsRequest) (*Ok, error)

Changes the order of pinned forum topics; requires can_manage_topics right in the supergroup

func (*Client) SetPinnedSavedMessagesTopics added in v0.7.2

func (client *Client) SetPinnedSavedMessagesTopics(req *SetPinnedSavedMessagesTopicsRequest) (*Ok, error)

Changes the order of pinned Saved Messages topics

func (*Client) SetPollAnswer added in v0.0.13

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) SetProfileAccentColor added in v0.7.1

func (client *Client) SetProfileAccentColor(req *SetProfileAccentColorRequest) (*Ok, error)

Changes accent color and background custom emoji for profile of the current user; for Telegram Premium users only

func (*Client) SetProfilePhoto

func (client *Client) SetProfilePhoto(req *SetProfilePhotoRequest) (*Ok, error)

Changes a profile photo for the current user

func (*Client) SetQuickReplyShortcutName added in v0.7.2

func (client *Client) SetQuickReplyShortcutName(req *SetQuickReplyShortcutNameRequest) (*Ok, error)

Changes name of a quick reply shortcut

func (*Client) SetReactionNotificationSettings added in v0.7.3

func (client *Client) SetReactionNotificationSettings(req *SetReactionNotificationSettingsRequest) (*Ok, error)

Changes notification settings for reactions

func (*Client) SetReadDatePrivacySettings added in v0.7.2

func (client *Client) SetReadDatePrivacySettings(req *SetReadDatePrivacySettingsRequest) (*Ok, error)

Changes privacy settings for message read date

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) SetSavedMessagesTagLabel added in v0.7.2

func (client *Client) SetSavedMessagesTagLabel(req *SetSavedMessagesTagLabelRequest) (*Ok, error)

Changes label of a Saved Messages tag; for Telegram Premium users only

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 v0.7.0

func (client *Client) SetStickerEmojis(req *SetStickerEmojisRequest) (*Ok, error)

Changes the list of emojis corresponding to a sticker. The sticker must belong to a regular or custom emoji sticker set that is owned by the current user

func (*Client) SetStickerKeywords added in v0.7.0

func (client *Client) SetStickerKeywords(req *SetStickerKeywordsRequest) (*Ok, error)

Changes the list of keywords of a sticker. The sticker must belong to a regular or custom emoji sticker set that is owned by the current user

func (*Client) SetStickerMaskPosition added in v0.7.0

func (client *Client) SetStickerMaskPosition(req *SetStickerMaskPositionRequest) (*Ok, error)

Changes the mask position of a mask sticker. The sticker must belong to a mask sticker set that is owned by the current user

func (*Client) SetStickerPositionInSet

func (client *Client) SetStickerPositionInSet(req *SetStickerPositionInSetRequest) (*Ok, error)

Changes the position of a sticker in the set to which it belongs. The sticker set must be owned by the current user

func (*Client) SetStickerSetThumbnail added in v0.3.0

func (client *Client) SetStickerSetThumbnail(req *SetStickerSetThumbnailRequest) (*Ok, error)

Sets a sticker set thumbnail

func (*Client) SetStickerSetTitle added in v0.7.0

func (client *Client) SetStickerSetTitle(req *SetStickerSetTitleRequest) (*Ok, error)

Sets a sticker set title

func (*Client) SetStoryPrivacySettings added in v0.7.0

func (client *Client) SetStoryPrivacySettings(req *SetStoryPrivacySettingsRequest) (*Ok, error)

Changes privacy settings of a story. The method can be called only for stories posted on behalf of the current user and if story.can_be_edited == true

func (*Client) SetStoryReaction added in v0.7.0

func (client *Client) SetStoryReaction(req *SetStoryReactionRequest) (*Ok, error)

Changes chosen reaction on a story that has already been sent

func (*Client) SetSupergroupCustomEmojiStickerSet added in v0.7.2

func (client *Client) SetSupergroupCustomEmojiStickerSet(req *SetSupergroupCustomEmojiStickerSetRequest) (*Ok, error)

Changes the custom emoji sticker set of a supergroup; requires can_change_info administrator right. The chat must have at least chatBoostFeatures.min_custom_emoji_sticker_set_boost_level boost level to pass the corresponding color

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) SetSupergroupUnrestrictBoostCount added in v0.7.2

func (client *Client) SetSupergroupUnrestrictBoostCount(req *SetSupergroupUnrestrictBoostCountRequest) (*Ok, error)

Changes the number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; requires can_restrict_members 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) SetUserEmojiStatus added in v0.7.4

func (client *Client) SetUserEmojiStatus(req *SetUserEmojiStatusRequest) (*Ok, error)

Changes the emoji status of a user; for bots only

func (*Client) SetUserPersonalProfilePhoto added in v0.7.0

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 v0.7.0

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 added in v0.5.0

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 v0.7.0

func (client *Client) ShareChatWithBot(req *ShareChatWithBotRequest) (*Ok, error)

Shares a chat after pressing a keyboardButtonTypeRequestChat button with the bot

func (*Client) SharePhoneNumber added in v0.2.0

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) ShareUsersWithBot added in v0.7.2

func (client *Client) ShareUsersWithBot(req *ShareUsersWithBotRequest) (*Ok, error)

Shares users after pressing a keyboardButtonTypeRequestUsers button with the bot

func (*Client) StartGroupCallRecording added in v0.5.0

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 added in v0.5.0

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 added in v0.5.0

func (client *Client) StartScheduledGroupCall(req *StartScheduledGroupCallRequest) (*Ok, error)

Starts a scheduled group call

func (*Client) StopBusinessPoll added in v0.7.3

func (client *Client) StopBusinessPoll(req *StopBusinessPollRequest) (*BusinessMessage, error)

Stops a poll sent on behalf of a business account; for bots only

func (*Client) StopPoll added in v0.0.13

func (client *Client) StopPoll(req *StopPollRequest) (*Ok, error)

Stops a poll

func (*Client) SuggestUserProfilePhoto added in v0.7.0

func (client *Client) SuggestUserProfilePhoto(req *SuggestUserProfilePhotoRequest) (*Ok, error)

Suggests a profile photo to another regular user with common messages

func (*Client) SynchronizeLanguagePack added in v0.0.13

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

func (client *Client) TerminateAllOtherSessions() (*Ok, error)

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

func (client *Client) TestCallEmpty() (*Ok, error)

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

func (client *Client) TestGetDifference() (*Ok, error)

Forces an updates.getDifference call to the Telegram servers; for testing only

func (*Client) TestNetwork

func (client *Client) TestNetwork() (*Ok, error)

Sends a simple network request to the Telegram servers; for testing only. Can be called before authorization

func (*Client) TestProxy added in v0.1.0

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 added in v0.1.0

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

func (client *Client) TestUseUpdate() (Update, error)

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 v0.7.0

func (client *Client) ToggleAllDownloadsArePaused(req *ToggleAllDownloadsArePausedRequest) (*Ok, error)

Changes pause state of all files in the file download list

func (*Client) ToggleBotCanManageEmojiStatus added in v0.7.4

func (client *Client) ToggleBotCanManageEmojiStatus(req *ToggleBotCanManageEmojiStatusRequest) (*Ok, error)

Toggles whether the bot can manage emoji status of the current user

func (*Client) ToggleBotIsAddedToAttachmentMenu added in v0.7.0

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 v0.7.0

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) ToggleBusinessConnectedBotChatIsPaused added in v0.7.3

func (client *Client) ToggleBusinessConnectedBotChatIsPaused(req *ToggleBusinessConnectedBotChatIsPausedRequest) (*Ok, error)

Pauses or resumes the connected business bot in a specific chat

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) ToggleChatFolderTags added in v0.7.2

func (client *Client) ToggleChatFolderTags(req *ToggleChatFolderTagsRequest) (*Ok, error)

Toggles whether chat folder tags are enabled

func (*Client) ToggleChatHasProtectedContent added in v0.5.0

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 v0.7.0

func (client *Client) ToggleChatIsTranslatable(req *ToggleChatIsTranslatableRequest) (*Ok, error)

Changes the translatable state of a chat

func (*Client) ToggleChatViewAsTopics added in v0.7.1

func (client *Client) ToggleChatViewAsTopics(req *ToggleChatViewAsTopicsRequest) (*Ok, error)

Changes the view_as_topics setting of a forum chat or Saved Messages

func (*Client) ToggleDownloadIsPaused added in v0.7.0

func (client *Client) ToggleDownloadIsPaused(req *ToggleDownloadIsPausedRequest) (*Ok, error)

Changes pause state of a file in the file download list

func (*Client) ToggleForumTopicIsClosed added in v0.7.0

func (client *Client) ToggleForumTopicIsClosed(req *ToggleForumTopicIsClosedRequest) (*Ok, error)

Toggles whether a topic is closed in a forum supergroup chat; requires can_manage_topics right in the supergroup unless the user is creator of the topic

func (*Client) ToggleForumTopicIsPinned added in v0.7.0

func (client *Client) ToggleForumTopicIsPinned(req *ToggleForumTopicIsPinnedRequest) (*Ok, error)

Changes the pinned state of a forum topic; requires can_manage_topics right in the supergroup. There can be up to getOption("pinned_forum_topic_count_max") pinned forum topics

func (*Client) ToggleGeneralForumTopicIsHidden added in v0.7.0

func (client *Client) ToggleGeneralForumTopicIsHidden(req *ToggleGeneralForumTopicIsHiddenRequest) (*Ok, error)

Toggles whether a General topic is hidden in a forum supergroup chat; requires can_manage_topics right in the supergroup

func (*Client) ToggleGiftIsSaved added in v0.7.3

func (client *Client) ToggleGiftIsSaved(req *ToggleGiftIsSavedRequest) (*Ok, error)

Toggles whether a gift is shown on the current user's profile page

func (*Client) ToggleGroupCallEnabledStartNotification added in v0.5.0

func (client *Client) ToggleGroupCallEnabledStartNotification(req *ToggleGroupCallEnabledStartNotificationRequest) (*Ok, error)

Toggles whether the current user will receive a notification when the group call starts; scheduled group calls only

func (*Client) ToggleGroupCallIsMyVideoEnabled added in v0.5.0

func (client *Client) ToggleGroupCallIsMyVideoEnabled(req *ToggleGroupCallIsMyVideoEnabledRequest) (*Ok, error)

Toggles whether current user's video is enabled

func (*Client) ToggleGroupCallIsMyVideoPaused added in v0.5.0

func (client *Client) ToggleGroupCallIsMyVideoPaused(req *ToggleGroupCallIsMyVideoPausedRequest) (*Ok, error)

Toggles whether current user's video is paused

func (*Client) ToggleGroupCallMuteNewParticipants added in v0.5.0

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 added in v0.5.0

func (client *Client) ToggleGroupCallParticipantIsHandRaised(req *ToggleGroupCallParticipantIsHandRaisedRequest) (*Ok, error)

Toggles whether a group call participant hand is rased

func (*Client) ToggleGroupCallParticipantIsMuted added in v0.5.0

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 added in v0.5.0

func (client *Client) ToggleGroupCallScreenSharingIsPaused(req *ToggleGroupCallScreenSharingIsPausedRequest) (*Ok, error)

Pauses or unpauses screen sharing in a joined group call

func (*Client) ToggleHasSponsoredMessagesEnabled added in v0.7.3

func (client *Client) ToggleHasSponsoredMessagesEnabled(req *ToggleHasSponsoredMessagesEnabledRequest) (*Ok, error)

Toggles whether the current user has sponsored messages enabled. The setting has no effect for users without Telegram Premium for which sponsored messages are always enabled

func (*Client) TogglePaidMessageReactionIsAnonymous added in v0.7.3

func (client *Client) TogglePaidMessageReactionIsAnonymous(req *TogglePaidMessageReactionIsAnonymousRequest) (*Ok, error)

Changes whether the paid message reaction of the user to a message is anonymous. The message must have paid reaction added by the user

func (*Client) ToggleSavedMessagesTopicIsPinned added in v0.7.2

func (client *Client) ToggleSavedMessagesTopicIsPinned(req *ToggleSavedMessagesTopicIsPinnedRequest) (*Ok, error)

Changes the pinned state of a Saved Messages topic. There can be up to getOption("pinned_saved_messages_topic_count_max") pinned topics. The limit can be increased with Telegram Premium

func (*Client) ToggleSessionCanAcceptCalls added in v0.5.0

func (client *Client) ToggleSessionCanAcceptCalls(req *ToggleSessionCanAcceptCallsRequest) (*Ok, error)

Toggles whether a session can accept incoming calls

func (*Client) ToggleSessionCanAcceptSecretChats added in v0.5.0

func (client *Client) ToggleSessionCanAcceptSecretChats(req *ToggleSessionCanAcceptSecretChatsRequest) (*Ok, error)

Toggles whether a session can accept incoming secret chats

func (*Client) ToggleStoryIsPostedToChatPage added in v0.7.3

func (client *Client) ToggleStoryIsPostedToChatPage(req *ToggleStoryIsPostedToChatPageRequest) (*Ok, error)

Toggles whether a story is accessible after expiration. Can be called only if story.can_toggle_is_posted_to_chat_page == true

func (*Client) ToggleSupergroupCanHaveSponsoredMessages added in v0.7.3

func (client *Client) ToggleSupergroupCanHaveSponsoredMessages(req *ToggleSupergroupCanHaveSponsoredMessagesRequest) (*Ok, error)

Toggles whether sponsored messages are shown in the channel chat; requires owner privileges in the channel. The chat must have at least chatBoostFeatures.min_sponsored_message_disable_boost_level boost level to disable sponsored messages

func (*Client) ToggleSupergroupHasAggressiveAntiSpamEnabled added in v0.7.0

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 v0.7.0

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 member right

func (*Client) ToggleSupergroupIsBroadcastGroup added in v0.5.0

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 v0.7.0

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 v0.7.0

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 v0.7.0

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 or link to the account is added to sent messages in a channel; requires can_change_info member right

func (*Client) ToggleSupergroupUsernameIsActive added in v0.7.0

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 v0.7.0

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 added in v0.2.0

func (client *Client) TransferChatOwnership(req *TransferChatOwnershipRequest) (*Ok, error)

Changes the owner of a chat; requires owner privileges in 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 v0.7.0

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 v0.7.0

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 added in v0.3.0

func (client *Client) UnpinAllChatMessages(req *UnpinAllChatMessagesRequest) (*Ok, error)

Removes all pinned messages from a chat; requires can_pin_messages member right if the chat is a basic group or supergroup, or can_edit_messages administrator right if the chat is a channel

func (*Client) UnpinAllMessageThreadMessages added in v0.7.0

func (client *Client) UnpinAllMessageThreadMessages(req *UnpinAllMessageThreadMessagesRequest) (*Ok, error)

Removes all pinned messages from a forum topic; requires can_pin_messages member right in the supergroup

func (*Client) UnpinChatMessage added in v0.0.13

func (client *Client) UnpinChatMessage(req *UnpinChatMessageRequest) (*Ok, error)

Removes a pinned message from a chat; requires can_pin_messages member right if the chat is a basic group or supergroup, or can_edit_messages administrator right if the chat is a 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 owner 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 v0.7.0

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 added in v0.0.13

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 CloseBirthdayUser added in v0.7.2

type CloseBirthdayUser struct {

	// User identifier
	UserId int64 `json:"user_id"`
	// Birthdate of the user
	Birthdate *Birthdate `json:"birthdate"`
	// contains filtered or unexported fields
}

Describes a user that had or will have a birthday soon

func UnmarshalCloseBirthdayUser added in v0.7.2

func UnmarshalCloseBirthdayUser(data json.RawMessage) (*CloseBirthdayUser, error)

func (*CloseBirthdayUser) GetClass added in v0.7.2

func (*CloseBirthdayUser) GetClass() string

func (*CloseBirthdayUser) GetType added in v0.7.2

func (*CloseBirthdayUser) GetType() string

func (*CloseBirthdayUser) MarshalJSON added in v0.7.2

func (entity *CloseBirthdayUser) MarshalJSON() ([]byte, error)

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 v0.7.0

type CloseStoryRequest struct {
	// The identifier of the sender of the story to close
	StorySenderChatId int64 `json:"story_sender_chat_id"`
	// The identifier of the story
	StoryId int32 `json:"story_id"`
}

type CloseWebAppRequest added in v0.7.0

type CloseWebAppRequest struct {
	// Identifier of Web App launch, received from openWebApp
	WebAppLaunchId JsonInt64 `json:"web_app_launch_id"`
}

type ClosedVectorPath added in v0.5.0

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. The coordinate system origin is in the upper-left corner

func UnmarshalClosedVectorPath added in v0.5.0

func UnmarshalClosedVectorPath(data json.RawMessage) (*ClosedVectorPath, error)

func (*ClosedVectorPath) GetClass added in v0.5.0

func (*ClosedVectorPath) GetClass() string

func (*ClosedVectorPath) GetType added in v0.5.0

func (*ClosedVectorPath) GetType() string

func (*ClosedVectorPath) MarshalJSON added in v0.5.0

func (entity *ClosedVectorPath) MarshalJSON() ([]byte, error)

func (*ClosedVectorPath) UnmarshalJSON added in v0.5.0

func (closedVectorPath *ClosedVectorPath) UnmarshalJSON(data []byte) error

type CollectibleItemInfo added in v0.7.2

type CollectibleItemInfo struct {

	// Point in time (Unix timestamp) when the item was purchased
	PurchaseDate int32 `json:"purchase_date"`
	// 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 item
	Cryptocurrency string `json:"cryptocurrency"`
	// The paid amount, in the smallest units of the cryptocurrency
	CryptocurrencyAmount JsonInt64 `json:"cryptocurrency_amount"`
	// Individual URL for the item on https://fragment.com
	Url string `json:"url"`
	// contains filtered or unexported fields
}

Contains information about a collectible item and its last purchase

func UnmarshalCollectibleItemInfo added in v0.7.2

func UnmarshalCollectibleItemInfo(data json.RawMessage) (*CollectibleItemInfo, error)

func (*CollectibleItemInfo) GetClass added in v0.7.2

func (*CollectibleItemInfo) GetClass() string

func (*CollectibleItemInfo) GetType added in v0.7.2

func (*CollectibleItemInfo) GetType() string

func (*CollectibleItemInfo) MarshalJSON added in v0.7.2

func (entity *CollectibleItemInfo) MarshalJSON() ([]byte, error)

type CollectibleItemType added in v0.7.2

type CollectibleItemType interface {
	CollectibleItemTypeType() string
}

Describes a collectible item that can be purchased at https://fragment.com

func UnmarshalCollectibleItemType added in v0.7.2

func UnmarshalCollectibleItemType(data json.RawMessage) (CollectibleItemType, error)

func UnmarshalListOfCollectibleItemType added in v0.7.2

func UnmarshalListOfCollectibleItemType(dataList []json.RawMessage) ([]CollectibleItemType, error)

type CollectibleItemTypePhoneNumber added in v0.7.2

type CollectibleItemTypePhoneNumber struct {

	// The phone number
	PhoneNumber string `json:"phone_number"`
	// contains filtered or unexported fields
}

A phone number

func UnmarshalCollectibleItemTypePhoneNumber added in v0.7.2

func UnmarshalCollectibleItemTypePhoneNumber(data json.RawMessage) (*CollectibleItemTypePhoneNumber, error)

func (*CollectibleItemTypePhoneNumber) CollectibleItemTypeType added in v0.7.2

func (*CollectibleItemTypePhoneNumber) CollectibleItemTypeType() string

func (*CollectibleItemTypePhoneNumber) GetClass added in v0.7.2

func (*CollectibleItemTypePhoneNumber) GetType added in v0.7.2

func (*CollectibleItemTypePhoneNumber) MarshalJSON added in v0.7.2

func (entity *CollectibleItemTypePhoneNumber) MarshalJSON() ([]byte, error)

type CollectibleItemTypeUsername added in v0.7.2

type CollectibleItemTypeUsername struct {

	// The username
	Username string `json:"username"`
	// contains filtered or unexported fields
}

A username

func UnmarshalCollectibleItemTypeUsername added in v0.7.2

func UnmarshalCollectibleItemTypeUsername(data json.RawMessage) (*CollectibleItemTypeUsername, error)

func (*CollectibleItemTypeUsername) CollectibleItemTypeType added in v0.7.2

func (*CollectibleItemTypeUsername) CollectibleItemTypeType() string

func (*CollectibleItemTypeUsername) GetClass added in v0.7.2

func (*CollectibleItemTypeUsername) GetClass() string

func (*CollectibleItemTypeUsername) GetType added in v0.7.2

func (*CollectibleItemTypeUsername) MarshalJSON added in v0.7.2

func (entity *CollectibleItemTypeUsername) MarshalJSON() ([]byte, error)

type CommitPendingPaidMessageReactionsRequest added in v0.7.3

type CommitPendingPaidMessageReactionsRequest 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 ConfirmQrCodeAuthenticationRequest added in v0.2.0

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 v0.7.0

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 added in v0.3.2

func UnmarshalListOfConnectionState(dataList []json.RawMessage) ([]ConnectionState, error)

type ConnectionStateConnecting

type ConnectionStateConnecting struct {
	// contains filtered or unexported fields
}

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
}

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) GetType

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 expected to be 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
}

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) GetType

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) GetClass

func (*Contact) GetClass() string

func (*Contact) GetType

func (*Contact) GetType() string

func (*Contact) MarshalJSON

func (entity *Contact) MarshalJSON() ([]byte, error)

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) GetClass

func (*Count) GetClass() string

func (*Count) GetType

func (*Count) GetType() string

func (*Count) MarshalJSON

func (entity *Count) MarshalJSON() ([]byte, error)

type Countries added in v0.3.0

type Countries struct {

	// The list of countries
	Countries []*CountryInfo `json:"countries"`
	// contains filtered or unexported fields
}

Contains information about countries

func UnmarshalCountries added in v0.3.0

func UnmarshalCountries(data json.RawMessage) (*Countries, error)

func (*Countries) GetClass added in v0.3.0

func (*Countries) GetClass() string

func (*Countries) GetType added in v0.3.0

func (*Countries) GetType() string

func (*Countries) MarshalJSON added in v0.3.0

func (entity *Countries) MarshalJSON() ([]byte, error)

type CountryInfo added in v0.3.0

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 added in v0.3.0

func UnmarshalCountryInfo(data json.RawMessage) (*CountryInfo, error)

func (*CountryInfo) GetClass added in v0.3.0

func (*CountryInfo) GetClass() string

func (*CountryInfo) GetType added in v0.3.0

func (*CountryInfo) GetType() string

func (*CountryInfo) MarshalJSON added in v0.3.0

func (entity *CountryInfo) MarshalJSON() ([]byte, error)

type CreateBasicGroupChatRequest

type CreateBasicGroupChatRequest struct {
	// Basic group identifier
	BasicGroupId int64 `json:"basic_group_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 CreateBusinessChatLinkRequest added in v0.7.3

type CreateBusinessChatLinkRequest struct {
	// Information about the link to create
	LinkInfo *InputBusinessChatLink `json:"link_info"`
}

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 v0.7.0

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 v0.7.0

type CreateChatFolderRequest struct {
	// The new chat folder
	Folder *ChatFolder `json:"folder"`
}

type CreateChatInviteLinkRequest added in v0.5.0

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 CreateChatSubscriptionInviteLinkRequest added in v0.7.3

type CreateChatSubscriptionInviteLinkRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Invite link name; 0-32 characters
	Name string `json:"name"`
	// Information about subscription plan that will be applied to the users joining the chat via the link. Subscription period must be 2592000 in production environment, and 60 or 300 if Telegram test environment is used
	SubscriptionPricing *StarSubscriptionPricing `json:"subscription_pricing"`
}

type CreateForumTopicRequest added in v0.7.0

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 v0.7.0

type CreateInvoiceLinkRequest struct {
	// Unique identifier of business connection on behalf of which to send the request
	BusinessConnectionId string `json:"business_connection_id"`
	// 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; 0-64 characters. If empty, then the name returned by getSuggestedStickerSetName will be used automatically
	Name string `json:"name"`
	// 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; 1-200 stickers for custom emoji sticker sets, and 1-120 stickers otherwise. 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 importMessages
	ForImport bool `json:"for_import"`
}

type CreatePrivateChatRequest

type CreatePrivateChatRequest struct {
	// User identifier
	UserId int64 `json:"user_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 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 CreateTemporaryPasswordRequest

type CreateTemporaryPasswordRequest struct {
	// The 2-step verification password of the current user
	Password string `json:"password"`
	// Time during which the temporary password will be valid, in seconds; must be between 60 and 86400
	ValidFor int32 `json:"valid_for"`
}

type CreateVideoChatRequest added in v0.5.0

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 expected 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 owner privileges
	IsRtmpStream bool `json:"is_rtmp_stream"`
}

type CreatedBasicGroupChat added in v0.7.3

type CreatedBasicGroupChat struct {

	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Information about failed to add members
	FailedToAddMembers *FailedToAddMembers `json:"failed_to_add_members"`
	// contains filtered or unexported fields
}

Contains information about a newly created basic group chat

func UnmarshalCreatedBasicGroupChat added in v0.7.3

func UnmarshalCreatedBasicGroupChat(data json.RawMessage) (*CreatedBasicGroupChat, error)

func (*CreatedBasicGroupChat) GetClass added in v0.7.3

func (*CreatedBasicGroupChat) GetClass() string

func (*CreatedBasicGroupChat) GetType added in v0.7.3

func (*CreatedBasicGroupChat) GetType() string

func (*CreatedBasicGroupChat) MarshalJSON added in v0.7.3

func (entity *CreatedBasicGroupChat) MarshalJSON() ([]byte, error)

type CurrentWeather added in v0.7.3

type CurrentWeather struct {

	// Temperature, in degree Celsius
	Temperature float64 `json:"temperature"`
	// Emoji representing the weather
	Emoji string `json:"emoji"`
	// contains filtered or unexported fields
}

Describes the current weather

func UnmarshalCurrentWeather added in v0.7.3

func UnmarshalCurrentWeather(data json.RawMessage) (*CurrentWeather, error)

func (*CurrentWeather) GetClass added in v0.7.3

func (*CurrentWeather) GetClass() string

func (*CurrentWeather) GetType added in v0.7.3

func (*CurrentWeather) GetType() string

func (*CurrentWeather) MarshalJSON added in v0.7.3

func (entity *CurrentWeather) MarshalJSON() ([]byte, error)

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 added in v0.0.13

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 added in v0.0.13

func UnmarshalDatabaseStatistics(data json.RawMessage) (*DatabaseStatistics, error)

func (*DatabaseStatistics) GetClass added in v0.0.13

func (*DatabaseStatistics) GetClass() string

func (*DatabaseStatistics) GetType added in v0.0.13

func (*DatabaseStatistics) GetType() string

func (*DatabaseStatistics) MarshalJSON added in v0.0.13

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) GetClass

func (*Date) GetClass() string

func (*Date) GetType

func (*Date) GetType() string

func (*Date) MarshalJSON

func (entity *Date) MarshalJSON() ([]byte, error)

type DateRange added in v0.3.0

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 added in v0.3.0

func UnmarshalDateRange(data json.RawMessage) (*DateRange, error)

func (*DateRange) GetClass added in v0.3.0

func (*DateRange) GetClass() string

func (*DateRange) GetType added in v0.3.0

func (*DateRange) GetType() string

func (*DateRange) MarshalJSON added in v0.3.0

func (entity *DateRange) MarshalJSON() ([]byte, error)

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) GetClass

func (*DatedFile) GetClass() string

func (*DatedFile) GetType

func (*DatedFile) GetType() string

func (*DatedFile) MarshalJSON

func (entity *DatedFile) MarshalJSON() ([]byte, error)

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 DeleteAccountRequest struct {
	// The reason why the account was deleted; optional
	Reason string `json:"reason"`
	// The 2-step verification password of the current user. If the current user isn't authorized, then an empty string can be passed and account deletion can be canceled within one week
	Password string `json:"password"`
}

type DeleteAllCallMessagesRequest added in v0.5.0

type DeleteAllCallMessagesRequest struct {
	// Pass true to delete the messages for all users
	Revoke bool `json:"revoke"`
}

type DeleteAllRevokedChatInviteLinksRequest added in v0.5.0

type DeleteAllRevokedChatInviteLinksRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// User identifier of a chat administrator, which links will be deleted. Must be an identifier of the current user for non-owner
	CreatorUserId int64 `json:"creator_user_id"`
}

type DeleteBotMediaPreviewsRequest added in v0.7.3

type DeleteBotMediaPreviewsRequest struct {
	// Identifier of the target bot. The bot must be owned and must have the main Web App
	BotUserId int64 `json:"bot_user_id"`
	// Language code of the media previews to delete
	LanguageCode string `json:"language_code"`
	// File identifiers of the media to delete
	FileIds []int32 `json:"file_ids"`
}

type DeleteBusinessChatLinkRequest added in v0.7.3

type DeleteBusinessChatLinkRequest struct {
	// The link to delete
	Link string `json:"link"`
}

type DeleteBusinessConnectedBotRequest added in v0.7.2

type DeleteBusinessConnectedBotRequest struct {
	// Unique user identifier for the bot
	BotUserId int64 `json:"bot_user_id"`
}

type DeleteChatBackgroundRequest added in v0.7.1

type DeleteChatBackgroundRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Pass true to restore previously set background. Can be used only in private and secret chats with non-deleted users if userFullInfo.set_chat_background == true. Supposed to be used from messageChatSetBackground messages with the currently set background that was set for both sides by the other user
	RestorePrevious bool `json:"restore_previous"`
}

type DeleteChatFolderInviteLinkRequest added in v0.7.0

type DeleteChatFolderInviteLinkRequest struct {
	// Chat folder identifier
	ChatFolderId int32 `json:"chat_folder_id"`
	// Invite link to be deleted
	InviteLink string `json:"invite_link"`
}

type DeleteChatFolderRequest added in v0.7.0

type DeleteChatFolderRequest struct {
	// Chat folder identifier
	ChatFolderId int32 `json:"chat_folder_id"`
	// Identifiers of the chats to leave. The chats must be pinned or always included in the folder
	LeaveChatIds []int64 `json:"leave_chat_ids"`
}

type DeleteChatHistoryRequest

type DeleteChatHistoryRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Pass true to remove the chat from all chat lists
	RemoveFromChatList bool `json:"remove_from_chat_list"`
	// Pass true to delete chat history for all users
	Revoke bool `json:"revoke"`
}

type DeleteChatMessagesByDateRequest added in v0.5.0

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 added in v0.5.0

type DeleteChatMessagesBySenderRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Identifier of the sender of messages to delete
	SenderId MessageSender `json:"sender_id"`
}

type DeleteChatReplyMarkupRequest

type DeleteChatReplyMarkupRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// The message identifier of the used keyboard
	MessageId int64 `json:"message_id"`
}

type DeleteChatRequest added in v0.5.0

type DeleteChatRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
}

type DeleteCommandsRequest added in v0.5.0

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 DeleteDefaultBackgroundRequest added in v0.7.2

type DeleteDefaultBackgroundRequest struct {
	// Pass true if the background is deleted for a dark theme
	ForDarkTheme bool `json:"for_dark_theme"`
}

type DeleteFileRequest

type DeleteFileRequest struct {
	// Identifier of the file to delete
	FileId int32 `json:"file_id"`
}

type DeleteForumTopicRequest added in v0.7.0

type DeleteForumTopicRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
	// Message thread identifier of the forum topic
	MessageThreadId int64 `json:"message_thread_id"`
}

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. Use messageProperties.can_be_deleted_only_for_self and messageProperties.can_be_deleted_for_all_users to get suitable messages
	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 DeleteQuickReplyShortcutMessagesRequest added in v0.7.2

type DeleteQuickReplyShortcutMessagesRequest struct {
	// Unique identifier of the quick reply shortcut to which the messages belong
	ShortcutId int32 `json:"shortcut_id"`
	// Unique identifiers of the messages
	MessageIds []int64 `json:"message_ids"`
}

type DeleteQuickReplyShortcutRequest added in v0.7.2

type DeleteQuickReplyShortcutRequest struct {
	// Unique identifier of the quick reply shortcut
	ShortcutId int32 `json:"shortcut_id"`
}

type DeleteRevokedChatInviteLinkRequest added in v0.5.0

type DeleteRevokedChatInviteLinkRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Invite link to revoke
	InviteLink string `json:"invite_link"`
}

type DeleteSavedMessagesTopicHistoryRequest added in v0.7.2

type DeleteSavedMessagesTopicHistoryRequest struct {
	// Identifier of Saved Messages topic which messages will be deleted
	SavedMessagesTopicId int64 `json:"saved_messages_topic_id"`
}

type DeleteSavedMessagesTopicMessagesByDateRequest added in v0.7.2

type DeleteSavedMessagesTopicMessagesByDateRequest struct {
	// Identifier of Saved Messages topic which messages will be deleted
	SavedMessagesTopicId int64 `json:"saved_messages_topic_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"`
}

type DeleteStickerSetRequest added in v0.7.0

type DeleteStickerSetRequest struct {
	// Sticker set name. The sticker set must be owned by the current user
	Name string `json:"name"`
}

type DeleteStoryRequest added in v0.7.0

type DeleteStoryRequest struct {
	// Identifier of the chat that posted the story
	StorySenderChatId int64 `json:"story_sender_chat_id"`
	// 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 added in v0.3.2

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 added in v0.0.13

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 added in v0.0.13

func UnmarshalDeviceTokenFirebaseCloudMessaging(data json.RawMessage) (*DeviceTokenFirebaseCloudMessaging, error)

func (*DeviceTokenFirebaseCloudMessaging) DeviceTokenType added in v0.0.13

func (*DeviceTokenFirebaseCloudMessaging) DeviceTokenType() string

func (*DeviceTokenFirebaseCloudMessaging) GetClass added in v0.0.13

func (*DeviceTokenFirebaseCloudMessaging) GetType added in v0.0.13

func (*DeviceTokenFirebaseCloudMessaging) MarshalJSON added in v0.0.13

func (entity *DeviceTokenFirebaseCloudMessaging) MarshalJSON() ([]byte, error)

type DeviceTokenHuaweiPush added in v0.7.0

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 v0.7.0

func UnmarshalDeviceTokenHuaweiPush(data json.RawMessage) (*DeviceTokenHuaweiPush, error)

func (*DeviceTokenHuaweiPush) DeviceTokenType added in v0.7.0

func (*DeviceTokenHuaweiPush) DeviceTokenType() string

func (*DeviceTokenHuaweiPush) GetClass added in v0.7.0

func (*DeviceTokenHuaweiPush) GetClass() string

func (*DeviceTokenHuaweiPush) GetType added in v0.7.0

func (*DeviceTokenHuaweiPush) GetType() string

func (*DeviceTokenHuaweiPush) MarshalJSON added in v0.7.0

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) GetType

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 added in v0.3.0

type DiceStickers interface {
	DiceStickersType() string
}

Contains animated stickers which must be used for dice animation rendering

func UnmarshalDiceStickers added in v0.3.0

func UnmarshalDiceStickers(data json.RawMessage) (DiceStickers, error)

func UnmarshalListOfDiceStickers added in v0.3.2

func UnmarshalListOfDiceStickers(dataList []json.RawMessage) ([]DiceStickers, error)

type DiceStickersRegular added in v0.3.0

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 added in v0.3.0

func UnmarshalDiceStickersRegular(data json.RawMessage) (*DiceStickersRegular, error)

func (*DiceStickersRegular) DiceStickersType added in v0.3.0

func (*DiceStickersRegular) DiceStickersType() string

func (*DiceStickersRegular) GetClass added in v0.3.0

func (*DiceStickersRegular) GetClass() string

func (*DiceStickersRegular) GetType added in v0.3.0

func (*DiceStickersRegular) GetType() string

func (*DiceStickersRegular) MarshalJSON added in v0.3.0

func (entity *DiceStickersRegular) MarshalJSON() ([]byte, error)

type DiceStickersSlotMachine added in v0.3.0

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 added in v0.3.0

func UnmarshalDiceStickersSlotMachine(data json.RawMessage) (*DiceStickersSlotMachine, error)

func (*DiceStickersSlotMachine) DiceStickersType added in v0.3.0

func (*DiceStickersSlotMachine) DiceStickersType() string

func (*DiceStickersSlotMachine) GetClass added in v0.3.0

func (*DiceStickersSlotMachine) GetClass() string

func (*DiceStickersSlotMachine) GetType added in v0.3.0

func (*DiceStickersSlotMachine) GetType() string

func (*DiceStickersSlotMachine) MarshalJSON added in v0.3.0

func (entity *DiceStickersSlotMachine) MarshalJSON() ([]byte, error)

type DisableAllSupergroupUsernamesRequest added in v0.7.0

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) GetClass

func (*Document) GetClass() string

func (*Document) GetType

func (*Document) GetType() string

func (*Document) MarshalJSON

func (entity *Document) MarshalJSON() ([]byte, error)

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 v0.7.0

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 v0.7.0

func UnmarshalDownloadedFileCounts(data json.RawMessage) (*DownloadedFileCounts, error)

func (*DownloadedFileCounts) GetClass added in v0.7.0

func (*DownloadedFileCounts) GetClass() string

func (*DownloadedFileCounts) GetType added in v0.7.0

func (*DownloadedFileCounts) GetType() string

func (*DownloadedFileCounts) MarshalJSON added in v0.7.0

func (entity *DownloadedFileCounts) MarshalJSON() ([]byte, error)

type DraftMessage

type DraftMessage struct {

	// Information about the message to be replied; must be of the type inputMessageReplyToMessage; may be null if none
	ReplyTo InputMessageReplyTo `json:"reply_to"`
	// 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, inputMessageVideoNote, or inputMessageVoiceNote
	InputMessageText InputMessageContent `json:"input_message_text"`
	// Identifier of the effect to apply to the message when it is sent; 0 if none
	EffectId JsonInt64 `json:"effect_id"`
	// 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 EditBotMediaPreviewRequest added in v0.7.3

type EditBotMediaPreviewRequest struct {
	// Identifier of the target bot. The bot must be owned and must have the main Web App
	BotUserId int64 `json:"bot_user_id"`
	// Language code of the media preview to edit
	LanguageCode string `json:"language_code"`
	// File identifier of the media to replace
	FileId int32 `json:"file_id"`
	// Content of the new preview
	Content InputStoryContent `json:"content"`
}

type EditBusinessChatLinkRequest added in v0.7.3

type EditBusinessChatLinkRequest struct {
	// The link to edit
	Link string `json:"link"`
	// New description of the link
	LinkInfo *InputBusinessChatLink `json:"link_info"`
}

type EditBusinessMessageCaptionRequest added in v0.7.3

type EditBusinessMessageCaptionRequest struct {
	// Unique identifier of business connection on behalf of which the message was sent
	BusinessConnectionId string `json:"business_connection_id"`
	// 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"`
	// New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters
	Caption *FormattedText `json:"caption"`
	// Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages
	ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
}

type EditBusinessMessageLiveLocationRequest added in v0.7.3

type EditBusinessMessageLiveLocationRequest struct {
	// Unique identifier of business connection on behalf of which the message was sent
	BusinessConnectionId string `json:"business_connection_id"`
	// 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"`
	// New location content of the message; pass null to stop sharing the live location
	Location *Location `json:"location"`
	// New time relative to the message send date, for which the location can be updated, in seconds. If 0x7FFFFFFF specified, then the location can be updated forever. Otherwise, must not exceed the current live_period by more than a day, and the live location expiration date must remain in the next 90 days. Pass 0 to keep the current live_period
	LivePeriod int32 `json:"live_period"`
	// 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 EditBusinessMessageMediaRequest added in v0.7.3

type EditBusinessMessageMediaRequest struct {
	// Unique identifier of business connection on behalf of which the message was sent
	BusinessConnectionId string `json:"business_connection_id"`
	// 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 EditBusinessMessageReplyMarkupRequest added in v0.7.3

type EditBusinessMessageReplyMarkupRequest struct {
	// Unique identifier of business connection on behalf of which the message was sent
	BusinessConnectionId string `json:"business_connection_id"`
	// 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 EditBusinessMessageTextRequest added in v0.7.3

type EditBusinessMessageTextRequest struct {
	// Unique identifier of business connection on behalf of which the message was sent
	BusinessConnectionId string `json:"business_connection_id"`
	// 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"`
	// New text content of the message. Must be of type inputMessageText
	InputMessageContent InputMessageContent `json:"input_message_content"`
}

type EditChatFolderInviteLinkRequest added in v0.7.0

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 v0.7.0

type EditChatFolderRequest struct {
	// Chat folder identifier
	ChatFolderId int32 `json:"chat_folder_id"`
	// The edited chat folder
	Folder *ChatFolder `json:"folder"`
}

type EditChatInviteLinkRequest added in v0.5.0

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 EditChatSubscriptionInviteLinkRequest added in v0.7.3

type EditChatSubscriptionInviteLinkRequest 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"`
}

type EditCustomLanguagePackInfoRequest

type EditCustomLanguagePackInfoRequest struct {
	// New information about the custom local language pack
	Info *LanguagePackInfo `json:"info"`
}

type EditForumTopicRequest added in v0.7.0

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"`
	// Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages
	ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
}

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"`
	// New time relative to the message send date, for which the location can be updated, in seconds. If 0x7FFFFFFF specified, then the location can be updated forever. Otherwise, must not exceed the current live_period by more than a day, and the live location expiration date must remain in the next 90 days. Pass 0 to keep the current live_period
	LivePeriod int32 `json:"live_period"`
	// 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. Use messageProperties.can_be_edited to check whether the message can be edited
	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"`
	// Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages
	ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
}

type EditMessageLiveLocationRequest

type EditMessageLiveLocationRequest struct {
	// The chat the message belongs to
	ChatId int64 `json:"chat_id"`
	// Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited
	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"`
	// New time relative to the message send date, for which the location can be updated, in seconds. If 0x7FFFFFFF specified, then the location can be updated forever. Otherwise, must not exceed the current live_period by more than a day, and the live location expiration date must remain in the next 90 days. Pass 0 to keep the current live_period
	LivePeriod int32 `json:"live_period"`
	// 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. Use messageProperties.can_edit_media to check whether the message can be edited
	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. Use messageProperties.can_be_edited to check whether the message can be edited
	MessageId int64 `json:"message_id"`
	// The new message reply markup; pass null if none
	ReplyMarkup ReplyMarkup `json:"reply_markup"`
}

type EditMessageSchedulingStateRequest added in v0.2.0

type EditMessageSchedulingStateRequest struct {
	// The chat the message belongs to
	ChatId int64 `json:"chat_id"`
	// Identifier of the message. Use messageProperties.can_edit_scheduling_state to check whether the message is suitable
	MessageId int64 `json:"message_id"`
	// The new message scheduling state; pass null to send the message immediately. Must be null for messages in the state messageSchedulingStateSendWhenVideoProcessed
	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. Use messageProperties.can_be_edited to check whether the message can be edited
	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 EditQuickReplyMessageRequest added in v0.7.3

type EditQuickReplyMessageRequest struct {
	// Unique identifier of the quick reply shortcut with the message
	ShortcutId int32 `json:"shortcut_id"`
	// Identifier of the message
	MessageId int64 `json:"message_id"`
	// New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo
	InputMessageContent InputMessageContent `json:"input_message_content"`
}

type EditStarSubscriptionRequest added in v0.7.3

type EditStarSubscriptionRequest struct {
	// Identifier of the subscription to change
	SubscriptionId string `json:"subscription_id"`
	// New value of is_canceled
	IsCanceled bool `json:"is_canceled"`
}

type EditStoryCoverRequest added in v0.7.3

type EditStoryCoverRequest struct {
	// Identifier of the chat that posted the story
	StorySenderChatId int64 `json:"story_sender_chat_id"`
	// Identifier of the story to edit
	StoryId int32 `json:"story_id"`
	// New timestamp of the frame, which will be used as video thumbnail
	CoverFrameTimestamp float64 `json:"cover_frame_timestamp"`
}

type EditStoryRequest added in v0.7.0

type EditStoryRequest struct {
	// Identifier of the chat that posted the story
	StorySenderChatId int64 `json:"story_sender_chat_id"`
	// 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 EditUserStarSubscriptionRequest added in v0.7.4

type EditUserStarSubscriptionRequest struct {
	// User identifier
	UserId int64 `json:"user_id"`
	// Telegram payment identifier of the subscription
	TelegramPaymentChargeId string `json:"telegram_payment_charge_id"`
	// Pass true to cancel the subscription; pass false to allow the user to enable it
	IsCanceled bool `json:"is_canceled"`
}

type EmailAddressAuthentication added in v0.7.0

type EmailAddressAuthentication interface {
	EmailAddressAuthenticationType() string
}

Contains authentication data for an email address

func UnmarshalEmailAddressAuthentication added in v0.7.0

func UnmarshalEmailAddressAuthentication(data json.RawMessage) (EmailAddressAuthentication, error)

func UnmarshalListOfEmailAddressAuthentication added in v0.7.0

func UnmarshalListOfEmailAddressAuthentication(dataList []json.RawMessage) ([]EmailAddressAuthentication, error)

type EmailAddressAuthenticationAppleId added in v0.7.0

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 v0.7.0

func UnmarshalEmailAddressAuthenticationAppleId(data json.RawMessage) (*EmailAddressAuthenticationAppleId, error)

func (*EmailAddressAuthenticationAppleId) EmailAddressAuthenticationType added in v0.7.0

func (*EmailAddressAuthenticationAppleId) EmailAddressAuthenticationType() string

func (*EmailAddressAuthenticationAppleId) GetClass added in v0.7.0

func (*EmailAddressAuthenticationAppleId) GetType added in v0.7.0

func (*EmailAddressAuthenticationAppleId) MarshalJSON added in v0.7.0

func (entity *EmailAddressAuthenticationAppleId) MarshalJSON() ([]byte, error)

type EmailAddressAuthenticationCode added in v0.7.0

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 v0.7.0

func UnmarshalEmailAddressAuthenticationCode(data json.RawMessage) (*EmailAddressAuthenticationCode, error)

func (*EmailAddressAuthenticationCode) EmailAddressAuthenticationType added in v0.7.0

func (*EmailAddressAuthenticationCode) EmailAddressAuthenticationType() string

func (*EmailAddressAuthenticationCode) GetClass added in v0.7.0

func (*EmailAddressAuthenticationCode) GetType added in v0.7.0

func (*EmailAddressAuthenticationCode) MarshalJSON added in v0.7.0

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) GetType

func (*EmailAddressAuthenticationCodeInfo) MarshalJSON

func (entity *EmailAddressAuthenticationCodeInfo) MarshalJSON() ([]byte, error)

type EmailAddressAuthenticationGoogleId added in v0.7.0

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 v0.7.0

func UnmarshalEmailAddressAuthenticationGoogleId(data json.RawMessage) (*EmailAddressAuthenticationGoogleId, error)

func (*EmailAddressAuthenticationGoogleId) EmailAddressAuthenticationType added in v0.7.0

func (*EmailAddressAuthenticationGoogleId) EmailAddressAuthenticationType() string

func (*EmailAddressAuthenticationGoogleId) GetClass added in v0.7.0

func (*EmailAddressAuthenticationGoogleId) GetType added in v0.7.0

func (*EmailAddressAuthenticationGoogleId) MarshalJSON added in v0.7.0

func (entity *EmailAddressAuthenticationGoogleId) MarshalJSON() ([]byte, error)

type EmailAddressResetState added in v0.7.0

type EmailAddressResetState interface {
	EmailAddressResetStateType() string
}

Describes reset state of an email address

func UnmarshalEmailAddressResetState added in v0.7.0

func UnmarshalEmailAddressResetState(data json.RawMessage) (EmailAddressResetState, error)

func UnmarshalListOfEmailAddressResetState added in v0.7.0

func UnmarshalListOfEmailAddressResetState(dataList []json.RawMessage) ([]EmailAddressResetState, error)

type EmailAddressResetStateAvailable added in v0.7.0

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 v0.7.0

func UnmarshalEmailAddressResetStateAvailable(data json.RawMessage) (*EmailAddressResetStateAvailable, error)

func (*EmailAddressResetStateAvailable) EmailAddressResetStateType added in v0.7.0

func (*EmailAddressResetStateAvailable) EmailAddressResetStateType() string

func (*EmailAddressResetStateAvailable) GetClass added in v0.7.0

func (*EmailAddressResetStateAvailable) GetType added in v0.7.0

func (*EmailAddressResetStateAvailable) MarshalJSON added in v0.7.0

func (entity *EmailAddressResetStateAvailable) MarshalJSON() ([]byte, error)

type EmailAddressResetStatePending added in v0.7.0

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 v0.7.0

func UnmarshalEmailAddressResetStatePending(data json.RawMessage) (*EmailAddressResetStatePending, error)

func (*EmailAddressResetStatePending) EmailAddressResetStateType added in v0.7.0

func (*EmailAddressResetStatePending) EmailAddressResetStateType() string

func (*EmailAddressResetStatePending) GetClass added in v0.7.0

func (*EmailAddressResetStatePending) GetType added in v0.7.0

func (*EmailAddressResetStatePending) MarshalJSON added in v0.7.0

func (entity *EmailAddressResetStatePending) MarshalJSON() ([]byte, error)

type EmojiCategories added in v0.7.0

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 v0.7.0

func UnmarshalEmojiCategories(data json.RawMessage) (*EmojiCategories, error)

func (*EmojiCategories) GetClass added in v0.7.0

func (*EmojiCategories) GetClass() string

func (*EmojiCategories) GetType added in v0.7.0

func (*EmojiCategories) GetType() string

func (*EmojiCategories) MarshalJSON added in v0.7.0

func (entity *EmojiCategories) MarshalJSON() ([]byte, error)

type EmojiCategory added in v0.7.0

type EmojiCategory struct {

	// Name of the category
	Name string `json:"name"`
	// Custom emoji sticker, which represents icon of the category
	Icon *Sticker `json:"icon"`
	// Source of stickers for the emoji category
	Source EmojiCategorySource `json:"source"`
	// True, if the category must be shown first when choosing a sticker for the start page
	IsGreeting bool `json:"is_greeting"`
	// contains filtered or unexported fields
}

Describes an emoji category

func UnmarshalEmojiCategory added in v0.7.0

func UnmarshalEmojiCategory(data json.RawMessage) (*EmojiCategory, error)

func (*EmojiCategory) GetClass added in v0.7.0

func (*EmojiCategory) GetClass() string

func (*EmojiCategory) GetType added in v0.7.0

func (*EmojiCategory) GetType() string

func (*EmojiCategory) MarshalJSON added in v0.7.0

func (entity *EmojiCategory) MarshalJSON() ([]byte, error)

func (*EmojiCategory) UnmarshalJSON added in v0.7.3

func (emojiCategory *EmojiCategory) UnmarshalJSON(data []byte) error

type EmojiCategorySource added in v0.7.3

type EmojiCategorySource interface {
	EmojiCategorySourceType() string
}

Describes source of stickers for an emoji category

func UnmarshalEmojiCategorySource added in v0.7.3

func UnmarshalEmojiCategorySource(data json.RawMessage) (EmojiCategorySource, error)

func UnmarshalListOfEmojiCategorySource added in v0.7.3

func UnmarshalListOfEmojiCategorySource(dataList []json.RawMessage) ([]EmojiCategorySource, error)

type EmojiCategorySourcePremium added in v0.7.3

type EmojiCategorySourcePremium struct {
	// contains filtered or unexported fields
}

The category contains premium stickers that must be found by getPremiumStickers

func UnmarshalEmojiCategorySourcePremium added in v0.7.3

func UnmarshalEmojiCategorySourcePremium(data json.RawMessage) (*EmojiCategorySourcePremium, error)

func (*EmojiCategorySourcePremium) EmojiCategorySourceType added in v0.7.3

func (*EmojiCategorySourcePremium) EmojiCategorySourceType() string

func (*EmojiCategorySourcePremium) GetClass added in v0.7.3

func (*EmojiCategorySourcePremium) GetClass() string

func (*EmojiCategorySourcePremium) GetType added in v0.7.3

func (*EmojiCategorySourcePremium) MarshalJSON added in v0.7.3

func (entity *EmojiCategorySourcePremium) MarshalJSON() ([]byte, error)

type EmojiCategorySourceSearch added in v0.7.3

type EmojiCategorySourceSearch struct {

	// List of emojis to search for
	Emojis []string `json:"emojis"`
	// contains filtered or unexported fields
}

The category contains a list of similar emoji to search for in getStickers and searchStickers for stickers, or getInlineQueryResults with the bot getOption("animation_search_bot_username") for animations

func UnmarshalEmojiCategorySourceSearch added in v0.7.3

func UnmarshalEmojiCategorySourceSearch(data json.RawMessage) (*EmojiCategorySourceSearch, error)

func (*EmojiCategorySourceSearch) EmojiCategorySourceType added in v0.7.3

func (*EmojiCategorySourceSearch) EmojiCategorySourceType() string

func (*EmojiCategorySourceSearch) GetClass added in v0.7.3

func (*EmojiCategorySourceSearch) GetClass() string

func (*EmojiCategorySourceSearch) GetType added in v0.7.3

func (*EmojiCategorySourceSearch) GetType() string

func (*EmojiCategorySourceSearch) MarshalJSON added in v0.7.3

func (entity *EmojiCategorySourceSearch) MarshalJSON() ([]byte, error)

type EmojiCategoryType added in v0.7.0

type EmojiCategoryType interface {
	EmojiCategoryTypeType() string
}

Describes type of emoji category

func UnmarshalEmojiCategoryType added in v0.7.0

func UnmarshalEmojiCategoryType(data json.RawMessage) (EmojiCategoryType, error)

func UnmarshalListOfEmojiCategoryType added in v0.7.0

func UnmarshalListOfEmojiCategoryType(dataList []json.RawMessage) ([]EmojiCategoryType, error)

type EmojiCategoryTypeChatPhoto added in v0.7.0

type EmojiCategoryTypeChatPhoto struct {
	// contains filtered or unexported fields
}

The category must be used for chat photo emoji selection

func UnmarshalEmojiCategoryTypeChatPhoto added in v0.7.0

func UnmarshalEmojiCategoryTypeChatPhoto(data json.RawMessage) (*EmojiCategoryTypeChatPhoto, error)

func (*EmojiCategoryTypeChatPhoto) EmojiCategoryTypeType added in v0.7.0

func (*EmojiCategoryTypeChatPhoto) EmojiCategoryTypeType() string

func (*EmojiCategoryTypeChatPhoto) GetClass added in v0.7.0

func (*EmojiCategoryTypeChatPhoto) GetClass() string

func (*EmojiCategoryTypeChatPhoto) GetType added in v0.7.0

func (*EmojiCategoryTypeChatPhoto) MarshalJSON added in v0.7.0

func (entity *EmojiCategoryTypeChatPhoto) MarshalJSON() ([]byte, error)

type EmojiCategoryTypeDefault added in v0.7.0

type EmojiCategoryTypeDefault struct {
	// contains filtered or unexported fields
}

The category must be used by default (e.g., for custom emoji or animation search)

func UnmarshalEmojiCategoryTypeDefault added in v0.7.0

func UnmarshalEmojiCategoryTypeDefault(data json.RawMessage) (*EmojiCategoryTypeDefault, error)

func (*EmojiCategoryTypeDefault) EmojiCategoryTypeType added in v0.7.0

func (*EmojiCategoryTypeDefault) EmojiCategoryTypeType() string

func (*EmojiCategoryTypeDefault) GetClass added in v0.7.0

func (*EmojiCategoryTypeDefault) GetClass() string

func (*EmojiCategoryTypeDefault) GetType added in v0.7.0

func (*EmojiCategoryTypeDefault) GetType() string

func (*EmojiCategoryTypeDefault) MarshalJSON added in v0.7.0

func (entity *EmojiCategoryTypeDefault) MarshalJSON() ([]byte, error)

type EmojiCategoryTypeEmojiStatus added in v0.7.0

type EmojiCategoryTypeEmojiStatus struct {
	// contains filtered or unexported fields
}

The category must be used for emoji status selection

func UnmarshalEmojiCategoryTypeEmojiStatus added in v0.7.0

func UnmarshalEmojiCategoryTypeEmojiStatus(data json.RawMessage) (*EmojiCategoryTypeEmojiStatus, error)

func (*EmojiCategoryTypeEmojiStatus) EmojiCategoryTypeType added in v0.7.0

func (*EmojiCategoryTypeEmojiStatus) EmojiCategoryTypeType() string

func (*EmojiCategoryTypeEmojiStatus) GetClass added in v0.7.0

func (*EmojiCategoryTypeEmojiStatus) GetType added in v0.7.0

func (*EmojiCategoryTypeEmojiStatus) MarshalJSON added in v0.7.0

func (entity *EmojiCategoryTypeEmojiStatus) MarshalJSON() ([]byte, error)

type EmojiCategoryTypeRegularStickers added in v0.7.3

type EmojiCategoryTypeRegularStickers struct {
	// contains filtered or unexported fields
}

The category must be used by default for regular sticker selection. It may contain greeting emoji category and premium stickers

func UnmarshalEmojiCategoryTypeRegularStickers added in v0.7.3

func UnmarshalEmojiCategoryTypeRegularStickers(data json.RawMessage) (*EmojiCategoryTypeRegularStickers, error)

func (*EmojiCategoryTypeRegularStickers) EmojiCategoryTypeType added in v0.7.3

func (*EmojiCategoryTypeRegularStickers) EmojiCategoryTypeType() string

func (*EmojiCategoryTypeRegularStickers) GetClass added in v0.7.3

func (*EmojiCategoryTypeRegularStickers) GetType added in v0.7.3

func (*EmojiCategoryTypeRegularStickers) MarshalJSON added in v0.7.3

func (entity *EmojiCategoryTypeRegularStickers) MarshalJSON() ([]byte, error)

type EmojiKeyword added in v0.7.2

type EmojiKeyword struct {

	// The emoji
	Emoji string `json:"emoji"`
	// The keyword
	Keyword string `json:"keyword"`
	// contains filtered or unexported fields
}

Represents an emoji with its keyword

func UnmarshalEmojiKeyword added in v0.7.2

func UnmarshalEmojiKeyword(data json.RawMessage) (*EmojiKeyword, error)

func (*EmojiKeyword) GetClass added in v0.7.2

func (*EmojiKeyword) GetClass() string

func (*EmojiKeyword) GetType added in v0.7.2

func (*EmojiKeyword) GetType() string

func (*EmojiKeyword) MarshalJSON added in v0.7.2

func (entity *EmojiKeyword) MarshalJSON() ([]byte, error)

type EmojiKeywords added in v0.7.2

type EmojiKeywords struct {

	// List of emojis with their keywords
	EmojiKeywords []*EmojiKeyword `json:"emoji_keywords"`
	// contains filtered or unexported fields
}

Represents a list of emojis with their keywords

func UnmarshalEmojiKeywords added in v0.7.2

func UnmarshalEmojiKeywords(data json.RawMessage) (*EmojiKeywords, error)

func (*EmojiKeywords) GetClass added in v0.7.2

func (*EmojiKeywords) GetClass() string

func (*EmojiKeywords) GetType added in v0.7.2

func (*EmojiKeywords) GetType() string

func (*EmojiKeywords) MarshalJSON added in v0.7.2

func (entity *EmojiKeywords) MarshalJSON() ([]byte, error)

type EmojiReaction added in v0.7.0

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 an emoji reaction

func UnmarshalEmojiReaction added in v0.7.0

func UnmarshalEmojiReaction(data json.RawMessage) (*EmojiReaction, error)

func (*EmojiReaction) GetClass added in v0.7.0

func (*EmojiReaction) GetClass() string

func (*EmojiReaction) GetType added in v0.7.0

func (*EmojiReaction) GetType() string

func (*EmojiReaction) MarshalJSON added in v0.7.0

func (entity *EmojiReaction) MarshalJSON() ([]byte, error)

type EmojiStatus added in v0.7.0

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 v0.7.0

func UnmarshalEmojiStatus(data json.RawMessage) (*EmojiStatus, error)

func (*EmojiStatus) GetClass added in v0.7.0

func (*EmojiStatus) GetClass() string

func (*EmojiStatus) GetType added in v0.7.0

func (*EmojiStatus) GetType() string

func (*EmojiStatus) MarshalJSON added in v0.7.0

func (entity *EmojiStatus) MarshalJSON() ([]byte, error)

type EmojiStatuses added in v0.7.0

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 for emoji statuses

func UnmarshalEmojiStatuses added in v0.7.0

func UnmarshalEmojiStatuses(data json.RawMessage) (*EmojiStatuses, error)

func (*EmojiStatuses) GetClass added in v0.7.0

func (*EmojiStatuses) GetClass() string

func (*EmojiStatuses) GetType added in v0.7.0

func (*EmojiStatuses) GetType() string

func (*EmojiStatuses) MarshalJSON added in v0.7.0

func (entity *EmojiStatuses) MarshalJSON() ([]byte, error)

type Emojis added in v0.1.0

type Emojis struct {

	// List of emojis
	Emojis []string `json:"emojis"`
	// contains filtered or unexported fields
}

Represents a list of emojis

func UnmarshalEmojis added in v0.1.0

func UnmarshalEmojis(data json.RawMessage) (*Emojis, error)

func (*Emojis) GetClass added in v0.1.0

func (*Emojis) GetClass() string

func (*Emojis) GetType added in v0.1.0

func (*Emojis) GetType() string

func (*Emojis) MarshalJSON added in v0.1.0

func (entity *Emojis) MarshalJSON() ([]byte, error)

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 added in v0.5.0

type EndGroupCallRecordingRequest struct {
	// Group call identifier
	GroupCallId int32 `json:"group_call_id"`
}

type EndGroupCallRequest added in v0.5.0

type EndGroupCallRequest struct {
	// Group call identifier
	GroupCallId int32 `json:"group_call_id"`
}

type EndGroupCallScreenSharingRequest added in v0.5.0

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 added in v0.6.0

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) GetClass

func (*Error) GetClass() string

func (*Error) GetType

func (*Error) GetType() string

func (*Error) MarshalJSON

func (entity *Error) MarshalJSON() ([]byte, error)

type ExtraGenerator

type ExtraGenerator func() string

func UuidV4Generator

func UuidV4Generator() ExtraGenerator

type FactCheck added in v0.7.3

type FactCheck struct {

	// Text of the fact-check
	Text *FormattedText `json:"text"`
	// A two-letter ISO 3166-1 alpha-2 country code of the country for which the fact-check is shown
	CountryCode string `json:"country_code"`
	// contains filtered or unexported fields
}

Describes a fact-check added to the message by an independent checker

func UnmarshalFactCheck added in v0.7.3

func UnmarshalFactCheck(data json.RawMessage) (*FactCheck, error)

func (*FactCheck) GetClass added in v0.7.3

func (*FactCheck) GetClass() string

func (*FactCheck) GetType added in v0.7.3

func (*FactCheck) GetType() string

func (*FactCheck) MarshalJSON added in v0.7.3

func (entity *FactCheck) MarshalJSON() ([]byte, error)

type FailedToAddMember added in v0.7.3

type FailedToAddMember struct {

	// User identifier
	UserId int64 `json:"user_id"`
	// True, if subscription to Telegram Premium would have allowed to add the user to the chat
	PremiumWouldAllowInvite bool `json:"premium_would_allow_invite"`
	// True, if subscription to Telegram Premium is required to send the user chat invite link
	PremiumRequiredToSendMessages bool `json:"premium_required_to_send_messages"`
	// contains filtered or unexported fields
}

Contains information about a user that has failed to be added to a chat

func UnmarshalFailedToAddMember added in v0.7.3

func UnmarshalFailedToAddMember(data json.RawMessage) (*FailedToAddMember, error)

func (*FailedToAddMember) GetClass added in v0.7.3

func (*FailedToAddMember) GetClass() string

func (*FailedToAddMember) GetType added in v0.7.3

func (*FailedToAddMember) GetType() string

func (*FailedToAddMember) MarshalJSON added in v0.7.3

func (entity *FailedToAddMember) MarshalJSON() ([]byte, error)

type FailedToAddMembers added in v0.7.3

type FailedToAddMembers struct {

	// Information about users that weren't added to the chat
	FailedToAddMembers []*FailedToAddMember `json:"failed_to_add_members"`
	// contains filtered or unexported fields
}

Represents a list of users that has failed to be added to a chat

func UnmarshalFailedToAddMembers added in v0.7.3

func UnmarshalFailedToAddMembers(data json.RawMessage) (*FailedToAddMembers, error)

func (*FailedToAddMembers) GetClass added in v0.7.3

func (*FailedToAddMembers) GetClass() string

func (*FailedToAddMembers) GetType added in v0.7.3

func (*FailedToAddMembers) GetType() string

func (*FailedToAddMembers) MarshalJSON added in v0.7.3

func (entity *FailedToAddMembers) MarshalJSON() ([]byte, error)

type File

type File struct {

	// Unique file identifier
	Id int32 `json:"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) GetClass

func (*File) GetClass() string

func (*File) GetType

func (*File) GetType() string

func (*File) MarshalJSON

func (entity *File) MarshalJSON() ([]byte, error)

type FileDownload added in v0.7.0

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 v0.7.0

func UnmarshalFileDownload(data json.RawMessage) (*FileDownload, error)

func (*FileDownload) GetClass added in v0.7.0

func (*FileDownload) GetClass() string

func (*FileDownload) GetType added in v0.7.0

func (*FileDownload) GetType() string

func (*FileDownload) MarshalJSON added in v0.7.0

func (entity *FileDownload) MarshalJSON() ([]byte, error)

type FileDownloadedPrefixSize added in v0.7.0

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 v0.7.0

func UnmarshalFileDownloadedPrefixSize(data json.RawMessage) (*FileDownloadedPrefixSize, error)

func (*FileDownloadedPrefixSize) GetClass added in v0.7.0

func (*FileDownloadedPrefixSize) GetClass() string

func (*FileDownloadedPrefixSize) GetType added in v0.7.0

func (*FileDownloadedPrefixSize) GetType() string

func (*FileDownloadedPrefixSize) MarshalJSON added in v0.7.0

func (entity *FileDownloadedPrefixSize) MarshalJSON() ([]byte, error)

type FilePart added in v0.0.13

type FilePart struct {

	// File bytes
	Data []byte `json:"data"`
	// contains filtered or unexported fields
}

Contains a part of a file

func UnmarshalFilePart added in v0.0.13

func UnmarshalFilePart(data json.RawMessage) (*FilePart, error)

func (*FilePart) GetClass added in v0.0.13

func (*FilePart) GetClass() string

func (*FilePart) GetType added in v0.0.13

func (*FilePart) GetType() string

func (*FilePart) MarshalJSON added in v0.0.13

func (entity *FilePart) MarshalJSON() ([]byte, error)

type FileType

type FileType interface {
	FileTypeType() string
}

Represents the type of file

func UnmarshalFileType

func UnmarshalFileType(data json.RawMessage) (FileType, error)

func UnmarshalListOfFileType added in v0.3.2

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 v0.7.0

type FileTypeNotificationSound struct {
	// contains filtered or unexported fields
}

The file is a notification sound

func UnmarshalFileTypeNotificationSound added in v0.7.0

func UnmarshalFileTypeNotificationSound(data json.RawMessage) (*FileTypeNotificationSound, error)

func (*FileTypeNotificationSound) FileTypeType added in v0.7.0

func (*FileTypeNotificationSound) FileTypeType() string

func (*FileTypeNotificationSound) GetClass added in v0.7.0

func (*FileTypeNotificationSound) GetClass() string

func (*FileTypeNotificationSound) GetType added in v0.7.0

func (*FileTypeNotificationSound) GetType() string

func (*FileTypeNotificationSound) MarshalJSON added in v0.7.0

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 v0.7.0

type FileTypePhotoStory struct {
	// contains filtered or unexported fields
}

The file is a photo published as a story

func UnmarshalFileTypePhotoStory added in v0.7.0

func UnmarshalFileTypePhotoStory(data json.RawMessage) (*FileTypePhotoStory, error)

func (*FileTypePhotoStory) FileTypeType added in v0.7.0

func (*FileTypePhotoStory) FileTypeType() string

func (*FileTypePhotoStory) GetClass added in v0.7.0

func (*FileTypePhotoStory) GetClass() string

func (*FileTypePhotoStory) GetType added in v0.7.0

func (*FileTypePhotoStory) GetType() string

func (*FileTypePhotoStory) MarshalJSON added in v0.7.0

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 v0.7.0

type FileTypeVideoStory struct {
	// contains filtered or unexported fields
}

The file is a video published as a story

func UnmarshalFileTypeVideoStory added in v0.7.0

func UnmarshalFileTypeVideoStory(data json.RawMessage) (*FileTypeVideoStory, error)

func (*FileTypeVideoStory) FileTypeType added in v0.7.0

func (*FileTypeVideoStory) FileTypeType() string

func (*FileTypeVideoStory) GetClass added in v0.7.0

func (*FileTypeVideoStory) GetClass() string

func (*FileTypeVideoStory) GetType added in v0.7.0

func (*FileTypeVideoStory) GetType() string

func (*FileTypeVideoStory) MarshalJSON added in v0.7.0

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 FinishFileGenerationRequest

type FinishFileGenerationRequest struct {
	// The identifier of the generation process
	GenerationId JsonInt64 `json:"generation_id"`
	// If passed, the file generation has failed and must be terminated; pass null if the file generation succeeded
	Error *Error `json:"error"`
}

type FirebaseAuthenticationSettings added in v0.7.0

type FirebaseAuthenticationSettings interface {
	FirebaseAuthenticationSettingsType() string
}

Contains settings for Firebase Authentication in the official applications

func UnmarshalFirebaseAuthenticationSettings added in v0.7.0

func UnmarshalFirebaseAuthenticationSettings(data json.RawMessage) (FirebaseAuthenticationSettings, error)

func UnmarshalListOfFirebaseAuthenticationSettings added in v0.7.0

func UnmarshalListOfFirebaseAuthenticationSettings(dataList []json.RawMessage) ([]FirebaseAuthenticationSettings, error)

type FirebaseAuthenticationSettingsAndroid added in v0.7.0

type FirebaseAuthenticationSettingsAndroid struct {
	// contains filtered or unexported fields
}

Settings for Firebase Authentication in the official Android application

func UnmarshalFirebaseAuthenticationSettingsAndroid added in v0.7.0

func UnmarshalFirebaseAuthenticationSettingsAndroid(data json.RawMessage) (*FirebaseAuthenticationSettingsAndroid, error)

func (*FirebaseAuthenticationSettingsAndroid) FirebaseAuthenticationSettingsType added in v0.7.0

func (*FirebaseAuthenticationSettingsAndroid) FirebaseAuthenticationSettingsType() string

func (*FirebaseAuthenticationSettingsAndroid) GetClass added in v0.7.0

func (*FirebaseAuthenticationSettingsAndroid) GetType added in v0.7.0

func (*FirebaseAuthenticationSettingsAndroid) MarshalJSON added in v0.7.0

func (entity *FirebaseAuthenticationSettingsAndroid) MarshalJSON() ([]byte, error)

type FirebaseAuthenticationSettingsIos added in v0.7.0

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 v0.7.0

func UnmarshalFirebaseAuthenticationSettingsIos(data json.RawMessage) (*FirebaseAuthenticationSettingsIos, error)

func (*FirebaseAuthenticationSettingsIos) FirebaseAuthenticationSettingsType added in v0.7.0

func (*FirebaseAuthenticationSettingsIos) FirebaseAuthenticationSettingsType() string

func (*FirebaseAuthenticationSettingsIos) GetClass added in v0.7.0

func (*FirebaseAuthenticationSettingsIos) GetType added in v0.7.0

func (*FirebaseAuthenticationSettingsIos) MarshalJSON added in v0.7.0

func (entity *FirebaseAuthenticationSettingsIos) MarshalJSON() ([]byte, error)

type FirebaseDeviceVerificationParameters added in v0.7.3

type FirebaseDeviceVerificationParameters interface {
	FirebaseDeviceVerificationParametersType() string
}

Describes parameters to be used for device verification

func UnmarshalFirebaseDeviceVerificationParameters added in v0.7.3

func UnmarshalFirebaseDeviceVerificationParameters(data json.RawMessage) (FirebaseDeviceVerificationParameters, error)

func UnmarshalListOfFirebaseDeviceVerificationParameters added in v0.7.3

func UnmarshalListOfFirebaseDeviceVerificationParameters(dataList []json.RawMessage) ([]FirebaseDeviceVerificationParameters, error)

type FirebaseDeviceVerificationParametersPlayIntegrity added in v0.7.3

type FirebaseDeviceVerificationParametersPlayIntegrity struct {

	// Base64url-encoded nonce to pass to the Play Integrity API
	Nonce string `json:"nonce"`
	// Cloud project number to pass to the Play Integrity API
	CloudProjectNumber JsonInt64 `json:"cloud_project_number"`
	// contains filtered or unexported fields
}

Device verification must be performed with the classic Play Integrity verification (https://developer.android.com/google/play/integrity/classic)

func UnmarshalFirebaseDeviceVerificationParametersPlayIntegrity added in v0.7.3

func UnmarshalFirebaseDeviceVerificationParametersPlayIntegrity(data json.RawMessage) (*FirebaseDeviceVerificationParametersPlayIntegrity, error)

func (*FirebaseDeviceVerificationParametersPlayIntegrity) FirebaseDeviceVerificationParametersType added in v0.7.3

func (*FirebaseDeviceVerificationParametersPlayIntegrity) FirebaseDeviceVerificationParametersType() string

func (*FirebaseDeviceVerificationParametersPlayIntegrity) GetClass added in v0.7.3

func (*FirebaseDeviceVerificationParametersPlayIntegrity) GetType added in v0.7.3

func (*FirebaseDeviceVerificationParametersPlayIntegrity) MarshalJSON added in v0.7.3

type FirebaseDeviceVerificationParametersSafetyNet added in v0.7.3

type FirebaseDeviceVerificationParametersSafetyNet struct {

	// Nonce to pass to the SafetyNet Attestation API
	Nonce []byte `json:"nonce"`
	// contains filtered or unexported fields
}

Device verification must be performed with the SafetyNet Attestation API

func UnmarshalFirebaseDeviceVerificationParametersSafetyNet added in v0.7.3

func UnmarshalFirebaseDeviceVerificationParametersSafetyNet(data json.RawMessage) (*FirebaseDeviceVerificationParametersSafetyNet, error)

func (*FirebaseDeviceVerificationParametersSafetyNet) FirebaseDeviceVerificationParametersType added in v0.7.3

func (*FirebaseDeviceVerificationParametersSafetyNet) FirebaseDeviceVerificationParametersType() string

func (*FirebaseDeviceVerificationParametersSafetyNet) GetClass added in v0.7.3

func (*FirebaseDeviceVerificationParametersSafetyNet) GetType added in v0.7.3

func (*FirebaseDeviceVerificationParametersSafetyNet) MarshalJSON added in v0.7.3

func (entity *FirebaseDeviceVerificationParametersSafetyNet) 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. BlockQuote entities can't contain other BlockQuote 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 added in v0.6.0

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 added in v0.6.0

func ParseMarkdown(req *ParseMarkdownRequest) (*FormattedText, error)

Parses Markdown entities in a human-friendly format, ignoring markup errors. Can be called synchronously

func ParseTextEntities added in v0.6.0

func ParseTextEntities(req *ParseTextEntitiesRequest) (*FormattedText, error)

Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, 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 v0.7.0

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 v0.7.0

func UnmarshalForumTopic(data json.RawMessage) (*ForumTopic, error)

func (*ForumTopic) GetClass added in v0.7.0

func (*ForumTopic) GetClass() string

func (*ForumTopic) GetType added in v0.7.0

func (*ForumTopic) GetType() string

func (*ForumTopic) MarshalJSON added in v0.7.0

func (entity *ForumTopic) MarshalJSON() ([]byte, error)

type ForumTopicIcon added in v0.7.0

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 v0.7.0

func UnmarshalForumTopicIcon(data json.RawMessage) (*ForumTopicIcon, error)

func (*ForumTopicIcon) GetClass added in v0.7.0

func (*ForumTopicIcon) GetClass() string

func (*ForumTopicIcon) GetType added in v0.7.0

func (*ForumTopicIcon) GetType() string

func (*ForumTopicIcon) MarshalJSON added in v0.7.0

func (entity *ForumTopicIcon) MarshalJSON() ([]byte, error)

type ForumTopicInfo added in v0.7.0

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 v0.7.0

func UnmarshalForumTopicInfo(data json.RawMessage) (*ForumTopicInfo, error)

func (*ForumTopicInfo) GetClass added in v0.7.0

func (*ForumTopicInfo) GetClass() string

func (*ForumTopicInfo) GetType added in v0.7.0

func (*ForumTopicInfo) GetType() string

func (*ForumTopicInfo) MarshalJSON added in v0.7.0

func (entity *ForumTopicInfo) MarshalJSON() ([]byte, error)

func (*ForumTopicInfo) UnmarshalJSON added in v0.7.0

func (forumTopicInfo *ForumTopicInfo) UnmarshalJSON(data []byte) error

type ForumTopics added in v0.7.0

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 v0.7.0

func UnmarshalForumTopics(data json.RawMessage) (*ForumTopics, error)

func (*ForumTopics) GetClass added in v0.7.0

func (*ForumTopics) GetClass() string

func (*ForumTopics) GetType added in v0.7.0

func (*ForumTopics) GetType() string

func (*ForumTopics) MarshalJSON added in v0.7.0

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, the 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. A message can be forwarded only if messageProperties.can_be_forwarded
	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. Use messageProperties.can_be_saved and messageProperties.can_be_copied_to_secret_chat to check whether the message is suitable
	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"`
}

type ForwardSource added in v0.7.2

type ForwardSource struct {

	// Identifier of the chat to which the message that was forwarded belonged; may be 0 if unknown
	ChatId int64 `json:"chat_id"`
	// Identifier of the message; may be 0 if unknown
	MessageId int64 `json:"message_id"`
	// Identifier of the sender of the message; may be null if unknown or the new message was forwarded not to Saved Messages
	SenderId MessageSender `json:"sender_id"`
	// Name of the sender of the message if the sender is hidden by their privacy settings
	SenderName string `json:"sender_name"`
	// Point in time (Unix timestamp) when the message is sent; 0 if unknown
	Date int32 `json:"date"`
	// True, if the message that was forwarded is outgoing; always false if sender is unknown
	IsOutgoing bool `json:"is_outgoing"`
	// contains filtered or unexported fields
}

Contains information about the last message from which a new message was forwarded last time

func UnmarshalForwardSource added in v0.7.2

func UnmarshalForwardSource(data json.RawMessage) (*ForwardSource, error)

func (*ForwardSource) GetClass added in v0.7.2

func (*ForwardSource) GetClass() string

func (*ForwardSource) GetType added in v0.7.2

func (*ForwardSource) GetType() string

func (*ForwardSource) MarshalJSON added in v0.7.2

func (entity *ForwardSource) MarshalJSON() ([]byte, error)

func (*ForwardSource) UnmarshalJSON added in v0.7.2

func (forwardSource *ForwardSource) UnmarshalJSON(data []byte) error

type FoundChatBoosts added in v0.7.1

type FoundChatBoosts struct {

	// Total number of boosts applied to the chat
	TotalCount int32 `json:"total_count"`
	// List of boosts
	Boosts []*ChatBoost `json:"boosts"`
	// The offset for the next request. If empty, then there are no more results
	NextOffset string `json:"next_offset"`
	// contains filtered or unexported fields
}

Contains a list of boosts applied to a chat

func UnmarshalFoundChatBoosts added in v0.7.1

func UnmarshalFoundChatBoosts(data json.RawMessage) (*FoundChatBoosts, error)

func (*FoundChatBoosts) GetClass added in v0.7.1

func (*FoundChatBoosts) GetClass() string

func (*FoundChatBoosts) GetType added in v0.7.1

func (*FoundChatBoosts) GetType() string

func (*FoundChatBoosts) MarshalJSON added in v0.7.1

func (entity *FoundChatBoosts) MarshalJSON() ([]byte, error)

type FoundChatMessages added in v0.7.0

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 v0.7.0

func UnmarshalFoundChatMessages(data json.RawMessage) (*FoundChatMessages, error)

func (*FoundChatMessages) GetClass added in v0.7.0

func (*FoundChatMessages) GetClass() string

func (*FoundChatMessages) GetType added in v0.7.0

func (*FoundChatMessages) GetType() string

func (*FoundChatMessages) MarshalJSON added in v0.7.0

func (entity *FoundChatMessages) MarshalJSON() ([]byte, error)

type FoundFileDownloads added in v0.7.0

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, then 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 v0.7.0

func UnmarshalFoundFileDownloads(data json.RawMessage) (*FoundFileDownloads, error)

func (*FoundFileDownloads) GetClass added in v0.7.0

func (*FoundFileDownloads) GetClass() string

func (*FoundFileDownloads) GetType added in v0.7.0

func (*FoundFileDownloads) GetType() string

func (*FoundFileDownloads) MarshalJSON added in v0.7.0

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, then 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 FoundPosition added in v0.7.1

type FoundPosition struct {

	// The position of the match
	Position int32 `json:"position"`
	// contains filtered or unexported fields
}

Contains 0-based match position

func SearchQuote added in v0.7.1

func SearchQuote(req *SearchQuoteRequest) (*FoundPosition, error)

Searches for a given quote in a text. Returns found quote start position in UTF-16 code units. Returns a 404 error if the quote is not found. Can be called synchronously

func UnmarshalFoundPosition added in v0.7.1

func UnmarshalFoundPosition(data json.RawMessage) (*FoundPosition, error)

func (*FoundPosition) GetClass added in v0.7.1

func (*FoundPosition) GetClass() string

func (*FoundPosition) GetType added in v0.7.1

func (*FoundPosition) GetType() string

func (*FoundPosition) MarshalJSON added in v0.7.1

func (entity *FoundPosition) MarshalJSON() ([]byte, error)

type FoundPositions added in v0.7.0

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 v0.7.0

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 v0.7.0

func UnmarshalFoundPositions(data json.RawMessage) (*FoundPositions, error)

func (*FoundPositions) GetClass added in v0.7.0

func (*FoundPositions) GetClass() string

func (*FoundPositions) GetType added in v0.7.0

func (*FoundPositions) GetType() string

func (*FoundPositions) MarshalJSON added in v0.7.0

func (entity *FoundPositions) MarshalJSON() ([]byte, error)

type FoundStories added in v0.7.3

type FoundStories struct {

	// Approximate total number of stories found
	TotalCount int32 `json:"total_count"`
	// List of stories
	Stories []*Story `json:"stories"`
	// The offset for the next request. If empty, then there are no more results
	NextOffset string `json:"next_offset"`
	// contains filtered or unexported fields
}

Contains a list of stories found by a search

func UnmarshalFoundStories added in v0.7.3

func UnmarshalFoundStories(data json.RawMessage) (*FoundStories, error)

func (*FoundStories) GetClass added in v0.7.3

func (*FoundStories) GetClass() string

func (*FoundStories) GetType added in v0.7.3

func (*FoundStories) GetType() string

func (*FoundStories) MarshalJSON added in v0.7.3

func (entity *FoundStories) MarshalJSON() ([]byte, error)

type FoundUsers added in v0.7.3

type FoundUsers struct {

	// Identifiers of the found users
	UserIds []int64 `json:"user_ids"`
	// The offset for the next request. If empty, then there are no more results
	NextOffset string `json:"next_offset"`
	// contains filtered or unexported fields
}

Represents a list of found users

func UnmarshalFoundUsers added in v0.7.3

func UnmarshalFoundUsers(data json.RawMessage) (*FoundUsers, error)

func (*FoundUsers) GetClass added in v0.7.3

func (*FoundUsers) GetClass() string

func (*FoundUsers) GetType added in v0.7.3

func (*FoundUsers) GetType() string

func (*FoundUsers) MarshalJSON added in v0.7.3

func (entity *FoundUsers) MarshalJSON() ([]byte, error)

type FoundWebApp added in v0.7.0

type FoundWebApp struct {

	// The Web App
	WebApp *WebApp `json:"web_app"`
	// 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 v0.7.0

func UnmarshalFoundWebApp(data json.RawMessage) (*FoundWebApp, error)

func (*FoundWebApp) GetClass added in v0.7.0

func (*FoundWebApp) GetClass() string

func (*FoundWebApp) GetType added in v0.7.0

func (*FoundWebApp) GetType() string

func (*FoundWebApp) MarshalJSON added in v0.7.0

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) GetClass

func (*Game) GetClass() string

func (*Game) GetType

func (*Game) GetType() string

func (*Game) MarshalJSON

func (entity *Game) MarshalJSON() ([]byte, error)

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 v0.7.0

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 added in v0.5.0

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; use 0 to get results from the beginning
	OffsetStickerSetId JsonInt64 `json:"offset_sticker_set_id"`
	// The maximum number of sticker sets to return; up to 100
	Limit int32 `json:"limit"`
}

type GetAttachedStickerSetsRequest

type GetAttachedStickerSetsRequest struct {
	// File identifier
	FileId int32 `json:"file_id"`
}

type GetAttachmentMenuBotRequest added in v0.7.0

type GetAttachmentMenuBotRequest struct {
	// Bot's user identifier
	BotUserId int64 `json:"bot_user_id"`
}

type GetBackgroundUrlRequest added in v0.1.0

type GetBackgroundUrlRequest struct {
	// Background name
	Name string `json:"name"`
	// Background type; backgroundTypeChatTheme isn't supported
	Type BackgroundType `json:"type"`
}

type GetBankCardInfoRequest added in v0.3.0

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 added in v0.3.0

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 v0.7.0

type GetBotInfoDescriptionRequest struct {
	// Identifier of the target bot
	BotUserId int64 `json:"bot_user_id"`
	// A two-letter ISO 639-1 language code or an empty string
	LanguageCode string `json:"language_code"`
}

type GetBotInfoShortDescriptionRequest added in v0.7.0

type GetBotInfoShortDescriptionRequest struct {
	// Identifier of the target bot
	BotUserId int64 `json:"bot_user_id"`
	// A two-letter ISO 639-1 language code or an empty string
	LanguageCode string `json:"language_code"`
}

type GetBotMediaPreviewInfoRequest added in v0.7.3

type GetBotMediaPreviewInfoRequest struct {
	// Identifier of the target bot. The bot must be owned and must have the main Web App
	BotUserId int64 `json:"bot_user_id"`
	// A two-letter ISO 639-1 language code for which to get previews. If empty, then default previews are returned
	LanguageCode string `json:"language_code"`
}

type GetBotMediaPreviewsRequest added in v0.7.3

type GetBotMediaPreviewsRequest struct {
	// Identifier of the target bot. The bot must have the main Web App
	BotUserId int64 `json:"bot_user_id"`
}

type GetBotNameRequest added in v0.7.0

type GetBotNameRequest struct {
	// Identifier of the target bot
	BotUserId int64 `json:"bot_user_id"`
	// A two-letter ISO 639-1 language code or an empty string
	LanguageCode string `json:"language_code"`
}

type GetBusinessChatLinkInfoRequest added in v0.7.3

type GetBusinessChatLinkInfoRequest struct {
	// Name of the link
	LinkName string `json:"link_name"`
}

type GetBusinessConnectionRequest added in v0.7.2

type GetBusinessConnectionRequest struct {
	// Identifier of the business connection to return
	ConnectionId string `json:"connection_id"`
}

type GetBusinessFeaturesRequest added in v0.7.2

type GetBusinessFeaturesRequest struct {
	// Source of the request; pass null if the method is called from settings or some non-standard source
	Source BusinessFeature `json:"source"`
}

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. The message must not be scheduled
	MessageId int64 `json:"message_id"`
	// Query payload
	Payload CallbackQueryPayload `json:"payload"`
}

type GetCallbackQueryMessageRequest added in v0.3.0

type GetCallbackQueryMessageRequest struct {
	// Identifier of the chat the message belongs to
	ChatId int64 `json:"chat_id"`
	// Message identifier
	MessageId int64 `json:"message_id"`
	// Identifier of the callback query
	CallbackQueryId JsonInt64 `json:"callback_query_id"`
}

type GetChatActiveStoriesRequest added in v0.7.0

type GetChatActiveStoriesRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
}

type GetChatAdministratorsRequest

type GetChatAdministratorsRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
}

type GetChatArchivedStoriesRequest added in v0.7.1

type GetChatArchivedStoriesRequest 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 GetChatAvailableMessageSendersRequest added in v0.5.0

type GetChatAvailableMessageSendersRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
}

type GetChatBoostFeaturesRequest added in v0.7.2

type GetChatBoostFeaturesRequest struct {
	// Pass true to get the list of features for channels; pass false to get the list of features for supergroups
	IsChannel bool `json:"is_channel"`
}

type GetChatBoostLevelFeaturesRequest added in v0.7.2

type GetChatBoostLevelFeaturesRequest struct {
	// Pass true to get the list of features for channels; pass false to get the list of features for supergroups
	IsChannel bool `json:"is_channel"`
	// Chat boost level
	Level int32 `json:"level"`
}

type GetChatBoostLinkInfoRequest added in v0.7.1

type GetChatBoostLinkInfoRequest struct {
	// The link to boost a chat
	Url string `json:"url"`
}

type GetChatBoostLinkRequest added in v0.7.1

type GetChatBoostLinkRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
}

type GetChatBoostStatusRequest added in v0.7.1

type GetChatBoostStatusRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
}

type GetChatBoostsRequest added in v0.7.1

type GetChatBoostsRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
	// Pass true to receive only boosts received from gift codes and giveaways created by the chat
	OnlyGiftCodes bool `json:"only_gift_codes"`
	// 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 boosts to be returned; up to 100. For optimal performance, the number of returned boosts can be smaller than the specified limit
	Limit int32 `json:"limit"`
}

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 v0.7.0

type GetChatFolderChatCountRequest struct {
	// The new chat folder
	Folder *ChatFolder `json:"folder"`
}

type GetChatFolderChatsToLeaveRequest added in v0.7.0

type GetChatFolderChatsToLeaveRequest struct {
	// Chat folder identifier
	ChatFolderId int32 `json:"chat_folder_id"`
}

type GetChatFolderDefaultIconNameRequest added in v0.7.0

type GetChatFolderDefaultIconNameRequest struct {
	// Chat folder
	Folder *ChatFolder `json:"folder"`
}

type GetChatFolderInviteLinksRequest added in v0.7.0

type GetChatFolderInviteLinksRequest struct {
	// Chat folder identifier
	ChatFolderId int32 `json:"chat_folder_id"`
}

type GetChatFolderNewChatsRequest added in v0.7.0

type GetChatFolderNewChatsRequest struct {
	// Chat folder identifier
	ChatFolderId int32 `json:"chat_folder_id"`
}

type GetChatFolderRequest added in v0.7.0

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 message 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 added in v0.5.0

type GetChatInviteLinkCountsRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
}

type GetChatInviteLinkMembersRequest added in v0.5.0

type GetChatInviteLinkMembersRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Invite link for which to return chat members
	InviteLink string `json:"invite_link"`
	// Pass true if the link is a subscription link and only members with expired subscription must be returned
	OnlyWithExpiredSubscription bool `json:"only_with_expired_subscription"`
	// 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 GetChatInviteLinkRequest added in v0.5.0

type GetChatInviteLinkRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Invite link to get
	InviteLink string `json:"invite_link"`
}

type GetChatInviteLinksRequest added in v0.5.0

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 added in v0.5.0

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 added in v0.3.0

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 GetChatMessageByDateRequest

type GetChatMessageByDateRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Point in time (Unix timestamp) relative to which to search for messages
	Date int32 `json:"date"`
}

type GetChatMessageCalendarRequest added in v0.5.0

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"`
	// If not0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages, or for chats other than Saved Messages
	SavedMessagesTopicId int64 `json:"saved_messages_topic_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"`
	// If not 0, only messages in the specified Saved Messages topic will be counted; pass 0 to count all messages, or for chats other than Saved Messages
	SavedMessagesTopicId int64 `json:"saved_messages_topic_id"`
	// 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 v0.7.0

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"`
	// If not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all relevant messages, or for chats other than Saved Messages
	SavedMessagesTopicId int64 `json:"saved_messages_topic_id"`
}

type GetChatNotificationSettingsExceptionsRequest added in v0.0.13

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 GetChatPostedToChatPageStoriesRequest added in v0.7.3

type GetChatPostedToChatPageStoriesRequest 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 pinned and the newest 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 GetChatRevenueStatisticsRequest added in v0.7.3

type GetChatRevenueStatisticsRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Pass true if a dark theme is used by the application
	IsDark bool `json:"is_dark"`
}

type GetChatRevenueTransactionsRequest added in v0.7.3

type GetChatRevenueTransactionsRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Number of transactions to skip
	Offset int32 `json:"offset"`
	// The maximum number of transactions to be returned; up to 200
	Limit int32 `json:"limit"`
}

type GetChatRevenueWithdrawalUrlRequest added in v0.7.3

type GetChatRevenueWithdrawalUrlRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// The 2-step verification password of the current user
	Password string `json:"password"`
}

type GetChatScheduledMessagesRequest added in v0.2.0

type GetChatScheduledMessagesRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
}

type GetChatSimilarChatCountRequest added in v0.7.1

type GetChatSimilarChatCountRequest struct {
	// Identifier of the target chat; must be an identifier of a channel chat
	ChatId int64 `json:"chat_id"`
	// Pass true to get the number of chats without sending network requests, or -1 if the number of chats is unknown locally
	ReturnLocal bool `json:"return_local"`
}

type GetChatSimilarChatsRequest added in v0.7.1

type GetChatSimilarChatsRequest struct {
	// Identifier of the target chat; must be an identifier of a channel chat
	ChatId int64 `json:"chat_id"`
}

type GetChatSparseMessagePositionsRequest added in v0.5.0

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"`
	// If not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages, or for chats other than Saved Messages
	SavedMessagesTopicId int64 `json:"saved_messages_topic_id"`
}

type GetChatSponsoredMessagesRequest added in v0.7.0

type GetChatSponsoredMessagesRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
}

type GetChatStatisticsRequest added in v0.3.0

type GetChatStatisticsRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Pass true if a dark theme is used by the application
	IsDark bool `json:"is_dark"`
}

type GetChatStoryInteractionsRequest added in v0.7.2

type GetChatStoryInteractionsRequest struct {
	// The identifier of the sender of the story
	StorySenderChatId int64 `json:"story_sender_chat_id"`
	// Story identifier
	StoryId int32 `json:"story_id"`
	// Pass the default heart reaction or a suggested reaction type to receive only interactions with the specified reaction type; pass null to receive all interactions; reactionTypePaid isn't supported
	ReactionType ReactionType `json:"reaction_type"`
	// Pass true to get forwards and reposts first, then reactions, then other views; pass false to get interactions sorted just by interaction date
	PreferForwards bool `json:"prefer_forwards"`
	// 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 interactions to return
	Limit int32 `json:"limit"`
}

type GetChatsForChatFolderInviteLinkRequest added in v0.7.0

type GetChatsForChatFolderInviteLinkRequest struct {
	// Chat folder identifier
	ChatFolderId int32 `json:"chat_folder_id"`
}

type GetChatsRequest

type GetChatsRequest struct {
	// The chat list in which to return chats; pass null to get chats from the main chat list
	ChatList ChatList `json:"chat_list"`
	// The maximum number of chats to be returned
	Limit int32 `json:"limit"`
}

type GetCollectibleItemInfoRequest added in v0.7.2

type GetCollectibleItemInfoRequest struct {
	// Type of the collectible item. The item must be used by a user and must be visible to the current user
	Type CollectibleItemType `json:"type"`
}

type GetCommandsRequest added in v0.5.0

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 GetCountryFlagEmojiRequest added in v0.7.2

type GetCountryFlagEmojiRequest struct {
	// A two-letter ISO 3166-1 alpha-2 country code as received from getCountries
	CountryCode string `json:"country_code"`
}

type GetCreatedPublicChatsRequest added in v0.2.0

type GetCreatedPublicChatsRequest struct {
	// Type of the public chats to return
	Type PublicChatType `json:"type"`
}

type GetCurrentWeatherRequest added in v0.7.3

type GetCurrentWeatherRequest struct {
	// The location
	Location *Location `json:"location"`
}

type GetCustomEmojiStickersRequest added in v0.7.0

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 v0.7.0

type GetEmojiCategoriesRequest struct {
	// Type of emoji categories to return; pass null to get default emoji categories
	Type EmojiCategoryType `json:"type"`
}

type GetEmojiReactionRequest added in v0.7.0

type GetEmojiReactionRequest struct {
	// Text representation of the reaction
	Emoji string `json:"emoji"`
}

type GetEmojiSuggestionsUrlRequest added in v0.1.0

type GetEmojiSuggestionsUrlRequest struct {
	// Language code for which the emoji replacements will be suggested
	LanguageCode string `json:"language_code"`
}

type GetExternalLinkInfoRequest added in v0.5.0

type GetExternalLinkInfoRequest struct {
	// The link
	Link string `json:"link"`
}

type GetExternalLinkRequest added in v0.5.0

type GetExternalLinkRequest struct {
	// The HTTP link
	Link string `json:"link"`
	// Pass true if the current user allowed the bot, returned in getExternalLinkInfo, to send them messages
	AllowWriteAccess bool `json:"allow_write_access"`
}

type GetFileDownloadedPrefixSizeRequest added in v0.0.13

type GetFileDownloadedPrefixSizeRequest struct {
	// Identifier of the file
	FileId int32 `json:"file_id"`
	// Offset from which downloaded prefix size needs to be calculated
	Offset int64 `json:"offset"`
}

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 v0.7.0

type GetForumTopicLinkRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
	// Message thread identifier of the forum topic
	MessageThreadId int64 `json:"message_thread_id"`
}

type GetForumTopicRequest added in v0.7.0

type GetForumTopicRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
	// Message thread identifier of the forum topic
	MessageThreadId int64 `json:"message_thread_id"`
}

type GetForumTopicsRequest added in v0.7.0

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 GetGameHighScoresRequest

type GetGameHighScoresRequest struct {
	// The chat that contains the message with the game
	ChatId int64 `json:"chat_id"`
	// Identifier of the message
	MessageId int64 `json:"message_id"`
	// User identifier
	UserId int64 `json:"user_id"`
}

type GetGiveawayInfoRequest added in v0.7.3

type GetGiveawayInfoRequest struct {
	// Identifier of the channel chat which started the giveaway
	ChatId int64 `json:"chat_id"`
	// Identifier of the giveaway or a giveaway winners message in the chat
	MessageId int64 `json:"message_id"`
}

type GetGrossingWebAppBotsRequest added in v0.7.3

type GetGrossingWebAppBotsRequest 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 bots to be returned; up to 100
	Limit int32 `json:"limit"`
}

type GetGroupCallInviteLinkRequest added in v0.5.0

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 added in v0.5.0

type GetGroupCallRequest struct {
	// Group call identifier
	GroupCallId int32 `json:"group_call_id"`
}

type GetGroupCallStreamSegmentRequest added in v0.5.0

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 v0.7.0

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 GetInlineGameHighScoresRequest

type GetInlineGameHighScoresRequest struct {
	// Inline message identifier
	InlineMessageId string `json:"inline_message_id"`
	// User identifier
	UserId int64 `json:"user_id"`
}

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 GetInstalledBackgroundsRequest added in v0.7.2

type GetInstalledBackgroundsRequest struct {
	// Pass true to order returned backgrounds for a dark theme
	ForDarkTheme bool `json:"for_dark_theme"`
}

type GetInstalledStickerSetsRequest

type GetInstalledStickerSetsRequest struct {
	// Type of the sticker sets to return
	StickerType StickerType `json:"sticker_type"`
}

type GetInternalLinkRequest added in v0.7.0

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 added in v0.5.0

type GetInternalLinkTypeRequest struct {
	// The link
	Link string `json:"link"`
}

type GetJsonStringRequest added in v0.0.13

type GetJsonStringRequest struct {
	// The JsonValue object
	JsonValue JsonValue `json:"json_value"`
}

type GetJsonValueRequest added in v0.0.13

type GetJsonValueRequest struct {
	// The JSON-serialized string
	Json string `json:"json"`
}

type GetKeywordEmojisRequest added in v0.7.2

type GetKeywordEmojisRequest struct {
	// Text to search for
	Text string `json:"text"`
	// List of possible IETF language tags of the user's input language; may be empty if unknown
	InputLanguageCodes []string `json:"input_language_codes"`
}

type GetLanguagePackInfoRequest added in v0.0.13

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 GetLanguagePackStringsRequest

type GetLanguagePackStringsRequest struct {
	// Language pack identifier of the strings to be returned
	LanguagePackId string `json:"language_pack_id"`
	// Language pack keys of the strings to be returned; leave empty to request all available strings
	Keys []string `json:"keys"`
}

type GetLinkPreviewRequest added in v0.7.3

type GetLinkPreviewRequest struct {
	// Message text with formatting
	Text *FormattedText `json:"text"`
	// Options to be used for generation of the link preview; pass null to use default link preview options
	LinkPreviewOptions *LinkPreviewOptions `json:"link_preview_options"`
}

type GetLocalizationTargetInfoRequest

type GetLocalizationTargetInfoRequest struct {
	// Pass true to get only locally available information without sending network requests
	OnlyLocal bool `json:"only_local"`
}

type GetLogTagVerbosityLevelRequest added in v0.0.13

type GetLogTagVerbosityLevelRequest struct {
	// Logging tag to change verbosity level
	Tag string `json:"tag"`
}

type GetLoginUrlInfoRequest added in v0.2.0

type GetLoginUrlInfoRequest struct {
	// Chat identifier of the message with the button
	ChatId int64 `json:"chat_id"`
	// Message identifier of the message with the button. The message must not be scheduled
	MessageId int64 `json:"message_id"`
	// Button identifier
	ButtonId int64 `json:"button_id"`
}

type GetLoginUrlRequest added in v0.2.0

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 GetMainWebAppRequest added in v0.7.3

type GetMainWebAppRequest struct {
	// Identifier of the chat in which the Web App is opened; pass 0 if none
	ChatId int64 `json:"chat_id"`
	// Identifier of the target bot
	BotUserId int64 `json:"bot_user_id"`
	// Start parameter from internalLinkTypeMainWebApp
	StartParameter string `json:"start_parameter"`
	// Parameters to use to open the Web App
	Parameters *WebAppOpenParameters `json:"parameters"`
}

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 added in v0.3.0

type GetMarkdownTextRequest struct {
	// The text
	Text *FormattedText `json:"text"`
}

type GetMenuButtonRequest added in v0.7.0

type GetMenuButtonRequest struct {
	// Identifier of the user or 0 to get the default menu button
	UserId int64 `json:"user_id"`
}

type GetMessageAddedReactionsRequest added in v0.7.0

type GetMessageAddedReactionsRequest struct {
	// Identifier of the chat to which the message belongs
	ChatId int64 `json:"chat_id"`
	// Identifier of the message. Use message.interaction_info.reactions.can_get_added_reactions to check whether added reactions can be received for the message
	MessageId int64 `json:"message_id"`
	// Type of the reactions to return; pass null to return all added reactions; reactionTypePaid isn't supported
	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 v0.7.0

type GetMessageAvailableReactionsRequest struct {
	// Identifier of the chat to which the message belongs
	ChatId int64 `json:"chat_id"`
	// Identifier of the message
	MessageId int64 `json:"message_id"`
	// Number of reaction per row, 5-25
	RowSize int32 `json:"row_size"`
}

type GetMessageEffectRequest added in v0.7.3

type GetMessageEffectRequest struct {
	// Unique identifier of the effect
	EffectId JsonInt64 `json:"effect_id"`
}

type GetMessageEmbeddingCodeRequest added in v0.3.0

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 added in v0.5.0

type GetMessageFileTypeRequest struct {
	// Beginning of the message file; up to 100 first lines
	MessageFileHead string `json:"message_file_head"`
}

type GetMessageImportConfirmationTextRequest added in v0.5.0

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 member right
	ChatId int64 `json:"chat_id"`
}

type GetMessageLinkInfoRequest added in v0.1.0

type GetMessageLinkInfoRequest struct {
	// The message link
	Url string `json:"url"`
}

type GetMessageLinkRequest added in v0.0.13

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/story playing must start, in seconds. The media can be in the message content or in its link 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 GetMessageLocallyRequest added in v0.0.13

type GetMessageLocallyRequest struct {
	// Identifier of the chat the message belongs to
	ChatId int64 `json:"chat_id"`
	// Identifier of the message to get
	MessageId int64 `json:"message_id"`
}

type GetMessagePropertiesRequest added in v0.7.3

type GetMessagePropertiesRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Identifier of the message
	MessageId int64 `json:"message_id"`
}

type GetMessagePublicForwardsRequest added in v0.3.0

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 and stories to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit
	Limit int32 `json:"limit"`
}

type GetMessageReadDateRequest added in v0.7.2

type GetMessageReadDateRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Identifier of the message
	MessageId int64 `json:"message_id"`
}

type GetMessageRequest

type GetMessageRequest struct {
	// Identifier of the chat the message belongs to
	ChatId int64 `json:"chat_id"`
	// Identifier of the message to get
	MessageId int64 `json:"message_id"`
}

type GetMessageStatisticsRequest added in v0.3.0

type GetMessageStatisticsRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Message identifier
	MessageId int64 `json:"message_id"`
	// Pass true if a dark theme is used by the application
	IsDark bool `json:"is_dark"`
}

type GetMessageThreadHistoryRequest added in v0.3.0

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 message 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 added in v0.3.0

type GetMessageThreadRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Identifier of the message
	MessageId int64 `json:"message_id"`
}

type GetMessageViewersRequest added in v0.5.0

type GetMessageViewersRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Identifier of the message
	MessageId int64 `json:"message_id"`
}

type GetMessagesRequest

type GetMessagesRequest struct {
	// Identifier of the chat the messages belong to
	ChatId int64 `json:"chat_id"`
	// Identifiers of the messages to get
	MessageIds []int64 `json:"message_ids"`
}

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 GetOwnedStickerSetsRequest added in v0.7.2

type GetOwnedStickerSetsRequest struct {
	// Identifier of the sticker set from which to return owned sticker sets; use 0 to get results from the beginning
	OffsetStickerSetId JsonInt64 `json:"offset_sticker_set_id"`
	// The maximum number of sticker sets to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit
	Limit int32 `json:"limit"`
}

type GetPassportAuthorizationFormAvailableElementsRequest added in v0.0.13

type GetPassportAuthorizationFormAvailableElementsRequest struct {
	// Authorization form identifier
	AuthorizationFormId int32 `json:"authorization_form_id"`
	// The 2-step verification password of the current user
	Password string `json:"password"`
}

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 GetPaymentReceiptRequest

type GetPaymentReceiptRequest struct {
	// Chat identifier of the messagePaymentSuccessful message
	ChatId int64 `json:"chat_id"`
	// Message identifier
	MessageId int64 `json:"message_id"`
}

type GetPhoneNumberInfoRequest added in v0.3.0

type GetPhoneNumberInfoRequest struct {
	// The phone number prefix
	PhoneNumberPrefix string `json:"phone_number_prefix"`
}

type GetPhoneNumberInfoSyncRequest added in v0.5.0

type GetPhoneNumberInfoSyncRequest struct {
	// A two-letter ISO 639-1 language code for country information localization
	LanguageCode string `json:"language_code"`
	// The phone number prefix
	PhoneNumberPrefix string `json:"phone_number_prefix"`
}

type GetPollVotersRequest added in v0.2.0

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 v0.7.0

type GetPremiumFeaturesRequest struct {
	// Source of the request; pass null if the method is called from some non-standard source
	Source PremiumSource `json:"source"`
}

type GetPremiumGiftCodePaymentOptionsRequest added in v0.7.1

type GetPremiumGiftCodePaymentOptionsRequest struct {
	// Identifier of the supergroup or channel chat, which will be automatically boosted by receivers of the gift codes and which is administered by the user; 0 if none
	BoostedChatId int64 `json:"boosted_chat_id"`
}

type GetPremiumInfoStickerRequest added in v0.7.3

type GetPremiumInfoStickerRequest struct {
	// Number of months the Telegram Premium subscription will be active
	MonthCount int32 `json:"month_count"`
}

type GetPremiumLimitRequest added in v0.7.0

type GetPremiumLimitRequest struct {
	// Type of the limit
	LimitType PremiumLimitType `json:"limit_type"`
}

type GetPremiumStickersRequest added in v0.7.0

type GetPremiumStickersRequest struct {
	// The maximum number of stickers to be returned; 0-100
	Limit int32 `json:"limit"`
}

type GetPreparedInlineMessageRequest added in v0.7.4

type GetPreparedInlineMessageRequest struct {
	// Identifier of the bot that created the message
	BotUserId int64 `json:"bot_user_id"`
	// Identifier of the prepared message
	PreparedMessageId string `json:"prepared_message_id"`
}

type GetProxyLinkRequest

type GetProxyLinkRequest struct {
	// Proxy identifier
	ProxyId int32 `json:"proxy_id"`
}

type GetPushReceiverIdRequest added in v0.0.13

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 added in v0.5.0

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 GetRemoteFileRequest struct {
	// Remote identifier of the file to get
	RemoteFileId string `json:"remote_file_id"`
	// File type; pass null if unknown
	FileType FileType `json:"file_type"`
}

type GetRepliedMessageRequest

type GetRepliedMessageRequest struct {
	// Identifier of the chat the message belongs to
	ChatId int64 `json:"chat_id"`
	// Identifier of the reply message
	MessageId int64 `json:"message_id"`
}

type GetSavedMessagesTagsRequest added in v0.7.2

type GetSavedMessagesTagsRequest struct {
	// Identifier of Saved Messages topic which tags will be returned; pass 0 to get all Saved Messages tags
	SavedMessagesTopicId int64 `json:"saved_messages_topic_id"`
}

type GetSavedMessagesTopicHistoryRequest added in v0.7.2

type GetSavedMessagesTopicHistoryRequest struct {
	// Identifier of Saved Messages topic which messages will be fetched
	SavedMessagesTopicId int64 `json:"saved_messages_topic_id"`
	// Identifier of the message starting from which messages 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 message 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 GetSavedMessagesTopicMessageByDateRequest added in v0.7.2

type GetSavedMessagesTopicMessageByDateRequest struct {
	// Identifier of Saved Messages topic which message will be returned
	SavedMessagesTopicId int64 `json:"saved_messages_topic_id"`
	// Point in time (Unix timestamp) relative to which to search for messages
	Date int32 `json:"date"`
}

type GetSavedNotificationSoundRequest added in v0.7.0

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 GetSearchedForTagsRequest added in v0.7.3

type GetSearchedForTagsRequest struct {
	// Prefix of hashtags or cashtags to return
	TagPrefix string `json:"tag_prefix"`
	// The maximum number of items to be returned
	Limit int32 `json:"limit"`
}

type GetSecretChatRequest

type GetSecretChatRequest struct {
	// Secret chat identifier
	SecretChatId int32 `json:"secret_chat_id"`
}

type GetStarAdAccountUrlRequest added in v0.7.3

type GetStarAdAccountUrlRequest struct {
	// Identifier of the owner of the Telegram Stars; can be identifier of an owned bot, or identifier of an owned channel chat
	OwnerId MessageSender `json:"owner_id"`
}

type GetStarGiftPaymentOptionsRequest added in v0.7.3

type GetStarGiftPaymentOptionsRequest struct {
	// Identifier of the user that will receive Telegram Stars; pass 0 to get options for an unspecified user
	UserId int64 `json:"user_id"`
}

type GetStarRevenueStatisticsRequest added in v0.7.3

type GetStarRevenueStatisticsRequest struct {
	// Identifier of the owner of the Telegram Stars; can be identifier of an owned bot, or identifier of a channel chat with supergroupFullInfo.can_get_star_revenue_statistics == true
	OwnerId MessageSender `json:"owner_id"`
	// Pass true if a dark theme is used by the application
	IsDark bool `json:"is_dark"`
}

type GetStarSubscriptionsRequest added in v0.7.3

type GetStarSubscriptionsRequest struct {
	// Pass true to receive only expiring subscriptions for which there are no enough Telegram Stars to extend
	OnlyExpiring bool `json:"only_expiring"`
	// Offset of the first subscription to return as received from the previous request; use empty string to get the first chunk of results
	Offset string `json:"offset"`
}

type GetStarTransactionsRequest added in v0.7.3

type GetStarTransactionsRequest struct {
	// Identifier of the owner of the Telegram Stars; can be the identifier of the current user, identifier of an owned bot, or identifier of a channel chat with supergroupFullInfo.can_get_star_revenue_statistics == true
	OwnerId MessageSender `json:"owner_id"`
	// If non-empty, only transactions related to the Star Subscription will be returned
	SubscriptionId string `json:"subscription_id"`
	// Direction of the transactions to receive; pass null to get all transactions
	Direction StarTransactionDirection `json:"direction"`
	// Offset of the first transaction 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 transactions to return
	Limit int32 `json:"limit"`
}

type GetStarWithdrawalUrlRequest added in v0.7.3

type GetStarWithdrawalUrlRequest struct {
	// Identifier of the owner of the Telegram Stars; can be identifier of an owned bot, or identifier of an owned channel chat
	OwnerId MessageSender `json:"owner_id"`
	// The number of Telegram Stars to withdraw. Must be at least getOption("star_withdrawal_count_min")
	StarCount int64 `json:"star_count"`
	// The 2-step verification password of the current user
	Password string `json:"password"`
}

type GetStatisticalGraphRequest added in v0.3.0

type GetStatisticalGraphRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// The token for graph loading
	Token string `json:"token"`
	// X-value for zoomed in graph or 0 otherwise
	X int64 `json:"x"`
}

type GetStickerEmojisRequest

type GetStickerEmojisRequest struct {
	// Sticker file identifier
	Sticker InputFile `json:"sticker"`
}

type GetStickerOutlineRequest added in v0.7.4

type GetStickerOutlineRequest struct {
	// File identifier of the sticker
	StickerFileId int32 `json:"sticker_file_id"`
	// Pass true to get the outline scaled for animated emoji
	ForAnimatedEmoji bool `json:"for_animated_emoji"`
	// Pass true to get the outline scaled for clicked animated emoji message
	ForClickedAnimatedEmojiMessage bool `json:"for_clicked_animated_emoji_message"`
}

type GetStickerSetNameRequest added in v0.7.3

type GetStickerSetNameRequest struct {
	// Identifier of the sticker set
	SetId JsonInt64 `json:"set_id"`
}

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 emojis 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 v0.7.0

type GetStoryAvailableReactionsRequest struct {
	// Number of reaction per row, 5-25
	RowSize int32 `json:"row_size"`
}

type GetStoryInteractionsRequest added in v0.7.2

type GetStoryInteractionsRequest struct {
	// Story identifier
	StoryId int32 `json:"story_id"`
	// Query to search for in names, usernames and titles; may be empty to get all relevant interactions
	Query string `json:"query"`
	// Pass true to get only interactions by contacts; pass false to get all relevant interactions
	OnlyContacts bool `json:"only_contacts"`
	// Pass true to get forwards and reposts first, then reactions, then other views; pass false to get interactions sorted just by interaction date
	PreferForwards bool `json:"prefer_forwards"`
	// Pass true to get interactions with reaction first; pass false to get interactions sorted just by interaction date. Ignored if prefer_forwards == true
	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 interactions to return
	Limit int32 `json:"limit"`
}

type GetStoryPublicForwardsRequest added in v0.7.1

type GetStoryPublicForwardsRequest 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"`
	// 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 and stories to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit
	Limit int32 `json:"limit"`
}

type GetStoryRequest added in v0.7.0

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 GetStoryStatisticsRequest added in v0.7.1

type GetStoryStatisticsRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Story identifier
	StoryId int32 `json:"story_id"`
	// Pass true if a dark theme is used by the application
	IsDark bool `json:"is_dark"`
}

type GetSuggestedFileNameRequest added in v0.5.0

type GetSuggestedFileNameRequest struct {
	// Identifier of the file
	FileId int32 `json:"file_id"`
	// Directory in which the file is expected to be saved
	Directory string `json:"directory"`
}

type GetSuggestedStickerSetNameRequest added in v0.5.0

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 to 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 v0.7.0

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 added in v0.3.0

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 GetUserChatBoostsRequest added in v0.7.1

type GetUserChatBoostsRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
	// Identifier of the user
	UserId int64 `json:"user_id"`
}

type GetUserFullInfoRequest

type GetUserFullInfoRequest struct {
	// User identifier
	UserId int64 `json:"user_id"`
}

type GetUserGiftsRequest added in v0.7.3

type GetUserGiftsRequest struct {
	// Identifier of the user
	UserId int64 `json:"user_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 gifts to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit
	Limit int32 `json:"limit"`
}

type GetUserPrivacySettingRulesRequest

type GetUserPrivacySettingRulesRequest struct {
	// The privacy setting
	Setting UserPrivacySetting `json:"setting"`
}

type GetUserProfilePhotosRequest

type GetUserProfilePhotosRequest struct {
	// User identifier
	UserId int64 `json:"user_id"`
	// The number of photos to skip; must be non-negative
	Offset int32 `json:"offset"`
	// The maximum number of photos to be returned; up to 100
	Limit int32 `json:"limit"`
}

type GetUserRequest

type GetUserRequest struct {
	// User identifier
	UserId int64 `json:"user_id"`
}

type GetUserSupportInfoRequest added in v0.7.0

type GetUserSupportInfoRequest struct {
	// User identifier
	UserId int64 `json:"user_id"`
}

type GetVideoChatAvailableParticipantsRequest added in v0.5.0

type GetVideoChatAvailableParticipantsRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
}

type GetVideoChatRtmpUrlRequest added in v0.7.0

type GetVideoChatRtmpUrlRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
}

type GetWebAppLinkUrlRequest added in v0.7.0

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"`
	// Pass true if the current user allowed the bot to send them messages
	AllowWriteAccess bool `json:"allow_write_access"`
	// Parameters to use to open the Web App
	Parameters *WebAppOpenParameters `json:"parameters"`
}

type GetWebAppPlaceholderRequest added in v0.7.4

type GetWebAppPlaceholderRequest struct {
	// Identifier of the target bot
	BotUserId int64 `json:"bot_user_id"`
}

type GetWebAppUrlRequest added in v0.7.0

type GetWebAppUrlRequest struct {
	// Identifier of the target bot
	BotUserId int64 `json:"bot_user_id"`
	// The URL from a keyboardButtonTypeWebApp button, inlineQueryResultsButtonTypeWebApp button, or an empty string when the bot is opened from the side menu
	Url string `json:"url"`
	// Parameters to use to open the Web App
	Parameters *WebAppOpenParameters `json:"parameters"`
}

type GetWebPageInstantViewRequest

type GetWebPageInstantViewRequest struct {
	// The web page URL
	Url string `json:"url"`
	// Pass true to get full instant view for the web page
	ForceFull bool `json:"force_full"`
}

type Gift added in v0.7.3

type Gift struct {

	// Unique identifier of the gift
	Id JsonInt64 `json:"id"`
	// The sticker representing the gift
	Sticker *Sticker `json:"sticker"`
	// Number of Telegram Stars that must be paid for the gift
	StarCount int64 `json:"star_count"`
	// Number of Telegram Stars that can be claimed by the receiver instead of the gift by default. If the gift was paid with just bought Telegram Stars, then full value can be claimed
	DefaultSellStarCount int64 `json:"default_sell_star_count"`
	// True, if the gift is a birthday gift
	IsForBirthday bool `json:"is_for_birthday"`
	// Number of remaining times the gift can be purchased by all users; 0 if not limited or the gift was sold out
	RemainingCount int32 `json:"remaining_count"`
	// Number of total times the gift can be purchased by all users; 0 if not limited
	TotalCount int32 `json:"total_count"`
	// Point in time (Unix timestamp) when the gift was send for the first time; for sold out gifts only
	FirstSendDate int32 `json:"first_send_date"`
	// Point in time (Unix timestamp) when the gift was send for the last time; for sold out gifts only
	LastSendDate int32 `json:"last_send_date"`
	// contains filtered or unexported fields
}

Describes a gift that can be sent to another user

func UnmarshalGift added in v0.7.3

func UnmarshalGift(data json.RawMessage) (*Gift, error)

func (*Gift) GetClass added in v0.7.3

func (*Gift) GetClass() string

func (*Gift) GetType added in v0.7.3

func (*Gift) GetType() string

func (*Gift) MarshalJSON added in v0.7.3

func (entity *Gift) MarshalJSON() ([]byte, error)

type Gifts added in v0.7.3

type Gifts struct {

	// The list of gifts
	Gifts []*Gift `json:"gifts"`
	// contains filtered or unexported fields
}

Contains a list of gifts that can be sent to another user

func UnmarshalGifts added in v0.7.3

func UnmarshalGifts(data json.RawMessage) (*Gifts, error)

func (*Gifts) GetClass added in v0.7.3

func (*Gifts) GetClass() string

func (*Gifts) GetType added in v0.7.3

func (*Gifts) GetType() string

func (*Gifts) MarshalJSON added in v0.7.3

func (entity *Gifts) MarshalJSON() ([]byte, error)

type GiveawayInfo added in v0.7.3

type GiveawayInfo interface {
	GiveawayInfoType() string
}

Contains information about a giveaway

func UnmarshalGiveawayInfo added in v0.7.3

func UnmarshalGiveawayInfo(data json.RawMessage) (GiveawayInfo, error)

func UnmarshalListOfGiveawayInfo added in v0.7.3

func UnmarshalListOfGiveawayInfo(dataList []json.RawMessage) ([]GiveawayInfo, error)

type GiveawayInfoCompleted added in v0.7.3

type GiveawayInfoCompleted struct {

	// Point in time (Unix timestamp) when the giveaway was created
	CreationDate int32 `json:"creation_date"`
	// Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway
	ActualWinnersSelectionDate int32 `json:"actual_winners_selection_date"`
	// True, if the giveaway was canceled and was fully refunded
	WasRefunded bool `json:"was_refunded"`
	// True, if the current user is a winner of the giveaway
	IsWinner bool `json:"is_winner"`
	// Number of winners in the giveaway
	WinnerCount int32 `json:"winner_count"`
	// Number of winners, which activated their gift codes; for Telegram Premium giveaways only
	ActivationCount int32 `json:"activation_count"`
	// Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Premium giveaway
	GiftCode string `json:"gift_code"`
	// The amount of Telegram Stars won by the current user; 0 if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Star giveaway
	WonStarCount int64 `json:"won_star_count"`
	// contains filtered or unexported fields
}

Describes a completed giveaway

func UnmarshalGiveawayInfoCompleted added in v0.7.3

func UnmarshalGiveawayInfoCompleted(data json.RawMessage) (*GiveawayInfoCompleted, error)

func (*GiveawayInfoCompleted) GetClass added in v0.7.3

func (*GiveawayInfoCompleted) GetClass() string

func (*GiveawayInfoCompleted) GetType added in v0.7.3

func (*GiveawayInfoCompleted) GetType() string

func (*GiveawayInfoCompleted) GiveawayInfoType added in v0.7.3

func (*GiveawayInfoCompleted) GiveawayInfoType() string

func (*GiveawayInfoCompleted) MarshalJSON added in v0.7.3

func (entity *GiveawayInfoCompleted) MarshalJSON() ([]byte, error)

type GiveawayInfoOngoing added in v0.7.3

type GiveawayInfoOngoing struct {

	// Point in time (Unix timestamp) when the giveaway was created
	CreationDate int32 `json:"creation_date"`
	// Status of the current user in the giveaway
	Status GiveawayParticipantStatus `json:"status"`
	// True, if the giveaway has ended and results are being prepared
	IsEnded bool `json:"is_ended"`
	// contains filtered or unexported fields
}

Describes an ongoing giveaway

func UnmarshalGiveawayInfoOngoing added in v0.7.3

func UnmarshalGiveawayInfoOngoing(data json.RawMessage) (*GiveawayInfoOngoing, error)

func (*GiveawayInfoOngoing) GetClass added in v0.7.3

func (*GiveawayInfoOngoing) GetClass() string

func (*GiveawayInfoOngoing) GetType added in v0.7.3

func (*GiveawayInfoOngoing) GetType() string

func (*GiveawayInfoOngoing) GiveawayInfoType added in v0.7.3

func (*GiveawayInfoOngoing) GiveawayInfoType() string

func (*GiveawayInfoOngoing) MarshalJSON added in v0.7.3

func (entity *GiveawayInfoOngoing) MarshalJSON() ([]byte, error)

func (*GiveawayInfoOngoing) UnmarshalJSON added in v0.7.3

func (giveawayInfoOngoing *GiveawayInfoOngoing) UnmarshalJSON(data []byte) error

type GiveawayParameters added in v0.7.3

type GiveawayParameters struct {

	// Identifier of the supergroup or channel chat, which will be automatically boosted by the winners of the giveaway for duration of the Telegram Premium subscription, or for the specified time. If the chat is a channel, then can_post_messages right is required in the channel, otherwise, the user must be an administrator in the supergroup
	BoostedChatId int64 `json:"boosted_chat_id"`
	// Identifiers of other supergroup or channel chats that must be subscribed by the users to be eligible for the giveaway. There can be up to getOption("giveaway_additional_chat_count_max") additional chats
	AdditionalChatIds []int64 `json:"additional_chat_ids"`
	// Point in time (Unix timestamp) when the giveaway is expected to be performed; must be 60-getOption("giveaway_duration_max") seconds in the future in scheduled giveaways
	WinnersSelectionDate int32 `json:"winners_selection_date"`
	// True, if only new members of the chats will be eligible for the giveaway
	OnlyNewMembers bool `json:"only_new_members"`
	// True, if the list of winners of the giveaway will be available to everyone
	HasPublicWinners bool `json:"has_public_winners"`
	// The list of two-letter ISO 3166-1 alpha-2 codes of countries, users from which will be eligible for the giveaway. If empty, then all users can participate in the giveaway. There can be up to getOption("giveaway_country_count_max") chosen countries. Users with phone number that was bought at https://fragment.com can participate in any giveaway and the country code "FT" must not be specified in the list
	CountryCodes []string `json:"country_codes"`
	// Additional description of the giveaway prize; 0-128 characters
	PrizeDescription string `json:"prize_description"`
	// contains filtered or unexported fields
}

Describes parameters of a giveaway

func UnmarshalGiveawayParameters added in v0.7.3

func UnmarshalGiveawayParameters(data json.RawMessage) (*GiveawayParameters, error)

func (*GiveawayParameters) GetClass added in v0.7.3

func (*GiveawayParameters) GetClass() string

func (*GiveawayParameters) GetType added in v0.7.3

func (*GiveawayParameters) GetType() string

func (*GiveawayParameters) MarshalJSON added in v0.7.3

func (entity *GiveawayParameters) MarshalJSON() ([]byte, error)

type GiveawayParticipantStatus added in v0.7.3

type GiveawayParticipantStatus interface {
	GiveawayParticipantStatusType() string
}

Contains information about status of a user in a giveaway

func UnmarshalGiveawayParticipantStatus added in v0.7.3

func UnmarshalGiveawayParticipantStatus(data json.RawMessage) (GiveawayParticipantStatus, error)

func UnmarshalListOfGiveawayParticipantStatus added in v0.7.3

func UnmarshalListOfGiveawayParticipantStatus(dataList []json.RawMessage) ([]GiveawayParticipantStatus, error)

type GiveawayParticipantStatusAdministrator added in v0.7.3

type GiveawayParticipantStatusAdministrator struct {

	// Identifier of the chat administered by the user
	ChatId int64 `json:"chat_id"`
	// contains filtered or unexported fields
}

The user can't participate in the giveaway, because they are an administrator in one of the chats that created the giveaway

func UnmarshalGiveawayParticipantStatusAdministrator added in v0.7.3

func UnmarshalGiveawayParticipantStatusAdministrator(data json.RawMessage) (*GiveawayParticipantStatusAdministrator, error)

func (*GiveawayParticipantStatusAdministrator) GetClass added in v0.7.3

func (*GiveawayParticipantStatusAdministrator) GetType added in v0.7.3

func (*GiveawayParticipantStatusAdministrator) GiveawayParticipantStatusType added in v0.7.3

func (*GiveawayParticipantStatusAdministrator) GiveawayParticipantStatusType() string

func (*GiveawayParticipantStatusAdministrator) MarshalJSON added in v0.7.3

func (entity *GiveawayParticipantStatusAdministrator) MarshalJSON() ([]byte, error)

type GiveawayParticipantStatusAlreadyWasMember added in v0.7.3

type GiveawayParticipantStatusAlreadyWasMember struct {

	// Point in time (Unix timestamp) when the user joined the chat
	JoinedChatDate int32 `json:"joined_chat_date"`
	// contains filtered or unexported fields
}

The user can't participate in the giveaway, because they have already been member of the chat

func UnmarshalGiveawayParticipantStatusAlreadyWasMember added in v0.7.3

func UnmarshalGiveawayParticipantStatusAlreadyWasMember(data json.RawMessage) (*GiveawayParticipantStatusAlreadyWasMember, error)

func (*GiveawayParticipantStatusAlreadyWasMember) GetClass added in v0.7.3

func (*GiveawayParticipantStatusAlreadyWasMember) GetType added in v0.7.3

func (*GiveawayParticipantStatusAlreadyWasMember) GiveawayParticipantStatusType added in v0.7.3

func (*GiveawayParticipantStatusAlreadyWasMember) GiveawayParticipantStatusType() string

func (*GiveawayParticipantStatusAlreadyWasMember) MarshalJSON added in v0.7.3

func (entity *GiveawayParticipantStatusAlreadyWasMember) MarshalJSON() ([]byte, error)

type GiveawayParticipantStatusDisallowedCountry added in v0.7.3

type GiveawayParticipantStatusDisallowedCountry struct {

	// A two-letter ISO 3166-1 alpha-2 country code of the user's country
	UserCountryCode string `json:"user_country_code"`
	// contains filtered or unexported fields
}

The user can't participate in the giveaway, because they phone number is from a disallowed country

func UnmarshalGiveawayParticipantStatusDisallowedCountry added in v0.7.3

func UnmarshalGiveawayParticipantStatusDisallowedCountry(data json.RawMessage) (*GiveawayParticipantStatusDisallowedCountry, error)

func (*GiveawayParticipantStatusDisallowedCountry) GetClass added in v0.7.3

func (*GiveawayParticipantStatusDisallowedCountry) GetType added in v0.7.3

func (*GiveawayParticipantStatusDisallowedCountry) GiveawayParticipantStatusType added in v0.7.3

func (*GiveawayParticipantStatusDisallowedCountry) GiveawayParticipantStatusType() string

func (*GiveawayParticipantStatusDisallowedCountry) MarshalJSON added in v0.7.3

func (entity *GiveawayParticipantStatusDisallowedCountry) MarshalJSON() ([]byte, error)

type GiveawayParticipantStatusEligible added in v0.7.3

type GiveawayParticipantStatusEligible struct {
	// contains filtered or unexported fields
}

The user is eligible for the giveaway

func UnmarshalGiveawayParticipantStatusEligible added in v0.7.3

func UnmarshalGiveawayParticipantStatusEligible(data json.RawMessage) (*GiveawayParticipantStatusEligible, error)

func (*GiveawayParticipantStatusEligible) GetClass added in v0.7.3

func (*GiveawayParticipantStatusEligible) GetType added in v0.7.3

func (*GiveawayParticipantStatusEligible) GiveawayParticipantStatusType added in v0.7.3

func (*GiveawayParticipantStatusEligible) GiveawayParticipantStatusType() string

func (*GiveawayParticipantStatusEligible) MarshalJSON added in v0.7.3

func (entity *GiveawayParticipantStatusEligible) MarshalJSON() ([]byte, error)

type GiveawayParticipantStatusParticipating added in v0.7.3

type GiveawayParticipantStatusParticipating struct {
	// contains filtered or unexported fields
}

The user participates in the giveaway

func UnmarshalGiveawayParticipantStatusParticipating added in v0.7.3

func UnmarshalGiveawayParticipantStatusParticipating(data json.RawMessage) (*GiveawayParticipantStatusParticipating, error)

func (*GiveawayParticipantStatusParticipating) GetClass added in v0.7.3

func (*GiveawayParticipantStatusParticipating) GetType added in v0.7.3

func (*GiveawayParticipantStatusParticipating) GiveawayParticipantStatusType added in v0.7.3

func (*GiveawayParticipantStatusParticipating) GiveawayParticipantStatusType() string

func (*GiveawayParticipantStatusParticipating) MarshalJSON added in v0.7.3

func (entity *GiveawayParticipantStatusParticipating) MarshalJSON() ([]byte, error)

type GiveawayPrize added in v0.7.3

type GiveawayPrize interface {
	GiveawayPrizeType() string
}

Contains information about a giveaway prize

func UnmarshalGiveawayPrize added in v0.7.3

func UnmarshalGiveawayPrize(data json.RawMessage) (GiveawayPrize, error)

func UnmarshalListOfGiveawayPrize added in v0.7.3

func UnmarshalListOfGiveawayPrize(dataList []json.RawMessage) ([]GiveawayPrize, error)

type GiveawayPrizePremium added in v0.7.3

type GiveawayPrizePremium struct {

	// Number of months the Telegram Premium subscription will be active after code activation
	MonthCount int32 `json:"month_count"`
	// contains filtered or unexported fields
}

The giveaway sends Telegram Premium subscriptions to the winners

func UnmarshalGiveawayPrizePremium added in v0.7.3

func UnmarshalGiveawayPrizePremium(data json.RawMessage) (*GiveawayPrizePremium, error)

func (*GiveawayPrizePremium) GetClass added in v0.7.3

func (*GiveawayPrizePremium) GetClass() string

func (*GiveawayPrizePremium) GetType added in v0.7.3

func (*GiveawayPrizePremium) GetType() string

func (*GiveawayPrizePremium) GiveawayPrizeType added in v0.7.3

func (*GiveawayPrizePremium) GiveawayPrizeType() string

func (*GiveawayPrizePremium) MarshalJSON added in v0.7.3

func (entity *GiveawayPrizePremium) MarshalJSON() ([]byte, error)

type GiveawayPrizeStars added in v0.7.3

type GiveawayPrizeStars struct {

	// Number of Telegram Stars that will be shared by all winners
	StarCount int64 `json:"star_count"`
	// contains filtered or unexported fields
}

The giveaway sends Telegram Stars to the winners

func UnmarshalGiveawayPrizeStars added in v0.7.3

func UnmarshalGiveawayPrizeStars(data json.RawMessage) (*GiveawayPrizeStars, error)

func (*GiveawayPrizeStars) GetClass added in v0.7.3

func (*GiveawayPrizeStars) GetClass() string

func (*GiveawayPrizeStars) GetType added in v0.7.3

func (*GiveawayPrizeStars) GetType() string

func (*GiveawayPrizeStars) GiveawayPrizeType added in v0.7.3

func (*GiveawayPrizeStars) GiveawayPrizeType() string

func (*GiveawayPrizeStars) MarshalJSON added in v0.7.3

func (entity *GiveawayPrizeStars) MarshalJSON() ([]byte, error)

type GroupCall added in v0.5.0

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 expected 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 starts
	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 added in v0.5.0

func UnmarshalGroupCall(data json.RawMessage) (*GroupCall, error)

func (*GroupCall) GetClass added in v0.5.0

func (*GroupCall) GetClass() string

func (*GroupCall) GetType added in v0.5.0

func (*GroupCall) GetType() string

func (*GroupCall) MarshalJSON added in v0.5.0

func (entity *GroupCall) MarshalJSON() ([]byte, error)

type GroupCallId added in v0.5.0

type GroupCallId struct {

	// Group call identifier
	Id int32 `json:"id"`
	// contains filtered or unexported fields
}

Contains the group call identifier

func UnmarshalGroupCallId added in v0.5.0

func UnmarshalGroupCallId(data json.RawMessage) (*GroupCallId, error)

func (*GroupCallId) GetClass added in v0.5.0

func (*GroupCallId) GetClass() string

func (*GroupCallId) GetType added in v0.5.0

func (*GroupCallId) GetType() string

func (*GroupCallId) MarshalJSON added in v0.5.0

func (entity *GroupCallId) MarshalJSON() ([]byte, error)

type GroupCallParticipant added in v0.5.0

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 added in v0.5.0

func UnmarshalGroupCallParticipant(data json.RawMessage) (*GroupCallParticipant, error)

func (*GroupCallParticipant) GetClass added in v0.5.0

func (*GroupCallParticipant) GetClass() string

func (*GroupCallParticipant) GetType added in v0.5.0

func (*GroupCallParticipant) GetType() string

func (*GroupCallParticipant) MarshalJSON added in v0.5.0

func (entity *GroupCallParticipant) MarshalJSON() ([]byte, error)

func (*GroupCallParticipant) UnmarshalJSON added in v0.5.0

func (groupCallParticipant *GroupCallParticipant) UnmarshalJSON(data []byte) error

type GroupCallParticipantVideoInfo added in v0.5.0

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 added in v0.5.0

func UnmarshalGroupCallParticipantVideoInfo(data json.RawMessage) (*GroupCallParticipantVideoInfo, error)

func (*GroupCallParticipantVideoInfo) GetClass added in v0.5.0

func (*GroupCallParticipantVideoInfo) GetType added in v0.5.0

func (*GroupCallParticipantVideoInfo) MarshalJSON added in v0.5.0

func (entity *GroupCallParticipantVideoInfo) MarshalJSON() ([]byte, error)

type GroupCallRecentSpeaker added in v0.5.0

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 added in v0.5.0

func UnmarshalGroupCallRecentSpeaker(data json.RawMessage) (*GroupCallRecentSpeaker, error)

func (*GroupCallRecentSpeaker) GetClass added in v0.5.0

func (*GroupCallRecentSpeaker) GetClass() string

func (*GroupCallRecentSpeaker) GetType added in v0.5.0

func (*GroupCallRecentSpeaker) GetType() string

func (*GroupCallRecentSpeaker) MarshalJSON added in v0.5.0

func (entity *GroupCallRecentSpeaker) MarshalJSON() ([]byte, error)

func (*GroupCallRecentSpeaker) UnmarshalJSON added in v0.5.0

func (groupCallRecentSpeaker *GroupCallRecentSpeaker) UnmarshalJSON(data []byte) error

type GroupCallStream added in v0.7.0

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 v0.7.0

func UnmarshalGroupCallStream(data json.RawMessage) (*GroupCallStream, error)

func (*GroupCallStream) GetClass added in v0.7.0

func (*GroupCallStream) GetClass() string

func (*GroupCallStream) GetType added in v0.7.0

func (*GroupCallStream) GetType() string

func (*GroupCallStream) MarshalJSON added in v0.7.0

func (entity *GroupCallStream) MarshalJSON() ([]byte, error)

type GroupCallStreams added in v0.7.0

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 v0.7.0

func UnmarshalGroupCallStreams(data json.RawMessage) (*GroupCallStreams, error)

func (*GroupCallStreams) GetClass added in v0.7.0

func (*GroupCallStreams) GetClass() string

func (*GroupCallStreams) GetType added in v0.7.0

func (*GroupCallStreams) GetType() string

func (*GroupCallStreams) MarshalJSON added in v0.7.0

func (entity *GroupCallStreams) MarshalJSON() ([]byte, error)

type GroupCallVideoQuality added in v0.5.0

type GroupCallVideoQuality interface {
	GroupCallVideoQualityType() string
}

Describes the quality of a group call video

func UnmarshalGroupCallVideoQuality added in v0.5.0

func UnmarshalGroupCallVideoQuality(data json.RawMessage) (GroupCallVideoQuality, error)

func UnmarshalListOfGroupCallVideoQuality added in v0.5.0

func UnmarshalListOfGroupCallVideoQuality(dataList []json.RawMessage) ([]GroupCallVideoQuality, error)

type GroupCallVideoQualityFull added in v0.5.0

type GroupCallVideoQualityFull struct {
	// contains filtered or unexported fields
}

The best available video quality

func UnmarshalGroupCallVideoQualityFull added in v0.5.0

func UnmarshalGroupCallVideoQualityFull(data json.RawMessage) (*GroupCallVideoQualityFull, error)

func (*GroupCallVideoQualityFull) GetClass added in v0.5.0

func (*GroupCallVideoQualityFull) GetClass() string

func (*GroupCallVideoQualityFull) GetType added in v0.5.0

func (*GroupCallVideoQualityFull) GetType() string

func (*GroupCallVideoQualityFull) GroupCallVideoQualityType added in v0.5.0

func (*GroupCallVideoQualityFull) GroupCallVideoQualityType() string

func (*GroupCallVideoQualityFull) MarshalJSON added in v0.5.0

func (entity *GroupCallVideoQualityFull) MarshalJSON() ([]byte, error)

type GroupCallVideoQualityMedium added in v0.5.0

type GroupCallVideoQualityMedium struct {
	// contains filtered or unexported fields
}

The medium video quality

func UnmarshalGroupCallVideoQualityMedium added in v0.5.0

func UnmarshalGroupCallVideoQualityMedium(data json.RawMessage) (*GroupCallVideoQualityMedium, error)

func (*GroupCallVideoQualityMedium) GetClass added in v0.5.0

func (*GroupCallVideoQualityMedium) GetClass() string

func (*GroupCallVideoQualityMedium) GetType added in v0.5.0

func (*GroupCallVideoQualityMedium) GroupCallVideoQualityType added in v0.5.0

func (*GroupCallVideoQualityMedium) GroupCallVideoQualityType() string

func (*GroupCallVideoQualityMedium) MarshalJSON added in v0.5.0

func (entity *GroupCallVideoQualityMedium) MarshalJSON() ([]byte, error)

type GroupCallVideoQualityThumbnail added in v0.5.0

type GroupCallVideoQualityThumbnail struct {
	// contains filtered or unexported fields
}

The worst available video quality

func UnmarshalGroupCallVideoQualityThumbnail added in v0.5.0

func UnmarshalGroupCallVideoQualityThumbnail(data json.RawMessage) (*GroupCallVideoQualityThumbnail, error)

func (*GroupCallVideoQualityThumbnail) GetClass added in v0.5.0

func (*GroupCallVideoQualityThumbnail) GetType added in v0.5.0

func (*GroupCallVideoQualityThumbnail) GroupCallVideoQualityType added in v0.5.0

func (*GroupCallVideoQualityThumbnail) GroupCallVideoQualityType() string

func (*GroupCallVideoQualityThumbnail) MarshalJSON added in v0.5.0

func (entity *GroupCallVideoQualityThumbnail) MarshalJSON() ([]byte, error)

type GroupCallVideoSourceGroup added in v0.5.0

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 added in v0.5.0

func UnmarshalGroupCallVideoSourceGroup(data json.RawMessage) (*GroupCallVideoSourceGroup, error)

func (*GroupCallVideoSourceGroup) GetClass added in v0.5.0

func (*GroupCallVideoSourceGroup) GetClass() string

func (*GroupCallVideoSourceGroup) GetType added in v0.5.0

func (*GroupCallVideoSourceGroup) GetType() string

func (*GroupCallVideoSourceGroup) MarshalJSON added in v0.5.0

func (entity *GroupCallVideoSourceGroup) MarshalJSON() ([]byte, error)

type Hashtags

type Hashtags struct {

	// A list of hashtags
	Hashtags []string `json:"hashtags"`
	// contains filtered or unexported fields
}

Contains a list of hashtags

func UnmarshalHashtags

func UnmarshalHashtags(data json.RawMessage) (*Hashtags, error)

func (*Hashtags) GetClass

func (*Hashtags) GetClass() string

func (*Hashtags) GetType

func (*Hashtags) GetType() string

func (*Hashtags) MarshalJSON

func (entity *Hashtags) MarshalJSON() ([]byte, error)

type HideSuggestedActionRequest added in v0.3.0

type HideSuggestedActionRequest struct {
	// Suggested action to hide
	Action SuggestedAction `json:"action"`
}

type HttpUrl added in v0.0.13

type HttpUrl struct {

	// The URL
	Url string `json:"url"`
	// contains filtered or unexported fields
}

Contains an HTTP URL

func UnmarshalHttpUrl added in v0.0.13

func UnmarshalHttpUrl(data json.RawMessage) (*HttpUrl, error)

func (*HttpUrl) GetClass added in v0.0.13

func (*HttpUrl) GetClass() string

func (*HttpUrl) GetType added in v0.0.13

func (*HttpUrl) GetType() string

func (*HttpUrl) MarshalJSON added in v0.0.13

func (entity *HttpUrl) MarshalJSON() ([]byte, error)

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 added in v0.5.0

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 member 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 inline keyboard button

func UnmarshalInlineKeyboardButtonType

func UnmarshalInlineKeyboardButtonType(data json.RawMessage) (InlineKeyboardButtonType, error)

func UnmarshalListOfInlineKeyboardButtonType added in v0.3.2

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) 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) GetType

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) GetType

func (*InlineKeyboardButtonTypeCallbackGame) InlineKeyboardButtonTypeType

func (*InlineKeyboardButtonTypeCallbackGame) InlineKeyboardButtonTypeType() string

func (*InlineKeyboardButtonTypeCallbackGame) MarshalJSON

func (entity *InlineKeyboardButtonTypeCallbackGame) MarshalJSON() ([]byte, error)

type InlineKeyboardButtonTypeCallbackWithPassword added in v0.3.0

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 added in v0.3.0

func UnmarshalInlineKeyboardButtonTypeCallbackWithPassword(data json.RawMessage) (*InlineKeyboardButtonTypeCallbackWithPassword, error)

func (*InlineKeyboardButtonTypeCallbackWithPassword) GetClass added in v0.3.0

func (*InlineKeyboardButtonTypeCallbackWithPassword) GetType added in v0.3.0

func (*InlineKeyboardButtonTypeCallbackWithPassword) InlineKeyboardButtonTypeType added in v0.3.0

func (*InlineKeyboardButtonTypeCallbackWithPassword) InlineKeyboardButtonTypeType() string

func (*InlineKeyboardButtonTypeCallbackWithPassword) MarshalJSON added in v0.3.0

func (entity *InlineKeyboardButtonTypeCallbackWithPassword) MarshalJSON() ([]byte, error)

type InlineKeyboardButtonTypeCopyText added in v0.7.3

type InlineKeyboardButtonTypeCopyText struct {

	// The text to copy to clipboard
	Text string `json:"text"`
	// contains filtered or unexported fields
}

A button that copies specified text to clipboard

func UnmarshalInlineKeyboardButtonTypeCopyText added in v0.7.3

func UnmarshalInlineKeyboardButtonTypeCopyText(data json.RawMessage) (*InlineKeyboardButtonTypeCopyText, error)

func (*InlineKeyboardButtonTypeCopyText) GetClass added in v0.7.3

func (*InlineKeyboardButtonTypeCopyText) GetType added in v0.7.3

func (*InlineKeyboardButtonTypeCopyText) InlineKeyboardButtonTypeType added in v0.7.3

func (*InlineKeyboardButtonTypeCopyText) InlineKeyboardButtonTypeType() string

func (*InlineKeyboardButtonTypeCopyText) MarshalJSON added in v0.7.3

func (entity *InlineKeyboardButtonTypeCopyText) MarshalJSON() ([]byte, error)

type InlineKeyboardButtonTypeLoginUrl added in v0.1.0

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 added in v0.1.0

func UnmarshalInlineKeyboardButtonTypeLoginUrl(data json.RawMessage) (*InlineKeyboardButtonTypeLoginUrl, error)

func (*InlineKeyboardButtonTypeLoginUrl) GetClass added in v0.1.0

func (*InlineKeyboardButtonTypeLoginUrl) GetType added in v0.1.0

func (*InlineKeyboardButtonTypeLoginUrl) InlineKeyboardButtonTypeType added in v0.1.0

func (*InlineKeyboardButtonTypeLoginUrl) InlineKeyboardButtonTypeType() string

func (*InlineKeyboardButtonTypeLoginUrl) MarshalJSON added in v0.1.0

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) GetType

func (*InlineKeyboardButtonTypeSwitchInline) InlineKeyboardButtonTypeType

func (*InlineKeyboardButtonTypeSwitchInline) InlineKeyboardButtonTypeType() string

func (*InlineKeyboardButtonTypeSwitchInline) MarshalJSON

func (entity *InlineKeyboardButtonTypeSwitchInline) MarshalJSON() ([]byte, error)

func (*InlineKeyboardButtonTypeSwitchInline) UnmarshalJSON added in v0.7.0

func (inlineKeyboardButtonTypeSwitchInline *InlineKeyboardButtonTypeSwitchInline) UnmarshalJSON(data []byte) error

type InlineKeyboardButtonTypeUrl

type InlineKeyboardButtonTypeUrl struct {

	// HTTP or tg:// URL to open. If the link is of the type internalLinkTypeWebApp, then the button must be marked as a Web App button
	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) InlineKeyboardButtonTypeType

func (*InlineKeyboardButtonTypeUrl) InlineKeyboardButtonTypeType() string

func (*InlineKeyboardButtonTypeUrl) MarshalJSON

func (entity *InlineKeyboardButtonTypeUrl) MarshalJSON() ([]byte, error)

type InlineKeyboardButtonTypeUser added in v0.5.0

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 added in v0.5.0

func UnmarshalInlineKeyboardButtonTypeUser(data json.RawMessage) (*InlineKeyboardButtonTypeUser, error)

func (*InlineKeyboardButtonTypeUser) GetClass added in v0.5.0

func (*InlineKeyboardButtonTypeUser) GetType added in v0.5.0

func (*InlineKeyboardButtonTypeUser) InlineKeyboardButtonTypeType added in v0.5.0

func (*InlineKeyboardButtonTypeUser) InlineKeyboardButtonTypeType() string

func (*InlineKeyboardButtonTypeUser) MarshalJSON added in v0.5.0

func (entity *InlineKeyboardButtonTypeUser) MarshalJSON() ([]byte, error)

type InlineKeyboardButtonTypeWebApp added in v0.7.0

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 v0.7.0

func UnmarshalInlineKeyboardButtonTypeWebApp(data json.RawMessage) (*InlineKeyboardButtonTypeWebApp, error)

func (*InlineKeyboardButtonTypeWebApp) GetClass added in v0.7.0

func (*InlineKeyboardButtonTypeWebApp) GetType added in v0.7.0

func (*InlineKeyboardButtonTypeWebApp) InlineKeyboardButtonTypeType added in v0.7.0

func (*InlineKeyboardButtonTypeWebApp) InlineKeyboardButtonTypeType() string

func (*InlineKeyboardButtonTypeWebApp) MarshalJSON added in v0.7.0

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 added in v0.3.2

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) 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) 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, then 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 added in v0.3.2

func (inlineQueryResults *InlineQueryResults) UnmarshalJSON(data []byte) error

type InlineQueryResultsButton added in v0.7.0

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 v0.7.0

func UnmarshalInlineQueryResultsButton(data json.RawMessage) (*InlineQueryResultsButton, error)

func (*InlineQueryResultsButton) GetClass added in v0.7.0

func (*InlineQueryResultsButton) GetClass() string

func (*InlineQueryResultsButton) GetType added in v0.7.0

func (*InlineQueryResultsButton) GetType() string

func (*InlineQueryResultsButton) MarshalJSON added in v0.7.0

func (entity *InlineQueryResultsButton) MarshalJSON() ([]byte, error)

func (*InlineQueryResultsButton) UnmarshalJSON added in v0.7.0

func (inlineQueryResultsButton *InlineQueryResultsButton) UnmarshalJSON(data []byte) error

type InlineQueryResultsButtonType added in v0.7.0

type InlineQueryResultsButtonType interface {
	InlineQueryResultsButtonTypeType() string
}

Represents type of button in results of inline query

func UnmarshalInlineQueryResultsButtonType added in v0.7.0

func UnmarshalInlineQueryResultsButtonType(data json.RawMessage) (InlineQueryResultsButtonType, error)

func UnmarshalListOfInlineQueryResultsButtonType added in v0.7.0

func UnmarshalListOfInlineQueryResultsButtonType(dataList []json.RawMessage) ([]InlineQueryResultsButtonType, error)

type InlineQueryResultsButtonTypeStartBot added in v0.7.0

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 v0.7.0

func UnmarshalInlineQueryResultsButtonTypeStartBot(data json.RawMessage) (*InlineQueryResultsButtonTypeStartBot, error)

func (*InlineQueryResultsButtonTypeStartBot) GetClass added in v0.7.0

func (*InlineQueryResultsButtonTypeStartBot) GetType added in v0.7.0

func (*InlineQueryResultsButtonTypeStartBot) InlineQueryResultsButtonTypeType added in v0.7.0

func (*InlineQueryResultsButtonTypeStartBot) InlineQueryResultsButtonTypeType() string

func (*InlineQueryResultsButtonTypeStartBot) MarshalJSON added in v0.7.0

func (entity *InlineQueryResultsButtonTypeStartBot) MarshalJSON() ([]byte, error)

type InlineQueryResultsButtonTypeWebApp added in v0.7.0

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 v0.7.0

func UnmarshalInlineQueryResultsButtonTypeWebApp(data json.RawMessage) (*InlineQueryResultsButtonTypeWebApp, error)

func (*InlineQueryResultsButtonTypeWebApp) GetClass added in v0.7.0

func (*InlineQueryResultsButtonTypeWebApp) GetType added in v0.7.0

func (*InlineQueryResultsButtonTypeWebApp) InlineQueryResultsButtonTypeType added in v0.7.0

func (*InlineQueryResultsButtonTypeWebApp) InlineQueryResultsButtonTypeType() string

func (*InlineQueryResultsButtonTypeWebApp) MarshalJSON added in v0.7.0

func (entity *InlineQueryResultsButtonTypeWebApp) MarshalJSON() ([]byte, error)

type InputBackground added in v0.1.0

type InputBackground interface {
	InputBackgroundType() string
}

Contains information about background to set

func UnmarshalInputBackground added in v0.1.0

func UnmarshalInputBackground(data json.RawMessage) (InputBackground, error)

func UnmarshalListOfInputBackground added in v0.3.2

func UnmarshalListOfInputBackground(dataList []json.RawMessage) ([]InputBackground, error)

type InputBackgroundLocal added in v0.1.0

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 added in v0.1.0

func UnmarshalInputBackgroundLocal(data json.RawMessage) (*InputBackgroundLocal, error)

func (*InputBackgroundLocal) GetClass added in v0.1.0

func (*InputBackgroundLocal) GetClass() string

func (*InputBackgroundLocal) GetType added in v0.1.0

func (*InputBackgroundLocal) GetType() string

func (*InputBackgroundLocal) InputBackgroundType added in v0.1.0

func (*InputBackgroundLocal) InputBackgroundType() string

func (*InputBackgroundLocal) MarshalJSON added in v0.1.0

func (entity *InputBackgroundLocal) MarshalJSON() ([]byte, error)

func (*InputBackgroundLocal) UnmarshalJSON added in v0.1.0

func (inputBackgroundLocal *InputBackgroundLocal) UnmarshalJSON(data []byte) error

type InputBackgroundPrevious added in v0.7.0

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 v0.7.0

func UnmarshalInputBackgroundPrevious(data json.RawMessage) (*InputBackgroundPrevious, error)

func (*InputBackgroundPrevious) GetClass added in v0.7.0

func (*InputBackgroundPrevious) GetClass() string

func (*InputBackgroundPrevious) GetType added in v0.7.0

func (*InputBackgroundPrevious) GetType() string

func (*InputBackgroundPrevious) InputBackgroundType added in v0.7.0

func (*InputBackgroundPrevious) InputBackgroundType() string

func (*InputBackgroundPrevious) MarshalJSON added in v0.7.0

func (entity *InputBackgroundPrevious) MarshalJSON() ([]byte, error)

type InputBackgroundRemote added in v0.1.0

type InputBackgroundRemote struct {

	// The background identifier
	BackgroundId JsonInt64 `json:"background_id"`
	// contains filtered or unexported fields
}

A background from the server

func UnmarshalInputBackgroundRemote added in v0.1.0

func UnmarshalInputBackgroundRemote(data json.RawMessage) (*InputBackgroundRemote, error)

func (*InputBackgroundRemote) GetClass added in v0.1.0

func (*InputBackgroundRemote) GetClass() string

func (*InputBackgroundRemote) GetType added in v0.1.0

func (*InputBackgroundRemote) GetType() string

func (*InputBackgroundRemote) InputBackgroundType added in v0.1.0

func (*InputBackgroundRemote) InputBackgroundType() string

func (*InputBackgroundRemote) MarshalJSON added in v0.1.0

func (entity *InputBackgroundRemote) MarshalJSON() ([]byte, error)
type InputBusinessChatLink struct {

	// Message draft text that will be added to the input field
	Text *FormattedText `json:"text"`
	// Link title
	Title string `json:"title"`
	// contains filtered or unexported fields
}

Describes a business chat link to create or edit

func UnmarshalInputBusinessChatLink(data json.RawMessage) (*InputBusinessChatLink, error)

func (*InputBusinessChatLink) GetClass added in v0.7.3

func (*InputBusinessChatLink) GetClass() string

func (*InputBusinessChatLink) GetType added in v0.7.3

func (*InputBusinessChatLink) GetType() string

func (*InputBusinessChatLink) MarshalJSON added in v0.7.3

func (entity *InputBusinessChatLink) MarshalJSON() ([]byte, error)

type InputBusinessStartPage added in v0.7.3

type InputBusinessStartPage struct {

	// Title text of the start page; 0-getOption("business_start_page_title_length_max") characters
	Title string `json:"title"`
	// Message text of the start page; 0-getOption("business_start_page_message_length_max") characters
	Message string `json:"message"`
	// Greeting sticker of the start page; pass null if none. The sticker must belong to a sticker set and must not be a custom emoji
	Sticker InputFile `json:"sticker"`
	// contains filtered or unexported fields
}

Describes settings for a business account start page to set

func UnmarshalInputBusinessStartPage added in v0.7.3

func UnmarshalInputBusinessStartPage(data json.RawMessage) (*InputBusinessStartPage, error)

func (*InputBusinessStartPage) GetClass added in v0.7.3

func (*InputBusinessStartPage) GetClass() string

func (*InputBusinessStartPage) GetType added in v0.7.3

func (*InputBusinessStartPage) GetType() string

func (*InputBusinessStartPage) MarshalJSON added in v0.7.3

func (entity *InputBusinessStartPage) MarshalJSON() ([]byte, error)

func (*InputBusinessStartPage) UnmarshalJSON added in v0.7.3

func (inputBusinessStartPage *InputBusinessStartPage) UnmarshalJSON(data []byte) error

type InputChatPhoto added in v0.3.0

type InputChatPhoto interface {
	InputChatPhotoType() string
}

Describes a photo to be set as a user profile or chat photo

func UnmarshalInputChatPhoto added in v0.3.0

func UnmarshalInputChatPhoto(data json.RawMessage) (InputChatPhoto, error)

func UnmarshalListOfInputChatPhoto added in v0.3.2

func UnmarshalListOfInputChatPhoto(dataList []json.RawMessage) ([]InputChatPhoto, error)

type InputChatPhotoAnimation added in v0.3.0

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 added in v0.3.0

func UnmarshalInputChatPhotoAnimation(data json.RawMessage) (*InputChatPhotoAnimation, error)

func (*InputChatPhotoAnimation) GetClass added in v0.3.0

func (*InputChatPhotoAnimation) GetClass() string

func (*InputChatPhotoAnimation) GetType added in v0.3.0

func (*InputChatPhotoAnimation) GetType() string

func (*InputChatPhotoAnimation) InputChatPhotoType added in v0.3.0

func (*InputChatPhotoAnimation) InputChatPhotoType() string

func (*InputChatPhotoAnimation) MarshalJSON added in v0.3.0

func (entity *InputChatPhotoAnimation) MarshalJSON() ([]byte, error)

func (*InputChatPhotoAnimation) UnmarshalJSON added in v0.3.0

func (inputChatPhotoAnimation *InputChatPhotoAnimation) UnmarshalJSON(data []byte) error

type InputChatPhotoPrevious added in v0.3.0

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 added in v0.3.0

func UnmarshalInputChatPhotoPrevious(data json.RawMessage) (*InputChatPhotoPrevious, error)

func (*InputChatPhotoPrevious) GetClass added in v0.3.0

func (*InputChatPhotoPrevious) GetClass() string

func (*InputChatPhotoPrevious) GetType added in v0.3.0

func (*InputChatPhotoPrevious) GetType() string

func (*InputChatPhotoPrevious) InputChatPhotoType added in v0.3.0

func (*InputChatPhotoPrevious) InputChatPhotoType() string

func (*InputChatPhotoPrevious) MarshalJSON added in v0.3.0

func (entity *InputChatPhotoPrevious) MarshalJSON() ([]byte, error)

type InputChatPhotoStatic added in v0.3.0

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 added in v0.3.0

func UnmarshalInputChatPhotoStatic(data json.RawMessage) (*InputChatPhotoStatic, error)

func (*InputChatPhotoStatic) GetClass added in v0.3.0

func (*InputChatPhotoStatic) GetClass() string

func (*InputChatPhotoStatic) GetType added in v0.3.0

func (*InputChatPhotoStatic) GetType() string

func (*InputChatPhotoStatic) InputChatPhotoType added in v0.3.0

func (*InputChatPhotoStatic) InputChatPhotoType() string

func (*InputChatPhotoStatic) MarshalJSON added in v0.3.0

func (entity *InputChatPhotoStatic) MarshalJSON() ([]byte, error)

func (*InputChatPhotoStatic) UnmarshalJSON added in v0.3.0

func (inputChatPhotoStatic *InputChatPhotoStatic) UnmarshalJSON(data []byte) error

type InputChatPhotoSticker added in v0.7.0

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 v0.7.0

func UnmarshalInputChatPhotoSticker(data json.RawMessage) (*InputChatPhotoSticker, error)

func (*InputChatPhotoSticker) GetClass added in v0.7.0

func (*InputChatPhotoSticker) GetClass() string

func (*InputChatPhotoSticker) GetType added in v0.7.0

func (*InputChatPhotoSticker) GetType() string

func (*InputChatPhotoSticker) InputChatPhotoType added in v0.7.0

func (*InputChatPhotoSticker) InputChatPhotoType() string

func (*InputChatPhotoSticker) MarshalJSON added in v0.7.0

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 added in v0.3.2

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 added in v0.5.0

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 added in v0.5.0

func UnmarshalInputCredentialsGooglePay(data json.RawMessage) (*InputCredentialsGooglePay, error)

func (*InputCredentialsGooglePay) GetClass added in v0.5.0

func (*InputCredentialsGooglePay) GetClass() string

func (*InputCredentialsGooglePay) GetType added in v0.5.0

func (*InputCredentialsGooglePay) GetType() string

func (*InputCredentialsGooglePay) InputCredentialsType added in v0.5.0

func (*InputCredentialsGooglePay) InputCredentialsType() string

func (*InputCredentialsGooglePay) MarshalJSON added in v0.5.0

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 added in v0.3.2

func UnmarshalListOfInputFile(dataList []json.RawMessage) ([]InputFile, error)

type InputFileGenerated

type InputFileGenerated struct {

	// Local path to a file from which the file is generated. The path doesn't have to be a valid path and is used by TDLib only to detect name and MIME type of the generated 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; pass 0 if unknown
	ExpectedSize int64 `json:"expected_size"`
	// contains filtered or unexported fields
}

A file generated by the application. The application must handle updates updateFileGenerationStart and updateFileGenerationStop to generate the file when asked by TDLib

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 added in v0.3.2

func UnmarshalListOfInputInlineQueryResult(dataList []json.RawMessage) ([]InputInlineQueryResult, error)

type InputInlineQueryResultAnimation added in v0.3.0

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 added in v0.3.0

func UnmarshalInputInlineQueryResultAnimation(data json.RawMessage) (*InputInlineQueryResultAnimation, error)

func (*InputInlineQueryResultAnimation) GetClass added in v0.3.0

func (*InputInlineQueryResultAnimation) GetType added in v0.3.0

func (*InputInlineQueryResultAnimation) InputInlineQueryResultType added in v0.3.0

func (*InputInlineQueryResultAnimation) InputInlineQueryResultType() string

func (*InputInlineQueryResultAnimation) MarshalJSON added in v0.3.0

func (entity *InputInlineQueryResultAnimation) MarshalJSON() ([]byte, error)

func (*InputInlineQueryResultAnimation) UnmarshalJSON added in v0.3.0

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) GetType

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) 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) GetType

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) GetType

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) 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) GetType

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) 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) GetType

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) 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) 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) GetType

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 v0.7.0

type InputInvoice interface {
	InputInvoiceType() string
}

Describes an invoice to process

func UnmarshalInputInvoice added in v0.7.0

func UnmarshalInputInvoice(data json.RawMessage) (InputInvoice, error)

func UnmarshalListOfInputInvoice added in v0.7.0

func UnmarshalListOfInputInvoice(dataList []json.RawMessage) ([]InputInvoice, error)

type InputInvoiceMessage added in v0.7.0

type InputInvoiceMessage struct {

	// Chat identifier of the message
	ChatId int64 `json:"chat_id"`
	// Message identifier. Use messageProperties.can_be_paid to check whether the message can be used in the method
	MessageId int64 `json:"message_id"`
	// contains filtered or unexported fields
}

An invoice from a message of the type messageInvoice or paid media purchase from messagePaidMedia

func UnmarshalInputInvoiceMessage added in v0.7.0

func UnmarshalInputInvoiceMessage(data json.RawMessage) (*InputInvoiceMessage, error)

func (*InputInvoiceMessage) GetClass added in v0.7.0

func (*InputInvoiceMessage) GetClass() string

func (*InputInvoiceMessage) GetType added in v0.7.0

func (*InputInvoiceMessage) GetType() string

func (*InputInvoiceMessage) InputInvoiceType added in v0.7.0

func (*InputInvoiceMessage) InputInvoiceType() string

func (*InputInvoiceMessage) MarshalJSON added in v0.7.0

func (entity *InputInvoiceMessage) MarshalJSON() ([]byte, error)

type InputInvoiceName added in v0.7.0

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 v0.7.0

func UnmarshalInputInvoiceName(data json.RawMessage) (*InputInvoiceName, error)

func (*InputInvoiceName) GetClass added in v0.7.0

func (*InputInvoiceName) GetClass() string

func (*InputInvoiceName) GetType added in v0.7.0

func (*InputInvoiceName) GetType() string

func (*InputInvoiceName) InputInvoiceType added in v0.7.0

func (*InputInvoiceName) InputInvoiceType() string

func (*InputInvoiceName) MarshalJSON added in v0.7.0

func (entity *InputInvoiceName) MarshalJSON() ([]byte, error)

type InputInvoiceTelegram added in v0.7.1

type InputInvoiceTelegram struct {

	// Transaction purpose
	Purpose TelegramPaymentPurpose `json:"purpose"`
	// contains filtered or unexported fields
}

An invoice for a payment toward Telegram; must not be used in the in-store apps

func UnmarshalInputInvoiceTelegram added in v0.7.1

func UnmarshalInputInvoiceTelegram(data json.RawMessage) (*InputInvoiceTelegram, error)

func (*InputInvoiceTelegram) GetClass added in v0.7.1

func (*InputInvoiceTelegram) GetClass() string

func (*InputInvoiceTelegram) GetType added in v0.7.1

func (*InputInvoiceTelegram) GetType() string

func (*InputInvoiceTelegram) InputInvoiceType added in v0.7.1

func (*InputInvoiceTelegram) InputInvoiceType() string

func (*InputInvoiceTelegram) MarshalJSON added in v0.7.1

func (entity *InputInvoiceTelegram) MarshalJSON() ([]byte, error)

func (*InputInvoiceTelegram) UnmarshalJSON added in v0.7.1

func (inputInvoiceTelegram *InputInvoiceTelegram) UnmarshalJSON(data []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 caption must be shown above the animation; otherwise, the caption must be shown below the animation; not supported in secret chats
	ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
	// 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 added in v0.3.2

func UnmarshalListOfInputMessageContent(dataList []json.RawMessage) ([]InputMessageContent, error)

type InputMessageDice added in v0.3.0

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 added in v0.3.0

func UnmarshalInputMessageDice(data json.RawMessage) (*InputMessageDice, error)

func (*InputMessageDice) GetClass added in v0.3.0

func (*InputMessageDice) GetClass() string

func (*InputMessageDice) GetType added in v0.3.0

func (*InputMessageDice) GetType() string

func (*InputMessageDice) InputMessageContentType added in v0.3.0

func (*InputMessageDice) InputMessageContentType() string

func (*InputMessageDice) MarshalJSON added in v0.3.0

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"`
	// Pass true to disable automatic file type detection and send the document as a 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. A message can be forwarded only if messageProperties.can_be_forwarded
	MessageId int64 `json:"message_id"`
	// True, if a game message is being shared from a launched game; applies only to game messages
	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; may be empty for payments in Telegram Stars
	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 paid media attached to the invoice; pass null if none
	PaidMedia *InputPaidMedia `json:"paid_media"`
	// Paid media caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters
	PaidMediaCaption *FormattedText `json:"paid_media_caption"`
	// 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)

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 temporary live location, 0x7FFFFFFF for permanent 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 InputMessagePaidMedia added in v0.7.3

type InputMessagePaidMedia struct {

	// The number of Telegram Stars that must be paid to see the media; 1-getOption("paid_media_message_star_count_max")
	StarCount int64 `json:"star_count"`
	// The content of the paid media
	PaidMedia []*InputPaidMedia `json:"paid_media"`
	// Message caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters
	Caption *FormattedText `json:"caption"`
	// True, if the caption must be shown above the media; otherwise, the caption must be shown below the media; not supported in secret chats
	ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
	// Bot-provided data for the paid media; bots only
	Payload string `json:"payload"`
	// contains filtered or unexported fields
}

A message with paid media; can be used only in channel chats with supergroupFullInfo.has_paid_media_allowed

func UnmarshalInputMessagePaidMedia added in v0.7.3

func UnmarshalInputMessagePaidMedia(data json.RawMessage) (*InputMessagePaidMedia, error)

func (*InputMessagePaidMedia) GetClass added in v0.7.3

func (*InputMessagePaidMedia) GetClass() string

func (*InputMessagePaidMedia) GetType added in v0.7.3

func (*InputMessagePaidMedia) GetType() string

func (*InputMessagePaidMedia) InputMessageContentType added in v0.7.3

func (*InputMessagePaidMedia) InputMessageContentType() string

func (*InputMessagePaidMedia) MarshalJSON added in v0.7.3

func (entity *InputMessagePaidMedia) 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"`
	// True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo; not supported in secret chats
	ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
	// 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 added in v0.0.13

type InputMessagePoll struct {

	// Poll question; 1-255 characters (up to 300 characters for bots). Only custom emoji entities are allowed to be added and only by Premium users
	Question *FormattedText `json:"question"`
	// List of poll answer options, 2-10 strings 1-100 characters each. Only custom emoji entities are allowed to be added and only by Premium users
	Options []*FormattedText `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 added in v0.0.13

func UnmarshalInputMessagePoll(data json.RawMessage) (*InputMessagePoll, error)

func (*InputMessagePoll) GetClass added in v0.0.13

func (*InputMessagePoll) GetClass() string

func (*InputMessagePoll) GetType added in v0.0.13

func (*InputMessagePoll) GetType() string

func (*InputMessagePoll) InputMessageContentType added in v0.0.13

func (*InputMessagePoll) InputMessageContentType() string

func (*InputMessagePoll) MarshalJSON added in v0.0.13

func (entity *InputMessagePoll) MarshalJSON() ([]byte, error)

func (*InputMessagePoll) UnmarshalJSON added in v0.2.0

func (inputMessagePoll *InputMessagePoll) UnmarshalJSON(data []byte) error

type InputMessageReplyTo added in v0.7.1

type InputMessageReplyTo interface {
	InputMessageReplyToType() string
}

Contains information about the message or the story to be replied

func UnmarshalInputMessageReplyTo added in v0.7.1

func UnmarshalInputMessageReplyTo(data json.RawMessage) (InputMessageReplyTo, error)

func UnmarshalListOfInputMessageReplyTo added in v0.7.1

func UnmarshalListOfInputMessageReplyTo(dataList []json.RawMessage) ([]InputMessageReplyTo, error)

type InputMessageReplyToExternalMessage added in v0.7.3

type InputMessageReplyToExternalMessage struct {

	// The identifier of the chat to which the message to be replied belongs
	ChatId int64 `json:"chat_id"`
	// The identifier of the message to be replied in the specified chat. A message can be replied in another chat or forum topic only if messageProperties.can_be_replied_in_another_chat
	MessageId int64 `json:"message_id"`
	// Quote from the message to be replied; pass null if none
	Quote *InputTextQuote `json:"quote"`
	// contains filtered or unexported fields
}

Describes a message to be replied that is from a different chat or a forum topic; not supported in secret chats

func UnmarshalInputMessageReplyToExternalMessage added in v0.7.3

func UnmarshalInputMessageReplyToExternalMessage(data json.RawMessage) (*InputMessageReplyToExternalMessage, error)

func (*InputMessageReplyToExternalMessage) GetClass added in v0.7.3

func (*InputMessageReplyToExternalMessage) GetType added in v0.7.3

func (*InputMessageReplyToExternalMessage) InputMessageReplyToType added in v0.7.3

func (*InputMessageReplyToExternalMessage) InputMessageReplyToType() string

func (*InputMessageReplyToExternalMessage) MarshalJSON added in v0.7.3

func (entity *InputMessageReplyToExternalMessage) MarshalJSON() ([]byte, error)

type InputMessageReplyToMessage added in v0.7.1

type InputMessageReplyToMessage struct {

	// The identifier of the message to be replied in the same chat and forum topic. A message can be replied in the same chat and forum topic only if messageProperties.can_be_replied
	MessageId int64 `json:"message_id"`
	// Quote from the message to be replied; pass null if none. Must always be null for replies in secret chats
	Quote *InputTextQuote `json:"quote"`
	// contains filtered or unexported fields
}

Describes a message to be replied in the same chat and forum topic

func UnmarshalInputMessageReplyToMessage added in v0.7.1

func UnmarshalInputMessageReplyToMessage(data json.RawMessage) (*InputMessageReplyToMessage, error)

func (*InputMessageReplyToMessage) GetClass added in v0.7.1

func (*InputMessageReplyToMessage) GetClass() string

func (*InputMessageReplyToMessage) GetType added in v0.7.1

func (*InputMessageReplyToMessage) InputMessageReplyToType added in v0.7.1

func (*InputMessageReplyToMessage) InputMessageReplyToType() string

func (*InputMessageReplyToMessage) MarshalJSON added in v0.7.1

func (entity *InputMessageReplyToMessage) MarshalJSON() ([]byte, error)

type InputMessageReplyToStory added in v0.7.1

type InputMessageReplyToStory struct {

	// The identifier of the sender of the story. Currently, stories can be replied only in the sender's chat and channel stories can't be replied
	StorySenderChatId int64 `json:"story_sender_chat_id"`
	// The identifier of the story
	StoryId int32 `json:"story_id"`
	// contains filtered or unexported fields
}

Describes a story to be replied

func UnmarshalInputMessageReplyToStory added in v0.7.1

func UnmarshalInputMessageReplyToStory(data json.RawMessage) (*InputMessageReplyToStory, error)

func (*InputMessageReplyToStory) GetClass added in v0.7.1

func (*InputMessageReplyToStory) GetClass() string

func (*InputMessageReplyToStory) GetType added in v0.7.1

func (*InputMessageReplyToStory) GetType() string

func (*InputMessageReplyToStory) InputMessageReplyToType added in v0.7.1

func (*InputMessageReplyToStory) InputMessageReplyToType() string

func (*InputMessageReplyToStory) MarshalJSON added in v0.7.1

func (entity *InputMessageReplyToStory) MarshalJSON() ([]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 v0.7.0

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 v0.7.0

func UnmarshalInputMessageStory(data json.RawMessage) (*InputMessageStory, error)

func (*InputMessageStory) GetClass added in v0.7.0

func (*InputMessageStory) GetClass() string

func (*InputMessageStory) GetType added in v0.7.0

func (*InputMessageStory) GetType() string

func (*InputMessageStory) InputMessageContentType added in v0.7.0

func (*InputMessageStory) InputMessageContentType() string

func (*InputMessageStory) MarshalJSON added in v0.7.0

func (entity *InputMessageStory) MarshalJSON() ([]byte, error)

type InputMessageText

type InputMessageText struct {

	// Formatted text to be sent; 0-getOption("message_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre, PreCode, TextUrl and MentionName entities are allowed to be specified manually
	Text *FormattedText `json:"text"`
	// Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options
	LinkPreviewOptions *LinkPreviewOptions `json:"link_preview_options"`
	// 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. The video is expected to be re-encoded to MPEG4 format with H.264 codec by the sender
	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 expected 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"`
	// True, if the caption must be shown above the video; otherwise, the caption must be shown below the video; not supported in secret chats
	ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
	// 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. The video is expected to be encoded to MPEG4 format with H.264 codec and have no data outside of the visible circle
	VideoNote InputFile `json:"video_note"`
	// Video thumbnail; may be null if empty; pass null to skip thumbnail uploading
	Thumbnail *InputThumbnail `json:"thumbnail"`
	// Duration of the video, in seconds; 0-60
	Duration int32 `json:"duration"`
	// Video width and height; must be positive and not greater than 640
	Length int32 `json:"length"`
	// Video note self-destruct type; may be null if none; pass null if none; private chats only
	SelfDestructType MessageSelfDestructType `json:"self_destruct_type"`
	// 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. The voice note must be encoded with the Opus codec and stored inside an OGG container with a single audio channel, or be in MP3 or M4A format as regular audio
	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; may be null if empty; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters
	Caption *FormattedText `json:"caption"`
	// Voice note self-destruct type; may be null if none; pass null if none; private chats only
	SelfDestructType MessageSelfDestructType `json:"self_destruct_type"`
	// 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 InputPaidMedia added in v0.7.3

type InputPaidMedia struct {

	// Type of the media
	Type InputPaidMediaType `json:"type"`
	// Photo or video to be sent
	Media InputFile `json:"media"`
	// Media thumbnail; pass null to skip thumbnail uploading
	Thumbnail *InputThumbnail `json:"thumbnail"`
	// File identifiers of the stickers added to the media, if applicable
	AddedStickerFileIds []int32 `json:"added_sticker_file_ids"`
	// Media width
	Width int32 `json:"width"`
	// Media height
	Height int32 `json:"height"`
	// contains filtered or unexported fields
}

Describes a paid media to be sent

func UnmarshalInputPaidMedia added in v0.7.3

func UnmarshalInputPaidMedia(data json.RawMessage) (*InputPaidMedia, error)

func (*InputPaidMedia) GetClass added in v0.7.3

func (*InputPaidMedia) GetClass() string

func (*InputPaidMedia) GetType added in v0.7.3

func (*InputPaidMedia) GetType() string

func (*InputPaidMedia) MarshalJSON added in v0.7.3

func (entity *InputPaidMedia) MarshalJSON() ([]byte, error)

func (*InputPaidMedia) UnmarshalJSON added in v0.7.3

func (inputPaidMedia *InputPaidMedia) UnmarshalJSON(data []byte) error

type InputPaidMediaType added in v0.7.3

type InputPaidMediaType interface {
	InputPaidMediaTypeType() string
}

Describes type of paid media to sent

func UnmarshalInputPaidMediaType added in v0.7.3

func UnmarshalInputPaidMediaType(data json.RawMessage) (InputPaidMediaType, error)

func UnmarshalListOfInputPaidMediaType added in v0.7.3

func UnmarshalListOfInputPaidMediaType(dataList []json.RawMessage) ([]InputPaidMediaType, error)

type InputPaidMediaTypePhoto added in v0.7.3

type InputPaidMediaTypePhoto struct {
	// contains filtered or unexported fields
}

The media is a photo. 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

func UnmarshalInputPaidMediaTypePhoto added in v0.7.3

func UnmarshalInputPaidMediaTypePhoto(data json.RawMessage) (*InputPaidMediaTypePhoto, error)

func (*InputPaidMediaTypePhoto) GetClass added in v0.7.3

func (*InputPaidMediaTypePhoto) GetClass() string

func (*InputPaidMediaTypePhoto) GetType added in v0.7.3

func (*InputPaidMediaTypePhoto) GetType() string

func (*InputPaidMediaTypePhoto) InputPaidMediaTypeType added in v0.7.3

func (*InputPaidMediaTypePhoto) InputPaidMediaTypeType() string

func (*InputPaidMediaTypePhoto) MarshalJSON added in v0.7.3

func (entity *InputPaidMediaTypePhoto) MarshalJSON() ([]byte, error)

type InputPaidMediaTypeVideo added in v0.7.3

type InputPaidMediaTypeVideo struct {

	// Duration of the video, in seconds
	Duration int32 `json:"duration"`
	// True, if the video is expected to be streamed
	SupportsStreaming bool `json:"supports_streaming"`
	// contains filtered or unexported fields
}

The media is a video

func UnmarshalInputPaidMediaTypeVideo added in v0.7.3

func UnmarshalInputPaidMediaTypeVideo(data json.RawMessage) (*InputPaidMediaTypeVideo, error)

func (*InputPaidMediaTypeVideo) GetClass added in v0.7.3

func (*InputPaidMediaTypeVideo) GetClass() string

func (*InputPaidMediaTypeVideo) GetType added in v0.7.3

func (*InputPaidMediaTypeVideo) GetType() string

func (*InputPaidMediaTypeVideo) InputPaidMediaTypeType added in v0.7.3

func (*InputPaidMediaTypeVideo) InputPaidMediaTypeType() string

func (*InputPaidMediaTypeVideo) MarshalJSON added in v0.7.3

func (entity *InputPaidMediaTypeVideo) MarshalJSON() ([]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 added in v0.3.2

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) 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) GetType

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) GetType

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) GetType

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 added in v0.3.2

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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 added in v0.3.2

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"`
	// Format of the sticker
	Format StickerFormat `json:"format"`
	// 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

func (*InputSticker) GetClass() string

func (*InputSticker) GetType

func (*InputSticker) GetType() string

func (*InputSticker) MarshalJSON

func (entity *InputSticker) MarshalJSON() ([]byte, error)

func (*InputSticker) UnmarshalJSON

func (inputSticker *InputSticker) UnmarshalJSON(data []byte) error

type InputStoryArea added in v0.7.0

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 v0.7.0

func UnmarshalInputStoryArea(data json.RawMessage) (*InputStoryArea, error)

func (*InputStoryArea) GetClass added in v0.7.0

func (*InputStoryArea) GetClass() string

func (*InputStoryArea) GetType added in v0.7.0

func (*InputStoryArea) GetType() string

func (*InputStoryArea) MarshalJSON added in v0.7.0

func (entity *InputStoryArea) MarshalJSON() ([]byte, error)

func (*InputStoryArea) UnmarshalJSON added in v0.7.0

func (inputStoryArea *InputStoryArea) UnmarshalJSON(data []byte) error

type InputStoryAreaType added in v0.7.0

type InputStoryAreaType interface {
	InputStoryAreaTypeType() string
}

Describes type of clickable area on a story media to be added

func UnmarshalInputStoryAreaType added in v0.7.0

func UnmarshalInputStoryAreaType(data json.RawMessage) (InputStoryAreaType, error)

func UnmarshalListOfInputStoryAreaType added in v0.7.0

func UnmarshalListOfInputStoryAreaType(dataList []json.RawMessage) ([]InputStoryAreaType, error)

type InputStoryAreaTypeFoundVenue added in v0.7.0

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 v0.7.0

func UnmarshalInputStoryAreaTypeFoundVenue(data json.RawMessage) (*InputStoryAreaTypeFoundVenue, error)

func (*InputStoryAreaTypeFoundVenue) GetClass added in v0.7.0

func (*InputStoryAreaTypeFoundVenue) GetType added in v0.7.0

func (*InputStoryAreaTypeFoundVenue) InputStoryAreaTypeType added in v0.7.0

func (*InputStoryAreaTypeFoundVenue) InputStoryAreaTypeType() string

func (*InputStoryAreaTypeFoundVenue) MarshalJSON added in v0.7.0

func (entity *InputStoryAreaTypeFoundVenue) MarshalJSON() ([]byte, error)
type InputStoryAreaTypeLink struct {

	// HTTP or tg:// URL to be opened when the area is clicked
	Url string `json:"url"`
	// contains filtered or unexported fields
}

An area pointing to a HTTP or tg:// link

func UnmarshalInputStoryAreaTypeLink(data json.RawMessage) (*InputStoryAreaTypeLink, error)

func (*InputStoryAreaTypeLink) GetClass added in v0.7.3

func (*InputStoryAreaTypeLink) GetClass() string

func (*InputStoryAreaTypeLink) GetType added in v0.7.3

func (*InputStoryAreaTypeLink) GetType() string

func (*InputStoryAreaTypeLink) InputStoryAreaTypeType added in v0.7.3

func (*InputStoryAreaTypeLink) InputStoryAreaTypeType() string

func (*InputStoryAreaTypeLink) MarshalJSON added in v0.7.3

func (entity *InputStoryAreaTypeLink) MarshalJSON() ([]byte, error)

type InputStoryAreaTypeLocation added in v0.7.0

type InputStoryAreaTypeLocation struct {

	// The location
	Location *Location `json:"location"`
	// Address of the location; pass null if unknown
	Address *LocationAddress `json:"address"`
	// contains filtered or unexported fields
}

An area pointing to a location

func UnmarshalInputStoryAreaTypeLocation added in v0.7.0

func UnmarshalInputStoryAreaTypeLocation(data json.RawMessage) (*InputStoryAreaTypeLocation, error)

func (*InputStoryAreaTypeLocation) GetClass added in v0.7.0

func (*InputStoryAreaTypeLocation) GetClass() string

func (*InputStoryAreaTypeLocation) GetType added in v0.7.0

func (*InputStoryAreaTypeLocation) InputStoryAreaTypeType added in v0.7.0

func (*InputStoryAreaTypeLocation) InputStoryAreaTypeType() string

func (*InputStoryAreaTypeLocation) MarshalJSON added in v0.7.0

func (entity *InputStoryAreaTypeLocation) MarshalJSON() ([]byte, error)

type InputStoryAreaTypeMessage added in v0.7.2

type InputStoryAreaTypeMessage struct {

	// Identifier of the chat with the message. Currently, the chat must be a supergroup or a channel chat
	ChatId int64 `json:"chat_id"`
	// Identifier of the message. Use messageProperties.can_be_shared_in_story to check whether the message is suitable
	MessageId int64 `json:"message_id"`
	// contains filtered or unexported fields
}

An area pointing to a message

func UnmarshalInputStoryAreaTypeMessage added in v0.7.2

func UnmarshalInputStoryAreaTypeMessage(data json.RawMessage) (*InputStoryAreaTypeMessage, error)

func (*InputStoryAreaTypeMessage) GetClass added in v0.7.2

func (*InputStoryAreaTypeMessage) GetClass() string

func (*InputStoryAreaTypeMessage) GetType added in v0.7.2

func (*InputStoryAreaTypeMessage) GetType() string

func (*InputStoryAreaTypeMessage) InputStoryAreaTypeType added in v0.7.2

func (*InputStoryAreaTypeMessage) InputStoryAreaTypeType() string

func (*InputStoryAreaTypeMessage) MarshalJSON added in v0.7.2

func (entity *InputStoryAreaTypeMessage) MarshalJSON() ([]byte, error)

type InputStoryAreaTypePreviousVenue added in v0.7.0

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 v0.7.0

func UnmarshalInputStoryAreaTypePreviousVenue(data json.RawMessage) (*InputStoryAreaTypePreviousVenue, error)

func (*InputStoryAreaTypePreviousVenue) GetClass added in v0.7.0

func (*InputStoryAreaTypePreviousVenue) GetType added in v0.7.0

func (*InputStoryAreaTypePreviousVenue) InputStoryAreaTypeType added in v0.7.0

func (*InputStoryAreaTypePreviousVenue) InputStoryAreaTypeType() string

func (*InputStoryAreaTypePreviousVenue) MarshalJSON added in v0.7.0

func (entity *InputStoryAreaTypePreviousVenue) MarshalJSON() ([]byte, error)

type InputStoryAreaTypeSuggestedReaction added in v0.7.1

type InputStoryAreaTypeSuggestedReaction struct {

	// Type of the reaction
	ReactionType ReactionType `json:"reaction_type"`
	// True, if reaction has a dark background
	IsDark bool `json:"is_dark"`
	// True, if reaction corner is flipped
	IsFlipped bool `json:"is_flipped"`
	// contains filtered or unexported fields
}

An area pointing to a suggested reaction

func UnmarshalInputStoryAreaTypeSuggestedReaction added in v0.7.1

func UnmarshalInputStoryAreaTypeSuggestedReaction(data json.RawMessage) (*InputStoryAreaTypeSuggestedReaction, error)

func (*InputStoryAreaTypeSuggestedReaction) GetClass added in v0.7.1

func (*InputStoryAreaTypeSuggestedReaction) GetType added in v0.7.1

func (*InputStoryAreaTypeSuggestedReaction) InputStoryAreaTypeType added in v0.7.1

func (*InputStoryAreaTypeSuggestedReaction) InputStoryAreaTypeType() string

func (*InputStoryAreaTypeSuggestedReaction) MarshalJSON added in v0.7.1

func (entity *InputStoryAreaTypeSuggestedReaction) MarshalJSON() ([]byte, error)

func (*InputStoryAreaTypeSuggestedReaction) UnmarshalJSON added in v0.7.1

func (inputStoryAreaTypeSuggestedReaction *InputStoryAreaTypeSuggestedReaction) UnmarshalJSON(data []byte) error

type InputStoryAreaTypeWeather added in v0.7.3

type InputStoryAreaTypeWeather struct {

	// Temperature, in degree Celsius
	Temperature float64 `json:"temperature"`
	// Emoji representing the weather
	Emoji string `json:"emoji"`
	// A color of the area background in the ARGB format
	BackgroundColor int32 `json:"background_color"`
	// contains filtered or unexported fields
}

An area with information about weather

func UnmarshalInputStoryAreaTypeWeather added in v0.7.3

func UnmarshalInputStoryAreaTypeWeather(data json.RawMessage) (*InputStoryAreaTypeWeather, error)

func (*InputStoryAreaTypeWeather) GetClass added in v0.7.3

func (*InputStoryAreaTypeWeather) GetClass() string

func (*InputStoryAreaTypeWeather) GetType added in v0.7.3

func (*InputStoryAreaTypeWeather) GetType() string

func (*InputStoryAreaTypeWeather) InputStoryAreaTypeType added in v0.7.3

func (*InputStoryAreaTypeWeather) InputStoryAreaTypeType() string

func (*InputStoryAreaTypeWeather) MarshalJSON added in v0.7.3

func (entity *InputStoryAreaTypeWeather) MarshalJSON() ([]byte, error)

type InputStoryAreas added in v0.7.0

type InputStoryAreas struct {

	// List of input story areas. Currently, a story can have up to 10 inputStoryAreaTypeLocation, inputStoryAreaTypeFoundVenue, and inputStoryAreaTypePreviousVenue areas, up to getOption("story_suggested_reaction_area_count_max") inputStoryAreaTypeSuggestedReaction areas, up to 1 inputStoryAreaTypeMessage area, up to getOption("story_link_area_count_max") inputStoryAreaTypeLink areas if the current user is a Telegram Premium user, and up to 3 inputStoryAreaTypeWeather areas
	Areas []*InputStoryArea `json:"areas"`
	// contains filtered or unexported fields
}

Contains a list of story areas to be added

func UnmarshalInputStoryAreas added in v0.7.0

func UnmarshalInputStoryAreas(data json.RawMessage) (*InputStoryAreas, error)

func (*InputStoryAreas) GetClass added in v0.7.0

func (*InputStoryAreas) GetClass() string

func (*InputStoryAreas) GetType added in v0.7.0

func (*InputStoryAreas) GetType() string

func (*InputStoryAreas) MarshalJSON added in v0.7.0

func (entity *InputStoryAreas) MarshalJSON() ([]byte, error)

type InputStoryContent added in v0.7.0

type InputStoryContent interface {
	InputStoryContentType() string
}

The content of a story to send

func UnmarshalInputStoryContent added in v0.7.0

func UnmarshalInputStoryContent(data json.RawMessage) (InputStoryContent, error)

func UnmarshalListOfInputStoryContent added in v0.7.0

func UnmarshalListOfInputStoryContent(dataList []json.RawMessage) ([]InputStoryContent, error)

type InputStoryContentPhoto added in v0.7.0

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 v0.7.0

func UnmarshalInputStoryContentPhoto(data json.RawMessage) (*InputStoryContentPhoto, error)

func (*InputStoryContentPhoto) GetClass added in v0.7.0

func (*InputStoryContentPhoto) GetClass() string

func (*InputStoryContentPhoto) GetType added in v0.7.0

func (*InputStoryContentPhoto) GetType() string

func (*InputStoryContentPhoto) InputStoryContentType added in v0.7.0

func (*InputStoryContentPhoto) InputStoryContentType() string

func (*InputStoryContentPhoto) MarshalJSON added in v0.7.0

func (entity *InputStoryContentPhoto) MarshalJSON() ([]byte, error)

func (*InputStoryContentPhoto) UnmarshalJSON added in v0.7.0

func (inputStoryContentPhoto *InputStoryContentPhoto) UnmarshalJSON(data []byte) error

type InputStoryContentVideo added in v0.7.0

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 H.265 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"`
	// Timestamp of the frame, which will be used as video thumbnail
	CoverFrameTimestamp float64 `json:"cover_frame_timestamp"`
	// True, if the video has no sound
	IsAnimation bool `json:"is_animation"`
	// contains filtered or unexported fields
}

A video story

func UnmarshalInputStoryContentVideo added in v0.7.0

func UnmarshalInputStoryContentVideo(data json.RawMessage) (*InputStoryContentVideo, error)

func (*InputStoryContentVideo) GetClass added in v0.7.0

func (*InputStoryContentVideo) GetClass() string

func (*InputStoryContentVideo) GetType added in v0.7.0

func (*InputStoryContentVideo) GetType() string

func (*InputStoryContentVideo) InputStoryContentType added in v0.7.0

func (*InputStoryContentVideo) InputStoryContentType() string

func (*InputStoryContentVideo) MarshalJSON added in v0.7.0

func (entity *InputStoryContentVideo) MarshalJSON() ([]byte, error)

func (*InputStoryContentVideo) UnmarshalJSON added in v0.7.0

func (inputStoryContentVideo *InputStoryContentVideo) UnmarshalJSON(data []byte) error

type InputTextQuote added in v0.7.1

type InputTextQuote struct {

	// Text of the quote; 0-getOption("message_reply_quote_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed to be kept and must be kept in the quote
	Text *FormattedText `json:"text"`
	// Quote position in the original message in UTF-16 code units
	Position int32 `json:"position"`
	// contains filtered or unexported fields
}

Describes manually chosen quote from another message

func UnmarshalInputTextQuote added in v0.7.1

func UnmarshalInputTextQuote(data json.RawMessage) (*InputTextQuote, error)

func (*InputTextQuote) GetClass added in v0.7.1

func (*InputTextQuote) GetClass() string

func (*InputTextQuote) GetType added in v0.7.1

func (*InputTextQuote) GetType() string

func (*InputTextQuote) MarshalJSON added in v0.7.1

func (entity *InputTextQuote) MarshalJSON() ([]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 added in v0.5.0

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 added in v0.5.0

func UnmarshalInternalLinkType(data json.RawMessage) (InternalLinkType, error)

func UnmarshalListOfInternalLinkType added in v0.5.0

func UnmarshalListOfInternalLinkType(dataList []json.RawMessage) ([]InternalLinkType, error)

type InternalLinkTypeActiveSessions added in v0.5.0

type InternalLinkTypeActiveSessions struct {
	// contains filtered or unexported fields
}

The link is a link to the Devices section of the application. Use getActiveSessions to get the list of active sessions and show them to the user

func UnmarshalInternalLinkTypeActiveSessions added in v0.5.0

func UnmarshalInternalLinkTypeActiveSessions(data json.RawMessage) (*InternalLinkTypeActiveSessions, error)

func (*InternalLinkTypeActiveSessions) GetClass added in v0.5.0

func (*InternalLinkTypeActiveSessions) GetType added in v0.5.0

func (*InternalLinkTypeActiveSessions) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeActiveSessions) InternalLinkTypeType() string

func (*InternalLinkTypeActiveSessions) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeActiveSessions) MarshalJSON() ([]byte, error)

type InternalLinkTypeAttachmentMenuBot added in v0.7.0

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 third-party applications, 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 v0.7.0

func UnmarshalInternalLinkTypeAttachmentMenuBot(data json.RawMessage) (*InternalLinkTypeAttachmentMenuBot, error)

func (*InternalLinkTypeAttachmentMenuBot) GetClass added in v0.7.0

func (*InternalLinkTypeAttachmentMenuBot) GetType added in v0.7.0

func (*InternalLinkTypeAttachmentMenuBot) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypeAttachmentMenuBot) InternalLinkTypeType() string

func (*InternalLinkTypeAttachmentMenuBot) MarshalJSON added in v0.7.0

func (entity *InternalLinkTypeAttachmentMenuBot) MarshalJSON() ([]byte, error)

func (*InternalLinkTypeAttachmentMenuBot) UnmarshalJSON added in v0.7.0

func (internalLinkTypeAttachmentMenuBot *InternalLinkTypeAttachmentMenuBot) UnmarshalJSON(data []byte) error

type InternalLinkTypeAuthenticationCode added in v0.5.0

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 added in v0.5.0

func UnmarshalInternalLinkTypeAuthenticationCode(data json.RawMessage) (*InternalLinkTypeAuthenticationCode, error)

func (*InternalLinkTypeAuthenticationCode) GetClass added in v0.5.0

func (*InternalLinkTypeAuthenticationCode) GetType added in v0.5.0

func (*InternalLinkTypeAuthenticationCode) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeAuthenticationCode) InternalLinkTypeType() string

func (*InternalLinkTypeAuthenticationCode) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeAuthenticationCode) MarshalJSON() ([]byte, error)

type InternalLinkTypeBackground added in v0.5.0

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. If background is found and the user wants to apply it, then call setDefaultBackground

func UnmarshalInternalLinkTypeBackground added in v0.5.0

func UnmarshalInternalLinkTypeBackground(data json.RawMessage) (*InternalLinkTypeBackground, error)

func (*InternalLinkTypeBackground) GetClass added in v0.5.0

func (*InternalLinkTypeBackground) GetClass() string

func (*InternalLinkTypeBackground) GetType added in v0.5.0

func (*InternalLinkTypeBackground) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeBackground) InternalLinkTypeType() string

func (*InternalLinkTypeBackground) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeBackground) MarshalJSON() ([]byte, error)

type InternalLinkTypeBotAddToChannel added in v0.7.0

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 expected 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 v0.7.0

func UnmarshalInternalLinkTypeBotAddToChannel(data json.RawMessage) (*InternalLinkTypeBotAddToChannel, error)

func (*InternalLinkTypeBotAddToChannel) GetClass added in v0.7.0

func (*InternalLinkTypeBotAddToChannel) GetType added in v0.7.0

func (*InternalLinkTypeBotAddToChannel) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypeBotAddToChannel) InternalLinkTypeType() string

func (*InternalLinkTypeBotAddToChannel) MarshalJSON added in v0.7.0

func (entity *InternalLinkTypeBotAddToChannel) MarshalJSON() ([]byte, error)

type InternalLinkTypeBotStart added in v0.5.0

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 added in v0.5.0

func UnmarshalInternalLinkTypeBotStart(data json.RawMessage) (*InternalLinkTypeBotStart, error)

func (*InternalLinkTypeBotStart) GetClass added in v0.5.0

func (*InternalLinkTypeBotStart) GetClass() string

func (*InternalLinkTypeBotStart) GetType added in v0.5.0

func (*InternalLinkTypeBotStart) GetType() string

func (*InternalLinkTypeBotStart) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeBotStart) InternalLinkTypeType() string

func (*InternalLinkTypeBotStart) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeBotStart) MarshalJSON() ([]byte, error)

type InternalLinkTypeBotStartInGroup added in v0.5.0

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 expected 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 added in v0.5.0

func UnmarshalInternalLinkTypeBotStartInGroup(data json.RawMessage) (*InternalLinkTypeBotStartInGroup, error)

func (*InternalLinkTypeBotStartInGroup) GetClass added in v0.5.0

func (*InternalLinkTypeBotStartInGroup) GetType added in v0.5.0

func (*InternalLinkTypeBotStartInGroup) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeBotStartInGroup) InternalLinkTypeType() string

func (*InternalLinkTypeBotStartInGroup) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeBotStartInGroup) MarshalJSON() ([]byte, error)

type InternalLinkTypeBusinessChat added in v0.7.3

type InternalLinkTypeBusinessChat struct {

	// Name of the link
	LinkName string `json:"link_name"`
	// contains filtered or unexported fields
}

The link is a link to a business chat. Use getBusinessChatLinkInfo with the provided link name to get information about the link, then open received private chat and replace chat draft with the provided text

func UnmarshalInternalLinkTypeBusinessChat added in v0.7.3

func UnmarshalInternalLinkTypeBusinessChat(data json.RawMessage) (*InternalLinkTypeBusinessChat, error)

func (*InternalLinkTypeBusinessChat) GetClass added in v0.7.3

func (*InternalLinkTypeBusinessChat) GetType added in v0.7.3

func (*InternalLinkTypeBusinessChat) InternalLinkTypeType added in v0.7.3

func (*InternalLinkTypeBusinessChat) InternalLinkTypeType() string

func (*InternalLinkTypeBusinessChat) MarshalJSON added in v0.7.3

func (entity *InternalLinkTypeBusinessChat) MarshalJSON() ([]byte, error)

type InternalLinkTypeBuyStars added in v0.7.3

type InternalLinkTypeBuyStars struct {

	// The number of Telegram Stars that must be owned by the user
	StarCount int64 `json:"star_count"`
	// Purpose of Telegram Star purchase. Arbitrary string specified by the server, for example, "subs" if the Telegram Stars are required to extend channel subscriptions
	Purpose string `json:"purpose"`
	// contains filtered or unexported fields
}

The link is a link to the Telegram Star purchase section of the application

func UnmarshalInternalLinkTypeBuyStars added in v0.7.3

func UnmarshalInternalLinkTypeBuyStars(data json.RawMessage) (*InternalLinkTypeBuyStars, error)

func (*InternalLinkTypeBuyStars) GetClass added in v0.7.3

func (*InternalLinkTypeBuyStars) GetClass() string

func (*InternalLinkTypeBuyStars) GetType added in v0.7.3

func (*InternalLinkTypeBuyStars) GetType() string

func (*InternalLinkTypeBuyStars) InternalLinkTypeType added in v0.7.3

func (*InternalLinkTypeBuyStars) InternalLinkTypeType() string

func (*InternalLinkTypeBuyStars) MarshalJSON added in v0.7.3

func (entity *InternalLinkTypeBuyStars) MarshalJSON() ([]byte, error)

type InternalLinkTypeChangePhoneNumber added in v0.5.0

type InternalLinkTypeChangePhoneNumber struct {
	// contains filtered or unexported fields
}

The link is a link to the change phone number section of the application

func UnmarshalInternalLinkTypeChangePhoneNumber added in v0.5.0

func UnmarshalInternalLinkTypeChangePhoneNumber(data json.RawMessage) (*InternalLinkTypeChangePhoneNumber, error)

func (*InternalLinkTypeChangePhoneNumber) GetClass added in v0.5.0

func (*InternalLinkTypeChangePhoneNumber) GetType added in v0.5.0

func (*InternalLinkTypeChangePhoneNumber) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeChangePhoneNumber) InternalLinkTypeType() string

func (*InternalLinkTypeChangePhoneNumber) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeChangePhoneNumber) MarshalJSON() ([]byte, error)

type InternalLinkTypeChatBoost added in v0.7.1

type InternalLinkTypeChatBoost struct {

	// URL to be passed to getChatBoostLinkInfo
	Url string `json:"url"`
	// contains filtered or unexported fields
}

The link is a link to boost a Telegram chat. Call getChatBoostLinkInfo with the given URL to process the link. If the chat is found, then call getChatBoostStatus and getAvailableChatBoostSlots to get the current boost status and check whether the chat can be boosted. If the user wants to boost the chat and the chat can be boosted, then call boostChat

func UnmarshalInternalLinkTypeChatBoost added in v0.7.1

func UnmarshalInternalLinkTypeChatBoost(data json.RawMessage) (*InternalLinkTypeChatBoost, error)

func (*InternalLinkTypeChatBoost) GetClass added in v0.7.1

func (*InternalLinkTypeChatBoost) GetClass() string

func (*InternalLinkTypeChatBoost) GetType added in v0.7.1

func (*InternalLinkTypeChatBoost) GetType() string

func (*InternalLinkTypeChatBoost) InternalLinkTypeType added in v0.7.1

func (*InternalLinkTypeChatBoost) InternalLinkTypeType() string

func (*InternalLinkTypeChatBoost) MarshalJSON added in v0.7.1

func (entity *InternalLinkTypeChatBoost) MarshalJSON() ([]byte, error)

type InternalLinkTypeChatFolderInvite added in v0.7.0

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. If the link is valid and the user wants to join the chat folder, then call addChatFolderByInviteLink

func UnmarshalInternalLinkTypeChatFolderInvite added in v0.7.0

func UnmarshalInternalLinkTypeChatFolderInvite(data json.RawMessage) (*InternalLinkTypeChatFolderInvite, error)

func (*InternalLinkTypeChatFolderInvite) GetClass added in v0.7.0

func (*InternalLinkTypeChatFolderInvite) GetType added in v0.7.0

func (*InternalLinkTypeChatFolderInvite) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypeChatFolderInvite) InternalLinkTypeType() string

func (*InternalLinkTypeChatFolderInvite) MarshalJSON added in v0.7.0

func (entity *InternalLinkTypeChatFolderInvite) MarshalJSON() ([]byte, error)

type InternalLinkTypeChatFolderSettings added in v0.7.0

type InternalLinkTypeChatFolderSettings struct {
	// contains filtered or unexported fields
}

The link is a link to the folder section of the application settings

func UnmarshalInternalLinkTypeChatFolderSettings added in v0.7.0

func UnmarshalInternalLinkTypeChatFolderSettings(data json.RawMessage) (*InternalLinkTypeChatFolderSettings, error)

func (*InternalLinkTypeChatFolderSettings) GetClass added in v0.7.0

func (*InternalLinkTypeChatFolderSettings) GetType added in v0.7.0

func (*InternalLinkTypeChatFolderSettings) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypeChatFolderSettings) InternalLinkTypeType() string

func (*InternalLinkTypeChatFolderSettings) MarshalJSON added in v0.7.0

func (entity *InternalLinkTypeChatFolderSettings) MarshalJSON() ([]byte, error)

type InternalLinkTypeChatInvite added in v0.5.0

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. If the link is valid and the user wants to join the chat, then call joinChatByInviteLink

func UnmarshalInternalLinkTypeChatInvite added in v0.5.0

func UnmarshalInternalLinkTypeChatInvite(data json.RawMessage) (*InternalLinkTypeChatInvite, error)

func (*InternalLinkTypeChatInvite) GetClass added in v0.5.0

func (*InternalLinkTypeChatInvite) GetClass() string

func (*InternalLinkTypeChatInvite) GetType added in v0.5.0

func (*InternalLinkTypeChatInvite) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeChatInvite) InternalLinkTypeType() string

func (*InternalLinkTypeChatInvite) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeChatInvite) MarshalJSON() ([]byte, error)

type InternalLinkTypeDefaultMessageAutoDeleteTimerSettings added in v0.7.0

type InternalLinkTypeDefaultMessageAutoDeleteTimerSettings struct {
	// contains filtered or unexported fields
}

The link is a link to the default message auto-delete timer settings section of the application settings

func UnmarshalInternalLinkTypeDefaultMessageAutoDeleteTimerSettings added in v0.7.0

func UnmarshalInternalLinkTypeDefaultMessageAutoDeleteTimerSettings(data json.RawMessage) (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings, error)

func (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) GetClass added in v0.7.0

func (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) GetType added in v0.7.0

func (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings) MarshalJSON added in v0.7.0

type InternalLinkTypeEditProfileSettings added in v0.7.0

type InternalLinkTypeEditProfileSettings struct {
	// contains filtered or unexported fields
}

The link is a link to the edit profile section of the application settings

func UnmarshalInternalLinkTypeEditProfileSettings added in v0.7.0

func UnmarshalInternalLinkTypeEditProfileSettings(data json.RawMessage) (*InternalLinkTypeEditProfileSettings, error)

func (*InternalLinkTypeEditProfileSettings) GetClass added in v0.7.0

func (*InternalLinkTypeEditProfileSettings) GetType added in v0.7.0

func (*InternalLinkTypeEditProfileSettings) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypeEditProfileSettings) InternalLinkTypeType() string

func (*InternalLinkTypeEditProfileSettings) MarshalJSON added in v0.7.0

func (entity *InternalLinkTypeEditProfileSettings) MarshalJSON() ([]byte, error)

type InternalLinkTypeGame added in v0.5.0

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 added in v0.5.0

func UnmarshalInternalLinkTypeGame(data json.RawMessage) (*InternalLinkTypeGame, error)

func (*InternalLinkTypeGame) GetClass added in v0.5.0

func (*InternalLinkTypeGame) GetClass() string

func (*InternalLinkTypeGame) GetType added in v0.5.0

func (*InternalLinkTypeGame) GetType() string

func (*InternalLinkTypeGame) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeGame) InternalLinkTypeType() string

func (*InternalLinkTypeGame) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeGame) MarshalJSON() ([]byte, error)

type InternalLinkTypeInstantView added in v0.7.0

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. If Instant View is found, then show it, otherwise, open the fallback URL in an external browser

func UnmarshalInternalLinkTypeInstantView added in v0.7.0

func UnmarshalInternalLinkTypeInstantView(data json.RawMessage) (*InternalLinkTypeInstantView, error)

func (*InternalLinkTypeInstantView) GetClass added in v0.7.0

func (*InternalLinkTypeInstantView) GetClass() string

func (*InternalLinkTypeInstantView) GetType added in v0.7.0

func (*InternalLinkTypeInstantView) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypeInstantView) InternalLinkTypeType() string

func (*InternalLinkTypeInstantView) MarshalJSON added in v0.7.0

func (entity *InternalLinkTypeInstantView) MarshalJSON() ([]byte, error)

type InternalLinkTypeInvoice added in v0.7.0

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 v0.7.0

func UnmarshalInternalLinkTypeInvoice(data json.RawMessage) (*InternalLinkTypeInvoice, error)

func (*InternalLinkTypeInvoice) GetClass added in v0.7.0

func (*InternalLinkTypeInvoice) GetClass() string

func (*InternalLinkTypeInvoice) GetType added in v0.7.0

func (*InternalLinkTypeInvoice) GetType() string

func (*InternalLinkTypeInvoice) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypeInvoice) InternalLinkTypeType() string

func (*InternalLinkTypeInvoice) MarshalJSON added in v0.7.0

func (entity *InternalLinkTypeInvoice) MarshalJSON() ([]byte, error)

type InternalLinkTypeLanguagePack added in v0.5.0

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. If the language pack is found and the user wants to apply it, then call setOption for the option "language_pack_id"

func UnmarshalInternalLinkTypeLanguagePack added in v0.5.0

func UnmarshalInternalLinkTypeLanguagePack(data json.RawMessage) (*InternalLinkTypeLanguagePack, error)

func (*InternalLinkTypeLanguagePack) GetClass added in v0.5.0

func (*InternalLinkTypeLanguagePack) GetType added in v0.5.0

func (*InternalLinkTypeLanguagePack) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeLanguagePack) InternalLinkTypeType() string

func (*InternalLinkTypeLanguagePack) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeLanguagePack) MarshalJSON() ([]byte, error)

type InternalLinkTypeLanguageSettings added in v0.7.0

type InternalLinkTypeLanguageSettings struct {
	// contains filtered or unexported fields
}

The link is a link to the language section of the application settings

func UnmarshalInternalLinkTypeLanguageSettings added in v0.7.0

func UnmarshalInternalLinkTypeLanguageSettings(data json.RawMessage) (*InternalLinkTypeLanguageSettings, error)

func (*InternalLinkTypeLanguageSettings) GetClass added in v0.7.0

func (*InternalLinkTypeLanguageSettings) GetType added in v0.7.0

func (*InternalLinkTypeLanguageSettings) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypeLanguageSettings) InternalLinkTypeType() string

func (*InternalLinkTypeLanguageSettings) MarshalJSON added in v0.7.0

func (entity *InternalLinkTypeLanguageSettings) MarshalJSON() ([]byte, error)

type InternalLinkTypeMainWebApp added in v0.7.3

type InternalLinkTypeMainWebApp struct {

	// Username of the bot
	BotUsername string `json:"bot_username"`
	// Start parameter to be passed to getMainWebApp
	StartParameter string `json:"start_parameter"`
	// The mode to be passed to getMainWebApp
	Mode WebAppOpenMode `json:"mode"`
	// contains filtered or unexported fields
}

The link is a link to the main Web App of a bot. Call searchPublicChat with the given bot username, check that the user is a bot and has the main Web App. If the bot can be added to attachment menu, then use getAttachmentMenuBot to receive information about the bot, then if the bot isn't added to side menu, show a disclaimer about Mini Apps being third-party applications, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu, then if the user accepts the terms and confirms adding, use toggleBotIsAddedToAttachmentMenu to add the bot. Then, use getMainWebApp with the given start parameter and mode and open the returned URL as a Web App

func UnmarshalInternalLinkTypeMainWebApp added in v0.7.3

func UnmarshalInternalLinkTypeMainWebApp(data json.RawMessage) (*InternalLinkTypeMainWebApp, error)

func (*InternalLinkTypeMainWebApp) GetClass added in v0.7.3

func (*InternalLinkTypeMainWebApp) GetClass() string

func (*InternalLinkTypeMainWebApp) GetType added in v0.7.3

func (*InternalLinkTypeMainWebApp) InternalLinkTypeType added in v0.7.3

func (*InternalLinkTypeMainWebApp) InternalLinkTypeType() string

func (*InternalLinkTypeMainWebApp) MarshalJSON added in v0.7.3

func (entity *InternalLinkTypeMainWebApp) MarshalJSON() ([]byte, error)

func (*InternalLinkTypeMainWebApp) UnmarshalJSON added in v0.7.4

func (internalLinkTypeMainWebApp *InternalLinkTypeMainWebApp) UnmarshalJSON(data []byte) error

type InternalLinkTypeMessage added in v0.5.0

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, and then open received forum topic or chat and show the message there

func UnmarshalInternalLinkTypeMessage added in v0.5.0

func UnmarshalInternalLinkTypeMessage(data json.RawMessage) (*InternalLinkTypeMessage, error)

func (*InternalLinkTypeMessage) GetClass added in v0.5.0

func (*InternalLinkTypeMessage) GetClass() string

func (*InternalLinkTypeMessage) GetType added in v0.5.0

func (*InternalLinkTypeMessage) GetType() string

func (*InternalLinkTypeMessage) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeMessage) InternalLinkTypeType() string

func (*InternalLinkTypeMessage) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeMessage) MarshalJSON() ([]byte, error)

type InternalLinkTypeMessageDraft added in v0.5.0

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 added in v0.5.0

func UnmarshalInternalLinkTypeMessageDraft(data json.RawMessage) (*InternalLinkTypeMessageDraft, error)

func (*InternalLinkTypeMessageDraft) GetClass added in v0.5.0

func (*InternalLinkTypeMessageDraft) GetType added in v0.5.0

func (*InternalLinkTypeMessageDraft) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeMessageDraft) InternalLinkTypeType() string

func (*InternalLinkTypeMessageDraft) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeMessageDraft) MarshalJSON() ([]byte, error)

type InternalLinkTypePassportDataRequest added in v0.5.0

type InternalLinkTypePassportDataRequest struct {

	// User identifier of the service's bot; the corresponding user may be unknown yet
	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 added in v0.5.0

func UnmarshalInternalLinkTypePassportDataRequest(data json.RawMessage) (*InternalLinkTypePassportDataRequest, error)

func (*InternalLinkTypePassportDataRequest) GetClass added in v0.5.0

func (*InternalLinkTypePassportDataRequest) GetType added in v0.5.0

func (*InternalLinkTypePassportDataRequest) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypePassportDataRequest) InternalLinkTypeType() string

func (*InternalLinkTypePassportDataRequest) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypePassportDataRequest) MarshalJSON() ([]byte, error)

type InternalLinkTypePhoneNumberConfirmation added in v0.5.0

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 sendPhoneNumberCode with the given phone number and with phoneNumberCodeTypeConfirmOwnership with the given hash to process the link. If succeeded, call checkPhoneNumberCode to check entered by the user code, or resendPhoneNumberCode to resend it

func UnmarshalInternalLinkTypePhoneNumberConfirmation added in v0.5.0

func UnmarshalInternalLinkTypePhoneNumberConfirmation(data json.RawMessage) (*InternalLinkTypePhoneNumberConfirmation, error)

func (*InternalLinkTypePhoneNumberConfirmation) GetClass added in v0.5.0

func (*InternalLinkTypePhoneNumberConfirmation) GetType added in v0.5.0

func (*InternalLinkTypePhoneNumberConfirmation) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypePhoneNumberConfirmation) InternalLinkTypeType() string

func (*InternalLinkTypePhoneNumberConfirmation) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypePhoneNumberConfirmation) MarshalJSON() ([]byte, error)

type InternalLinkTypePremiumFeatures added in v0.7.0

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 v0.7.0

func UnmarshalInternalLinkTypePremiumFeatures(data json.RawMessage) (*InternalLinkTypePremiumFeatures, error)

func (*InternalLinkTypePremiumFeatures) GetClass added in v0.7.0

func (*InternalLinkTypePremiumFeatures) GetType added in v0.7.0

func (*InternalLinkTypePremiumFeatures) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypePremiumFeatures) InternalLinkTypeType() string

func (*InternalLinkTypePremiumFeatures) MarshalJSON added in v0.7.0

func (entity *InternalLinkTypePremiumFeatures) MarshalJSON() ([]byte, error)

type InternalLinkTypePremiumGift added in v0.7.2

type InternalLinkTypePremiumGift struct {

	// Referrer specified in the link
	Referrer string `json:"referrer"`
	// contains filtered or unexported fields
}

The link is a link to the screen for gifting Telegram Premium subscriptions to friends via inputInvoiceTelegram with telegramPaymentPurposePremiumGiftCodes payments or in-store purchases

func UnmarshalInternalLinkTypePremiumGift added in v0.7.2

func UnmarshalInternalLinkTypePremiumGift(data json.RawMessage) (*InternalLinkTypePremiumGift, error)

func (*InternalLinkTypePremiumGift) GetClass added in v0.7.2

func (*InternalLinkTypePremiumGift) GetClass() string

func (*InternalLinkTypePremiumGift) GetType added in v0.7.2

func (*InternalLinkTypePremiumGift) InternalLinkTypeType added in v0.7.2

func (*InternalLinkTypePremiumGift) InternalLinkTypeType() string

func (*InternalLinkTypePremiumGift) MarshalJSON added in v0.7.2

func (entity *InternalLinkTypePremiumGift) MarshalJSON() ([]byte, error)

type InternalLinkTypePremiumGiftCode added in v0.7.1

type InternalLinkTypePremiumGiftCode struct {

	// The Telegram Premium gift code
	Code string `json:"code"`
	// contains filtered or unexported fields
}

The link is a link with a Telegram Premium gift code. Call checkPremiumGiftCode with the given code to process the link. If the code is valid and the user wants to apply it, then call applyPremiumGiftCode

func UnmarshalInternalLinkTypePremiumGiftCode added in v0.7.1

func UnmarshalInternalLinkTypePremiumGiftCode(data json.RawMessage) (*InternalLinkTypePremiumGiftCode, error)

func (*InternalLinkTypePremiumGiftCode) GetClass added in v0.7.1

func (*InternalLinkTypePremiumGiftCode) GetType added in v0.7.1

func (*InternalLinkTypePremiumGiftCode) InternalLinkTypeType added in v0.7.1

func (*InternalLinkTypePremiumGiftCode) InternalLinkTypeType() string

func (*InternalLinkTypePremiumGiftCode) MarshalJSON added in v0.7.1

func (entity *InternalLinkTypePremiumGiftCode) MarshalJSON() ([]byte, error)

type InternalLinkTypePrivacyAndSecuritySettings added in v0.7.0

type InternalLinkTypePrivacyAndSecuritySettings struct {
	// contains filtered or unexported fields
}

The link is a link to the privacy and security section of the application settings

func UnmarshalInternalLinkTypePrivacyAndSecuritySettings added in v0.7.0

func UnmarshalInternalLinkTypePrivacyAndSecuritySettings(data json.RawMessage) (*InternalLinkTypePrivacyAndSecuritySettings, error)

func (*InternalLinkTypePrivacyAndSecuritySettings) GetClass added in v0.7.0

func (*InternalLinkTypePrivacyAndSecuritySettings) GetType added in v0.7.0

func (*InternalLinkTypePrivacyAndSecuritySettings) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypePrivacyAndSecuritySettings) InternalLinkTypeType() string

func (*InternalLinkTypePrivacyAndSecuritySettings) MarshalJSON added in v0.7.0

func (entity *InternalLinkTypePrivacyAndSecuritySettings) MarshalJSON() ([]byte, error)

type InternalLinkTypeProxy added in v0.5.0

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 added in v0.5.0

func UnmarshalInternalLinkTypeProxy(data json.RawMessage) (*InternalLinkTypeProxy, error)

func (*InternalLinkTypeProxy) GetClass added in v0.5.0

func (*InternalLinkTypeProxy) GetClass() string

func (*InternalLinkTypeProxy) GetType added in v0.5.0

func (*InternalLinkTypeProxy) GetType() string

func (*InternalLinkTypeProxy) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeProxy) InternalLinkTypeType() string

func (*InternalLinkTypeProxy) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeProxy) MarshalJSON() ([]byte, error)

func (*InternalLinkTypeProxy) UnmarshalJSON added in v0.5.0

func (internalLinkTypeProxy *InternalLinkTypeProxy) UnmarshalJSON(data []byte) error

type InternalLinkTypePublicChat added in v0.5.0

type InternalLinkTypePublicChat struct {

	// Username of the chat
	ChatUsername string `json:"chat_username"`
	// Draft text for message to send in the chat
	DraftText string `json:"draft_text"`
	// True, if chat profile information screen must be opened; otherwise, the chat itself must be opened
	OpenProfile bool `json:"open_profile"`
	// 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. If the chat is found, open its profile information screen or the chat itself. If draft text isn't empty and the chat is a private chat with a regular user, then put the draft text in the input field

func UnmarshalInternalLinkTypePublicChat added in v0.5.0

func UnmarshalInternalLinkTypePublicChat(data json.RawMessage) (*InternalLinkTypePublicChat, error)

func (*InternalLinkTypePublicChat) GetClass added in v0.5.0

func (*InternalLinkTypePublicChat) GetClass() string

func (*InternalLinkTypePublicChat) GetType added in v0.5.0

func (*InternalLinkTypePublicChat) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypePublicChat) InternalLinkTypeType() string

func (*InternalLinkTypePublicChat) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypePublicChat) MarshalJSON() ([]byte, error)

type InternalLinkTypeQrCodeAuthentication added in v0.5.0

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 added in v0.5.0

func UnmarshalInternalLinkTypeQrCodeAuthentication(data json.RawMessage) (*InternalLinkTypeQrCodeAuthentication, error)

func (*InternalLinkTypeQrCodeAuthentication) GetClass added in v0.5.0

func (*InternalLinkTypeQrCodeAuthentication) GetType added in v0.5.0

func (*InternalLinkTypeQrCodeAuthentication) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeQrCodeAuthentication) InternalLinkTypeType() string

func (*InternalLinkTypeQrCodeAuthentication) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeQrCodeAuthentication) MarshalJSON() ([]byte, error)

type InternalLinkTypeRestorePurchases added in v0.7.0

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 v0.7.0

func UnmarshalInternalLinkTypeRestorePurchases(data json.RawMessage) (*InternalLinkTypeRestorePurchases, error)

func (*InternalLinkTypeRestorePurchases) GetClass added in v0.7.0

func (*InternalLinkTypeRestorePurchases) GetType added in v0.7.0

func (*InternalLinkTypeRestorePurchases) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypeRestorePurchases) InternalLinkTypeType() string

func (*InternalLinkTypeRestorePurchases) MarshalJSON added in v0.7.0

func (entity *InternalLinkTypeRestorePurchases) MarshalJSON() ([]byte, error)

type InternalLinkTypeSettings added in v0.5.0

type InternalLinkTypeSettings struct {
	// contains filtered or unexported fields
}

The link is a link to application settings

func UnmarshalInternalLinkTypeSettings added in v0.5.0

func UnmarshalInternalLinkTypeSettings(data json.RawMessage) (*InternalLinkTypeSettings, error)

func (*InternalLinkTypeSettings) GetClass added in v0.5.0

func (*InternalLinkTypeSettings) GetClass() string

func (*InternalLinkTypeSettings) GetType added in v0.5.0

func (*InternalLinkTypeSettings) GetType() string

func (*InternalLinkTypeSettings) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeSettings) InternalLinkTypeType() string

func (*InternalLinkTypeSettings) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeSettings) MarshalJSON() ([]byte, error)

type InternalLinkTypeStickerSet added in v0.5.0

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. If the sticker set is found and the user wants to add it, then call changeStickerSet

func UnmarshalInternalLinkTypeStickerSet added in v0.5.0

func UnmarshalInternalLinkTypeStickerSet(data json.RawMessage) (*InternalLinkTypeStickerSet, error)

func (*InternalLinkTypeStickerSet) GetClass added in v0.5.0

func (*InternalLinkTypeStickerSet) GetClass() string

func (*InternalLinkTypeStickerSet) GetType added in v0.5.0

func (*InternalLinkTypeStickerSet) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeStickerSet) InternalLinkTypeType() string

func (*InternalLinkTypeStickerSet) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeStickerSet) MarshalJSON() ([]byte, error)

type InternalLinkTypeStory added in v0.7.0

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, then show the story if received

func UnmarshalInternalLinkTypeStory added in v0.7.0

func UnmarshalInternalLinkTypeStory(data json.RawMessage) (*InternalLinkTypeStory, error)

func (*InternalLinkTypeStory) GetClass added in v0.7.0

func (*InternalLinkTypeStory) GetClass() string

func (*InternalLinkTypeStory) GetType added in v0.7.0

func (*InternalLinkTypeStory) GetType() string

func (*InternalLinkTypeStory) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypeStory) InternalLinkTypeType() string

func (*InternalLinkTypeStory) MarshalJSON added in v0.7.0

func (entity *InternalLinkTypeStory) MarshalJSON() ([]byte, error)

type InternalLinkTypeTheme added in v0.5.0

type InternalLinkTypeTheme struct {

	// Name of the theme
	ThemeName string `json:"theme_name"`
	// contains filtered or unexported fields
}

The link is a link to a cloud theme. TDLib has no theme support yet

func UnmarshalInternalLinkTypeTheme added in v0.5.0

func UnmarshalInternalLinkTypeTheme(data json.RawMessage) (*InternalLinkTypeTheme, error)

func (*InternalLinkTypeTheme) GetClass added in v0.5.0

func (*InternalLinkTypeTheme) GetClass() string

func (*InternalLinkTypeTheme) GetType added in v0.5.0

func (*InternalLinkTypeTheme) GetType() string

func (*InternalLinkTypeTheme) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeTheme) InternalLinkTypeType() string

func (*InternalLinkTypeTheme) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeTheme) MarshalJSON() ([]byte, error)

type InternalLinkTypeThemeSettings added in v0.5.0

type InternalLinkTypeThemeSettings struct {
	// contains filtered or unexported fields
}

The link is a link to the theme section of the application settings

func UnmarshalInternalLinkTypeThemeSettings added in v0.5.0

func UnmarshalInternalLinkTypeThemeSettings(data json.RawMessage) (*InternalLinkTypeThemeSettings, error)

func (*InternalLinkTypeThemeSettings) GetClass added in v0.5.0

func (*InternalLinkTypeThemeSettings) GetType added in v0.5.0

func (*InternalLinkTypeThemeSettings) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeThemeSettings) InternalLinkTypeType() string

func (*InternalLinkTypeThemeSettings) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeThemeSettings) MarshalJSON() ([]byte, error)
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(data json.RawMessage) (*InternalLinkTypeUnknownDeepLink, error)

func (*InternalLinkTypeUnknownDeepLink) GetClass added in v0.5.0

func (*InternalLinkTypeUnknownDeepLink) GetType added in v0.5.0

func (*InternalLinkTypeUnknownDeepLink) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeUnknownDeepLink) InternalLinkTypeType() string

func (*InternalLinkTypeUnknownDeepLink) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeUnknownDeepLink) MarshalJSON() ([]byte, error)

type InternalLinkTypeUnsupportedProxy added in v0.5.0

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 added in v0.5.0

func UnmarshalInternalLinkTypeUnsupportedProxy(data json.RawMessage) (*InternalLinkTypeUnsupportedProxy, error)

func (*InternalLinkTypeUnsupportedProxy) GetClass added in v0.5.0

func (*InternalLinkTypeUnsupportedProxy) GetType added in v0.5.0

func (*InternalLinkTypeUnsupportedProxy) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeUnsupportedProxy) InternalLinkTypeType() string

func (*InternalLinkTypeUnsupportedProxy) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeUnsupportedProxy) MarshalJSON() ([]byte, error)

type InternalLinkTypeUserPhoneNumber added in v0.7.0

type InternalLinkTypeUserPhoneNumber struct {

	// Phone number of the user
	PhoneNumber string `json:"phone_number"`
	// Draft text for message to send in the chat
	DraftText string `json:"draft_text"`
	// True, if user's profile information screen must be opened; otherwise, the chat itself must be opened
	OpenProfile bool `json:"open_profile"`
	// 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. If the user is found, then call createPrivateChat and open user's profile information screen or the chat itself. If draft text isn't empty, then put the draft text in the input field

func UnmarshalInternalLinkTypeUserPhoneNumber added in v0.7.0

func UnmarshalInternalLinkTypeUserPhoneNumber(data json.RawMessage) (*InternalLinkTypeUserPhoneNumber, error)

func (*InternalLinkTypeUserPhoneNumber) GetClass added in v0.7.0

func (*InternalLinkTypeUserPhoneNumber) GetType added in v0.7.0

func (*InternalLinkTypeUserPhoneNumber) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypeUserPhoneNumber) InternalLinkTypeType() string

func (*InternalLinkTypeUserPhoneNumber) MarshalJSON added in v0.7.0

func (entity *InternalLinkTypeUserPhoneNumber) MarshalJSON() ([]byte, error)

type InternalLinkTypeUserToken added in v0.7.0

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. If the user is found, then call createPrivateChat and open the chat

func UnmarshalInternalLinkTypeUserToken added in v0.7.0

func UnmarshalInternalLinkTypeUserToken(data json.RawMessage) (*InternalLinkTypeUserToken, error)

func (*InternalLinkTypeUserToken) GetClass added in v0.7.0

func (*InternalLinkTypeUserToken) GetClass() string

func (*InternalLinkTypeUserToken) GetType added in v0.7.0

func (*InternalLinkTypeUserToken) GetType() string

func (*InternalLinkTypeUserToken) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypeUserToken) InternalLinkTypeType() string

func (*InternalLinkTypeUserToken) MarshalJSON added in v0.7.0

func (entity *InternalLinkTypeUserToken) MarshalJSON() ([]byte, error)

type InternalLinkTypeVideoChat added in v0.5.0

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 added in v0.5.0

func UnmarshalInternalLinkTypeVideoChat(data json.RawMessage) (*InternalLinkTypeVideoChat, error)

func (*InternalLinkTypeVideoChat) GetClass added in v0.5.0

func (*InternalLinkTypeVideoChat) GetClass() string

func (*InternalLinkTypeVideoChat) GetType added in v0.5.0

func (*InternalLinkTypeVideoChat) GetType() string

func (*InternalLinkTypeVideoChat) InternalLinkTypeType added in v0.5.0

func (*InternalLinkTypeVideoChat) InternalLinkTypeType() string

func (*InternalLinkTypeVideoChat) MarshalJSON added in v0.5.0

func (entity *InternalLinkTypeVideoChat) MarshalJSON() ([]byte, error)

type InternalLinkTypeWebApp added in v0.7.0

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"`
	// The mode in which the Web App must be opened
	Mode WebAppOpenMode `json:"mode"`
	// 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 third-party applications 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 v0.7.0

func UnmarshalInternalLinkTypeWebApp(data json.RawMessage) (*InternalLinkTypeWebApp, error)

func (*InternalLinkTypeWebApp) GetClass added in v0.7.0

func (*InternalLinkTypeWebApp) GetClass() string

func (*InternalLinkTypeWebApp) GetType added in v0.7.0

func (*InternalLinkTypeWebApp) GetType() string

func (*InternalLinkTypeWebApp) InternalLinkTypeType added in v0.7.0

func (*InternalLinkTypeWebApp) InternalLinkTypeType() string

func (*InternalLinkTypeWebApp) MarshalJSON added in v0.7.0

func (entity *InternalLinkTypeWebApp) MarshalJSON() ([]byte, error)

func (*InternalLinkTypeWebApp) UnmarshalJSON added in v0.7.4

func (internalLinkTypeWebApp *InternalLinkTypeWebApp) UnmarshalJSON(data []byte) error

type InviteGroupCallParticipantsRequest added in v0.5.0

type InviteGroupCallParticipantsRequest struct {
	// Group call identifier
	GroupCallId int32 `json:"group_call_id"`
	// User identifiers. At most 10 users can be invited simultaneously
	UserIds []int64 `json:"user_ids"`
}

type InviteLinkChatType added in v0.7.0

type InviteLinkChatType interface {
	InviteLinkChatTypeType() string
}

Describes the type of chat to which points an invite link

func UnmarshalInviteLinkChatType added in v0.7.0

func UnmarshalInviteLinkChatType(data json.RawMessage) (InviteLinkChatType, error)

func UnmarshalListOfInviteLinkChatType added in v0.7.0

func UnmarshalListOfInviteLinkChatType(dataList []json.RawMessage) ([]InviteLinkChatType, error)

type InviteLinkChatTypeBasicGroup added in v0.7.0

type InviteLinkChatTypeBasicGroup struct {
	// contains filtered or unexported fields
}

The link is an invite link for a basic group

func UnmarshalInviteLinkChatTypeBasicGroup added in v0.7.0

func UnmarshalInviteLinkChatTypeBasicGroup(data json.RawMessage) (*InviteLinkChatTypeBasicGroup, error)

func (*InviteLinkChatTypeBasicGroup) GetClass added in v0.7.0

func (*InviteLinkChatTypeBasicGroup) GetType added in v0.7.0

func (*InviteLinkChatTypeBasicGroup) InviteLinkChatTypeType added in v0.7.0

func (*InviteLinkChatTypeBasicGroup) InviteLinkChatTypeType() string

func (*InviteLinkChatTypeBasicGroup) MarshalJSON added in v0.7.0

func (entity *InviteLinkChatTypeBasicGroup) MarshalJSON() ([]byte, error)

type InviteLinkChatTypeChannel added in v0.7.0

type InviteLinkChatTypeChannel struct {
	// contains filtered or unexported fields
}

The link is an invite link for a channel

func UnmarshalInviteLinkChatTypeChannel added in v0.7.0

func UnmarshalInviteLinkChatTypeChannel(data json.RawMessage) (*InviteLinkChatTypeChannel, error)

func (*InviteLinkChatTypeChannel) GetClass added in v0.7.0

func (*InviteLinkChatTypeChannel) GetClass() string

func (*InviteLinkChatTypeChannel) GetType added in v0.7.0

func (*InviteLinkChatTypeChannel) GetType() string

func (*InviteLinkChatTypeChannel) InviteLinkChatTypeType added in v0.7.0

func (*InviteLinkChatTypeChannel) InviteLinkChatTypeType() string

func (*InviteLinkChatTypeChannel) MarshalJSON added in v0.7.0

func (entity *InviteLinkChatTypeChannel) MarshalJSON() ([]byte, error)

type InviteLinkChatTypeSupergroup added in v0.7.0

type InviteLinkChatTypeSupergroup struct {
	// contains filtered or unexported fields
}

The link is an invite link for a supergroup

func UnmarshalInviteLinkChatTypeSupergroup added in v0.7.0

func UnmarshalInviteLinkChatTypeSupergroup(data json.RawMessage) (*InviteLinkChatTypeSupergroup, error)

func (*InviteLinkChatTypeSupergroup) GetClass added in v0.7.0

func (*InviteLinkChatTypeSupergroup) GetType added in v0.7.0

func (*InviteLinkChatTypeSupergroup) InviteLinkChatTypeType added in v0.7.0

func (*InviteLinkChatTypeSupergroup) InviteLinkChatTypeType() string

func (*InviteLinkChatTypeSupergroup) MarshalJSON added in v0.7.0

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 number of seconds between consecutive Telegram Star debiting for subscription invoices; 0 if the invoice doesn't create subscription
	SubscriptionPeriod int32 `json:"subscription_period"`
	// 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"`
	// An HTTP URL with terms of service for non-recurring payments. If non-empty, then the user must accept the terms of service before allowed to pay
	TermsOfServiceUrl string `json:"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) GetClass

func (*Invoice) GetClass() string

func (*Invoice) GetType

func (*Invoice) GetType() string

func (*Invoice) MarshalJSON

func (entity *Invoice) MarshalJSON() ([]byte, error)

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 added in v0.5.0

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

func (jsonInt64 JsonInt64) MarshalJSON() ([]byte, error)

MarshalJSON marshals to json

func (*JsonInt64) UnmarshalJSON

func (jsonInt64 *JsonInt64) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals from json

type JsonObjectMember added in v0.0.13

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 added in v0.0.13

func UnmarshalJsonObjectMember(data json.RawMessage) (*JsonObjectMember, error)

func (*JsonObjectMember) GetClass added in v0.0.13

func (*JsonObjectMember) GetClass() string

func (*JsonObjectMember) GetType added in v0.0.13

func (*JsonObjectMember) GetType() string

func (*JsonObjectMember) MarshalJSON added in v0.0.13

func (entity *JsonObjectMember) MarshalJSON() ([]byte, error)

func (*JsonObjectMember) UnmarshalJSON added in v0.0.13

func (jsonObjectMember *JsonObjectMember) UnmarshalJSON(data []byte) error

type JsonValue added in v0.0.13

type JsonValue interface {
	JsonValueType() string
}

Represents a JSON value

func GetJsonValue added in v0.6.0

func GetJsonValue(req *GetJsonValueRequest) (JsonValue, error)

Converts a JSON-serialized string to corresponding JsonValue object. Can be called synchronously

func UnmarshalJsonValue added in v0.0.13

func UnmarshalJsonValue(data json.RawMessage) (JsonValue, error)

func UnmarshalListOfJsonValue added in v0.3.2

func UnmarshalListOfJsonValue(dataList []json.RawMessage) ([]JsonValue, error)

type JsonValueArray added in v0.0.13

type JsonValueArray struct {

	// The list of array elements
	Values []JsonValue `json:"values"`
	// contains filtered or unexported fields
}

Represents a JSON array

func UnmarshalJsonValueArray added in v0.0.13

func UnmarshalJsonValueArray(data json.RawMessage) (*JsonValueArray, error)

func (*JsonValueArray) GetClass added in v0.0.13

func (*JsonValueArray) GetClass() string

func (*JsonValueArray) GetType added in v0.0.13

func (*JsonValueArray) GetType() string

func (*JsonValueArray) JsonValueType added in v0.0.13

func (*JsonValueArray) JsonValueType() string

func (*JsonValueArray) MarshalJSON added in v0.0.13

func (entity *JsonValueArray) MarshalJSON() ([]byte, error)

func (*JsonValueArray) UnmarshalJSON added in v0.3.2

func (jsonValueArray *JsonValueArray) UnmarshalJSON(data []byte) error

type JsonValueBoolean added in v0.0.13

type JsonValueBoolean struct {

	// The value
	Value bool `json:"value"`
	// contains filtered or unexported fields
}

Represents a boolean JSON value

func UnmarshalJsonValueBoolean added in v0.0.13

func UnmarshalJsonValueBoolean(data json.RawMessage) (*JsonValueBoolean, error)

func (*JsonValueBoolean) GetClass added in v0.0.13

func (*JsonValueBoolean) GetClass() string

func (*JsonValueBoolean) GetType added in v0.0.13

func (*JsonValueBoolean) GetType() string

func (*JsonValueBoolean) JsonValueType added in v0.0.13

func (*JsonValueBoolean) JsonValueType() string

func (*JsonValueBoolean) MarshalJSON added in v0.0.13

func (entity *JsonValueBoolean) MarshalJSON() ([]byte, error)

type JsonValueNull added in v0.0.13

type JsonValueNull struct {
	// contains filtered or unexported fields
}

Represents a null JSON value

func UnmarshalJsonValueNull added in v0.0.13

func UnmarshalJsonValueNull(data json.RawMessage) (*JsonValueNull, error)

func (*JsonValueNull) GetClass added in v0.0.13

func (*JsonValueNull) GetClass() string

func (*JsonValueNull) GetType added in v0.0.13

func (*JsonValueNull) GetType() string

func (*JsonValueNull) JsonValueType added in v0.0.13

func (*JsonValueNull) JsonValueType() string

func (*JsonValueNull) MarshalJSON added in v0.0.13

func (entity *JsonValueNull) MarshalJSON() ([]byte, error)

type JsonValueNumber added in v0.0.13

type JsonValueNumber struct {

	// The value
	Value float64 `json:"value"`
	// contains filtered or unexported fields
}

Represents a numeric JSON value

func UnmarshalJsonValueNumber added in v0.0.13

func UnmarshalJsonValueNumber(data json.RawMessage) (*JsonValueNumber, error)

func (*JsonValueNumber) GetClass added in v0.0.13

func (*JsonValueNumber) GetClass() string

func (*JsonValueNumber) GetType added in v0.0.13

func (*JsonValueNumber) GetType() string

func (*JsonValueNumber) JsonValueType added in v0.0.13

func (*JsonValueNumber) JsonValueType() string

func (*JsonValueNumber) MarshalJSON added in v0.0.13

func (entity *JsonValueNumber) MarshalJSON() ([]byte, error)

type JsonValueObject added in v0.0.13

type JsonValueObject struct {

	// The list of object members
	Members []*JsonObjectMember `json:"members"`
	// contains filtered or unexported fields
}

Represents a JSON object

func UnmarshalJsonValueObject added in v0.0.13

func UnmarshalJsonValueObject(data json.RawMessage) (*JsonValueObject, error)

func (*JsonValueObject) GetClass added in v0.0.13

func (*JsonValueObject) GetClass() string

func (*JsonValueObject) GetType added in v0.0.13

func (*JsonValueObject) GetType() string

func (*JsonValueObject) JsonValueType added in v0.0.13

func (*JsonValueObject) JsonValueType() string

func (*JsonValueObject) MarshalJSON added in v0.0.13

func (entity *JsonValueObject) MarshalJSON() ([]byte, error)

type JsonValueString added in v0.0.13

type JsonValueString struct {

	// The value
	Value string `json:"value"`
	// contains filtered or unexported fields
}

Represents a string JSON value

func UnmarshalJsonValueString added in v0.0.13

func UnmarshalJsonValueString(data json.RawMessage) (*JsonValueString, error)

func (*JsonValueString) GetClass added in v0.0.13

func (*JsonValueString) GetClass() string

func (*JsonValueString) GetType added in v0.0.13

func (*JsonValueString) GetType() string

func (*JsonValueString) JsonValueType added in v0.0.13

func (*JsonValueString) JsonValueType() string

func (*JsonValueString) MarshalJSON added in v0.0.13

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 added in v0.3.2

func UnmarshalListOfKeyboardButtonType(dataList []json.RawMessage) ([]KeyboardButtonType, error)

type KeyboardButtonTypeRequestChat added in v0.7.0

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"`
	// Pass true to request title of the chat; bots only
	RequestTitle bool `json:"request_title"`
	// Pass true to request username of the chat; bots only
	RequestUsername bool `json:"request_username"`
	// Pass true to request photo of the chat; bots only
	RequestPhoto bool `json:"request_photo"`
	// 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 v0.7.0

func UnmarshalKeyboardButtonTypeRequestChat(data json.RawMessage) (*KeyboardButtonTypeRequestChat, error)

func (*KeyboardButtonTypeRequestChat) GetClass added in v0.7.0

func (*KeyboardButtonTypeRequestChat) GetType added in v0.7.0

func (*KeyboardButtonTypeRequestChat) KeyboardButtonTypeType added in v0.7.0

func (*KeyboardButtonTypeRequestChat) KeyboardButtonTypeType() string

func (*KeyboardButtonTypeRequestChat) MarshalJSON added in v0.7.0

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) GetType

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) GetType

func (*KeyboardButtonTypeRequestPhoneNumber) KeyboardButtonTypeType

func (*KeyboardButtonTypeRequestPhoneNumber) KeyboardButtonTypeType() string

func (*KeyboardButtonTypeRequestPhoneNumber) MarshalJSON

func (entity *KeyboardButtonTypeRequestPhoneNumber) MarshalJSON() ([]byte, error)

type KeyboardButtonTypeRequestPoll added in v0.2.0

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 added in v0.2.0

func UnmarshalKeyboardButtonTypeRequestPoll(data json.RawMessage) (*KeyboardButtonTypeRequestPoll, error)

func (*KeyboardButtonTypeRequestPoll) GetClass added in v0.2.0

func (*KeyboardButtonTypeRequestPoll) GetType added in v0.2.0

func (*KeyboardButtonTypeRequestPoll) KeyboardButtonTypeType added in v0.2.0

func (*KeyboardButtonTypeRequestPoll) KeyboardButtonTypeType() string

func (*KeyboardButtonTypeRequestPoll) MarshalJSON added in v0.2.0

func (entity *KeyboardButtonTypeRequestPoll) MarshalJSON() ([]byte, error)

type KeyboardButtonTypeRequestUsers added in v0.7.2

type KeyboardButtonTypeRequestUsers struct {

	// Unique button identifier
	Id int32 `json:"id"`
	// True, if the shared users must or must not be bots
	RestrictUserIsBot bool `json:"restrict_user_is_bot"`
	// True, if the shared users must be bots; otherwise, the shared users must not be bots. Ignored if restrict_user_is_bot is false
	UserIsBot bool `json:"user_is_bot"`
	// True, if the shared users must or must not be Telegram Premium users
	RestrictUserIsPremium bool `json:"restrict_user_is_premium"`
	// True, if the shared users must be Telegram Premium users; otherwise, the shared users must not be Telegram Premium users. Ignored if restrict_user_is_premium is false
	UserIsPremium bool `json:"user_is_premium"`
	// The maximum number of users to share
	MaxQuantity int32 `json:"max_quantity"`
	// Pass true to request name of the users; bots only
	RequestName bool `json:"request_name"`
	// Pass true to request username of the users; bots only
	RequestUsername bool `json:"request_username"`
	// Pass true to request photo of the users; bots only
	RequestPhoto bool `json:"request_photo"`
	// contains filtered or unexported fields
}

A button that requests users to be shared by the current user; available only in private chats. Use the method shareUsersWithBot to complete the request

func UnmarshalKeyboardButtonTypeRequestUsers added in v0.7.2

func UnmarshalKeyboardButtonTypeRequestUsers(data json.RawMessage) (*KeyboardButtonTypeRequestUsers, error)

func (*KeyboardButtonTypeRequestUsers) GetClass added in v0.7.2

func (*KeyboardButtonTypeRequestUsers) GetType added in v0.7.2

func (*KeyboardButtonTypeRequestUsers) KeyboardButtonTypeType added in v0.7.2

func (*KeyboardButtonTypeRequestUsers) KeyboardButtonTypeType() string

func (*KeyboardButtonTypeRequestUsers) MarshalJSON added in v0.7.2

func (entity *KeyboardButtonTypeRequestUsers) 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 v0.7.0

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 v0.7.0

func UnmarshalKeyboardButtonTypeWebApp(data json.RawMessage) (*KeyboardButtonTypeWebApp, error)

func (*KeyboardButtonTypeWebApp) GetClass added in v0.7.0

func (*KeyboardButtonTypeWebApp) GetClass() string

func (*KeyboardButtonTypeWebApp) GetType added in v0.7.0

func (*KeyboardButtonTypeWebApp) GetType() string

func (*KeyboardButtonTypeWebApp) KeyboardButtonTypeType added in v0.7.0

func (*KeyboardButtonTypeWebApp) KeyboardButtonTypeType() string

func (*KeyboardButtonTypeWebApp) MarshalJSON added in v0.7.0

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 added in v0.6.0

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 added in v0.3.2

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) GetType

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) GetType

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) GetType

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 LaunchPrepaidGiveawayRequest added in v0.7.3

type LaunchPrepaidGiveawayRequest struct {
	// Unique identifier of the prepaid giveaway
	GiveawayId JsonInt64 `json:"giveaway_id"`
	// Giveaway parameters
	Parameters *GiveawayParameters `json:"parameters"`
	// The number of users to receive giveaway prize
	WinnerCount int32 `json:"winner_count"`
	// The number of Telegram Stars to be distributed through the giveaway; pass 0 for Telegram Premium giveaways
	StarCount int64 `json:"star_count"`
}

type LeaveChatRequest

type LeaveChatRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
}

type LeaveGroupCallRequest added in v0.5.0

type LeaveGroupCallRequest struct {
	// Group call identifier
	GroupCallId int32 `json:"group_call_id"`
}

type LinkPreview added in v0.7.3

type LinkPreview struct {

	// Original URL of the link
	Url string `json:"url"`
	// URL to display
	DisplayUrl string `json:"display_url"`
	// 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"`
	// Author of the content
	Author string `json:"author"`
	// Type of the link preview
	Type LinkPreviewType `json:"type"`
	// True, if size of media in the preview can be changed
	HasLargeMedia bool `json:"has_large_media"`
	// True, if large media preview must be shown; otherwise, the media preview must be shown small and only the first frame must be shown for videos
	ShowLargeMedia bool `json:"show_large_media"`
	// True, if media must be shown above link preview description; otherwise, the media must be shown below the description
	ShowMediaAboveDescription bool `json:"show_media_above_description"`
	// True, if there is no need to show an ordinary open URL confirmation, when opening the URL from the preview, because the URL is shown in the message text in clear
	SkipConfirmation bool `json:"skip_confirmation"`
	// True, if the link preview must be shown above message text; otherwise, the link preview must be shown below the message text
	ShowAboveText bool `json:"show_above_text"`
	// Version of instant view (currently, can be 1 or 2) for the web page; 0 if none
	InstantViewVersion int32 `json:"instant_view_version"`
	// contains filtered or unexported fields
}

Describes a link preview

func UnmarshalLinkPreview added in v0.7.3

func UnmarshalLinkPreview(data json.RawMessage) (*LinkPreview, error)

func (*LinkPreview) GetClass added in v0.7.3

func (*LinkPreview) GetClass() string

func (*LinkPreview) GetType added in v0.7.3

func (*LinkPreview) GetType() string

func (*LinkPreview) MarshalJSON added in v0.7.3

func (entity *LinkPreview) MarshalJSON() ([]byte, error)

func (*LinkPreview) UnmarshalJSON added in v0.7.3

func (linkPreview *LinkPreview) UnmarshalJSON(data []byte) error

type LinkPreviewAlbumMedia added in v0.7.3

type LinkPreviewAlbumMedia interface {
	LinkPreviewAlbumMediaType() string
}

Describes a media from a link preview album

func UnmarshalLinkPreviewAlbumMedia added in v0.7.3

func UnmarshalLinkPreviewAlbumMedia(data json.RawMessage) (LinkPreviewAlbumMedia, error)

func UnmarshalListOfLinkPreviewAlbumMedia added in v0.7.3

func UnmarshalListOfLinkPreviewAlbumMedia(dataList []json.RawMessage) ([]LinkPreviewAlbumMedia, error)

type LinkPreviewAlbumMediaPhoto added in v0.7.3

type LinkPreviewAlbumMediaPhoto struct {

	// Photo description
	Photo *Photo `json:"photo"`
	// contains filtered or unexported fields
}

The media is a photo

func UnmarshalLinkPreviewAlbumMediaPhoto added in v0.7.3

func UnmarshalLinkPreviewAlbumMediaPhoto(data json.RawMessage) (*LinkPreviewAlbumMediaPhoto, error)

func (*LinkPreviewAlbumMediaPhoto) GetClass added in v0.7.3

func (*LinkPreviewAlbumMediaPhoto) GetClass() string

func (*LinkPreviewAlbumMediaPhoto) GetType added in v0.7.3

func (*LinkPreviewAlbumMediaPhoto) LinkPreviewAlbumMediaType added in v0.7.3

func (*LinkPreviewAlbumMediaPhoto) LinkPreviewAlbumMediaType() string

func (*LinkPreviewAlbumMediaPhoto) MarshalJSON added in v0.7.3

func (entity *LinkPreviewAlbumMediaPhoto) MarshalJSON() ([]byte, error)

type LinkPreviewAlbumMediaVideo added in v0.7.3

type LinkPreviewAlbumMediaVideo struct {

	// Video description
	Video *Video `json:"video"`
	// contains filtered or unexported fields
}

The media is a video

func UnmarshalLinkPreviewAlbumMediaVideo added in v0.7.3

func UnmarshalLinkPreviewAlbumMediaVideo(data json.RawMessage) (*LinkPreviewAlbumMediaVideo, error)

func (*LinkPreviewAlbumMediaVideo) GetClass added in v0.7.3

func (*LinkPreviewAlbumMediaVideo) GetClass() string

func (*LinkPreviewAlbumMediaVideo) GetType added in v0.7.3

func (*LinkPreviewAlbumMediaVideo) LinkPreviewAlbumMediaType added in v0.7.3

func (*LinkPreviewAlbumMediaVideo) LinkPreviewAlbumMediaType() string

func (*LinkPreviewAlbumMediaVideo) MarshalJSON added in v0.7.3

func (entity *LinkPreviewAlbumMediaVideo) MarshalJSON() ([]byte, error)

type LinkPreviewOptions added in v0.7.1

type LinkPreviewOptions struct {

	// True, if link preview must be disabled
	IsDisabled bool `json:"is_disabled"`
	// URL to use for link preview. If empty, then the first URL found in the message text will be used
	Url string `json:"url"`
	// True, if shown media preview must be small; ignored in secret chats or if the URL isn't explicitly specified
	ForceSmallMedia bool `json:"force_small_media"`
	// True, if shown media preview must be large; ignored in secret chats or if the URL isn't explicitly specified
	ForceLargeMedia bool `json:"force_large_media"`
	// True, if link preview must be shown above message text; otherwise, the link preview will be shown below the message text; ignored in secret chats
	ShowAboveText bool `json:"show_above_text"`
	// contains filtered or unexported fields
}

Options to be used for generation of a link preview

func UnmarshalLinkPreviewOptions added in v0.7.1

func UnmarshalLinkPreviewOptions(data json.RawMessage) (*LinkPreviewOptions, error)

func (*LinkPreviewOptions) GetClass added in v0.7.1

func (*LinkPreviewOptions) GetClass() string

func (*LinkPreviewOptions) GetType added in v0.7.1

func (*LinkPreviewOptions) GetType() string

func (*LinkPreviewOptions) MarshalJSON added in v0.7.1

func (entity *LinkPreviewOptions) MarshalJSON() ([]byte, error)

type LinkPreviewType added in v0.7.3

type LinkPreviewType interface {
	LinkPreviewTypeType() string
}

Describes type of link preview

func UnmarshalLinkPreviewType added in v0.7.3

func UnmarshalLinkPreviewType(data json.RawMessage) (LinkPreviewType, error)

func UnmarshalListOfLinkPreviewType added in v0.7.3

func UnmarshalListOfLinkPreviewType(dataList []json.RawMessage) ([]LinkPreviewType, error)

type LinkPreviewTypeAlbum added in v0.7.3

type LinkPreviewTypeAlbum struct {

	// The list of album media
	Media []LinkPreviewAlbumMedia `json:"media"`
	// Album caption
	Caption string `json:"caption"`
	// contains filtered or unexported fields
}

The link is a link to a media album consisting of photos and videos

func UnmarshalLinkPreviewTypeAlbum added in v0.7.3

func UnmarshalLinkPreviewTypeAlbum(data json.RawMessage) (*LinkPreviewTypeAlbum, error)

func (*LinkPreviewTypeAlbum) GetClass added in v0.7.3

func (*LinkPreviewTypeAlbum) GetClass() string

func (*LinkPreviewTypeAlbum) GetType added in v0.7.3

func (*LinkPreviewTypeAlbum) GetType() string

func (*LinkPreviewTypeAlbum) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeAlbum) LinkPreviewTypeType() string

func (*LinkPreviewTypeAlbum) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeAlbum) MarshalJSON() ([]byte, error)

func (*LinkPreviewTypeAlbum) UnmarshalJSON added in v0.7.3

func (linkPreviewTypeAlbum *LinkPreviewTypeAlbum) UnmarshalJSON(data []byte) error

type LinkPreviewTypeAnimation added in v0.7.3

type LinkPreviewTypeAnimation struct {

	// The animation
	Animation *Animation `json:"animation"`
	// contains filtered or unexported fields
}

The link is a link to an animation

func UnmarshalLinkPreviewTypeAnimation added in v0.7.3

func UnmarshalLinkPreviewTypeAnimation(data json.RawMessage) (*LinkPreviewTypeAnimation, error)

func (*LinkPreviewTypeAnimation) GetClass added in v0.7.3

func (*LinkPreviewTypeAnimation) GetClass() string

func (*LinkPreviewTypeAnimation) GetType added in v0.7.3

func (*LinkPreviewTypeAnimation) GetType() string

func (*LinkPreviewTypeAnimation) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeAnimation) LinkPreviewTypeType() string

func (*LinkPreviewTypeAnimation) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeAnimation) MarshalJSON() ([]byte, error)

type LinkPreviewTypeApp added in v0.7.3

type LinkPreviewTypeApp struct {

	// Photo for the app
	Photo *Photo `json:"photo"`
	// contains filtered or unexported fields
}

The link is a link to an app at App Store or Google Play

func UnmarshalLinkPreviewTypeApp added in v0.7.3

func UnmarshalLinkPreviewTypeApp(data json.RawMessage) (*LinkPreviewTypeApp, error)

func (*LinkPreviewTypeApp) GetClass added in v0.7.3

func (*LinkPreviewTypeApp) GetClass() string

func (*LinkPreviewTypeApp) GetType added in v0.7.3

func (*LinkPreviewTypeApp) GetType() string

func (*LinkPreviewTypeApp) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeApp) LinkPreviewTypeType() string

func (*LinkPreviewTypeApp) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeApp) MarshalJSON() ([]byte, error)

type LinkPreviewTypeArticle added in v0.7.3

type LinkPreviewTypeArticle struct {

	// Article's main photo; may be null
	Photo *Photo `json:"photo"`
	// contains filtered or unexported fields
}

The link is a link to a web site

func UnmarshalLinkPreviewTypeArticle added in v0.7.3

func UnmarshalLinkPreviewTypeArticle(data json.RawMessage) (*LinkPreviewTypeArticle, error)

func (*LinkPreviewTypeArticle) GetClass added in v0.7.3

func (*LinkPreviewTypeArticle) GetClass() string

func (*LinkPreviewTypeArticle) GetType added in v0.7.3

func (*LinkPreviewTypeArticle) GetType() string

func (*LinkPreviewTypeArticle) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeArticle) LinkPreviewTypeType() string

func (*LinkPreviewTypeArticle) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeArticle) MarshalJSON() ([]byte, error)

type LinkPreviewTypeAudio added in v0.7.3

type LinkPreviewTypeAudio struct {

	// The audio description
	Audio *Audio `json:"audio"`
	// contains filtered or unexported fields
}

The link is a link to an audio

func UnmarshalLinkPreviewTypeAudio added in v0.7.3

func UnmarshalLinkPreviewTypeAudio(data json.RawMessage) (*LinkPreviewTypeAudio, error)

func (*LinkPreviewTypeAudio) GetClass added in v0.7.3

func (*LinkPreviewTypeAudio) GetClass() string

func (*LinkPreviewTypeAudio) GetType added in v0.7.3

func (*LinkPreviewTypeAudio) GetType() string

func (*LinkPreviewTypeAudio) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeAudio) LinkPreviewTypeType() string

func (*LinkPreviewTypeAudio) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeAudio) MarshalJSON() ([]byte, error)

type LinkPreviewTypeBackground added in v0.7.3

type LinkPreviewTypeBackground struct {

	// Document with the background; may be null for filled backgrounds
	Document *Document `json:"document"`
	// Type of the background; may be null if unknown
	BackgroundType BackgroundType `json:"background_type"`
	// contains filtered or unexported fields
}

The link is a link to a background. Link preview title and description are available only for filled backgrounds

func UnmarshalLinkPreviewTypeBackground added in v0.7.3

func UnmarshalLinkPreviewTypeBackground(data json.RawMessage) (*LinkPreviewTypeBackground, error)

func (*LinkPreviewTypeBackground) GetClass added in v0.7.3

func (*LinkPreviewTypeBackground) GetClass() string

func (*LinkPreviewTypeBackground) GetType added in v0.7.3

func (*LinkPreviewTypeBackground) GetType() string

func (*LinkPreviewTypeBackground) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeBackground) LinkPreviewTypeType() string

func (*LinkPreviewTypeBackground) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeBackground) MarshalJSON() ([]byte, error)

func (*LinkPreviewTypeBackground) UnmarshalJSON added in v0.7.3

func (linkPreviewTypeBackground *LinkPreviewTypeBackground) UnmarshalJSON(data []byte) error

type LinkPreviewTypeChannelBoost added in v0.7.3

type LinkPreviewTypeChannelBoost struct {

	// Photo of the chat; may be null
	Photo *ChatPhoto `json:"photo"`
	// contains filtered or unexported fields
}

The link is a link to boost a channel chat

func UnmarshalLinkPreviewTypeChannelBoost added in v0.7.3

func UnmarshalLinkPreviewTypeChannelBoost(data json.RawMessage) (*LinkPreviewTypeChannelBoost, error)

func (*LinkPreviewTypeChannelBoost) GetClass added in v0.7.3

func (*LinkPreviewTypeChannelBoost) GetClass() string

func (*LinkPreviewTypeChannelBoost) GetType added in v0.7.3

func (*LinkPreviewTypeChannelBoost) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeChannelBoost) LinkPreviewTypeType() string

func (*LinkPreviewTypeChannelBoost) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeChannelBoost) MarshalJSON() ([]byte, error)

type LinkPreviewTypeChat added in v0.7.3

type LinkPreviewTypeChat struct {

	// Type of the chat
	Type InviteLinkChatType `json:"type"`
	// Photo of the chat; may be null
	Photo *ChatPhoto `json:"photo"`
	// True, if the link only creates join request
	CreatesJoinRequest bool `json:"creates_join_request"`
	// contains filtered or unexported fields
}

The link is a link to a chat

func UnmarshalLinkPreviewTypeChat added in v0.7.3

func UnmarshalLinkPreviewTypeChat(data json.RawMessage) (*LinkPreviewTypeChat, error)

func (*LinkPreviewTypeChat) GetClass added in v0.7.3

func (*LinkPreviewTypeChat) GetClass() string

func (*LinkPreviewTypeChat) GetType added in v0.7.3

func (*LinkPreviewTypeChat) GetType() string

func (*LinkPreviewTypeChat) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeChat) LinkPreviewTypeType() string

func (*LinkPreviewTypeChat) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeChat) MarshalJSON() ([]byte, error)

func (*LinkPreviewTypeChat) UnmarshalJSON added in v0.7.3

func (linkPreviewTypeChat *LinkPreviewTypeChat) UnmarshalJSON(data []byte) error

type LinkPreviewTypeDocument added in v0.7.3

type LinkPreviewTypeDocument struct {

	// The document description
	Document *Document `json:"document"`
	// contains filtered or unexported fields
}

The link is a link to a general file

func UnmarshalLinkPreviewTypeDocument added in v0.7.3

func UnmarshalLinkPreviewTypeDocument(data json.RawMessage) (*LinkPreviewTypeDocument, error)

func (*LinkPreviewTypeDocument) GetClass added in v0.7.3

func (*LinkPreviewTypeDocument) GetClass() string

func (*LinkPreviewTypeDocument) GetType added in v0.7.3

func (*LinkPreviewTypeDocument) GetType() string

func (*LinkPreviewTypeDocument) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeDocument) LinkPreviewTypeType() string

func (*LinkPreviewTypeDocument) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeDocument) MarshalJSON() ([]byte, error)

type LinkPreviewTypeEmbeddedAnimationPlayer added in v0.7.3

type LinkPreviewTypeEmbeddedAnimationPlayer struct {

	// URL of the external animation player
	Url string `json:"url"`
	// Thumbnail of the animation; may be null if unknown
	Thumbnail *Photo `json:"thumbnail"`
	// Duration of the animation, in seconds
	Duration int32 `json:"duration"`
	// Expected width of the embedded player
	Width int32 `json:"width"`
	// Expected height of the embedded player
	Height int32 `json:"height"`
	// contains filtered or unexported fields
}

The link is a link to an animation player

func UnmarshalLinkPreviewTypeEmbeddedAnimationPlayer added in v0.7.3

func UnmarshalLinkPreviewTypeEmbeddedAnimationPlayer(data json.RawMessage) (*LinkPreviewTypeEmbeddedAnimationPlayer, error)

func (*LinkPreviewTypeEmbeddedAnimationPlayer) GetClass added in v0.7.3

func (*LinkPreviewTypeEmbeddedAnimationPlayer) GetType added in v0.7.3

func (*LinkPreviewTypeEmbeddedAnimationPlayer) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeEmbeddedAnimationPlayer) LinkPreviewTypeType() string

func (*LinkPreviewTypeEmbeddedAnimationPlayer) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeEmbeddedAnimationPlayer) MarshalJSON() ([]byte, error)

type LinkPreviewTypeEmbeddedAudioPlayer added in v0.7.3

type LinkPreviewTypeEmbeddedAudioPlayer struct {

	// URL of the external audio player
	Url string `json:"url"`
	// Thumbnail of the audio; may be null if unknown
	Thumbnail *Photo `json:"thumbnail"`
	// Duration of the audio, in seconds
	Duration int32 `json:"duration"`
	// Expected width of the embedded player
	Width int32 `json:"width"`
	// Expected height of the embedded player
	Height int32 `json:"height"`
	// contains filtered or unexported fields
}

The link is a link to an audio player

func UnmarshalLinkPreviewTypeEmbeddedAudioPlayer added in v0.7.3

func UnmarshalLinkPreviewTypeEmbeddedAudioPlayer(data json.RawMessage) (*LinkPreviewTypeEmbeddedAudioPlayer, error)

func (*LinkPreviewTypeEmbeddedAudioPlayer) GetClass added in v0.7.3

func (*LinkPreviewTypeEmbeddedAudioPlayer) GetType added in v0.7.3

func (*LinkPreviewTypeEmbeddedAudioPlayer) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeEmbeddedAudioPlayer) LinkPreviewTypeType() string

func (*LinkPreviewTypeEmbeddedAudioPlayer) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeEmbeddedAudioPlayer) MarshalJSON() ([]byte, error)

type LinkPreviewTypeEmbeddedVideoPlayer added in v0.7.3

type LinkPreviewTypeEmbeddedVideoPlayer struct {

	// URL of the external video player
	Url string `json:"url"`
	// Thumbnail of the video; may be null if unknown
	Thumbnail *Photo `json:"thumbnail"`
	// Duration of the video, in seconds
	Duration int32 `json:"duration"`
	// Expected width of the embedded player
	Width int32 `json:"width"`
	// Expected height of the embedded player
	Height int32 `json:"height"`
	// contains filtered or unexported fields
}

The link is a link to a video player

func UnmarshalLinkPreviewTypeEmbeddedVideoPlayer added in v0.7.3

func UnmarshalLinkPreviewTypeEmbeddedVideoPlayer(data json.RawMessage) (*LinkPreviewTypeEmbeddedVideoPlayer, error)

func (*LinkPreviewTypeEmbeddedVideoPlayer) GetClass added in v0.7.3

func (*LinkPreviewTypeEmbeddedVideoPlayer) GetType added in v0.7.3

func (*LinkPreviewTypeEmbeddedVideoPlayer) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeEmbeddedVideoPlayer) LinkPreviewTypeType() string

func (*LinkPreviewTypeEmbeddedVideoPlayer) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeEmbeddedVideoPlayer) MarshalJSON() ([]byte, error)

type LinkPreviewTypeExternalAudio added in v0.7.3

type LinkPreviewTypeExternalAudio struct {

	// URL of the audio file
	Url string `json:"url"`
	// MIME type of the audio file
	MimeType string `json:"mime_type"`
	// Duration of the audio, in seconds; 0 if unknown
	Duration int32 `json:"duration"`
	// contains filtered or unexported fields
}

The link is a link to an audio file

func UnmarshalLinkPreviewTypeExternalAudio added in v0.7.3

func UnmarshalLinkPreviewTypeExternalAudio(data json.RawMessage) (*LinkPreviewTypeExternalAudio, error)

func (*LinkPreviewTypeExternalAudio) GetClass added in v0.7.3

func (*LinkPreviewTypeExternalAudio) GetType added in v0.7.3

func (*LinkPreviewTypeExternalAudio) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeExternalAudio) LinkPreviewTypeType() string

func (*LinkPreviewTypeExternalAudio) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeExternalAudio) MarshalJSON() ([]byte, error)

type LinkPreviewTypeExternalVideo added in v0.7.3

type LinkPreviewTypeExternalVideo struct {

	// URL of the video file
	Url string `json:"url"`
	// MIME type of the video file
	MimeType string `json:"mime_type"`
	// Expected width of the video preview; 0 if unknown
	Width int32 `json:"width"`
	// Expected height of the video preview; 0 if unknown
	Height int32 `json:"height"`
	// Duration of the video, in seconds; 0 if unknown
	Duration int32 `json:"duration"`
	// contains filtered or unexported fields
}

The link is a link to a video file

func UnmarshalLinkPreviewTypeExternalVideo added in v0.7.3

func UnmarshalLinkPreviewTypeExternalVideo(data json.RawMessage) (*LinkPreviewTypeExternalVideo, error)

func (*LinkPreviewTypeExternalVideo) GetClass added in v0.7.3

func (*LinkPreviewTypeExternalVideo) GetType added in v0.7.3

func (*LinkPreviewTypeExternalVideo) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeExternalVideo) LinkPreviewTypeType() string

func (*LinkPreviewTypeExternalVideo) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeExternalVideo) MarshalJSON() ([]byte, error)

type LinkPreviewTypeInvoice added in v0.7.3

type LinkPreviewTypeInvoice struct {
	// contains filtered or unexported fields
}

The link is a link to an invoice

func UnmarshalLinkPreviewTypeInvoice added in v0.7.3

func UnmarshalLinkPreviewTypeInvoice(data json.RawMessage) (*LinkPreviewTypeInvoice, error)

func (*LinkPreviewTypeInvoice) GetClass added in v0.7.3

func (*LinkPreviewTypeInvoice) GetClass() string

func (*LinkPreviewTypeInvoice) GetType added in v0.7.3

func (*LinkPreviewTypeInvoice) GetType() string

func (*LinkPreviewTypeInvoice) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeInvoice) LinkPreviewTypeType() string

func (*LinkPreviewTypeInvoice) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeInvoice) MarshalJSON() ([]byte, error)

type LinkPreviewTypeMessage added in v0.7.3

type LinkPreviewTypeMessage struct {
	// contains filtered or unexported fields
}

The link is a link to a text or a poll Telegram message

func UnmarshalLinkPreviewTypeMessage added in v0.7.3

func UnmarshalLinkPreviewTypeMessage(data json.RawMessage) (*LinkPreviewTypeMessage, error)

func (*LinkPreviewTypeMessage) GetClass added in v0.7.3

func (*LinkPreviewTypeMessage) GetClass() string

func (*LinkPreviewTypeMessage) GetType added in v0.7.3

func (*LinkPreviewTypeMessage) GetType() string

func (*LinkPreviewTypeMessage) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeMessage) LinkPreviewTypeType() string

func (*LinkPreviewTypeMessage) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeMessage) MarshalJSON() ([]byte, error)

type LinkPreviewTypePhoto added in v0.7.3

type LinkPreviewTypePhoto struct {

	// The photo
	Photo *Photo `json:"photo"`
	// contains filtered or unexported fields
}

The link is a link to a photo

func UnmarshalLinkPreviewTypePhoto added in v0.7.3

func UnmarshalLinkPreviewTypePhoto(data json.RawMessage) (*LinkPreviewTypePhoto, error)

func (*LinkPreviewTypePhoto) GetClass added in v0.7.3

func (*LinkPreviewTypePhoto) GetClass() string

func (*LinkPreviewTypePhoto) GetType added in v0.7.3

func (*LinkPreviewTypePhoto) GetType() string

func (*LinkPreviewTypePhoto) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypePhoto) LinkPreviewTypeType() string

func (*LinkPreviewTypePhoto) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypePhoto) MarshalJSON() ([]byte, error)

type LinkPreviewTypePremiumGiftCode added in v0.7.3

type LinkPreviewTypePremiumGiftCode struct {
	// contains filtered or unexported fields
}

The link is a link to a Telegram Premium gift code

func UnmarshalLinkPreviewTypePremiumGiftCode added in v0.7.3

func UnmarshalLinkPreviewTypePremiumGiftCode(data json.RawMessage) (*LinkPreviewTypePremiumGiftCode, error)

func (*LinkPreviewTypePremiumGiftCode) GetClass added in v0.7.3

func (*LinkPreviewTypePremiumGiftCode) GetType added in v0.7.3

func (*LinkPreviewTypePremiumGiftCode) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypePremiumGiftCode) LinkPreviewTypeType() string

func (*LinkPreviewTypePremiumGiftCode) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypePremiumGiftCode) MarshalJSON() ([]byte, error)

type LinkPreviewTypeShareableChatFolder added in v0.7.3

type LinkPreviewTypeShareableChatFolder struct {
	// contains filtered or unexported fields
}

The link is a link to a shareable chat folder

func UnmarshalLinkPreviewTypeShareableChatFolder added in v0.7.3

func UnmarshalLinkPreviewTypeShareableChatFolder(data json.RawMessage) (*LinkPreviewTypeShareableChatFolder, error)

func (*LinkPreviewTypeShareableChatFolder) GetClass added in v0.7.3

func (*LinkPreviewTypeShareableChatFolder) GetType added in v0.7.3

func (*LinkPreviewTypeShareableChatFolder) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeShareableChatFolder) LinkPreviewTypeType() string

func (*LinkPreviewTypeShareableChatFolder) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeShareableChatFolder) MarshalJSON() ([]byte, error)

type LinkPreviewTypeSticker added in v0.7.3

type LinkPreviewTypeSticker struct {

	// The sticker. It can be an arbitrary WEBP image and can have dimensions bigger than 512
	Sticker *Sticker `json:"sticker"`
	// contains filtered or unexported fields
}

The link is a link to a sticker

func UnmarshalLinkPreviewTypeSticker added in v0.7.3

func UnmarshalLinkPreviewTypeSticker(data json.RawMessage) (*LinkPreviewTypeSticker, error)

func (*LinkPreviewTypeSticker) GetClass added in v0.7.3

func (*LinkPreviewTypeSticker) GetClass() string

func (*LinkPreviewTypeSticker) GetType added in v0.7.3

func (*LinkPreviewTypeSticker) GetType() string

func (*LinkPreviewTypeSticker) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeSticker) LinkPreviewTypeType() string

func (*LinkPreviewTypeSticker) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeSticker) MarshalJSON() ([]byte, error)

type LinkPreviewTypeStickerSet added in v0.7.3

type LinkPreviewTypeStickerSet struct {

	// Up to 4 stickers from the sticker set
	Stickers []*Sticker `json:"stickers"`
	// contains filtered or unexported fields
}

The link is a link to a sticker set

func UnmarshalLinkPreviewTypeStickerSet added in v0.7.3

func UnmarshalLinkPreviewTypeStickerSet(data json.RawMessage) (*LinkPreviewTypeStickerSet, error)

func (*LinkPreviewTypeStickerSet) GetClass added in v0.7.3

func (*LinkPreviewTypeStickerSet) GetClass() string

func (*LinkPreviewTypeStickerSet) GetType added in v0.7.3

func (*LinkPreviewTypeStickerSet) GetType() string

func (*LinkPreviewTypeStickerSet) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeStickerSet) LinkPreviewTypeType() string

func (*LinkPreviewTypeStickerSet) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeStickerSet) MarshalJSON() ([]byte, error)

type LinkPreviewTypeStory added in v0.7.3

type LinkPreviewTypeStory struct {

	// The 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
}

The link is a link to a story. Link preview description is unavailable

func UnmarshalLinkPreviewTypeStory added in v0.7.3

func UnmarshalLinkPreviewTypeStory(data json.RawMessage) (*LinkPreviewTypeStory, error)

func (*LinkPreviewTypeStory) GetClass added in v0.7.3

func (*LinkPreviewTypeStory) GetClass() string

func (*LinkPreviewTypeStory) GetType added in v0.7.3

func (*LinkPreviewTypeStory) GetType() string

func (*LinkPreviewTypeStory) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeStory) LinkPreviewTypeType() string

func (*LinkPreviewTypeStory) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeStory) MarshalJSON() ([]byte, error)

type LinkPreviewTypeSupergroupBoost added in v0.7.3

type LinkPreviewTypeSupergroupBoost struct {

	// Photo of the chat; may be null
	Photo *ChatPhoto `json:"photo"`
	// contains filtered or unexported fields
}

The link is a link to boost a supergroup chat

func UnmarshalLinkPreviewTypeSupergroupBoost added in v0.7.3

func UnmarshalLinkPreviewTypeSupergroupBoost(data json.RawMessage) (*LinkPreviewTypeSupergroupBoost, error)

func (*LinkPreviewTypeSupergroupBoost) GetClass added in v0.7.3

func (*LinkPreviewTypeSupergroupBoost) GetType added in v0.7.3

func (*LinkPreviewTypeSupergroupBoost) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeSupergroupBoost) LinkPreviewTypeType() string

func (*LinkPreviewTypeSupergroupBoost) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeSupergroupBoost) MarshalJSON() ([]byte, error)

type LinkPreviewTypeTheme added in v0.7.3

type LinkPreviewTypeTheme struct {

	// The list of files with theme description
	Documents []*Document `json:"documents"`
	// Settings for the cloud theme; may be null if unknown
	Settings *ThemeSettings `json:"settings"`
	// contains filtered or unexported fields
}

The link is a link to a cloud theme. TDLib has no theme support yet

func UnmarshalLinkPreviewTypeTheme added in v0.7.3

func UnmarshalLinkPreviewTypeTheme(data json.RawMessage) (*LinkPreviewTypeTheme, error)

func (*LinkPreviewTypeTheme) GetClass added in v0.7.3

func (*LinkPreviewTypeTheme) GetClass() string

func (*LinkPreviewTypeTheme) GetType added in v0.7.3

func (*LinkPreviewTypeTheme) GetType() string

func (*LinkPreviewTypeTheme) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeTheme) LinkPreviewTypeType() string

func (*LinkPreviewTypeTheme) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeTheme) MarshalJSON() ([]byte, error)

type LinkPreviewTypeUnsupported added in v0.7.3

type LinkPreviewTypeUnsupported struct {
	// contains filtered or unexported fields
}

The link preview type is unsupported yet

func UnmarshalLinkPreviewTypeUnsupported added in v0.7.3

func UnmarshalLinkPreviewTypeUnsupported(data json.RawMessage) (*LinkPreviewTypeUnsupported, error)

func (*LinkPreviewTypeUnsupported) GetClass added in v0.7.3

func (*LinkPreviewTypeUnsupported) GetClass() string

func (*LinkPreviewTypeUnsupported) GetType added in v0.7.3

func (*LinkPreviewTypeUnsupported) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeUnsupported) LinkPreviewTypeType() string

func (*LinkPreviewTypeUnsupported) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeUnsupported) MarshalJSON() ([]byte, error)

type LinkPreviewTypeUser added in v0.7.3

type LinkPreviewTypeUser struct {

	// Photo of the user; may be null if none
	Photo *ChatPhoto `json:"photo"`
	// True, if the user is a bot
	IsBot bool `json:"is_bot"`
	// contains filtered or unexported fields
}

The link is a link to a user

func UnmarshalLinkPreviewTypeUser added in v0.7.3

func UnmarshalLinkPreviewTypeUser(data json.RawMessage) (*LinkPreviewTypeUser, error)

func (*LinkPreviewTypeUser) GetClass added in v0.7.3

func (*LinkPreviewTypeUser) GetClass() string

func (*LinkPreviewTypeUser) GetType added in v0.7.3

func (*LinkPreviewTypeUser) GetType() string

func (*LinkPreviewTypeUser) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeUser) LinkPreviewTypeType() string

func (*LinkPreviewTypeUser) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeUser) MarshalJSON() ([]byte, error)

type LinkPreviewTypeVideo added in v0.7.3

type LinkPreviewTypeVideo struct {

	// The video description
	Video *Video `json:"video"`
	// contains filtered or unexported fields
}

The link is a link to a video

func UnmarshalLinkPreviewTypeVideo added in v0.7.3

func UnmarshalLinkPreviewTypeVideo(data json.RawMessage) (*LinkPreviewTypeVideo, error)

func (*LinkPreviewTypeVideo) GetClass added in v0.7.3

func (*LinkPreviewTypeVideo) GetClass() string

func (*LinkPreviewTypeVideo) GetType added in v0.7.3

func (*LinkPreviewTypeVideo) GetType() string

func (*LinkPreviewTypeVideo) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeVideo) LinkPreviewTypeType() string

func (*LinkPreviewTypeVideo) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeVideo) MarshalJSON() ([]byte, error)

type LinkPreviewTypeVideoChat added in v0.7.3

type LinkPreviewTypeVideoChat struct {

	// Photo of the chat with the video chat; may be null if none
	Photo *ChatPhoto `json:"photo"`
	// 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

func UnmarshalLinkPreviewTypeVideoChat added in v0.7.3

func UnmarshalLinkPreviewTypeVideoChat(data json.RawMessage) (*LinkPreviewTypeVideoChat, error)

func (*LinkPreviewTypeVideoChat) GetClass added in v0.7.3

func (*LinkPreviewTypeVideoChat) GetClass() string

func (*LinkPreviewTypeVideoChat) GetType added in v0.7.3

func (*LinkPreviewTypeVideoChat) GetType() string

func (*LinkPreviewTypeVideoChat) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeVideoChat) LinkPreviewTypeType() string

func (*LinkPreviewTypeVideoChat) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeVideoChat) MarshalJSON() ([]byte, error)

type LinkPreviewTypeVideoNote added in v0.7.3

type LinkPreviewTypeVideoNote struct {

	// The video note
	VideoNote *VideoNote `json:"video_note"`
	// contains filtered or unexported fields
}

The link is a link to a video note message

func UnmarshalLinkPreviewTypeVideoNote added in v0.7.3

func UnmarshalLinkPreviewTypeVideoNote(data json.RawMessage) (*LinkPreviewTypeVideoNote, error)

func (*LinkPreviewTypeVideoNote) GetClass added in v0.7.3

func (*LinkPreviewTypeVideoNote) GetClass() string

func (*LinkPreviewTypeVideoNote) GetType added in v0.7.3

func (*LinkPreviewTypeVideoNote) GetType() string

func (*LinkPreviewTypeVideoNote) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeVideoNote) LinkPreviewTypeType() string

func (*LinkPreviewTypeVideoNote) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeVideoNote) MarshalJSON() ([]byte, error)

type LinkPreviewTypeVoiceNote added in v0.7.3

type LinkPreviewTypeVoiceNote struct {

	// The voice note
	VoiceNote *VoiceNote `json:"voice_note"`
	// contains filtered or unexported fields
}

The link is a link to a voice note message

func UnmarshalLinkPreviewTypeVoiceNote added in v0.7.3

func UnmarshalLinkPreviewTypeVoiceNote(data json.RawMessage) (*LinkPreviewTypeVoiceNote, error)

func (*LinkPreviewTypeVoiceNote) GetClass added in v0.7.3

func (*LinkPreviewTypeVoiceNote) GetClass() string

func (*LinkPreviewTypeVoiceNote) GetType added in v0.7.3

func (*LinkPreviewTypeVoiceNote) GetType() string

func (*LinkPreviewTypeVoiceNote) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeVoiceNote) LinkPreviewTypeType() string

func (*LinkPreviewTypeVoiceNote) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeVoiceNote) MarshalJSON() ([]byte, error)

type LinkPreviewTypeWebApp added in v0.7.3

type LinkPreviewTypeWebApp struct {

	// Web App photo; may be null if none
	Photo *Photo `json:"photo"`
	// contains filtered or unexported fields
}

The link is a link to a Web App

func UnmarshalLinkPreviewTypeWebApp added in v0.7.3

func UnmarshalLinkPreviewTypeWebApp(data json.RawMessage) (*LinkPreviewTypeWebApp, error)

func (*LinkPreviewTypeWebApp) GetClass added in v0.7.3

func (*LinkPreviewTypeWebApp) GetClass() string

func (*LinkPreviewTypeWebApp) GetType added in v0.7.3

func (*LinkPreviewTypeWebApp) GetType() string

func (*LinkPreviewTypeWebApp) LinkPreviewTypeType added in v0.7.3

func (*LinkPreviewTypeWebApp) LinkPreviewTypeType() string

func (*LinkPreviewTypeWebApp) MarshalJSON added in v0.7.3

func (entity *LinkPreviewTypeWebApp) MarshalJSON() ([]byte, error)

type Listener

type Listener struct {
	Updates chan Type
	// contains filtered or unexported fields
}

func (*Listener) Close

func (listener *Listener) Close()

func (*Listener) IsActive

func (listener *Listener) IsActive() bool

type LoadActiveStoriesRequest added in v0.7.0

type LoadActiveStoriesRequest struct {
	// The story list in which to load active stories
	StoryList StoryList `json:"story_list"`
}

type LoadChatsRequest added in v0.5.0

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 LoadGroupCallParticipantsRequest added in v0.5.0

type LoadGroupCallParticipantsRequest struct {
	// Group call identifier. The group call must be previously received through getGroupCall and must be joined or being joined
	GroupCallId int32 `json:"group_call_id"`
	// The maximum number of participants to load; up to 100
	Limit int32 `json:"limit"`
}

type LoadQuickReplyShortcutMessagesRequest added in v0.7.2

type LoadQuickReplyShortcutMessagesRequest struct {
	// Unique identifier of the quick reply shortcut
	ShortcutId int32 `json:"shortcut_id"`
}

type LoadSavedMessagesTopicsRequest added in v0.7.2

type LoadSavedMessagesTopicsRequest struct {
	// The maximum number of topics to be loaded. For optimal performance, the number of loaded topics 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) GetClass

func (*LocalFile) GetClass() string

func (*LocalFile) GetType

func (*LocalFile) GetType() string

func (*LocalFile) MarshalJSON

func (entity *LocalFile) MarshalJSON() ([]byte, error)

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) GetClass

func (*Location) GetClass() string

func (*Location) GetType

func (*Location) GetType() string

func (*Location) MarshalJSON

func (entity *Location) MarshalJSON() ([]byte, error)

type LocationAddress added in v0.7.3

type LocationAddress struct {

	// A two-letter ISO 3166-1 alpha-2 country code
	CountryCode string `json:"country_code"`
	// State, if applicable; empty if unknown
	State string `json:"state"`
	// City; empty if unknown
	City string `json:"city"`
	// The address; empty if unknown
	Street string `json:"street"`
	// contains filtered or unexported fields
}

Describes an address of a location

func UnmarshalLocationAddress added in v0.7.3

func UnmarshalLocationAddress(data json.RawMessage) (*LocationAddress, error)

func (*LocationAddress) GetClass added in v0.7.3

func (*LocationAddress) GetClass() string

func (*LocationAddress) GetType added in v0.7.3

func (*LocationAddress) GetType() string

func (*LocationAddress) MarshalJSON added in v0.7.3

func (entity *LocationAddress) MarshalJSON() ([]byte, error)

type LogStream added in v0.0.13

type LogStream interface {
	LogStreamType() string
}

Describes a stream to which TDLib internal log is written

func GetLogStream added in v0.6.0

func GetLogStream() (LogStream, error)

Returns information about currently used log stream for internal logging of TDLib. Can be called synchronously

func UnmarshalListOfLogStream added in v0.3.2

func UnmarshalListOfLogStream(dataList []json.RawMessage) ([]LogStream, error)

func UnmarshalLogStream added in v0.0.13

func UnmarshalLogStream(data json.RawMessage) (LogStream, error)

type LogStreamDefault added in v0.0.13

type LogStreamDefault struct {
	// contains filtered or unexported fields
}

The log is written to stderr or an OS specific log

func UnmarshalLogStreamDefault added in v0.0.13

func UnmarshalLogStreamDefault(data json.RawMessage) (*LogStreamDefault, error)

func (*LogStreamDefault) GetClass added in v0.0.13

func (*LogStreamDefault) GetClass() string

func (*LogStreamDefault) GetType added in v0.0.13

func (*LogStreamDefault) GetType() string

func (*LogStreamDefault) LogStreamType added in v0.0.13

func (*LogStreamDefault) LogStreamType() string

func (*LogStreamDefault) MarshalJSON added in v0.0.13

func (entity *LogStreamDefault) MarshalJSON() ([]byte, error)

type LogStreamEmpty added in v0.0.13

type LogStreamEmpty struct {
	// contains filtered or unexported fields
}

The log is written nowhere

func UnmarshalLogStreamEmpty added in v0.0.13

func UnmarshalLogStreamEmpty(data json.RawMessage) (*LogStreamEmpty, error)

func (*LogStreamEmpty) GetClass added in v0.0.13

func (*LogStreamEmpty) GetClass() string

func (*LogStreamEmpty) GetType added in v0.0.13

func (*LogStreamEmpty) GetType() string

func (*LogStreamEmpty) LogStreamType added in v0.0.13

func (*LogStreamEmpty) LogStreamType() string

func (*LogStreamEmpty) MarshalJSON added in v0.0.13

func (entity *LogStreamEmpty) MarshalJSON() ([]byte, error)

type LogStreamFile added in v0.0.13

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 added in v0.0.13

func UnmarshalLogStreamFile(data json.RawMessage) (*LogStreamFile, error)

func (*LogStreamFile) GetClass added in v0.0.13

func (*LogStreamFile) GetClass() string

func (*LogStreamFile) GetType added in v0.0.13

func (*LogStreamFile) GetType() string

func (*LogStreamFile) LogStreamType added in v0.0.13

func (*LogStreamFile) LogStreamType() string

func (*LogStreamFile) MarshalJSON added in v0.0.13

func (entity *LogStreamFile) MarshalJSON() ([]byte, error)

type LogTags added in v0.0.13

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 added in v0.6.0

func GetLogTags() (*LogTags, error)

Returns the list of available TDLib internal log tags, for example, ["actor", "binlog", "connections", "notifications", "proxy"]. Can be called synchronously

func UnmarshalLogTags added in v0.0.13

func UnmarshalLogTags(data json.RawMessage) (*LogTags, error)

func (*LogTags) GetClass added in v0.0.13

func (*LogTags) GetClass() string

func (*LogTags) GetType added in v0.0.13

func (*LogTags) GetType() string

func (*LogTags) MarshalJSON added in v0.0.13

func (entity *LogTags) MarshalJSON() ([]byte, error)

type LogVerbosityLevel added in v0.0.13

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 added in v0.6.0

func GetLogTagVerbosityLevel(req *GetLogTagVerbosityLevelRequest) (*LogVerbosityLevel, error)

Returns current verbosity level for a specified TDLib internal log tag. Can be called synchronously

func GetLogVerbosityLevel added in v0.6.0

func GetLogVerbosityLevel() (*LogVerbosityLevel, error)

Returns current verbosity level of the internal logging of TDLib. Can be called synchronously

func UnmarshalLogVerbosityLevel added in v0.0.13

func UnmarshalLogVerbosityLevel(data json.RawMessage) (*LogVerbosityLevel, error)

func (*LogVerbosityLevel) GetClass added in v0.0.13

func (*LogVerbosityLevel) GetClass() string

func (*LogVerbosityLevel) GetType added in v0.0.13

func (*LogVerbosityLevel) GetType() string

func (*LogVerbosityLevel) MarshalJSON added in v0.0.13

func (entity *LogVerbosityLevel) MarshalJSON() ([]byte, error)

type LoginUrlInfo added in v0.2.0

type LoginUrlInfo interface {
	LoginUrlInfoType() string
}

Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl

func UnmarshalListOfLoginUrlInfo added in v0.3.2

func UnmarshalListOfLoginUrlInfo(dataList []json.RawMessage) ([]LoginUrlInfo, error)

func UnmarshalLoginUrlInfo added in v0.2.0

func UnmarshalLoginUrlInfo(data json.RawMessage) (LoginUrlInfo, error)

type LoginUrlInfoOpen added in v0.2.0

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 added in v0.2.0

func UnmarshalLoginUrlInfoOpen(data json.RawMessage) (*LoginUrlInfoOpen, error)

func (*LoginUrlInfoOpen) GetClass added in v0.2.0

func (*LoginUrlInfoOpen) GetClass() string

func (*LoginUrlInfoOpen) GetType added in v0.2.0

func (*LoginUrlInfoOpen) GetType() string

func (*LoginUrlInfoOpen) LoginUrlInfoType added in v0.2.0

func (*LoginUrlInfoOpen) LoginUrlInfoType() string

func (*LoginUrlInfoOpen) MarshalJSON added in v0.2.0

func (entity *LoginUrlInfoOpen) MarshalJSON() ([]byte, error)

type LoginUrlInfoRequestConfirmation added in v0.2.0

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 added in v0.2.0

func UnmarshalLoginUrlInfoRequestConfirmation(data json.RawMessage) (*LoginUrlInfoRequestConfirmation, error)

func (*LoginUrlInfoRequestConfirmation) GetClass added in v0.2.0

func (*LoginUrlInfoRequestConfirmation) GetType added in v0.2.0

func (*LoginUrlInfoRequestConfirmation) LoginUrlInfoType added in v0.2.0

func (*LoginUrlInfoRequestConfirmation) LoginUrlInfoType() string

func (*LoginUrlInfoRequestConfirmation) MarshalJSON added in v0.2.0

func (entity *LoginUrlInfoRequestConfirmation) MarshalJSON() ([]byte, error)

type MainWebApp added in v0.7.3

type MainWebApp struct {

	// URL of the Web App to open
	Url string `json:"url"`
	// The mode in which the Web App must be opened
	Mode WebAppOpenMode `json:"mode"`
	// contains filtered or unexported fields
}

Contains information about the main Web App of a bot

func UnmarshalMainWebApp added in v0.7.3

func UnmarshalMainWebApp(data json.RawMessage) (*MainWebApp, error)

func (*MainWebApp) GetClass added in v0.7.3

func (*MainWebApp) GetClass() string

func (*MainWebApp) GetType added in v0.7.3

func (*MainWebApp) GetType() string

func (*MainWebApp) MarshalJSON added in v0.7.3

func (entity *MainWebApp) MarshalJSON() ([]byte, error)

func (*MainWebApp) UnmarshalJSON added in v0.7.4

func (mainWebApp *MainWebApp) UnmarshalJSON(data []byte) error

type MaskPoint

type MaskPoint interface {
	MaskPointType() string
}

Part of the face, relative to which a mask is placed

func UnmarshalListOfMaskPoint added in v0.3.2

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 was sent because of a scheduled action by the message sender, for example, as away, or greeting service message
	IsFromOffline bool `json:"is_from_offline"`
	// True, if content of the message can be saved locally or copied using inputMessageForwarded or forwardMessages with copy options
	CanBeSaved bool `json:"can_be_saved"`
	// 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; 0 for scheduled messages
	Date int32 `json:"date"`
	// Point in time (Unix timestamp) when the message was last edited; 0 for scheduled messages
	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 the initial message for messages created with importMessages; may be null if the message isn't imported
	ImportInfo *MessageImportInfo `json:"import_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 fact-check added to the message; may be null if none
	FactCheck *FactCheck `json:"fact_check"`
	// 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"`
	// Identifier of the Saved Messages topic for the message; 0 for messages not from Saved Messages
	SavedMessagesTopicId int64 `json:"saved_messages_topic_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-destruction 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 inline bot through which this message was sent
	ViaBotUserId int64 `json:"via_bot_user_id"`
	// If non-zero, the user identifier of the business bot that sent this message
	SenderBusinessBotUserId int64 `json:"sender_business_bot_user_id"`
	// Number of times the sender of the message boosted the supergroup at the time the message was sent; 0 if none or unknown. For messages sent by the current user, supergroupFullInfo.my_boost_count must be used instead
	SenderBoostCount int32 `json:"sender_boost_count"`
	// For channel posts and anonymous group messages, optional author signature
	AuthorSignature string `json:"author_signature"`
	// Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be grouped together in albums
	MediaAlbumId JsonInt64 `json:"media_album_id"`
	// Unique identifier of the effect added to the message; 0 if none
	EffectId JsonInt64 `json:"effect_id"`
	// True, if media content of the message must be hidden with 18+ spoiler
	HasSensitiveContent bool `json:"has_sensitive_content"`
	// 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) GetClass

func (*Message) GetClass() string

func (*Message) GetType

func (*Message) GetType() string

func (*Message) MarshalJSON

func (entity *Message) MarshalJSON() ([]byte, error)

func (*Message) UnmarshalJSON

func (message *Message) UnmarshalJSON(data []byte) error

type MessageAnimatedEmoji added in v0.5.0

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 added in v0.5.0

func UnmarshalMessageAnimatedEmoji(data json.RawMessage) (*MessageAnimatedEmoji, error)

func (*MessageAnimatedEmoji) GetClass added in v0.5.0

func (*MessageAnimatedEmoji) GetClass() string

func (*MessageAnimatedEmoji) GetType added in v0.5.0

func (*MessageAnimatedEmoji) GetType() string

func (*MessageAnimatedEmoji) MarshalJSON added in v0.5.0

func (entity *MessageAnimatedEmoji) MarshalJSON() ([]byte, error)

func (*MessageAnimatedEmoji) MessageContentType added in v0.5.0

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 caption must be shown above the animation; otherwise, the caption must be shown below the animation
	ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
	// 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 v0.7.0

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 v0.7.0

func UnmarshalMessageAutoDeleteTime(data json.RawMessage) (*MessageAutoDeleteTime, error)

func (*MessageAutoDeleteTime) GetClass added in v0.7.0

func (*MessageAutoDeleteTime) GetClass() string

func (*MessageAutoDeleteTime) GetType added in v0.7.0

func (*MessageAutoDeleteTime) GetType() string

func (*MessageAutoDeleteTime) MarshalJSON added in v0.7.0

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) MarshalJSON

func (entity *MessageBasicGroupChatCreate) MarshalJSON() ([]byte, error)

func (*MessageBasicGroupChatCreate) MessageContentType

func (*MessageBasicGroupChatCreate) MessageContentType() string

type MessageBotWriteAccessAllowed added in v0.7.0

type MessageBotWriteAccessAllowed struct {

	// The reason why the bot was allowed to write messages
	Reason BotWriteAccessAllowReason `json:"reason"`
	// contains filtered or unexported fields
}

The user allowed the bot to send messages

func UnmarshalMessageBotWriteAccessAllowed added in v0.7.0

func UnmarshalMessageBotWriteAccessAllowed(data json.RawMessage) (*MessageBotWriteAccessAllowed, error)

func (*MessageBotWriteAccessAllowed) GetClass added in v0.7.0

func (*MessageBotWriteAccessAllowed) GetType added in v0.7.0

func (*MessageBotWriteAccessAllowed) MarshalJSON added in v0.7.0

func (entity *MessageBotWriteAccessAllowed) MarshalJSON() ([]byte, error)

func (*MessageBotWriteAccessAllowed) MessageContentType added in v0.7.0

func (*MessageBotWriteAccessAllowed) MessageContentType() string

func (*MessageBotWriteAccessAllowed) UnmarshalJSON added in v0.7.1

func (messageBotWriteAccessAllowed *MessageBotWriteAccessAllowed) UnmarshalJSON(data []byte) error

type MessageCalendar added in v0.5.0

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 added in v0.5.0

func UnmarshalMessageCalendar(data json.RawMessage) (*MessageCalendar, error)

func (*MessageCalendar) GetClass added in v0.5.0

func (*MessageCalendar) GetClass() string

func (*MessageCalendar) GetType added in v0.5.0

func (*MessageCalendar) GetType() string

func (*MessageCalendar) MarshalJSON added in v0.5.0

func (entity *MessageCalendar) MarshalJSON() ([]byte, error)

type MessageCalendarDay added in v0.5.0

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 added in v0.5.0

func UnmarshalMessageCalendarDay(data json.RawMessage) (*MessageCalendarDay, error)

func (*MessageCalendarDay) GetClass added in v0.5.0

func (*MessageCalendarDay) GetClass() string

func (*MessageCalendarDay) GetType added in v0.5.0

func (*MessageCalendarDay) GetType() string

func (*MessageCalendarDay) MarshalJSON added in v0.5.0

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 MessageChatBoost added in v0.7.2

type MessageChatBoost struct {

	// Number of times the chat was boosted
	BoostCount int32 `json:"boost_count"`
	// contains filtered or unexported fields
}

The chat was boosted by the sender of the message

func UnmarshalMessageChatBoost added in v0.7.2

func UnmarshalMessageChatBoost(data json.RawMessage) (*MessageChatBoost, error)

func (*MessageChatBoost) GetClass added in v0.7.2

func (*MessageChatBoost) GetClass() string

func (*MessageChatBoost) GetType added in v0.7.2

func (*MessageChatBoost) GetType() string

func (*MessageChatBoost) MarshalJSON added in v0.7.2

func (entity *MessageChatBoost) MarshalJSON() ([]byte, error)

func (*MessageChatBoost) MessageContentType added in v0.7.2

func (*MessageChatBoost) 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 struct {
	// contains filtered or unexported fields
}

A new member joined the chat via an invite link

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 added in v0.5.0

type MessageChatJoinByRequest struct {
	// contains filtered or unexported fields
}

A new member was accepted to the chat by an administrator

func UnmarshalMessageChatJoinByRequest added in v0.5.0

func UnmarshalMessageChatJoinByRequest(data json.RawMessage) (*MessageChatJoinByRequest, error)

func (*MessageChatJoinByRequest) GetClass added in v0.5.0

func (*MessageChatJoinByRequest) GetClass() string

func (*MessageChatJoinByRequest) GetType added in v0.5.0

func (*MessageChatJoinByRequest) GetType() string

func (*MessageChatJoinByRequest) MarshalJSON added in v0.5.0

func (entity *MessageChatJoinByRequest) MarshalJSON() ([]byte, error)

func (*MessageChatJoinByRequest) MessageContentType added in v0.5.0

func (*MessageChatJoinByRequest) MessageContentType() string

type MessageChatSetBackground added in v0.7.0

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"`
	// True, if the background was set only for self
	OnlyForSelf bool `json:"only_for_self"`
	// contains filtered or unexported fields
}

A new background was set in the chat

func UnmarshalMessageChatSetBackground added in v0.7.0

func UnmarshalMessageChatSetBackground(data json.RawMessage) (*MessageChatSetBackground, error)

func (*MessageChatSetBackground) GetClass added in v0.7.0

func (*MessageChatSetBackground) GetClass() string

func (*MessageChatSetBackground) GetType added in v0.7.0

func (*MessageChatSetBackground) GetType() string

func (*MessageChatSetBackground) MarshalJSON added in v0.7.0

func (entity *MessageChatSetBackground) MarshalJSON() ([]byte, error)

func (*MessageChatSetBackground) MessageContentType added in v0.7.0

func (*MessageChatSetBackground) MessageContentType() string

type MessageChatSetMessageAutoDeleteTime added in v0.7.0

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 v0.7.0

func UnmarshalMessageChatSetMessageAutoDeleteTime(data json.RawMessage) (*MessageChatSetMessageAutoDeleteTime, error)

func (*MessageChatSetMessageAutoDeleteTime) GetClass added in v0.7.0

func (*MessageChatSetMessageAutoDeleteTime) GetType added in v0.7.0

func (*MessageChatSetMessageAutoDeleteTime) MarshalJSON added in v0.7.0

func (entity *MessageChatSetMessageAutoDeleteTime) MarshalJSON() ([]byte, error)

func (*MessageChatSetMessageAutoDeleteTime) MessageContentType added in v0.7.0

func (*MessageChatSetMessageAutoDeleteTime) MessageContentType() string

type MessageChatSetTheme added in v0.5.0

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 added in v0.5.0

func UnmarshalMessageChatSetTheme(data json.RawMessage) (*MessageChatSetTheme, error)

func (*MessageChatSetTheme) GetClass added in v0.5.0

func (*MessageChatSetTheme) GetClass() string

func (*MessageChatSetTheme) GetType added in v0.5.0

func (*MessageChatSetTheme) GetType() string

func (*MessageChatSetTheme) MarshalJSON added in v0.5.0

func (entity *MessageChatSetTheme) MarshalJSON() ([]byte, error)

func (*MessageChatSetTheme) MessageContentType added in v0.5.0

func (*MessageChatSetTheme) MessageContentType() string

type MessageChatShared added in v0.7.0

type MessageChatShared struct {

	// The shared chat
	Chat *SharedChat `json:"chat"`
	// Identifier of the keyboard button with the request
	ButtonId int32 `json:"button_id"`
	// contains filtered or unexported fields
}

The current user shared a chat, which was requested by the bot

func UnmarshalMessageChatShared added in v0.7.0

func UnmarshalMessageChatShared(data json.RawMessage) (*MessageChatShared, error)

func (*MessageChatShared) GetClass added in v0.7.0

func (*MessageChatShared) GetClass() string

func (*MessageChatShared) GetType added in v0.7.0

func (*MessageChatShared) GetType() string

func (*MessageChatShared) MarshalJSON added in v0.7.0

func (entity *MessageChatShared) MarshalJSON() ([]byte, error)

func (*MessageChatShared) MessageContentType added in v0.7.0

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 added in v0.3.2

func UnmarshalListOfMessageContent(dataList []json.RawMessage) ([]MessageContent, error)

func UnmarshalMessageContent

func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error)

type MessageCopyOptions added in v0.3.0

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. Use messageProperties.can_be_saved and messageProperties.can_be_copied_to_secret_chat to check whether the message is suitable
	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"`
	// True, if new caption must be shown above the media; otherwise, new caption must be shown below the media; not supported in secret chats. Ignored if replace_caption is false
	NewShowCaptionAboveMedia bool `json:"new_show_caption_above_media"`
	// contains filtered or unexported fields
}

Options to be used when a message content is copied without reference to the original sender. Service messages, messages with messageInvoice, messagePaidMedia, messageGiveaway, or messageGiveawayWinners content can't be copied

func UnmarshalMessageCopyOptions added in v0.3.0

func UnmarshalMessageCopyOptions(data json.RawMessage) (*MessageCopyOptions, error)

func (*MessageCopyOptions) GetClass added in v0.3.0

func (*MessageCopyOptions) GetClass() string

func (*MessageCopyOptions) GetType added in v0.3.0

func (*MessageCopyOptions) GetType() string

func (*MessageCopyOptions) MarshalJSON added in v0.3.0

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) MarshalJSON

func (entity *MessageCustomServiceAction) MarshalJSON() ([]byte, error)

func (*MessageCustomServiceAction) MessageContentType

func (*MessageCustomServiceAction) MessageContentType() string

type MessageDice added in v0.3.0

type MessageDice struct {

	// The animated stickers with the initial dice animation; may be null if unknown. The update 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. The update 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 added in v0.3.0

func UnmarshalMessageDice(data json.RawMessage) (*MessageDice, error)

func (*MessageDice) GetClass added in v0.3.0

func (*MessageDice) GetClass() string

func (*MessageDice) GetType added in v0.3.0

func (*MessageDice) GetType() string

func (*MessageDice) MarshalJSON added in v0.3.0

func (entity *MessageDice) MarshalJSON() ([]byte, error)

func (*MessageDice) MessageContentType added in v0.3.0

func (*MessageDice) MessageContentType() string

func (*MessageDice) UnmarshalJSON added in v0.3.0

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 MessageEffect added in v0.7.3

type MessageEffect struct {

	// Unique identifier of the effect
	Id JsonInt64 `json:"id"`
	// Static icon for the effect in WEBP format; may be null if none
	StaticIcon *Sticker `json:"static_icon"`
	// Emoji corresponding to the effect that can be used if static icon isn't available
	Emoji string `json:"emoji"`
	// True, if Telegram Premium subscription is required to use the effect
	IsPremium bool `json:"is_premium"`
	// Type of the effect
	Type MessageEffectType `json:"type"`
	// contains filtered or unexported fields
}

Contains information about an effect added to a message

func UnmarshalMessageEffect added in v0.7.3

func UnmarshalMessageEffect(data json.RawMessage) (*MessageEffect, error)

func (*MessageEffect) GetClass added in v0.7.3

func (*MessageEffect) GetClass() string

func (*MessageEffect) GetType added in v0.7.3

func (*MessageEffect) GetType() string

func (*MessageEffect) MarshalJSON added in v0.7.3

func (entity *MessageEffect) MarshalJSON() ([]byte, error)

func (*MessageEffect) UnmarshalJSON added in v0.7.3

func (messageEffect *MessageEffect) UnmarshalJSON(data []byte) error

type MessageEffectType added in v0.7.3

type MessageEffectType interface {
	MessageEffectTypeType() string
}

Describes type of emoji effect

func UnmarshalListOfMessageEffectType added in v0.7.3

func UnmarshalListOfMessageEffectType(dataList []json.RawMessage) ([]MessageEffectType, error)

func UnmarshalMessageEffectType added in v0.7.3

func UnmarshalMessageEffectType(data json.RawMessage) (MessageEffectType, error)

type MessageEffectTypeEmojiReaction added in v0.7.3

type MessageEffectTypeEmojiReaction struct {

	// Select animation for the effect in TGS format
	SelectAnimation *Sticker `json:"select_animation"`
	// Effect animation for the effect in TGS format
	EffectAnimation *Sticker `json:"effect_animation"`
	// contains filtered or unexported fields
}

An effect from an emoji reaction

func UnmarshalMessageEffectTypeEmojiReaction added in v0.7.3

func UnmarshalMessageEffectTypeEmojiReaction(data json.RawMessage) (*MessageEffectTypeEmojiReaction, error)

func (*MessageEffectTypeEmojiReaction) GetClass added in v0.7.3

func (*MessageEffectTypeEmojiReaction) GetType added in v0.7.3

func (*MessageEffectTypeEmojiReaction) MarshalJSON added in v0.7.3

func (entity *MessageEffectTypeEmojiReaction) MarshalJSON() ([]byte, error)

func (*MessageEffectTypeEmojiReaction) MessageEffectTypeType added in v0.7.3

func (*MessageEffectTypeEmojiReaction) MessageEffectTypeType() string

type MessageEffectTypePremiumSticker added in v0.7.3

type MessageEffectTypePremiumSticker struct {

	// The premium sticker. The effect can be found at sticker.full_type.premium_animation
	Sticker *Sticker `json:"sticker"`
	// contains filtered or unexported fields
}

An effect from a premium sticker

func UnmarshalMessageEffectTypePremiumSticker added in v0.7.3

func UnmarshalMessageEffectTypePremiumSticker(data json.RawMessage) (*MessageEffectTypePremiumSticker, error)

func (*MessageEffectTypePremiumSticker) GetClass added in v0.7.3

func (*MessageEffectTypePremiumSticker) GetType added in v0.7.3

func (*MessageEffectTypePremiumSticker) MarshalJSON added in v0.7.3

func (entity *MessageEffectTypePremiumSticker) MarshalJSON() ([]byte, error)

func (*MessageEffectTypePremiumSticker) MessageEffectTypeType added in v0.7.3

func (*MessageEffectTypePremiumSticker) MessageEffectTypeType() 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 MessageExpiredVideoNote added in v0.7.2

type MessageExpiredVideoNote struct {
	// contains filtered or unexported fields
}

A self-destructed video note message

func UnmarshalMessageExpiredVideoNote added in v0.7.2

func UnmarshalMessageExpiredVideoNote(data json.RawMessage) (*MessageExpiredVideoNote, error)

func (*MessageExpiredVideoNote) GetClass added in v0.7.2

func (*MessageExpiredVideoNote) GetClass() string

func (*MessageExpiredVideoNote) GetType added in v0.7.2

func (*MessageExpiredVideoNote) GetType() string

func (*MessageExpiredVideoNote) MarshalJSON added in v0.7.2

func (entity *MessageExpiredVideoNote) MarshalJSON() ([]byte, error)

func (*MessageExpiredVideoNote) MessageContentType added in v0.7.2

func (*MessageExpiredVideoNote) MessageContentType() string

type MessageExpiredVoiceNote added in v0.7.2

type MessageExpiredVoiceNote struct {
	// contains filtered or unexported fields
}

A self-destructed voice note message

func UnmarshalMessageExpiredVoiceNote added in v0.7.2

func UnmarshalMessageExpiredVoiceNote(data json.RawMessage) (*MessageExpiredVoiceNote, error)

func (*MessageExpiredVoiceNote) GetClass added in v0.7.2

func (*MessageExpiredVoiceNote) GetClass() string

func (*MessageExpiredVoiceNote) GetType added in v0.7.2

func (*MessageExpiredVoiceNote) GetType() string

func (*MessageExpiredVoiceNote) MarshalJSON added in v0.7.2

func (entity *MessageExpiredVoiceNote) MarshalJSON() ([]byte, error)

func (*MessageExpiredVoiceNote) MessageContentType added in v0.7.2

func (*MessageExpiredVoiceNote) MessageContentType() string

type MessageFileType added in v0.5.0

type MessageFileType interface {
	MessageFileTypeType() string
}

Contains information about a file with messages exported from another app

func UnmarshalListOfMessageFileType added in v0.5.0

func UnmarshalListOfMessageFileType(dataList []json.RawMessage) ([]MessageFileType, error)

func UnmarshalMessageFileType added in v0.5.0

func UnmarshalMessageFileType(data json.RawMessage) (MessageFileType, error)

type MessageFileTypeGroup added in v0.5.0

type MessageFileTypeGroup struct {

	// Title of the group chat; may be empty if unrecognized
	Title string `json:"title"`
	// contains filtered or unexported fields
}

The messages were exported from a group chat

func UnmarshalMessageFileTypeGroup added in v0.5.0

func UnmarshalMessageFileTypeGroup(data json.RawMessage) (*MessageFileTypeGroup, error)

func (*MessageFileTypeGroup) GetClass added in v0.5.0

func (*MessageFileTypeGroup) GetClass() string

func (*MessageFileTypeGroup) GetType added in v0.5.0

func (*MessageFileTypeGroup) GetType() string

func (*MessageFileTypeGroup) MarshalJSON added in v0.5.0

func (entity *MessageFileTypeGroup) MarshalJSON() ([]byte, error)

func (*MessageFileTypeGroup) MessageFileTypeType added in v0.5.0

func (*MessageFileTypeGroup) MessageFileTypeType() string

type MessageFileTypePrivate added in v0.5.0

type MessageFileTypePrivate struct {

	// Name of the other party; may be empty if unrecognized
	Name string `json:"name"`
	// contains filtered or unexported fields
}

The messages were exported from a private chat

func UnmarshalMessageFileTypePrivate added in v0.5.0

func UnmarshalMessageFileTypePrivate(data json.RawMessage) (*MessageFileTypePrivate, error)

func (*MessageFileTypePrivate) GetClass added in v0.5.0

func (*MessageFileTypePrivate) GetClass() string

func (*MessageFileTypePrivate) GetType added in v0.5.0

func (*MessageFileTypePrivate) GetType() string

func (*MessageFileTypePrivate) MarshalJSON added in v0.5.0

func (entity *MessageFileTypePrivate) MarshalJSON() ([]byte, error)

func (*MessageFileTypePrivate) MessageFileTypeType added in v0.5.0

func (*MessageFileTypePrivate) MessageFileTypeType() string

type MessageFileTypeUnknown added in v0.5.0

type MessageFileTypeUnknown struct {
	// contains filtered or unexported fields
}

The messages were exported from a chat of unknown type

func UnmarshalMessageFileTypeUnknown added in v0.5.0

func UnmarshalMessageFileTypeUnknown(data json.RawMessage) (*MessageFileTypeUnknown, error)

func (*MessageFileTypeUnknown) GetClass added in v0.5.0

func (*MessageFileTypeUnknown) GetClass() string

func (*MessageFileTypeUnknown) GetType added in v0.5.0

func (*MessageFileTypeUnknown) GetType() string

func (*MessageFileTypeUnknown) MarshalJSON added in v0.5.0

func (entity *MessageFileTypeUnknown) MarshalJSON() ([]byte, error)

func (*MessageFileTypeUnknown) MessageFileTypeType added in v0.5.0

func (*MessageFileTypeUnknown) MessageFileTypeType() string

type MessageForumTopicCreated added in v0.7.0

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 v0.7.0

func UnmarshalMessageForumTopicCreated(data json.RawMessage) (*MessageForumTopicCreated, error)

func (*MessageForumTopicCreated) GetClass added in v0.7.0

func (*MessageForumTopicCreated) GetClass() string

func (*MessageForumTopicCreated) GetType added in v0.7.0

func (*MessageForumTopicCreated) GetType() string

func (*MessageForumTopicCreated) MarshalJSON added in v0.7.0

func (entity *MessageForumTopicCreated) MarshalJSON() ([]byte, error)

func (*MessageForumTopicCreated) MessageContentType added in v0.7.0

func (*MessageForumTopicCreated) MessageContentType() string

type MessageForumTopicEdited added in v0.7.0

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 v0.7.0

func UnmarshalMessageForumTopicEdited(data json.RawMessage) (*MessageForumTopicEdited, error)

func (*MessageForumTopicEdited) GetClass added in v0.7.0

func (*MessageForumTopicEdited) GetClass() string

func (*MessageForumTopicEdited) GetType added in v0.7.0

func (*MessageForumTopicEdited) GetType() string

func (*MessageForumTopicEdited) MarshalJSON added in v0.7.0

func (entity *MessageForumTopicEdited) MarshalJSON() ([]byte, error)

func (*MessageForumTopicEdited) MessageContentType added in v0.7.0

func (*MessageForumTopicEdited) MessageContentType() string

type MessageForumTopicIsClosedToggled added in v0.7.0

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 v0.7.0

func UnmarshalMessageForumTopicIsClosedToggled(data json.RawMessage) (*MessageForumTopicIsClosedToggled, error)

func (*MessageForumTopicIsClosedToggled) GetClass added in v0.7.0

func (*MessageForumTopicIsClosedToggled) GetType added in v0.7.0

func (*MessageForumTopicIsClosedToggled) MarshalJSON added in v0.7.0

func (entity *MessageForumTopicIsClosedToggled) MarshalJSON() ([]byte, error)

func (*MessageForumTopicIsClosedToggled) MessageContentType added in v0.7.0

func (*MessageForumTopicIsClosedToggled) MessageContentType() string

type MessageForumTopicIsHiddenToggled added in v0.7.0

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 v0.7.0

func UnmarshalMessageForumTopicIsHiddenToggled(data json.RawMessage) (*MessageForumTopicIsHiddenToggled, error)

func (*MessageForumTopicIsHiddenToggled) GetClass added in v0.7.0

func (*MessageForumTopicIsHiddenToggled) GetType added in v0.7.0

func (*MessageForumTopicIsHiddenToggled) MarshalJSON added in v0.7.0

func (entity *MessageForumTopicIsHiddenToggled) MarshalJSON() ([]byte, error)

func (*MessageForumTopicIsHiddenToggled) MessageContentType added in v0.7.0

func (*MessageForumTopicIsHiddenToggled) MessageContentType() string

type MessageForwardInfo

type MessageForwardInfo struct {

	// Origin of the forwarded message
	Origin MessageOrigin `json:"origin"`
	// Point in time (Unix timestamp) when the message was originally sent
	Date int32 `json:"date"`
	// For messages forwarded to the chat with the current user (Saved Messages), to the Replies bot chat, or to the channel's discussion group, information about the source message from which the message was forwarded last time; may be null for other forwards or if unknown
	Source *ForwardSource `json:"source"`
	// The type of public service announcement for the forwarded message
	PublicServiceAnnouncementType string `json:"public_service_announcement_type"`
	// contains filtered or unexported fields
}

Contains information about a forwarded message

func UnmarshalMessageForwardInfo

func UnmarshalMessageForwardInfo(data json.RawMessage) (*MessageForwardInfo, error)

func (*MessageForwardInfo) GetClass added in v0.0.13

func (*MessageForwardInfo) GetClass() string

func (*MessageForwardInfo) GetType added in v0.0.13

func (*MessageForwardInfo) GetType() string

func (*MessageForwardInfo) MarshalJSON added in v0.0.13

func (entity *MessageForwardInfo) MarshalJSON() ([]byte, error)

func (*MessageForwardInfo) UnmarshalJSON added in v0.0.13

func (messageForwardInfo *MessageForwardInfo) UnmarshalJSON(data []byte) error

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 MessageGift added in v0.7.3

type MessageGift struct {

	// The gift
	Gift *Gift `json:"gift"`
	// Message added to the gift
	Text *FormattedText `json:"text"`
	// Number of Telegram Stars that can be claimed by the receiver instead of the gift; 0 if the gift can't be sold by the receiver
	SellStarCount int64 `json:"sell_star_count"`
	// True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them
	IsPrivate bool `json:"is_private"`
	// True, if the gift is displayed on the user's profile page; only for the receiver of the gift
	IsSaved bool `json:"is_saved"`
	// True, if the gift was converted to Telegram Stars; only for the receiver of the gift
	WasConverted bool `json:"was_converted"`
	// contains filtered or unexported fields
}

A gift was received or sent by the current user

func UnmarshalMessageGift added in v0.7.3

func UnmarshalMessageGift(data json.RawMessage) (*MessageGift, error)

func (*MessageGift) GetClass added in v0.7.3

func (*MessageGift) GetClass() string

func (*MessageGift) GetType added in v0.7.3

func (*MessageGift) GetType() string

func (*MessageGift) MarshalJSON added in v0.7.3

func (entity *MessageGift) MarshalJSON() ([]byte, error)

func (*MessageGift) MessageContentType added in v0.7.3

func (*MessageGift) MessageContentType() string

type MessageGiftedPremium added in v0.7.0

type MessageGiftedPremium struct {

	// The identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous or is outgoing
	GifterUserId int64 `json:"gifter_user_id"`
	// The identifier of a user that received Telegram Premium; 0 if the gift is incoming
	ReceiverUserId int64 `json:"receiver_user_id"`
	// Message added to the gifted Telegram Premium by the sender
	Text *FormattedText `json:"text"`
	// 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; 0 if none
	CryptocurrencyAmount JsonInt64 `json:"cryptocurrency_amount"`
	// Number of months 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 a user

func UnmarshalMessageGiftedPremium added in v0.7.0

func UnmarshalMessageGiftedPremium(data json.RawMessage) (*MessageGiftedPremium, error)

func (*MessageGiftedPremium) GetClass added in v0.7.0

func (*MessageGiftedPremium) GetClass() string

func (*MessageGiftedPremium) GetType added in v0.7.0

func (*MessageGiftedPremium) GetType() string

func (*MessageGiftedPremium) MarshalJSON added in v0.7.0

func (entity *MessageGiftedPremium) MarshalJSON() ([]byte, error)

func (*MessageGiftedPremium) MessageContentType added in v0.7.0

func (*MessageGiftedPremium) MessageContentType() string

type MessageGiftedStars added in v0.7.3

type MessageGiftedStars struct {

	// The identifier of a user that gifted Telegram Stars; 0 if the gift was anonymous or is outgoing
	GifterUserId int64 `json:"gifter_user_id"`
	// The identifier of a user that received Telegram Stars; 0 if the gift is incoming
	ReceiverUserId int64 `json:"receiver_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; 0 if none
	CryptocurrencyAmount JsonInt64 `json:"cryptocurrency_amount"`
	// Number of Telegram Stars that were gifted
	StarCount int64 `json:"star_count"`
	// Identifier of the transaction for Telegram Stars purchase; for receiver only
	TransactionId string `json:"transaction_id"`
	// A sticker to be shown in the message; may be null if unknown
	Sticker *Sticker `json:"sticker"`
	// contains filtered or unexported fields
}

Telegram Stars were gifted to a user

func UnmarshalMessageGiftedStars added in v0.7.3

func UnmarshalMessageGiftedStars(data json.RawMessage) (*MessageGiftedStars, error)

func (*MessageGiftedStars) GetClass added in v0.7.3

func (*MessageGiftedStars) GetClass() string

func (*MessageGiftedStars) GetType added in v0.7.3

func (*MessageGiftedStars) GetType() string

func (*MessageGiftedStars) MarshalJSON added in v0.7.3

func (entity *MessageGiftedStars) MarshalJSON() ([]byte, error)

func (*MessageGiftedStars) MessageContentType added in v0.7.3

func (*MessageGiftedStars) MessageContentType() string

type MessageGiveaway added in v0.7.3

type MessageGiveaway struct {

	// Giveaway parameters
	Parameters *GiveawayParameters `json:"parameters"`
	// Number of users which will receive Telegram Premium subscription gift codes
	WinnerCount int32 `json:"winner_count"`
	// Prize of the giveaway
	Prize GiveawayPrize `json:"prize"`
	// A sticker to be shown in the message; may be null if unknown
	Sticker *Sticker `json:"sticker"`
	// contains filtered or unexported fields
}

A giveaway

func UnmarshalMessageGiveaway added in v0.7.3

func UnmarshalMessageGiveaway(data json.RawMessage) (*MessageGiveaway, error)

func (*MessageGiveaway) GetClass added in v0.7.3

func (*MessageGiveaway) GetClass() string

func (*MessageGiveaway) GetType added in v0.7.3

func (*MessageGiveaway) GetType() string

func (*MessageGiveaway) MarshalJSON added in v0.7.3

func (entity *MessageGiveaway) MarshalJSON() ([]byte, error)

func (*MessageGiveaway) MessageContentType added in v0.7.3

func (*MessageGiveaway) MessageContentType() string

func (*MessageGiveaway) UnmarshalJSON added in v0.7.3

func (messageGiveaway *MessageGiveaway) UnmarshalJSON(data []byte) error

type MessageGiveawayCompleted added in v0.7.3

type MessageGiveawayCompleted struct {

	// Identifier of the message with the giveaway; can be 0 if the message was deleted
	GiveawayMessageId int64 `json:"giveaway_message_id"`
	// Number of winners in the giveaway
	WinnerCount int32 `json:"winner_count"`
	// True, if the giveaway is a Telegram Star giveaway
	IsStarGiveaway bool `json:"is_star_giveaway"`
	// Number of undistributed prizes; for Telegram Premium giveaways only
	UnclaimedPrizeCount int32 `json:"unclaimed_prize_count"`
	// contains filtered or unexported fields
}

A giveaway without public winners has been completed for the chat

func UnmarshalMessageGiveawayCompleted added in v0.7.3

func UnmarshalMessageGiveawayCompleted(data json.RawMessage) (*MessageGiveawayCompleted, error)

func (*MessageGiveawayCompleted) GetClass added in v0.7.3

func (*MessageGiveawayCompleted) GetClass() string

func (*MessageGiveawayCompleted) GetType added in v0.7.3

func (*MessageGiveawayCompleted) GetType() string

func (*MessageGiveawayCompleted) MarshalJSON added in v0.7.3

func (entity *MessageGiveawayCompleted) MarshalJSON() ([]byte, error)

func (*MessageGiveawayCompleted) MessageContentType added in v0.7.3

func (*MessageGiveawayCompleted) MessageContentType() string

type MessageGiveawayCreated added in v0.7.3

type MessageGiveawayCreated struct {

	// Number of Telegram Stars that will be shared by winners of the giveaway; 0 for Telegram Premium giveaways
	StarCount int64 `json:"star_count"`
	// contains filtered or unexported fields
}

A giveaway was created for the chat. Use telegramPaymentPurposePremiumGiveaway, storePaymentPurposePremiumGiveaway, telegramPaymentPurposeStarGiveaway, or storePaymentPurposeStarGiveaway to create a giveaway

func UnmarshalMessageGiveawayCreated added in v0.7.3

func UnmarshalMessageGiveawayCreated(data json.RawMessage) (*MessageGiveawayCreated, error)

func (*MessageGiveawayCreated) GetClass added in v0.7.3

func (*MessageGiveawayCreated) GetClass() string

func (*MessageGiveawayCreated) GetType added in v0.7.3

func (*MessageGiveawayCreated) GetType() string

func (*MessageGiveawayCreated) MarshalJSON added in v0.7.3

func (entity *MessageGiveawayCreated) MarshalJSON() ([]byte, error)

func (*MessageGiveawayCreated) MessageContentType added in v0.7.3

func (*MessageGiveawayCreated) MessageContentType() string

type MessageGiveawayPrizeStars added in v0.7.3

type MessageGiveawayPrizeStars struct {

	// Number of Telegram Stars that were received
	StarCount int64 `json:"star_count"`
	// Identifier of the transaction for Telegram Stars credit
	TransactionId string `json:"transaction_id"`
	// Identifier of the supergroup or channel chat, which was automatically boosted by the winners of the giveaway
	BoostedChatId int64 `json:"boosted_chat_id"`
	// Identifier of the message with the giveaway in the boosted chat; can be 0 if the message was deleted
	GiveawayMessageId int64 `json:"giveaway_message_id"`
	// True, if the corresponding winner wasn't chosen and the Telegram Stars were received by the owner of the boosted chat
	IsUnclaimed bool `json:"is_unclaimed"`
	// A sticker to be shown in the message; may be null if unknown
	Sticker *Sticker `json:"sticker"`
	// contains filtered or unexported fields
}

A Telegram Stars were received by the current user from a giveaway

func UnmarshalMessageGiveawayPrizeStars added in v0.7.3

func UnmarshalMessageGiveawayPrizeStars(data json.RawMessage) (*MessageGiveawayPrizeStars, error)

func (*MessageGiveawayPrizeStars) GetClass added in v0.7.3

func (*MessageGiveawayPrizeStars) GetClass() string

func (*MessageGiveawayPrizeStars) GetType added in v0.7.3

func (*MessageGiveawayPrizeStars) GetType() string

func (*MessageGiveawayPrizeStars) MarshalJSON added in v0.7.3

func (entity *MessageGiveawayPrizeStars) MarshalJSON() ([]byte, error)

func (*MessageGiveawayPrizeStars) MessageContentType added in v0.7.3

func (*MessageGiveawayPrizeStars) MessageContentType() string

type MessageGiveawayWinners added in v0.7.3

type MessageGiveawayWinners struct {

	// Identifier of the supergroup or channel chat, which was automatically boosted by the winners of the giveaway
	BoostedChatId int64 `json:"boosted_chat_id"`
	// Identifier of the message with the giveaway in the boosted chat
	GiveawayMessageId int64 `json:"giveaway_message_id"`
	// Number of other chats that participated in the giveaway
	AdditionalChatCount int32 `json:"additional_chat_count"`
	// Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway
	ActualWinnersSelectionDate int32 `json:"actual_winners_selection_date"`
	// True, if only new members of the chats were eligible for the giveaway
	OnlyNewMembers bool `json:"only_new_members"`
	// True, if the giveaway was canceled and was fully refunded
	WasRefunded bool `json:"was_refunded"`
	// Prize of the giveaway
	Prize GiveawayPrize `json:"prize"`
	// Additional description of the giveaway prize
	PrizeDescription string `json:"prize_description"`
	// Total number of winners in the giveaway
	WinnerCount int32 `json:"winner_count"`
	// Up to 100 user identifiers of the winners of the giveaway
	WinnerUserIds []int64 `json:"winner_user_ids"`
	// Number of undistributed prizes; for Telegram Premium giveaways only
	UnclaimedPrizeCount int32 `json:"unclaimed_prize_count"`
	// contains filtered or unexported fields
}

A giveaway with public winners has been completed for the chat

func UnmarshalMessageGiveawayWinners added in v0.7.3

func UnmarshalMessageGiveawayWinners(data json.RawMessage) (*MessageGiveawayWinners, error)

func (*MessageGiveawayWinners) GetClass added in v0.7.3

func (*MessageGiveawayWinners) GetClass() string

func (*MessageGiveawayWinners) GetType added in v0.7.3

func (*MessageGiveawayWinners) GetType() string

func (*MessageGiveawayWinners) MarshalJSON added in v0.7.3

func (entity *MessageGiveawayWinners) MarshalJSON() ([]byte, error)

func (*MessageGiveawayWinners) MessageContentType added in v0.7.3

func (*MessageGiveawayWinners) MessageContentType() string

func (*MessageGiveawayWinners) UnmarshalJSON added in v0.7.3

func (messageGiveawayWinners *MessageGiveawayWinners) UnmarshalJSON(data []byte) error

type MessageImportInfo added in v0.7.1

type MessageImportInfo struct {

	// Name of the original sender
	SenderName string `json:"sender_name"`
	// Point in time (Unix timestamp) when the message was originally sent
	Date int32 `json:"date"`
	// contains filtered or unexported fields
}

Contains information about a message created with importMessages

func UnmarshalMessageImportInfo added in v0.7.1

func UnmarshalMessageImportInfo(data json.RawMessage) (*MessageImportInfo, error)

func (*MessageImportInfo) GetClass added in v0.7.1

func (*MessageImportInfo) GetClass() string

func (*MessageImportInfo) GetType added in v0.7.1

func (*MessageImportInfo) GetType() string

func (*MessageImportInfo) MarshalJSON added in v0.7.1

func (entity *MessageImportInfo) MarshalJSON() ([]byte, error)

type MessageInteractionInfo added in v0.3.0

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 or tags added to the message; may be null
	Reactions *MessageReactions `json:"reactions"`
	// contains filtered or unexported fields
}

Contains information about interactions with a message

func UnmarshalMessageInteractionInfo added in v0.3.0

func UnmarshalMessageInteractionInfo(data json.RawMessage) (*MessageInteractionInfo, error)

func (*MessageInteractionInfo) GetClass added in v0.3.0

func (*MessageInteractionInfo) GetClass() string

func (*MessageInteractionInfo) GetType added in v0.3.0

func (*MessageInteractionInfo) GetType() string

func (*MessageInteractionInfo) MarshalJSON added in v0.3.0

func (entity *MessageInteractionInfo) MarshalJSON() ([]byte, error)

type MessageInviteVideoChatParticipants added in v0.5.0

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 invitation to a video chat

func UnmarshalMessageInviteVideoChatParticipants added in v0.5.0

func UnmarshalMessageInviteVideoChatParticipants(data json.RawMessage) (*MessageInviteVideoChatParticipants, error)

func (*MessageInviteVideoChatParticipants) GetClass added in v0.5.0

func (*MessageInviteVideoChatParticipants) GetType added in v0.5.0

func (*MessageInviteVideoChatParticipants) MarshalJSON added in v0.5.0

func (entity *MessageInviteVideoChatParticipants) MarshalJSON() ([]byte, error)

func (*MessageInviteVideoChatParticipants) MessageContentType added in v0.5.0

func (*MessageInviteVideoChatParticipants) MessageContentType() string

type MessageInvoice

type MessageInvoice struct {

	// Information about the product
	ProductInfo *ProductInfo `json:"product_info"`
	// 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 if none
	PaidMedia PaidMedia `json:"paid_media"`
	// Extended media caption; may be null if none
	PaidMediaCaption *FormattedText `json:"paid_media_caption"`
	// 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 v0.7.0

func (messageInvoice *MessageInvoice) UnmarshalJSON(data []byte) error
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(data json.RawMessage) (*MessageLink, error)

func (*MessageLink) GetClass added in v0.3.0

func (*MessageLink) GetClass() string

func (*MessageLink) GetType added in v0.3.0

func (*MessageLink) GetType() string

func (*MessageLink) MarshalJSON added in v0.3.0

func (entity *MessageLink) MarshalJSON() ([]byte, error)

type MessageLinkInfo added in v0.1.0

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/story playing must start, in seconds; 0 if not specified. The media can be in the message content or in its link 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 added in v0.1.0

func UnmarshalMessageLinkInfo(data json.RawMessage) (*MessageLinkInfo, error)

func (*MessageLinkInfo) GetClass added in v0.1.0

func (*MessageLinkInfo) GetClass() string

func (*MessageLinkInfo) GetType added in v0.1.0

func (*MessageLinkInfo) GetType() string

func (*MessageLinkInfo) MarshalJSON added in v0.1.0

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; if 0x7FFFFFFF, then location can be updated forever
	LivePeriod int32 `json:"live_period"`
	// Left time for which the location can be updated, in seconds. If 0, then the location can't be updated anymore. The update 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 MessageOrigin added in v0.7.1

type MessageOrigin interface {
	MessageOriginType() string
}

Contains information about the origin of a message

func UnmarshalListOfMessageOrigin added in v0.7.1

func UnmarshalListOfMessageOrigin(dataList []json.RawMessage) ([]MessageOrigin, error)

func UnmarshalMessageOrigin added in v0.7.1

func UnmarshalMessageOrigin(data json.RawMessage) (MessageOrigin, error)

type MessageOriginChannel added in v0.7.1

type MessageOriginChannel struct {

	// Identifier of the channel chat to which the message was originally sent
	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 UnmarshalMessageOriginChannel added in v0.7.1

func UnmarshalMessageOriginChannel(data json.RawMessage) (*MessageOriginChannel, error)

func (*MessageOriginChannel) GetClass added in v0.7.1

func (*MessageOriginChannel) GetClass() string

func (*MessageOriginChannel) GetType added in v0.7.1

func (*MessageOriginChannel) GetType() string

func (*MessageOriginChannel) MarshalJSON added in v0.7.1

func (entity *MessageOriginChannel) MarshalJSON() ([]byte, error)

func (*MessageOriginChannel) MessageOriginType added in v0.7.1

func (*MessageOriginChannel) MessageOriginType() string

type MessageOriginChat added in v0.7.1

type MessageOriginChat 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 UnmarshalMessageOriginChat added in v0.7.1

func UnmarshalMessageOriginChat(data json.RawMessage) (*MessageOriginChat, error)

func (*MessageOriginChat) GetClass added in v0.7.1

func (*MessageOriginChat) GetClass() string

func (*MessageOriginChat) GetType added in v0.7.1

func (*MessageOriginChat) GetType() string

func (*MessageOriginChat) MarshalJSON added in v0.7.1

func (entity *MessageOriginChat) MarshalJSON() ([]byte, error)

func (*MessageOriginChat) MessageOriginType added in v0.7.1

func (*MessageOriginChat) MessageOriginType() string

type MessageOriginHiddenUser added in v0.7.1

type MessageOriginHiddenUser 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 UnmarshalMessageOriginHiddenUser added in v0.7.1

func UnmarshalMessageOriginHiddenUser(data json.RawMessage) (*MessageOriginHiddenUser, error)

func (*MessageOriginHiddenUser) GetClass added in v0.7.1

func (*MessageOriginHiddenUser) GetClass() string

func (*MessageOriginHiddenUser) GetType added in v0.7.1

func (*MessageOriginHiddenUser) GetType() string

func (*MessageOriginHiddenUser) MarshalJSON added in v0.7.1

func (entity *MessageOriginHiddenUser) MarshalJSON() ([]byte, error)

func (*MessageOriginHiddenUser) MessageOriginType added in v0.7.1

func (*MessageOriginHiddenUser) MessageOriginType() string

type MessageOriginUser added in v0.7.1

type MessageOriginUser 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 UnmarshalMessageOriginUser added in v0.7.1

func UnmarshalMessageOriginUser(data json.RawMessage) (*MessageOriginUser, error)

func (*MessageOriginUser) GetClass added in v0.7.1

func (*MessageOriginUser) GetClass() string

func (*MessageOriginUser) GetType added in v0.7.1

func (*MessageOriginUser) GetType() string

func (*MessageOriginUser) MarshalJSON added in v0.7.1

func (entity *MessageOriginUser) MarshalJSON() ([]byte, error)

func (*MessageOriginUser) MessageOriginType added in v0.7.1

func (*MessageOriginUser) MessageOriginType() string

type MessagePaidMedia added in v0.7.3

type MessagePaidMedia struct {

	// Number of Telegram Stars needed to buy access to the media in the message
	StarCount int64 `json:"star_count"`
	// Information about the media
	Media []PaidMedia `json:"media"`
	// Media caption
	Caption *FormattedText `json:"caption"`
	// True, if the caption must be shown above the media; otherwise, the caption must be shown below the media
	ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
	// contains filtered or unexported fields
}

A message with paid media

func UnmarshalMessagePaidMedia added in v0.7.3

func UnmarshalMessagePaidMedia(data json.RawMessage) (*MessagePaidMedia, error)

func (*MessagePaidMedia) GetClass added in v0.7.3

func (*MessagePaidMedia) GetClass() string

func (*MessagePaidMedia) GetType added in v0.7.3

func (*MessagePaidMedia) GetType() string

func (*MessagePaidMedia) MarshalJSON added in v0.7.3

func (entity *MessagePaidMedia) MarshalJSON() ([]byte, error)

func (*MessagePaidMedia) MessageContentType added in v0.7.3

func (*MessagePaidMedia) MessageContentType() string

func (*MessagePaidMedia) UnmarshalJSON added in v0.7.3

func (messagePaidMedia *MessagePaidMedia) UnmarshalJSON(data []byte) error

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) 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 added in v0.3.2

func (messagePassportDataSent *MessagePassportDataSent) UnmarshalJSON(data []byte) error

type MessagePaymentRefunded added in v0.7.3

type MessagePaymentRefunded struct {

	// Identifier of the previous owner of the Telegram Stars that refunds them
	OwnerId MessageSender `json:"owner_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"`
	// Invoice payload; only for bots
	InvoicePayload []byte `json:"invoice_payload"`
	// 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 refunded

func UnmarshalMessagePaymentRefunded added in v0.7.3

func UnmarshalMessagePaymentRefunded(data json.RawMessage) (*MessagePaymentRefunded, error)

func (*MessagePaymentRefunded) GetClass added in v0.7.3

func (*MessagePaymentRefunded) GetClass() string

func (*MessagePaymentRefunded) GetType added in v0.7.3

func (*MessagePaymentRefunded) GetType() string

func (*MessagePaymentRefunded) MarshalJSON added in v0.7.3

func (entity *MessagePaymentRefunded) MarshalJSON() ([]byte, error)

func (*MessagePaymentRefunded) MessageContentType added in v0.7.3

func (*MessagePaymentRefunded) MessageContentType() string

func (*MessagePaymentRefunded) UnmarshalJSON added in v0.7.3

func (messagePaymentRefunded *MessagePaymentRefunded) 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"`
	// Point in time (Unix timestamp) when the subscription will expire; 0 if unknown or the payment isn't recurring
	SubscriptionUntilDate int32 `json:"subscription_until_date"`
	// 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 sent to a bot or a business account

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"`
	// Point in time (Unix timestamp) when the subscription will expire; 0 if unknown or the payment isn't recurring
	SubscriptionUntilDate int32 `json:"subscription_until_date"`
	// 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; for bots only
	ShippingOptionId string `json:"shipping_option_id"`
	// Information about the order; may be null; for bots only
	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 received by the bot or the business account

func UnmarshalMessagePaymentSuccessfulBot

func UnmarshalMessagePaymentSuccessfulBot(data json.RawMessage) (*MessagePaymentSuccessfulBot, error)

func (*MessagePaymentSuccessfulBot) GetClass

func (*MessagePaymentSuccessfulBot) GetClass() string

func (*MessagePaymentSuccessfulBot) GetType

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 caption must be shown above the photo; otherwise, the caption must be shown below the photo
	ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
	// 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 added in v0.0.13

type MessagePoll struct {

	// The poll description
	Poll *Poll `json:"poll"`
	// contains filtered or unexported fields
}

A message with a poll

func UnmarshalMessagePoll added in v0.0.13

func UnmarshalMessagePoll(data json.RawMessage) (*MessagePoll, error)

func (*MessagePoll) GetClass added in v0.0.13

func (*MessagePoll) GetClass() string

func (*MessagePoll) GetType added in v0.0.13

func (*MessagePoll) GetType() string

func (*MessagePoll) MarshalJSON added in v0.0.13

func (entity *MessagePoll) MarshalJSON() ([]byte, error)

func (*MessagePoll) MessageContentType added in v0.0.13

func (*MessagePoll) MessageContentType() string

type MessagePosition added in v0.5.0

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 added in v0.5.0

func UnmarshalMessagePosition(data json.RawMessage) (*MessagePosition, error)

func (*MessagePosition) GetClass added in v0.5.0

func (*MessagePosition) GetClass() string

func (*MessagePosition) GetType added in v0.5.0

func (*MessagePosition) GetType() string

func (*MessagePosition) MarshalJSON added in v0.5.0

func (entity *MessagePosition) MarshalJSON() ([]byte, error)

type MessagePositions added in v0.5.0

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 added in v0.5.0

func UnmarshalMessagePositions(data json.RawMessage) (*MessagePositions, error)

func (*MessagePositions) GetClass added in v0.5.0

func (*MessagePositions) GetClass() string

func (*MessagePositions) GetType added in v0.5.0

func (*MessagePositions) GetType() string

func (*MessagePositions) MarshalJSON added in v0.5.0

func (entity *MessagePositions) MarshalJSON() ([]byte, error)

type MessagePremiumGiftCode added in v0.7.1

type MessagePremiumGiftCode struct {

	// Identifier of a chat or a user that created the gift code; may be null if unknown
	CreatorId MessageSender `json:"creator_id"`
	// Message added to the gift
	Text *FormattedText `json:"text"`
	// True, if the gift code was created for a giveaway
	IsFromGiveaway bool `json:"is_from_giveaway"`
	// True, if the winner for the corresponding Telegram Premium subscription wasn't chosen
	IsUnclaimed bool `json:"is_unclaimed"`
	// Currency for the paid amount; empty if unknown
	Currency string `json:"currency"`
	// The paid amount, in the smallest units of the currency; 0 if unknown
	Amount int64 `json:"amount"`
	// Cryptocurrency used to pay for the gift; may be empty if none or unknown
	Cryptocurrency string `json:"cryptocurrency"`
	// The paid amount, in the smallest units of the cryptocurrency; 0 if unknown
	CryptocurrencyAmount JsonInt64 `json:"cryptocurrency_amount"`
	// Number of months the Telegram Premium subscription will be active after code activation
	MonthCount int32 `json:"month_count"`
	// A sticker to be shown in the message; may be null if unknown
	Sticker *Sticker `json:"sticker"`
	// The gift code
	Code string `json:"code"`
	// contains filtered or unexported fields
}

A Telegram Premium gift code was created for the user

func UnmarshalMessagePremiumGiftCode added in v0.7.1

func UnmarshalMessagePremiumGiftCode(data json.RawMessage) (*MessagePremiumGiftCode, error)

func (*MessagePremiumGiftCode) GetClass added in v0.7.1

func (*MessagePremiumGiftCode) GetClass() string

func (*MessagePremiumGiftCode) GetType added in v0.7.1

func (*MessagePremiumGiftCode) GetType() string

func (*MessagePremiumGiftCode) MarshalJSON added in v0.7.1

func (entity *MessagePremiumGiftCode) MarshalJSON() ([]byte, error)

func (*MessagePremiumGiftCode) MessageContentType added in v0.7.1

func (*MessagePremiumGiftCode) MessageContentType() string

func (*MessagePremiumGiftCode) UnmarshalJSON added in v0.7.1

func (messagePremiumGiftCode *MessagePremiumGiftCode) UnmarshalJSON(data []byte) error

type MessageProperties added in v0.7.3

type MessageProperties struct {

	// True, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options
	CanBeCopiedToSecretChat bool `json:"can_be_copied_to_secret_chat"`
	// True, if the message can be deleted only for the current user while other users will continue to see it using the method deleteMessages with revoke == false
	CanBeDeletedOnlyForSelf bool `json:"can_be_deleted_only_for_self"`
	// True, if the message can be deleted for all users using the method deleteMessages with revoke == true
	CanBeDeletedForAllUsers bool `json:"can_be_deleted_for_all_users"`
	// True, if the message can be edited using the methods editMessageText, editMessageCaption, or editMessageReplyMarkup. For live location and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this message
	CanBeEdited bool `json:"can_be_edited"`
	// True, if the message can be forwarded using inputMessageForwarded or forwardMessages
	CanBeForwarded bool `json:"can_be_forwarded"`
	// True, if the message can be paid using inputInvoiceMessage
	CanBePaid bool `json:"can_be_paid"`
	// True, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage
	CanBePinned bool `json:"can_be_pinned"`
	// True, if the message can be replied in the same chat and forum topic using inputMessageReplyToMessage
	CanBeReplied bool `json:"can_be_replied"`
	// True, if the message can be replied in another chat or forum topic using inputMessageReplyToExternalMessage
	CanBeRepliedInAnotherChat bool `json:"can_be_replied_in_another_chat"`
	// True, if content of the message can be saved locally or copied using inputMessageForwarded or forwardMessages with copy options
	CanBeSaved bool `json:"can_be_saved"`
	// True, if the message can be shared in a story using inputStoryAreaTypeMessage
	CanBeSharedInStory bool `json:"can_be_shared_in_story"`
	// True, if the message can be edited using the method editMessageMedia
	CanEditMedia bool `json:"can_edit_media"`
	// True, if scheduling state of the message can be edited
	CanEditSchedulingState bool `json:"can_edit_scheduling_state"`
	// True, if code for message embedding can be received using getMessageEmbeddingCode
	CanGetEmbeddingCode bool `json:"can_get_embedding_code"`
	// True, if a link can be generated for the message using getMessageLink
	CanGetLink bool `json:"can_get_link"`
	// True, if media timestamp links can be generated for media timestamp entities in the message text, caption or link preview description using getMessageLink
	CanGetMediaTimestampLinks bool `json:"can_get_media_timestamp_links"`
	// True, if information about the message thread is available through getMessageThread and getMessageThreadHistory
	CanGetMessageThread bool `json:"can_get_message_thread"`
	// True, if read date of the message can be received through getMessageReadDate
	CanGetReadDate bool `json:"can_get_read_date"`
	// True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards
	CanGetStatistics bool `json:"can_get_statistics"`
	// True, if chat members already viewed the message can be received through getMessageViewers
	CanGetViewers bool `json:"can_get_viewers"`
	// True, if speech can be recognized for the message through recognizeSpeech
	CanRecognizeSpeech bool `json:"can_recognize_speech"`
	// True, if the message can be reported using reportChat
	CanReportChat bool `json:"can_report_chat"`
	// True, if reactions on the message can be reported through reportMessageReactions
	CanReportReactions bool `json:"can_report_reactions"`
	// True, if the message can be reported using reportSupergroupSpam
	CanReportSupergroupSpam bool `json:"can_report_supergroup_spam"`
	// True, if fact check for the message can be changed through setMessageFactCheck
	CanSetFactCheck bool `json:"can_set_fact_check"`
	// True, if message statistics must be available from context menu of the message
	NeedShowStatistics bool `json:"need_show_statistics"`
	// contains filtered or unexported fields
}

Contains properties of a message and describes actions that can be done with the message right now

func UnmarshalMessageProperties added in v0.7.3

func UnmarshalMessageProperties(data json.RawMessage) (*MessageProperties, error)

func (*MessageProperties) GetClass added in v0.7.3

func (*MessageProperties) GetClass() string

func (*MessageProperties) GetType added in v0.7.3

func (*MessageProperties) GetType() string

func (*MessageProperties) MarshalJSON added in v0.7.3

func (entity *MessageProperties) MarshalJSON() ([]byte, error)

type MessageProximityAlertTriggered added in v0.3.0

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 added in v0.3.0

func UnmarshalMessageProximityAlertTriggered(data json.RawMessage) (*MessageProximityAlertTriggered, error)

func (*MessageProximityAlertTriggered) GetClass added in v0.3.0

func (*MessageProximityAlertTriggered) GetType added in v0.3.0

func (*MessageProximityAlertTriggered) MarshalJSON added in v0.3.0

func (entity *MessageProximityAlertTriggered) MarshalJSON() ([]byte, error)

func (*MessageProximityAlertTriggered) MessageContentType added in v0.3.0

func (*MessageProximityAlertTriggered) MessageContentType() string

func (*MessageProximityAlertTriggered) UnmarshalJSON added in v0.3.0

func (messageProximityAlertTriggered *MessageProximityAlertTriggered) UnmarshalJSON(data []byte) error

type MessageReaction added in v0.7.0

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"`
	// Identifier of the message sender used by the current user to add the reaction; may be null if unknown or the reaction isn't chosen
	UsedSenderId MessageSender `json:"used_sender_id"`
	// 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 v0.7.0

func UnmarshalMessageReaction(data json.RawMessage) (*MessageReaction, error)

func (*MessageReaction) GetClass added in v0.7.0

func (*MessageReaction) GetClass() string

func (*MessageReaction) GetType added in v0.7.0

func (*MessageReaction) GetType() string

func (*MessageReaction) MarshalJSON added in v0.7.0

func (entity *MessageReaction) MarshalJSON() ([]byte, error)

func (*MessageReaction) UnmarshalJSON added in v0.7.0

func (messageReaction *MessageReaction) UnmarshalJSON(data []byte) error

type MessageReactions added in v0.7.2

type MessageReactions struct {

	// List of added reactions
	Reactions []*MessageReaction `json:"reactions"`
	// True, if the reactions are tags and Telegram Premium users can filter messages by them
	AreTags bool `json:"are_tags"`
	// Information about top users that added the paid reaction
	PaidReactors []*PaidReactor `json:"paid_reactors"`
	// True, if the list of added reactions is available using getMessageAddedReactions
	CanGetAddedReactions bool `json:"can_get_added_reactions"`
	// contains filtered or unexported fields
}

Contains a list of reactions added to a message

func UnmarshalMessageReactions added in v0.7.2

func UnmarshalMessageReactions(data json.RawMessage) (*MessageReactions, error)

func (*MessageReactions) GetClass added in v0.7.2

func (*MessageReactions) GetClass() string

func (*MessageReactions) GetType added in v0.7.2

func (*MessageReactions) GetType() string

func (*MessageReactions) MarshalJSON added in v0.7.2

func (entity *MessageReactions) MarshalJSON() ([]byte, error)

type MessageReadDate added in v0.7.2

type MessageReadDate interface {
	MessageReadDateType() string
}

Describes read date of a recent outgoing message in a private chat

func UnmarshalListOfMessageReadDate added in v0.7.2

func UnmarshalListOfMessageReadDate(dataList []json.RawMessage) ([]MessageReadDate, error)

func UnmarshalMessageReadDate added in v0.7.2

func UnmarshalMessageReadDate(data json.RawMessage) (MessageReadDate, error)

type MessageReadDateMyPrivacyRestricted added in v0.7.2

type MessageReadDateMyPrivacyRestricted struct {
	// contains filtered or unexported fields
}

The read date is unknown due to privacy settings of the current user, but will be known if the user subscribes to Telegram Premium

func UnmarshalMessageReadDateMyPrivacyRestricted added in v0.7.2

func UnmarshalMessageReadDateMyPrivacyRestricted(data json.RawMessage) (*MessageReadDateMyPrivacyRestricted, error)

func (*MessageReadDateMyPrivacyRestricted) GetClass added in v0.7.2

func (*MessageReadDateMyPrivacyRestricted) GetType added in v0.7.2

func (*MessageReadDateMyPrivacyRestricted) MarshalJSON added in v0.7.2

func (entity *MessageReadDateMyPrivacyRestricted) MarshalJSON() ([]byte, error)

func (*MessageReadDateMyPrivacyRestricted) MessageReadDateType added in v0.7.2

func (*MessageReadDateMyPrivacyRestricted) MessageReadDateType() string

type MessageReadDateRead added in v0.7.2

type MessageReadDateRead struct {

	// Point in time (Unix timestamp) when the message was read by the other user
	ReadDate int32 `json:"read_date"`
	// contains filtered or unexported fields
}

Contains read date of the message

func UnmarshalMessageReadDateRead added in v0.7.2

func UnmarshalMessageReadDateRead(data json.RawMessage) (*MessageReadDateRead, error)

func (*MessageReadDateRead) GetClass added in v0.7.2

func (*MessageReadDateRead) GetClass() string

func (*MessageReadDateRead) GetType added in v0.7.2

func (*MessageReadDateRead) GetType() string

func (*MessageReadDateRead) MarshalJSON added in v0.7.2

func (entity *MessageReadDateRead) MarshalJSON() ([]byte, error)

func (*MessageReadDateRead) MessageReadDateType added in v0.7.2

func (*MessageReadDateRead) MessageReadDateType() string

type MessageReadDateTooOld added in v0.7.2

type MessageReadDateTooOld struct {
	// contains filtered or unexported fields
}

The message is too old to get read date

func UnmarshalMessageReadDateTooOld added in v0.7.2

func UnmarshalMessageReadDateTooOld(data json.RawMessage) (*MessageReadDateTooOld, error)

func (*MessageReadDateTooOld) GetClass added in v0.7.2

func (*MessageReadDateTooOld) GetClass() string

func (*MessageReadDateTooOld) GetType added in v0.7.2

func (*MessageReadDateTooOld) GetType() string

func (*MessageReadDateTooOld) MarshalJSON added in v0.7.2

func (entity *MessageReadDateTooOld) MarshalJSON() ([]byte, error)

func (*MessageReadDateTooOld) MessageReadDateType added in v0.7.2

func (*MessageReadDateTooOld) MessageReadDateType() string

type MessageReadDateUnread added in v0.7.2

type MessageReadDateUnread struct {
	// contains filtered or unexported fields
}

The message is unread yet

func UnmarshalMessageReadDateUnread added in v0.7.2

func UnmarshalMessageReadDateUnread(data json.RawMessage) (*MessageReadDateUnread, error)

func (*MessageReadDateUnread) GetClass added in v0.7.2

func (*MessageReadDateUnread) GetClass() string

func (*MessageReadDateUnread) GetType added in v0.7.2

func (*MessageReadDateUnread) GetType() string

func (*MessageReadDateUnread) MarshalJSON added in v0.7.2

func (entity *MessageReadDateUnread) MarshalJSON() ([]byte, error)

func (*MessageReadDateUnread) MessageReadDateType added in v0.7.2

func (*MessageReadDateUnread) MessageReadDateType() string

type MessageReadDateUserPrivacyRestricted added in v0.7.2

type MessageReadDateUserPrivacyRestricted struct {
	// contains filtered or unexported fields
}

The read date is unknown due to privacy settings of the other user

func UnmarshalMessageReadDateUserPrivacyRestricted added in v0.7.2

func UnmarshalMessageReadDateUserPrivacyRestricted(data json.RawMessage) (*MessageReadDateUserPrivacyRestricted, error)

func (*MessageReadDateUserPrivacyRestricted) GetClass added in v0.7.2

func (*MessageReadDateUserPrivacyRestricted) GetType added in v0.7.2

func (*MessageReadDateUserPrivacyRestricted) MarshalJSON added in v0.7.2

func (entity *MessageReadDateUserPrivacyRestricted) MarshalJSON() ([]byte, error)

func (*MessageReadDateUserPrivacyRestricted) MessageReadDateType added in v0.7.2

func (*MessageReadDateUserPrivacyRestricted) MessageReadDateType() string

type MessageReplyInfo added in v0.3.0

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 added in v0.3.0

func UnmarshalMessageReplyInfo(data json.RawMessage) (*MessageReplyInfo, error)

func (*MessageReplyInfo) GetClass added in v0.3.0

func (*MessageReplyInfo) GetClass() string

func (*MessageReplyInfo) GetType added in v0.3.0

func (*MessageReplyInfo) GetType() string

func (*MessageReplyInfo) MarshalJSON added in v0.3.0

func (entity *MessageReplyInfo) MarshalJSON() ([]byte, error)

func (*MessageReplyInfo) UnmarshalJSON added in v0.3.2

func (messageReplyInfo *MessageReplyInfo) UnmarshalJSON(data []byte) error

type MessageReplyTo added in v0.7.0

type MessageReplyTo interface {
	MessageReplyToType() string
}

Contains information about the message or the story a message is replying to

func UnmarshalListOfMessageReplyTo added in v0.7.0

func UnmarshalListOfMessageReplyTo(dataList []json.RawMessage) ([]MessageReplyTo, error)

func UnmarshalMessageReplyTo added in v0.7.0

func UnmarshalMessageReplyTo(data json.RawMessage) (MessageReplyTo, error)

type MessageReplyToMessage added in v0.7.0

type MessageReplyToMessage struct {

	// The identifier of the chat to which the message belongs; may be 0 if the replied message is in unknown chat
	ChatId int64 `json:"chat_id"`
	// The identifier of the message; may be 0 if the replied message is in unknown chat
	MessageId int64 `json:"message_id"`
	// Chosen quote from the replied message; may be null if none
	Quote *TextQuote `json:"quote"`
	// Information about origin of the message if the message was from another chat or topic; may be null for messages from the same chat
	Origin MessageOrigin `json:"origin"`
	// Point in time (Unix timestamp) when the message was sent if the message was from another chat or topic; 0 for messages from the same chat
	OriginSendDate int32 `json:"origin_send_date"`
	// Media content of the message if the message was from another chat or topic; may be null for messages from the same chat and messages without media. Can be only one of the following types: messageAnimation, messageAudio, messageContact, messageDice, messageDocument, messageGame, messageGiveaway, messageGiveawayWinners, messageInvoice, messageLocation, messagePaidMedia, messagePhoto, messagePoll, messageSticker, messageStory, messageText (for link preview), messageVenue, messageVideo, messageVideoNote, or messageVoiceNote
	Content MessageContent `json:"content"`
	// contains filtered or unexported fields
}

Describes a message replied by a given message

func UnmarshalMessageReplyToMessage added in v0.7.0

func UnmarshalMessageReplyToMessage(data json.RawMessage) (*MessageReplyToMessage, error)

func (*MessageReplyToMessage) GetClass added in v0.7.0

func (*MessageReplyToMessage) GetClass() string

func (*MessageReplyToMessage) GetType added in v0.7.0

func (*MessageReplyToMessage) GetType() string

func (*MessageReplyToMessage) MarshalJSON added in v0.7.0

func (entity *MessageReplyToMessage) MarshalJSON() ([]byte, error)

func (*MessageReplyToMessage) MessageReplyToType added in v0.7.0

func (*MessageReplyToMessage) MessageReplyToType() string

func (*MessageReplyToMessage) UnmarshalJSON added in v0.7.1

func (messageReplyToMessage *MessageReplyToMessage) UnmarshalJSON(data []byte) error

type MessageReplyToStory added in v0.7.0

type MessageReplyToStory 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"`
	// contains filtered or unexported fields
}

Describes a story replied by a given message

func UnmarshalMessageReplyToStory added in v0.7.0

func UnmarshalMessageReplyToStory(data json.RawMessage) (*MessageReplyToStory, error)

func (*MessageReplyToStory) GetClass added in v0.7.0

func (*MessageReplyToStory) GetClass() string

func (*MessageReplyToStory) GetType added in v0.7.0

func (*MessageReplyToStory) GetType() string

func (*MessageReplyToStory) MarshalJSON added in v0.7.0

func (entity *MessageReplyToStory) MarshalJSON() ([]byte, error)

func (*MessageReplyToStory) MessageReplyToType added in v0.7.0

func (*MessageReplyToStory) MessageReplyToType() string

type MessageSchedulingState added in v0.2.0

type MessageSchedulingState interface {
	MessageSchedulingStateType() string
}

Contains information about the time when a scheduled message will be sent

func UnmarshalListOfMessageSchedulingState added in v0.3.2

func UnmarshalListOfMessageSchedulingState(dataList []json.RawMessage) ([]MessageSchedulingState, error)

func UnmarshalMessageSchedulingState added in v0.2.0

func UnmarshalMessageSchedulingState(data json.RawMessage) (MessageSchedulingState, error)

type MessageSchedulingStateSendAtDate added in v0.2.0

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 added in v0.2.0

func UnmarshalMessageSchedulingStateSendAtDate(data json.RawMessage) (*MessageSchedulingStateSendAtDate, error)

func (*MessageSchedulingStateSendAtDate) GetClass added in v0.2.0

func (*MessageSchedulingStateSendAtDate) GetType added in v0.2.0

func (*MessageSchedulingStateSendAtDate) MarshalJSON added in v0.2.0

func (entity *MessageSchedulingStateSendAtDate) MarshalJSON() ([]byte, error)

func (*MessageSchedulingStateSendAtDate) MessageSchedulingStateType added in v0.2.0

func (*MessageSchedulingStateSendAtDate) MessageSchedulingStateType() string

type MessageSchedulingStateSendWhenOnline added in v0.2.0

type MessageSchedulingStateSendWhenOnline struct {
	// contains filtered or unexported fields
}

The message will be sent when the other user is online. Applicable to private chats only and when the exact online status of the other user is known

func UnmarshalMessageSchedulingStateSendWhenOnline added in v0.2.0

func UnmarshalMessageSchedulingStateSendWhenOnline(data json.RawMessage) (*MessageSchedulingStateSendWhenOnline, error)

func (*MessageSchedulingStateSendWhenOnline) GetClass added in v0.2.0

func (*MessageSchedulingStateSendWhenOnline) GetType added in v0.2.0

func (*MessageSchedulingStateSendWhenOnline) MarshalJSON added in v0.2.0

func (entity *MessageSchedulingStateSendWhenOnline) MarshalJSON() ([]byte, error)

func (*MessageSchedulingStateSendWhenOnline) MessageSchedulingStateType added in v0.2.0

func (*MessageSchedulingStateSendWhenOnline) MessageSchedulingStateType() string

type MessageSchedulingStateSendWhenVideoProcessed added in v0.7.3

type MessageSchedulingStateSendWhenVideoProcessed struct {

	// Approximate point in time (Unix timestamp) when the message is expected to be sent
	SendDate int32 `json:"send_date"`
	// contains filtered or unexported fields
}

The message will be sent when the video in the message is converted and optimized; can be used only by the server

func UnmarshalMessageSchedulingStateSendWhenVideoProcessed added in v0.7.3

func UnmarshalMessageSchedulingStateSendWhenVideoProcessed(data json.RawMessage) (*MessageSchedulingStateSendWhenVideoProcessed, error)

func (*MessageSchedulingStateSendWhenVideoProcessed) GetClass added in v0.7.3

func (*MessageSchedulingStateSendWhenVideoProcessed) GetType added in v0.7.3

func (*MessageSchedulingStateSendWhenVideoProcessed) MarshalJSON added in v0.7.3

func (entity *MessageSchedulingStateSendWhenVideoProcessed) MarshalJSON() ([]byte, error)

func (*MessageSchedulingStateSendWhenVideoProcessed) MessageSchedulingStateType added in v0.7.3

func (*MessageSchedulingStateSendWhenVideoProcessed) 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 v0.7.0

type MessageSelfDestructType interface {
	MessageSelfDestructTypeType() string
}

Describes when a message will be self-destructed

func UnmarshalListOfMessageSelfDestructType added in v0.7.0

func UnmarshalListOfMessageSelfDestructType(dataList []json.RawMessage) ([]MessageSelfDestructType, error)

func UnmarshalMessageSelfDestructType added in v0.7.0

func UnmarshalMessageSelfDestructType(data json.RawMessage) (MessageSelfDestructType, error)

type MessageSelfDestructTypeImmediately added in v0.7.0

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 v0.7.0

func UnmarshalMessageSelfDestructTypeImmediately(data json.RawMessage) (*MessageSelfDestructTypeImmediately, error)

func (*MessageSelfDestructTypeImmediately) GetClass added in v0.7.0

func (*MessageSelfDestructTypeImmediately) GetType added in v0.7.0

func (*MessageSelfDestructTypeImmediately) MarshalJSON added in v0.7.0

func (entity *MessageSelfDestructTypeImmediately) MarshalJSON() ([]byte, error)

func (*MessageSelfDestructTypeImmediately) MessageSelfDestructTypeType added in v0.7.0

func (*MessageSelfDestructTypeImmediately) MessageSelfDestructTypeType() string

type MessageSelfDestructTypeTimer added in v0.7.0

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 v0.7.0

func UnmarshalMessageSelfDestructTypeTimer(data json.RawMessage) (*MessageSelfDestructTypeTimer, error)

func (*MessageSelfDestructTypeTimer) GetClass added in v0.7.0

func (*MessageSelfDestructTypeTimer) GetType added in v0.7.0

func (*MessageSelfDestructTypeTimer) MarshalJSON added in v0.7.0

func (entity *MessageSelfDestructTypeTimer) MarshalJSON() ([]byte, error)

func (*MessageSelfDestructTypeTimer) MessageSelfDestructTypeType added in v0.7.0

func (*MessageSelfDestructTypeTimer) MessageSelfDestructTypeType() string

type MessageSendOptions added in v0.3.0

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 to allow the message to ignore regular broadcast limits for a small fee; for bots only
	AllowPaidBroadcast bool `json:"allow_paid_broadcast"`
	// 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"`
	// Identifier of the effect to apply to the message; pass 0 if none; applicable only to sendMessage and sendMessageAlbum in private chats
	EffectId JsonInt64 `json:"effect_id"`
	// 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"`
	// Pass true to get a fake message instead of actually sending them
	OnlyPreview bool `json:"only_preview"`
	// contains filtered or unexported fields
}

Options to be used when a message is sent

func UnmarshalMessageSendOptions added in v0.3.0

func UnmarshalMessageSendOptions(data json.RawMessage) (*MessageSendOptions, error)

func (*MessageSendOptions) GetClass added in v0.3.0

func (*MessageSendOptions) GetClass() string

func (*MessageSendOptions) GetType added in v0.3.0

func (*MessageSendOptions) GetType() string

func (*MessageSendOptions) MarshalJSON added in v0.3.0

func (entity *MessageSendOptions) MarshalJSON() ([]byte, error)

func (*MessageSendOptions) UnmarshalJSON added in v0.3.0

func (messageSendOptions *MessageSendOptions) UnmarshalJSON(data []byte) error

type MessageSender added in v0.3.0

type MessageSender interface {
	MessageSenderType() string
}

Contains information about the sender of a message

func UnmarshalListOfMessageSender added in v0.3.2

func UnmarshalListOfMessageSender(dataList []json.RawMessage) ([]MessageSender, error)

func UnmarshalMessageSender added in v0.3.0

func UnmarshalMessageSender(data json.RawMessage) (MessageSender, error)

type MessageSenderChat added in v0.3.0

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 added in v0.3.0

func UnmarshalMessageSenderChat(data json.RawMessage) (*MessageSenderChat, error)

func (*MessageSenderChat) GetClass added in v0.3.0

func (*MessageSenderChat) GetClass() string

func (*MessageSenderChat) GetType added in v0.3.0

func (*MessageSenderChat) GetType() string

func (*MessageSenderChat) MarshalJSON added in v0.3.0

func (entity *MessageSenderChat) MarshalJSON() ([]byte, error)

func (*MessageSenderChat) MessageSenderType added in v0.3.0

func (*MessageSenderChat) MessageSenderType() string

type MessageSenderUser added in v0.3.0

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 added in v0.3.0

func UnmarshalMessageSenderUser(data json.RawMessage) (*MessageSenderUser, error)

func (*MessageSenderUser) GetClass added in v0.3.0

func (*MessageSenderUser) GetClass() string

func (*MessageSenderUser) GetType added in v0.3.0

func (*MessageSenderUser) GetType() string

func (*MessageSenderUser) MarshalJSON added in v0.3.0

func (entity *MessageSenderUser) MarshalJSON() ([]byte, error)

func (*MessageSenderUser) MessageSenderType added in v0.3.0

func (*MessageSenderUser) MessageSenderType() string

type MessageSenders added in v0.3.0

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 added in v0.3.0

func UnmarshalMessageSenders(data json.RawMessage) (*MessageSenders, error)

func (*MessageSenders) GetClass added in v0.3.0

func (*MessageSenders) GetClass() string

func (*MessageSenders) GetType added in v0.3.0

func (*MessageSenders) GetType() string

func (*MessageSenders) MarshalJSON added in v0.3.0

func (entity *MessageSenders) MarshalJSON() ([]byte, error)

func (*MessageSenders) UnmarshalJSON added in v0.3.2

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 added in v0.3.2

func UnmarshalListOfMessageSendingState(dataList []json.RawMessage) ([]MessageSendingState, error)

func UnmarshalMessageSendingState

func UnmarshalMessageSendingState(data json.RawMessage) (MessageSendingState, error)

type MessageSendingStateFailed

type MessageSendingStateFailed struct {

	// The cause of the message sending failure
	Error *Error `json:"error"`
	// True, if the message can be re-sent using resendMessages or readdQuickReplyShortcutMessages
	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"`
	// True, if the message can be re-sent only if another quote is chosen in the message that is replied by the given message
	NeedAnotherReplyQuote bool `json:"need_another_reply_quote"`
	// True, if the message can be re-sent only if the message to be replied is removed. This will be done automatically by resendMessages
	NeedDropReply bool `json:"need_drop_reply"`
	// 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) MarshalJSON

func (entity *MessageSendingStatePending) MarshalJSON() ([]byte, error)

func (*MessageSendingStatePending) MessageSendingStateType

func (*MessageSendingStatePending) MessageSendingStateType() string

type MessageSource added in v0.7.0

type MessageSource interface {
	MessageSourceType() string
}

Describes source of a message

func UnmarshalListOfMessageSource added in v0.7.0

func UnmarshalListOfMessageSource(dataList []json.RawMessage) ([]MessageSource, error)

func UnmarshalMessageSource added in v0.7.0

func UnmarshalMessageSource(data json.RawMessage) (MessageSource, error)

type MessageSourceChatEventLog added in v0.7.0

type MessageSourceChatEventLog struct {
	// contains filtered or unexported fields
}

The message is from a chat event log

func UnmarshalMessageSourceChatEventLog added in v0.7.0

func UnmarshalMessageSourceChatEventLog(data json.RawMessage) (*MessageSourceChatEventLog, error)

func (*MessageSourceChatEventLog) GetClass added in v0.7.0

func (*MessageSourceChatEventLog) GetClass() string

func (*MessageSourceChatEventLog) GetType added in v0.7.0

func (*MessageSourceChatEventLog) GetType() string

func (*MessageSourceChatEventLog) MarshalJSON added in v0.7.0

func (entity *MessageSourceChatEventLog) MarshalJSON() ([]byte, error)

func (*MessageSourceChatEventLog) MessageSourceType added in v0.7.0

func (*MessageSourceChatEventLog) MessageSourceType() string

type MessageSourceChatHistory added in v0.7.0

type MessageSourceChatHistory struct {
	// contains filtered or unexported fields
}

The message is from a chat history

func UnmarshalMessageSourceChatHistory added in v0.7.0

func UnmarshalMessageSourceChatHistory(data json.RawMessage) (*MessageSourceChatHistory, error)

func (*MessageSourceChatHistory) GetClass added in v0.7.0

func (*MessageSourceChatHistory) GetClass() string

func (*MessageSourceChatHistory) GetType added in v0.7.0

func (*MessageSourceChatHistory) GetType() string

func (*MessageSourceChatHistory) MarshalJSON added in v0.7.0

func (entity *MessageSourceChatHistory) MarshalJSON() ([]byte, error)

func (*MessageSourceChatHistory) MessageSourceType added in v0.7.0

func (*MessageSourceChatHistory) MessageSourceType() string

type MessageSourceChatList added in v0.7.0

type MessageSourceChatList struct {
	// contains filtered or unexported fields
}

The message is from a chat list or a forum topic list

func UnmarshalMessageSourceChatList added in v0.7.0

func UnmarshalMessageSourceChatList(data json.RawMessage) (*MessageSourceChatList, error)

func (*MessageSourceChatList) GetClass added in v0.7.0

func (*MessageSourceChatList) GetClass() string

func (*MessageSourceChatList) GetType added in v0.7.0

func (*MessageSourceChatList) GetType() string

func (*MessageSourceChatList) MarshalJSON added in v0.7.0

func (entity *MessageSourceChatList) MarshalJSON() ([]byte, error)

func (*MessageSourceChatList) MessageSourceType added in v0.7.0

func (*MessageSourceChatList) MessageSourceType() string

type MessageSourceForumTopicHistory added in v0.7.0

type MessageSourceForumTopicHistory struct {
	// contains filtered or unexported fields
}

The message is from a forum topic history

func UnmarshalMessageSourceForumTopicHistory added in v0.7.0

func UnmarshalMessageSourceForumTopicHistory(data json.RawMessage) (*MessageSourceForumTopicHistory, error)

func (*MessageSourceForumTopicHistory) GetClass added in v0.7.0

func (*MessageSourceForumTopicHistory) GetType added in v0.7.0

func (*MessageSourceForumTopicHistory) MarshalJSON added in v0.7.0

func (entity *MessageSourceForumTopicHistory) MarshalJSON() ([]byte, error)

func (*MessageSourceForumTopicHistory) MessageSourceType added in v0.7.0

func (*MessageSourceForumTopicHistory) MessageSourceType() string

type MessageSourceHistoryPreview added in v0.7.0

type MessageSourceHistoryPreview struct {
	// contains filtered or unexported fields
}

The message is from chat, message thread or forum topic history preview

func UnmarshalMessageSourceHistoryPreview added in v0.7.0

func UnmarshalMessageSourceHistoryPreview(data json.RawMessage) (*MessageSourceHistoryPreview, error)

func (*MessageSourceHistoryPreview) GetClass added in v0.7.0

func (*MessageSourceHistoryPreview) GetClass() string

func (*MessageSourceHistoryPreview) GetType added in v0.7.0

func (*MessageSourceHistoryPreview) MarshalJSON added in v0.7.0

func (entity *MessageSourceHistoryPreview) MarshalJSON() ([]byte, error)

func (*MessageSourceHistoryPreview) MessageSourceType added in v0.7.0

func (*MessageSourceHistoryPreview) MessageSourceType() string

type MessageSourceMessageThreadHistory added in v0.7.0

type MessageSourceMessageThreadHistory struct {
	// contains filtered or unexported fields
}

The message is from a message thread history

func UnmarshalMessageSourceMessageThreadHistory added in v0.7.0

func UnmarshalMessageSourceMessageThreadHistory(data json.RawMessage) (*MessageSourceMessageThreadHistory, error)

func (*MessageSourceMessageThreadHistory) GetClass added in v0.7.0

func (*MessageSourceMessageThreadHistory) GetType added in v0.7.0

func (*MessageSourceMessageThreadHistory) MarshalJSON added in v0.7.0

func (entity *MessageSourceMessageThreadHistory) MarshalJSON() ([]byte, error)

func (*MessageSourceMessageThreadHistory) MessageSourceType added in v0.7.0

func (*MessageSourceMessageThreadHistory) MessageSourceType() string

type MessageSourceNotification added in v0.7.0

type MessageSourceNotification struct {
	// contains filtered or unexported fields
}

The message is from a notification

func UnmarshalMessageSourceNotification added in v0.7.0

func UnmarshalMessageSourceNotification(data json.RawMessage) (*MessageSourceNotification, error)

func (*MessageSourceNotification) GetClass added in v0.7.0

func (*MessageSourceNotification) GetClass() string

func (*MessageSourceNotification) GetType added in v0.7.0

func (*MessageSourceNotification) GetType() string

func (*MessageSourceNotification) MarshalJSON added in v0.7.0

func (entity *MessageSourceNotification) MarshalJSON() ([]byte, error)

func (*MessageSourceNotification) MessageSourceType added in v0.7.0

func (*MessageSourceNotification) MessageSourceType() string

type MessageSourceOther added in v0.7.0

type MessageSourceOther struct {
	// contains filtered or unexported fields
}

The message is from some other source

func UnmarshalMessageSourceOther added in v0.7.0

func UnmarshalMessageSourceOther(data json.RawMessage) (*MessageSourceOther, error)

func (*MessageSourceOther) GetClass added in v0.7.0

func (*MessageSourceOther) GetClass() string

func (*MessageSourceOther) GetType added in v0.7.0

func (*MessageSourceOther) GetType() string

func (*MessageSourceOther) MarshalJSON added in v0.7.0

func (entity *MessageSourceOther) MarshalJSON() ([]byte, error)

func (*MessageSourceOther) MessageSourceType added in v0.7.0

func (*MessageSourceOther) MessageSourceType() string

type MessageSourceScreenshot added in v0.7.0

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 v0.7.0

func UnmarshalMessageSourceScreenshot(data json.RawMessage) (*MessageSourceScreenshot, error)

func (*MessageSourceScreenshot) GetClass added in v0.7.0

func (*MessageSourceScreenshot) GetClass() string

func (*MessageSourceScreenshot) GetType added in v0.7.0

func (*MessageSourceScreenshot) GetType() string

func (*MessageSourceScreenshot) MarshalJSON added in v0.7.0

func (entity *MessageSourceScreenshot) MarshalJSON() ([]byte, error)

func (*MessageSourceScreenshot) MessageSourceType added in v0.7.0

func (*MessageSourceScreenshot) MessageSourceType() string

type MessageSourceSearch added in v0.7.0

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 v0.7.0

func UnmarshalMessageSourceSearch(data json.RawMessage) (*MessageSourceSearch, error)

func (*MessageSourceSearch) GetClass added in v0.7.0

func (*MessageSourceSearch) GetClass() string

func (*MessageSourceSearch) GetType added in v0.7.0

func (*MessageSourceSearch) GetType() string

func (*MessageSourceSearch) MarshalJSON added in v0.7.0

func (entity *MessageSourceSearch) MarshalJSON() ([]byte, error)

func (*MessageSourceSearch) MessageSourceType added in v0.7.0

func (*MessageSourceSearch) MessageSourceType() string

type MessageSponsor added in v0.7.0

type MessageSponsor struct {

	// URL of the sponsor to be opened when the message is clicked
	Url string `json:"url"`
	// Photo of the sponsor; may be null if must not be shown
	Photo *Photo `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 v0.7.0

func UnmarshalMessageSponsor(data json.RawMessage) (*MessageSponsor, error)

func (*MessageSponsor) GetClass added in v0.7.0

func (*MessageSponsor) GetClass() string

func (*MessageSponsor) GetType added in v0.7.0

func (*MessageSponsor) GetType() string

func (*MessageSponsor) MarshalJSON added in v0.7.0

func (entity *MessageSponsor) MarshalJSON() ([]byte, error)

type MessageStatistics added in v0.3.0

type MessageStatistics struct {

	// A graph containing number of message views and shares
	MessageInteractionGraph StatisticalGraph `json:"message_interaction_graph"`
	// A graph containing number of message reactions
	MessageReactionGraph StatisticalGraph `json:"message_reaction_graph"`
	// contains filtered or unexported fields
}

A detailed statistics about a message

func UnmarshalMessageStatistics added in v0.3.0

func UnmarshalMessageStatistics(data json.RawMessage) (*MessageStatistics, error)

func (*MessageStatistics) GetClass added in v0.3.0

func (*MessageStatistics) GetClass() string

func (*MessageStatistics) GetType added in v0.3.0

func (*MessageStatistics) GetType() string

func (*MessageStatistics) MarshalJSON added in v0.3.0

func (entity *MessageStatistics) MarshalJSON() ([]byte, error)

func (*MessageStatistics) UnmarshalJSON added in v0.3.0

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 v0.7.0

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 v0.7.0

func UnmarshalMessageStory(data json.RawMessage) (*MessageStory, error)

func (*MessageStory) GetClass added in v0.7.0

func (*MessageStory) GetClass() string

func (*MessageStory) GetType added in v0.7.0

func (*MessageStory) GetType() string

func (*MessageStory) MarshalJSON added in v0.7.0

func (entity *MessageStory) MarshalJSON() ([]byte, error)

func (*MessageStory) MessageContentType added in v0.7.0

func (*MessageStory) MessageContentType() string

type MessageSuggestProfilePhoto added in v0.7.0

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 v0.7.0

func UnmarshalMessageSuggestProfilePhoto(data json.RawMessage) (*MessageSuggestProfilePhoto, error)

func (*MessageSuggestProfilePhoto) GetClass added in v0.7.0

func (*MessageSuggestProfilePhoto) GetClass() string

func (*MessageSuggestProfilePhoto) GetType added in v0.7.0

func (*MessageSuggestProfilePhoto) MarshalJSON added in v0.7.0

func (entity *MessageSuggestProfilePhoto) MarshalJSON() ([]byte, error)

func (*MessageSuggestProfilePhoto) MessageContentType added in v0.7.0

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) 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 link preview attached to the message; may be null
	LinkPreview *LinkPreview `json:"link_preview"`
	// Options which were used for generation of the link preview; may be null if default options were used
	LinkPreviewOptions *LinkPreviewOptions `json:"link_preview_options"`
	// 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 added in v0.3.0

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 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 added in v0.3.0

func UnmarshalMessageThreadInfo(data json.RawMessage) (*MessageThreadInfo, error)

func (*MessageThreadInfo) GetClass added in v0.3.0

func (*MessageThreadInfo) GetClass() string

func (*MessageThreadInfo) GetType added in v0.3.0

func (*MessageThreadInfo) GetType() string

func (*MessageThreadInfo) MarshalJSON added in v0.3.0

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 MessageUsersShared added in v0.7.2

type MessageUsersShared struct {

	// The shared users
	Users []*SharedUser `json:"users"`
	// Identifier of the keyboard button with the request
	ButtonId int32 `json:"button_id"`
	// contains filtered or unexported fields
}

The current user shared users, which were requested by the bot

func UnmarshalMessageUsersShared added in v0.7.2

func UnmarshalMessageUsersShared(data json.RawMessage) (*MessageUsersShared, error)

func (*MessageUsersShared) GetClass added in v0.7.2

func (*MessageUsersShared) GetClass() string

func (*MessageUsersShared) GetType added in v0.7.2

func (*MessageUsersShared) GetType() string

func (*MessageUsersShared) MarshalJSON added in v0.7.2

func (entity *MessageUsersShared) MarshalJSON() ([]byte, error)

func (*MessageUsersShared) MessageContentType added in v0.7.2

func (*MessageUsersShared) 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"`
	// Alternative qualities of the video
	AlternativeVideos []*AlternativeVideo `json:"alternative_videos"`
	// Video caption
	Caption *FormattedText `json:"caption"`
	// True, if the caption must be shown above the video; otherwise, the caption must be shown below the video
	ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
	// 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 added in v0.5.0

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 added in v0.5.0

func UnmarshalMessageVideoChatEnded(data json.RawMessage) (*MessageVideoChatEnded, error)

func (*MessageVideoChatEnded) GetClass added in v0.5.0

func (*MessageVideoChatEnded) GetClass() string

func (*MessageVideoChatEnded) GetType added in v0.5.0

func (*MessageVideoChatEnded) GetType() string

func (*MessageVideoChatEnded) MarshalJSON added in v0.5.0

func (entity *MessageVideoChatEnded) MarshalJSON() ([]byte, error)

func (*MessageVideoChatEnded) MessageContentType added in v0.5.0

func (*MessageVideoChatEnded) MessageContentType() string

type MessageVideoChatScheduled added in v0.5.0

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 expected to be started by an administrator
	StartDate int32 `json:"start_date"`
	// contains filtered or unexported fields
}

A new video chat was scheduled

func UnmarshalMessageVideoChatScheduled added in v0.5.0

func UnmarshalMessageVideoChatScheduled(data json.RawMessage) (*MessageVideoChatScheduled, error)

func (*MessageVideoChatScheduled) GetClass added in v0.5.0

func (*MessageVideoChatScheduled) GetClass() string

func (*MessageVideoChatScheduled) GetType added in v0.5.0

func (*MessageVideoChatScheduled) GetType() string

func (*MessageVideoChatScheduled) MarshalJSON added in v0.5.0

func (entity *MessageVideoChatScheduled) MarshalJSON() ([]byte, error)

func (*MessageVideoChatScheduled) MessageContentType added in v0.5.0

func (*MessageVideoChatScheduled) MessageContentType() string

type MessageVideoChatStarted added in v0.5.0

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 added in v0.5.0

func UnmarshalMessageVideoChatStarted(data json.RawMessage) (*MessageVideoChatStarted, error)

func (*MessageVideoChatStarted) GetClass added in v0.5.0

func (*MessageVideoChatStarted) GetClass() string

func (*MessageVideoChatStarted) GetType added in v0.5.0

func (*MessageVideoChatStarted) GetType() string

func (*MessageVideoChatStarted) MarshalJSON added in v0.5.0

func (entity *MessageVideoChatStarted) MarshalJSON() ([]byte, error)

func (*MessageVideoChatStarted) MessageContentType added in v0.5.0

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 v0.7.0

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 v0.7.0

func UnmarshalMessageViewer(data json.RawMessage) (*MessageViewer, error)

func (*MessageViewer) GetClass added in v0.7.0

func (*MessageViewer) GetClass() string

func (*MessageViewer) GetType added in v0.7.0

func (*MessageViewer) GetType() string

func (*MessageViewer) MarshalJSON added in v0.7.0

func (entity *MessageViewer) MarshalJSON() ([]byte, error)

type MessageViewers added in v0.7.0

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 v0.7.0

func UnmarshalMessageViewers(data json.RawMessage) (*MessageViewers, error)

func (*MessageViewers) GetClass added in v0.7.0

func (*MessageViewers) GetClass() string

func (*MessageViewers) GetType added in v0.7.0

func (*MessageViewers) GetType() string

func (*MessageViewers) MarshalJSON added in v0.7.0

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 v0.7.0

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 v0.7.0

func UnmarshalMessageWebAppDataReceived(data json.RawMessage) (*MessageWebAppDataReceived, error)

func (*MessageWebAppDataReceived) GetClass added in v0.7.0

func (*MessageWebAppDataReceived) GetClass() string

func (*MessageWebAppDataReceived) GetType added in v0.7.0

func (*MessageWebAppDataReceived) GetType() string

func (*MessageWebAppDataReceived) MarshalJSON added in v0.7.0

func (entity *MessageWebAppDataReceived) MarshalJSON() ([]byte, error)

func (*MessageWebAppDataReceived) MessageContentType added in v0.7.0

func (*MessageWebAppDataReceived) MessageContentType() string

type MessageWebAppDataSent added in v0.7.0

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 v0.7.0

func UnmarshalMessageWebAppDataSent(data json.RawMessage) (*MessageWebAppDataSent, error)

func (*MessageWebAppDataSent) GetClass added in v0.7.0

func (*MessageWebAppDataSent) GetClass() string

func (*MessageWebAppDataSent) GetType added in v0.7.0

func (*MessageWebAppDataSent) GetType() string

func (*MessageWebAppDataSent) MarshalJSON added in v0.7.0

func (entity *MessageWebAppDataSent) MarshalJSON() ([]byte, error)

func (*MessageWebAppDataSent) MessageContentType added in v0.7.0

func (*MessageWebAppDataSent) 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) GetClass

func (*Messages) GetClass() string

func (*Messages) GetType

func (*Messages) GetType() string

func (*Messages) MarshalJSON

func (entity *Messages) MarshalJSON() ([]byte, error)

type Minithumbnail added in v0.1.0

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 added in v0.1.0

func UnmarshalMinithumbnail(data json.RawMessage) (*Minithumbnail, error)

func (*Minithumbnail) GetClass added in v0.1.0

func (*Minithumbnail) GetClass() string

func (*Minithumbnail) GetType added in v0.1.0

func (*Minithumbnail) GetType() string

func (*Minithumbnail) MarshalJSON added in v0.1.0

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 added in v0.3.2

func (networkStatistics *NetworkStatistics) UnmarshalJSON(data []byte) error

type NetworkStatisticsEntry

type NetworkStatisticsEntry interface {
	NetworkStatisticsEntryType() string
}

Contains statistics about network usage

func UnmarshalListOfNetworkStatisticsEntry added in v0.3.2

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) 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) 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 network

func UnmarshalListOfNetworkType added in v0.3.2

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 NewChatPrivacySettings added in v0.7.2

type NewChatPrivacySettings struct {

	// True, if non-contacts users are able to write first to the current user. Telegram Premium subscribers are able to write first regardless of this setting
	AllowNewChatsFromUnknownUsers bool `json:"allow_new_chats_from_unknown_users"`
	// contains filtered or unexported fields
}

Contains privacy settings for new chats with non-contacts

func UnmarshalNewChatPrivacySettings added in v0.7.2

func UnmarshalNewChatPrivacySettings(data json.RawMessage) (*NewChatPrivacySettings, error)

func (*NewChatPrivacySettings) GetClass added in v0.7.2

func (*NewChatPrivacySettings) GetClass() string

func (*NewChatPrivacySettings) GetType added in v0.7.2

func (*NewChatPrivacySettings) GetType() string

func (*NewChatPrivacySettings) MarshalJSON added in v0.7.2

func (entity *NewChatPrivacySettings) MarshalJSON() ([]byte, error)

type Notification added in v0.0.13

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 added in v0.0.13

func UnmarshalNotification(data json.RawMessage) (*Notification, error)

func (*Notification) GetClass added in v0.0.13

func (*Notification) GetClass() string

func (*Notification) GetType added in v0.0.13

func (*Notification) GetType() string

func (*Notification) MarshalJSON added in v0.0.13

func (entity *Notification) MarshalJSON() ([]byte, error)

func (*Notification) UnmarshalJSON added in v0.0.13

func (notification *Notification) UnmarshalJSON(data []byte) error

type NotificationGroup added in v0.0.13

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 added in v0.0.13

func UnmarshalNotificationGroup(data json.RawMessage) (*NotificationGroup, error)

func (*NotificationGroup) GetClass added in v0.0.13

func (*NotificationGroup) GetClass() string

func (*NotificationGroup) GetType added in v0.0.13

func (*NotificationGroup) GetType() string

func (*NotificationGroup) MarshalJSON added in v0.0.13

func (entity *NotificationGroup) MarshalJSON() ([]byte, error)

func (*NotificationGroup) UnmarshalJSON added in v0.0.13

func (notificationGroup *NotificationGroup) UnmarshalJSON(data []byte) error

type NotificationGroupType added in v0.0.13

type NotificationGroupType interface {
	NotificationGroupTypeType() string
}

Describes the type of notifications in a notification group

func UnmarshalListOfNotificationGroupType added in v0.3.2

func UnmarshalListOfNotificationGroupType(dataList []json.RawMessage) ([]NotificationGroupType, error)

func UnmarshalNotificationGroupType added in v0.0.13

func UnmarshalNotificationGroupType(data json.RawMessage) (NotificationGroupType, error)

type NotificationGroupTypeCalls added in v0.0.13

type NotificationGroupTypeCalls struct {
	// contains filtered or unexported fields
}

A group containing notifications of type notificationTypeNewCall

func UnmarshalNotificationGroupTypeCalls added in v0.0.13

func UnmarshalNotificationGroupTypeCalls(data json.RawMessage) (*NotificationGroupTypeCalls, error)

func (*NotificationGroupTypeCalls) GetClass added in v0.0.13

func (*NotificationGroupTypeCalls) GetClass() string

func (*NotificationGroupTypeCalls) GetType added in v0.0.13

func (*NotificationGroupTypeCalls) MarshalJSON added in v0.0.13

func (entity *NotificationGroupTypeCalls) MarshalJSON() ([]byte, error)

func (*NotificationGroupTypeCalls) NotificationGroupTypeType added in v0.0.13

func (*NotificationGroupTypeCalls) NotificationGroupTypeType() string

type NotificationGroupTypeMentions added in v0.0.13

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 added in v0.0.13

func UnmarshalNotificationGroupTypeMentions(data json.RawMessage) (*NotificationGroupTypeMentions, error)

func (*NotificationGroupTypeMentions) GetClass added in v0.0.13

func (*NotificationGroupTypeMentions) GetType added in v0.0.13

func (*NotificationGroupTypeMentions) MarshalJSON added in v0.0.13

func (entity *NotificationGroupTypeMentions) MarshalJSON() ([]byte, error)

func (*NotificationGroupTypeMentions) NotificationGroupTypeType added in v0.0.13

func (*NotificationGroupTypeMentions) NotificationGroupTypeType() string

type NotificationGroupTypeMessages added in v0.0.13

type NotificationGroupTypeMessages struct {
	// contains filtered or unexported fields
}

A group containing notifications of type notificationTypeNewMessage and notificationTypeNewPushMessage with ordinary unread messages

func UnmarshalNotificationGroupTypeMessages added in v0.0.13

func UnmarshalNotificationGroupTypeMessages(data json.RawMessage) (*NotificationGroupTypeMessages, error)

func (*NotificationGroupTypeMessages) GetClass added in v0.0.13

func (*NotificationGroupTypeMessages) GetType added in v0.0.13

func (*NotificationGroupTypeMessages) MarshalJSON added in v0.0.13

func (entity *NotificationGroupTypeMessages) MarshalJSON() ([]byte, error)

func (*NotificationGroupTypeMessages) NotificationGroupTypeType added in v0.0.13

func (*NotificationGroupTypeMessages) NotificationGroupTypeType() string

type NotificationGroupTypeSecretChat added in v0.0.13

type NotificationGroupTypeSecretChat struct {
	// contains filtered or unexported fields
}

A group containing a notification of type notificationTypeNewSecretChat

func UnmarshalNotificationGroupTypeSecretChat added in v0.0.13

func UnmarshalNotificationGroupTypeSecretChat(data json.RawMessage) (*NotificationGroupTypeSecretChat, error)

func (*NotificationGroupTypeSecretChat) GetClass added in v0.0.13

func (*NotificationGroupTypeSecretChat) GetType added in v0.0.13

func (*NotificationGroupTypeSecretChat) MarshalJSON added in v0.0.13

func (entity *NotificationGroupTypeSecretChat) MarshalJSON() ([]byte, error)

func (*NotificationGroupTypeSecretChat) NotificationGroupTypeType added in v0.0.13

func (*NotificationGroupTypeSecretChat) NotificationGroupTypeType() string

type NotificationSettingsScope

type NotificationSettingsScope interface {
	NotificationSettingsScopeType() string
}

Describes the types of chats to which notification settings are relevant

func UnmarshalListOfNotificationSettingsScope added in v0.3.2

func UnmarshalListOfNotificationSettingsScope(dataList []json.RawMessage) ([]NotificationSettingsScope, error)

func UnmarshalNotificationSettingsScope

func UnmarshalNotificationSettingsScope(data json.RawMessage) (NotificationSettingsScope, error)

type NotificationSettingsScopeChannelChats added in v0.0.13

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 added in v0.0.13

func UnmarshalNotificationSettingsScopeChannelChats(data json.RawMessage) (*NotificationSettingsScopeChannelChats, error)

func (*NotificationSettingsScopeChannelChats) GetClass added in v0.0.13

func (*NotificationSettingsScopeChannelChats) GetType added in v0.0.13

func (*NotificationSettingsScopeChannelChats) MarshalJSON added in v0.0.13

func (entity *NotificationSettingsScopeChannelChats) MarshalJSON() ([]byte, error)

func (*NotificationSettingsScopeChannelChats) NotificationSettingsScopeType added in v0.0.13

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) GetType

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) GetType

func (*NotificationSettingsScopePrivateChats) MarshalJSON

func (entity *NotificationSettingsScopePrivateChats) MarshalJSON() ([]byte, error)

func (*NotificationSettingsScopePrivateChats) NotificationSettingsScopeType

func (*NotificationSettingsScopePrivateChats) NotificationSettingsScopeType() string

type NotificationSound added in v0.7.0

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 v0.7.0

func UnmarshalNotificationSound(data json.RawMessage) (*NotificationSound, error)

func (*NotificationSound) GetClass added in v0.7.0

func (*NotificationSound) GetClass() string

func (*NotificationSound) GetType added in v0.7.0

func (*NotificationSound) GetType() string

func (*NotificationSound) MarshalJSON added in v0.7.0

func (entity *NotificationSound) MarshalJSON() ([]byte, error)

type NotificationSounds added in v0.7.0

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 v0.7.0

func UnmarshalNotificationSounds(data json.RawMessage) (*NotificationSounds, error)

func (*NotificationSounds) GetClass added in v0.7.0

func (*NotificationSounds) GetClass() string

func (*NotificationSounds) GetType added in v0.7.0

func (*NotificationSounds) GetType() string

func (*NotificationSounds) MarshalJSON added in v0.7.0

func (entity *NotificationSounds) MarshalJSON() ([]byte, error)

type NotificationType added in v0.0.13

type NotificationType interface {
	NotificationTypeType() string
}

Contains detailed information about a notification

func UnmarshalListOfNotificationType added in v0.3.2

func UnmarshalListOfNotificationType(dataList []json.RawMessage) ([]NotificationType, error)

func UnmarshalNotificationType added in v0.0.13

func UnmarshalNotificationType(data json.RawMessage) (NotificationType, error)

type NotificationTypeNewCall added in v0.0.13

type NotificationTypeNewCall struct {

	// Call identifier
	CallId int32 `json:"call_id"`
	// contains filtered or unexported fields
}

New call was received

func UnmarshalNotificationTypeNewCall added in v0.0.13

func UnmarshalNotificationTypeNewCall(data json.RawMessage) (*NotificationTypeNewCall, error)

func (*NotificationTypeNewCall) GetClass added in v0.0.13

func (*NotificationTypeNewCall) GetClass() string

func (*NotificationTypeNewCall) GetType added in v0.0.13

func (*NotificationTypeNewCall) GetType() string

func (*NotificationTypeNewCall) MarshalJSON added in v0.0.13

func (entity *NotificationTypeNewCall) MarshalJSON() ([]byte, error)

func (*NotificationTypeNewCall) NotificationTypeType added in v0.0.13

func (*NotificationTypeNewCall) NotificationTypeType() string

type NotificationTypeNewMessage added in v0.0.13

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 added in v0.0.13

func UnmarshalNotificationTypeNewMessage(data json.RawMessage) (*NotificationTypeNewMessage, error)

func (*NotificationTypeNewMessage) GetClass added in v0.0.13

func (*NotificationTypeNewMessage) GetClass() string

func (*NotificationTypeNewMessage) GetType added in v0.0.13

func (*NotificationTypeNewMessage) MarshalJSON added in v0.0.13

func (entity *NotificationTypeNewMessage) MarshalJSON() ([]byte, error)

func (*NotificationTypeNewMessage) NotificationTypeType added in v0.0.13

func (*NotificationTypeNewMessage) NotificationTypeType() string

type NotificationTypeNewPushMessage added in v0.0.13

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 be replied in the same chat
	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 added in v0.0.13

func UnmarshalNotificationTypeNewPushMessage(data json.RawMessage) (*NotificationTypeNewPushMessage, error)

func (*NotificationTypeNewPushMessage) GetClass added in v0.0.13

func (*NotificationTypeNewPushMessage) GetType added in v0.0.13

func (*NotificationTypeNewPushMessage) MarshalJSON added in v0.0.13

func (entity *NotificationTypeNewPushMessage) MarshalJSON() ([]byte, error)

func (*NotificationTypeNewPushMessage) NotificationTypeType added in v0.0.13

func (*NotificationTypeNewPushMessage) NotificationTypeType() string

func (*NotificationTypeNewPushMessage) UnmarshalJSON added in v0.0.13

func (notificationTypeNewPushMessage *NotificationTypeNewPushMessage) UnmarshalJSON(data []byte) error

type NotificationTypeNewSecretChat added in v0.0.13

type NotificationTypeNewSecretChat struct {
	// contains filtered or unexported fields
}

New secret chat was created

func UnmarshalNotificationTypeNewSecretChat added in v0.0.13

func UnmarshalNotificationTypeNewSecretChat(data json.RawMessage) (*NotificationTypeNewSecretChat, error)

func (*NotificationTypeNewSecretChat) GetClass added in v0.0.13

func (*NotificationTypeNewSecretChat) GetType added in v0.0.13

func (*NotificationTypeNewSecretChat) MarshalJSON added in v0.0.13

func (entity *NotificationTypeNewSecretChat) MarshalJSON() ([]byte, error)

func (*NotificationTypeNewSecretChat) NotificationTypeType added in v0.0.13

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 added in v0.6.0

func AddLogMessage(req *AddLogMessageRequest) (*Ok, error)

Adds a message to TDLib internal log. Can be called synchronously

func CheckQuickReplyShortcutName added in v0.7.2

func CheckQuickReplyShortcutName(req *CheckQuickReplyShortcutNameRequest) (*Ok, error)

Checks validness of a name for a quick reply shortcut. Can be called synchronously

func SetLogStream added in v0.6.0

func SetLogStream(req *SetLogStreamRequest) (*Ok, error)

Sets new log stream for internal logging of TDLib. Can be called synchronously

func SetLogTagVerbosityLevel added in v0.6.0

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) GetClass

func (*Ok) GetClass() string

func (*Ok) GetType

func (*Ok) GetType() string

func (*Ok) MarshalJSON

func (entity *Ok) MarshalJSON() ([]byte, error)

type OpenChatRequest

type OpenChatRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
}

type OpenChatSimilarChatRequest added in v0.7.2

type OpenChatSimilarChatRequest struct {
	// Identifier of the original chat, which similar chats were requested
	ChatId int64 `json:"chat_id"`
	// Identifier of the opened chat
	OpenedChatId int64 `json:"opened_chat_id"`
}

type OpenMessageContentRequest

type OpenMessageContentRequest struct {
	// Chat identifier of the message
	ChatId int64 `json:"chat_id"`
	// Identifier of the message with the opened content
	MessageId int64 `json:"message_id"`
}

type OpenStoryRequest added in v0.7.0

type OpenStoryRequest struct {
	// The identifier of the sender of the opened story
	StorySenderChatId int64 `json:"story_sender_chat_id"`
	// The identifier of the story
	StoryId int32 `json:"story_id"`
}

type OpenWebAppRequest added in v0.7.0

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"`
	// If not 0, the message thread identifier in which the message will be sent
	MessageThreadId int64 `json:"message_thread_id"`
	// Information about the message or story to be replied in the message sent by the Web App; pass null if none
	ReplyTo InputMessageReplyTo `json:"reply_to"`
	// Parameters to use to open the Web App
	Parameters *WebAppOpenParameters `json:"parameters"`
}

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 WithCatchTimeout(timeout time.Duration) Option

func WithExtraGenerator

func WithExtraGenerator(extraGenerator ExtraGenerator) Option

func WithLogVerbosity added in v0.1.0

func WithLogVerbosity(req *SetLogVerbosityLevelRequest) 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 v0.7.0

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 added in v0.3.2

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) GetClass

func (*OrderInfo) GetClass() string

func (*OrderInfo) GetType

func (*OrderInfo) GetType() string

func (*OrderInfo) MarshalJSON

func (entity *OrderInfo) MarshalJSON() ([]byte, error)

type Outline added in v0.7.4

type Outline struct {

	// The list of closed vector paths
	Paths []*ClosedVectorPath `json:"paths"`
	// contains filtered or unexported fields
}

Represents outline of an image

func UnmarshalOutline added in v0.7.4

func UnmarshalOutline(data json.RawMessage) (*Outline, error)

func (*Outline) GetClass added in v0.7.4

func (*Outline) GetClass() string

func (*Outline) GetType added in v0.7.4

func (*Outline) GetType() string

func (*Outline) MarshalJSON added in v0.7.4

func (entity *Outline) MarshalJSON() ([]byte, error)

type PageBlock

type PageBlock interface {
	PageBlockType() string
}

Describes a block of an instant view for a web page

func UnmarshalListOfPageBlock added in v0.3.2

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 added in v0.0.13

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 another block

func UnmarshalPageBlockCaption added in v0.0.13

func UnmarshalPageBlockCaption(data json.RawMessage) (*PageBlockCaption, error)

func (*PageBlockCaption) GetClass added in v0.0.13

func (*PageBlockCaption) GetClass() string

func (*PageBlockCaption) GetType added in v0.0.13

func (*PageBlockCaption) GetType() string

func (*PageBlockCaption) MarshalJSON added in v0.0.13

func (entity *PageBlockCaption) MarshalJSON() ([]byte, error)

func (*PageBlockCaption) UnmarshalJSON added in v0.0.13

func (pageBlockCaption *PageBlockCaption) UnmarshalJSON(data []byte) error
type PageBlockChatLink struct {

	// Chat title
	Title string `json:"title"`
	// Chat photo; may be null
	Photo *ChatPhotoInfo `json:"photo"`
	// Identifier of the accent color for chat title and background of chat photo
	AccentColorId int32 `json:"accent_color_id"`
	// 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(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 added in v0.0.13

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 added in v0.0.13

func UnmarshalPageBlockDetails(data json.RawMessage) (*PageBlockDetails, error)

func (*PageBlockDetails) GetClass added in v0.0.13

func (*PageBlockDetails) GetClass() string

func (*PageBlockDetails) GetType added in v0.0.13

func (*PageBlockDetails) GetType() string

func (*PageBlockDetails) MarshalJSON added in v0.0.13

func (entity *PageBlockDetails) MarshalJSON() ([]byte, error)

func (*PageBlockDetails) PageBlockType added in v0.0.13

func (*PageBlockDetails) PageBlockType() string

func (*PageBlockDetails) UnmarshalJSON added in v0.0.13

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 {

	// URL of the embedded page, 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 {

	// URL of the embedded post
	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 {

	// Footer
	Footer RichText `json:"footer"`
	// contains filtered or unexported fields
}

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 added in v0.0.13

type PageBlockHorizontalAlignment interface {
	PageBlockHorizontalAlignmentType() string
}

Describes a horizontal alignment of a table cell content

func UnmarshalListOfPageBlockHorizontalAlignment added in v0.3.2

func UnmarshalListOfPageBlockHorizontalAlignment(dataList []json.RawMessage) ([]PageBlockHorizontalAlignment, error)

func UnmarshalPageBlockHorizontalAlignment added in v0.0.13

func UnmarshalPageBlockHorizontalAlignment(data json.RawMessage) (PageBlockHorizontalAlignment, error)

type PageBlockHorizontalAlignmentCenter added in v0.0.13

type PageBlockHorizontalAlignmentCenter struct {
	// contains filtered or unexported fields
}

The content must be center-aligned

func UnmarshalPageBlockHorizontalAlignmentCenter added in v0.0.13

func UnmarshalPageBlockHorizontalAlignmentCenter(data json.RawMessage) (*PageBlockHorizontalAlignmentCenter, error)

func (*PageBlockHorizontalAlignmentCenter) GetClass added in v0.0.13

func (*PageBlockHorizontalAlignmentCenter) GetType added in v0.0.13

func (*PageBlockHorizontalAlignmentCenter) MarshalJSON added in v0.0.13

func (entity *PageBlockHorizontalAlignmentCenter) MarshalJSON() ([]byte, error)

func (*PageBlockHorizontalAlignmentCenter) PageBlockHorizontalAlignmentType added in v0.0.13

func (*PageBlockHorizontalAlignmentCenter) PageBlockHorizontalAlignmentType() string

type PageBlockHorizontalAlignmentLeft added in v0.0.13

type PageBlockHorizontalAlignmentLeft struct {
	// contains filtered or unexported fields
}

The content must be left-aligned

func UnmarshalPageBlockHorizontalAlignmentLeft added in v0.0.13

func UnmarshalPageBlockHorizontalAlignmentLeft(data json.RawMessage) (*PageBlockHorizontalAlignmentLeft, error)

func (*PageBlockHorizontalAlignmentLeft) GetClass added in v0.0.13

func (*PageBlockHorizontalAlignmentLeft) GetType added in v0.0.13

func (*PageBlockHorizontalAlignmentLeft) MarshalJSON added in v0.0.13

func (entity *PageBlockHorizontalAlignmentLeft) MarshalJSON() ([]byte, error)

func (*PageBlockHorizontalAlignmentLeft) PageBlockHorizontalAlignmentType added in v0.0.13

func (*PageBlockHorizontalAlignmentLeft) PageBlockHorizontalAlignmentType() string

type PageBlockHorizontalAlignmentRight added in v0.0.13

type PageBlockHorizontalAlignmentRight struct {
	// contains filtered or unexported fields
}

The content must be right-aligned

func UnmarshalPageBlockHorizontalAlignmentRight added in v0.0.13

func UnmarshalPageBlockHorizontalAlignmentRight(data json.RawMessage) (*PageBlockHorizontalAlignmentRight, error)

func (*PageBlockHorizontalAlignmentRight) GetClass added in v0.0.13

func (*PageBlockHorizontalAlignmentRight) GetType added in v0.0.13

func (*PageBlockHorizontalAlignmentRight) MarshalJSON added in v0.0.13

func (entity *PageBlockHorizontalAlignmentRight) MarshalJSON() ([]byte, error)

func (*PageBlockHorizontalAlignmentRight) PageBlockHorizontalAlignmentType added in v0.0.13

func (*PageBlockHorizontalAlignmentRight) PageBlockHorizontalAlignmentType() string

type PageBlockKicker added in v0.0.13

type PageBlockKicker struct {

	// Kicker
	Kicker RichText `json:"kicker"`
	// contains filtered or unexported fields
}

A kicker

func UnmarshalPageBlockKicker added in v0.0.13

func UnmarshalPageBlockKicker(data json.RawMessage) (*PageBlockKicker, error)

func (*PageBlockKicker) GetClass added in v0.0.13

func (*PageBlockKicker) GetClass() string

func (*PageBlockKicker) GetType added in v0.0.13

func (*PageBlockKicker) GetType() string

func (*PageBlockKicker) MarshalJSON added in v0.0.13

func (entity *PageBlockKicker) MarshalJSON() ([]byte, error)

func (*PageBlockKicker) PageBlockType added in v0.0.13

func (*PageBlockKicker) PageBlockType() string

func (*PageBlockKicker) UnmarshalJSON added in v0.0.13

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 added in v0.0.13

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 added in v0.0.13

func UnmarshalPageBlockListItem(data json.RawMessage) (*PageBlockListItem, error)

func (*PageBlockListItem) GetClass added in v0.0.13

func (*PageBlockListItem) GetClass() string

func (*PageBlockListItem) GetType added in v0.0.13

func (*PageBlockListItem) GetType() string

func (*PageBlockListItem) MarshalJSON added in v0.0.13

func (entity *PageBlockListItem) MarshalJSON() ([]byte, error)

func (*PageBlockListItem) UnmarshalJSON added in v0.3.2

func (pageBlockListItem *PageBlockListItem) UnmarshalJSON(data []byte) error

type PageBlockMap added in v0.0.13

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 added in v0.0.13

func UnmarshalPageBlockMap(data json.RawMessage) (*PageBlockMap, error)

func (*PageBlockMap) GetClass added in v0.0.13

func (*PageBlockMap) GetClass() string

func (*PageBlockMap) GetType added in v0.0.13

func (*PageBlockMap) GetType() string

func (*PageBlockMap) MarshalJSON added in v0.0.13

func (entity *PageBlockMap) MarshalJSON() ([]byte, error)

func (*PageBlockMap) PageBlockType added in v0.0.13

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 added in v0.0.13

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 added in v0.0.13

func UnmarshalPageBlockRelatedArticle(data json.RawMessage) (*PageBlockRelatedArticle, error)

func (*PageBlockRelatedArticle) GetClass added in v0.0.13

func (*PageBlockRelatedArticle) GetClass() string

func (*PageBlockRelatedArticle) GetType added in v0.0.13

func (*PageBlockRelatedArticle) GetType() string

func (*PageBlockRelatedArticle) MarshalJSON added in v0.0.13

func (entity *PageBlockRelatedArticle) MarshalJSON() ([]byte, error)

type PageBlockRelatedArticles added in v0.0.13

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 added in v0.0.13

func UnmarshalPageBlockRelatedArticles(data json.RawMessage) (*PageBlockRelatedArticles, error)

func (*PageBlockRelatedArticles) GetClass added in v0.0.13

func (*PageBlockRelatedArticles) GetClass() string

func (*PageBlockRelatedArticles) GetType added in v0.0.13

func (*PageBlockRelatedArticles) GetType() string

func (*PageBlockRelatedArticles) MarshalJSON added in v0.0.13

func (entity *PageBlockRelatedArticles) MarshalJSON() ([]byte, error)

func (*PageBlockRelatedArticles) PageBlockType added in v0.0.13

func (*PageBlockRelatedArticles) PageBlockType() string

func (*PageBlockRelatedArticles) UnmarshalJSON added in v0.0.13

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 added in v0.0.13

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 added in v0.0.13

func UnmarshalPageBlockTable(data json.RawMessage) (*PageBlockTable, error)

func (*PageBlockTable) GetClass added in v0.0.13

func (*PageBlockTable) GetClass() string

func (*PageBlockTable) GetType added in v0.0.13

func (*PageBlockTable) GetType() string

func (*PageBlockTable) MarshalJSON added in v0.0.13

func (entity *PageBlockTable) MarshalJSON() ([]byte, error)

func (*PageBlockTable) PageBlockType added in v0.0.13

func (*PageBlockTable) PageBlockType() string

func (*PageBlockTable) UnmarshalJSON added in v0.0.13

func (pageBlockTable *PageBlockTable) UnmarshalJSON(data []byte) error

type PageBlockTableCell added in v0.0.13

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 added in v0.0.13

func UnmarshalPageBlockTableCell(data json.RawMessage) (*PageBlockTableCell, error)

func (*PageBlockTableCell) GetClass added in v0.0.13

func (*PageBlockTableCell) GetClass() string

func (*PageBlockTableCell) GetType added in v0.0.13

func (*PageBlockTableCell) GetType() string

func (*PageBlockTableCell) MarshalJSON added in v0.0.13

func (entity *PageBlockTableCell) MarshalJSON() ([]byte, error)

func (*PageBlockTableCell) UnmarshalJSON added in v0.0.13

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 added in v0.0.13

type PageBlockVerticalAlignment interface {
	PageBlockVerticalAlignmentType() string
}

Describes a Vertical alignment of a table cell content

func UnmarshalListOfPageBlockVerticalAlignment added in v0.3.2

func UnmarshalListOfPageBlockVerticalAlignment(dataList []json.RawMessage) ([]PageBlockVerticalAlignment, error)

func UnmarshalPageBlockVerticalAlignment added in v0.0.13

func UnmarshalPageBlockVerticalAlignment(data json.RawMessage) (PageBlockVerticalAlignment, error)

type PageBlockVerticalAlignmentBottom added in v0.0.13

type PageBlockVerticalAlignmentBottom struct {
	// contains filtered or unexported fields
}

The content must be bottom-aligned

func UnmarshalPageBlockVerticalAlignmentBottom added in v0.0.13

func UnmarshalPageBlockVerticalAlignmentBottom(data json.RawMessage) (*PageBlockVerticalAlignmentBottom, error)

func (*PageBlockVerticalAlignmentBottom) GetClass added in v0.0.13

func (*PageBlockVerticalAlignmentBottom) GetType added in v0.0.13

func (*PageBlockVerticalAlignmentBottom) MarshalJSON added in v0.0.13

func (entity *PageBlockVerticalAlignmentBottom) MarshalJSON() ([]byte, error)

func (*PageBlockVerticalAlignmentBottom) PageBlockVerticalAlignmentType added in v0.0.13

func (*PageBlockVerticalAlignmentBottom) PageBlockVerticalAlignmentType() string

type PageBlockVerticalAlignmentMiddle added in v0.0.13

type PageBlockVerticalAlignmentMiddle struct {
	// contains filtered or unexported fields
}

The content must be middle-aligned

func UnmarshalPageBlockVerticalAlignmentMiddle added in v0.0.13

func UnmarshalPageBlockVerticalAlignmentMiddle(data json.RawMessage) (*PageBlockVerticalAlignmentMiddle, error)

func (*PageBlockVerticalAlignmentMiddle) GetClass added in v0.0.13

func (*PageBlockVerticalAlignmentMiddle) GetType added in v0.0.13

func (*PageBlockVerticalAlignmentMiddle) MarshalJSON added in v0.0.13

func (entity *PageBlockVerticalAlignmentMiddle) MarshalJSON() ([]byte, error)

func (*PageBlockVerticalAlignmentMiddle) PageBlockVerticalAlignmentType added in v0.0.13

func (*PageBlockVerticalAlignmentMiddle) PageBlockVerticalAlignmentType() string

type PageBlockVerticalAlignmentTop added in v0.0.13

type PageBlockVerticalAlignmentTop struct {
	// contains filtered or unexported fields
}

The content must be top-aligned

func UnmarshalPageBlockVerticalAlignmentTop added in v0.0.13

func UnmarshalPageBlockVerticalAlignmentTop(data json.RawMessage) (*PageBlockVerticalAlignmentTop, error)

func (*PageBlockVerticalAlignmentTop) GetClass added in v0.0.13

func (*PageBlockVerticalAlignmentTop) GetType added in v0.0.13

func (*PageBlockVerticalAlignmentTop) MarshalJSON added in v0.0.13

func (entity *PageBlockVerticalAlignmentTop) MarshalJSON() ([]byte, error)

func (*PageBlockVerticalAlignmentTop) PageBlockVerticalAlignmentType added in v0.0.13

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 added in v0.2.0

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 added in v0.2.0

func UnmarshalPageBlockVoiceNote(data json.RawMessage) (*PageBlockVoiceNote, error)

func (*PageBlockVoiceNote) GetClass added in v0.2.0

func (*PageBlockVoiceNote) GetClass() string

func (*PageBlockVoiceNote) GetType added in v0.2.0

func (*PageBlockVoiceNote) GetType() string

func (*PageBlockVoiceNote) MarshalJSON added in v0.2.0

func (entity *PageBlockVoiceNote) MarshalJSON() ([]byte, error)

func (*PageBlockVoiceNote) PageBlockType added in v0.2.0

func (*PageBlockVoiceNote) PageBlockType() string

type PaidMedia added in v0.7.3

type PaidMedia interface {
	PaidMediaType() string
}

Describes a paid media

func UnmarshalListOfPaidMedia added in v0.7.3

func UnmarshalListOfPaidMedia(dataList []json.RawMessage) ([]PaidMedia, error)

func UnmarshalPaidMedia added in v0.7.3

func UnmarshalPaidMedia(data json.RawMessage) (PaidMedia, error)

type PaidMediaPhoto added in v0.7.3

type PaidMediaPhoto struct {

	// The photo
	Photo *Photo `json:"photo"`
	// contains filtered or unexported fields
}

The media is a photo

func UnmarshalPaidMediaPhoto added in v0.7.3

func UnmarshalPaidMediaPhoto(data json.RawMessage) (*PaidMediaPhoto, error)

func (*PaidMediaPhoto) GetClass added in v0.7.3

func (*PaidMediaPhoto) GetClass() string

func (*PaidMediaPhoto) GetType added in v0.7.3

func (*PaidMediaPhoto) GetType() string

func (*PaidMediaPhoto) MarshalJSON added in v0.7.3

func (entity *PaidMediaPhoto) MarshalJSON() ([]byte, error)

func (*PaidMediaPhoto) PaidMediaType added in v0.7.3

func (*PaidMediaPhoto) PaidMediaType() string

type PaidMediaPreview added in v0.7.3

type PaidMediaPreview struct {

	// Media width; 0 if unknown
	Width int32 `json:"width"`
	// Media height; 0 if unknown
	Height int32 `json:"height"`
	// Media duration, in seconds; 0 if unknown
	Duration int32 `json:"duration"`
	// Media minithumbnail; may be null
	Minithumbnail *Minithumbnail `json:"minithumbnail"`
	// contains filtered or unexported fields
}

The media is hidden until the invoice is paid

func UnmarshalPaidMediaPreview added in v0.7.3

func UnmarshalPaidMediaPreview(data json.RawMessage) (*PaidMediaPreview, error)

func (*PaidMediaPreview) GetClass added in v0.7.3

func (*PaidMediaPreview) GetClass() string

func (*PaidMediaPreview) GetType added in v0.7.3

func (*PaidMediaPreview) GetType() string

func (*PaidMediaPreview) MarshalJSON added in v0.7.3

func (entity *PaidMediaPreview) MarshalJSON() ([]byte, error)

func (*PaidMediaPreview) PaidMediaType added in v0.7.3

func (*PaidMediaPreview) PaidMediaType() string

type PaidMediaUnsupported added in v0.7.3

type PaidMediaUnsupported struct {
	// contains filtered or unexported fields
}

The media is unsupported

func UnmarshalPaidMediaUnsupported added in v0.7.3

func UnmarshalPaidMediaUnsupported(data json.RawMessage) (*PaidMediaUnsupported, error)

func (*PaidMediaUnsupported) GetClass added in v0.7.3

func (*PaidMediaUnsupported) GetClass() string

func (*PaidMediaUnsupported) GetType added in v0.7.3

func (*PaidMediaUnsupported) GetType() string

func (*PaidMediaUnsupported) MarshalJSON added in v0.7.3

func (entity *PaidMediaUnsupported) MarshalJSON() ([]byte, error)

func (*PaidMediaUnsupported) PaidMediaType added in v0.7.3

func (*PaidMediaUnsupported) PaidMediaType() string

type PaidMediaVideo added in v0.7.3

type PaidMediaVideo struct {

	// The video
	Video *Video `json:"video"`
	// contains filtered or unexported fields
}

The media is a video

func UnmarshalPaidMediaVideo added in v0.7.3

func UnmarshalPaidMediaVideo(data json.RawMessage) (*PaidMediaVideo, error)

func (*PaidMediaVideo) GetClass added in v0.7.3

func (*PaidMediaVideo) GetClass() string

func (*PaidMediaVideo) GetType added in v0.7.3

func (*PaidMediaVideo) GetType() string

func (*PaidMediaVideo) MarshalJSON added in v0.7.3

func (entity *PaidMediaVideo) MarshalJSON() ([]byte, error)

func (*PaidMediaVideo) PaidMediaType added in v0.7.3

func (*PaidMediaVideo) PaidMediaType() string

type PaidReactor added in v0.7.3

type PaidReactor struct {

	// Identifier of the user or chat that added the reactions; may be null for anonymous reactors that aren't the current user
	SenderId MessageSender `json:"sender_id"`
	// Number of Telegram Stars added
	StarCount int32 `json:"star_count"`
	// True, if the reactor is one of the most active reactors; may be false if the reactor is the current user
	IsTop bool `json:"is_top"`
	// True, if the paid reaction was added by the current user
	IsMe bool `json:"is_me"`
	// True, if the reactor is anonymous
	IsAnonymous bool `json:"is_anonymous"`
	// contains filtered or unexported fields
}

Contains information about a user that added paid reactions

func UnmarshalPaidReactor added in v0.7.3

func UnmarshalPaidReactor(data json.RawMessage) (*PaidReactor, error)

func (*PaidReactor) GetClass added in v0.7.3

func (*PaidReactor) GetClass() string

func (*PaidReactor) GetType added in v0.7.3

func (*PaidReactor) GetType() string

func (*PaidReactor) MarshalJSON added in v0.7.3

func (entity *PaidReactor) MarshalJSON() ([]byte, error)

func (*PaidReactor) UnmarshalJSON added in v0.7.3

func (paidReactor *PaidReactor) UnmarshalJSON(data []byte) error

type ParseMarkdownRequest added in v0.3.0

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 added in v0.3.2

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) GetType

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) GetType

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) 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 added in v0.3.2

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) 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) GetType

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) GetType

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) GetType

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) 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) GetType

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) GetType

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 Telegram Passport element

func UnmarshalListOfPassportElementType added in v0.3.2

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) 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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) 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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) GetType

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) 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 added in v0.3.2

func (passportElements *PassportElements) UnmarshalJSON(data []byte) error

type PassportElementsWithErrors added in v0.0.13

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 added in v0.0.13

func UnmarshalPassportElementsWithErrors(data json.RawMessage) (*PassportElementsWithErrors, error)

func (*PassportElementsWithErrors) GetClass added in v0.0.13

func (*PassportElementsWithErrors) GetClass() string

func (*PassportElementsWithErrors) GetType added in v0.0.13

func (*PassportElementsWithErrors) MarshalJSON added in v0.0.13

func (entity *PassportElementsWithErrors) MarshalJSON() ([]byte, error)

func (*PassportElementsWithErrors) UnmarshalJSON added in v0.3.2

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"`
	// Type of the payment form
	Type PaymentFormType `json:"type"`
	// User identifier of the seller bot
	SellerBotUserId int64 `json:"seller_bot_user_id"`
	// Information about the product
	ProductInfo *ProductInfo `json:"product_info"`
	// 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 v0.7.0

func (paymentForm *PaymentForm) UnmarshalJSON(data []byte) error

type PaymentFormType added in v0.7.3

type PaymentFormType interface {
	PaymentFormTypeType() string
}

Describes type of payment form

func UnmarshalListOfPaymentFormType added in v0.7.3

func UnmarshalListOfPaymentFormType(dataList []json.RawMessage) ([]PaymentFormType, error)

func UnmarshalPaymentFormType added in v0.7.3

func UnmarshalPaymentFormType(data json.RawMessage) (PaymentFormType, error)

type PaymentFormTypeRegular added in v0.7.3

type PaymentFormTypeRegular struct {

	// Full information about the invoice
	Invoice *Invoice `json:"invoice"`
	// 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"`
	// contains filtered or unexported fields
}

The payment form is for a regular payment

func UnmarshalPaymentFormTypeRegular added in v0.7.3

func UnmarshalPaymentFormTypeRegular(data json.RawMessage) (*PaymentFormTypeRegular, error)

func (*PaymentFormTypeRegular) GetClass added in v0.7.3

func (*PaymentFormTypeRegular) GetClass() string

func (*PaymentFormTypeRegular) GetType added in v0.7.3

func (*PaymentFormTypeRegular) GetType() string

func (*PaymentFormTypeRegular) MarshalJSON added in v0.7.3

func (entity *PaymentFormTypeRegular) MarshalJSON() ([]byte, error)

func (*PaymentFormTypeRegular) PaymentFormTypeType added in v0.7.3

func (*PaymentFormTypeRegular) PaymentFormTypeType() string

func (*PaymentFormTypeRegular) UnmarshalJSON added in v0.7.3

func (paymentFormTypeRegular *PaymentFormTypeRegular) UnmarshalJSON(data []byte) error

type PaymentFormTypeStarSubscription added in v0.7.4

type PaymentFormTypeStarSubscription struct {

	// Information about subscription plan
	Pricing *StarSubscriptionPricing `json:"pricing"`
	// contains filtered or unexported fields
}

The payment form is for a payment in Telegram Stars for subscription

func UnmarshalPaymentFormTypeStarSubscription added in v0.7.4

func UnmarshalPaymentFormTypeStarSubscription(data json.RawMessage) (*PaymentFormTypeStarSubscription, error)

func (*PaymentFormTypeStarSubscription) GetClass added in v0.7.4

func (*PaymentFormTypeStarSubscription) GetType added in v0.7.4

func (*PaymentFormTypeStarSubscription) MarshalJSON added in v0.7.4

func (entity *PaymentFormTypeStarSubscription) MarshalJSON() ([]byte, error)

func (*PaymentFormTypeStarSubscription) PaymentFormTypeType added in v0.7.4

func (*PaymentFormTypeStarSubscription) PaymentFormTypeType() string

type PaymentFormTypeStars added in v0.7.3

type PaymentFormTypeStars struct {

	// Number of Telegram Stars that will be paid
	StarCount int64 `json:"star_count"`
	// contains filtered or unexported fields
}

The payment form is for a payment in Telegram Stars

func UnmarshalPaymentFormTypeStars added in v0.7.3

func UnmarshalPaymentFormTypeStars(data json.RawMessage) (*PaymentFormTypeStars, error)

func (*PaymentFormTypeStars) GetClass added in v0.7.3

func (*PaymentFormTypeStars) GetClass() string

func (*PaymentFormTypeStars) GetType added in v0.7.3

func (*PaymentFormTypeStars) GetType() string

func (*PaymentFormTypeStars) MarshalJSON added in v0.7.3

func (entity *PaymentFormTypeStars) MarshalJSON() ([]byte, error)

func (*PaymentFormTypeStars) PaymentFormTypeType added in v0.7.3

func (*PaymentFormTypeStars) PaymentFormTypeType() string

type PaymentOption added in v0.7.0

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 v0.7.0

func UnmarshalPaymentOption(data json.RawMessage) (*PaymentOption, error)

func (*PaymentOption) GetClass added in v0.7.0

func (*PaymentOption) GetClass() string

func (*PaymentOption) GetType added in v0.7.0

func (*PaymentOption) GetType() string

func (*PaymentOption) MarshalJSON added in v0.7.0

func (entity *PaymentOption) MarshalJSON() ([]byte, error)

type PaymentProvider added in v0.7.0

type PaymentProvider interface {
	PaymentProviderType() string
}

Contains information about a payment provider

func UnmarshalListOfPaymentProvider added in v0.7.0

func UnmarshalListOfPaymentProvider(dataList []json.RawMessage) ([]PaymentProvider, error)

func UnmarshalPaymentProvider added in v0.7.0

func UnmarshalPaymentProvider(data json.RawMessage) (PaymentProvider, error)

type PaymentProviderOther added in v0.7.0

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 v0.7.0

func UnmarshalPaymentProviderOther(data json.RawMessage) (*PaymentProviderOther, error)

func (*PaymentProviderOther) GetClass added in v0.7.0

func (*PaymentProviderOther) GetClass() string

func (*PaymentProviderOther) GetType added in v0.7.0

func (*PaymentProviderOther) GetType() string

func (*PaymentProviderOther) MarshalJSON added in v0.7.0

func (entity *PaymentProviderOther) MarshalJSON() ([]byte, error)

func (*PaymentProviderOther) PaymentProviderType added in v0.7.0

func (*PaymentProviderOther) PaymentProviderType() string

type PaymentProviderSmartGlocal added in v0.7.0

type PaymentProviderSmartGlocal struct {

	// Public payment token
	PublicToken string `json:"public_token"`
	// URL for sending card tokenization requests
	TokenizeUrl string `json:"tokenize_url"`
	// contains filtered or unexported fields
}

Smart Glocal payment provider

func UnmarshalPaymentProviderSmartGlocal added in v0.7.0

func UnmarshalPaymentProviderSmartGlocal(data json.RawMessage) (*PaymentProviderSmartGlocal, error)

func (*PaymentProviderSmartGlocal) GetClass added in v0.7.0

func (*PaymentProviderSmartGlocal) GetClass() string

func (*PaymentProviderSmartGlocal) GetType added in v0.7.0

func (*PaymentProviderSmartGlocal) MarshalJSON added in v0.7.0

func (entity *PaymentProviderSmartGlocal) MarshalJSON() ([]byte, error)

func (*PaymentProviderSmartGlocal) PaymentProviderType added in v0.7.0

func (*PaymentProviderSmartGlocal) PaymentProviderType() string

type PaymentProviderStripe added in v0.7.0

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 v0.7.0

func UnmarshalPaymentProviderStripe(data json.RawMessage) (*PaymentProviderStripe, error)

func (*PaymentProviderStripe) GetClass added in v0.7.0

func (*PaymentProviderStripe) GetClass() string

func (*PaymentProviderStripe) GetType added in v0.7.0

func (*PaymentProviderStripe) GetType() string

func (*PaymentProviderStripe) MarshalJSON added in v0.7.0

func (entity *PaymentProviderStripe) MarshalJSON() ([]byte, error)

func (*PaymentProviderStripe) PaymentProviderType added in v0.7.0

func (*PaymentProviderStripe) PaymentProviderType() string

type PaymentReceipt

type PaymentReceipt struct {

	// Information about the product
	ProductInfo *ProductInfo `json:"product_info"`
	// 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"`
	// Type of the payment receipt
	Type PaymentReceiptType `json:"type"`
	// 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)

func (*PaymentReceipt) UnmarshalJSON added in v0.7.3

func (paymentReceipt *PaymentReceipt) UnmarshalJSON(data []byte) error

type PaymentReceiptType added in v0.7.3

type PaymentReceiptType interface {
	PaymentReceiptTypeType() string
}

Describes type of successful payment

func UnmarshalListOfPaymentReceiptType added in v0.7.3

func UnmarshalListOfPaymentReceiptType(dataList []json.RawMessage) ([]PaymentReceiptType, error)

func UnmarshalPaymentReceiptType added in v0.7.3

func UnmarshalPaymentReceiptType(data json.RawMessage) (PaymentReceiptType, error)

type PaymentReceiptTypeRegular added in v0.7.3

type PaymentReceiptTypeRegular struct {

	// 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
}

The payment was done using a third-party payment provider

func UnmarshalPaymentReceiptTypeRegular added in v0.7.3

func UnmarshalPaymentReceiptTypeRegular(data json.RawMessage) (*PaymentReceiptTypeRegular, error)

func (*PaymentReceiptTypeRegular) GetClass added in v0.7.3

func (*PaymentReceiptTypeRegular) GetClass() string

func (*PaymentReceiptTypeRegular) GetType added in v0.7.3

func (*PaymentReceiptTypeRegular) GetType() string

func (*PaymentReceiptTypeRegular) MarshalJSON added in v0.7.3

func (entity *PaymentReceiptTypeRegular) MarshalJSON() ([]byte, error)

func (*PaymentReceiptTypeRegular) PaymentReceiptTypeType added in v0.7.3

func (*PaymentReceiptTypeRegular) PaymentReceiptTypeType() string

type PaymentReceiptTypeStars added in v0.7.3

type PaymentReceiptTypeStars struct {

	// Number of Telegram Stars that were paid
	StarCount int64 `json:"star_count"`
	// Unique identifier of the transaction that can be used to dispute it
	TransactionId string `json:"transaction_id"`
	// contains filtered or unexported fields
}

The payment was done using Telegram Stars

func UnmarshalPaymentReceiptTypeStars added in v0.7.3

func UnmarshalPaymentReceiptTypeStars(data json.RawMessage) (*PaymentReceiptTypeStars, error)

func (*PaymentReceiptTypeStars) GetClass added in v0.7.3

func (*PaymentReceiptTypeStars) GetClass() string

func (*PaymentReceiptTypeStars) GetType added in v0.7.3

func (*PaymentReceiptTypeStars) GetType() string

func (*PaymentReceiptTypeStars) MarshalJSON added in v0.7.3

func (entity *PaymentReceiptTypeStars) MarshalJSON() ([]byte, error)

func (*PaymentReceiptTypeStars) PaymentReceiptTypeType added in v0.7.3

func (*PaymentReceiptTypeStars) PaymentReceiptTypeType() string

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 added in v0.1.0

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"`
	// Pass true if there is a SIM card in the current device, but it is not possible to check whether phone number matches
	HasUnknownPhoneNumber bool `json:"has_unknown_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 added in v0.1.0

func UnmarshalPhoneNumberAuthenticationSettings(data json.RawMessage) (*PhoneNumberAuthenticationSettings, error)

func (*PhoneNumberAuthenticationSettings) GetClass added in v0.1.0

func (*PhoneNumberAuthenticationSettings) GetType added in v0.1.0

func (*PhoneNumberAuthenticationSettings) MarshalJSON added in v0.1.0

func (entity *PhoneNumberAuthenticationSettings) MarshalJSON() ([]byte, error)

func (*PhoneNumberAuthenticationSettings) UnmarshalJSON added in v0.7.0

func (phoneNumberAuthenticationSettings *PhoneNumberAuthenticationSettings) UnmarshalJSON(data []byte) error

type PhoneNumberCodeType added in v0.7.3

type PhoneNumberCodeType interface {
	PhoneNumberCodeTypeType() string
}

Describes type of the request for which a code is sent to a phone number

func UnmarshalListOfPhoneNumberCodeType added in v0.7.3

func UnmarshalListOfPhoneNumberCodeType(dataList []json.RawMessage) ([]PhoneNumberCodeType, error)

func UnmarshalPhoneNumberCodeType added in v0.7.3

func UnmarshalPhoneNumberCodeType(data json.RawMessage) (PhoneNumberCodeType, error)

type PhoneNumberCodeTypeChange added in v0.7.3

type PhoneNumberCodeTypeChange struct {
	// contains filtered or unexported fields
}

Checks ownership of a new phone number to change the user's authentication phone number; for official Android and iOS applications only

func UnmarshalPhoneNumberCodeTypeChange added in v0.7.3

func UnmarshalPhoneNumberCodeTypeChange(data json.RawMessage) (*PhoneNumberCodeTypeChange, error)

func (*PhoneNumberCodeTypeChange) GetClass added in v0.7.3

func (*PhoneNumberCodeTypeChange) GetClass() string

func (*PhoneNumberCodeTypeChange) GetType added in v0.7.3

func (*PhoneNumberCodeTypeChange) GetType() string

func (*PhoneNumberCodeTypeChange) MarshalJSON added in v0.7.3

func (entity *PhoneNumberCodeTypeChange) MarshalJSON() ([]byte, error)

func (*PhoneNumberCodeTypeChange) PhoneNumberCodeTypeType added in v0.7.3

func (*PhoneNumberCodeTypeChange) PhoneNumberCodeTypeType() string

type PhoneNumberCodeTypeConfirmOwnership added in v0.7.3

type PhoneNumberCodeTypeConfirmOwnership struct {

	// Hash value from the link
	Hash string `json:"hash"`
	// contains filtered or unexported fields
}

Confirms ownership of a phone number to prevent account deletion while handling links of the type internalLinkTypePhoneNumberConfirmation

func UnmarshalPhoneNumberCodeTypeConfirmOwnership added in v0.7.3

func UnmarshalPhoneNumberCodeTypeConfirmOwnership(data json.RawMessage) (*PhoneNumberCodeTypeConfirmOwnership, error)

func (*PhoneNumberCodeTypeConfirmOwnership) GetClass added in v0.7.3

func (*PhoneNumberCodeTypeConfirmOwnership) GetType added in v0.7.3

func (*PhoneNumberCodeTypeConfirmOwnership) MarshalJSON added in v0.7.3

func (entity *PhoneNumberCodeTypeConfirmOwnership) MarshalJSON() ([]byte, error)

func (*PhoneNumberCodeTypeConfirmOwnership) PhoneNumberCodeTypeType added in v0.7.3

func (*PhoneNumberCodeTypeConfirmOwnership) PhoneNumberCodeTypeType() string

type PhoneNumberCodeTypeVerify added in v0.7.3

type PhoneNumberCodeTypeVerify struct {
	// contains filtered or unexported fields
}

Verifies ownership of a phone number to be added to the user's Telegram Passport

func UnmarshalPhoneNumberCodeTypeVerify added in v0.7.3

func UnmarshalPhoneNumberCodeTypeVerify(data json.RawMessage) (*PhoneNumberCodeTypeVerify, error)

func (*PhoneNumberCodeTypeVerify) GetClass added in v0.7.3

func (*PhoneNumberCodeTypeVerify) GetClass() string

func (*PhoneNumberCodeTypeVerify) GetType added in v0.7.3

func (*PhoneNumberCodeTypeVerify) GetType() string

func (*PhoneNumberCodeTypeVerify) MarshalJSON added in v0.7.3

func (entity *PhoneNumberCodeTypeVerify) MarshalJSON() ([]byte, error)

func (*PhoneNumberCodeTypeVerify) PhoneNumberCodeTypeType added in v0.7.3

func (*PhoneNumberCodeTypeVerify) PhoneNumberCodeTypeType() string

type PhoneNumberInfo added in v0.3.0

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 at https://fragment.com and isn't tied to a SIM card. Information about the phone number can be received using getCollectibleItemInfo
	IsAnonymous bool `json:"is_anonymous"`
	// contains filtered or unexported fields
}

Contains information about a phone number

func GetPhoneNumberInfoSync added in v0.6.0

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 added in v0.3.0

func UnmarshalPhoneNumberInfo(data json.RawMessage) (*PhoneNumberInfo, error)

func (*PhoneNumberInfo) GetClass added in v0.3.0

func (*PhoneNumberInfo) GetClass() string

func (*PhoneNumberInfo) GetType added in v0.3.0

func (*PhoneNumberInfo) GetType() string

func (*PhoneNumberInfo) MarshalJSON added in v0.3.0

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) GetClass

func (*Photo) GetClass() string

func (*Photo) GetType

func (*Photo) GetType() string

func (*Photo) MarshalJSON

func (entity *Photo) MarshalJSON() ([]byte, error)

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) GetClass

func (*PhotoSize) GetClass() string

func (*PhotoSize) GetType

func (*PhotoSize) GetType() string

func (*PhotoSize) MarshalJSON

func (entity *PhotoSize) MarshalJSON() ([]byte, error)

type PinChatMessageRequest added in v0.0.13

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 added in v0.5.0

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 added in v0.5.0

func UnmarshalPoint(data json.RawMessage) (*Point, error)

func (*Point) GetClass added in v0.5.0

func (*Point) GetClass() string

func (*Point) GetType added in v0.5.0

func (*Point) GetType() string

func (*Point) MarshalJSON added in v0.5.0

func (entity *Point) MarshalJSON() ([]byte, error)

type Poll added in v0.0.13

type Poll struct {

	// Unique poll identifier
	Id JsonInt64 `json:"id"`
	// Poll question; 1-300 characters. Only custom emoji entities are allowed
	Question *FormattedText `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 added in v0.0.13

func UnmarshalPoll(data json.RawMessage) (*Poll, error)

func (*Poll) GetClass added in v0.0.13

func (*Poll) GetClass() string

func (*Poll) GetType added in v0.0.13

func (*Poll) GetType() string

func (*Poll) MarshalJSON added in v0.0.13

func (entity *Poll) MarshalJSON() ([]byte, error)

func (*Poll) UnmarshalJSON added in v0.2.0

func (poll *Poll) UnmarshalJSON(data []byte) error

type PollOption added in v0.0.13

type PollOption struct {

	// Option text; 1-100 characters. Only custom emoji entities are allowed
	Text *FormattedText `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 added in v0.0.13

func UnmarshalPollOption(data json.RawMessage) (*PollOption, error)

func (*PollOption) GetClass added in v0.0.13

func (*PollOption) GetClass() string

func (*PollOption) GetType added in v0.0.13

func (*PollOption) GetType() string

func (*PollOption) MarshalJSON added in v0.0.13

func (entity *PollOption) MarshalJSON() ([]byte, error)

type PollType added in v0.2.0

type PollType interface {
	PollTypeType() string
}

Describes the type of poll

func UnmarshalListOfPollType added in v0.3.2

func UnmarshalListOfPollType(dataList []json.RawMessage) ([]PollType, error)

func UnmarshalPollType added in v0.2.0

func UnmarshalPollType(data json.RawMessage) (PollType, error)

type PollTypeQuiz added in v0.2.0

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 added in v0.2.0

func UnmarshalPollTypeQuiz(data json.RawMessage) (*PollTypeQuiz, error)

func (*PollTypeQuiz) GetClass added in v0.2.0

func (*PollTypeQuiz) GetClass() string

func (*PollTypeQuiz) GetType added in v0.2.0

func (*PollTypeQuiz) GetType() string

func (*PollTypeQuiz) MarshalJSON added in v0.2.0

func (entity *PollTypeQuiz) MarshalJSON() ([]byte, error)

func (*PollTypeQuiz) PollTypeType added in v0.2.0

func (*PollTypeQuiz) PollTypeType() string

type PollTypeRegular added in v0.2.0

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 added in v0.2.0

func UnmarshalPollTypeRegular(data json.RawMessage) (*PollTypeRegular, error)

func (*PollTypeRegular) GetClass added in v0.2.0

func (*PollTypeRegular) GetClass() string

func (*PollTypeRegular) GetType added in v0.2.0

func (*PollTypeRegular) GetType() string

func (*PollTypeRegular) MarshalJSON added in v0.2.0

func (entity *PollTypeRegular) MarshalJSON() ([]byte, error)

func (*PollTypeRegular) PollTypeType added in v0.2.0

func (*PollTypeRegular) PollTypeType() string

type PreliminaryUploadFileRequest added in v0.7.0

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 v0.7.0

type PremiumFeature interface {
	PremiumFeatureType() string
}

Describes a feature available to Premium users

func UnmarshalListOfPremiumFeature added in v0.7.0

func UnmarshalListOfPremiumFeature(dataList []json.RawMessage) ([]PremiumFeature, error)

func UnmarshalPremiumFeature added in v0.7.0

func UnmarshalPremiumFeature(data json.RawMessage) (PremiumFeature, error)

type PremiumFeatureAccentColor added in v0.7.1

type PremiumFeatureAccentColor struct {
	// contains filtered or unexported fields
}

The ability to choose accent color for replies and user profile

func UnmarshalPremiumFeatureAccentColor added in v0.7.1

func UnmarshalPremiumFeatureAccentColor(data json.RawMessage) (*PremiumFeatureAccentColor, error)

func (*PremiumFeatureAccentColor) GetClass added in v0.7.1

func (*PremiumFeatureAccentColor) GetClass() string

func (*PremiumFeatureAccentColor) GetType added in v0.7.1

func (*PremiumFeatureAccentColor) GetType() string

func (*PremiumFeatureAccentColor) MarshalJSON added in v0.7.1

func (entity *PremiumFeatureAccentColor) MarshalJSON() ([]byte, error)

func (*PremiumFeatureAccentColor) PremiumFeatureType added in v0.7.1

func (*PremiumFeatureAccentColor) PremiumFeatureType() string

type PremiumFeatureAdvancedChatManagement added in v0.7.0

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 v0.7.0

func UnmarshalPremiumFeatureAdvancedChatManagement(data json.RawMessage) (*PremiumFeatureAdvancedChatManagement, error)

func (*PremiumFeatureAdvancedChatManagement) GetClass added in v0.7.0

func (*PremiumFeatureAdvancedChatManagement) GetType added in v0.7.0

func (*PremiumFeatureAdvancedChatManagement) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureAdvancedChatManagement) MarshalJSON() ([]byte, error)

func (*PremiumFeatureAdvancedChatManagement) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureAdvancedChatManagement) PremiumFeatureType() string

type PremiumFeatureAnimatedProfilePhoto added in v0.7.0

type PremiumFeatureAnimatedProfilePhoto struct {
	// contains filtered or unexported fields
}

Profile photo animation on message and chat screens

func UnmarshalPremiumFeatureAnimatedProfilePhoto added in v0.7.0

func UnmarshalPremiumFeatureAnimatedProfilePhoto(data json.RawMessage) (*PremiumFeatureAnimatedProfilePhoto, error)

func (*PremiumFeatureAnimatedProfilePhoto) GetClass added in v0.7.0

func (*PremiumFeatureAnimatedProfilePhoto) GetType added in v0.7.0

func (*PremiumFeatureAnimatedProfilePhoto) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureAnimatedProfilePhoto) MarshalJSON() ([]byte, error)

func (*PremiumFeatureAnimatedProfilePhoto) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureAnimatedProfilePhoto) PremiumFeatureType() string

type PremiumFeatureAppIcons added in v0.7.0

type PremiumFeatureAppIcons struct {
	// contains filtered or unexported fields
}

Allowed to set a premium application icons

func UnmarshalPremiumFeatureAppIcons added in v0.7.0

func UnmarshalPremiumFeatureAppIcons(data json.RawMessage) (*PremiumFeatureAppIcons, error)

func (*PremiumFeatureAppIcons) GetClass added in v0.7.0

func (*PremiumFeatureAppIcons) GetClass() string

func (*PremiumFeatureAppIcons) GetType added in v0.7.0

func (*PremiumFeatureAppIcons) GetType() string

func (*PremiumFeatureAppIcons) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureAppIcons) MarshalJSON() ([]byte, error)

func (*PremiumFeatureAppIcons) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureAppIcons) PremiumFeatureType() string

type PremiumFeatureBackgroundForBoth added in v0.7.1

type PremiumFeatureBackgroundForBoth struct {
	// contains filtered or unexported fields
}

The ability to set private chat background for both users

func UnmarshalPremiumFeatureBackgroundForBoth added in v0.7.1

func UnmarshalPremiumFeatureBackgroundForBoth(data json.RawMessage) (*PremiumFeatureBackgroundForBoth, error)

func (*PremiumFeatureBackgroundForBoth) GetClass added in v0.7.1

func (*PremiumFeatureBackgroundForBoth) GetType added in v0.7.1

func (*PremiumFeatureBackgroundForBoth) MarshalJSON added in v0.7.1

func (entity *PremiumFeatureBackgroundForBoth) MarshalJSON() ([]byte, error)

func (*PremiumFeatureBackgroundForBoth) PremiumFeatureType added in v0.7.1

func (*PremiumFeatureBackgroundForBoth) PremiumFeatureType() string

type PremiumFeatureBusiness added in v0.7.2

type PremiumFeatureBusiness struct {
	// contains filtered or unexported fields
}

The ability to use Business features

func UnmarshalPremiumFeatureBusiness added in v0.7.2

func UnmarshalPremiumFeatureBusiness(data json.RawMessage) (*PremiumFeatureBusiness, error)

func (*PremiumFeatureBusiness) GetClass added in v0.7.2

func (*PremiumFeatureBusiness) GetClass() string

func (*PremiumFeatureBusiness) GetType added in v0.7.2

func (*PremiumFeatureBusiness) GetType() string

func (*PremiumFeatureBusiness) MarshalJSON added in v0.7.2

func (entity *PremiumFeatureBusiness) MarshalJSON() ([]byte, error)

func (*PremiumFeatureBusiness) PremiumFeatureType added in v0.7.2

func (*PremiumFeatureBusiness) PremiumFeatureType() string

type PremiumFeatureChatBoost added in v0.7.1

type PremiumFeatureChatBoost struct {
	// contains filtered or unexported fields
}

The ability to boost chats

func UnmarshalPremiumFeatureChatBoost added in v0.7.1

func UnmarshalPremiumFeatureChatBoost(data json.RawMessage) (*PremiumFeatureChatBoost, error)

func (*PremiumFeatureChatBoost) GetClass added in v0.7.1

func (*PremiumFeatureChatBoost) GetClass() string

func (*PremiumFeatureChatBoost) GetType added in v0.7.1

func (*PremiumFeatureChatBoost) GetType() string

func (*PremiumFeatureChatBoost) MarshalJSON added in v0.7.1

func (entity *PremiumFeatureChatBoost) MarshalJSON() ([]byte, error)

func (*PremiumFeatureChatBoost) PremiumFeatureType added in v0.7.1

func (*PremiumFeatureChatBoost) PremiumFeatureType() string

type PremiumFeatureCustomEmoji added in v0.7.0

type PremiumFeatureCustomEmoji struct {
	// contains filtered or unexported fields
}

Allowed to use custom emoji stickers in message texts and captions

func UnmarshalPremiumFeatureCustomEmoji added in v0.7.0

func UnmarshalPremiumFeatureCustomEmoji(data json.RawMessage) (*PremiumFeatureCustomEmoji, error)

func (*PremiumFeatureCustomEmoji) GetClass added in v0.7.0

func (*PremiumFeatureCustomEmoji) GetClass() string

func (*PremiumFeatureCustomEmoji) GetType added in v0.7.0

func (*PremiumFeatureCustomEmoji) GetType() string

func (*PremiumFeatureCustomEmoji) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureCustomEmoji) MarshalJSON() ([]byte, error)

func (*PremiumFeatureCustomEmoji) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureCustomEmoji) PremiumFeatureType() string

type PremiumFeatureDisabledAds added in v0.7.0

type PremiumFeatureDisabledAds struct {
	// contains filtered or unexported fields
}

Disabled ads

func UnmarshalPremiumFeatureDisabledAds added in v0.7.0

func UnmarshalPremiumFeatureDisabledAds(data json.RawMessage) (*PremiumFeatureDisabledAds, error)

func (*PremiumFeatureDisabledAds) GetClass added in v0.7.0

func (*PremiumFeatureDisabledAds) GetClass() string

func (*PremiumFeatureDisabledAds) GetType added in v0.7.0

func (*PremiumFeatureDisabledAds) GetType() string

func (*PremiumFeatureDisabledAds) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureDisabledAds) MarshalJSON() ([]byte, error)

func (*PremiumFeatureDisabledAds) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureDisabledAds) PremiumFeatureType() string

type PremiumFeatureEmojiStatus added in v0.7.0

type PremiumFeatureEmojiStatus struct {
	// contains filtered or unexported fields
}

The ability to show an emoji status along with the user's name

func UnmarshalPremiumFeatureEmojiStatus added in v0.7.0

func UnmarshalPremiumFeatureEmojiStatus(data json.RawMessage) (*PremiumFeatureEmojiStatus, error)

func (*PremiumFeatureEmojiStatus) GetClass added in v0.7.0

func (*PremiumFeatureEmojiStatus) GetClass() string

func (*PremiumFeatureEmojiStatus) GetType added in v0.7.0

func (*PremiumFeatureEmojiStatus) GetType() string

func (*PremiumFeatureEmojiStatus) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureEmojiStatus) MarshalJSON() ([]byte, error)

func (*PremiumFeatureEmojiStatus) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureEmojiStatus) PremiumFeatureType() string

type PremiumFeatureForumTopicIcon added in v0.7.0

type PremiumFeatureForumTopicIcon struct {
	// contains filtered or unexported fields
}

The ability to set a custom emoji as a forum topic icon

func UnmarshalPremiumFeatureForumTopicIcon added in v0.7.0

func UnmarshalPremiumFeatureForumTopicIcon(data json.RawMessage) (*PremiumFeatureForumTopicIcon, error)

func (*PremiumFeatureForumTopicIcon) GetClass added in v0.7.0

func (*PremiumFeatureForumTopicIcon) GetType added in v0.7.0

func (*PremiumFeatureForumTopicIcon) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureForumTopicIcon) MarshalJSON() ([]byte, error)

func (*PremiumFeatureForumTopicIcon) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureForumTopicIcon) PremiumFeatureType() string

type PremiumFeatureImprovedDownloadSpeed added in v0.7.0

type PremiumFeatureImprovedDownloadSpeed struct {
	// contains filtered or unexported fields
}

Improved download speed

func UnmarshalPremiumFeatureImprovedDownloadSpeed added in v0.7.0

func UnmarshalPremiumFeatureImprovedDownloadSpeed(data json.RawMessage) (*PremiumFeatureImprovedDownloadSpeed, error)

func (*PremiumFeatureImprovedDownloadSpeed) GetClass added in v0.7.0

func (*PremiumFeatureImprovedDownloadSpeed) GetType added in v0.7.0

func (*PremiumFeatureImprovedDownloadSpeed) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureImprovedDownloadSpeed) MarshalJSON() ([]byte, error)

func (*PremiumFeatureImprovedDownloadSpeed) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureImprovedDownloadSpeed) PremiumFeatureType() string

type PremiumFeatureIncreasedLimits added in v0.7.0

type PremiumFeatureIncreasedLimits struct {
	// contains filtered or unexported fields
}

Increased limits

func UnmarshalPremiumFeatureIncreasedLimits added in v0.7.0

func UnmarshalPremiumFeatureIncreasedLimits(data json.RawMessage) (*PremiumFeatureIncreasedLimits, error)

func (*PremiumFeatureIncreasedLimits) GetClass added in v0.7.0

func (*PremiumFeatureIncreasedLimits) GetType added in v0.7.0

func (*PremiumFeatureIncreasedLimits) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureIncreasedLimits) MarshalJSON() ([]byte, error)

func (*PremiumFeatureIncreasedLimits) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureIncreasedLimits) PremiumFeatureType() string

type PremiumFeatureIncreasedUploadFileSize added in v0.7.0

type PremiumFeatureIncreasedUploadFileSize struct {
	// contains filtered or unexported fields
}

Increased maximum upload file size

func UnmarshalPremiumFeatureIncreasedUploadFileSize added in v0.7.0

func UnmarshalPremiumFeatureIncreasedUploadFileSize(data json.RawMessage) (*PremiumFeatureIncreasedUploadFileSize, error)

func (*PremiumFeatureIncreasedUploadFileSize) GetClass added in v0.7.0

func (*PremiumFeatureIncreasedUploadFileSize) GetType added in v0.7.0

func (*PremiumFeatureIncreasedUploadFileSize) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureIncreasedUploadFileSize) MarshalJSON() ([]byte, error)

func (*PremiumFeatureIncreasedUploadFileSize) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureIncreasedUploadFileSize) PremiumFeatureType() string

type PremiumFeatureLastSeenTimes added in v0.7.2

type PremiumFeatureLastSeenTimes struct {
	// contains filtered or unexported fields
}

The ability to view last seen and read times of other users even they can't view last seen or read time for the current user

func UnmarshalPremiumFeatureLastSeenTimes added in v0.7.2

func UnmarshalPremiumFeatureLastSeenTimes(data json.RawMessage) (*PremiumFeatureLastSeenTimes, error)

func (*PremiumFeatureLastSeenTimes) GetClass added in v0.7.2

func (*PremiumFeatureLastSeenTimes) GetClass() string

func (*PremiumFeatureLastSeenTimes) GetType added in v0.7.2

func (*PremiumFeatureLastSeenTimes) MarshalJSON added in v0.7.2

func (entity *PremiumFeatureLastSeenTimes) MarshalJSON() ([]byte, error)

func (*PremiumFeatureLastSeenTimes) PremiumFeatureType added in v0.7.2

func (*PremiumFeatureLastSeenTimes) PremiumFeatureType() string

type PremiumFeatureMessageEffects added in v0.7.3

type PremiumFeatureMessageEffects struct {
	// contains filtered or unexported fields
}

The ability to use all available message effects

func UnmarshalPremiumFeatureMessageEffects added in v0.7.3

func UnmarshalPremiumFeatureMessageEffects(data json.RawMessage) (*PremiumFeatureMessageEffects, error)

func (*PremiumFeatureMessageEffects) GetClass added in v0.7.3

func (*PremiumFeatureMessageEffects) GetType added in v0.7.3

func (*PremiumFeatureMessageEffects) MarshalJSON added in v0.7.3

func (entity *PremiumFeatureMessageEffects) MarshalJSON() ([]byte, error)

func (*PremiumFeatureMessageEffects) PremiumFeatureType added in v0.7.3

func (*PremiumFeatureMessageEffects) PremiumFeatureType() string

type PremiumFeatureMessagePrivacy added in v0.7.2

type PremiumFeatureMessagePrivacy struct {
	// contains filtered or unexported fields
}

The ability to disallow incoming voice and video note messages in private chats using setUserPrivacySettingRules with userPrivacySettingAllowPrivateVoiceAndVideoNoteMessages and to restrict incoming messages from non-contacts using setNewChatPrivacySettings

func UnmarshalPremiumFeatureMessagePrivacy added in v0.7.2

func UnmarshalPremiumFeatureMessagePrivacy(data json.RawMessage) (*PremiumFeatureMessagePrivacy, error)

func (*PremiumFeatureMessagePrivacy) GetClass added in v0.7.2

func (*PremiumFeatureMessagePrivacy) GetType added in v0.7.2

func (*PremiumFeatureMessagePrivacy) MarshalJSON added in v0.7.2

func (entity *PremiumFeatureMessagePrivacy) MarshalJSON() ([]byte, error)

func (*PremiumFeatureMessagePrivacy) PremiumFeatureType added in v0.7.2

func (*PremiumFeatureMessagePrivacy) PremiumFeatureType() string

type PremiumFeatureProfileBadge added in v0.7.0

type PremiumFeatureProfileBadge struct {
	// contains filtered or unexported fields
}

A badge in the user's profile

func UnmarshalPremiumFeatureProfileBadge added in v0.7.0

func UnmarshalPremiumFeatureProfileBadge(data json.RawMessage) (*PremiumFeatureProfileBadge, error)

func (*PremiumFeatureProfileBadge) GetClass added in v0.7.0

func (*PremiumFeatureProfileBadge) GetClass() string

func (*PremiumFeatureProfileBadge) GetType added in v0.7.0

func (*PremiumFeatureProfileBadge) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureProfileBadge) MarshalJSON() ([]byte, error)

func (*PremiumFeatureProfileBadge) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureProfileBadge) PremiumFeatureType() string

type PremiumFeaturePromotionAnimation added in v0.7.0

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 v0.7.0

func UnmarshalPremiumFeaturePromotionAnimation(data json.RawMessage) (*PremiumFeaturePromotionAnimation, error)

func (*PremiumFeaturePromotionAnimation) GetClass added in v0.7.0

func (*PremiumFeaturePromotionAnimation) GetType added in v0.7.0

func (*PremiumFeaturePromotionAnimation) MarshalJSON added in v0.7.0

func (entity *PremiumFeaturePromotionAnimation) MarshalJSON() ([]byte, error)

func (*PremiumFeaturePromotionAnimation) UnmarshalJSON added in v0.7.0

func (premiumFeaturePromotionAnimation *PremiumFeaturePromotionAnimation) UnmarshalJSON(data []byte) error

type PremiumFeatureRealTimeChatTranslation added in v0.7.0

type PremiumFeatureRealTimeChatTranslation struct {
	// contains filtered or unexported fields
}

Allowed to translate chat messages real-time

func UnmarshalPremiumFeatureRealTimeChatTranslation added in v0.7.0

func UnmarshalPremiumFeatureRealTimeChatTranslation(data json.RawMessage) (*PremiumFeatureRealTimeChatTranslation, error)

func (*PremiumFeatureRealTimeChatTranslation) GetClass added in v0.7.0

func (*PremiumFeatureRealTimeChatTranslation) GetType added in v0.7.0

func (*PremiumFeatureRealTimeChatTranslation) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureRealTimeChatTranslation) MarshalJSON() ([]byte, error)

func (*PremiumFeatureRealTimeChatTranslation) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureRealTimeChatTranslation) PremiumFeatureType() string

type PremiumFeatureSavedMessagesTags added in v0.7.2

type PremiumFeatureSavedMessagesTags struct {
	// contains filtered or unexported fields
}

The ability to use tags in Saved Messages

func UnmarshalPremiumFeatureSavedMessagesTags added in v0.7.2

func UnmarshalPremiumFeatureSavedMessagesTags(data json.RawMessage) (*PremiumFeatureSavedMessagesTags, error)

func (*PremiumFeatureSavedMessagesTags) GetClass added in v0.7.2

func (*PremiumFeatureSavedMessagesTags) GetType added in v0.7.2

func (*PremiumFeatureSavedMessagesTags) MarshalJSON added in v0.7.2

func (entity *PremiumFeatureSavedMessagesTags) MarshalJSON() ([]byte, error)

func (*PremiumFeatureSavedMessagesTags) PremiumFeatureType added in v0.7.2

func (*PremiumFeatureSavedMessagesTags) PremiumFeatureType() string

type PremiumFeatureUniqueReactions added in v0.7.0

type PremiumFeatureUniqueReactions struct {
	// contains filtered or unexported fields
}

Allowed to use more reactions

func UnmarshalPremiumFeatureUniqueReactions added in v0.7.0

func UnmarshalPremiumFeatureUniqueReactions(data json.RawMessage) (*PremiumFeatureUniqueReactions, error)

func (*PremiumFeatureUniqueReactions) GetClass added in v0.7.0

func (*PremiumFeatureUniqueReactions) GetType added in v0.7.0

func (*PremiumFeatureUniqueReactions) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureUniqueReactions) MarshalJSON() ([]byte, error)

func (*PremiumFeatureUniqueReactions) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureUniqueReactions) PremiumFeatureType() string

type PremiumFeatureUniqueStickers added in v0.7.0

type PremiumFeatureUniqueStickers struct {
	// contains filtered or unexported fields
}

Allowed to use premium stickers with unique effects

func UnmarshalPremiumFeatureUniqueStickers added in v0.7.0

func UnmarshalPremiumFeatureUniqueStickers(data json.RawMessage) (*PremiumFeatureUniqueStickers, error)

func (*PremiumFeatureUniqueStickers) GetClass added in v0.7.0

func (*PremiumFeatureUniqueStickers) GetType added in v0.7.0

func (*PremiumFeatureUniqueStickers) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureUniqueStickers) MarshalJSON() ([]byte, error)

func (*PremiumFeatureUniqueStickers) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureUniqueStickers) PremiumFeatureType() string

type PremiumFeatureUpgradedStories added in v0.7.0

type PremiumFeatureUpgradedStories struct {
	// contains filtered or unexported fields
}

Allowed to use many additional features for stories

func UnmarshalPremiumFeatureUpgradedStories added in v0.7.0

func UnmarshalPremiumFeatureUpgradedStories(data json.RawMessage) (*PremiumFeatureUpgradedStories, error)

func (*PremiumFeatureUpgradedStories) GetClass added in v0.7.0

func (*PremiumFeatureUpgradedStories) GetType added in v0.7.0

func (*PremiumFeatureUpgradedStories) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureUpgradedStories) MarshalJSON() ([]byte, error)

func (*PremiumFeatureUpgradedStories) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureUpgradedStories) PremiumFeatureType() string

type PremiumFeatureVoiceRecognition added in v0.7.0

type PremiumFeatureVoiceRecognition struct {
	// contains filtered or unexported fields
}

The ability to convert voice notes to text

func UnmarshalPremiumFeatureVoiceRecognition added in v0.7.0

func UnmarshalPremiumFeatureVoiceRecognition(data json.RawMessage) (*PremiumFeatureVoiceRecognition, error)

func (*PremiumFeatureVoiceRecognition) GetClass added in v0.7.0

func (*PremiumFeatureVoiceRecognition) GetType added in v0.7.0

func (*PremiumFeatureVoiceRecognition) MarshalJSON added in v0.7.0

func (entity *PremiumFeatureVoiceRecognition) MarshalJSON() ([]byte, error)

func (*PremiumFeatureVoiceRecognition) PremiumFeatureType added in v0.7.0

func (*PremiumFeatureVoiceRecognition) PremiumFeatureType() string

type PremiumFeatures added in v0.7.0

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 v0.7.0

func UnmarshalPremiumFeatures(data json.RawMessage) (*PremiumFeatures, error)

func (*PremiumFeatures) GetClass added in v0.7.0

func (*PremiumFeatures) GetClass() string

func (*PremiumFeatures) GetType added in v0.7.0

func (*PremiumFeatures) GetType() string

func (*PremiumFeatures) MarshalJSON added in v0.7.0

func (entity *PremiumFeatures) MarshalJSON() ([]byte, error)

func (*PremiumFeatures) UnmarshalJSON added in v0.7.0

func (premiumFeatures *PremiumFeatures) UnmarshalJSON(data []byte) error

type PremiumGiftCodeInfo added in v0.7.1

type PremiumGiftCodeInfo struct {

	// Identifier of a chat or a user that created the gift code; may be null if unknown. If null and the code is from messagePremiumGiftCode message, then creator_id from the message can be used
	CreatorId MessageSender `json:"creator_id"`
	// Point in time (Unix timestamp) when the code was created
	CreationDate int32 `json:"creation_date"`
	// True, if the gift code was created for a giveaway
	IsFromGiveaway bool `json:"is_from_giveaway"`
	// Identifier of the corresponding giveaway message in the creator_id chat; can be 0 or an identifier of a deleted message
	GiveawayMessageId int64 `json:"giveaway_message_id"`
	// Number of months the Telegram Premium subscription will be active after code activation
	MonthCount int32 `json:"month_count"`
	// Identifier of a user for which the code was created; 0 if none
	UserId int64 `json:"user_id"`
	// Point in time (Unix timestamp) when the code was activated; 0 if none
	UseDate int32 `json:"use_date"`
	// contains filtered or unexported fields
}

Contains information about a Telegram Premium gift code

func UnmarshalPremiumGiftCodeInfo added in v0.7.1

func UnmarshalPremiumGiftCodeInfo(data json.RawMessage) (*PremiumGiftCodeInfo, error)

func (*PremiumGiftCodeInfo) GetClass added in v0.7.1

func (*PremiumGiftCodeInfo) GetClass() string

func (*PremiumGiftCodeInfo) GetType added in v0.7.1

func (*PremiumGiftCodeInfo) GetType() string

func (*PremiumGiftCodeInfo) MarshalJSON added in v0.7.1

func (entity *PremiumGiftCodeInfo) MarshalJSON() ([]byte, error)

func (*PremiumGiftCodeInfo) UnmarshalJSON added in v0.7.1

func (premiumGiftCodeInfo *PremiumGiftCodeInfo) UnmarshalJSON(data []byte) error

type PremiumGiftCodePaymentOption added in v0.7.1

type PremiumGiftCodePaymentOption struct {

	// ISO 4217 currency code for Telegram Premium gift code 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 users which will be able to activate the gift codes
	WinnerCount int32 `json:"winner_count"`
	// Number of months the Telegram Premium subscription will be active
	MonthCount int32 `json:"month_count"`
	// Identifier of the store product associated with the option; may be empty if none
	StoreProductId string `json:"store_product_id"`
	// Number of times the store product must be paid
	StoreProductQuantity int32 `json:"store_product_quantity"`
	// A sticker to be shown along with the gift code; may be null if unknown
	Sticker *Sticker `json:"sticker"`
	// contains filtered or unexported fields
}

Describes an option for creating Telegram Premium gift codes or Telegram Premium giveaway. Use telegramPaymentPurposePremiumGiftCodes or telegramPaymentPurposePremiumGiveaway for out-of-store payments

func UnmarshalPremiumGiftCodePaymentOption added in v0.7.1

func UnmarshalPremiumGiftCodePaymentOption(data json.RawMessage) (*PremiumGiftCodePaymentOption, error)

func (*PremiumGiftCodePaymentOption) GetClass added in v0.7.1

func (*PremiumGiftCodePaymentOption) GetType added in v0.7.1

func (*PremiumGiftCodePaymentOption) MarshalJSON added in v0.7.1

func (entity *PremiumGiftCodePaymentOption) MarshalJSON() ([]byte, error)

type PremiumGiftCodePaymentOptions added in v0.7.1

type PremiumGiftCodePaymentOptions struct {

	// The list of options
	Options []*PremiumGiftCodePaymentOption `json:"options"`
	// contains filtered or unexported fields
}

Contains a list of options for creating Telegram Premium gift codes or Telegram Premium giveaway

func UnmarshalPremiumGiftCodePaymentOptions added in v0.7.1

func UnmarshalPremiumGiftCodePaymentOptions(data json.RawMessage) (*PremiumGiftCodePaymentOptions, error)

func (*PremiumGiftCodePaymentOptions) GetClass added in v0.7.1

func (*PremiumGiftCodePaymentOptions) GetType added in v0.7.1

func (*PremiumGiftCodePaymentOptions) MarshalJSON added in v0.7.1

func (entity *PremiumGiftCodePaymentOptions) MarshalJSON() ([]byte, error)

type PremiumLimit added in v0.7.0

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 v0.7.0

func UnmarshalPremiumLimit(data json.RawMessage) (*PremiumLimit, error)

func (*PremiumLimit) GetClass added in v0.7.0

func (*PremiumLimit) GetClass() string

func (*PremiumLimit) GetType added in v0.7.0

func (*PremiumLimit) GetType() string

func (*PremiumLimit) MarshalJSON added in v0.7.0

func (entity *PremiumLimit) MarshalJSON() ([]byte, error)

func (*PremiumLimit) UnmarshalJSON added in v0.7.0

func (premiumLimit *PremiumLimit) UnmarshalJSON(data []byte) error

type PremiumLimitType added in v0.7.0

type PremiumLimitType interface {
	PremiumLimitTypeType() string
}

Describes type of limit, increased for Premium users

func UnmarshalListOfPremiumLimitType added in v0.7.0

func UnmarshalListOfPremiumLimitType(dataList []json.RawMessage) ([]PremiumLimitType, error)

func UnmarshalPremiumLimitType added in v0.7.0

func UnmarshalPremiumLimitType(data json.RawMessage) (PremiumLimitType, error)

type PremiumLimitTypeActiveStoryCount added in v0.7.0

type PremiumLimitTypeActiveStoryCount struct {
	// contains filtered or unexported fields
}

The maximum number of active stories

func UnmarshalPremiumLimitTypeActiveStoryCount added in v0.7.0

func UnmarshalPremiumLimitTypeActiveStoryCount(data json.RawMessage) (*PremiumLimitTypeActiveStoryCount, error)

func (*PremiumLimitTypeActiveStoryCount) GetClass added in v0.7.0

func (*PremiumLimitTypeActiveStoryCount) GetType added in v0.7.0

func (*PremiumLimitTypeActiveStoryCount) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypeActiveStoryCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeActiveStoryCount) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypeActiveStoryCount) PremiumLimitTypeType() string

type PremiumLimitTypeBioLength added in v0.7.0

type PremiumLimitTypeBioLength struct {
	// contains filtered or unexported fields
}

The maximum length of the user's bio

func UnmarshalPremiumLimitTypeBioLength added in v0.7.0

func UnmarshalPremiumLimitTypeBioLength(data json.RawMessage) (*PremiumLimitTypeBioLength, error)

func (*PremiumLimitTypeBioLength) GetClass added in v0.7.0

func (*PremiumLimitTypeBioLength) GetClass() string

func (*PremiumLimitTypeBioLength) GetType added in v0.7.0

func (*PremiumLimitTypeBioLength) GetType() string

func (*PremiumLimitTypeBioLength) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypeBioLength) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeBioLength) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypeBioLength) PremiumLimitTypeType() string

type PremiumLimitTypeCaptionLength added in v0.7.0

type PremiumLimitTypeCaptionLength struct {
	// contains filtered or unexported fields
}

The maximum length of sent media caption

func UnmarshalPremiumLimitTypeCaptionLength added in v0.7.0

func UnmarshalPremiumLimitTypeCaptionLength(data json.RawMessage) (*PremiumLimitTypeCaptionLength, error)

func (*PremiumLimitTypeCaptionLength) GetClass added in v0.7.0

func (*PremiumLimitTypeCaptionLength) GetType added in v0.7.0

func (*PremiumLimitTypeCaptionLength) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypeCaptionLength) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeCaptionLength) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypeCaptionLength) PremiumLimitTypeType() string

type PremiumLimitTypeChatFolderChosenChatCount added in v0.7.0

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 v0.7.0

func UnmarshalPremiumLimitTypeChatFolderChosenChatCount(data json.RawMessage) (*PremiumLimitTypeChatFolderChosenChatCount, error)

func (*PremiumLimitTypeChatFolderChosenChatCount) GetClass added in v0.7.0

func (*PremiumLimitTypeChatFolderChosenChatCount) GetType added in v0.7.0

func (*PremiumLimitTypeChatFolderChosenChatCount) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypeChatFolderChosenChatCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeChatFolderChosenChatCount) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypeChatFolderChosenChatCount) PremiumLimitTypeType() string

type PremiumLimitTypeChatFolderCount added in v0.7.0

type PremiumLimitTypeChatFolderCount struct {
	// contains filtered or unexported fields
}

The maximum number of chat folders

func UnmarshalPremiumLimitTypeChatFolderCount added in v0.7.0

func UnmarshalPremiumLimitTypeChatFolderCount(data json.RawMessage) (*PremiumLimitTypeChatFolderCount, error)

func (*PremiumLimitTypeChatFolderCount) GetClass added in v0.7.0

func (*PremiumLimitTypeChatFolderCount) GetType added in v0.7.0

func (*PremiumLimitTypeChatFolderCount) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypeChatFolderCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeChatFolderCount) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypeChatFolderCount) PremiumLimitTypeType() string

type PremiumLimitTypeChatFolderInviteLinkCount added in v0.7.0

type PremiumLimitTypeChatFolderInviteLinkCount struct {
	// contains filtered or unexported fields
}

The maximum number of invite links for a chat folder

func UnmarshalPremiumLimitTypeChatFolderInviteLinkCount added in v0.7.0

func UnmarshalPremiumLimitTypeChatFolderInviteLinkCount(data json.RawMessage) (*PremiumLimitTypeChatFolderInviteLinkCount, error)

func (*PremiumLimitTypeChatFolderInviteLinkCount) GetClass added in v0.7.0

func (*PremiumLimitTypeChatFolderInviteLinkCount) GetType added in v0.7.0

func (*PremiumLimitTypeChatFolderInviteLinkCount) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypeChatFolderInviteLinkCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeChatFolderInviteLinkCount) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypeChatFolderInviteLinkCount) PremiumLimitTypeType() string

type PremiumLimitTypeCreatedPublicChatCount added in v0.7.0

type PremiumLimitTypeCreatedPublicChatCount struct {
	// contains filtered or unexported fields
}

The maximum number of created public chats

func UnmarshalPremiumLimitTypeCreatedPublicChatCount added in v0.7.0

func UnmarshalPremiumLimitTypeCreatedPublicChatCount(data json.RawMessage) (*PremiumLimitTypeCreatedPublicChatCount, error)

func (*PremiumLimitTypeCreatedPublicChatCount) GetClass added in v0.7.0

func (*PremiumLimitTypeCreatedPublicChatCount) GetType added in v0.7.0

func (*PremiumLimitTypeCreatedPublicChatCount) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypeCreatedPublicChatCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeCreatedPublicChatCount) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypeCreatedPublicChatCount) PremiumLimitTypeType() string

type PremiumLimitTypeFavoriteStickerCount added in v0.7.0

type PremiumLimitTypeFavoriteStickerCount struct {
	// contains filtered or unexported fields
}

The maximum number of favorite stickers

func UnmarshalPremiumLimitTypeFavoriteStickerCount added in v0.7.0

func UnmarshalPremiumLimitTypeFavoriteStickerCount(data json.RawMessage) (*PremiumLimitTypeFavoriteStickerCount, error)

func (*PremiumLimitTypeFavoriteStickerCount) GetClass added in v0.7.0

func (*PremiumLimitTypeFavoriteStickerCount) GetType added in v0.7.0

func (*PremiumLimitTypeFavoriteStickerCount) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypeFavoriteStickerCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeFavoriteStickerCount) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypeFavoriteStickerCount) PremiumLimitTypeType() string

type PremiumLimitTypeMonthlySentStoryCount added in v0.7.0

type PremiumLimitTypeMonthlySentStoryCount struct {
	// contains filtered or unexported fields
}

The maximum number of stories sent per month

func UnmarshalPremiumLimitTypeMonthlySentStoryCount added in v0.7.0

func UnmarshalPremiumLimitTypeMonthlySentStoryCount(data json.RawMessage) (*PremiumLimitTypeMonthlySentStoryCount, error)

func (*PremiumLimitTypeMonthlySentStoryCount) GetClass added in v0.7.0

func (*PremiumLimitTypeMonthlySentStoryCount) GetType added in v0.7.0

func (*PremiumLimitTypeMonthlySentStoryCount) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypeMonthlySentStoryCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeMonthlySentStoryCount) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypeMonthlySentStoryCount) PremiumLimitTypeType() string

type PremiumLimitTypePinnedArchivedChatCount added in v0.7.0

type PremiumLimitTypePinnedArchivedChatCount struct {
	// contains filtered or unexported fields
}

The maximum number of pinned chats in the archive chat list

func UnmarshalPremiumLimitTypePinnedArchivedChatCount added in v0.7.0

func UnmarshalPremiumLimitTypePinnedArchivedChatCount(data json.RawMessage) (*PremiumLimitTypePinnedArchivedChatCount, error)

func (*PremiumLimitTypePinnedArchivedChatCount) GetClass added in v0.7.0

func (*PremiumLimitTypePinnedArchivedChatCount) GetType added in v0.7.0

func (*PremiumLimitTypePinnedArchivedChatCount) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypePinnedArchivedChatCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypePinnedArchivedChatCount) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypePinnedArchivedChatCount) PremiumLimitTypeType() string

type PremiumLimitTypePinnedChatCount added in v0.7.0

type PremiumLimitTypePinnedChatCount struct {
	// contains filtered or unexported fields
}

The maximum number of pinned chats in the main chat list

func UnmarshalPremiumLimitTypePinnedChatCount added in v0.7.0

func UnmarshalPremiumLimitTypePinnedChatCount(data json.RawMessage) (*PremiumLimitTypePinnedChatCount, error)

func (*PremiumLimitTypePinnedChatCount) GetClass added in v0.7.0

func (*PremiumLimitTypePinnedChatCount) GetType added in v0.7.0

func (*PremiumLimitTypePinnedChatCount) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypePinnedChatCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypePinnedChatCount) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypePinnedChatCount) PremiumLimitTypeType() string

type PremiumLimitTypePinnedSavedMessagesTopicCount added in v0.7.2

type PremiumLimitTypePinnedSavedMessagesTopicCount struct {
	// contains filtered or unexported fields
}

The maximum number of pinned Saved Messages topics

func UnmarshalPremiumLimitTypePinnedSavedMessagesTopicCount added in v0.7.2

func UnmarshalPremiumLimitTypePinnedSavedMessagesTopicCount(data json.RawMessage) (*PremiumLimitTypePinnedSavedMessagesTopicCount, error)

func (*PremiumLimitTypePinnedSavedMessagesTopicCount) GetClass added in v0.7.2

func (*PremiumLimitTypePinnedSavedMessagesTopicCount) GetType added in v0.7.2

func (*PremiumLimitTypePinnedSavedMessagesTopicCount) MarshalJSON added in v0.7.2

func (entity *PremiumLimitTypePinnedSavedMessagesTopicCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypePinnedSavedMessagesTopicCount) PremiumLimitTypeType added in v0.7.2

func (*PremiumLimitTypePinnedSavedMessagesTopicCount) PremiumLimitTypeType() string

type PremiumLimitTypeSavedAnimationCount added in v0.7.0

type PremiumLimitTypeSavedAnimationCount struct {
	// contains filtered or unexported fields
}

The maximum number of saved animations

func UnmarshalPremiumLimitTypeSavedAnimationCount added in v0.7.0

func UnmarshalPremiumLimitTypeSavedAnimationCount(data json.RawMessage) (*PremiumLimitTypeSavedAnimationCount, error)

func (*PremiumLimitTypeSavedAnimationCount) GetClass added in v0.7.0

func (*PremiumLimitTypeSavedAnimationCount) GetType added in v0.7.0

func (*PremiumLimitTypeSavedAnimationCount) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypeSavedAnimationCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeSavedAnimationCount) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypeSavedAnimationCount) PremiumLimitTypeType() string

type PremiumLimitTypeShareableChatFolderCount added in v0.7.0

type PremiumLimitTypeShareableChatFolderCount struct {
	// contains filtered or unexported fields
}

The maximum number of added shareable chat folders

func UnmarshalPremiumLimitTypeShareableChatFolderCount added in v0.7.0

func UnmarshalPremiumLimitTypeShareableChatFolderCount(data json.RawMessage) (*PremiumLimitTypeShareableChatFolderCount, error)

func (*PremiumLimitTypeShareableChatFolderCount) GetClass added in v0.7.0

func (*PremiumLimitTypeShareableChatFolderCount) GetType added in v0.7.0

func (*PremiumLimitTypeShareableChatFolderCount) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypeShareableChatFolderCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeShareableChatFolderCount) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypeShareableChatFolderCount) PremiumLimitTypeType() string

type PremiumLimitTypeSimilarChatCount added in v0.7.1

type PremiumLimitTypeSimilarChatCount struct {
	// contains filtered or unexported fields
}

The maximum number of received similar chats

func UnmarshalPremiumLimitTypeSimilarChatCount added in v0.7.1

func UnmarshalPremiumLimitTypeSimilarChatCount(data json.RawMessage) (*PremiumLimitTypeSimilarChatCount, error)

func (*PremiumLimitTypeSimilarChatCount) GetClass added in v0.7.1

func (*PremiumLimitTypeSimilarChatCount) GetType added in v0.7.1

func (*PremiumLimitTypeSimilarChatCount) MarshalJSON added in v0.7.1

func (entity *PremiumLimitTypeSimilarChatCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeSimilarChatCount) PremiumLimitTypeType added in v0.7.1

func (*PremiumLimitTypeSimilarChatCount) PremiumLimitTypeType() string

type PremiumLimitTypeStoryCaptionLength added in v0.7.0

type PremiumLimitTypeStoryCaptionLength struct {
	// contains filtered or unexported fields
}

The maximum length of captions of sent stories

func UnmarshalPremiumLimitTypeStoryCaptionLength added in v0.7.0

func UnmarshalPremiumLimitTypeStoryCaptionLength(data json.RawMessage) (*PremiumLimitTypeStoryCaptionLength, error)

func (*PremiumLimitTypeStoryCaptionLength) GetClass added in v0.7.0

func (*PremiumLimitTypeStoryCaptionLength) GetType added in v0.7.0

func (*PremiumLimitTypeStoryCaptionLength) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypeStoryCaptionLength) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeStoryCaptionLength) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypeStoryCaptionLength) PremiumLimitTypeType() string

type PremiumLimitTypeStorySuggestedReactionAreaCount added in v0.7.1

type PremiumLimitTypeStorySuggestedReactionAreaCount struct {
	// contains filtered or unexported fields
}

The maximum number of suggested reaction areas on a story

func UnmarshalPremiumLimitTypeStorySuggestedReactionAreaCount added in v0.7.1

func UnmarshalPremiumLimitTypeStorySuggestedReactionAreaCount(data json.RawMessage) (*PremiumLimitTypeStorySuggestedReactionAreaCount, error)

func (*PremiumLimitTypeStorySuggestedReactionAreaCount) GetClass added in v0.7.1

func (*PremiumLimitTypeStorySuggestedReactionAreaCount) GetType added in v0.7.1

func (*PremiumLimitTypeStorySuggestedReactionAreaCount) MarshalJSON added in v0.7.1

func (entity *PremiumLimitTypeStorySuggestedReactionAreaCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeStorySuggestedReactionAreaCount) PremiumLimitTypeType added in v0.7.1

type PremiumLimitTypeSupergroupCount added in v0.7.0

type PremiumLimitTypeSupergroupCount struct {
	// contains filtered or unexported fields
}

The maximum number of joined supergroups and channels

func UnmarshalPremiumLimitTypeSupergroupCount added in v0.7.0

func UnmarshalPremiumLimitTypeSupergroupCount(data json.RawMessage) (*PremiumLimitTypeSupergroupCount, error)

func (*PremiumLimitTypeSupergroupCount) GetClass added in v0.7.0

func (*PremiumLimitTypeSupergroupCount) GetType added in v0.7.0

func (*PremiumLimitTypeSupergroupCount) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypeSupergroupCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeSupergroupCount) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypeSupergroupCount) PremiumLimitTypeType() string

type PremiumLimitTypeWeeklySentStoryCount added in v0.7.0

type PremiumLimitTypeWeeklySentStoryCount struct {
	// contains filtered or unexported fields
}

The maximum number of stories sent per week

func UnmarshalPremiumLimitTypeWeeklySentStoryCount added in v0.7.0

func UnmarshalPremiumLimitTypeWeeklySentStoryCount(data json.RawMessage) (*PremiumLimitTypeWeeklySentStoryCount, error)

func (*PremiumLimitTypeWeeklySentStoryCount) GetClass added in v0.7.0

func (*PremiumLimitTypeWeeklySentStoryCount) GetType added in v0.7.0

func (*PremiumLimitTypeWeeklySentStoryCount) MarshalJSON added in v0.7.0

func (entity *PremiumLimitTypeWeeklySentStoryCount) MarshalJSON() ([]byte, error)

func (*PremiumLimitTypeWeeklySentStoryCount) PremiumLimitTypeType added in v0.7.0

func (*PremiumLimitTypeWeeklySentStoryCount) PremiumLimitTypeType() string

type PremiumPaymentOption added in v0.7.0

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 months the Telegram Premium subscription will be active. Use getPremiumInfoSticker to get the sticker to be used as representation of the Telegram Premium subscription
	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 v0.7.0

func UnmarshalPremiumPaymentOption(data json.RawMessage) (*PremiumPaymentOption, error)

func (*PremiumPaymentOption) GetClass added in v0.7.0

func (*PremiumPaymentOption) GetClass() string

func (*PremiumPaymentOption) GetType added in v0.7.0

func (*PremiumPaymentOption) GetType() string

func (*PremiumPaymentOption) MarshalJSON added in v0.7.0

func (entity *PremiumPaymentOption) MarshalJSON() ([]byte, error)

func (*PremiumPaymentOption) UnmarshalJSON added in v0.7.0

func (premiumPaymentOption *PremiumPaymentOption) UnmarshalJSON(data []byte) error

type PremiumSource added in v0.7.0

type PremiumSource interface {
	PremiumSourceType() string
}

Describes a source from which the Premium features screen is opened

func UnmarshalListOfPremiumSource added in v0.7.0

func UnmarshalListOfPremiumSource(dataList []json.RawMessage) ([]PremiumSource, error)

func UnmarshalPremiumSource added in v0.7.0

func UnmarshalPremiumSource(data json.RawMessage) (PremiumSource, error)

type PremiumSourceBusinessFeature added in v0.7.2

type PremiumSourceBusinessFeature struct {

	// The used feature; pass null if none specific feature was used
	Feature BusinessFeature `json:"feature"`
	// contains filtered or unexported fields
}

A user tried to use a Business feature

func UnmarshalPremiumSourceBusinessFeature added in v0.7.2

func UnmarshalPremiumSourceBusinessFeature(data json.RawMessage) (*PremiumSourceBusinessFeature, error)

func (*PremiumSourceBusinessFeature) GetClass added in v0.7.2

func (*PremiumSourceBusinessFeature) GetType added in v0.7.2

func (*PremiumSourceBusinessFeature) MarshalJSON added in v0.7.2

func (entity *PremiumSourceBusinessFeature) MarshalJSON() ([]byte, error)

func (*PremiumSourceBusinessFeature) PremiumSourceType added in v0.7.2

func (*PremiumSourceBusinessFeature) PremiumSourceType() string

func (*PremiumSourceBusinessFeature) UnmarshalJSON added in v0.7.2

func (premiumSourceBusinessFeature *PremiumSourceBusinessFeature) UnmarshalJSON(data []byte) error

type PremiumSourceFeature added in v0.7.0

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 v0.7.0

func UnmarshalPremiumSourceFeature(data json.RawMessage) (*PremiumSourceFeature, error)

func (*PremiumSourceFeature) GetClass added in v0.7.0

func (*PremiumSourceFeature) GetClass() string

func (*PremiumSourceFeature) GetType added in v0.7.0

func (*PremiumSourceFeature) GetType() string

func (*PremiumSourceFeature) MarshalJSON added in v0.7.0

func (entity *PremiumSourceFeature) MarshalJSON() ([]byte, error)

func (*PremiumSourceFeature) PremiumSourceType added in v0.7.0

func (*PremiumSourceFeature) PremiumSourceType() string

func (*PremiumSourceFeature) UnmarshalJSON added in v0.7.0

func (premiumSourceFeature *PremiumSourceFeature) UnmarshalJSON(data []byte) error

type PremiumSourceLimitExceeded added in v0.7.0

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 v0.7.0

func UnmarshalPremiumSourceLimitExceeded(data json.RawMessage) (*PremiumSourceLimitExceeded, error)

func (*PremiumSourceLimitExceeded) GetClass added in v0.7.0

func (*PremiumSourceLimitExceeded) GetClass() string

func (*PremiumSourceLimitExceeded) GetType added in v0.7.0

func (*PremiumSourceLimitExceeded) MarshalJSON added in v0.7.0

func (entity *PremiumSourceLimitExceeded) MarshalJSON() ([]byte, error)

func (*PremiumSourceLimitExceeded) PremiumSourceType added in v0.7.0

func (*PremiumSourceLimitExceeded) PremiumSourceType() string

func (*PremiumSourceLimitExceeded) UnmarshalJSON added in v0.7.0

func (premiumSourceLimitExceeded *PremiumSourceLimitExceeded) UnmarshalJSON(data []byte) error
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(data json.RawMessage) (*PremiumSourceLink, error)

func (*PremiumSourceLink) GetClass added in v0.7.0

func (*PremiumSourceLink) GetClass() string

func (*PremiumSourceLink) GetType added in v0.7.0

func (*PremiumSourceLink) GetType() string

func (*PremiumSourceLink) MarshalJSON added in v0.7.0

func (entity *PremiumSourceLink) MarshalJSON() ([]byte, error)

func (*PremiumSourceLink) PremiumSourceType added in v0.7.0

func (*PremiumSourceLink) PremiumSourceType() string

type PremiumSourceSettings added in v0.7.0

type PremiumSourceSettings struct {
	// contains filtered or unexported fields
}

A user opened the Premium features screen from settings

func UnmarshalPremiumSourceSettings added in v0.7.0

func UnmarshalPremiumSourceSettings(data json.RawMessage) (*PremiumSourceSettings, error)

func (*PremiumSourceSettings) GetClass added in v0.7.0

func (*PremiumSourceSettings) GetClass() string

func (*PremiumSourceSettings) GetType added in v0.7.0

func (*PremiumSourceSettings) GetType() string

func (*PremiumSourceSettings) MarshalJSON added in v0.7.0

func (entity *PremiumSourceSettings) MarshalJSON() ([]byte, error)

func (*PremiumSourceSettings) PremiumSourceType added in v0.7.0

func (*PremiumSourceSettings) PremiumSourceType() string

type PremiumSourceStoryFeature added in v0.7.0

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 v0.7.0

func UnmarshalPremiumSourceStoryFeature(data json.RawMessage) (*PremiumSourceStoryFeature, error)

func (*PremiumSourceStoryFeature) GetClass added in v0.7.0

func (*PremiumSourceStoryFeature) GetClass() string

func (*PremiumSourceStoryFeature) GetType added in v0.7.0

func (*PremiumSourceStoryFeature) GetType() string

func (*PremiumSourceStoryFeature) MarshalJSON added in v0.7.0

func (entity *PremiumSourceStoryFeature) MarshalJSON() ([]byte, error)

func (*PremiumSourceStoryFeature) PremiumSourceType added in v0.7.0

func (*PremiumSourceStoryFeature) PremiumSourceType() string

func (*PremiumSourceStoryFeature) UnmarshalJSON added in v0.7.0

func (premiumSourceStoryFeature *PremiumSourceStoryFeature) UnmarshalJSON(data []byte) error

type PremiumState added in v0.7.0

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"`
	// The list of available promotion animations for Business features
	BusinessAnimations []*BusinessFeaturePromotionAnimation `json:"business_animations"`
	// contains filtered or unexported fields
}

Contains state of Telegram Premium subscription and promotion videos for Premium features

func UnmarshalPremiumState added in v0.7.0

func UnmarshalPremiumState(data json.RawMessage) (*PremiumState, error)

func (*PremiumState) GetClass added in v0.7.0

func (*PremiumState) GetClass() string

func (*PremiumState) GetType added in v0.7.0

func (*PremiumState) GetType() string

func (*PremiumState) MarshalJSON added in v0.7.0

func (entity *PremiumState) MarshalJSON() ([]byte, error)

type PremiumStatePaymentOption added in v0.7.0

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 v0.7.0

func UnmarshalPremiumStatePaymentOption(data json.RawMessage) (*PremiumStatePaymentOption, error)

func (*PremiumStatePaymentOption) GetClass added in v0.7.0

func (*PremiumStatePaymentOption) GetClass() string

func (*PremiumStatePaymentOption) GetType added in v0.7.0

func (*PremiumStatePaymentOption) GetType() string

func (*PremiumStatePaymentOption) MarshalJSON added in v0.7.0

func (entity *PremiumStatePaymentOption) MarshalJSON() ([]byte, error)

type PremiumStoryFeature added in v0.7.0

type PremiumStoryFeature interface {
	PremiumStoryFeatureType() string
}

Describes a story feature available to Premium users

func UnmarshalListOfPremiumStoryFeature added in v0.7.0

func UnmarshalListOfPremiumStoryFeature(dataList []json.RawMessage) ([]PremiumStoryFeature, error)

func UnmarshalPremiumStoryFeature added in v0.7.0

func UnmarshalPremiumStoryFeature(data json.RawMessage) (PremiumStoryFeature, error)

type PremiumStoryFeatureCustomExpirationDuration added in v0.7.0

type PremiumStoryFeatureCustomExpirationDuration struct {
	// contains filtered or unexported fields
}

The ability to set custom expiration duration for stories

func UnmarshalPremiumStoryFeatureCustomExpirationDuration added in v0.7.0

func UnmarshalPremiumStoryFeatureCustomExpirationDuration(data json.RawMessage) (*PremiumStoryFeatureCustomExpirationDuration, error)

func (*PremiumStoryFeatureCustomExpirationDuration) GetClass added in v0.7.0

func (*PremiumStoryFeatureCustomExpirationDuration) GetType added in v0.7.0

func (*PremiumStoryFeatureCustomExpirationDuration) MarshalJSON added in v0.7.0

func (entity *PremiumStoryFeatureCustomExpirationDuration) MarshalJSON() ([]byte, error)

func (*PremiumStoryFeatureCustomExpirationDuration) PremiumStoryFeatureType added in v0.7.0

func (*PremiumStoryFeatureCustomExpirationDuration) PremiumStoryFeatureType() string

type PremiumStoryFeatureLinksAndFormatting added in v0.7.0

type PremiumStoryFeatureLinksAndFormatting struct {
	// contains filtered or unexported fields
}

The ability to use links and formatting in story caption, and use inputStoryAreaTypeLink areas

func UnmarshalPremiumStoryFeatureLinksAndFormatting added in v0.7.0

func UnmarshalPremiumStoryFeatureLinksAndFormatting(data json.RawMessage) (*PremiumStoryFeatureLinksAndFormatting, error)

func (*PremiumStoryFeatureLinksAndFormatting) GetClass added in v0.7.0

func (*PremiumStoryFeatureLinksAndFormatting) GetType added in v0.7.0

func (*PremiumStoryFeatureLinksAndFormatting) MarshalJSON added in v0.7.0

func (entity *PremiumStoryFeatureLinksAndFormatting) MarshalJSON() ([]byte, error)

func (*PremiumStoryFeatureLinksAndFormatting) PremiumStoryFeatureType added in v0.7.0

func (*PremiumStoryFeatureLinksAndFormatting) PremiumStoryFeatureType() string

type PremiumStoryFeaturePermanentViewsHistory added in v0.7.0

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 v0.7.0

func UnmarshalPremiumStoryFeaturePermanentViewsHistory(data json.RawMessage) (*PremiumStoryFeaturePermanentViewsHistory, error)

func (*PremiumStoryFeaturePermanentViewsHistory) GetClass added in v0.7.0

func (*PremiumStoryFeaturePermanentViewsHistory) GetType added in v0.7.0

func (*PremiumStoryFeaturePermanentViewsHistory) MarshalJSON added in v0.7.0

func (entity *PremiumStoryFeaturePermanentViewsHistory) MarshalJSON() ([]byte, error)

func (*PremiumStoryFeaturePermanentViewsHistory) PremiumStoryFeatureType added in v0.7.0

func (*PremiumStoryFeaturePermanentViewsHistory) PremiumStoryFeatureType() string

type PremiumStoryFeaturePriorityOrder added in v0.7.0

type PremiumStoryFeaturePriorityOrder struct {
	// contains filtered or unexported fields
}

Stories of the current user are displayed before stories of non-Premium contacts, supergroups, and channels

func UnmarshalPremiumStoryFeaturePriorityOrder added in v0.7.0

func UnmarshalPremiumStoryFeaturePriorityOrder(data json.RawMessage) (*PremiumStoryFeaturePriorityOrder, error)

func (*PremiumStoryFeaturePriorityOrder) GetClass added in v0.7.0

func (*PremiumStoryFeaturePriorityOrder) GetType added in v0.7.0

func (*PremiumStoryFeaturePriorityOrder) MarshalJSON added in v0.7.0

func (entity *PremiumStoryFeaturePriorityOrder) MarshalJSON() ([]byte, error)

func (*PremiumStoryFeaturePriorityOrder) PremiumStoryFeatureType added in v0.7.0

func (*PremiumStoryFeaturePriorityOrder) PremiumStoryFeatureType() string

type PremiumStoryFeatureSaveStories added in v0.7.0

type PremiumStoryFeatureSaveStories struct {
	// contains filtered or unexported fields
}

The ability to save other's unprotected stories

func UnmarshalPremiumStoryFeatureSaveStories added in v0.7.0

func UnmarshalPremiumStoryFeatureSaveStories(data json.RawMessage) (*PremiumStoryFeatureSaveStories, error)

func (*PremiumStoryFeatureSaveStories) GetClass added in v0.7.0

func (*PremiumStoryFeatureSaveStories) GetType added in v0.7.0

func (*PremiumStoryFeatureSaveStories) MarshalJSON added in v0.7.0

func (entity *PremiumStoryFeatureSaveStories) MarshalJSON() ([]byte, error)

func (*PremiumStoryFeatureSaveStories) PremiumStoryFeatureType added in v0.7.0

func (*PremiumStoryFeatureSaveStories) PremiumStoryFeatureType() string

type PremiumStoryFeatureStealthMode added in v0.7.0

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 v0.7.0

func UnmarshalPremiumStoryFeatureStealthMode(data json.RawMessage) (*PremiumStoryFeatureStealthMode, error)

func (*PremiumStoryFeatureStealthMode) GetClass added in v0.7.0

func (*PremiumStoryFeatureStealthMode) GetType added in v0.7.0

func (*PremiumStoryFeatureStealthMode) MarshalJSON added in v0.7.0

func (entity *PremiumStoryFeatureStealthMode) MarshalJSON() ([]byte, error)

func (*PremiumStoryFeatureStealthMode) PremiumStoryFeatureType added in v0.7.0

func (*PremiumStoryFeatureStealthMode) PremiumStoryFeatureType() string

type PremiumStoryFeatureVideoQuality added in v0.7.2

type PremiumStoryFeatureVideoQuality struct {
	// contains filtered or unexported fields
}

The ability to choose better quality for viewed stories

func UnmarshalPremiumStoryFeatureVideoQuality added in v0.7.2

func UnmarshalPremiumStoryFeatureVideoQuality(data json.RawMessage) (*PremiumStoryFeatureVideoQuality, error)

func (*PremiumStoryFeatureVideoQuality) GetClass added in v0.7.2

func (*PremiumStoryFeatureVideoQuality) GetType added in v0.7.2

func (*PremiumStoryFeatureVideoQuality) MarshalJSON added in v0.7.2

func (entity *PremiumStoryFeatureVideoQuality) MarshalJSON() ([]byte, error)

func (*PremiumStoryFeatureVideoQuality) PremiumStoryFeatureType added in v0.7.2

func (*PremiumStoryFeatureVideoQuality) PremiumStoryFeatureType() string

type PrepaidGiveaway added in v0.7.3

type PrepaidGiveaway struct {

	// Unique identifier of the prepaid giveaway
	Id JsonInt64 `json:"id"`
	// Number of users which will receive giveaway prize
	WinnerCount int32 `json:"winner_count"`
	// Prize of the giveaway
	Prize GiveawayPrize `json:"prize"`
	// The number of boosts received by the chat from the giveaway; for Telegram Star giveaways only
	BoostCount int32 `json:"boost_count"`
	// Point in time (Unix timestamp) when the giveaway was paid
	PaymentDate int32 `json:"payment_date"`
	// contains filtered or unexported fields
}

Describes a prepaid giveaway

func UnmarshalPrepaidGiveaway added in v0.7.3

func UnmarshalPrepaidGiveaway(data json.RawMessage) (*PrepaidGiveaway, error)

func (*PrepaidGiveaway) GetClass added in v0.7.3

func (*PrepaidGiveaway) GetClass() string

func (*PrepaidGiveaway) GetType added in v0.7.3

func (*PrepaidGiveaway) GetType() string

func (*PrepaidGiveaway) MarshalJSON added in v0.7.3

func (entity *PrepaidGiveaway) MarshalJSON() ([]byte, error)

func (*PrepaidGiveaway) UnmarshalJSON added in v0.7.3

func (prepaidGiveaway *PrepaidGiveaway) UnmarshalJSON(data []byte) error

type PreparedInlineMessage added in v0.7.4

type PreparedInlineMessage struct {

	// Unique identifier of the inline query to pass to sendInlineQueryResultMessage
	InlineQueryId JsonInt64 `json:"inline_query_id"`
	// Resulted inline message of the query
	Result InlineQueryResult `json:"result"`
	// Types of the chats to which the message can be sent
	ChatTypes *TargetChatTypes `json:"chat_types"`
	// contains filtered or unexported fields
}

Represents a ready to send inline message. Use sendInlineQueryResultMessage to send the message

func UnmarshalPreparedInlineMessage added in v0.7.4

func UnmarshalPreparedInlineMessage(data json.RawMessage) (*PreparedInlineMessage, error)

func (*PreparedInlineMessage) GetClass added in v0.7.4

func (*PreparedInlineMessage) GetClass() string

func (*PreparedInlineMessage) GetType added in v0.7.4

func (*PreparedInlineMessage) GetType() string

func (*PreparedInlineMessage) MarshalJSON added in v0.7.4

func (entity *PreparedInlineMessage) MarshalJSON() ([]byte, error)

func (*PreparedInlineMessage) UnmarshalJSON added in v0.7.4

func (preparedInlineMessage *PreparedInlineMessage) UnmarshalJSON(data []byte) error

type PreparedInlineMessageId added in v0.7.4

type PreparedInlineMessageId struct {

	// Unique identifier for the message
	Id string `json:"id"`
	// Point in time (Unix timestamp) when the message can't be used anymore
	ExpirationDate int32 `json:"expiration_date"`
	// contains filtered or unexported fields
}

Represents an inline message that can be sent via the bot

func UnmarshalPreparedInlineMessageId added in v0.7.4

func UnmarshalPreparedInlineMessageId(data json.RawMessage) (*PreparedInlineMessageId, error)

func (*PreparedInlineMessageId) GetClass added in v0.7.4

func (*PreparedInlineMessageId) GetClass() string

func (*PreparedInlineMessageId) GetType added in v0.7.4

func (*PreparedInlineMessageId) GetType() string

func (*PreparedInlineMessageId) MarshalJSON added in v0.7.4

func (entity *PreparedInlineMessageId) MarshalJSON() ([]byte, error)

type ProcessChatFolderNewChatsRequest added in v0.7.0

type ProcessChatFolderNewChatsRequest struct {
	// Chat folder identifier
	ChatFolderId int32 `json:"chat_folder_id"`
	// Identifiers of the new chats, which are added to the chat folder. The chats are automatically joined if they aren't joined yet
	AddedChatIds []int64 `json:"added_chat_ids"`
}

type ProcessChatJoinRequestRequest added in v0.5.0

type ProcessChatJoinRequestRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Identifier of the user that sent the request
	UserId int64 `json:"user_id"`
	// Pass true to approve the request; pass false to decline it
	Approve bool `json:"approve"`
}

type ProcessChatJoinRequestsRequest added in v0.5.0

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 added in v0.0.13

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 ProductInfo added in v0.7.3

type ProductInfo struct {

	// Product title
	Title string `json:"title"`
	// Product description
	Description *FormattedText `json:"description"`
	// Product photo; may be null
	Photo *Photo `json:"photo"`
	// contains filtered or unexported fields
}

Contains information about a product that can be paid with invoice

func UnmarshalProductInfo added in v0.7.3

func UnmarshalProductInfo(data json.RawMessage) (*ProductInfo, error)

func (*ProductInfo) GetClass added in v0.7.3

func (*ProductInfo) GetClass() string

func (*ProductInfo) GetType added in v0.7.3

func (*ProductInfo) GetType() string

func (*ProductInfo) MarshalJSON added in v0.7.3

func (entity *ProductInfo) MarshalJSON() ([]byte, error)

type ProfileAccentColor added in v0.7.1

type ProfileAccentColor struct {

	// Profile accent color identifier
	Id int32 `json:"id"`
	// Accent colors expected to be used in light themes
	LightThemeColors *ProfileAccentColors `json:"light_theme_colors"`
	// Accent colors expected to be used in dark themes
	DarkThemeColors *ProfileAccentColors `json:"dark_theme_colors"`
	// The minimum chat boost level required to use the color in a supergroup chat
	MinSupergroupChatBoostLevel int32 `json:"min_supergroup_chat_boost_level"`
	// The minimum chat boost level required to use the color in a channel chat
	MinChannelChatBoostLevel int32 `json:"min_channel_chat_boost_level"`
	// contains filtered or unexported fields
}

Contains information about supported accent color for user profile photo background

func UnmarshalProfileAccentColor added in v0.7.1

func UnmarshalProfileAccentColor(data json.RawMessage) (*ProfileAccentColor, error)

func (*ProfileAccentColor) GetClass added in v0.7.1

func (*ProfileAccentColor) GetClass() string

func (*ProfileAccentColor) GetType added in v0.7.1

func (*ProfileAccentColor) GetType() string

func (*ProfileAccentColor) MarshalJSON added in v0.7.1

func (entity *ProfileAccentColor) MarshalJSON() ([]byte, error)

type ProfileAccentColors added in v0.7.1

type ProfileAccentColors struct {

	// The list of 1-2 colors in RGB format, describing the colors, as expected to be shown in the color palette settings
	PaletteColors []int32 `json:"palette_colors"`
	// The list of 1-2 colors in RGB format, describing the colors, as expected to be used for the profile photo background
	BackgroundColors []int32 `json:"background_colors"`
	// The list of 2 colors in RGB format, describing the colors of the gradient to be used for the unread active story indicator around profile photo
	StoryColors []int32 `json:"story_colors"`
	// contains filtered or unexported fields
}

Contains information about supported accent colors for user profile photo background in RGB format

func UnmarshalProfileAccentColors added in v0.7.1

func UnmarshalProfileAccentColors(data json.RawMessage) (*ProfileAccentColors, error)

func (*ProfileAccentColors) GetClass added in v0.7.1

func (*ProfileAccentColors) GetClass() string

func (*ProfileAccentColors) GetType added in v0.7.1

func (*ProfileAccentColors) GetType() string

func (*ProfileAccentColors) MarshalJSON added in v0.7.1

func (entity *ProfileAccentColors) MarshalJSON() ([]byte, error)

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) GetClass

func (*Proxies) GetClass() string

func (*Proxies) GetType

func (*Proxies) GetType() string

func (*Proxies) MarshalJSON

func (entity *Proxies) MarshalJSON() ([]byte, error)

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) GetClass

func (*Proxy) GetClass() string

func (*Proxy) GetType

func (*Proxy) GetType() string

func (*Proxy) MarshalJSON

func (entity *Proxy) MarshalJSON() ([]byte, error)

func (*Proxy) UnmarshalJSON

func (proxy *Proxy) UnmarshalJSON(data []byte) error

type ProxyType

type ProxyType interface {
	ProxyTypeType() string
}

Describes the type of proxy server

func UnmarshalListOfProxyType added in v0.3.2

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 added in v0.2.0

type PublicChatType interface {
	PublicChatTypeType() string
}

Describes type of public chat

func UnmarshalListOfPublicChatType added in v0.3.2

func UnmarshalListOfPublicChatType(dataList []json.RawMessage) ([]PublicChatType, error)

func UnmarshalPublicChatType added in v0.2.0

func UnmarshalPublicChatType(data json.RawMessage) (PublicChatType, error)

type PublicChatTypeHasUsername added in v0.2.0

type PublicChatTypeHasUsername struct {
	// contains filtered or unexported fields
}

The chat is public, because it has an active username

func UnmarshalPublicChatTypeHasUsername added in v0.2.0

func UnmarshalPublicChatTypeHasUsername(data json.RawMessage) (*PublicChatTypeHasUsername, error)

func (*PublicChatTypeHasUsername) GetClass added in v0.2.0

func (*PublicChatTypeHasUsername) GetClass() string

func (*PublicChatTypeHasUsername) GetType added in v0.2.0

func (*PublicChatTypeHasUsername) GetType() string

func (*PublicChatTypeHasUsername) MarshalJSON added in v0.2.0

func (entity *PublicChatTypeHasUsername) MarshalJSON() ([]byte, error)

func (*PublicChatTypeHasUsername) PublicChatTypeType added in v0.2.0

func (*PublicChatTypeHasUsername) PublicChatTypeType() string

type PublicChatTypeIsLocationBased added in v0.2.0

type PublicChatTypeIsLocationBased struct {
	// contains filtered or unexported fields
}

The chat is public, because it is a location-based supergroup

func UnmarshalPublicChatTypeIsLocationBased added in v0.2.0

func UnmarshalPublicChatTypeIsLocationBased(data json.RawMessage) (*PublicChatTypeIsLocationBased, error)

func (*PublicChatTypeIsLocationBased) GetClass added in v0.2.0

func (*PublicChatTypeIsLocationBased) GetType added in v0.2.0

func (*PublicChatTypeIsLocationBased) MarshalJSON added in v0.2.0

func (entity *PublicChatTypeIsLocationBased) MarshalJSON() ([]byte, error)

func (*PublicChatTypeIsLocationBased) PublicChatTypeType added in v0.2.0

func (*PublicChatTypeIsLocationBased) PublicChatTypeType() string

type PublicForward added in v0.7.2

type PublicForward interface {
	PublicForwardType() string
}

Describes a public forward or repost of a story

func UnmarshalListOfPublicForward added in v0.7.2

func UnmarshalListOfPublicForward(dataList []json.RawMessage) ([]PublicForward, error)

func UnmarshalPublicForward added in v0.7.2

func UnmarshalPublicForward(data json.RawMessage) (PublicForward, error)

type PublicForwardMessage added in v0.7.2

type PublicForwardMessage struct {

	// Information about the message
	Message *Message `json:"message"`
	// contains filtered or unexported fields
}

Contains a public forward as a message

func UnmarshalPublicForwardMessage added in v0.7.2

func UnmarshalPublicForwardMessage(data json.RawMessage) (*PublicForwardMessage, error)

func (*PublicForwardMessage) GetClass added in v0.7.2

func (*PublicForwardMessage) GetClass() string

func (*PublicForwardMessage) GetType added in v0.7.2

func (*PublicForwardMessage) GetType() string

func (*PublicForwardMessage) MarshalJSON added in v0.7.2

func (entity *PublicForwardMessage) MarshalJSON() ([]byte, error)

func (*PublicForwardMessage) PublicForwardType added in v0.7.2

func (*PublicForwardMessage) PublicForwardType() string

type PublicForwardStory added in v0.7.2

type PublicForwardStory struct {

	// Information about the story
	Story *Story `json:"story"`
	// contains filtered or unexported fields
}

Contains a public repost to a story

func UnmarshalPublicForwardStory added in v0.7.2

func UnmarshalPublicForwardStory(data json.RawMessage) (*PublicForwardStory, error)

func (*PublicForwardStory) GetClass added in v0.7.2

func (*PublicForwardStory) GetClass() string

func (*PublicForwardStory) GetType added in v0.7.2

func (*PublicForwardStory) GetType() string

func (*PublicForwardStory) MarshalJSON added in v0.7.2

func (entity *PublicForwardStory) MarshalJSON() ([]byte, error)

func (*PublicForwardStory) PublicForwardType added in v0.7.2

func (*PublicForwardStory) PublicForwardType() string

type PublicForwards added in v0.7.2

type PublicForwards struct {

	// Approximate total number of messages and stories found
	TotalCount int32 `json:"total_count"`
	// List of found public forwards and reposts
	Forwards []PublicForward `json:"forwards"`
	// The offset for the next request. If empty, then there are no more results
	NextOffset string `json:"next_offset"`
	// contains filtered or unexported fields
}

Represents a list of public forwards and reposts as a story of a message or a story

func UnmarshalPublicForwards added in v0.7.2

func UnmarshalPublicForwards(data json.RawMessage) (*PublicForwards, error)

func (*PublicForwards) GetClass added in v0.7.2

func (*PublicForwards) GetClass() string

func (*PublicForwards) GetType added in v0.7.2

func (*PublicForwards) GetType() string

func (*PublicForwards) MarshalJSON added in v0.7.2

func (entity *PublicForwards) MarshalJSON() ([]byte, error)

func (*PublicForwards) UnmarshalJSON added in v0.7.2

func (publicForwards *PublicForwards) UnmarshalJSON(data []byte) error

type PushMessageContent added in v0.0.13

type PushMessageContent interface {
	PushMessageContentType() string
}

Contains content of a push message notification

func UnmarshalListOfPushMessageContent added in v0.3.2

func UnmarshalListOfPushMessageContent(dataList []json.RawMessage) ([]PushMessageContent, error)

func UnmarshalPushMessageContent added in v0.0.13

func UnmarshalPushMessageContent(data json.RawMessage) (PushMessageContent, error)

type PushMessageContentAnimation added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentAnimation(data json.RawMessage) (*PushMessageContentAnimation, error)

func (*PushMessageContentAnimation) GetClass added in v0.0.13

func (*PushMessageContentAnimation) GetClass() string

func (*PushMessageContentAnimation) GetType added in v0.0.13

func (*PushMessageContentAnimation) MarshalJSON added in v0.0.13

func (entity *PushMessageContentAnimation) MarshalJSON() ([]byte, error)

func (*PushMessageContentAnimation) PushMessageContentType added in v0.0.13

func (*PushMessageContentAnimation) PushMessageContentType() string

type PushMessageContentAudio added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentAudio(data json.RawMessage) (*PushMessageContentAudio, error)

func (*PushMessageContentAudio) GetClass added in v0.0.13

func (*PushMessageContentAudio) GetClass() string

func (*PushMessageContentAudio) GetType added in v0.0.13

func (*PushMessageContentAudio) GetType() string

func (*PushMessageContentAudio) MarshalJSON added in v0.0.13

func (entity *PushMessageContentAudio) MarshalJSON() ([]byte, error)

func (*PushMessageContentAudio) PushMessageContentType added in v0.0.13

func (*PushMessageContentAudio) PushMessageContentType() string

type PushMessageContentBasicGroupChatCreate added in v0.0.13

type PushMessageContentBasicGroupChatCreate struct {
	// contains filtered or unexported fields
}

A newly created basic group

func UnmarshalPushMessageContentBasicGroupChatCreate added in v0.0.13

func UnmarshalPushMessageContentBasicGroupChatCreate(data json.RawMessage) (*PushMessageContentBasicGroupChatCreate, error)

func (*PushMessageContentBasicGroupChatCreate) GetClass added in v0.0.13

func (*PushMessageContentBasicGroupChatCreate) GetType added in v0.0.13

func (*PushMessageContentBasicGroupChatCreate) MarshalJSON added in v0.0.13

func (entity *PushMessageContentBasicGroupChatCreate) MarshalJSON() ([]byte, error)

func (*PushMessageContentBasicGroupChatCreate) PushMessageContentType added in v0.0.13

func (*PushMessageContentBasicGroupChatCreate) PushMessageContentType() string

type PushMessageContentChatAddMembers added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentChatAddMembers(data json.RawMessage) (*PushMessageContentChatAddMembers, error)

func (*PushMessageContentChatAddMembers) GetClass added in v0.0.13

func (*PushMessageContentChatAddMembers) GetType added in v0.0.13

func (*PushMessageContentChatAddMembers) MarshalJSON added in v0.0.13

func (entity *PushMessageContentChatAddMembers) MarshalJSON() ([]byte, error)

func (*PushMessageContentChatAddMembers) PushMessageContentType added in v0.0.13

func (*PushMessageContentChatAddMembers) PushMessageContentType() string

type PushMessageContentChatChangePhoto added in v0.0.13

type PushMessageContentChatChangePhoto struct {
	// contains filtered or unexported fields
}

A chat photo was edited

func UnmarshalPushMessageContentChatChangePhoto added in v0.0.13

func UnmarshalPushMessageContentChatChangePhoto(data json.RawMessage) (*PushMessageContentChatChangePhoto, error)

func (*PushMessageContentChatChangePhoto) GetClass added in v0.0.13

func (*PushMessageContentChatChangePhoto) GetType added in v0.0.13

func (*PushMessageContentChatChangePhoto) MarshalJSON added in v0.0.13

func (entity *PushMessageContentChatChangePhoto) MarshalJSON() ([]byte, error)

func (*PushMessageContentChatChangePhoto) PushMessageContentType added in v0.0.13

func (*PushMessageContentChatChangePhoto) PushMessageContentType() string

type PushMessageContentChatChangeTitle added in v0.0.13

type PushMessageContentChatChangeTitle struct {

	// New chat title
	Title string `json:"title"`
	// contains filtered or unexported fields
}

A chat title was edited

func UnmarshalPushMessageContentChatChangeTitle added in v0.0.13

func UnmarshalPushMessageContentChatChangeTitle(data json.RawMessage) (*PushMessageContentChatChangeTitle, error)

func (*PushMessageContentChatChangeTitle) GetClass added in v0.0.13

func (*PushMessageContentChatChangeTitle) GetType added in v0.0.13

func (*PushMessageContentChatChangeTitle) MarshalJSON added in v0.0.13

func (entity *PushMessageContentChatChangeTitle) MarshalJSON() ([]byte, error)

func (*PushMessageContentChatChangeTitle) PushMessageContentType added in v0.0.13

func (*PushMessageContentChatChangeTitle) PushMessageContentType() string

type PushMessageContentChatDeleteMember added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentChatDeleteMember(data json.RawMessage) (*PushMessageContentChatDeleteMember, error)

func (*PushMessageContentChatDeleteMember) GetClass added in v0.0.13

func (*PushMessageContentChatDeleteMember) GetType added in v0.0.13

func (*PushMessageContentChatDeleteMember) MarshalJSON added in v0.0.13

func (entity *PushMessageContentChatDeleteMember) MarshalJSON() ([]byte, error)

func (*PushMessageContentChatDeleteMember) PushMessageContentType added in v0.0.13

func (*PushMessageContentChatDeleteMember) PushMessageContentType() string
type PushMessageContentChatJoinByLink struct {
	// contains filtered or unexported fields
}

A new member joined the chat via an invite link

func UnmarshalPushMessageContentChatJoinByLink(data json.RawMessage) (*PushMessageContentChatJoinByLink, error)

func (*PushMessageContentChatJoinByLink) GetClass added in v0.0.13

func (*PushMessageContentChatJoinByLink) GetType added in v0.0.13

func (*PushMessageContentChatJoinByLink) MarshalJSON added in v0.0.13

func (entity *PushMessageContentChatJoinByLink) MarshalJSON() ([]byte, error)

func (*PushMessageContentChatJoinByLink) PushMessageContentType added in v0.0.13

func (*PushMessageContentChatJoinByLink) PushMessageContentType() string

type PushMessageContentChatJoinByRequest added in v0.5.0

type PushMessageContentChatJoinByRequest struct {
	// contains filtered or unexported fields
}

A new member was accepted to the chat by an administrator

func UnmarshalPushMessageContentChatJoinByRequest added in v0.5.0

func UnmarshalPushMessageContentChatJoinByRequest(data json.RawMessage) (*PushMessageContentChatJoinByRequest, error)

func (*PushMessageContentChatJoinByRequest) GetClass added in v0.5.0

func (*PushMessageContentChatJoinByRequest) GetType added in v0.5.0

func (*PushMessageContentChatJoinByRequest) MarshalJSON added in v0.5.0

func (entity *PushMessageContentChatJoinByRequest) MarshalJSON() ([]byte, error)

func (*PushMessageContentChatJoinByRequest) PushMessageContentType added in v0.5.0

func (*PushMessageContentChatJoinByRequest) PushMessageContentType() string

type PushMessageContentChatSetBackground added in v0.7.0

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 v0.7.0

func UnmarshalPushMessageContentChatSetBackground(data json.RawMessage) (*PushMessageContentChatSetBackground, error)

func (*PushMessageContentChatSetBackground) GetClass added in v0.7.0

func (*PushMessageContentChatSetBackground) GetType added in v0.7.0

func (*PushMessageContentChatSetBackground) MarshalJSON added in v0.7.0

func (entity *PushMessageContentChatSetBackground) MarshalJSON() ([]byte, error)

func (*PushMessageContentChatSetBackground) PushMessageContentType added in v0.7.0

func (*PushMessageContentChatSetBackground) PushMessageContentType() string

type PushMessageContentChatSetTheme added in v0.5.0

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 added in v0.5.0

func UnmarshalPushMessageContentChatSetTheme(data json.RawMessage) (*PushMessageContentChatSetTheme, error)

func (*PushMessageContentChatSetTheme) GetClass added in v0.5.0

func (*PushMessageContentChatSetTheme) GetType added in v0.5.0

func (*PushMessageContentChatSetTheme) MarshalJSON added in v0.5.0

func (entity *PushMessageContentChatSetTheme) MarshalJSON() ([]byte, error)

func (*PushMessageContentChatSetTheme) PushMessageContentType added in v0.5.0

func (*PushMessageContentChatSetTheme) PushMessageContentType() string

type PushMessageContentContact added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentContact(data json.RawMessage) (*PushMessageContentContact, error)

func (*PushMessageContentContact) GetClass added in v0.0.13

func (*PushMessageContentContact) GetClass() string

func (*PushMessageContentContact) GetType added in v0.0.13

func (*PushMessageContentContact) GetType() string

func (*PushMessageContentContact) MarshalJSON added in v0.0.13

func (entity *PushMessageContentContact) MarshalJSON() ([]byte, error)

func (*PushMessageContentContact) PushMessageContentType added in v0.0.13

func (*PushMessageContentContact) PushMessageContentType() string

type PushMessageContentContactRegistered added in v0.0.13

type PushMessageContentContactRegistered struct {
	// contains filtered or unexported fields
}

A contact has registered with Telegram

func UnmarshalPushMessageContentContactRegistered added in v0.0.13

func UnmarshalPushMessageContentContactRegistered(data json.RawMessage) (*PushMessageContentContactRegistered, error)

func (*PushMessageContentContactRegistered) GetClass added in v0.0.13

func (*PushMessageContentContactRegistered) GetType added in v0.0.13

func (*PushMessageContentContactRegistered) MarshalJSON added in v0.0.13

func (entity *PushMessageContentContactRegistered) MarshalJSON() ([]byte, error)

func (*PushMessageContentContactRegistered) PushMessageContentType added in v0.0.13

func (*PushMessageContentContactRegistered) PushMessageContentType() string

type PushMessageContentDocument added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentDocument(data json.RawMessage) (*PushMessageContentDocument, error)

func (*PushMessageContentDocument) GetClass added in v0.0.13

func (*PushMessageContentDocument) GetClass() string

func (*PushMessageContentDocument) GetType added in v0.0.13

func (*PushMessageContentDocument) MarshalJSON added in v0.0.13

func (entity *PushMessageContentDocument) MarshalJSON() ([]byte, error)

func (*PushMessageContentDocument) PushMessageContentType added in v0.0.13

func (*PushMessageContentDocument) PushMessageContentType() string

type PushMessageContentGame added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentGame(data json.RawMessage) (*PushMessageContentGame, error)

func (*PushMessageContentGame) GetClass added in v0.0.13

func (*PushMessageContentGame) GetClass() string

func (*PushMessageContentGame) GetType added in v0.0.13

func (*PushMessageContentGame) GetType() string

func (*PushMessageContentGame) MarshalJSON added in v0.0.13

func (entity *PushMessageContentGame) MarshalJSON() ([]byte, error)

func (*PushMessageContentGame) PushMessageContentType added in v0.0.13

func (*PushMessageContentGame) PushMessageContentType() string

type PushMessageContentGameScore added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentGameScore(data json.RawMessage) (*PushMessageContentGameScore, error)

func (*PushMessageContentGameScore) GetClass added in v0.0.13

func (*PushMessageContentGameScore) GetClass() string

func (*PushMessageContentGameScore) GetType added in v0.0.13

func (*PushMessageContentGameScore) MarshalJSON added in v0.0.13

func (entity *PushMessageContentGameScore) MarshalJSON() ([]byte, error)

func (*PushMessageContentGameScore) PushMessageContentType added in v0.0.13

func (*PushMessageContentGameScore) PushMessageContentType() string

type PushMessageContentGift added in v0.7.3

type PushMessageContentGift struct {

	// Number of Telegram Stars that sender paid for the gift
	StarCount int64 `json:"star_count"`
	// contains filtered or unexported fields
}

A message with a gift

func UnmarshalPushMessageContentGift added in v0.7.3

func UnmarshalPushMessageContentGift(data json.RawMessage) (*PushMessageContentGift, error)

func (*PushMessageContentGift) GetClass added in v0.7.3

func (*PushMessageContentGift) GetClass() string

func (*PushMessageContentGift) GetType added in v0.7.3

func (*PushMessageContentGift) GetType() string

func (*PushMessageContentGift) MarshalJSON added in v0.7.3

func (entity *PushMessageContentGift) MarshalJSON() ([]byte, error)

func (*PushMessageContentGift) PushMessageContentType added in v0.7.3

func (*PushMessageContentGift) PushMessageContentType() string

type PushMessageContentGiveaway added in v0.7.3

type PushMessageContentGiveaway struct {

	// Number of users which will receive giveaway prizes; 0 for pinned message
	WinnerCount int32 `json:"winner_count"`
	// Prize of the giveaway; may be null for pinned message
	Prize GiveawayPrize `json:"prize"`
	// 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 giveaway

func UnmarshalPushMessageContentGiveaway added in v0.7.3

func UnmarshalPushMessageContentGiveaway(data json.RawMessage) (*PushMessageContentGiveaway, error)

func (*PushMessageContentGiveaway) GetClass added in v0.7.3

func (*PushMessageContentGiveaway) GetClass() string

func (*PushMessageContentGiveaway) GetType added in v0.7.3

func (*PushMessageContentGiveaway) MarshalJSON added in v0.7.3

func (entity *PushMessageContentGiveaway) MarshalJSON() ([]byte, error)

func (*PushMessageContentGiveaway) PushMessageContentType added in v0.7.3

func (*PushMessageContentGiveaway) PushMessageContentType() string

func (*PushMessageContentGiveaway) UnmarshalJSON added in v0.7.3

func (pushMessageContentGiveaway *PushMessageContentGiveaway) UnmarshalJSON(data []byte) error

type PushMessageContentHidden added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentHidden(data json.RawMessage) (*PushMessageContentHidden, error)

func (*PushMessageContentHidden) GetClass added in v0.0.13

func (*PushMessageContentHidden) GetClass() string

func (*PushMessageContentHidden) GetType added in v0.0.13

func (*PushMessageContentHidden) GetType() string

func (*PushMessageContentHidden) MarshalJSON added in v0.0.13

func (entity *PushMessageContentHidden) MarshalJSON() ([]byte, error)

func (*PushMessageContentHidden) PushMessageContentType added in v0.0.13

func (*PushMessageContentHidden) PushMessageContentType() string

type PushMessageContentInvoice added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentInvoice(data json.RawMessage) (*PushMessageContentInvoice, error)

func (*PushMessageContentInvoice) GetClass added in v0.0.13

func (*PushMessageContentInvoice) GetClass() string

func (*PushMessageContentInvoice) GetType added in v0.0.13

func (*PushMessageContentInvoice) GetType() string

func (*PushMessageContentInvoice) MarshalJSON added in v0.0.13

func (entity *PushMessageContentInvoice) MarshalJSON() ([]byte, error)

func (*PushMessageContentInvoice) PushMessageContentType added in v0.0.13

func (*PushMessageContentInvoice) PushMessageContentType() string

type PushMessageContentLocation added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentLocation(data json.RawMessage) (*PushMessageContentLocation, error)

func (*PushMessageContentLocation) GetClass added in v0.0.13

func (*PushMessageContentLocation) GetClass() string

func (*PushMessageContentLocation) GetType added in v0.0.13

func (*PushMessageContentLocation) MarshalJSON added in v0.0.13

func (entity *PushMessageContentLocation) MarshalJSON() ([]byte, error)

func (*PushMessageContentLocation) PushMessageContentType added in v0.0.13

func (*PushMessageContentLocation) PushMessageContentType() string

type PushMessageContentMediaAlbum added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentMediaAlbum(data json.RawMessage) (*PushMessageContentMediaAlbum, error)

func (*PushMessageContentMediaAlbum) GetClass added in v0.0.13

func (*PushMessageContentMediaAlbum) GetType added in v0.0.13

func (*PushMessageContentMediaAlbum) MarshalJSON added in v0.0.13

func (entity *PushMessageContentMediaAlbum) MarshalJSON() ([]byte, error)

func (*PushMessageContentMediaAlbum) PushMessageContentType added in v0.0.13

func (*PushMessageContentMediaAlbum) PushMessageContentType() string

type PushMessageContentMessageForwards added in v0.0.13

type PushMessageContentMessageForwards struct {

	// Number of forwarded messages
	TotalCount int32 `json:"total_count"`
	// contains filtered or unexported fields
}

A forwarded messages

func UnmarshalPushMessageContentMessageForwards added in v0.0.13

func UnmarshalPushMessageContentMessageForwards(data json.RawMessage) (*PushMessageContentMessageForwards, error)

func (*PushMessageContentMessageForwards) GetClass added in v0.0.13

func (*PushMessageContentMessageForwards) GetType added in v0.0.13

func (*PushMessageContentMessageForwards) MarshalJSON added in v0.0.13

func (entity *PushMessageContentMessageForwards) MarshalJSON() ([]byte, error)

func (*PushMessageContentMessageForwards) PushMessageContentType added in v0.0.13

func (*PushMessageContentMessageForwards) PushMessageContentType() string

type PushMessageContentPaidMedia added in v0.7.3

type PushMessageContentPaidMedia struct {

	// Number of Telegram Stars needed to buy access to the media in the message; 0 for pinned message
	StarCount int64 `json:"star_count"`
	// 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 paid media

func UnmarshalPushMessageContentPaidMedia added in v0.7.3

func UnmarshalPushMessageContentPaidMedia(data json.RawMessage) (*PushMessageContentPaidMedia, error)

func (*PushMessageContentPaidMedia) GetClass added in v0.7.3

func (*PushMessageContentPaidMedia) GetClass() string

func (*PushMessageContentPaidMedia) GetType added in v0.7.3

func (*PushMessageContentPaidMedia) MarshalJSON added in v0.7.3

func (entity *PushMessageContentPaidMedia) MarshalJSON() ([]byte, error)

func (*PushMessageContentPaidMedia) PushMessageContentType added in v0.7.3

func (*PushMessageContentPaidMedia) PushMessageContentType() string

type PushMessageContentPhoto added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentPhoto(data json.RawMessage) (*PushMessageContentPhoto, error)

func (*PushMessageContentPhoto) GetClass added in v0.0.13

func (*PushMessageContentPhoto) GetClass() string

func (*PushMessageContentPhoto) GetType added in v0.0.13

func (*PushMessageContentPhoto) GetType() string

func (*PushMessageContentPhoto) MarshalJSON added in v0.0.13

func (entity *PushMessageContentPhoto) MarshalJSON() ([]byte, error)

func (*PushMessageContentPhoto) PushMessageContentType added in v0.0.13

func (*PushMessageContentPhoto) PushMessageContentType() string

type PushMessageContentPoll added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentPoll(data json.RawMessage) (*PushMessageContentPoll, error)

func (*PushMessageContentPoll) GetClass added in v0.0.13

func (*PushMessageContentPoll) GetClass() string

func (*PushMessageContentPoll) GetType added in v0.0.13

func (*PushMessageContentPoll) GetType() string

func (*PushMessageContentPoll) MarshalJSON added in v0.0.13

func (entity *PushMessageContentPoll) MarshalJSON() ([]byte, error)

func (*PushMessageContentPoll) PushMessageContentType added in v0.0.13

func (*PushMessageContentPoll) PushMessageContentType() string

type PushMessageContentPremiumGiftCode added in v0.7.1

type PushMessageContentPremiumGiftCode struct {

	// Number of months the Telegram Premium subscription will be active after code activation
	MonthCount int32 `json:"month_count"`
	// contains filtered or unexported fields
}

A message with a Telegram Premium gift code created for the user

func UnmarshalPushMessageContentPremiumGiftCode added in v0.7.1

func UnmarshalPushMessageContentPremiumGiftCode(data json.RawMessage) (*PushMessageContentPremiumGiftCode, error)

func (*PushMessageContentPremiumGiftCode) GetClass added in v0.7.1

func (*PushMessageContentPremiumGiftCode) GetType added in v0.7.1

func (*PushMessageContentPremiumGiftCode) MarshalJSON added in v0.7.1

func (entity *PushMessageContentPremiumGiftCode) MarshalJSON() ([]byte, error)

func (*PushMessageContentPremiumGiftCode) PushMessageContentType added in v0.7.1

func (*PushMessageContentPremiumGiftCode) PushMessageContentType() string

type PushMessageContentRecurringPayment added in v0.7.0

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 v0.7.0

func UnmarshalPushMessageContentRecurringPayment(data json.RawMessage) (*PushMessageContentRecurringPayment, error)

func (*PushMessageContentRecurringPayment) GetClass added in v0.7.0

func (*PushMessageContentRecurringPayment) GetType added in v0.7.0

func (*PushMessageContentRecurringPayment) MarshalJSON added in v0.7.0

func (entity *PushMessageContentRecurringPayment) MarshalJSON() ([]byte, error)

func (*PushMessageContentRecurringPayment) PushMessageContentType added in v0.7.0

func (*PushMessageContentRecurringPayment) PushMessageContentType() string

type PushMessageContentScreenshotTaken added in v0.0.13

type PushMessageContentScreenshotTaken struct {
	// contains filtered or unexported fields
}

A screenshot of a message in the chat has been taken

func UnmarshalPushMessageContentScreenshotTaken added in v0.0.13

func UnmarshalPushMessageContentScreenshotTaken(data json.RawMessage) (*PushMessageContentScreenshotTaken, error)

func (*PushMessageContentScreenshotTaken) GetClass added in v0.0.13

func (*PushMessageContentScreenshotTaken) GetType added in v0.0.13

func (*PushMessageContentScreenshotTaken) MarshalJSON added in v0.0.13

func (entity *PushMessageContentScreenshotTaken) MarshalJSON() ([]byte, error)

func (*PushMessageContentScreenshotTaken) PushMessageContentType added in v0.0.13

func (*PushMessageContentScreenshotTaken) PushMessageContentType() string

type PushMessageContentSticker added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentSticker(data json.RawMessage) (*PushMessageContentSticker, error)

func (*PushMessageContentSticker) GetClass added in v0.0.13

func (*PushMessageContentSticker) GetClass() string

func (*PushMessageContentSticker) GetType added in v0.0.13

func (*PushMessageContentSticker) GetType() string

func (*PushMessageContentSticker) MarshalJSON added in v0.0.13

func (entity *PushMessageContentSticker) MarshalJSON() ([]byte, error)

func (*PushMessageContentSticker) PushMessageContentType added in v0.0.13

func (*PushMessageContentSticker) PushMessageContentType() string

type PushMessageContentStory added in v0.7.0

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 v0.7.0

func UnmarshalPushMessageContentStory(data json.RawMessage) (*PushMessageContentStory, error)

func (*PushMessageContentStory) GetClass added in v0.7.0

func (*PushMessageContentStory) GetClass() string

func (*PushMessageContentStory) GetType added in v0.7.0

func (*PushMessageContentStory) GetType() string

func (*PushMessageContentStory) MarshalJSON added in v0.7.0

func (entity *PushMessageContentStory) MarshalJSON() ([]byte, error)

func (*PushMessageContentStory) PushMessageContentType added in v0.7.0

func (*PushMessageContentStory) PushMessageContentType() string

type PushMessageContentSuggestProfilePhoto added in v0.7.0

type PushMessageContentSuggestProfilePhoto struct {
	// contains filtered or unexported fields
}

A profile photo was suggested to the user

func UnmarshalPushMessageContentSuggestProfilePhoto added in v0.7.0

func UnmarshalPushMessageContentSuggestProfilePhoto(data json.RawMessage) (*PushMessageContentSuggestProfilePhoto, error)

func (*PushMessageContentSuggestProfilePhoto) GetClass added in v0.7.0

func (*PushMessageContentSuggestProfilePhoto) GetType added in v0.7.0

func (*PushMessageContentSuggestProfilePhoto) MarshalJSON added in v0.7.0

func (entity *PushMessageContentSuggestProfilePhoto) MarshalJSON() ([]byte, error)

func (*PushMessageContentSuggestProfilePhoto) PushMessageContentType added in v0.7.0

func (*PushMessageContentSuggestProfilePhoto) PushMessageContentType() string

type PushMessageContentText added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentText(data json.RawMessage) (*PushMessageContentText, error)

func (*PushMessageContentText) GetClass added in v0.0.13

func (*PushMessageContentText) GetClass() string

func (*PushMessageContentText) GetType added in v0.0.13

func (*PushMessageContentText) GetType() string

func (*PushMessageContentText) MarshalJSON added in v0.0.13

func (entity *PushMessageContentText) MarshalJSON() ([]byte, error)

func (*PushMessageContentText) PushMessageContentType added in v0.0.13

func (*PushMessageContentText) PushMessageContentType() string

type PushMessageContentVideo added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentVideo(data json.RawMessage) (*PushMessageContentVideo, error)

func (*PushMessageContentVideo) GetClass added in v0.0.13

func (*PushMessageContentVideo) GetClass() string

func (*PushMessageContentVideo) GetType added in v0.0.13

func (*PushMessageContentVideo) GetType() string

func (*PushMessageContentVideo) MarshalJSON added in v0.0.13

func (entity *PushMessageContentVideo) MarshalJSON() ([]byte, error)

func (*PushMessageContentVideo) PushMessageContentType added in v0.0.13

func (*PushMessageContentVideo) PushMessageContentType() string

type PushMessageContentVideoNote added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentVideoNote(data json.RawMessage) (*PushMessageContentVideoNote, error)

func (*PushMessageContentVideoNote) GetClass added in v0.0.13

func (*PushMessageContentVideoNote) GetClass() string

func (*PushMessageContentVideoNote) GetType added in v0.0.13

func (*PushMessageContentVideoNote) MarshalJSON added in v0.0.13

func (entity *PushMessageContentVideoNote) MarshalJSON() ([]byte, error)

func (*PushMessageContentVideoNote) PushMessageContentType added in v0.0.13

func (*PushMessageContentVideoNote) PushMessageContentType() string

type PushMessageContentVoiceNote added in v0.0.13

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 added in v0.0.13

func UnmarshalPushMessageContentVoiceNote(data json.RawMessage) (*PushMessageContentVoiceNote, error)

func (*PushMessageContentVoiceNote) GetClass added in v0.0.13

func (*PushMessageContentVoiceNote) GetClass() string

func (*PushMessageContentVoiceNote) GetType added in v0.0.13

func (*PushMessageContentVoiceNote) MarshalJSON added in v0.0.13

func (entity *PushMessageContentVoiceNote) MarshalJSON() ([]byte, error)

func (*PushMessageContentVoiceNote) PushMessageContentType added in v0.0.13

func (*PushMessageContentVoiceNote) PushMessageContentType() string

type PushReceiverId added in v0.0.13

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 added in v0.6.0

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 added in v0.0.13

func UnmarshalPushReceiverId(data json.RawMessage) (*PushReceiverId, error)

func (*PushReceiverId) GetClass added in v0.0.13

func (*PushReceiverId) GetClass() string

func (*PushReceiverId) GetType added in v0.0.13

func (*PushReceiverId) GetType() string

func (*PushReceiverId) MarshalJSON added in v0.0.13

func (entity *PushReceiverId) MarshalJSON() ([]byte, error)

type QuickReplyMessage added in v0.7.2

type QuickReplyMessage struct {

	// Unique message identifier among all quick replies
	Id int64 `json:"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"`
	// True, if the message can be edited
	CanBeEdited bool `json:"can_be_edited"`
	// The identifier of the quick reply message to which the message replies; 0 if none
	ReplyToMessageId int64 `json:"reply_to_message_id"`
	// If non-zero, the user identifier of the bot through which this message was sent
	ViaBotUserId int64 `json:"via_bot_user_id"`
	// Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be grouped together in albums
	MediaAlbumId JsonInt64 `json:"media_album_id"`
	// Content of the message
	Content MessageContent `json:"content"`
	// Inline keyboard reply markup for the message; may be null if none
	ReplyMarkup ReplyMarkup `json:"reply_markup"`
	// contains filtered or unexported fields
}

Describes a message that can be used for quick reply

func UnmarshalQuickReplyMessage added in v0.7.2

func UnmarshalQuickReplyMessage(data json.RawMessage) (*QuickReplyMessage, error)

func (*QuickReplyMessage) GetClass added in v0.7.2

func (*QuickReplyMessage) GetClass() string

func (*QuickReplyMessage) GetType added in v0.7.2

func (*QuickReplyMessage) GetType() string

func (*QuickReplyMessage) MarshalJSON added in v0.7.2

func (entity *QuickReplyMessage) MarshalJSON() ([]byte, error)

func (*QuickReplyMessage) UnmarshalJSON added in v0.7.2

func (quickReplyMessage *QuickReplyMessage) UnmarshalJSON(data []byte) error

type QuickReplyMessages added in v0.7.3

type QuickReplyMessages struct {

	// List of quick reply messages; messages may be null
	Messages []*QuickReplyMessage `json:"messages"`
	// contains filtered or unexported fields
}

Contains a list of quick reply messages

func UnmarshalQuickReplyMessages added in v0.7.3

func UnmarshalQuickReplyMessages(data json.RawMessage) (*QuickReplyMessages, error)

func (*QuickReplyMessages) GetClass added in v0.7.3

func (*QuickReplyMessages) GetClass() string

func (*QuickReplyMessages) GetType added in v0.7.3

func (*QuickReplyMessages) GetType() string

func (*QuickReplyMessages) MarshalJSON added in v0.7.3

func (entity *QuickReplyMessages) MarshalJSON() ([]byte, error)

type QuickReplyShortcut added in v0.7.2

type QuickReplyShortcut struct {

	// Unique shortcut identifier
	Id int32 `json:"id"`
	// The name of the shortcut that can be used to use the shortcut
	Name string `json:"name"`
	// The first shortcut message
	FirstMessage *QuickReplyMessage `json:"first_message"`
	// The total number of messages in the shortcut
	MessageCount int32 `json:"message_count"`
	// contains filtered or unexported fields
}

Describes a shortcut that can be used for a quick reply

func UnmarshalQuickReplyShortcut added in v0.7.2

func UnmarshalQuickReplyShortcut(data json.RawMessage) (*QuickReplyShortcut, error)

func (*QuickReplyShortcut) GetClass added in v0.7.2

func (*QuickReplyShortcut) GetClass() string

func (*QuickReplyShortcut) GetType added in v0.7.2

func (*QuickReplyShortcut) GetType() string

func (*QuickReplyShortcut) MarshalJSON added in v0.7.2

func (entity *QuickReplyShortcut) MarshalJSON() ([]byte, error)

type RateSpeechRecognitionRequest added in v0.7.0

type RateSpeechRecognitionRequest 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 if the speech recognition is good
	IsGood bool `json:"is_good"`
}

type ReactionNotificationSettings added in v0.7.3

type ReactionNotificationSettings struct {

	// Source of message reactions for which notifications are shown
	MessageReactionSource ReactionNotificationSource `json:"message_reaction_source"`
	// Source of story reactions for which notifications are shown
	StoryReactionSource ReactionNotificationSource `json:"story_reaction_source"`
	// Identifier of the notification sound to be played; 0 if sound is disabled
	SoundId JsonInt64 `json:"sound_id"`
	// True, if reaction sender and emoji must be displayed in notifications
	ShowPreview bool `json:"show_preview"`
	// contains filtered or unexported fields
}

Contains information about notification settings for reactions

func UnmarshalReactionNotificationSettings added in v0.7.3

func UnmarshalReactionNotificationSettings(data json.RawMessage) (*ReactionNotificationSettings, error)

func (*ReactionNotificationSettings) GetClass added in v0.7.3

func (*ReactionNotificationSettings) GetType added in v0.7.3

func (*ReactionNotificationSettings) MarshalJSON added in v0.7.3

func (entity *ReactionNotificationSettings) MarshalJSON() ([]byte, error)

func (*ReactionNotificationSettings) UnmarshalJSON added in v0.7.3

func (reactionNotificationSettings *ReactionNotificationSettings) UnmarshalJSON(data []byte) error

type ReactionNotificationSource added in v0.7.3

type ReactionNotificationSource interface {
	ReactionNotificationSourceType() string
}

Describes sources of reactions for which notifications will be shown

func UnmarshalListOfReactionNotificationSource added in v0.7.3

func UnmarshalListOfReactionNotificationSource(dataList []json.RawMessage) ([]ReactionNotificationSource, error)

func UnmarshalReactionNotificationSource added in v0.7.3

func UnmarshalReactionNotificationSource(data json.RawMessage) (ReactionNotificationSource, error)

type ReactionNotificationSourceAll added in v0.7.3

type ReactionNotificationSourceAll struct {
	// contains filtered or unexported fields
}

Notifications for reactions are shown for all reactions

func UnmarshalReactionNotificationSourceAll added in v0.7.3

func UnmarshalReactionNotificationSourceAll(data json.RawMessage) (*ReactionNotificationSourceAll, error)

func (*ReactionNotificationSourceAll) GetClass added in v0.7.3

func (*ReactionNotificationSourceAll) GetType added in v0.7.3

func (*ReactionNotificationSourceAll) MarshalJSON added in v0.7.3

func (entity *ReactionNotificationSourceAll) MarshalJSON() ([]byte, error)

func (*ReactionNotificationSourceAll) ReactionNotificationSourceType added in v0.7.3

func (*ReactionNotificationSourceAll) ReactionNotificationSourceType() string

type ReactionNotificationSourceContacts added in v0.7.3

type ReactionNotificationSourceContacts struct {
	// contains filtered or unexported fields
}

Notifications for reactions are shown only for reactions from contacts

func UnmarshalReactionNotificationSourceContacts added in v0.7.3

func UnmarshalReactionNotificationSourceContacts(data json.RawMessage) (*ReactionNotificationSourceContacts, error)

func (*ReactionNotificationSourceContacts) GetClass added in v0.7.3

func (*ReactionNotificationSourceContacts) GetType added in v0.7.3

func (*ReactionNotificationSourceContacts) MarshalJSON added in v0.7.3

func (entity *ReactionNotificationSourceContacts) MarshalJSON() ([]byte, error)

func (*ReactionNotificationSourceContacts) ReactionNotificationSourceType added in v0.7.3

func (*ReactionNotificationSourceContacts) ReactionNotificationSourceType() string

type ReactionNotificationSourceNone added in v0.7.3

type ReactionNotificationSourceNone struct {
	// contains filtered or unexported fields
}

Notifications for reactions are disabled

func UnmarshalReactionNotificationSourceNone added in v0.7.3

func UnmarshalReactionNotificationSourceNone(data json.RawMessage) (*ReactionNotificationSourceNone, error)

func (*ReactionNotificationSourceNone) GetClass added in v0.7.3

func (*ReactionNotificationSourceNone) GetType added in v0.7.3

func (*ReactionNotificationSourceNone) MarshalJSON added in v0.7.3

func (entity *ReactionNotificationSourceNone) MarshalJSON() ([]byte, error)

func (*ReactionNotificationSourceNone) ReactionNotificationSourceType added in v0.7.3

func (*ReactionNotificationSourceNone) ReactionNotificationSourceType() string

type ReactionType added in v0.7.0

type ReactionType interface {
	ReactionTypeType() string
}

Describes type of message reaction

func UnmarshalListOfReactionType added in v0.7.0

func UnmarshalListOfReactionType(dataList []json.RawMessage) ([]ReactionType, error)

func UnmarshalReactionType added in v0.7.0

func UnmarshalReactionType(data json.RawMessage) (ReactionType, error)

type ReactionTypeCustomEmoji added in v0.7.0

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 v0.7.0

func UnmarshalReactionTypeCustomEmoji(data json.RawMessage) (*ReactionTypeCustomEmoji, error)

func (*ReactionTypeCustomEmoji) GetClass added in v0.7.0

func (*ReactionTypeCustomEmoji) GetClass() string

func (*ReactionTypeCustomEmoji) GetType added in v0.7.0

func (*ReactionTypeCustomEmoji) GetType() string

func (*ReactionTypeCustomEmoji) MarshalJSON added in v0.7.0

func (entity *ReactionTypeCustomEmoji) MarshalJSON() ([]byte, error)

func (*ReactionTypeCustomEmoji) ReactionTypeType added in v0.7.0

func (*ReactionTypeCustomEmoji) ReactionTypeType() string

type ReactionTypeEmoji added in v0.7.0

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 v0.7.0

func UnmarshalReactionTypeEmoji(data json.RawMessage) (*ReactionTypeEmoji, error)

func (*ReactionTypeEmoji) GetClass added in v0.7.0

func (*ReactionTypeEmoji) GetClass() string

func (*ReactionTypeEmoji) GetType added in v0.7.0

func (*ReactionTypeEmoji) GetType() string

func (*ReactionTypeEmoji) MarshalJSON added in v0.7.0

func (entity *ReactionTypeEmoji) MarshalJSON() ([]byte, error)

func (*ReactionTypeEmoji) ReactionTypeType added in v0.7.0

func (*ReactionTypeEmoji) ReactionTypeType() string

type ReactionTypePaid added in v0.7.3

type ReactionTypePaid struct {
	// contains filtered or unexported fields
}

The paid reaction in a channel chat

func UnmarshalReactionTypePaid added in v0.7.3

func UnmarshalReactionTypePaid(data json.RawMessage) (*ReactionTypePaid, error)

func (*ReactionTypePaid) GetClass added in v0.7.3

func (*ReactionTypePaid) GetClass() string

func (*ReactionTypePaid) GetType added in v0.7.3

func (*ReactionTypePaid) GetType() string

func (*ReactionTypePaid) MarshalJSON added in v0.7.3

func (entity *ReactionTypePaid) MarshalJSON() ([]byte, error)

func (*ReactionTypePaid) ReactionTypeType added in v0.7.3

func (*ReactionTypePaid) ReactionTypeType() string

type ReactionUnavailabilityReason added in v0.7.2

type ReactionUnavailabilityReason interface {
	ReactionUnavailabilityReasonType() string
}

Describes why the current user can't add reactions to the message, despite some other users can

func UnmarshalListOfReactionUnavailabilityReason added in v0.7.2

func UnmarshalListOfReactionUnavailabilityReason(dataList []json.RawMessage) ([]ReactionUnavailabilityReason, error)

func UnmarshalReactionUnavailabilityReason added in v0.7.2

func UnmarshalReactionUnavailabilityReason(data json.RawMessage) (ReactionUnavailabilityReason, error)

type ReactionUnavailabilityReasonAnonymousAdministrator added in v0.7.2

type ReactionUnavailabilityReasonAnonymousAdministrator struct {
	// contains filtered or unexported fields
}

The user is an anonymous administrator in the supergroup, but isn't a creator of it, so they can't vote on behalf of the supergroup

func UnmarshalReactionUnavailabilityReasonAnonymousAdministrator added in v0.7.2

func UnmarshalReactionUnavailabilityReasonAnonymousAdministrator(data json.RawMessage) (*ReactionUnavailabilityReasonAnonymousAdministrator, error)

func (*ReactionUnavailabilityReasonAnonymousAdministrator) GetClass added in v0.7.2

func (*ReactionUnavailabilityReasonAnonymousAdministrator) GetType added in v0.7.2

func (*ReactionUnavailabilityReasonAnonymousAdministrator) MarshalJSON added in v0.7.2

func (*ReactionUnavailabilityReasonAnonymousAdministrator) ReactionUnavailabilityReasonType added in v0.7.2

func (*ReactionUnavailabilityReasonAnonymousAdministrator) ReactionUnavailabilityReasonType() string

type ReactionUnavailabilityReasonGuest added in v0.7.2

type ReactionUnavailabilityReasonGuest struct {
	// contains filtered or unexported fields
}

The user isn't a member of the supergroup and can't send messages and reactions there without joining

func UnmarshalReactionUnavailabilityReasonGuest added in v0.7.2

func UnmarshalReactionUnavailabilityReasonGuest(data json.RawMessage) (*ReactionUnavailabilityReasonGuest, error)

func (*ReactionUnavailabilityReasonGuest) GetClass added in v0.7.2

func (*ReactionUnavailabilityReasonGuest) GetType added in v0.7.2

func (*ReactionUnavailabilityReasonGuest) MarshalJSON added in v0.7.2

func (entity *ReactionUnavailabilityReasonGuest) MarshalJSON() ([]byte, error)

func (*ReactionUnavailabilityReasonGuest) ReactionUnavailabilityReasonType added in v0.7.2

func (*ReactionUnavailabilityReasonGuest) ReactionUnavailabilityReasonType() string

type ReadAllChatMentionsRequest

type ReadAllChatMentionsRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
}

type ReadAllChatReactionsRequest added in v0.7.0

type ReadAllChatReactionsRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
}

type ReadAllMessageThreadMentionsRequest added in v0.7.0

type ReadAllMessageThreadMentionsRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Message thread identifier in which mentions are marked as read
	MessageThreadId int64 `json:"message_thread_id"`
}

type ReadAllMessageThreadReactionsRequest added in v0.7.0

type ReadAllMessageThreadReactionsRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Message thread identifier in which reactions are marked as read
	MessageThreadId int64 `json:"message_thread_id"`
}

type ReadChatListRequest added in v0.7.0

type ReadChatListRequest struct {
	// Chat list in which to mark all chats as read
	ChatList ChatList `json:"chat_list"`
}

type ReadDatePrivacySettings added in v0.7.2

type ReadDatePrivacySettings struct {

	// True, if message read date is shown to other users in private chats. If false and the current user isn't a Telegram Premium user, then they will not be able to see other's message read date
	ShowReadDate bool `json:"show_read_date"`
	// contains filtered or unexported fields
}

Contains privacy settings for message read date in private chats. Read dates are always shown to the users that can see online status of the current user regardless of this setting

func UnmarshalReadDatePrivacySettings added in v0.7.2

func UnmarshalReadDatePrivacySettings(data json.RawMessage) (*ReadDatePrivacySettings, error)

func (*ReadDatePrivacySettings) GetClass added in v0.7.2

func (*ReadDatePrivacySettings) GetClass() string

func (*ReadDatePrivacySettings) GetType added in v0.7.2

func (*ReadDatePrivacySettings) GetType() string

func (*ReadDatePrivacySettings) MarshalJSON added in v0.7.2

func (entity *ReadDatePrivacySettings) MarshalJSON() ([]byte, error)

type ReadFilePartRequest added in v0.0.13

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 ReaddQuickReplyShortcutMessagesRequest added in v0.7.3

type ReaddQuickReplyShortcutMessagesRequest struct {
	// Name of the target shortcut
	ShortcutName string `json:"shortcut_name"`
	// Identifiers of the quick reply messages to readd. Message identifiers must be in a strictly increasing order
	MessageIds []int64 `json:"message_ids"`
}

type RecognizeSpeechRequest added in v0.7.0

type RecognizeSpeechRequest struct {
	// Identifier of the chat to which the message belongs
	ChatId int64 `json:"chat_id"`
	// Identifier of the message. Use messageProperties.can_recognize_speech to check whether the message is suitable
	MessageId int64 `json:"message_id"`
}

type RecommendedChatFolder added in v0.7.0

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 v0.7.0

func UnmarshalRecommendedChatFolder(data json.RawMessage) (*RecommendedChatFolder, error)

func (*RecommendedChatFolder) GetClass added in v0.7.0

func (*RecommendedChatFolder) GetClass() string

func (*RecommendedChatFolder) GetType added in v0.7.0

func (*RecommendedChatFolder) GetType() string

func (*RecommendedChatFolder) MarshalJSON added in v0.7.0

func (entity *RecommendedChatFolder) MarshalJSON() ([]byte, error)

type RecommendedChatFolders added in v0.7.0

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 v0.7.0

func UnmarshalRecommendedChatFolders(data json.RawMessage) (*RecommendedChatFolders, error)

func (*RecommendedChatFolders) GetClass added in v0.7.0

func (*RecommendedChatFolders) GetClass() string

func (*RecommendedChatFolders) GetType added in v0.7.0

func (*RecommendedChatFolders) GetType() string

func (*RecommendedChatFolders) MarshalJSON added in v0.7.0

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 RefundStarPaymentRequest added in v0.7.3

type RefundStarPaymentRequest struct {
	// Identifier of the user that did the payment
	UserId int64 `json:"user_id"`
	// Telegram payment identifier
	TelegramPaymentChargeId string `json:"telegram_payment_charge_id"`
}

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 added in v0.1.0

type RegisterUserRequest struct {
	// The first name of the user; 1-64 characters
	FirstName string `json:"first_name"`
	// The last name of the user; 0-64 characters
	LastName string `json:"last_name"`
	// Pass true to disable notification about the current user joining Telegram for other users that added them to contact list
	DisableNotification bool `json:"disable_notification"`
}

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 v0.7.0

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 RemoveBusinessConnectedBotFromChatRequest added in v0.7.3

type RemoveBusinessConnectedBotFromChatRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
}

type RemoveChatActionBarRequest added in v0.2.0

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 v0.7.0

type RemoveFileFromDownloadsRequest struct {
	// Identifier of the downloaded file
	FileId int32 `json:"file_id"`
	// Pass true to delete the file from the TDLib file cache
	DeleteFromCache bool `json:"delete_from_cache"`
}

type RemoveInstalledBackgroundRequest added in v0.7.2

type RemoveInstalledBackgroundRequest struct {
	// The background identifier
	BackgroundId JsonInt64 `json:"background_id"`
}

type RemoveMessageReactionRequest added in v0.7.0

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. The paid reaction can't be removed
	ReactionType ReactionType `json:"reaction_type"`
}

type RemoveNotificationGroupRequest added in v0.0.13

type RemoveNotificationGroupRequest struct {
	// Notification group identifier
	NotificationGroupId int32 `json:"notification_group_id"`
	// The maximum identifier of removed notifications
	MaxNotificationId int32 `json:"max_notification_id"`
}

type RemoveNotificationRequest added in v0.0.13

type RemoveNotificationRequest struct {
	// Identifier of notification group to which the notification belongs
	NotificationGroupId int32 `json:"notification_group_id"`
	// Identifier of removed notification
	NotificationId int32 `json:"notification_id"`
}

type RemovePendingPaidMessageReactionsRequest added in v0.7.3

type RemovePendingPaidMessageReactionsRequest 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 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 v0.7.0

type RemoveSavedNotificationSoundRequest struct {
	// Identifier of the notification sound
	NotificationSoundId JsonInt64 `json:"notification_sound_id"`
}

type RemoveSearchedForTagRequest added in v0.7.3

type RemoveSearchedForTagRequest struct {
	// Hashtag or cashtag to delete
	Tag string `json:"tag"`
}

type RemoveStickerFromSetRequest

type RemoveStickerFromSetRequest struct {
	// Sticker to remove from the set
	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 v0.7.0

type ReorderActiveUsernamesRequest struct {
	// The new order of active usernames. All currently active usernames must be specified
	Usernames []string `json:"usernames"`
}

type ReorderBotActiveUsernamesRequest added in v0.7.0

type ReorderBotActiveUsernamesRequest struct {
	// Identifier of the target bot
	BotUserId int64 `json:"bot_user_id"`
	// The new order of active usernames. All currently active usernames must be specified
	Usernames []string `json:"usernames"`
}

type ReorderBotMediaPreviewsRequest added in v0.7.3

type ReorderBotMediaPreviewsRequest struct {
	// Identifier of the target bot. The bot must be owned and must have the main Web App
	BotUserId int64 `json:"bot_user_id"`
	// Language code of the media previews to reorder
	LanguageCode string `json:"language_code"`
	// File identifiers of the media in the new order
	FileIds []int32 `json:"file_ids"`
}

type ReorderChatFoldersRequest added in v0.7.0

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 ReorderQuickReplyShortcutsRequest added in v0.7.2

type ReorderQuickReplyShortcutsRequest struct {
	// The new order of quick reply shortcuts
	ShortcutIds []int32 `json:"shortcut_ids"`
}

type ReorderSupergroupActiveUsernamesRequest added in v0.7.0

type ReorderSupergroupActiveUsernamesRequest struct {
	// Identifier of the supergroup or channel
	SupergroupId int64 `json:"supergroup_id"`
	// The new order of active usernames. All currently active usernames must be specified
	Usernames []string `json:"usernames"`
}

type ReplacePrimaryChatInviteLinkRequest added in v0.5.0

type ReplacePrimaryChatInviteLinkRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
}

type ReplaceStickerInSetRequest added in v0.7.2

type ReplaceStickerInSetRequest struct {
	// Sticker set owner; ignored for regular users
	UserId int64 `json:"user_id"`
	// Sticker set name. The sticker set must be owned by the current user
	Name string `json:"name"`
	// Sticker to remove from the set
	OldSticker InputFile `json:"old_sticker"`
	// Sticker to add to the set
	NewSticker *InputSticker `json:"new_sticker"`
}

type ReplaceVideoChatRtmpUrlRequest added in v0.7.0

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 added in v0.3.2

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 expected 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 ReportAuthenticationCodeMissingRequest added in v0.7.3

type ReportAuthenticationCodeMissingRequest struct {
	// Current mobile network code
	MobileNetworkCode string `json:"mobile_network_code"`
}

type ReportChatPhotoRequest added in v0.5.0

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"`
	// Option identifier chosen by the user; leave empty for the initial request
	OptionId []byte `json:"option_id"`
	// Identifiers of reported messages. Use messageProperties.can_report_chat to check whether the message can be reported
	MessageIds []int64 `json:"message_ids"`
	// Additional report details if asked by the server; 0-1024 characters; leave empty for the initial request
	Text string `json:"text"`
}

type ReportChatResult added in v0.7.3

type ReportChatResult interface {
	ReportChatResultType() string
}

Describes result of chat report

func UnmarshalListOfReportChatResult added in v0.7.3

func UnmarshalListOfReportChatResult(dataList []json.RawMessage) ([]ReportChatResult, error)

func UnmarshalReportChatResult added in v0.7.3

func UnmarshalReportChatResult(data json.RawMessage) (ReportChatResult, error)

type ReportChatResultMessagesRequired added in v0.7.3

type ReportChatResultMessagesRequired struct {
	// contains filtered or unexported fields
}

The user must choose messages to report and repeat the reportChat request with the chosen messages

func UnmarshalReportChatResultMessagesRequired added in v0.7.3

func UnmarshalReportChatResultMessagesRequired(data json.RawMessage) (*ReportChatResultMessagesRequired, error)

func (*ReportChatResultMessagesRequired) GetClass added in v0.7.3

func (*ReportChatResultMessagesRequired) GetType added in v0.7.3

func (*ReportChatResultMessagesRequired) MarshalJSON added in v0.7.3

func (entity *ReportChatResultMessagesRequired) MarshalJSON() ([]byte, error)

func (*ReportChatResultMessagesRequired) ReportChatResultType added in v0.7.3

func (*ReportChatResultMessagesRequired) ReportChatResultType() string

type ReportChatResultOk added in v0.7.3

type ReportChatResultOk struct {
	// contains filtered or unexported fields
}

The chat was reported successfully

func UnmarshalReportChatResultOk added in v0.7.3

func UnmarshalReportChatResultOk(data json.RawMessage) (*ReportChatResultOk, error)

func (*ReportChatResultOk) GetClass added in v0.7.3

func (*ReportChatResultOk) GetClass() string

func (*ReportChatResultOk) GetType added in v0.7.3

func (*ReportChatResultOk) GetType() string

func (*ReportChatResultOk) MarshalJSON added in v0.7.3

func (entity *ReportChatResultOk) MarshalJSON() ([]byte, error)

func (*ReportChatResultOk) ReportChatResultType added in v0.7.3

func (*ReportChatResultOk) ReportChatResultType() string

type ReportChatResultOptionRequired added in v0.7.3

type ReportChatResultOptionRequired struct {

	// Title for the option choice
	Title string `json:"title"`
	// List of available options
	Options []*ReportOption `json:"options"`
	// contains filtered or unexported fields
}

The user must choose an option to report the chat and repeat request with the chosen option

func UnmarshalReportChatResultOptionRequired added in v0.7.3

func UnmarshalReportChatResultOptionRequired(data json.RawMessage) (*ReportChatResultOptionRequired, error)

func (*ReportChatResultOptionRequired) GetClass added in v0.7.3

func (*ReportChatResultOptionRequired) GetType added in v0.7.3

func (*ReportChatResultOptionRequired) MarshalJSON added in v0.7.3

func (entity *ReportChatResultOptionRequired) MarshalJSON() ([]byte, error)

func (*ReportChatResultOptionRequired) ReportChatResultType added in v0.7.3

func (*ReportChatResultOptionRequired) ReportChatResultType() string

type ReportChatResultTextRequired added in v0.7.3

type ReportChatResultTextRequired struct {

	// Option identifier for the next reportChat request
	OptionId []byte `json:"option_id"`
	// True, if the user can skip text adding
	IsOptional bool `json:"is_optional"`
	// contains filtered or unexported fields
}

The user must add additional text details to the report

func UnmarshalReportChatResultTextRequired added in v0.7.3

func UnmarshalReportChatResultTextRequired(data json.RawMessage) (*ReportChatResultTextRequired, error)

func (*ReportChatResultTextRequired) GetClass added in v0.7.3

func (*ReportChatResultTextRequired) GetType added in v0.7.3

func (*ReportChatResultTextRequired) MarshalJSON added in v0.7.3

func (entity *ReportChatResultTextRequired) MarshalJSON() ([]byte, error)

func (*ReportChatResultTextRequired) ReportChatResultType added in v0.7.3

func (*ReportChatResultTextRequired) ReportChatResultType() string

type ReportChatSponsoredMessageRequest added in v0.7.2

type ReportChatSponsoredMessageRequest struct {
	// Chat identifier of the sponsored message
	ChatId int64 `json:"chat_id"`
	// Identifier of the sponsored message
	MessageId int64 `json:"message_id"`
	// Option identifier chosen by the user; leave empty for the initial request
	OptionId []byte `json:"option_id"`
}

type ReportChatSponsoredMessageResult added in v0.7.2

type ReportChatSponsoredMessageResult interface {
	ReportChatSponsoredMessageResultType() string
}

Describes result of sponsored message report

func UnmarshalListOfReportChatSponsoredMessageResult added in v0.7.2

func UnmarshalListOfReportChatSponsoredMessageResult(dataList []json.RawMessage) ([]ReportChatSponsoredMessageResult, error)

func UnmarshalReportChatSponsoredMessageResult added in v0.7.2

func UnmarshalReportChatSponsoredMessageResult(data json.RawMessage) (ReportChatSponsoredMessageResult, error)

type ReportChatSponsoredMessageResultAdsHidden added in v0.7.2

type ReportChatSponsoredMessageResultAdsHidden struct {
	// contains filtered or unexported fields
}

Sponsored messages were hidden for the user in all chats

func UnmarshalReportChatSponsoredMessageResultAdsHidden added in v0.7.2

func UnmarshalReportChatSponsoredMessageResultAdsHidden(data json.RawMessage) (*ReportChatSponsoredMessageResultAdsHidden, error)

func (*ReportChatSponsoredMessageResultAdsHidden) GetClass added in v0.7.2

func (*ReportChatSponsoredMessageResultAdsHidden) GetType added in v0.7.2

func (*ReportChatSponsoredMessageResultAdsHidden) MarshalJSON added in v0.7.2

func (entity *ReportChatSponsoredMessageResultAdsHidden) MarshalJSON() ([]byte, error)

func (*ReportChatSponsoredMessageResultAdsHidden) ReportChatSponsoredMessageResultType added in v0.7.2

func (*ReportChatSponsoredMessageResultAdsHidden) ReportChatSponsoredMessageResultType() string

type ReportChatSponsoredMessageResultFailed added in v0.7.2

type ReportChatSponsoredMessageResultFailed struct {
	// contains filtered or unexported fields
}

The sponsored message is too old or not found

func UnmarshalReportChatSponsoredMessageResultFailed added in v0.7.2

func UnmarshalReportChatSponsoredMessageResultFailed(data json.RawMessage) (*ReportChatSponsoredMessageResultFailed, error)

func (*ReportChatSponsoredMessageResultFailed) GetClass added in v0.7.2

func (*ReportChatSponsoredMessageResultFailed) GetType added in v0.7.2

func (*ReportChatSponsoredMessageResultFailed) MarshalJSON added in v0.7.2

func (entity *ReportChatSponsoredMessageResultFailed) MarshalJSON() ([]byte, error)

func (*ReportChatSponsoredMessageResultFailed) ReportChatSponsoredMessageResultType added in v0.7.2

func (*ReportChatSponsoredMessageResultFailed) ReportChatSponsoredMessageResultType() string

type ReportChatSponsoredMessageResultOk added in v0.7.2

type ReportChatSponsoredMessageResultOk struct {
	// contains filtered or unexported fields
}

The message was reported successfully

func UnmarshalReportChatSponsoredMessageResultOk added in v0.7.2

func UnmarshalReportChatSponsoredMessageResultOk(data json.RawMessage) (*ReportChatSponsoredMessageResultOk, error)

func (*ReportChatSponsoredMessageResultOk) GetClass added in v0.7.2

func (*ReportChatSponsoredMessageResultOk) GetType added in v0.7.2

func (*ReportChatSponsoredMessageResultOk) MarshalJSON added in v0.7.2

func (entity *ReportChatSponsoredMessageResultOk) MarshalJSON() ([]byte, error)

func (*ReportChatSponsoredMessageResultOk) ReportChatSponsoredMessageResultType added in v0.7.2

func (*ReportChatSponsoredMessageResultOk) ReportChatSponsoredMessageResultType() string

type ReportChatSponsoredMessageResultOptionRequired added in v0.7.2

type ReportChatSponsoredMessageResultOptionRequired struct {

	// Title for the option choice
	Title string `json:"title"`
	// List of available options
	Options []*ReportOption `json:"options"`
	// contains filtered or unexported fields
}

The user must choose an option to report the message and repeat request with the chosen option

func UnmarshalReportChatSponsoredMessageResultOptionRequired added in v0.7.2

func UnmarshalReportChatSponsoredMessageResultOptionRequired(data json.RawMessage) (*ReportChatSponsoredMessageResultOptionRequired, error)

func (*ReportChatSponsoredMessageResultOptionRequired) GetClass added in v0.7.2

func (*ReportChatSponsoredMessageResultOptionRequired) GetType added in v0.7.2

func (*ReportChatSponsoredMessageResultOptionRequired) MarshalJSON added in v0.7.2

func (entity *ReportChatSponsoredMessageResultOptionRequired) MarshalJSON() ([]byte, error)

func (*ReportChatSponsoredMessageResultOptionRequired) ReportChatSponsoredMessageResultType added in v0.7.2

func (*ReportChatSponsoredMessageResultOptionRequired) ReportChatSponsoredMessageResultType() string

type ReportChatSponsoredMessageResultPremiumRequired added in v0.7.2

type ReportChatSponsoredMessageResultPremiumRequired struct {
	// contains filtered or unexported fields
}

The user asked to hide sponsored messages, but Telegram Premium is required for this

func UnmarshalReportChatSponsoredMessageResultPremiumRequired added in v0.7.2

func UnmarshalReportChatSponsoredMessageResultPremiumRequired(data json.RawMessage) (*ReportChatSponsoredMessageResultPremiumRequired, error)

func (*ReportChatSponsoredMessageResultPremiumRequired) GetClass added in v0.7.2

func (*ReportChatSponsoredMessageResultPremiumRequired) GetType added in v0.7.2

func (*ReportChatSponsoredMessageResultPremiumRequired) MarshalJSON added in v0.7.2

func (entity *ReportChatSponsoredMessageResultPremiumRequired) MarshalJSON() ([]byte, error)

func (*ReportChatSponsoredMessageResultPremiumRequired) ReportChatSponsoredMessageResultType added in v0.7.2

func (*ReportChatSponsoredMessageResultPremiumRequired) ReportChatSponsoredMessageResultType() string

type ReportMessageReactionsRequest added in v0.7.0

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 ReportOption added in v0.7.3

type ReportOption struct {

	// Unique identifier of the option
	Id []byte `json:"id"`
	// Text of the option
	Text string `json:"text"`
	// contains filtered or unexported fields
}

Describes an option to report an entity to Telegram

func UnmarshalReportOption added in v0.7.3

func UnmarshalReportOption(data json.RawMessage) (*ReportOption, error)

func (*ReportOption) GetClass added in v0.7.3

func (*ReportOption) GetClass() string

func (*ReportOption) GetType added in v0.7.3

func (*ReportOption) GetType() string

func (*ReportOption) MarshalJSON added in v0.7.3

func (entity *ReportOption) MarshalJSON() ([]byte, error)

type ReportPhoneNumberCodeMissingRequest added in v0.7.3

type ReportPhoneNumberCodeMissingRequest struct {
	// Current mobile network code
	MobileNetworkCode string `json:"mobile_network_code"`
}

type ReportReason added in v0.7.0

type ReportReason interface {
	ReportReasonType() string
}

Describes the reason why a chat is reported

func UnmarshalListOfReportReason added in v0.7.0

func UnmarshalListOfReportReason(dataList []json.RawMessage) ([]ReportReason, error)

func UnmarshalReportReason added in v0.7.0

func UnmarshalReportReason(data json.RawMessage) (ReportReason, error)

type ReportReasonChildAbuse added in v0.7.0

type ReportReasonChildAbuse struct {
	// contains filtered or unexported fields
}

The chat has child abuse related content

func UnmarshalReportReasonChildAbuse added in v0.7.0

func UnmarshalReportReasonChildAbuse(data json.RawMessage) (*ReportReasonChildAbuse, error)

func (*ReportReasonChildAbuse) GetClass added in v0.7.0

func (*ReportReasonChildAbuse) GetClass() string

func (*ReportReasonChildAbuse) GetType added in v0.7.0

func (*ReportReasonChildAbuse) GetType() string

func (*ReportReasonChildAbuse) MarshalJSON added in v0.7.0

func (entity *ReportReasonChildAbuse) MarshalJSON() ([]byte, error)

func (*ReportReasonChildAbuse) ReportReasonType added in v0.7.0

func (*ReportReasonChildAbuse) ReportReasonType() string

type ReportReasonCopyright added in v0.7.0

type ReportReasonCopyright struct {
	// contains filtered or unexported fields
}

The chat contains copyrighted content

func UnmarshalReportReasonCopyright added in v0.7.0

func UnmarshalReportReasonCopyright(data json.RawMessage) (*ReportReasonCopyright, error)

func (*ReportReasonCopyright) GetClass added in v0.7.0

func (*ReportReasonCopyright) GetClass() string

func (*ReportReasonCopyright) GetType added in v0.7.0

func (*ReportReasonCopyright) GetType() string

func (*ReportReasonCopyright) MarshalJSON added in v0.7.0

func (entity *ReportReasonCopyright) MarshalJSON() ([]byte, error)

func (*ReportReasonCopyright) ReportReasonType added in v0.7.0

func (*ReportReasonCopyright) ReportReasonType() string

type ReportReasonCustom added in v0.7.0

type ReportReasonCustom struct {
	// contains filtered or unexported fields
}

A custom reason provided by the user

func UnmarshalReportReasonCustom added in v0.7.0

func UnmarshalReportReasonCustom(data json.RawMessage) (*ReportReasonCustom, error)

func (*ReportReasonCustom) GetClass added in v0.7.0

func (*ReportReasonCustom) GetClass() string

func (*ReportReasonCustom) GetType added in v0.7.0

func (*ReportReasonCustom) GetType() string

func (*ReportReasonCustom) MarshalJSON added in v0.7.0

func (entity *ReportReasonCustom) MarshalJSON() ([]byte, error)

func (*ReportReasonCustom) ReportReasonType added in v0.7.0

func (*ReportReasonCustom) ReportReasonType() string

type ReportReasonFake added in v0.7.0

type ReportReasonFake struct {
	// contains filtered or unexported fields
}

The chat represents a fake account

func UnmarshalReportReasonFake added in v0.7.0

func UnmarshalReportReasonFake(data json.RawMessage) (*ReportReasonFake, error)

func (*ReportReasonFake) GetClass added in v0.7.0

func (*ReportReasonFake) GetClass() string

func (*ReportReasonFake) GetType added in v0.7.0

func (*ReportReasonFake) GetType() string

func (*ReportReasonFake) MarshalJSON added in v0.7.0

func (entity *ReportReasonFake) MarshalJSON() ([]byte, error)

func (*ReportReasonFake) ReportReasonType added in v0.7.0

func (*ReportReasonFake) ReportReasonType() string

type ReportReasonIllegalDrugs added in v0.7.0

type ReportReasonIllegalDrugs struct {
	// contains filtered or unexported fields
}

The chat has illegal drugs related content

func UnmarshalReportReasonIllegalDrugs added in v0.7.0

func UnmarshalReportReasonIllegalDrugs(data json.RawMessage) (*ReportReasonIllegalDrugs, error)

func (*ReportReasonIllegalDrugs) GetClass added in v0.7.0

func (*ReportReasonIllegalDrugs) GetClass() string

func (*ReportReasonIllegalDrugs) GetType added in v0.7.0

func (*ReportReasonIllegalDrugs) GetType() string

func (*ReportReasonIllegalDrugs) MarshalJSON added in v0.7.0

func (entity *ReportReasonIllegalDrugs) MarshalJSON() ([]byte, error)

func (*ReportReasonIllegalDrugs) ReportReasonType added in v0.7.0

func (*ReportReasonIllegalDrugs) ReportReasonType() string

type ReportReasonPersonalDetails added in v0.7.0

type ReportReasonPersonalDetails struct {
	// contains filtered or unexported fields
}

The chat contains messages with personal details

func UnmarshalReportReasonPersonalDetails added in v0.7.0

func UnmarshalReportReasonPersonalDetails(data json.RawMessage) (*ReportReasonPersonalDetails, error)

func (*ReportReasonPersonalDetails) GetClass added in v0.7.0

func (*ReportReasonPersonalDetails) GetClass() string

func (*ReportReasonPersonalDetails) GetType added in v0.7.0

func (*ReportReasonPersonalDetails) MarshalJSON added in v0.7.0

func (entity *ReportReasonPersonalDetails) MarshalJSON() ([]byte, error)

func (*ReportReasonPersonalDetails) ReportReasonType added in v0.7.0

func (*ReportReasonPersonalDetails) ReportReasonType() string

type ReportReasonPornography added in v0.7.0

type ReportReasonPornography struct {
	// contains filtered or unexported fields
}

The chat contains pornographic messages

func UnmarshalReportReasonPornography added in v0.7.0

func UnmarshalReportReasonPornography(data json.RawMessage) (*ReportReasonPornography, error)

func (*ReportReasonPornography) GetClass added in v0.7.0

func (*ReportReasonPornography) GetClass() string

func (*ReportReasonPornography) GetType added in v0.7.0

func (*ReportReasonPornography) GetType() string

func (*ReportReasonPornography) MarshalJSON added in v0.7.0

func (entity *ReportReasonPornography) MarshalJSON() ([]byte, error)

func (*ReportReasonPornography) ReportReasonType added in v0.7.0

func (*ReportReasonPornography) ReportReasonType() string

type ReportReasonSpam added in v0.7.0

type ReportReasonSpam struct {
	// contains filtered or unexported fields
}

The chat contains spam messages

func UnmarshalReportReasonSpam added in v0.7.0

func UnmarshalReportReasonSpam(data json.RawMessage) (*ReportReasonSpam, error)

func (*ReportReasonSpam) GetClass added in v0.7.0

func (*ReportReasonSpam) GetClass() string

func (*ReportReasonSpam) GetType added in v0.7.0

func (*ReportReasonSpam) GetType() string

func (*ReportReasonSpam) MarshalJSON added in v0.7.0

func (entity *ReportReasonSpam) MarshalJSON() ([]byte, error)

func (*ReportReasonSpam) ReportReasonType added in v0.7.0

func (*ReportReasonSpam) ReportReasonType() string

type ReportReasonUnrelatedLocation added in v0.7.0

type ReportReasonUnrelatedLocation struct {
	// contains filtered or unexported fields
}

The location-based chat is unrelated to its stated location

func UnmarshalReportReasonUnrelatedLocation added in v0.7.0

func UnmarshalReportReasonUnrelatedLocation(data json.RawMessage) (*ReportReasonUnrelatedLocation, error)

func (*ReportReasonUnrelatedLocation) GetClass added in v0.7.0

func (*ReportReasonUnrelatedLocation) GetType added in v0.7.0

func (*ReportReasonUnrelatedLocation) MarshalJSON added in v0.7.0

func (entity *ReportReasonUnrelatedLocation) MarshalJSON() ([]byte, error)

func (*ReportReasonUnrelatedLocation) ReportReasonType added in v0.7.0

func (*ReportReasonUnrelatedLocation) ReportReasonType() string

type ReportReasonViolence added in v0.7.0

type ReportReasonViolence struct {
	// contains filtered or unexported fields
}

The chat promotes violence

func UnmarshalReportReasonViolence added in v0.7.0

func UnmarshalReportReasonViolence(data json.RawMessage) (*ReportReasonViolence, error)

func (*ReportReasonViolence) GetClass added in v0.7.0

func (*ReportReasonViolence) GetClass() string

func (*ReportReasonViolence) GetType added in v0.7.0

func (*ReportReasonViolence) GetType() string

func (*ReportReasonViolence) MarshalJSON added in v0.7.0

func (entity *ReportReasonViolence) MarshalJSON() ([]byte, error)

func (*ReportReasonViolence) ReportReasonType added in v0.7.0

func (*ReportReasonViolence) ReportReasonType() string

type ReportStoryRequest added in v0.7.0

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"`
	// Option identifier chosen by the user; leave empty for the initial request
	OptionId []byte `json:"option_id"`
	// Additional report details; 0-1024 characters; leave empty for the initial request
	Text string `json:"text"`
}

type ReportStoryResult added in v0.7.3

type ReportStoryResult interface {
	ReportStoryResultType() string
}

Describes result of story report

func UnmarshalListOfReportStoryResult added in v0.7.3

func UnmarshalListOfReportStoryResult(dataList []json.RawMessage) ([]ReportStoryResult, error)

func UnmarshalReportStoryResult added in v0.7.3

func UnmarshalReportStoryResult(data json.RawMessage) (ReportStoryResult, error)

type ReportStoryResultOk added in v0.7.3

type ReportStoryResultOk struct {
	// contains filtered or unexported fields
}

The story was reported successfully

func UnmarshalReportStoryResultOk added in v0.7.3

func UnmarshalReportStoryResultOk(data json.RawMessage) (*ReportStoryResultOk, error)

func (*ReportStoryResultOk) GetClass added in v0.7.3

func (*ReportStoryResultOk) GetClass() string

func (*ReportStoryResultOk) GetType added in v0.7.3

func (*ReportStoryResultOk) GetType() string

func (*ReportStoryResultOk) MarshalJSON added in v0.7.3

func (entity *ReportStoryResultOk) MarshalJSON() ([]byte, error)

func (*ReportStoryResultOk) ReportStoryResultType added in v0.7.3

func (*ReportStoryResultOk) ReportStoryResultType() string

type ReportStoryResultOptionRequired added in v0.7.3

type ReportStoryResultOptionRequired struct {

	// Title for the option choice
	Title string `json:"title"`
	// List of available options
	Options []*ReportOption `json:"options"`
	// contains filtered or unexported fields
}

The user must choose an option to report the story and repeat request with the chosen option

func UnmarshalReportStoryResultOptionRequired added in v0.7.3

func UnmarshalReportStoryResultOptionRequired(data json.RawMessage) (*ReportStoryResultOptionRequired, error)

func (*ReportStoryResultOptionRequired) GetClass added in v0.7.3

func (*ReportStoryResultOptionRequired) GetType added in v0.7.3

func (*ReportStoryResultOptionRequired) MarshalJSON added in v0.7.3

func (entity *ReportStoryResultOptionRequired) MarshalJSON() ([]byte, error)

func (*ReportStoryResultOptionRequired) ReportStoryResultType added in v0.7.3

func (*ReportStoryResultOptionRequired) ReportStoryResultType() string

type ReportStoryResultTextRequired added in v0.7.3

type ReportStoryResultTextRequired struct {

	// Option identifier for the next reportStory request
	OptionId []byte `json:"option_id"`
	// True, if the user can skip text adding
	IsOptional bool `json:"is_optional"`
	// contains filtered or unexported fields
}

The user must add additional text details to the report

func UnmarshalReportStoryResultTextRequired added in v0.7.3

func UnmarshalReportStoryResultTextRequired(data json.RawMessage) (*ReportStoryResultTextRequired, error)

func (*ReportStoryResultTextRequired) GetClass added in v0.7.3

func (*ReportStoryResultTextRequired) GetType added in v0.7.3

func (*ReportStoryResultTextRequired) MarshalJSON added in v0.7.3

func (entity *ReportStoryResultTextRequired) MarshalJSON() ([]byte, error)

func (*ReportStoryResultTextRequired) ReportStoryResultType added in v0.7.3

func (*ReportStoryResultTextRequired) ReportStoryResultType() string

type ReportSupergroupAntiSpamFalsePositiveRequest added in v0.7.0

type ReportSupergroupAntiSpamFalsePositiveRequest struct {
	// Supergroup identifier
	SupergroupId int64 `json:"supergroup_id"`
	// Identifier of the erroneously deleted message from chatEventMessageDeleted
	MessageId int64 `json:"message_id"`
}

type ReportSupergroupSpamRequest

type ReportSupergroupSpamRequest struct {
	// Supergroup identifier
	SupergroupId int64 `json:"supergroup_id"`
	// Identifiers of messages to report. Use messageProperties.can_report_supergroup_spam to check whether the message can be reported
	MessageIds []int64 `json:"message_ids"`
}

type Request

type Request struct {
	Data map[string]interface{}
	// contains filtered or unexported fields
}

func (Request) MarshalJSON

func (req Request) MarshalJSON() ([]byte, error)

type RequestQrCodeAuthenticationRequest added in v0.2.0

type RequestQrCodeAuthenticationRequest struct {
	// List of user identifiers of other users currently using the application
	OtherUserIds []int64 `json:"other_user_ids"`
}

type ResendAuthenticationCodeRequest added in v0.7.3

type ResendAuthenticationCodeRequest struct {
	// Reason of code resending; pass null if unknown
	Reason ResendCodeReason `json:"reason"`
}

type ResendCodeReason added in v0.7.3

type ResendCodeReason interface {
	ResendCodeReasonType() string
}

Describes the reason why a code needs to be re-sent

func UnmarshalListOfResendCodeReason added in v0.7.3

func UnmarshalListOfResendCodeReason(dataList []json.RawMessage) ([]ResendCodeReason, error)

func UnmarshalResendCodeReason added in v0.7.3

func UnmarshalResendCodeReason(data json.RawMessage) (ResendCodeReason, error)

type ResendCodeReasonUserRequest added in v0.7.3

type ResendCodeReasonUserRequest struct {
	// contains filtered or unexported fields
}

The user requested to resend the code

func UnmarshalResendCodeReasonUserRequest added in v0.7.3

func UnmarshalResendCodeReasonUserRequest(data json.RawMessage) (*ResendCodeReasonUserRequest, error)

func (*ResendCodeReasonUserRequest) GetClass added in v0.7.3

func (*ResendCodeReasonUserRequest) GetClass() string

func (*ResendCodeReasonUserRequest) GetType added in v0.7.3

func (*ResendCodeReasonUserRequest) MarshalJSON added in v0.7.3

func (entity *ResendCodeReasonUserRequest) MarshalJSON() ([]byte, error)

func (*ResendCodeReasonUserRequest) ResendCodeReasonType added in v0.7.3

func (*ResendCodeReasonUserRequest) ResendCodeReasonType() string

type ResendCodeReasonVerificationFailed added in v0.7.3

type ResendCodeReasonVerificationFailed struct {

	// Cause of the verification failure, for example, PLAY_SERVICES_NOT_AVAILABLE, APNS_RECEIVE_TIMEOUT, or APNS_INIT_FAILED
	ErrorMessage string `json:"error_message"`
	// contains filtered or unexported fields
}

The code is re-sent, because device verification has failed

func UnmarshalResendCodeReasonVerificationFailed added in v0.7.3

func UnmarshalResendCodeReasonVerificationFailed(data json.RawMessage) (*ResendCodeReasonVerificationFailed, error)

func (*ResendCodeReasonVerificationFailed) GetClass added in v0.7.3

func (*ResendCodeReasonVerificationFailed) GetType added in v0.7.3

func (*ResendCodeReasonVerificationFailed) MarshalJSON added in v0.7.3

func (entity *ResendCodeReasonVerificationFailed) MarshalJSON() ([]byte, error)

func (*ResendCodeReasonVerificationFailed) ResendCodeReasonType added in v0.7.3

func (*ResendCodeReasonVerificationFailed) ResendCodeReasonType() string

type ResendMessagesRequest added in v0.1.0

type ResendMessagesRequest struct {
	// Identifier of the chat to send messages
	ChatId int64 `json:"chat_id"`
	// Identifiers of the messages to resend. Message identifiers must be in a strictly increasing order
	MessageIds []int64 `json:"message_ids"`
	// New manually chosen quote from the message to be replied; pass null if none. Ignored if more than one message is re-sent, or if messageSendingStateFailed.need_another_reply_quote == false
	Quote *InputTextQuote `json:"quote"`
}

type ResendPhoneNumberCodeRequest added in v0.7.3

type ResendPhoneNumberCodeRequest struct {
	// Reason of code resending; pass null if unknown
	Reason ResendCodeReason `json:"reason"`
}

type ResetPasswordResult added in v0.5.0

type ResetPasswordResult interface {
	ResetPasswordResultType() string
}

Represents result of 2-step verification password reset

func UnmarshalListOfResetPasswordResult added in v0.5.0

func UnmarshalListOfResetPasswordResult(dataList []json.RawMessage) ([]ResetPasswordResult, error)

func UnmarshalResetPasswordResult added in v0.5.0

func UnmarshalResetPasswordResult(data json.RawMessage) (ResetPasswordResult, error)

type ResetPasswordResultDeclined added in v0.5.0

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 added in v0.5.0

func UnmarshalResetPasswordResultDeclined(data json.RawMessage) (*ResetPasswordResultDeclined, error)

func (*ResetPasswordResultDeclined) GetClass added in v0.5.0

func (*ResetPasswordResultDeclined) GetClass() string

func (*ResetPasswordResultDeclined) GetType added in v0.5.0

func (*ResetPasswordResultDeclined) MarshalJSON added in v0.5.0

func (entity *ResetPasswordResultDeclined) MarshalJSON() ([]byte, error)

func (*ResetPasswordResultDeclined) ResetPasswordResultType added in v0.5.0

func (*ResetPasswordResultDeclined) ResetPasswordResultType() string

type ResetPasswordResultOk added in v0.5.0

type ResetPasswordResultOk struct {
	// contains filtered or unexported fields
}

The password was reset

func UnmarshalResetPasswordResultOk added in v0.5.0

func UnmarshalResetPasswordResultOk(data json.RawMessage) (*ResetPasswordResultOk, error)

func (*ResetPasswordResultOk) GetClass added in v0.5.0

func (*ResetPasswordResultOk) GetClass() string

func (*ResetPasswordResultOk) GetType added in v0.5.0

func (*ResetPasswordResultOk) GetType() string

func (*ResetPasswordResultOk) MarshalJSON added in v0.5.0

func (entity *ResetPasswordResultOk) MarshalJSON() ([]byte, error)

func (*ResetPasswordResultOk) ResetPasswordResultType added in v0.5.0

func (*ResetPasswordResultOk) ResetPasswordResultType() string

type ResetPasswordResultPending added in v0.5.0

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 added in v0.5.0

func UnmarshalResetPasswordResultPending(data json.RawMessage) (*ResetPasswordResultPending, error)

func (*ResetPasswordResultPending) GetClass added in v0.5.0

func (*ResetPasswordResultPending) GetClass() string

func (*ResetPasswordResultPending) GetType added in v0.5.0

func (*ResetPasswordResultPending) MarshalJSON added in v0.5.0

func (entity *ResetPasswordResultPending) MarshalJSON() ([]byte, error)

func (*ResetPasswordResultPending) ResetPasswordResultType added in v0.5.0

func (*ResetPasswordResultPending) ResetPasswordResultType() string

type Response

type Response struct {
	Data json.RawMessage
	// contains filtered or unexported fields
}

func Execute added in v0.6.0

func Execute(req Request) (*Response, error)

type ResponseError

type ResponseError struct {
	Err *Error
}

func (ResponseError) Error

func (responseError ResponseError) Error() string

type ReuseStarSubscriptionRequest added in v0.7.3

type ReuseStarSubscriptionRequest struct {
	// Identifier of the subscription
	SubscriptionId string `json:"subscription_id"`
}

type RevenueWithdrawalState added in v0.7.3

type RevenueWithdrawalState interface {
	RevenueWithdrawalStateType() string
}

Describes state of a revenue withdrawal

func UnmarshalListOfRevenueWithdrawalState added in v0.7.3

func UnmarshalListOfRevenueWithdrawalState(dataList []json.RawMessage) ([]RevenueWithdrawalState, error)

func UnmarshalRevenueWithdrawalState added in v0.7.3

func UnmarshalRevenueWithdrawalState(data json.RawMessage) (RevenueWithdrawalState, error)

type RevenueWithdrawalStateFailed added in v0.7.3

type RevenueWithdrawalStateFailed struct {
	// contains filtered or unexported fields
}

Withdrawal failed

func UnmarshalRevenueWithdrawalStateFailed added in v0.7.3

func UnmarshalRevenueWithdrawalStateFailed(data json.RawMessage) (*RevenueWithdrawalStateFailed, error)

func (*RevenueWithdrawalStateFailed) GetClass added in v0.7.3

func (*RevenueWithdrawalStateFailed) GetType added in v0.7.3

func (*RevenueWithdrawalStateFailed) MarshalJSON added in v0.7.3

func (entity *RevenueWithdrawalStateFailed) MarshalJSON() ([]byte, error)

func (*RevenueWithdrawalStateFailed) RevenueWithdrawalStateType added in v0.7.3

func (*RevenueWithdrawalStateFailed) RevenueWithdrawalStateType() string

type RevenueWithdrawalStatePending added in v0.7.3

type RevenueWithdrawalStatePending struct {
	// contains filtered or unexported fields
}

Withdrawal is pending

func UnmarshalRevenueWithdrawalStatePending added in v0.7.3

func UnmarshalRevenueWithdrawalStatePending(data json.RawMessage) (*RevenueWithdrawalStatePending, error)

func (*RevenueWithdrawalStatePending) GetClass added in v0.7.3

func (*RevenueWithdrawalStatePending) GetType added in v0.7.3

func (*RevenueWithdrawalStatePending) MarshalJSON added in v0.7.3

func (entity *RevenueWithdrawalStatePending) MarshalJSON() ([]byte, error)

func (*RevenueWithdrawalStatePending) RevenueWithdrawalStateType added in v0.7.3

func (*RevenueWithdrawalStatePending) RevenueWithdrawalStateType() string

type RevenueWithdrawalStateSucceeded added in v0.7.3

type RevenueWithdrawalStateSucceeded struct {

	// Point in time (Unix timestamp) when the withdrawal was completed
	Date int32 `json:"date"`
	// The URL where the withdrawal transaction can be viewed
	Url string `json:"url"`
	// contains filtered or unexported fields
}

Withdrawal succeeded

func UnmarshalRevenueWithdrawalStateSucceeded added in v0.7.3

func UnmarshalRevenueWithdrawalStateSucceeded(data json.RawMessage) (*RevenueWithdrawalStateSucceeded, error)

func (*RevenueWithdrawalStateSucceeded) GetClass added in v0.7.3

func (*RevenueWithdrawalStateSucceeded) GetType added in v0.7.3

func (*RevenueWithdrawalStateSucceeded) MarshalJSON added in v0.7.3

func (entity *RevenueWithdrawalStateSucceeded) MarshalJSON() ([]byte, error)

func (*RevenueWithdrawalStateSucceeded) RevenueWithdrawalStateType added in v0.7.3

func (*RevenueWithdrawalStateSucceeded) RevenueWithdrawalStateType() string

type RevokeChatInviteLinkRequest added in v0.5.0

type RevokeChatInviteLinkRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Invite link to be revoked
	InviteLink string `json:"invite_link"`
}

type RevokeGroupCallInviteLinkRequest added in v0.5.0

type RevokeGroupCallInviteLinkRequest struct {
	// Group call identifier
	GroupCallId int32 `json:"group_call_id"`
}

type RichText

type RichText interface {
	RichTextType() string
}

Describes a formatted text object

func UnmarshalListOfRichText added in v0.3.2

func UnmarshalListOfRichText(dataList []json.RawMessage) ([]RichText, error)

func UnmarshalRichText

func UnmarshalRichText(data json.RawMessage) (RichText, error)

type RichTextAnchor added in v0.0.13

type RichTextAnchor struct {

	// Anchor name
	Name string `json:"name"`
	// contains filtered or unexported fields
}

An anchor

func UnmarshalRichTextAnchor added in v0.0.13

func UnmarshalRichTextAnchor(data json.RawMessage) (*RichTextAnchor, error)

func (*RichTextAnchor) GetClass added in v0.0.13

func (*RichTextAnchor) GetClass() string

func (*RichTextAnchor) GetType added in v0.0.13

func (*RichTextAnchor) GetType() string

func (*RichTextAnchor) MarshalJSON added in v0.0.13

func (entity *RichTextAnchor) MarshalJSON() ([]byte, error)

func (*RichTextAnchor) RichTextType added in v0.0.13

func (*RichTextAnchor) RichTextType() string
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 page

func UnmarshalRichTextAnchorLink(data json.RawMessage) (*RichTextAnchorLink, error)

func (*RichTextAnchorLink) GetClass added in v0.3.0

func (*RichTextAnchorLink) GetClass() string

func (*RichTextAnchorLink) GetType added in v0.3.0

func (*RichTextAnchorLink) GetType() string

func (*RichTextAnchorLink) MarshalJSON added in v0.3.0

func (entity *RichTextAnchorLink) MarshalJSON() ([]byte, error)

func (*RichTextAnchorLink) RichTextType added in v0.3.0

func (*RichTextAnchorLink) RichTextType() string

func (*RichTextAnchorLink) UnmarshalJSON added in v0.3.0

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 added in v0.0.13

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 added in v0.0.13

func UnmarshalRichTextIcon(data json.RawMessage) (*RichTextIcon, error)

func (*RichTextIcon) GetClass added in v0.0.13

func (*RichTextIcon) GetClass() string

func (*RichTextIcon) GetType added in v0.0.13

func (*RichTextIcon) GetType() string

func (*RichTextIcon) MarshalJSON added in v0.0.13

func (entity *RichTextIcon) MarshalJSON() ([]byte, error)

func (*RichTextIcon) RichTextType added in v0.0.13

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 added in v0.0.13

type RichTextMarked struct {

	// Text
	Text RichText `json:"text"`
	// contains filtered or unexported fields
}

A marked rich text

func UnmarshalRichTextMarked added in v0.0.13

func UnmarshalRichTextMarked(data json.RawMessage) (*RichTextMarked, error)

func (*RichTextMarked) GetClass added in v0.0.13

func (*RichTextMarked) GetClass() string

func (*RichTextMarked) GetType added in v0.0.13

func (*RichTextMarked) GetType() string

func (*RichTextMarked) MarshalJSON added in v0.0.13

func (entity *RichTextMarked) MarshalJSON() ([]byte, error)

func (*RichTextMarked) RichTextType added in v0.0.13

func (*RichTextMarked) RichTextType() string

func (*RichTextMarked) UnmarshalJSON added in v0.0.13

func (richTextMarked *RichTextMarked) UnmarshalJSON(data []byte) error

type RichTextPhoneNumber added in v0.0.13

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 added in v0.0.13

func UnmarshalRichTextPhoneNumber(data json.RawMessage) (*RichTextPhoneNumber, error)

func (*RichTextPhoneNumber) GetClass added in v0.0.13

func (*RichTextPhoneNumber) GetClass() string

func (*RichTextPhoneNumber) GetType added in v0.0.13

func (*RichTextPhoneNumber) GetType() string

func (*RichTextPhoneNumber) MarshalJSON added in v0.0.13

func (entity *RichTextPhoneNumber) MarshalJSON() ([]byte, error)

func (*RichTextPhoneNumber) RichTextType added in v0.0.13

func (*RichTextPhoneNumber) RichTextType() string

func (*RichTextPhoneNumber) UnmarshalJSON added in v0.0.13

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 added in v0.3.0

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 page

func UnmarshalRichTextReference added in v0.3.0

func UnmarshalRichTextReference(data json.RawMessage) (*RichTextReference, error)

func (*RichTextReference) GetClass added in v0.3.0

func (*RichTextReference) GetClass() string

func (*RichTextReference) GetType added in v0.3.0

func (*RichTextReference) GetType() string

func (*RichTextReference) MarshalJSON added in v0.3.0

func (entity *RichTextReference) MarshalJSON() ([]byte, error)

func (*RichTextReference) RichTextType added in v0.3.0

func (*RichTextReference) RichTextType() string

func (*RichTextReference) UnmarshalJSON added in v0.3.0

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 added in v0.0.13

type RichTextSubscript struct {

	// Text
	Text RichText `json:"text"`
	// contains filtered or unexported fields
}

A subscript rich text

func UnmarshalRichTextSubscript added in v0.0.13

func UnmarshalRichTextSubscript(data json.RawMessage) (*RichTextSubscript, error)

func (*RichTextSubscript) GetClass added in v0.0.13

func (*RichTextSubscript) GetClass() string

func (*RichTextSubscript) GetType added in v0.0.13

func (*RichTextSubscript) GetType() string

func (*RichTextSubscript) MarshalJSON added in v0.0.13

func (entity *RichTextSubscript) MarshalJSON() ([]byte, error)

func (*RichTextSubscript) RichTextType added in v0.0.13

func (*RichTextSubscript) RichTextType() string

func (*RichTextSubscript) UnmarshalJSON added in v0.0.13

func (richTextSubscript *RichTextSubscript) UnmarshalJSON(data []byte) error

type RichTextSuperscript added in v0.0.13

type RichTextSuperscript struct {

	// Text
	Text RichText `json:"text"`
	// contains filtered or unexported fields
}

A superscript rich text

func UnmarshalRichTextSuperscript added in v0.0.13

func UnmarshalRichTextSuperscript(data json.RawMessage) (*RichTextSuperscript, error)

func (*RichTextSuperscript) GetClass added in v0.0.13

func (*RichTextSuperscript) GetClass() string

func (*RichTextSuperscript) GetType added in v0.0.13

func (*RichTextSuperscript) GetType() string

func (*RichTextSuperscript) MarshalJSON added in v0.0.13

func (entity *RichTextSuperscript) MarshalJSON() ([]byte, error)

func (*RichTextSuperscript) RichTextType added in v0.0.13

func (*RichTextSuperscript) RichTextType() string

func (*RichTextSuperscript) UnmarshalJSON added in v0.0.13

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) GetClass

func (*RichTexts) GetClass() string

func (*RichTexts) GetType

func (*RichTexts) GetType() string

func (*RichTexts) MarshalJSON

func (entity *RichTexts) MarshalJSON() ([]byte, error)

func (*RichTexts) RichTextType

func (*RichTexts) RichTextType() string

func (*RichTexts) UnmarshalJSON added in v0.3.2

func (richTexts *RichTexts) UnmarshalJSON(data []byte) error

type RtmpUrl added in v0.7.0

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 v0.7.0

func UnmarshalRtmpUrl(data json.RawMessage) (*RtmpUrl, error)

func (*RtmpUrl) GetClass added in v0.7.0

func (*RtmpUrl) GetClass() string

func (*RtmpUrl) GetType added in v0.7.0

func (*RtmpUrl) GetType() string

func (*RtmpUrl) MarshalJSON added in v0.7.0

func (entity *RtmpUrl) MarshalJSON() ([]byte, error)

type SaveApplicationLogEventRequest added in v0.0.13

type SaveApplicationLogEventRequest struct {
	// Event type
	Type string `json:"type"`
	// Optional chat identifier, associated with the event
	ChatId int64 `json:"chat_id"`
	// The log event data
	Data JsonValue `json:"data"`
}

type SavePreparedInlineMessageRequest added in v0.7.4

type SavePreparedInlineMessageRequest struct {
	// Identifier of the user
	UserId int64 `json:"user_id"`
	// The description of the message
	Result InputInlineQueryResult `json:"result"`
	// Types of the chats to which the message can be sent
	ChatTypes *TargetChatTypes `json:"chat_types"`
}

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 SavedMessagesTag added in v0.7.2

type SavedMessagesTag struct {

	// The tag
	Tag ReactionType `json:"tag"`
	// Label of the tag; 0-12 characters. Always empty if the tag is returned for a Saved Messages topic
	Label string `json:"label"`
	// Number of times the tag was used; may be 0 if the tag has non-empty label
	Count int32 `json:"count"`
	// contains filtered or unexported fields
}

Represents a tag used in Saved Messages or a Saved Messages topic

func UnmarshalSavedMessagesTag added in v0.7.2

func UnmarshalSavedMessagesTag(data json.RawMessage) (*SavedMessagesTag, error)

func (*SavedMessagesTag) GetClass added in v0.7.2

func (*SavedMessagesTag) GetClass() string

func (*SavedMessagesTag) GetType added in v0.7.2

func (*SavedMessagesTag) GetType() string

func (*SavedMessagesTag) MarshalJSON added in v0.7.2

func (entity *SavedMessagesTag) MarshalJSON() ([]byte, error)

func (*SavedMessagesTag) UnmarshalJSON added in v0.7.2

func (savedMessagesTag *SavedMessagesTag) UnmarshalJSON(data []byte) error

type SavedMessagesTags added in v0.7.2

type SavedMessagesTags struct {

	// List of tags
	Tags []*SavedMessagesTag `json:"tags"`
	// contains filtered or unexported fields
}

Contains a list of tags used in Saved Messages

func UnmarshalSavedMessagesTags added in v0.7.2

func UnmarshalSavedMessagesTags(data json.RawMessage) (*SavedMessagesTags, error)

func (*SavedMessagesTags) GetClass added in v0.7.2

func (*SavedMessagesTags) GetClass() string

func (*SavedMessagesTags) GetType added in v0.7.2

func (*SavedMessagesTags) GetType() string

func (*SavedMessagesTags) MarshalJSON added in v0.7.2

func (entity *SavedMessagesTags) MarshalJSON() ([]byte, error)

type SavedMessagesTopic added in v0.7.2

type SavedMessagesTopic struct {

	// Unique topic identifier
	Id int64 `json:"id"`
	// Type of the topic
	Type SavedMessagesTopicType `json:"type"`
	// True, if the topic is pinned
	IsPinned bool `json:"is_pinned"`
	// A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order
	Order JsonInt64 `json:"order"`
	// Last message in the topic; may be null if none or unknown
	LastMessage *Message `json:"last_message"`
	// A draft of a message in the topic; may be null if none
	DraftMessage *DraftMessage `json:"draft_message"`
	// contains filtered or unexported fields
}

Contains information about a Saved Messages topic

func UnmarshalSavedMessagesTopic added in v0.7.2

func UnmarshalSavedMessagesTopic(data json.RawMessage) (*SavedMessagesTopic, error)

func (*SavedMessagesTopic) GetClass added in v0.7.2

func (*SavedMessagesTopic) GetClass() string

func (*SavedMessagesTopic) GetType added in v0.7.2

func (*SavedMessagesTopic) GetType() string

func (*SavedMessagesTopic) MarshalJSON added in v0.7.2

func (entity *SavedMessagesTopic) MarshalJSON() ([]byte, error)

func (*SavedMessagesTopic) UnmarshalJSON added in v0.7.2

func (savedMessagesTopic *SavedMessagesTopic) UnmarshalJSON(data []byte) error

type SavedMessagesTopicType added in v0.7.2

type SavedMessagesTopicType interface {
	SavedMessagesTopicTypeType() string
}

Describes type of Saved Messages topic

func UnmarshalListOfSavedMessagesTopicType added in v0.7.2

func UnmarshalListOfSavedMessagesTopicType(dataList []json.RawMessage) ([]SavedMessagesTopicType, error)

func UnmarshalSavedMessagesTopicType added in v0.7.2

func UnmarshalSavedMessagesTopicType(data json.RawMessage) (SavedMessagesTopicType, error)

type SavedMessagesTopicTypeAuthorHidden added in v0.7.2

type SavedMessagesTopicTypeAuthorHidden struct {
	// contains filtered or unexported fields
}

Topic containing messages forwarded from a user with hidden privacy

func UnmarshalSavedMessagesTopicTypeAuthorHidden added in v0.7.2

func UnmarshalSavedMessagesTopicTypeAuthorHidden(data json.RawMessage) (*SavedMessagesTopicTypeAuthorHidden, error)

func (*SavedMessagesTopicTypeAuthorHidden) GetClass added in v0.7.2

func (*SavedMessagesTopicTypeAuthorHidden) GetType added in v0.7.2

func (*SavedMessagesTopicTypeAuthorHidden) MarshalJSON added in v0.7.2

func (entity *SavedMessagesTopicTypeAuthorHidden) MarshalJSON() ([]byte, error)

func (*SavedMessagesTopicTypeAuthorHidden) SavedMessagesTopicTypeType added in v0.7.2

func (*SavedMessagesTopicTypeAuthorHidden) SavedMessagesTopicTypeType() string

type SavedMessagesTopicTypeMyNotes added in v0.7.2

type SavedMessagesTopicTypeMyNotes struct {
	// contains filtered or unexported fields
}

Topic containing messages sent by the current user of forwarded from an unknown chat

func UnmarshalSavedMessagesTopicTypeMyNotes added in v0.7.2

func UnmarshalSavedMessagesTopicTypeMyNotes(data json.RawMessage) (*SavedMessagesTopicTypeMyNotes, error)

func (*SavedMessagesTopicTypeMyNotes) GetClass added in v0.7.2

func (*SavedMessagesTopicTypeMyNotes) GetType added in v0.7.2

func (*SavedMessagesTopicTypeMyNotes) MarshalJSON added in v0.7.2

func (entity *SavedMessagesTopicTypeMyNotes) MarshalJSON() ([]byte, error)

func (*SavedMessagesTopicTypeMyNotes) SavedMessagesTopicTypeType added in v0.7.2

func (*SavedMessagesTopicTypeMyNotes) SavedMessagesTopicTypeType() string

type SavedMessagesTopicTypeSavedFromChat added in v0.7.2

type SavedMessagesTopicTypeSavedFromChat struct {

	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
	// contains filtered or unexported fields
}

Topic containing messages forwarded from a specific chat

func UnmarshalSavedMessagesTopicTypeSavedFromChat added in v0.7.2

func UnmarshalSavedMessagesTopicTypeSavedFromChat(data json.RawMessage) (*SavedMessagesTopicTypeSavedFromChat, error)

func (*SavedMessagesTopicTypeSavedFromChat) GetClass added in v0.7.2

func (*SavedMessagesTopicTypeSavedFromChat) GetType added in v0.7.2

func (*SavedMessagesTopicTypeSavedFromChat) MarshalJSON added in v0.7.2

func (entity *SavedMessagesTopicTypeSavedFromChat) MarshalJSON() ([]byte, error)

func (*SavedMessagesTopicTypeSavedFromChat) SavedMessagesTopicTypeType added in v0.7.2

func (*SavedMessagesTopicTypeSavedFromChat) SavedMessagesTopicTypeType() string

type ScopeAutosaveSettings added in v0.7.0

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 v0.7.0

func UnmarshalScopeAutosaveSettings(data json.RawMessage) (*ScopeAutosaveSettings, error)

func (*ScopeAutosaveSettings) GetClass added in v0.7.0

func (*ScopeAutosaveSettings) GetClass() string

func (*ScopeAutosaveSettings) GetType added in v0.7.0

func (*ScopeAutosaveSettings) GetType() string

func (*ScopeAutosaveSettings) MarshalJSON added in v0.7.0

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, story notifications are received only for the first 5 chats from topChatCategoryUsers regardless of the value of mute_stories
	UseDefaultMuteStories bool `json:"use_default_mute_stories"`
	// True, if story notifications are disabled
	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 added in v0.1.0

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 message 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"`
	// If not 0, only messages in the specified Saved Messages topic will be returned; pass 0 to return all messages, or for chats other than Saved Messages
	SavedMessagesTopicId int64 `json:"saved_messages_topic_id"`
}

type SearchChatRecentLocationMessagesRequest

type SearchChatRecentLocationMessagesRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// The maximum number of messages to be returned
	Limit int32 `json:"limit"`
}

type SearchChatsOnServerRequest

type SearchChatsOnServerRequest struct {
	// Query to search for
	Query string `json:"query"`
	// The maximum number of chats to be returned
	Limit int32 `json:"limit"`
}

type SearchChatsRequest

type SearchChatsRequest struct {
	// Query to search for. If the query is empty, returns up to 50 recently found chats
	Query string `json:"query"`
	// The maximum number of chats to be returned
	Limit int32 `json:"limit"`
}

type SearchContactsRequest

type SearchContactsRequest struct {
	// Query to search for; may be empty to return all contacts
	Query string `json:"query"`
	// The maximum number of users to be returned
	Limit int32 `json:"limit"`
}

type SearchEmojisRequest added in v0.1.0

type SearchEmojisRequest struct {
	// Text to search for
	Text string `json:"text"`
	// 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 v0.7.0

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 SearchHashtagsRequest struct {
	// Hashtag prefix to search for
	Prefix string `json:"prefix"`
	// The maximum number of hashtags to be returned
	Limit int32 `json:"limit"`
}

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 added in v0.3.2

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) GetType

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) GetType

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) GetType

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 added in v0.3.0

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 added in v0.3.0

func UnmarshalSearchMessagesFilterFailedToSend(data json.RawMessage) (*SearchMessagesFilterFailedToSend, error)

func (*SearchMessagesFilterFailedToSend) GetClass added in v0.3.0

func (*SearchMessagesFilterFailedToSend) GetType added in v0.3.0

func (*SearchMessagesFilterFailedToSend) MarshalJSON added in v0.3.0

func (entity *SearchMessagesFilterFailedToSend) MarshalJSON() ([]byte, error)

func (*SearchMessagesFilterFailedToSend) SearchMessagesFilterType added in v0.3.0

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) 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) GetType

func (*SearchMessagesFilterPhotoAndVideo) MarshalJSON

func (entity *SearchMessagesFilterPhotoAndVideo) MarshalJSON() ([]byte, error)

func (*SearchMessagesFilterPhotoAndVideo) SearchMessagesFilterType

func (*SearchMessagesFilterPhotoAndVideo) SearchMessagesFilterType() string

type SearchMessagesFilterPinned added in v0.3.0

type SearchMessagesFilterPinned struct {
	// contains filtered or unexported fields
}

Returns only pinned messages

func UnmarshalSearchMessagesFilterPinned added in v0.3.0

func UnmarshalSearchMessagesFilterPinned(data json.RawMessage) (*SearchMessagesFilterPinned, error)

func (*SearchMessagesFilterPinned) GetClass added in v0.3.0

func (*SearchMessagesFilterPinned) GetClass() string

func (*SearchMessagesFilterPinned) GetType added in v0.3.0

func (*SearchMessagesFilterPinned) MarshalJSON added in v0.3.0

func (entity *SearchMessagesFilterPinned) MarshalJSON() ([]byte, error)

func (*SearchMessagesFilterPinned) SearchMessagesFilterType added in v0.3.0

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) GetType

func (*SearchMessagesFilterUnreadMention) MarshalJSON

func (entity *SearchMessagesFilterUnreadMention) MarshalJSON() ([]byte, error)

func (*SearchMessagesFilterUnreadMention) SearchMessagesFilterType

func (*SearchMessagesFilterUnreadMention) SearchMessagesFilterType() string

type SearchMessagesFilterUnreadReaction added in v0.7.0

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 v0.7.0

func UnmarshalSearchMessagesFilterUnreadReaction(data json.RawMessage) (*SearchMessagesFilterUnreadReaction, error)

func (*SearchMessagesFilterUnreadReaction) GetClass added in v0.7.0

func (*SearchMessagesFilterUnreadReaction) GetType added in v0.7.0

func (*SearchMessagesFilterUnreadReaction) MarshalJSON added in v0.7.0

func (entity *SearchMessagesFilterUnreadReaction) MarshalJSON() ([]byte, error)

func (*SearchMessagesFilterUnreadReaction) SearchMessagesFilterType added in v0.7.0

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) GetType

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) GetType

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) GetType

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"`
	// Pass true to search only for messages in channels
	OnlyInChannels bool `json:"only_in_channels"`
	// 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 v0.7.0

type SearchOutgoingDocumentMessagesRequest struct {
	// Query to search for in document file name and message caption
	Query string `json:"query"`
	// The maximum number of messages to be returned; up to 100
	Limit int32 `json:"limit"`
}

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 SearchPublicMessagesByTagRequest added in v0.7.3

type SearchPublicMessagesByTagRequest struct {
	// Hashtag or cashtag to search for
	Tag string `json:"tag"`
	// 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"`
}

type SearchPublicStoriesByLocationRequest added in v0.7.3

type SearchPublicStoriesByLocationRequest struct {
	// Address of the location
	Address *LocationAddress `json:"address"`
	// 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 stories to be returned; up to 100. 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 SearchPublicStoriesByTagRequest added in v0.7.3

type SearchPublicStoriesByTagRequest struct {
	// Identifier of the chat that posted the stories to search for; pass 0 to search stories in all chats
	StorySenderChatId int64 `json:"story_sender_chat_id"`
	// Hashtag or cashtag to search for
	Tag string `json:"tag"`
	// 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 stories to be returned; up to 100. 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 SearchPublicStoriesByVenueRequest added in v0.7.3

type SearchPublicStoriesByVenueRequest struct {
	// Provider of the venue
	VenueProvider string `json:"venue_provider"`
	// Identifier of the venue in the provider database
	VenueId string `json:"venue_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 stories to be returned; up to 100. 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 SearchQuoteRequest added in v0.7.1

type SearchQuoteRequest struct {
	// Text in which to search for the quote
	Text *FormattedText `json:"text"`
	// Quote to search for
	Quote *FormattedText `json:"quote"`
	// Approximate quote position in UTF-16 code units
	QuotePosition int32 `json:"quote_position"`
}

type SearchRecentlyFoundChatsRequest added in v0.7.0

type SearchRecentlyFoundChatsRequest struct {
	// Query to search for
	Query string `json:"query"`
	// The maximum number of chats to be returned
	Limit int32 `json:"limit"`
}

type SearchSavedMessagesRequest added in v0.7.2

type SearchSavedMessagesRequest struct {
	// If not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages
	SavedMessagesTopicId int64 `json:"saved_messages_topic_id"`
	// Tag to search for; pass null to return all suitable messages
	Tag ReactionType `json:"tag"`
	// Query to search for
	Query string `json:"query"`
	// Identifier of the message starting from which messages 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 message 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"`
}

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"`
	// Pass true to ignore local cache of sticker sets and always send a network request
	IgnoreCache bool `json:"ignore_cache"`
}

type SearchStickerSetsRequest

type SearchStickerSetsRequest struct {
	// Type of the sticker sets to return
	StickerType StickerType `json:"sticker_type"`
	// 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 emojis 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 v0.7.0

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 v0.7.0

type SearchUserByPhoneNumberRequest struct {
	// Phone number to search for
	PhoneNumber string `json:"phone_number"`
	// Pass true to get only locally available information without sending network requests
	OnlyLocal bool `json:"only_local"`
}

type SearchUserByTokenRequest added in v0.7.0

type SearchUserByTokenRequest struct {
	// Token to search for
	Token string `json:"token"`
}

type SearchWebAppRequest added in v0.7.0

type SearchWebAppRequest struct {
	// Identifier of the target bot
	BotUserId int64 `json:"bot_user_id"`
	// Short name of the Web App
	WebAppShortName string `json:"web_app_short_name"`
}

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) GetClass

func (*Seconds) GetClass() string

func (*Seconds) GetType

func (*Seconds) GetType() string

func (*Seconds) MarshalJSON

func (entity *Seconds) MarshalJSON() ([]byte, error)

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 added in v0.3.2

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 SellGiftRequest added in v0.7.3

type SellGiftRequest struct {
	// Identifier of the user that sent the gift
	SenderUserId int64 `json:"sender_user_id"`
	// Identifier of the message with the gift in the chat with the user
	MessageId int64 `json:"message_id"`
}

type SendAuthenticationFirebaseSmsRequest added in v0.7.0

type SendAuthenticationFirebaseSmsRequest struct {
	// Play Integrity API or 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 SendBusinessMessageAlbumRequest added in v0.7.2

type SendBusinessMessageAlbumRequest struct {
	// Unique identifier of business connection on behalf of which to send the request
	BusinessConnectionId string `json:"business_connection_id"`
	// Target chat
	ChatId int64 `json:"chat_id"`
	// Information about the message to be replied; pass null if none
	ReplyTo InputMessageReplyTo `json:"reply_to"`
	// Pass true to disable notification for the message
	DisableNotification bool `json:"disable_notification"`
	// Pass true if the content of the message must be protected from forwarding and saving
	ProtectContent bool `json:"protect_content"`
	// Identifier of the effect to apply to the message
	EffectId JsonInt64 `json:"effect_id"`
	// Contents of messages to be sent. At most 10 messages can be added to an album. All messages must have the same value of show_caption_above_media
	InputMessageContents []InputMessageContent `json:"input_message_contents"`
}

type SendBusinessMessageRequest added in v0.7.2

type SendBusinessMessageRequest struct {
	// Unique identifier of business connection on behalf of which to send the request
	BusinessConnectionId string `json:"business_connection_id"`
	// Target chat
	ChatId int64 `json:"chat_id"`
	// Information about the message to be replied; pass null if none
	ReplyTo InputMessageReplyTo `json:"reply_to"`
	// Pass true to disable notification for the message
	DisableNotification bool `json:"disable_notification"`
	// Pass true if the content of the message must be protected from forwarding and saving
	ProtectContent bool `json:"protect_content"`
	// Identifier of the effect to apply to the message
	EffectId JsonInt64 `json:"effect_id"`
	// Markup for replying to the message; pass null if none
	ReplyMarkup ReplyMarkup `json:"reply_markup"`
	// The content of the message to be sent
	InputMessageContent InputMessageContent `json:"input_message_content"`
}

type SendCallDebugInformationRequest

type SendCallDebugInformationRequest struct {
	// Call identifier
	CallId int32 `json:"call_id"`
	// Debug information in application-specific format
	DebugInformation string `json:"debug_information"`
}

type SendCallLogRequest added in v0.7.0

type SendCallLogRequest struct {
	// Call identifier
	CallId int32 `json:"call_id"`
	// Call log file. Only inputFileLocal and inputFileGenerated are supported
	LogFile InputFile `json:"log_file"`
}

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 SendCallSignalingDataRequest added in v0.3.0

type SendCallSignalingDataRequest struct {
	// Call identifier
	CallId int32 `json:"call_id"`
	// The data
	Data []byte `json:"data"`
}

type SendChatActionRequest

type SendChatActionRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// If not 0, the message thread identifier in which the action was performed
	MessageThreadId int64 `json:"message_thread_id"`
	// Unique identifier of business connection on behalf of which to send the request; for bots only
	BusinessConnectionId string `json:"business_connection_id"`
	// The action description; pass null to cancel the currently active action
	Action ChatAction `json:"action"`
}

type SendCustomRequestRequest

type SendCustomRequestRequest struct {
	// The method name
	Method string `json:"method"`
	// JSON-serialized method parameters
	Parameters string `json:"parameters"`
}

type SendEmailAddressVerificationCodeRequest

type SendEmailAddressVerificationCodeRequest struct {
	// Email address
	EmailAddress string `json:"email_address"`
}

type SendGiftRequest added in v0.7.3

type SendGiftRequest struct {
	// Identifier of the gift to send
	GiftId JsonInt64 `json:"gift_id"`
	// Identifier of the user that will receive the gift
	UserId int64 `json:"user_id"`
	// Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed
	Text *FormattedText `json:"text"`
	// Pass true to show the current user as sender and gift text only to the gift receiver; otherwise, everyone will be able to see them
	IsPrivate bool `json:"is_private"`
}

type SendInlineQueryResultMessageRequest

type SendInlineQueryResultMessageRequest struct {
	// Target chat
	ChatId int64 `json:"chat_id"`
	// If not 0, the message thread identifier in which the message will be sent
	MessageThreadId int64 `json:"message_thread_id"`
	// Information about the message or story to be replied; pass null if none
	ReplyTo InputMessageReplyTo `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, the message thread identifier in which the messages will be sent
	MessageThreadId int64 `json:"message_thread_id"`
	// Information about the message or story to be replied; pass null if none
	ReplyTo InputMessageReplyTo `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. All messages must have the same value of show_caption_above_media
	InputMessageContents []InputMessageContent `json:"input_message_contents"`
}

type SendMessageRequest

type SendMessageRequest struct {
	// Target chat
	ChatId int64 `json:"chat_id"`
	// If not 0, the message thread identifier in which the message will be sent
	MessageThreadId int64 `json:"message_thread_id"`
	// Information about the message or story to be replied; pass null if none
	ReplyTo InputMessageReplyTo `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; pass null for a payment in Telegram Stars
	Credentials InputCredentials `json:"credentials"`
	// Chosen by the user amount of tip in the smallest units of the currency
	TipAmount int64 `json:"tip_amount"`
}

type SendPhoneNumberCodeRequest added in v0.7.3

type SendPhoneNumberCodeRequest struct {
	// The phone number, 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 of the request for which the code is sent
	Type PhoneNumberCodeType `json:"type"`
}

type SendPhoneNumberFirebaseSmsRequest added in v0.7.3

type SendPhoneNumberFirebaseSmsRequest struct {
	// Play Integrity API or SafetyNet Attestation API token for the Android application, or secret from push notification for the iOS application
	Token string `json:"token"`
}

type SendQuickReplyShortcutMessagesRequest added in v0.7.2

type SendQuickReplyShortcutMessagesRequest struct {
	// Identifier of the chat to which to send messages. The chat must be a private chat with a regular user
	ChatId int64 `json:"chat_id"`
	// Unique identifier of the quick reply shortcut
	ShortcutId int32 `json:"shortcut_id"`
	// 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"`
}

type SendStoryRequest added in v0.7.0

type SendStoryRequest struct {
	// Identifier of the chat that will post the story. Pass Saved Messages chat identifier when posting a story on behalf of the current user
	ChatId int64 `json:"chat_id"`
	// 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; can have entities only if getOption("can_use_text_entities_in_story_caption")
	Caption *FormattedText `json:"caption"`
	// The privacy settings for the story; ignored for stories sent to supergroup and channel chats
	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"`
	// Full identifier of the original story, which content was used to create the story; pass null if the story isn't repost of another story
	FromStoryFullId *StoryFullId `json:"from_story_full_id"`
	// Pass true to keep the story accessible after expiration
	IsPostedToChatPage bool `json:"is_posted_to_chat_page"`
	// Pass true if the content of the story must be protected from forwarding and screenshotting
	ProtectContent bool `json:"protect_content"`
}

type SendWebAppCustomRequestRequest added in v0.7.0

type SendWebAppCustomRequestRequest struct {
	// Identifier of the bot
	BotUserId int64 `json:"bot_user_id"`
	// The method name
	Method string `json:"method"`
	// JSON-serialized method parameters
	Parameters string `json:"parameters"`
}

type SendWebAppDataRequest added in v0.7.0

type SendWebAppDataRequest struct {
	// Identifier of the target bot
	BotUserId int64 `json:"bot_user_id"`
	// Text of the keyboardButtonTypeWebApp button, which opened the Web App
	ButtonText string `json:"button_text"`
	// The data
	Data string `json:"data"`
}

type SentWebAppMessage added in v0.7.0

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 v0.7.0

func UnmarshalSentWebAppMessage(data json.RawMessage) (*SentWebAppMessage, error)

func (*SentWebAppMessage) GetClass added in v0.7.0

func (*SentWebAppMessage) GetClass() string

func (*SentWebAppMessage) GetType added in v0.7.0

func (*SentWebAppMessage) GetType() string

func (*SentWebAppMessage) MarshalJSON added in v0.7.0

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) GetClass

func (*Session) GetClass() string

func (*Session) GetType

func (*Session) GetType() string

func (*Session) MarshalJSON

func (entity *Session) MarshalJSON() ([]byte, error)

func (*Session) UnmarshalJSON added in v0.7.0

func (session *Session) UnmarshalJSON(data []byte) error

type SessionType added in v0.7.0

type SessionType interface {
	SessionTypeType() string
}

Represents the type of session

func UnmarshalListOfSessionType added in v0.7.0

func UnmarshalListOfSessionType(dataList []json.RawMessage) ([]SessionType, error)

func UnmarshalSessionType added in v0.7.0

func UnmarshalSessionType(data json.RawMessage) (SessionType, error)

type SessionTypeAndroid added in v0.7.0

type SessionTypeAndroid struct {
	// contains filtered or unexported fields
}

The session is running on an Android device

func UnmarshalSessionTypeAndroid added in v0.7.0

func UnmarshalSessionTypeAndroid(data json.RawMessage) (*SessionTypeAndroid, error)

func (*SessionTypeAndroid) GetClass added in v0.7.0

func (*SessionTypeAndroid) GetClass() string

func (*SessionTypeAndroid) GetType added in v0.7.0

func (*SessionTypeAndroid) GetType() string

func (*SessionTypeAndroid) MarshalJSON added in v0.7.0

func (entity *SessionTypeAndroid) MarshalJSON() ([]byte, error)

func (*SessionTypeAndroid) SessionTypeType added in v0.7.0

func (*SessionTypeAndroid) SessionTypeType() string

type SessionTypeApple added in v0.7.0

type SessionTypeApple struct {
	// contains filtered or unexported fields
}

The session is running on a generic Apple device

func UnmarshalSessionTypeApple added in v0.7.0

func UnmarshalSessionTypeApple(data json.RawMessage) (*SessionTypeApple, error)

func (*SessionTypeApple) GetClass added in v0.7.0

func (*SessionTypeApple) GetClass() string

func (*SessionTypeApple) GetType added in v0.7.0

func (*SessionTypeApple) GetType() string

func (*SessionTypeApple) MarshalJSON added in v0.7.0

func (entity *SessionTypeApple) MarshalJSON() ([]byte, error)

func (*SessionTypeApple) SessionTypeType added in v0.7.0

func (*SessionTypeApple) SessionTypeType() string

type SessionTypeBrave added in v0.7.0

type SessionTypeBrave struct {
	// contains filtered or unexported fields
}

The session is running on the Brave browser

func UnmarshalSessionTypeBrave added in v0.7.0

func UnmarshalSessionTypeBrave(data json.RawMessage) (*SessionTypeBrave, error)

func (*SessionTypeBrave) GetClass added in v0.7.0

func (*SessionTypeBrave) GetClass() string

func (*SessionTypeBrave) GetType added in v0.7.0

func (*SessionTypeBrave) GetType() string

func (*SessionTypeBrave) MarshalJSON added in v0.7.0

func (entity *SessionTypeBrave) MarshalJSON() ([]byte, error)

func (*SessionTypeBrave) SessionTypeType added in v0.7.0

func (*SessionTypeBrave) SessionTypeType() string

type SessionTypeChrome added in v0.7.0

type SessionTypeChrome struct {
	// contains filtered or unexported fields
}

The session is running on the Chrome browser

func UnmarshalSessionTypeChrome added in v0.7.0

func UnmarshalSessionTypeChrome(data json.RawMessage) (*SessionTypeChrome, error)

func (*SessionTypeChrome) GetClass added in v0.7.0

func (*SessionTypeChrome) GetClass() string

func (*SessionTypeChrome) GetType added in v0.7.0

func (*SessionTypeChrome) GetType() string

func (*SessionTypeChrome) MarshalJSON added in v0.7.0

func (entity *SessionTypeChrome) MarshalJSON() ([]byte, error)

func (*SessionTypeChrome) SessionTypeType added in v0.7.0

func (*SessionTypeChrome) SessionTypeType() string

type SessionTypeEdge added in v0.7.0

type SessionTypeEdge struct {
	// contains filtered or unexported fields
}

The session is running on the Edge browser

func UnmarshalSessionTypeEdge added in v0.7.0

func UnmarshalSessionTypeEdge(data json.RawMessage) (*SessionTypeEdge, error)

func (*SessionTypeEdge) GetClass added in v0.7.0

func (*SessionTypeEdge) GetClass() string

func (*SessionTypeEdge) GetType added in v0.7.0

func (*SessionTypeEdge) GetType() string

func (*SessionTypeEdge) MarshalJSON added in v0.7.0

func (entity *SessionTypeEdge) MarshalJSON() ([]byte, error)

func (*SessionTypeEdge) SessionTypeType added in v0.7.0

func (*SessionTypeEdge) SessionTypeType() string

type SessionTypeFirefox added in v0.7.0

type SessionTypeFirefox struct {
	// contains filtered or unexported fields
}

The session is running on the Firefox browser

func UnmarshalSessionTypeFirefox added in v0.7.0

func UnmarshalSessionTypeFirefox(data json.RawMessage) (*SessionTypeFirefox, error)

func (*SessionTypeFirefox) GetClass added in v0.7.0

func (*SessionTypeFirefox) GetClass() string

func (*SessionTypeFirefox) GetType added in v0.7.0

func (*SessionTypeFirefox) GetType() string

func (*SessionTypeFirefox) MarshalJSON added in v0.7.0

func (entity *SessionTypeFirefox) MarshalJSON() ([]byte, error)

func (*SessionTypeFirefox) SessionTypeType added in v0.7.0

func (*SessionTypeFirefox) SessionTypeType() string

type SessionTypeIpad added in v0.7.0

type SessionTypeIpad struct {
	// contains filtered or unexported fields
}

The session is running on an iPad device

func UnmarshalSessionTypeIpad added in v0.7.0

func UnmarshalSessionTypeIpad(data json.RawMessage) (*SessionTypeIpad, error)

func (*SessionTypeIpad) GetClass added in v0.7.0

func (*SessionTypeIpad) GetClass() string

func (*SessionTypeIpad) GetType added in v0.7.0

func (*SessionTypeIpad) GetType() string

func (*SessionTypeIpad) MarshalJSON added in v0.7.0

func (entity *SessionTypeIpad) MarshalJSON() ([]byte, error)

func (*SessionTypeIpad) SessionTypeType added in v0.7.0

func (*SessionTypeIpad) SessionTypeType() string

type SessionTypeIphone added in v0.7.0

type SessionTypeIphone struct {
	// contains filtered or unexported fields
}

The session is running on an iPhone device

func UnmarshalSessionTypeIphone added in v0.7.0

func UnmarshalSessionTypeIphone(data json.RawMessage) (*SessionTypeIphone, error)

func (*SessionTypeIphone) GetClass added in v0.7.0

func (*SessionTypeIphone) GetClass() string

func (*SessionTypeIphone) GetType added in v0.7.0

func (*SessionTypeIphone) GetType() string

func (*SessionTypeIphone) MarshalJSON added in v0.7.0

func (entity *SessionTypeIphone) MarshalJSON() ([]byte, error)

func (*SessionTypeIphone) SessionTypeType added in v0.7.0

func (*SessionTypeIphone) SessionTypeType() string

type SessionTypeLinux added in v0.7.0

type SessionTypeLinux struct {
	// contains filtered or unexported fields
}

The session is running on a Linux device

func UnmarshalSessionTypeLinux added in v0.7.0

func UnmarshalSessionTypeLinux(data json.RawMessage) (*SessionTypeLinux, error)

func (*SessionTypeLinux) GetClass added in v0.7.0

func (*SessionTypeLinux) GetClass() string

func (*SessionTypeLinux) GetType added in v0.7.0

func (*SessionTypeLinux) GetType() string

func (*SessionTypeLinux) MarshalJSON added in v0.7.0

func (entity *SessionTypeLinux) MarshalJSON() ([]byte, error)

func (*SessionTypeLinux) SessionTypeType added in v0.7.0

func (*SessionTypeLinux) SessionTypeType() string

type SessionTypeMac added in v0.7.0

type SessionTypeMac struct {
	// contains filtered or unexported fields
}

The session is running on a Mac device

func UnmarshalSessionTypeMac added in v0.7.0

func UnmarshalSessionTypeMac(data json.RawMessage) (*SessionTypeMac, error)

func (*SessionTypeMac) GetClass added in v0.7.0

func (*SessionTypeMac) GetClass() string

func (*SessionTypeMac) GetType added in v0.7.0

func (*SessionTypeMac) GetType() string

func (*SessionTypeMac) MarshalJSON added in v0.7.0

func (entity *SessionTypeMac) MarshalJSON() ([]byte, error)

func (*SessionTypeMac) SessionTypeType added in v0.7.0

func (*SessionTypeMac) SessionTypeType() string

type SessionTypeOpera added in v0.7.0

type SessionTypeOpera struct {
	// contains filtered or unexported fields
}

The session is running on the Opera browser

func UnmarshalSessionTypeOpera added in v0.7.0

func UnmarshalSessionTypeOpera(data json.RawMessage) (*SessionTypeOpera, error)

func (*SessionTypeOpera) GetClass added in v0.7.0

func (*SessionTypeOpera) GetClass() string

func (*SessionTypeOpera) GetType added in v0.7.0

func (*SessionTypeOpera) GetType() string

func (*SessionTypeOpera) MarshalJSON added in v0.7.0

func (entity *SessionTypeOpera) MarshalJSON() ([]byte, error)

func (*SessionTypeOpera) SessionTypeType added in v0.7.0

func (*SessionTypeOpera) SessionTypeType() string

type SessionTypeSafari added in v0.7.0

type SessionTypeSafari struct {
	// contains filtered or unexported fields
}

The session is running on the Safari browser

func UnmarshalSessionTypeSafari added in v0.7.0

func UnmarshalSessionTypeSafari(data json.RawMessage) (*SessionTypeSafari, error)

func (*SessionTypeSafari) GetClass added in v0.7.0

func (*SessionTypeSafari) GetClass() string

func (*SessionTypeSafari) GetType added in v0.7.0

func (*SessionTypeSafari) GetType() string

func (*SessionTypeSafari) MarshalJSON added in v0.7.0

func (entity *SessionTypeSafari) MarshalJSON() ([]byte, error)

func (*SessionTypeSafari) SessionTypeType added in v0.7.0

func (*SessionTypeSafari) SessionTypeType() string

type SessionTypeUbuntu added in v0.7.0

type SessionTypeUbuntu struct {
	// contains filtered or unexported fields
}

The session is running on an Ubuntu device

func UnmarshalSessionTypeUbuntu added in v0.7.0

func UnmarshalSessionTypeUbuntu(data json.RawMessage) (*SessionTypeUbuntu, error)

func (*SessionTypeUbuntu) GetClass added in v0.7.0

func (*SessionTypeUbuntu) GetClass() string

func (*SessionTypeUbuntu) GetType added in v0.7.0

func (*SessionTypeUbuntu) GetType() string

func (*SessionTypeUbuntu) MarshalJSON added in v0.7.0

func (entity *SessionTypeUbuntu) MarshalJSON() ([]byte, error)

func (*SessionTypeUbuntu) SessionTypeType added in v0.7.0

func (*SessionTypeUbuntu) SessionTypeType() string

type SessionTypeUnknown added in v0.7.0

type SessionTypeUnknown struct {
	// contains filtered or unexported fields
}

The session is running on an unknown type of device

func UnmarshalSessionTypeUnknown added in v0.7.0

func UnmarshalSessionTypeUnknown(data json.RawMessage) (*SessionTypeUnknown, error)

func (*SessionTypeUnknown) GetClass added in v0.7.0

func (*SessionTypeUnknown) GetClass() string

func (*SessionTypeUnknown) GetType added in v0.7.0

func (*SessionTypeUnknown) GetType() string

func (*SessionTypeUnknown) MarshalJSON added in v0.7.0

func (entity *SessionTypeUnknown) MarshalJSON() ([]byte, error)

func (*SessionTypeUnknown) SessionTypeType added in v0.7.0

func (*SessionTypeUnknown) SessionTypeType() string

type SessionTypeVivaldi added in v0.7.0

type SessionTypeVivaldi struct {
	// contains filtered or unexported fields
}

The session is running on the Vivaldi browser

func UnmarshalSessionTypeVivaldi added in v0.7.0

func UnmarshalSessionTypeVivaldi(data json.RawMessage) (*SessionTypeVivaldi, error)

func (*SessionTypeVivaldi) GetClass added in v0.7.0

func (*SessionTypeVivaldi) GetClass() string

func (*SessionTypeVivaldi) GetType added in v0.7.0

func (*SessionTypeVivaldi) GetType() string

func (*SessionTypeVivaldi) MarshalJSON added in v0.7.0

func (entity *SessionTypeVivaldi) MarshalJSON() ([]byte, error)

func (*SessionTypeVivaldi) SessionTypeType added in v0.7.0

func (*SessionTypeVivaldi) SessionTypeType() string

type SessionTypeWindows added in v0.7.0

type SessionTypeWindows struct {
	// contains filtered or unexported fields
}

The session is running on a Windows device

func UnmarshalSessionTypeWindows added in v0.7.0

func UnmarshalSessionTypeWindows(data json.RawMessage) (*SessionTypeWindows, error)

func (*SessionTypeWindows) GetClass added in v0.7.0

func (*SessionTypeWindows) GetClass() string

func (*SessionTypeWindows) GetType added in v0.7.0

func (*SessionTypeWindows) GetType() string

func (*SessionTypeWindows) MarshalJSON added in v0.7.0

func (entity *SessionTypeWindows) MarshalJSON() ([]byte, error)

func (*SessionTypeWindows) SessionTypeType added in v0.7.0

func (*SessionTypeWindows) SessionTypeType() string

type SessionTypeXbox added in v0.7.0

type SessionTypeXbox struct {
	// contains filtered or unexported fields
}

The session is running on an Xbox console

func UnmarshalSessionTypeXbox added in v0.7.0

func UnmarshalSessionTypeXbox(data json.RawMessage) (*SessionTypeXbox, error)

func (*SessionTypeXbox) GetClass added in v0.7.0

func (*SessionTypeXbox) GetClass() string

func (*SessionTypeXbox) GetType added in v0.7.0

func (*SessionTypeXbox) GetType() string

func (*SessionTypeXbox) MarshalJSON added in v0.7.0

func (entity *SessionTypeXbox) MarshalJSON() ([]byte, error)

func (*SessionTypeXbox) SessionTypeType added in v0.7.0

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) GetClass

func (*Sessions) GetClass() string

func (*Sessions) GetType

func (*Sessions) GetType() string

func (*Sessions) MarshalJSON

func (entity *Sessions) MarshalJSON() ([]byte, error)

type SetAccentColorRequest added in v0.7.1

type SetAccentColorRequest struct {
	// Identifier of the accent color to use
	AccentColorId int32 `json:"accent_color_id"`
	// Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none
	BackgroundCustomEmojiId JsonInt64 `json:"background_custom_emoji_id"`
}

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 SetApplicationVerificationTokenRequest added in v0.7.3

type SetApplicationVerificationTokenRequest struct {
	// Unique identifier for the verification process as received from updateApplicationVerificationRequired
	VerificationId int64 `json:"verification_id"`
	// Play Integrity API token for the Android application, or secret from push notification for the iOS application; pass an empty string to abort verification and receive error VERIFICATION_FAILED for the request
	Token string `json:"token"`
}

type SetArchiveChatListSettingsRequest added in v0.7.0

type SetArchiveChatListSettingsRequest struct {
	// New settings
	Settings *ArchiveChatListSettings `json:"settings"`
}

type SetAuthenticationEmailAddressRequest added in v0.7.0

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 added in v0.1.0

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 v0.7.0

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 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 SetBirthdateRequest added in v0.7.2

type SetBirthdateRequest struct {
	// The new value of the current user's birthdate; pass null to remove the birthdate
	Birthdate *Birthdate `json:"birthdate"`
}

type SetBotInfoDescriptionRequest added in v0.7.0

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 v0.7.0

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 v0.7.0

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 v0.7.0

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 SetBotUpdatesStatusRequest

type SetBotUpdatesStatusRequest struct {
	// The number of pending updates
	PendingUpdateCount int32 `json:"pending_update_count"`
	// The last error message
	ErrorMessage string `json:"error_message"`
}

type SetBusinessAwayMessageSettingsRequest added in v0.7.2

type SetBusinessAwayMessageSettingsRequest struct {
	// The new settings for the away message of the business; pass null to disable the away message
	AwayMessageSettings *BusinessAwayMessageSettings `json:"away_message_settings"`
}

type SetBusinessConnectedBotRequest added in v0.7.2

type SetBusinessConnectedBotRequest struct {
	// Connection settings for the bot
	Bot *BusinessConnectedBot `json:"bot"`
}

type SetBusinessGreetingMessageSettingsRequest added in v0.7.2

type SetBusinessGreetingMessageSettingsRequest struct {
	// The new settings for the greeting message of the business; pass null to disable the greeting message
	GreetingMessageSettings *BusinessGreetingMessageSettings `json:"greeting_message_settings"`
}

type SetBusinessLocationRequest added in v0.7.2

type SetBusinessLocationRequest struct {
	// The new location of the business; pass null to remove the location
	Location *BusinessLocation `json:"location"`
}

type SetBusinessMessageIsPinnedRequest added in v0.7.3

type SetBusinessMessageIsPinnedRequest struct {
	// Unique identifier of business connection on behalf of which the message was sent
	BusinessConnectionId string `json:"business_connection_id"`
	// The chat the message belongs to
	ChatId int64 `json:"chat_id"`
	// Identifier of the message
	MessageId int64 `json:"message_id"`
	// Pass true to pin the message, pass false to unpin it
	IsPinned bool `json:"is_pinned"`
}

type SetBusinessOpeningHoursRequest added in v0.7.2

type SetBusinessOpeningHoursRequest struct {
	// The new opening hours of the business; pass null to remove the opening hours; up to 28 time intervals can be specified
	OpeningHours *BusinessOpeningHours `json:"opening_hours"`
}

type SetBusinessStartPageRequest added in v0.7.3

type SetBusinessStartPageRequest struct {
	// The new start page of the business; pass null to remove custom start page
	StartPage *InputBusinessStartPage `json:"start_page"`
}

type SetChatAccentColorRequest added in v0.7.1

type SetChatAccentColorRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Identifier of the accent color to use. The chat must have at least accentColor.min_channel_chat_boost_level boost level to pass the corresponding color
	AccentColorId int32 `json:"accent_color_id"`
	// Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none. Use chatBoostLevelFeatures.can_set_background_custom_emoji to check whether a custom emoji can be set
	BackgroundCustomEmojiId JsonInt64 `json:"background_custom_emoji_id"`
}

type SetChatActiveStoriesListRequest added in v0.7.0

type SetChatActiveStoriesListRequest struct {
	// Identifier of the chat that posted stories
	ChatId int64 `json:"chat_id"`
	// New list for active stories posted by the chat
	StoryList StoryList `json:"story_list"`
}

type SetChatAvailableReactionsRequest added in v0.7.0

type SetChatAvailableReactionsRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
	// Reactions available in the chat. All explicitly specified emoji reactions must be active. In channel chats up to the chat's boost level custom emoji reactions can be explicitly specified
	AvailableReactions ChatAvailableReactions `json:"available_reactions"`
}

type SetChatBackgroundRequest added in v0.7.0

type SetChatBackgroundRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// The input background to use; pass null to create a new filled or chat theme background
	Background InputBackground `json:"background"`
	// Background type; pass null to use default background type for the chosen background; backgroundTypeChatTheme isn't supported for private and secret chats. Use chatBoostLevelFeatures.chat_theme_background_count and chatBoostLevelFeatures.can_set_custom_background to check whether the background type can be set in the boosted chat
	Type BackgroundType `json:"type"`
	// Dimming of the background in dark themes, as a percentage; 0-100. Applied only to Wallpaper and Fill types of background
	DarkThemeDimming int32 `json:"dark_theme_dimming"`
	// Pass true to set background only for self; pass false to set background for all chat users. Always false for backgrounds set in boosted chats. Background can be set for both users only by Telegram Premium users and if set background isn't of the type inputBackgroundPrevious
	OnlyForSelf bool `json:"only_for_self"`
}

type SetChatClientDataRequest

type SetChatClientDataRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// New value of client_data
	ClientData string `json:"client_data"`
}

type SetChatDescriptionRequest added in v0.1.0

type SetChatDescriptionRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
	// New chat description; 0-255 characters
	Description string `json:"description"`
}

type SetChatDiscussionGroupRequest added in v0.2.0

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 member right 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, the message thread identifier in which the draft was changed
	MessageThreadId int64 `json:"message_thread_id"`
	// New draft message; pass null to remove the draft. All files in draft message content must be of the type inputFileLocal. Media thumbnails and captions are ignored
	DraftMessage *DraftMessage `json:"draft_message"`
}

type SetChatEmojiStatusRequest added in v0.7.2

type SetChatEmojiStatusRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// New emoji status; pass null to remove emoji status
	EmojiStatus *EmojiStatus `json:"emoji_status"`
}

type SetChatLocationRequest added in v0.2.0

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 v0.7.0

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 added in v0.5.0

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 added in v0.1.0

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 SetChatPinnedStoriesRequest added in v0.7.3

type SetChatPinnedStoriesRequest struct {
	// Identifier of the chat that posted the stories
	ChatId int64 `json:"chat_id"`
	// New list of pinned stories. All stories must be posted to the chat page first. There can be up to getOption("pinned_story_count_max") pinned stories on a chat page
	StoryIds []int32 `json:"story_ids"`
}

type SetChatProfileAccentColorRequest added in v0.7.2

type SetChatProfileAccentColorRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Identifier of the accent color to use for profile; pass -1 if none. The chat must have at least profileAccentColor.min_supergroup_chat_boost_level for supergroups or profileAccentColor.min_channel_chat_boost_level for channels boost level to pass the corresponding color
	ProfileAccentColorId int32 `json:"profile_accent_color_id"`
	// Identifier of a custom emoji to be shown on the chat's profile photo background; 0 if none. Use chatBoostLevelFeatures.can_set_profile_background_custom_emoji to check whether a custom emoji can be set
	ProfileBackgroundCustomEmojiId JsonInt64 `json:"profile_background_custom_emoji_id"`
}

type SetChatSlowModeDelayRequest added in v0.2.0

type SetChatSlowModeDelayRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// New slow mode delay for the chat, in seconds; must be one of 0, 10, 30, 60, 300, 900, 3600
	SlowModeDelay int32 `json:"slow_mode_delay"`
}

type SetChatThemeRequest added in v0.5.0

type SetChatThemeRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Name of the new chat theme; pass an empty string to return the default theme
	ThemeName string `json:"theme_name"`
}

type SetChatTitleRequest

type SetChatTitleRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// New title of the chat; 1-128 characters
	Title string `json:"title"`
}

type SetCloseFriendsRequest added in v0.7.0

type SetCloseFriendsRequest struct {
	// User identifiers of close friends; the users must be contacts of the current user
	UserIds []int64 `json:"user_ids"`
}

type SetCommandsRequest added in v0.3.0

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 v0.7.0

type SetCustomEmojiStickerSetThumbnailRequest struct {
	// Sticker set name. The sticker set must be owned by the current user
	Name string `json:"name"`
	// Identifier of the custom emoji from the sticker set, which will be set as sticker set thumbnail; pass 0 to remove the sticker set thumbnail
	CustomEmojiId JsonInt64 `json:"custom_emoji_id"`
}

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 SetDefaultBackgroundRequest added in v0.7.2

type SetDefaultBackgroundRequest struct {
	// The input background to use; pass null to create a new filled background
	Background InputBackground `json:"background"`
	// Background type; pass null to use the default type of the remote background; backgroundTypeChatTheme isn't supported
	Type BackgroundType `json:"type"`
	// Pass true if the background is set for a dark theme
	ForDarkTheme bool `json:"for_dark_theme"`
}

type SetDefaultChannelAdministratorRightsRequest added in v0.7.0

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 v0.7.0

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 v0.7.0

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 v0.7.0

type SetDefaultReactionTypeRequest struct {
	// New type of the default reaction. The paid reaction can't be set as default
	ReactionType ReactionType `json:"reaction_type"`
}

type SetEmojiStatusRequest added in v0.7.0

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 v0.7.0

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 added in v0.5.0

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 added in v0.5.0

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 SetGroupCallTitleRequest added in v0.5.0

type SetGroupCallTitleRequest struct {
	// Group call identifier
	GroupCallId int32 `json:"group_call_id"`
	// New group call title; 1-64 characters
	Title string `json:"title"`
}

type SetInactiveSessionTtlRequest added in v0.5.0

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 SetLogStreamRequest added in v0.0.13

type SetLogStreamRequest struct {
	// New log stream
	LogStream LogStream `json:"log_stream"`
}

type SetLogTagVerbosityLevelRequest added in v0.0.13

type SetLogTagVerbosityLevelRequest struct {
	// Logging tag to change verbosity level
	Tag string `json:"tag"`
	// New verbosity level; 1-1024
	NewVerbosityLevel int32 `json:"new_verbosity_level"`
}

type SetLogVerbosityLevelRequest added in v0.0.13

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 v0.7.0

type SetLoginEmailAddressRequest struct {
	// New login email address
	NewLoginEmailAddress string `json:"new_login_email_address"`
}

type SetMenuButtonRequest added in v0.7.0

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 SetMessageFactCheckRequest added in v0.7.3

type SetMessageFactCheckRequest struct {
	// The channel chat the message belongs to
	ChatId int64 `json:"chat_id"`
	// Identifier of the message
	MessageId int64 `json:"message_id"`
	// New text of the fact-check; 0-getOption("fact_check_length_max") characters; pass null to remove it. Only Bold, Italic, and TextUrl entities with https://t.me/ links are supported
	Text *FormattedText `json:"text"`
}

type SetMessageReactionsRequest added in v0.7.2

type SetMessageReactionsRequest struct {
	// Identifier of the chat to which the message belongs
	ChatId int64 `json:"chat_id"`
	// Identifier of the message
	MessageId int64 `json:"message_id"`
	// Types of the reaction to set; pass an empty list to remove the reactions
	ReactionTypes []ReactionType `json:"reaction_types"`
	// Pass true if the reactions are added with a big animation
	IsBig bool `json:"is_big"`
}

type SetMessageSenderBlockListRequest added in v0.7.0

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 SetNameRequest struct {
	// The new value of the first name for the current user; 1-64 characters
	FirstName string `json:"first_name"`
	// The new value of the optional last name for the current user; 0-64 characters
	LastName string `json:"last_name"`
}

type SetNetworkTypeRequest

type SetNetworkTypeRequest struct {
	// The new network type; pass null to set network type to networkTypeOther
	Type NetworkType `json:"type"`
}

type SetNewChatPrivacySettingsRequest added in v0.7.2

type SetNewChatPrivacySettingsRequest struct {
	// New settings
	Settings *NewChatPrivacySettings `json:"settings"`
}

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 SetPersonalChatRequest added in v0.7.2

type SetPersonalChatRequest struct {
	// Identifier of the new personal chat; pass 0 to remove the chat. Use getSuitablePersonalChats to get suitable chats
	ChatId int64 `json:"chat_id"`
}

type SetPinnedChatsRequest

type SetPinnedChatsRequest struct {
	// Chat list in which to change the order of pinned chats
	ChatList ChatList `json:"chat_list"`
	// The new list of pinned chats
	ChatIds []int64 `json:"chat_ids"`
}

type SetPinnedForumTopicsRequest added in v0.7.0

type SetPinnedForumTopicsRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// The new list of pinned forum topics
	MessageThreadIds []int64 `json:"message_thread_ids"`
}

type SetPinnedSavedMessagesTopicsRequest added in v0.7.2

type SetPinnedSavedMessagesTopicsRequest struct {
	// Identifiers of the new pinned Saved Messages topics
	SavedMessagesTopicIds []int64 `json:"saved_messages_topic_ids"`
}

type SetPollAnswerRequest added in v0.0.13

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 SetProfileAccentColorRequest added in v0.7.1

type SetProfileAccentColorRequest struct {
	// Identifier of the accent color to use for profile; pass -1 if none
	ProfileAccentColorId int32 `json:"profile_accent_color_id"`
	// Identifier of a custom emoji to be shown on the user's profile photo background; 0 if none
	ProfileBackgroundCustomEmojiId JsonInt64 `json:"profile_background_custom_emoji_id"`
}

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 SetQuickReplyShortcutNameRequest added in v0.7.2

type SetQuickReplyShortcutNameRequest struct {
	// Unique identifier of the quick reply shortcut
	ShortcutId int32 `json:"shortcut_id"`
	// New name for the shortcut. Use checkQuickReplyShortcutName to check its validness
	Name string `json:"name"`
}

type SetReactionNotificationSettingsRequest added in v0.7.3

type SetReactionNotificationSettingsRequest struct {
	// The new notification settings for reactions
	NotificationSettings *ReactionNotificationSettings `json:"notification_settings"`
}

type SetReadDatePrivacySettingsRequest added in v0.7.2

type SetReadDatePrivacySettingsRequest struct {
	// New settings
	Settings *ReadDatePrivacySettings `json:"settings"`
}

type SetRecoveryEmailAddressRequest

type SetRecoveryEmailAddressRequest struct {
	// The 2-step verification password of the current user
	Password string `json:"password"`
	// New recovery email address
	NewRecoveryEmailAddress string `json:"new_recovery_email_address"`
}

type SetSavedMessagesTagLabelRequest added in v0.7.2

type SetSavedMessagesTagLabelRequest struct {
	// The tag which label will be changed
	Tag ReactionType `json:"tag"`
	// New label for the tag; 0-12 characters
	Label string `json:"label"`
}

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 v0.7.0

type SetStickerEmojisRequest struct {
	// Sticker
	Sticker InputFile `json:"sticker"`
	// New string with 1-20 emoji corresponding to the sticker
	Emojis string `json:"emojis"`
}

type SetStickerKeywordsRequest added in v0.7.0

type SetStickerKeywordsRequest struct {
	// Sticker
	Sticker InputFile `json:"sticker"`
	// 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"`
}

type SetStickerMaskPositionRequest added in v0.7.0

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 SetStickerPositionInSetRequest

type SetStickerPositionInSetRequest struct {
	// Sticker
	Sticker InputFile `json:"sticker"`
	// New position of the sticker in the set, 0-based
	Position int32 `json:"position"`
}

type SetStickerSetThumbnailRequest added in v0.3.0

type SetStickerSetThumbnailRequest struct {
	// Sticker set owner; ignored for regular users
	UserId int64 `json:"user_id"`
	// Sticker set name. The sticker set must be owned by the current user
	Name string `json:"name"`
	// Thumbnail to set; pass null to remove the sticker set thumbnail
	Thumbnail InputFile `json:"thumbnail"`
	// Format of the thumbnail; pass null if thumbnail is removed
	Format StickerFormat `json:"format"`
}

type SetStickerSetTitleRequest added in v0.7.0

type SetStickerSetTitleRequest struct {
	// Sticker set name. The sticker set must be owned by the current user
	Name string `json:"name"`
	// New sticker set title
	Title string `json:"title"`
}

type SetStoryPrivacySettingsRequest added in v0.7.0

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 v0.7.0

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. Custom emoji reactions can be used only by Telegram Premium users. Paid reactions can't be set
	ReactionType ReactionType `json:"reaction_type"`
	// Pass true if the reaction needs to be added to recent reactions
	UpdateRecentReactions bool `json:"update_recent_reactions"`
}

type SetSupergroupCustomEmojiStickerSetRequest added in v0.7.2

type SetSupergroupCustomEmojiStickerSetRequest struct {
	// Identifier of the supergroup
	SupergroupId int64 `json:"supergroup_id"`
	// New value of the custom emoji sticker set identifier for the supergroup. Use 0 to remove the custom emoji sticker set in the supergroup
	CustomEmojiStickerSetId JsonInt64 `json:"custom_emoji_sticker_set_id"`
}

type SetSupergroupStickerSetRequest

type SetSupergroupStickerSetRequest struct {
	// Identifier of the supergroup
	SupergroupId int64 `json:"supergroup_id"`
	// New value of the supergroup sticker set identifier. Use 0 to remove the supergroup sticker set
	StickerSetId JsonInt64 `json:"sticker_set_id"`
}

type SetSupergroupUnrestrictBoostCountRequest added in v0.7.2

type SetSupergroupUnrestrictBoostCountRequest struct {
	// Identifier of the supergroup
	SupergroupId int64 `json:"supergroup_id"`
	// New value of the unrestrict_boost_count supergroup setting; 0-8. Use 0 to remove the setting
	UnrestrictBoostCount int32 `json:"unrestrict_boost_count"`
}

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"`
}

type SetUserEmojiStatusRequest added in v0.7.4

type SetUserEmojiStatusRequest struct {
	// Identifier of the user
	UserId int64 `json:"user_id"`
	// New emoji status; pass null to switch to the default badge
	EmojiStatus *EmojiStatus `json:"emoji_status"`
}

type SetUserPersonalProfilePhotoRequest added in v0.7.0

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 v0.7.0

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 added in v0.5.0

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 v0.7.0

type ShareChatWithBotRequest struct {
	// Identifier of the chat with the bot
	ChatId int64 `json:"chat_id"`
	// Identifier of the message with the button
	MessageId int64 `json:"message_id"`
	// Identifier of the button
	ButtonId int32 `json:"button_id"`
	// Identifier of the shared chat
	SharedChatId int64 `json:"shared_chat_id"`
	// Pass true to check that the chat can be shared by the button instead of actually sharing it. Doesn't check bot_is_member and bot_administrator_rights restrictions. If the bot must be a member, then all chats from getGroupsInCommon and all chats, where the user can add the bot, are suitable. In the latter case the bot will be automatically added to the chat. If the bot must be an administrator, then all chats, where the bot already has requested rights or can be added to administrators by the user, are suitable. In the latter case the bot will be automatically granted requested rights
	OnlyCheck bool `json:"only_check"`
}

type SharePhoneNumberRequest added in v0.2.0

type SharePhoneNumberRequest struct {
	// Identifier of the user with whom to share the phone number. The user must be a mutual contact
	UserId int64 `json:"user_id"`
}

type ShareUsersWithBotRequest added in v0.7.2

type ShareUsersWithBotRequest struct {
	// Identifier of the chat with the bot
	ChatId int64 `json:"chat_id"`
	// Identifier of the message with the button
	MessageId int64 `json:"message_id"`
	// Identifier of the button
	ButtonId int32 `json:"button_id"`
	// Identifiers of the shared users
	SharedUserIds []int64 `json:"shared_user_ids"`
	// Pass true to check that the users can be shared by the button instead of actually sharing them
	OnlyCheck bool `json:"only_check"`
}

type SharedChat added in v0.7.2

type SharedChat struct {

	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Title of the chat; for bots only
	Title string `json:"title"`
	// Username of the chat; for bots only
	Username string `json:"username"`
	// Photo of the chat; for bots only; may be null
	Photo *Photo `json:"photo"`
	// contains filtered or unexported fields
}

Contains information about a chat shared with a bot

func UnmarshalSharedChat added in v0.7.2

func UnmarshalSharedChat(data json.RawMessage) (*SharedChat, error)

func (*SharedChat) GetClass added in v0.7.2

func (*SharedChat) GetClass() string

func (*SharedChat) GetType added in v0.7.2

func (*SharedChat) GetType() string

func (*SharedChat) MarshalJSON added in v0.7.2

func (entity *SharedChat) MarshalJSON() ([]byte, error)

type SharedUser added in v0.7.2

type SharedUser struct {

	// User identifier
	UserId int64 `json:"user_id"`
	// First name of the user; for bots only
	FirstName string `json:"first_name"`
	// Last name of the user; for bots only
	LastName string `json:"last_name"`
	// Username of the user; for bots only
	Username string `json:"username"`
	// Profile photo of the user; for bots only; may be null
	Photo *Photo `json:"photo"`
	// contains filtered or unexported fields
}

Contains information about a user shared with a bot

func UnmarshalSharedUser added in v0.7.2

func UnmarshalSharedUser(data json.RawMessage) (*SharedUser, error)

func (*SharedUser) GetClass added in v0.7.2

func (*SharedUser) GetClass() string

func (*SharedUser) GetType added in v0.7.2

func (*SharedUser) GetType() string

func (*SharedUser) MarshalJSON added in v0.7.2

func (entity *SharedUser) MarshalJSON() ([]byte, error)

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 v0.7.0

type SpeechRecognitionResult interface {
	SpeechRecognitionResultType() string
}

Describes result of speech recognition in a voice note

func UnmarshalListOfSpeechRecognitionResult added in v0.7.0

func UnmarshalListOfSpeechRecognitionResult(dataList []json.RawMessage) ([]SpeechRecognitionResult, error)

func UnmarshalSpeechRecognitionResult added in v0.7.0

func UnmarshalSpeechRecognitionResult(data json.RawMessage) (SpeechRecognitionResult, error)

type SpeechRecognitionResultError added in v0.7.0

type SpeechRecognitionResultError struct {

	// Recognition error. An error with a message "MSG_VOICE_TOO_LONG" is returned when media duration is too big to be recognized
	Error *Error `json:"error"`
	// contains filtered or unexported fields
}

The speech recognition failed

func UnmarshalSpeechRecognitionResultError added in v0.7.0

func UnmarshalSpeechRecognitionResultError(data json.RawMessage) (*SpeechRecognitionResultError, error)

func (*SpeechRecognitionResultError) GetClass added in v0.7.0

func (*SpeechRecognitionResultError) GetType added in v0.7.0

func (*SpeechRecognitionResultError) MarshalJSON added in v0.7.0

func (entity *SpeechRecognitionResultError) MarshalJSON() ([]byte, error)

func (*SpeechRecognitionResultError) SpeechRecognitionResultType added in v0.7.0

func (*SpeechRecognitionResultError) SpeechRecognitionResultType() string

type SpeechRecognitionResultPending added in v0.7.0

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 v0.7.0

func UnmarshalSpeechRecognitionResultPending(data json.RawMessage) (*SpeechRecognitionResultPending, error)

func (*SpeechRecognitionResultPending) GetClass added in v0.7.0

func (*SpeechRecognitionResultPending) GetType added in v0.7.0

func (*SpeechRecognitionResultPending) MarshalJSON added in v0.7.0

func (entity *SpeechRecognitionResultPending) MarshalJSON() ([]byte, error)

func (*SpeechRecognitionResultPending) SpeechRecognitionResultType added in v0.7.0

func (*SpeechRecognitionResultPending) SpeechRecognitionResultType() string

type SpeechRecognitionResultText added in v0.7.0

type SpeechRecognitionResultText struct {

	// Recognized text
	Text string `json:"text"`
	// contains filtered or unexported fields
}

The speech recognition successfully finished

func UnmarshalSpeechRecognitionResultText added in v0.7.0

func UnmarshalSpeechRecognitionResultText(data json.RawMessage) (*SpeechRecognitionResultText, error)

func (*SpeechRecognitionResultText) GetClass added in v0.7.0

func (*SpeechRecognitionResultText) GetClass() string

func (*SpeechRecognitionResultText) GetType added in v0.7.0

func (*SpeechRecognitionResultText) MarshalJSON added in v0.7.0

func (entity *SpeechRecognitionResultText) MarshalJSON() ([]byte, error)

func (*SpeechRecognitionResultText) SpeechRecognitionResultType added in v0.7.0

func (*SpeechRecognitionResultText) SpeechRecognitionResultType() string

type SponsoredMessage added in v0.5.0

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"`
	// True, if the message can be reported to Telegram moderators through reportChatSponsoredMessage
	CanBeReported bool `json:"can_be_reported"`
	// Content of the message. Currently, can be only of the types messageText, messageAnimation, messagePhoto, or messageVideo. Video messages can be viewed fullscreen
	Content MessageContent `json:"content"`
	// Information about the sponsor of the message
	Sponsor *MessageSponsor `json:"sponsor"`
	// Title of the sponsored message
	Title string `json:"title"`
	// Text for the message action button
	ButtonText string `json:"button_text"`
	// Identifier of the accent color for title, button text and message background
	AccentColorId int32 `json:"accent_color_id"`
	// Identifier of a custom emoji to be shown on the message background; 0 if none
	BackgroundCustomEmojiId JsonInt64 `json:"background_custom_emoji_id"`
	// 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 added in v0.5.0

func UnmarshalSponsoredMessage(data json.RawMessage) (*SponsoredMessage, error)

func (*SponsoredMessage) GetClass added in v0.5.0

func (*SponsoredMessage) GetClass() string

func (*SponsoredMessage) GetType added in v0.5.0

func (*SponsoredMessage) GetType() string

func (*SponsoredMessage) MarshalJSON added in v0.5.0

func (entity *SponsoredMessage) MarshalJSON() ([]byte, error)

func (*SponsoredMessage) UnmarshalJSON added in v0.5.0

func (sponsoredMessage *SponsoredMessage) UnmarshalJSON(data []byte) error

type SponsoredMessages added in v0.7.0

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 v0.7.0

func UnmarshalSponsoredMessages(data json.RawMessage) (*SponsoredMessages, error)

func (*SponsoredMessages) GetClass added in v0.7.0

func (*SponsoredMessages) GetClass() string

func (*SponsoredMessages) GetType added in v0.7.0

func (*SponsoredMessages) GetType() string

func (*SponsoredMessages) MarshalJSON added in v0.7.0

func (entity *SponsoredMessages) MarshalJSON() ([]byte, error)

type StarGiveawayPaymentOption added in v0.7.3

type StarGiveawayPaymentOption struct {

	// ISO 4217 currency code for the payment
	Currency string `json:"currency"`
	// The amount to pay, in the smallest units of the currency
	Amount int64 `json:"amount"`
	// Number of Telegram Stars that will be distributed among winners
	StarCount int64 `json:"star_count"`
	// Identifier of the store product associated with the option; may be empty if none
	StoreProductId string `json:"store_product_id"`
	// Number of times the chat will be boosted for one year if the option is chosen
	YearlyBoostCount int32 `json:"yearly_boost_count"`
	// Allowed options for the number of giveaway winners
	WinnerOptions []*StarGiveawayWinnerOption `json:"winner_options"`
	// True, if the option must be chosen by default
	IsDefault bool `json:"is_default"`
	// True, if the option must be shown only in the full list of payment options
	IsAdditional bool `json:"is_additional"`
	// contains filtered or unexported fields
}

Describes an option for creating Telegram Star giveaway. Use telegramPaymentPurposeStarGiveaway for out-of-store payments

func UnmarshalStarGiveawayPaymentOption added in v0.7.3

func UnmarshalStarGiveawayPaymentOption(data json.RawMessage) (*StarGiveawayPaymentOption, error)

func (*StarGiveawayPaymentOption) GetClass added in v0.7.3

func (*StarGiveawayPaymentOption) GetClass() string

func (*StarGiveawayPaymentOption) GetType added in v0.7.3

func (*StarGiveawayPaymentOption) GetType() string

func (*StarGiveawayPaymentOption) MarshalJSON added in v0.7.3

func (entity *StarGiveawayPaymentOption) MarshalJSON() ([]byte, error)

type StarGiveawayPaymentOptions added in v0.7.3

type StarGiveawayPaymentOptions struct {

	// The list of options
	Options []*StarGiveawayPaymentOption `json:"options"`
	// contains filtered or unexported fields
}

Contains a list of options for creating Telegram Star giveaway

func UnmarshalStarGiveawayPaymentOptions added in v0.7.3

func UnmarshalStarGiveawayPaymentOptions(data json.RawMessage) (*StarGiveawayPaymentOptions, error)

func (*StarGiveawayPaymentOptions) GetClass added in v0.7.3

func (*StarGiveawayPaymentOptions) GetClass() string

func (*StarGiveawayPaymentOptions) GetType added in v0.7.3

func (*StarGiveawayPaymentOptions) MarshalJSON added in v0.7.3

func (entity *StarGiveawayPaymentOptions) MarshalJSON() ([]byte, error)

type StarGiveawayWinnerOption added in v0.7.3

type StarGiveawayWinnerOption struct {

	// The number of users that will be chosen as winners
	WinnerCount int32 `json:"winner_count"`
	// The number of Telegram Stars that will be won by the winners of the giveaway
	WonStarCount int64 `json:"won_star_count"`
	// True, if the option must be chosen by default
	IsDefault bool `json:"is_default"`
	// contains filtered or unexported fields
}

Describes an option for the number of winners of a Telegram Star giveaway

func UnmarshalStarGiveawayWinnerOption added in v0.7.3

func UnmarshalStarGiveawayWinnerOption(data json.RawMessage) (*StarGiveawayWinnerOption, error)

func (*StarGiveawayWinnerOption) GetClass added in v0.7.3

func (*StarGiveawayWinnerOption) GetClass() string

func (*StarGiveawayWinnerOption) GetType added in v0.7.3

func (*StarGiveawayWinnerOption) GetType() string

func (*StarGiveawayWinnerOption) MarshalJSON added in v0.7.3

func (entity *StarGiveawayWinnerOption) MarshalJSON() ([]byte, error)

type StarPaymentOption added in v0.7.3

type StarPaymentOption struct {

	// ISO 4217 currency code for the payment
	Currency string `json:"currency"`
	// The amount to pay, in the smallest units of the currency
	Amount int64 `json:"amount"`
	// Number of Telegram Stars that will be purchased
	StarCount int64 `json:"star_count"`
	// Identifier of the store product associated with the option; may be empty if none
	StoreProductId string `json:"store_product_id"`
	// True, if the option must be shown only in the full list of payment options
	IsAdditional bool `json:"is_additional"`
	// contains filtered or unexported fields
}

Describes an option for buying Telegram Stars. Use telegramPaymentPurposeStars for out-of-store payments

func UnmarshalStarPaymentOption added in v0.7.3

func UnmarshalStarPaymentOption(data json.RawMessage) (*StarPaymentOption, error)

func (*StarPaymentOption) GetClass added in v0.7.3

func (*StarPaymentOption) GetClass() string

func (*StarPaymentOption) GetType added in v0.7.3

func (*StarPaymentOption) GetType() string

func (*StarPaymentOption) MarshalJSON added in v0.7.3

func (entity *StarPaymentOption) MarshalJSON() ([]byte, error)

type StarPaymentOptions added in v0.7.3

type StarPaymentOptions struct {

	// The list of options
	Options []*StarPaymentOption `json:"options"`
	// contains filtered or unexported fields
}

Contains a list of options for buying Telegram Stars

func UnmarshalStarPaymentOptions added in v0.7.3

func UnmarshalStarPaymentOptions(data json.RawMessage) (*StarPaymentOptions, error)

func (*StarPaymentOptions) GetClass added in v0.7.3

func (*StarPaymentOptions) GetClass() string

func (*StarPaymentOptions) GetType added in v0.7.3

func (*StarPaymentOptions) GetType() string

func (*StarPaymentOptions) MarshalJSON added in v0.7.3

func (entity *StarPaymentOptions) MarshalJSON() ([]byte, error)

type StarRevenueStatistics added in v0.7.3

type StarRevenueStatistics struct {

	// A graph containing amount of revenue in a given day
	RevenueByDayGraph StatisticalGraph `json:"revenue_by_day_graph"`
	// Telegram Star revenue status
	Status *StarRevenueStatus `json:"status"`
	// Current conversion rate of a Telegram Star to USD
	UsdRate float64 `json:"usd_rate"`
	// contains filtered or unexported fields
}

A detailed statistics about Telegram Stars earned by a bot or a chat

func UnmarshalStarRevenueStatistics added in v0.7.3

func UnmarshalStarRevenueStatistics(data json.RawMessage) (*StarRevenueStatistics, error)

func (*StarRevenueStatistics) GetClass added in v0.7.3

func (*StarRevenueStatistics) GetClass() string

func (*StarRevenueStatistics) GetType added in v0.7.3

func (*StarRevenueStatistics) GetType() string

func (*StarRevenueStatistics) MarshalJSON added in v0.7.3

func (entity *StarRevenueStatistics) MarshalJSON() ([]byte, error)

func (*StarRevenueStatistics) UnmarshalJSON added in v0.7.3

func (starRevenueStatistics *StarRevenueStatistics) UnmarshalJSON(data []byte) error

type StarRevenueStatus added in v0.7.3

type StarRevenueStatus struct {

	// Total number of Telegram Stars earned
	TotalCount int64 `json:"total_count"`
	// The number of Telegram Stars that aren't withdrawn yet
	CurrentCount int64 `json:"current_count"`
	// The number of Telegram Stars that are available for withdrawal
	AvailableCount int64 `json:"available_count"`
	// True, if Telegram Stars can be withdrawn now or later
	WithdrawalEnabled bool `json:"withdrawal_enabled"`
	// Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now
	NextWithdrawalIn int32 `json:"next_withdrawal_in"`
	// contains filtered or unexported fields
}

Contains information about Telegram Stars earned by a bot or a chat

func UnmarshalStarRevenueStatus added in v0.7.3

func UnmarshalStarRevenueStatus(data json.RawMessage) (*StarRevenueStatus, error)

func (*StarRevenueStatus) GetClass added in v0.7.3

func (*StarRevenueStatus) GetClass() string

func (*StarRevenueStatus) GetType added in v0.7.3

func (*StarRevenueStatus) GetType() string

func (*StarRevenueStatus) MarshalJSON added in v0.7.3

func (entity *StarRevenueStatus) MarshalJSON() ([]byte, error)

type StarSubscription added in v0.7.3

type StarSubscription struct {

	// Unique identifier of the subscription
	Id string `json:"id"`
	// Identifier of the chat that is subscribed
	ChatId int64 `json:"chat_id"`
	// Point in time (Unix timestamp) when the subscription will expire or expired
	ExpirationDate int32 `json:"expiration_date"`
	// True, if the subscription was canceled
	IsCanceled bool `json:"is_canceled"`
	// True, if the subscription expires soon and there are no enough Telegram Stars on the user's balance to extend it
	IsExpiring bool `json:"is_expiring"`
	// The subscription plan
	Pricing *StarSubscriptionPricing `json:"pricing"`
	// Type of the subscription
	Type StarSubscriptionType `json:"type"`
	// contains filtered or unexported fields
}

Contains information about subscription to a channel chat, a bot, or a business account that was paid in Telegram Stars

func UnmarshalStarSubscription added in v0.7.3

func UnmarshalStarSubscription(data json.RawMessage) (*StarSubscription, error)

func (*StarSubscription) GetClass added in v0.7.3

func (*StarSubscription) GetClass() string

func (*StarSubscription) GetType added in v0.7.3

func (*StarSubscription) GetType() string

func (*StarSubscription) MarshalJSON added in v0.7.3

func (entity *StarSubscription) MarshalJSON() ([]byte, error)

func (*StarSubscription) UnmarshalJSON added in v0.7.4

func (starSubscription *StarSubscription) UnmarshalJSON(data []byte) error

type StarSubscriptionPricing added in v0.7.3

type StarSubscriptionPricing struct {

	// The number of seconds between consecutive Telegram Star debiting
	Period int32 `json:"period"`
	// The amount of Telegram Stars that must be paid for each period
	StarCount int64 `json:"star_count"`
	// contains filtered or unexported fields
}

Describes subscription plan paid in Telegram Stars

func UnmarshalStarSubscriptionPricing added in v0.7.3

func UnmarshalStarSubscriptionPricing(data json.RawMessage) (*StarSubscriptionPricing, error)

func (*StarSubscriptionPricing) GetClass added in v0.7.3

func (*StarSubscriptionPricing) GetClass() string

func (*StarSubscriptionPricing) GetType added in v0.7.3

func (*StarSubscriptionPricing) GetType() string

func (*StarSubscriptionPricing) MarshalJSON added in v0.7.3

func (entity *StarSubscriptionPricing) MarshalJSON() ([]byte, error)

type StarSubscriptionType added in v0.7.4

type StarSubscriptionType interface {
	StarSubscriptionTypeType() string
}

Describes type of subscription paid in Telegram Stars

func UnmarshalListOfStarSubscriptionType added in v0.7.4

func UnmarshalListOfStarSubscriptionType(dataList []json.RawMessage) ([]StarSubscriptionType, error)

func UnmarshalStarSubscriptionType added in v0.7.4

func UnmarshalStarSubscriptionType(data json.RawMessage) (StarSubscriptionType, error)

type StarSubscriptionTypeBot added in v0.7.4

type StarSubscriptionTypeBot struct {

	// True, if the subscription was canceled by the bot and can't be extended
	IsCanceledByBot bool `json:"is_canceled_by_bot"`
	// Subscription invoice title
	Title string `json:"title"`
	// Subscription invoice photo
	Photo *Photo `json:"photo"`
	// The link to the subscription invoice
	InvoiceLink string `json:"invoice_link"`
	// contains filtered or unexported fields
}

Describes a subscription in a bot or a business account

func UnmarshalStarSubscriptionTypeBot added in v0.7.4

func UnmarshalStarSubscriptionTypeBot(data json.RawMessage) (*StarSubscriptionTypeBot, error)

func (*StarSubscriptionTypeBot) GetClass added in v0.7.4

func (*StarSubscriptionTypeBot) GetClass() string

func (*StarSubscriptionTypeBot) GetType added in v0.7.4

func (*StarSubscriptionTypeBot) GetType() string

func (*StarSubscriptionTypeBot) MarshalJSON added in v0.7.4

func (entity *StarSubscriptionTypeBot) MarshalJSON() ([]byte, error)

func (*StarSubscriptionTypeBot) StarSubscriptionTypeType added in v0.7.4

func (*StarSubscriptionTypeBot) StarSubscriptionTypeType() string

type StarSubscriptionTypeChannel added in v0.7.4

type StarSubscriptionTypeChannel struct {

	// True, if the subscription is active and the user can use the method reuseStarSubscription to join the subscribed chat again
	CanReuse bool `json:"can_reuse"`
	// The invite link that can be used to renew the subscription if it has been expired; may be empty, if the link isn't available anymore
	InviteLink string `json:"invite_link"`
	// contains filtered or unexported fields
}

Describes a subscription to a channel chat

func UnmarshalStarSubscriptionTypeChannel added in v0.7.4

func UnmarshalStarSubscriptionTypeChannel(data json.RawMessage) (*StarSubscriptionTypeChannel, error)

func (*StarSubscriptionTypeChannel) GetClass added in v0.7.4

func (*StarSubscriptionTypeChannel) GetClass() string

func (*StarSubscriptionTypeChannel) GetType added in v0.7.4

func (*StarSubscriptionTypeChannel) MarshalJSON added in v0.7.4

func (entity *StarSubscriptionTypeChannel) MarshalJSON() ([]byte, error)

func (*StarSubscriptionTypeChannel) StarSubscriptionTypeType added in v0.7.4

func (*StarSubscriptionTypeChannel) StarSubscriptionTypeType() string

type StarSubscriptions added in v0.7.3

type StarSubscriptions struct {

	// The amount of owned Telegram Stars
	StarCount int64 `json:"star_count"`
	// List of subscriptions for Telegram Stars
	Subscriptions []*StarSubscription `json:"subscriptions"`
	// The number of Telegram Stars required to buy to extend subscriptions expiring soon
	RequiredStarCount int64 `json:"required_star_count"`
	// The offset for the next request. If empty, then there are no more results
	NextOffset string `json:"next_offset"`
	// contains filtered or unexported fields
}

Represents a list of Telegram Star subscriptions

func UnmarshalStarSubscriptions added in v0.7.3

func UnmarshalStarSubscriptions(data json.RawMessage) (*StarSubscriptions, error)

func (*StarSubscriptions) GetClass added in v0.7.3

func (*StarSubscriptions) GetClass() string

func (*StarSubscriptions) GetType added in v0.7.3

func (*StarSubscriptions) GetType() string

func (*StarSubscriptions) MarshalJSON added in v0.7.3

func (entity *StarSubscriptions) MarshalJSON() ([]byte, error)

type StarTransaction added in v0.7.3

type StarTransaction struct {

	// Unique identifier of the transaction
	Id string `json:"id"`
	// The amount of added owned Telegram Stars; negative for outgoing transactions
	StarCount int64 `json:"star_count"`
	// True, if the transaction is a refund of a previous transaction
	IsRefund bool `json:"is_refund"`
	// Point in time (Unix timestamp) when the transaction was completed
	Date int32 `json:"date"`
	// Source of the incoming transaction, or its recipient for outgoing transactions
	Partner StarTransactionPartner `json:"partner"`
	// contains filtered or unexported fields
}

Represents a transaction changing the amount of owned Telegram Stars

func UnmarshalStarTransaction added in v0.7.3

func UnmarshalStarTransaction(data json.RawMessage) (*StarTransaction, error)

func (*StarTransaction) GetClass added in v0.7.3

func (*StarTransaction) GetClass() string

func (*StarTransaction) GetType added in v0.7.3

func (*StarTransaction) GetType() string

func (*StarTransaction) MarshalJSON added in v0.7.3

func (entity *StarTransaction) MarshalJSON() ([]byte, error)

func (*StarTransaction) UnmarshalJSON added in v0.7.3

func (starTransaction *StarTransaction) UnmarshalJSON(data []byte) error

type StarTransactionDirection added in v0.7.3

type StarTransactionDirection interface {
	StarTransactionDirectionType() string
}

Describes direction of a transaction with Telegram Stars

func UnmarshalListOfStarTransactionDirection added in v0.7.3

func UnmarshalListOfStarTransactionDirection(dataList []json.RawMessage) ([]StarTransactionDirection, error)

func UnmarshalStarTransactionDirection added in v0.7.3

func UnmarshalStarTransactionDirection(data json.RawMessage) (StarTransactionDirection, error)

type StarTransactionDirectionIncoming added in v0.7.3

type StarTransactionDirectionIncoming struct {
	// contains filtered or unexported fields
}

The transaction is incoming and increases the number of owned Telegram Stars

func UnmarshalStarTransactionDirectionIncoming added in v0.7.3

func UnmarshalStarTransactionDirectionIncoming(data json.RawMessage) (*StarTransactionDirectionIncoming, error)

func (*StarTransactionDirectionIncoming) GetClass added in v0.7.3

func (*StarTransactionDirectionIncoming) GetType added in v0.7.3

func (*StarTransactionDirectionIncoming) MarshalJSON added in v0.7.3

func (entity *StarTransactionDirectionIncoming) MarshalJSON() ([]byte, error)

func (*StarTransactionDirectionIncoming) StarTransactionDirectionType added in v0.7.3

func (*StarTransactionDirectionIncoming) StarTransactionDirectionType() string

type StarTransactionDirectionOutgoing added in v0.7.3

type StarTransactionDirectionOutgoing struct {
	// contains filtered or unexported fields
}

The transaction is outgoing and decreases the number of owned Telegram Stars

func UnmarshalStarTransactionDirectionOutgoing added in v0.7.3

func UnmarshalStarTransactionDirectionOutgoing(data json.RawMessage) (*StarTransactionDirectionOutgoing, error)

func (*StarTransactionDirectionOutgoing) GetClass added in v0.7.3

func (*StarTransactionDirectionOutgoing) GetType added in v0.7.3

func (*StarTransactionDirectionOutgoing) MarshalJSON added in v0.7.3

func (entity *StarTransactionDirectionOutgoing) MarshalJSON() ([]byte, error)

func (*StarTransactionDirectionOutgoing) StarTransactionDirectionType added in v0.7.3

func (*StarTransactionDirectionOutgoing) StarTransactionDirectionType() string

type StarTransactionPartner added in v0.7.3

type StarTransactionPartner interface {
	StarTransactionPartnerType() string
}

Describes source or recipient of a transaction with Telegram Stars

func UnmarshalListOfStarTransactionPartner added in v0.7.3

func UnmarshalListOfStarTransactionPartner(dataList []json.RawMessage) ([]StarTransactionPartner, error)

func UnmarshalStarTransactionPartner added in v0.7.3

func UnmarshalStarTransactionPartner(data json.RawMessage) (StarTransactionPartner, error)

type StarTransactionPartnerAppStore added in v0.7.3

type StarTransactionPartnerAppStore struct {
	// contains filtered or unexported fields
}

The transaction is a transaction with App Store

func UnmarshalStarTransactionPartnerAppStore added in v0.7.3

func UnmarshalStarTransactionPartnerAppStore(data json.RawMessage) (*StarTransactionPartnerAppStore, error)

func (*StarTransactionPartnerAppStore) GetClass added in v0.7.3

func (*StarTransactionPartnerAppStore) GetType added in v0.7.3

func (*StarTransactionPartnerAppStore) MarshalJSON added in v0.7.3

func (entity *StarTransactionPartnerAppStore) MarshalJSON() ([]byte, error)

func (*StarTransactionPartnerAppStore) StarTransactionPartnerType added in v0.7.3

func (*StarTransactionPartnerAppStore) StarTransactionPartnerType() string

type StarTransactionPartnerBot added in v0.7.3

type StarTransactionPartnerBot struct {

	// Identifier of the bot
	UserId int64 `json:"user_id"`
	// Purpose of the transaction
	Purpose BotTransactionPurpose `json:"purpose"`
	// contains filtered or unexported fields
}

The transaction is a transaction with a bot

func UnmarshalStarTransactionPartnerBot added in v0.7.3

func UnmarshalStarTransactionPartnerBot(data json.RawMessage) (*StarTransactionPartnerBot, error)

func (*StarTransactionPartnerBot) GetClass added in v0.7.3

func (*StarTransactionPartnerBot) GetClass() string

func (*StarTransactionPartnerBot) GetType added in v0.7.3

func (*StarTransactionPartnerBot) GetType() string

func (*StarTransactionPartnerBot) MarshalJSON added in v0.7.3

func (entity *StarTransactionPartnerBot) MarshalJSON() ([]byte, error)

func (*StarTransactionPartnerBot) StarTransactionPartnerType added in v0.7.3

func (*StarTransactionPartnerBot) StarTransactionPartnerType() string

func (*StarTransactionPartnerBot) UnmarshalJSON added in v0.7.3

func (starTransactionPartnerBot *StarTransactionPartnerBot) UnmarshalJSON(data []byte) error

type StarTransactionPartnerBusiness added in v0.7.3

type StarTransactionPartnerBusiness struct {

	// Identifier of the business account user
	UserId int64 `json:"user_id"`
	// The bought media if the transaction wasn't refunded
	Media []PaidMedia `json:"media"`
	// contains filtered or unexported fields
}

The transaction is a transaction with a business account

func UnmarshalStarTransactionPartnerBusiness added in v0.7.3

func UnmarshalStarTransactionPartnerBusiness(data json.RawMessage) (*StarTransactionPartnerBusiness, error)

func (*StarTransactionPartnerBusiness) GetClass added in v0.7.3

func (*StarTransactionPartnerBusiness) GetType added in v0.7.3

func (*StarTransactionPartnerBusiness) MarshalJSON added in v0.7.3

func (entity *StarTransactionPartnerBusiness) MarshalJSON() ([]byte, error)

func (*StarTransactionPartnerBusiness) StarTransactionPartnerType added in v0.7.3

func (*StarTransactionPartnerBusiness) StarTransactionPartnerType() string

func (*StarTransactionPartnerBusiness) UnmarshalJSON added in v0.7.3

func (starTransactionPartnerBusiness *StarTransactionPartnerBusiness) UnmarshalJSON(data []byte) error

type StarTransactionPartnerChat added in v0.7.3

type StarTransactionPartnerChat struct {

	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
	// Purpose of the transaction
	Purpose ChatTransactionPurpose `json:"purpose"`
	// contains filtered or unexported fields
}

The transaction is a transaction with a supergroup or a channel chat

func UnmarshalStarTransactionPartnerChat added in v0.7.3

func UnmarshalStarTransactionPartnerChat(data json.RawMessage) (*StarTransactionPartnerChat, error)

func (*StarTransactionPartnerChat) GetClass added in v0.7.3

func (*StarTransactionPartnerChat) GetClass() string

func (*StarTransactionPartnerChat) GetType added in v0.7.3

func (*StarTransactionPartnerChat) MarshalJSON added in v0.7.3

func (entity *StarTransactionPartnerChat) MarshalJSON() ([]byte, error)

func (*StarTransactionPartnerChat) StarTransactionPartnerType added in v0.7.3

func (*StarTransactionPartnerChat) StarTransactionPartnerType() string

func (*StarTransactionPartnerChat) UnmarshalJSON added in v0.7.3

func (starTransactionPartnerChat *StarTransactionPartnerChat) UnmarshalJSON(data []byte) error

type StarTransactionPartnerFragment added in v0.7.3

type StarTransactionPartnerFragment struct {

	// State of the withdrawal; may be null for refunds from Fragment or for Telegram Stars bought on Fragment
	WithdrawalState RevenueWithdrawalState `json:"withdrawal_state"`
	// contains filtered or unexported fields
}

The transaction is a transaction with Fragment

func UnmarshalStarTransactionPartnerFragment added in v0.7.3

func UnmarshalStarTransactionPartnerFragment(data json.RawMessage) (*StarTransactionPartnerFragment, error)

func (*StarTransactionPartnerFragment) GetClass added in v0.7.3

func (*StarTransactionPartnerFragment) GetType added in v0.7.3

func (*StarTransactionPartnerFragment) MarshalJSON added in v0.7.3

func (entity *StarTransactionPartnerFragment) MarshalJSON() ([]byte, error)

func (*StarTransactionPartnerFragment) StarTransactionPartnerType added in v0.7.3

func (*StarTransactionPartnerFragment) StarTransactionPartnerType() string

func (*StarTransactionPartnerFragment) UnmarshalJSON added in v0.7.3

func (starTransactionPartnerFragment *StarTransactionPartnerFragment) UnmarshalJSON(data []byte) error

type StarTransactionPartnerGooglePlay added in v0.7.3

type StarTransactionPartnerGooglePlay struct {
	// contains filtered or unexported fields
}

The transaction is a transaction with Google Play

func UnmarshalStarTransactionPartnerGooglePlay added in v0.7.3

func UnmarshalStarTransactionPartnerGooglePlay(data json.RawMessage) (*StarTransactionPartnerGooglePlay, error)

func (*StarTransactionPartnerGooglePlay) GetClass added in v0.7.3

func (*StarTransactionPartnerGooglePlay) GetType added in v0.7.3

func (*StarTransactionPartnerGooglePlay) MarshalJSON added in v0.7.3

func (entity *StarTransactionPartnerGooglePlay) MarshalJSON() ([]byte, error)

func (*StarTransactionPartnerGooglePlay) StarTransactionPartnerType added in v0.7.3

func (*StarTransactionPartnerGooglePlay) StarTransactionPartnerType() string

type StarTransactionPartnerTelegram added in v0.7.3

type StarTransactionPartnerTelegram struct {
	// contains filtered or unexported fields
}

The transaction is a transaction with Telegram through a bot

func UnmarshalStarTransactionPartnerTelegram added in v0.7.3

func UnmarshalStarTransactionPartnerTelegram(data json.RawMessage) (*StarTransactionPartnerTelegram, error)

func (*StarTransactionPartnerTelegram) GetClass added in v0.7.3

func (*StarTransactionPartnerTelegram) GetType added in v0.7.3

func (*StarTransactionPartnerTelegram) MarshalJSON added in v0.7.3

func (entity *StarTransactionPartnerTelegram) MarshalJSON() ([]byte, error)

func (*StarTransactionPartnerTelegram) StarTransactionPartnerType added in v0.7.3

func (*StarTransactionPartnerTelegram) StarTransactionPartnerType() string

type StarTransactionPartnerTelegramAds added in v0.7.3

type StarTransactionPartnerTelegramAds struct {
	// contains filtered or unexported fields
}

The transaction is a transaction with Telegram Ad platform

func UnmarshalStarTransactionPartnerTelegramAds added in v0.7.3

func UnmarshalStarTransactionPartnerTelegramAds(data json.RawMessage) (*StarTransactionPartnerTelegramAds, error)

func (*StarTransactionPartnerTelegramAds) GetClass added in v0.7.3

func (*StarTransactionPartnerTelegramAds) GetType added in v0.7.3

func (*StarTransactionPartnerTelegramAds) MarshalJSON added in v0.7.3

func (entity *StarTransactionPartnerTelegramAds) MarshalJSON() ([]byte, error)

func (*StarTransactionPartnerTelegramAds) StarTransactionPartnerType added in v0.7.3

func (*StarTransactionPartnerTelegramAds) StarTransactionPartnerType() string

type StarTransactionPartnerTelegramApi added in v0.7.3

type StarTransactionPartnerTelegramApi struct {

	// The number of billed requests
	RequestCount int32 `json:"request_count"`
	// contains filtered or unexported fields
}

The transaction is a transaction with Telegram for API usage

func UnmarshalStarTransactionPartnerTelegramApi added in v0.7.3

func UnmarshalStarTransactionPartnerTelegramApi(data json.RawMessage) (*StarTransactionPartnerTelegramApi, error)

func (*StarTransactionPartnerTelegramApi) GetClass added in v0.7.3

func (*StarTransactionPartnerTelegramApi) GetType added in v0.7.3

func (*StarTransactionPartnerTelegramApi) MarshalJSON added in v0.7.3

func (entity *StarTransactionPartnerTelegramApi) MarshalJSON() ([]byte, error)

func (*StarTransactionPartnerTelegramApi) StarTransactionPartnerType added in v0.7.3

func (*StarTransactionPartnerTelegramApi) StarTransactionPartnerType() string

type StarTransactionPartnerUnsupported added in v0.7.3

type StarTransactionPartnerUnsupported struct {
	// contains filtered or unexported fields
}

The transaction is a transaction with unknown partner

func UnmarshalStarTransactionPartnerUnsupported added in v0.7.3

func UnmarshalStarTransactionPartnerUnsupported(data json.RawMessage) (*StarTransactionPartnerUnsupported, error)

func (*StarTransactionPartnerUnsupported) GetClass added in v0.7.3

func (*StarTransactionPartnerUnsupported) GetType added in v0.7.3

func (*StarTransactionPartnerUnsupported) MarshalJSON added in v0.7.3

func (entity *StarTransactionPartnerUnsupported) MarshalJSON() ([]byte, error)

func (*StarTransactionPartnerUnsupported) StarTransactionPartnerType added in v0.7.3

func (*StarTransactionPartnerUnsupported) StarTransactionPartnerType() string

type StarTransactionPartnerUser added in v0.7.3

type StarTransactionPartnerUser struct {

	// Identifier of the user; 0 if the user was anonymous
	UserId int64 `json:"user_id"`
	// Purpose of the transaction
	Purpose UserTransactionPurpose `json:"purpose"`
	// contains filtered or unexported fields
}

The transaction is a transaction with another user

func UnmarshalStarTransactionPartnerUser added in v0.7.3

func UnmarshalStarTransactionPartnerUser(data json.RawMessage) (*StarTransactionPartnerUser, error)

func (*StarTransactionPartnerUser) GetClass added in v0.7.3

func (*StarTransactionPartnerUser) GetClass() string

func (*StarTransactionPartnerUser) GetType added in v0.7.3

func (*StarTransactionPartnerUser) MarshalJSON added in v0.7.3

func (entity *StarTransactionPartnerUser) MarshalJSON() ([]byte, error)

func (*StarTransactionPartnerUser) StarTransactionPartnerType added in v0.7.3

func (*StarTransactionPartnerUser) StarTransactionPartnerType() string

func (*StarTransactionPartnerUser) UnmarshalJSON added in v0.7.3

func (starTransactionPartnerUser *StarTransactionPartnerUser) UnmarshalJSON(data []byte) error

type StarTransactions added in v0.7.3

type StarTransactions struct {

	// The amount of owned Telegram Stars
	StarCount int64 `json:"star_count"`
	// List of transactions with Telegram Stars
	Transactions []*StarTransaction `json:"transactions"`
	// The offset for the next request. If empty, then there are no more results
	NextOffset string `json:"next_offset"`
	// contains filtered or unexported fields
}

Represents a list of Telegram Star transactions

func UnmarshalStarTransactions added in v0.7.3

func UnmarshalStarTransactions(data json.RawMessage) (*StarTransactions, error)

func (*StarTransactions) GetClass added in v0.7.3

func (*StarTransactions) GetClass() string

func (*StarTransactions) GetType added in v0.7.3

func (*StarTransactions) GetType() string

func (*StarTransactions) MarshalJSON added in v0.7.3

func (entity *StarTransactions) MarshalJSON() ([]byte, error)

type StartGroupCallRecordingRequest added in v0.5.0

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 added in v0.5.0

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 added in v0.5.0

type StartScheduledGroupCallRequest struct {
	// Group call identifier
	GroupCallId int32 `json:"group_call_id"`
}

type StatisticalGraph added in v0.3.0

type StatisticalGraph interface {
	StatisticalGraphType() string
}

Describes a statistical graph

func UnmarshalListOfStatisticalGraph added in v0.3.2

func UnmarshalListOfStatisticalGraph(dataList []json.RawMessage) ([]StatisticalGraph, error)

func UnmarshalStatisticalGraph added in v0.3.0

func UnmarshalStatisticalGraph(data json.RawMessage) (StatisticalGraph, error)

type StatisticalGraphAsync added in v0.3.0

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 added in v0.3.0

func UnmarshalStatisticalGraphAsync(data json.RawMessage) (*StatisticalGraphAsync, error)

func (*StatisticalGraphAsync) GetClass added in v0.3.0

func (*StatisticalGraphAsync) GetClass() string

func (*StatisticalGraphAsync) GetType added in v0.3.0

func (*StatisticalGraphAsync) GetType() string

func (*StatisticalGraphAsync) MarshalJSON added in v0.3.0

func (entity *StatisticalGraphAsync) MarshalJSON() ([]byte, error)

func (*StatisticalGraphAsync) StatisticalGraphType added in v0.3.0

func (*StatisticalGraphAsync) StatisticalGraphType() string

type StatisticalGraphData added in v0.3.0

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 added in v0.3.0

func UnmarshalStatisticalGraphData(data json.RawMessage) (*StatisticalGraphData, error)

func (*StatisticalGraphData) GetClass added in v0.3.0

func (*StatisticalGraphData) GetClass() string

func (*StatisticalGraphData) GetType added in v0.3.0

func (*StatisticalGraphData) GetType() string

func (*StatisticalGraphData) MarshalJSON added in v0.3.0

func (entity *StatisticalGraphData) MarshalJSON() ([]byte, error)

func (*StatisticalGraphData) StatisticalGraphType added in v0.3.0

func (*StatisticalGraphData) StatisticalGraphType() string

type StatisticalGraphError added in v0.3.0

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 added in v0.3.0

func UnmarshalStatisticalGraphError(data json.RawMessage) (*StatisticalGraphError, error)

func (*StatisticalGraphError) GetClass added in v0.3.0

func (*StatisticalGraphError) GetClass() string

func (*StatisticalGraphError) GetType added in v0.3.0

func (*StatisticalGraphError) GetType() string

func (*StatisticalGraphError) MarshalJSON added in v0.3.0

func (entity *StatisticalGraphError) MarshalJSON() ([]byte, error)

func (*StatisticalGraphError) StatisticalGraphType added in v0.3.0

func (*StatisticalGraphError) StatisticalGraphType() string

type StatisticalValue added in v0.3.0

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 added in v0.3.0

func UnmarshalStatisticalValue(data json.RawMessage) (*StatisticalValue, error)

func (*StatisticalValue) GetClass added in v0.3.0

func (*StatisticalValue) GetClass() string

func (*StatisticalValue) GetType added in v0.3.0

func (*StatisticalValue) GetType() string

func (*StatisticalValue) MarshalJSON added in v0.3.0

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 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) GetClass

func (*Sticker) GetClass() string

func (*Sticker) GetType

func (*Sticker) GetType() string

func (*Sticker) MarshalJSON

func (entity *Sticker) MarshalJSON() ([]byte, error)

func (*Sticker) UnmarshalJSON added in v0.7.0

func (sticker *Sticker) UnmarshalJSON(data []byte) error

type StickerFormat added in v0.7.0

type StickerFormat interface {
	StickerFormatType() string
}

Describes format of a sticker

func UnmarshalListOfStickerFormat added in v0.7.0

func UnmarshalListOfStickerFormat(dataList []json.RawMessage) ([]StickerFormat, error)

func UnmarshalStickerFormat added in v0.7.0

func UnmarshalStickerFormat(data json.RawMessage) (StickerFormat, error)

type StickerFormatTgs added in v0.7.0

type StickerFormatTgs struct {
	// contains filtered or unexported fields
}

The sticker is an animation in TGS format

func UnmarshalStickerFormatTgs added in v0.7.0

func UnmarshalStickerFormatTgs(data json.RawMessage) (*StickerFormatTgs, error)

func (*StickerFormatTgs) GetClass added in v0.7.0

func (*StickerFormatTgs) GetClass() string

func (*StickerFormatTgs) GetType added in v0.7.0

func (*StickerFormatTgs) GetType() string

func (*StickerFormatTgs) MarshalJSON added in v0.7.0

func (entity *StickerFormatTgs) MarshalJSON() ([]byte, error)

func (*StickerFormatTgs) StickerFormatType added in v0.7.0

func (*StickerFormatTgs) StickerFormatType() string

type StickerFormatWebm added in v0.7.0

type StickerFormatWebm struct {
	// contains filtered or unexported fields
}

The sticker is a video in WEBM format

func UnmarshalStickerFormatWebm added in v0.7.0

func UnmarshalStickerFormatWebm(data json.RawMessage) (*StickerFormatWebm, error)

func (*StickerFormatWebm) GetClass added in v0.7.0

func (*StickerFormatWebm) GetClass() string

func (*StickerFormatWebm) GetType added in v0.7.0

func (*StickerFormatWebm) GetType() string

func (*StickerFormatWebm) MarshalJSON added in v0.7.0

func (entity *StickerFormatWebm) MarshalJSON() ([]byte, error)

func (*StickerFormatWebm) StickerFormatType added in v0.7.0

func (*StickerFormatWebm) StickerFormatType() string

type StickerFormatWebp added in v0.7.0

type StickerFormatWebp struct {
	// contains filtered or unexported fields
}

The sticker is an image in WEBP format

func UnmarshalStickerFormatWebp added in v0.7.0

func UnmarshalStickerFormatWebp(data json.RawMessage) (*StickerFormatWebp, error)

func (*StickerFormatWebp) GetClass added in v0.7.0

func (*StickerFormatWebp) GetClass() string

func (*StickerFormatWebp) GetType added in v0.7.0

func (*StickerFormatWebp) GetType() string

func (*StickerFormatWebp) MarshalJSON added in v0.7.0

func (entity *StickerFormatWebp) MarshalJSON() ([]byte, error)

func (*StickerFormatWebp) StickerFormatType added in v0.7.0

func (*StickerFormatWebp) StickerFormatType() string

type StickerFullType added in v0.7.0

type StickerFullType interface {
	StickerFullTypeType() string
}

Contains full information about sticker type

func UnmarshalListOfStickerFullType added in v0.7.0

func UnmarshalListOfStickerFullType(dataList []json.RawMessage) ([]StickerFullType, error)

func UnmarshalStickerFullType added in v0.7.0

func UnmarshalStickerFullType(data json.RawMessage) (StickerFullType, error)

type StickerFullTypeCustomEmoji added in v0.7.0

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 v0.7.0

func UnmarshalStickerFullTypeCustomEmoji(data json.RawMessage) (*StickerFullTypeCustomEmoji, error)

func (*StickerFullTypeCustomEmoji) GetClass added in v0.7.0

func (*StickerFullTypeCustomEmoji) GetClass() string

func (*StickerFullTypeCustomEmoji) GetType added in v0.7.0

func (*StickerFullTypeCustomEmoji) MarshalJSON added in v0.7.0

func (entity *StickerFullTypeCustomEmoji) MarshalJSON() ([]byte, error)

func (*StickerFullTypeCustomEmoji) StickerFullTypeType added in v0.7.0

func (*StickerFullTypeCustomEmoji) StickerFullTypeType() string

type StickerFullTypeMask added in v0.7.0

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 v0.7.0

func UnmarshalStickerFullTypeMask(data json.RawMessage) (*StickerFullTypeMask, error)

func (*StickerFullTypeMask) GetClass added in v0.7.0

func (*StickerFullTypeMask) GetClass() string

func (*StickerFullTypeMask) GetType added in v0.7.0

func (*StickerFullTypeMask) GetType() string

func (*StickerFullTypeMask) MarshalJSON added in v0.7.0

func (entity *StickerFullTypeMask) MarshalJSON() ([]byte, error)

func (*StickerFullTypeMask) StickerFullTypeType added in v0.7.0

func (*StickerFullTypeMask) StickerFullTypeType() string

type StickerFullTypeRegular added in v0.7.0

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 v0.7.0

func UnmarshalStickerFullTypeRegular(data json.RawMessage) (*StickerFullTypeRegular, error)

func (*StickerFullTypeRegular) GetClass added in v0.7.0

func (*StickerFullTypeRegular) GetClass() string

func (*StickerFullTypeRegular) GetType added in v0.7.0

func (*StickerFullTypeRegular) GetType() string

func (*StickerFullTypeRegular) MarshalJSON added in v0.7.0

func (entity *StickerFullTypeRegular) MarshalJSON() ([]byte, error)

func (*StickerFullTypeRegular) StickerFullTypeType added in v0.7.0

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; may be null if unknown
	ThumbnailOutline *Outline `json:"thumbnail_outline"`
	// True, if the sticker set is owned by the current user
	IsOwned bool `json:"is_owned"`
	// 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"`
	// Type of the stickers in the set
	StickerType StickerType `json:"sticker_type"`
	// True, if stickers in the sticker set are custom emoji that must be repainted; for custom emoji sticker sets only
	NeedsRepainting bool `json:"needs_repainting"`
	// True, if stickers in the sticker set are custom emoji that can be used as chat emoji status; for custom emoji sticker sets only
	IsAllowedAsChatEmojiStatus bool `json:"is_allowed_as_chat_emoji_status"`
	// 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 emojis 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 v0.7.0

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. The file can be downloaded only before the thumbnail is changed
	Thumbnail *Thumbnail `json:"thumbnail"`
	// Sticker set thumbnail's outline; may be null if unknown
	ThumbnailOutline *Outline `json:"thumbnail_outline"`
	// True, if the sticker set is owned by the current user
	IsOwned bool `json:"is_owned"`
	// 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"`
	// Type of the stickers in the set
	StickerType StickerType `json:"sticker_type"`
	// True, if stickers in the sticker set are custom emoji that must be repainted; for custom emoji sticker sets only
	NeedsRepainting bool `json:"needs_repainting"`
	// True, if stickers in the sticker set are custom emoji that can be used as chat emoji status; for custom emoji sticker sets only
	IsAllowedAsChatEmojiStatus bool `json:"is_allowed_as_chat_emoji_status"`
	// 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 v0.7.0

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 v0.7.0

type StickerType interface {
	StickerTypeType() string
}

Describes type of sticker

func UnmarshalListOfStickerType added in v0.7.0

func UnmarshalListOfStickerType(dataList []json.RawMessage) ([]StickerType, error)

func UnmarshalStickerType added in v0.7.0

func UnmarshalStickerType(data json.RawMessage) (StickerType, error)

type StickerTypeCustomEmoji added in v0.7.0

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 v0.7.0

func UnmarshalStickerTypeCustomEmoji(data json.RawMessage) (*StickerTypeCustomEmoji, error)

func (*StickerTypeCustomEmoji) GetClass added in v0.7.0

func (*StickerTypeCustomEmoji) GetClass() string

func (*StickerTypeCustomEmoji) GetType added in v0.7.0

func (*StickerTypeCustomEmoji) GetType() string

func (*StickerTypeCustomEmoji) MarshalJSON added in v0.7.0

func (entity *StickerTypeCustomEmoji) MarshalJSON() ([]byte, error)

func (*StickerTypeCustomEmoji) StickerTypeType added in v0.7.0

func (*StickerTypeCustomEmoji) StickerTypeType() string

type StickerTypeMask added in v0.7.0

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 v0.7.0

func UnmarshalStickerTypeMask(data json.RawMessage) (*StickerTypeMask, error)

func (*StickerTypeMask) GetClass added in v0.7.0

func (*StickerTypeMask) GetClass() string

func (*StickerTypeMask) GetType added in v0.7.0

func (*StickerTypeMask) GetType() string

func (*StickerTypeMask) MarshalJSON added in v0.7.0

func (entity *StickerTypeMask) MarshalJSON() ([]byte, error)

func (*StickerTypeMask) StickerTypeType added in v0.7.0

func (*StickerTypeMask) StickerTypeType() string

type StickerTypeRegular added in v0.7.0

type StickerTypeRegular struct {
	// contains filtered or unexported fields
}

The sticker is a regular sticker

func UnmarshalStickerTypeRegular added in v0.7.0

func UnmarshalStickerTypeRegular(data json.RawMessage) (*StickerTypeRegular, error)

func (*StickerTypeRegular) GetClass added in v0.7.0

func (*StickerTypeRegular) GetClass() string

func (*StickerTypeRegular) GetType added in v0.7.0

func (*StickerTypeRegular) GetType() string

func (*StickerTypeRegular) MarshalJSON added in v0.7.0

func (entity *StickerTypeRegular) MarshalJSON() ([]byte, error)

func (*StickerTypeRegular) StickerTypeType added in v0.7.0

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) GetClass

func (*Stickers) GetClass() string

func (*Stickers) GetType

func (*Stickers) GetType() string

func (*Stickers) MarshalJSON

func (entity *Stickers) MarshalJSON() ([]byte, error)

type StopBusinessPollRequest added in v0.7.3

type StopBusinessPollRequest struct {
	// Unique identifier of business connection on behalf of which the message with the poll was sent
	BusinessConnectionId string `json:"business_connection_id"`
	// The chat the message belongs to
	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
	ReplyMarkup ReplyMarkup `json:"reply_markup"`
}

type StopPollRequest added in v0.0.13

type StopPollRequest struct {
	// Identifier of the chat to which the poll belongs
	ChatId int64 `json:"chat_id"`
	// Identifier of the message containing the poll. Use messageProperties.can_be_edited to check whether the poll can be stopped
	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) 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 v0.7.0

type StorePaymentPurpose interface {
	StorePaymentPurposeType() string
}

Describes a purpose of an in-store payment

func UnmarshalListOfStorePaymentPurpose added in v0.7.0

func UnmarshalListOfStorePaymentPurpose(dataList []json.RawMessage) ([]StorePaymentPurpose, error)

func UnmarshalStorePaymentPurpose added in v0.7.0

func UnmarshalStorePaymentPurpose(data json.RawMessage) (StorePaymentPurpose, error)

type StorePaymentPurposeGiftedStars added in v0.7.3

type StorePaymentPurposeGiftedStars struct {

	// Identifier of the user to which Telegram Stars are 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"`
	// Number of bought Telegram Stars
	StarCount int64 `json:"star_count"`
	// contains filtered or unexported fields
}

The user buying Telegram Stars for other users

func UnmarshalStorePaymentPurposeGiftedStars added in v0.7.3

func UnmarshalStorePaymentPurposeGiftedStars(data json.RawMessage) (*StorePaymentPurposeGiftedStars, error)

func (*StorePaymentPurposeGiftedStars) GetClass added in v0.7.3

func (*StorePaymentPurposeGiftedStars) GetType added in v0.7.3

func (*StorePaymentPurposeGiftedStars) MarshalJSON added in v0.7.3

func (entity *StorePaymentPurposeGiftedStars) MarshalJSON() ([]byte, error)

func (*StorePaymentPurposeGiftedStars) StorePaymentPurposeType added in v0.7.3

func (*StorePaymentPurposeGiftedStars) StorePaymentPurposeType() string

type StorePaymentPurposePremiumGiftCodes added in v0.7.1

type StorePaymentPurposePremiumGiftCodes struct {

	// Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user; 0 if none
	BoostedChatId int64 `json:"boosted_chat_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"`
	// Identifiers of the users which can activate the gift codes
	UserIds []int64 `json:"user_ids"`
	// Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed
	Text *FormattedText `json:"text"`
	// contains filtered or unexported fields
}

The user creating Telegram Premium gift codes for other users

func UnmarshalStorePaymentPurposePremiumGiftCodes added in v0.7.1

func UnmarshalStorePaymentPurposePremiumGiftCodes(data json.RawMessage) (*StorePaymentPurposePremiumGiftCodes, error)

func (*StorePaymentPurposePremiumGiftCodes) GetClass added in v0.7.1

func (*StorePaymentPurposePremiumGiftCodes) GetType added in v0.7.1

func (*StorePaymentPurposePremiumGiftCodes) MarshalJSON added in v0.7.1

func (entity *StorePaymentPurposePremiumGiftCodes) MarshalJSON() ([]byte, error)

func (*StorePaymentPurposePremiumGiftCodes) StorePaymentPurposeType added in v0.7.1

func (*StorePaymentPurposePremiumGiftCodes) StorePaymentPurposeType() string

type StorePaymentPurposePremiumGiveaway added in v0.7.1

type StorePaymentPurposePremiumGiveaway struct {

	// Giveaway parameters
	Parameters *GiveawayParameters `json:"parameters"`
	// 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 creating a Telegram Premium giveaway

func UnmarshalStorePaymentPurposePremiumGiveaway added in v0.7.1

func UnmarshalStorePaymentPurposePremiumGiveaway(data json.RawMessage) (*StorePaymentPurposePremiumGiveaway, error)

func (*StorePaymentPurposePremiumGiveaway) GetClass added in v0.7.1

func (*StorePaymentPurposePremiumGiveaway) GetType added in v0.7.1

func (*StorePaymentPurposePremiumGiveaway) MarshalJSON added in v0.7.1

func (entity *StorePaymentPurposePremiumGiveaway) MarshalJSON() ([]byte, error)

func (*StorePaymentPurposePremiumGiveaway) StorePaymentPurposeType added in v0.7.1

func (*StorePaymentPurposePremiumGiveaway) StorePaymentPurposeType() string

type StorePaymentPurposePremiumSubscription added in v0.7.0

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 subscribing to Telegram Premium

func UnmarshalStorePaymentPurposePremiumSubscription added in v0.7.0

func UnmarshalStorePaymentPurposePremiumSubscription(data json.RawMessage) (*StorePaymentPurposePremiumSubscription, error)

func (*StorePaymentPurposePremiumSubscription) GetClass added in v0.7.0

func (*StorePaymentPurposePremiumSubscription) GetType added in v0.7.0

func (*StorePaymentPurposePremiumSubscription) MarshalJSON added in v0.7.0

func (entity *StorePaymentPurposePremiumSubscription) MarshalJSON() ([]byte, error)

func (*StorePaymentPurposePremiumSubscription) StorePaymentPurposeType added in v0.7.0

func (*StorePaymentPurposePremiumSubscription) StorePaymentPurposeType() string

type StorePaymentPurposeStarGiveaway added in v0.7.3

type StorePaymentPurposeStarGiveaway struct {

	// Giveaway parameters
	Parameters *GiveawayParameters `json:"parameters"`
	// 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"`
	// The number of users to receive Telegram Stars
	WinnerCount int32 `json:"winner_count"`
	// The number of Telegram Stars to be distributed through the giveaway
	StarCount int64 `json:"star_count"`
	// contains filtered or unexported fields
}

The user creating a Telegram Star giveaway

func UnmarshalStorePaymentPurposeStarGiveaway added in v0.7.3

func UnmarshalStorePaymentPurposeStarGiveaway(data json.RawMessage) (*StorePaymentPurposeStarGiveaway, error)

func (*StorePaymentPurposeStarGiveaway) GetClass added in v0.7.3

func (*StorePaymentPurposeStarGiveaway) GetType added in v0.7.3

func (*StorePaymentPurposeStarGiveaway) MarshalJSON added in v0.7.3

func (entity *StorePaymentPurposeStarGiveaway) MarshalJSON() ([]byte, error)

func (*StorePaymentPurposeStarGiveaway) StorePaymentPurposeType added in v0.7.3

func (*StorePaymentPurposeStarGiveaway) StorePaymentPurposeType() string

type StorePaymentPurposeStars added in v0.7.3

type StorePaymentPurposeStars struct {

	// 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"`
	// Number of bought Telegram Stars
	StarCount int64 `json:"star_count"`
	// contains filtered or unexported fields
}

The user buying Telegram Stars

func UnmarshalStorePaymentPurposeStars added in v0.7.3

func UnmarshalStorePaymentPurposeStars(data json.RawMessage) (*StorePaymentPurposeStars, error)

func (*StorePaymentPurposeStars) GetClass added in v0.7.3

func (*StorePaymentPurposeStars) GetClass() string

func (*StorePaymentPurposeStars) GetType added in v0.7.3

func (*StorePaymentPurposeStars) GetType() string

func (*StorePaymentPurposeStars) MarshalJSON added in v0.7.3

func (entity *StorePaymentPurposeStars) MarshalJSON() ([]byte, error)

func (*StorePaymentPurposeStars) StorePaymentPurposeType added in v0.7.3

func (*StorePaymentPurposeStars) StorePaymentPurposeType() string

type Stories added in v0.7.0

type Stories struct {

	// Approximate total number of stories found
	TotalCount int32 `json:"total_count"`
	// The list of stories
	Stories []*Story `json:"stories"`
	// Identifiers of the pinned stories; returned only in getChatPostedToChatPageStories with from_story_id == 0
	PinnedStoryIds []int32 `json:"pinned_story_ids"`
	// contains filtered or unexported fields
}

Represents a list of stories

func UnmarshalStories added in v0.7.0

func UnmarshalStories(data json.RawMessage) (*Stories, error)

func (*Stories) GetClass added in v0.7.0

func (*Stories) GetClass() string

func (*Stories) GetType added in v0.7.0

func (*Stories) GetType() string

func (*Stories) MarshalJSON added in v0.7.0

func (entity *Stories) MarshalJSON() ([]byte, error)

type Story added in v0.7.0

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"`
	// Identifier of the sender of the story; may be null if the story is posted on behalf of the sender_chat_id
	SenderId MessageSender `json:"sender_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
	IsPostedToChatPage bool `json:"is_posted_to_chat_page"`
	// 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 deleted
	CanBeDeleted bool `json:"can_be_deleted"`
	// True, if the story can be edited
	CanBeEdited bool `json:"can_be_edited"`
	// 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 the story's is_posted_to_chat_page value can be changed
	CanToggleIsPostedToChatPage bool `json:"can_toggle_is_posted_to_chat_page"`
	// True, if the story statistics are available through getStoryStatistics
	CanGetStatistics bool `json:"can_get_statistics"`
	// True, if interactions with the story can be received through getStoryInteractions
	CanGetInteractions bool `json:"can_get_interactions"`
	// 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 the original story; may be null if the story wasn't reposted
	RepostInfo *StoryRepostInfo `json:"repost_info"`
	// 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 v0.7.0

func UnmarshalStory(data json.RawMessage) (*Story, error)

func (*Story) GetClass added in v0.7.0

func (*Story) GetClass() string

func (*Story) GetType added in v0.7.0

func (*Story) GetType() string

func (*Story) MarshalJSON added in v0.7.0

func (entity *Story) MarshalJSON() ([]byte, error)

func (*Story) UnmarshalJSON added in v0.7.0

func (story *Story) UnmarshalJSON(data []byte) error

type StoryArea added in v0.7.0

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 v0.7.0

func UnmarshalStoryArea(data json.RawMessage) (*StoryArea, error)

func (*StoryArea) GetClass added in v0.7.0

func (*StoryArea) GetClass() string

func (*StoryArea) GetType added in v0.7.0

func (*StoryArea) GetType() string

func (*StoryArea) MarshalJSON added in v0.7.0

func (entity *StoryArea) MarshalJSON() ([]byte, error)

func (*StoryArea) UnmarshalJSON added in v0.7.0

func (storyArea *StoryArea) UnmarshalJSON(data []byte) error

type StoryAreaPosition added in v0.7.0

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 height of the rectangle, 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"`
	// The radius of the rectangle corner rounding, as a percentage of the media width
	CornerRadiusPercentage float64 `json:"corner_radius_percentage"`
	// contains filtered or unexported fields
}

Describes position of a clickable rectangle area on a story media

func UnmarshalStoryAreaPosition added in v0.7.0

func UnmarshalStoryAreaPosition(data json.RawMessage) (*StoryAreaPosition, error)

func (*StoryAreaPosition) GetClass added in v0.7.0

func (*StoryAreaPosition) GetClass() string

func (*StoryAreaPosition) GetType added in v0.7.0

func (*StoryAreaPosition) GetType() string

func (*StoryAreaPosition) MarshalJSON added in v0.7.0

func (entity *StoryAreaPosition) MarshalJSON() ([]byte, error)

type StoryAreaType added in v0.7.0

type StoryAreaType interface {
	StoryAreaTypeType() string
}

Describes type of clickable area on a story media

func UnmarshalListOfStoryAreaType added in v0.7.0

func UnmarshalListOfStoryAreaType(dataList []json.RawMessage) ([]StoryAreaType, error)

func UnmarshalStoryAreaType added in v0.7.0

func UnmarshalStoryAreaType(data json.RawMessage) (StoryAreaType, error)
type StoryAreaTypeLink struct {

	// HTTP or tg:// URL to be opened when the area is clicked
	Url string `json:"url"`
	// contains filtered or unexported fields
}

An area pointing to a HTTP or tg:// link

func UnmarshalStoryAreaTypeLink(data json.RawMessage) (*StoryAreaTypeLink, error)

func (*StoryAreaTypeLink) GetClass added in v0.7.3

func (*StoryAreaTypeLink) GetClass() string

func (*StoryAreaTypeLink) GetType added in v0.7.3

func (*StoryAreaTypeLink) GetType() string

func (*StoryAreaTypeLink) MarshalJSON added in v0.7.3

func (entity *StoryAreaTypeLink) MarshalJSON() ([]byte, error)

func (*StoryAreaTypeLink) StoryAreaTypeType added in v0.7.3

func (*StoryAreaTypeLink) StoryAreaTypeType() string

type StoryAreaTypeLocation added in v0.7.0

type StoryAreaTypeLocation struct {

	// The location
	Location *Location `json:"location"`
	// Address of the location; may be null if unknown
	Address *LocationAddress `json:"address"`
	// contains filtered or unexported fields
}

An area pointing to a location

func UnmarshalStoryAreaTypeLocation added in v0.7.0

func UnmarshalStoryAreaTypeLocation(data json.RawMessage) (*StoryAreaTypeLocation, error)

func (*StoryAreaTypeLocation) GetClass added in v0.7.0

func (*StoryAreaTypeLocation) GetClass() string

func (*StoryAreaTypeLocation) GetType added in v0.7.0

func (*StoryAreaTypeLocation) GetType() string

func (*StoryAreaTypeLocation) MarshalJSON added in v0.7.0

func (entity *StoryAreaTypeLocation) MarshalJSON() ([]byte, error)

func (*StoryAreaTypeLocation) StoryAreaTypeType added in v0.7.0

func (*StoryAreaTypeLocation) StoryAreaTypeType() string

type StoryAreaTypeMessage added in v0.7.2

type StoryAreaTypeMessage struct {

	// Identifier of the chat with the message
	ChatId int64 `json:"chat_id"`
	// Identifier of the message
	MessageId int64 `json:"message_id"`
	// contains filtered or unexported fields
}

An area pointing to a message

func UnmarshalStoryAreaTypeMessage added in v0.7.2

func UnmarshalStoryAreaTypeMessage(data json.RawMessage) (*StoryAreaTypeMessage, error)

func (*StoryAreaTypeMessage) GetClass added in v0.7.2

func (*StoryAreaTypeMessage) GetClass() string

func (*StoryAreaTypeMessage) GetType added in v0.7.2

func (*StoryAreaTypeMessage) GetType() string

func (*StoryAreaTypeMessage) MarshalJSON added in v0.7.2

func (entity *StoryAreaTypeMessage) MarshalJSON() ([]byte, error)

func (*StoryAreaTypeMessage) StoryAreaTypeType added in v0.7.2

func (*StoryAreaTypeMessage) StoryAreaTypeType() string

type StoryAreaTypeSuggestedReaction added in v0.7.1

type StoryAreaTypeSuggestedReaction struct {

	// Type of the reaction
	ReactionType ReactionType `json:"reaction_type"`
	// Number of times the reaction was added
	TotalCount int32 `json:"total_count"`
	// True, if reaction has a dark background
	IsDark bool `json:"is_dark"`
	// True, if reaction corner is flipped
	IsFlipped bool `json:"is_flipped"`
	// contains filtered or unexported fields
}

An area pointing to a suggested reaction. App needs to show a clickable reaction on the area and call setStoryReaction when the are is clicked

func UnmarshalStoryAreaTypeSuggestedReaction added in v0.7.1

func UnmarshalStoryAreaTypeSuggestedReaction(data json.RawMessage) (*StoryAreaTypeSuggestedReaction, error)

func (*StoryAreaTypeSuggestedReaction) GetClass added in v0.7.1

func (*StoryAreaTypeSuggestedReaction) GetType added in v0.7.1

func (*StoryAreaTypeSuggestedReaction) MarshalJSON added in v0.7.1

func (entity *StoryAreaTypeSuggestedReaction) MarshalJSON() ([]byte, error)

func (*StoryAreaTypeSuggestedReaction) StoryAreaTypeType added in v0.7.1

func (*StoryAreaTypeSuggestedReaction) StoryAreaTypeType() string

func (*StoryAreaTypeSuggestedReaction) UnmarshalJSON added in v0.7.1

func (storyAreaTypeSuggestedReaction *StoryAreaTypeSuggestedReaction) UnmarshalJSON(data []byte) error

type StoryAreaTypeVenue added in v0.7.0

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 v0.7.0

func UnmarshalStoryAreaTypeVenue(data json.RawMessage) (*StoryAreaTypeVenue, error)

func (*StoryAreaTypeVenue) GetClass added in v0.7.0

func (*StoryAreaTypeVenue) GetClass() string

func (*StoryAreaTypeVenue) GetType added in v0.7.0

func (*StoryAreaTypeVenue) GetType() string

func (*StoryAreaTypeVenue) MarshalJSON added in v0.7.0

func (entity *StoryAreaTypeVenue) MarshalJSON() ([]byte, error)

func (*StoryAreaTypeVenue) StoryAreaTypeType added in v0.7.0

func (*StoryAreaTypeVenue) StoryAreaTypeType() string

type StoryAreaTypeWeather added in v0.7.3

type StoryAreaTypeWeather struct {

	// Temperature, in degree Celsius
	Temperature float64 `json:"temperature"`
	// Emoji representing the weather
	Emoji string `json:"emoji"`
	// A color of the area background in the ARGB format
	BackgroundColor int32 `json:"background_color"`
	// contains filtered or unexported fields
}

An area with information about weather

func UnmarshalStoryAreaTypeWeather added in v0.7.3

func UnmarshalStoryAreaTypeWeather(data json.RawMessage) (*StoryAreaTypeWeather, error)

func (*StoryAreaTypeWeather) GetClass added in v0.7.3

func (*StoryAreaTypeWeather) GetClass() string

func (*StoryAreaTypeWeather) GetType added in v0.7.3

func (*StoryAreaTypeWeather) GetType() string

func (*StoryAreaTypeWeather) MarshalJSON added in v0.7.3

func (entity *StoryAreaTypeWeather) MarshalJSON() ([]byte, error)

func (*StoryAreaTypeWeather) StoryAreaTypeType added in v0.7.3

func (*StoryAreaTypeWeather) StoryAreaTypeType() string

type StoryContent added in v0.7.0

type StoryContent interface {
	StoryContentType() string
}

Contains the content of a story

func UnmarshalListOfStoryContent added in v0.7.0

func UnmarshalListOfStoryContent(dataList []json.RawMessage) ([]StoryContent, error)

func UnmarshalStoryContent added in v0.7.0

func UnmarshalStoryContent(data json.RawMessage) (StoryContent, error)

type StoryContentPhoto added in v0.7.0

type StoryContentPhoto struct {

	// The photo
	Photo *Photo `json:"photo"`
	// contains filtered or unexported fields
}

A photo story

func UnmarshalStoryContentPhoto added in v0.7.0

func UnmarshalStoryContentPhoto(data json.RawMessage) (*StoryContentPhoto, error)

func (*StoryContentPhoto) GetClass added in v0.7.0

func (*StoryContentPhoto) GetClass() string

func (*StoryContentPhoto) GetType added in v0.7.0

func (*StoryContentPhoto) GetType() string

func (*StoryContentPhoto) MarshalJSON added in v0.7.0

func (entity *StoryContentPhoto) MarshalJSON() ([]byte, error)

func (*StoryContentPhoto) StoryContentType added in v0.7.0

func (*StoryContentPhoto) StoryContentType() string

type StoryContentUnsupported added in v0.7.0

type StoryContentUnsupported struct {
	// contains filtered or unexported fields
}

A story content that is not supported in the current TDLib version

func UnmarshalStoryContentUnsupported added in v0.7.0

func UnmarshalStoryContentUnsupported(data json.RawMessage) (*StoryContentUnsupported, error)

func (*StoryContentUnsupported) GetClass added in v0.7.0

func (*StoryContentUnsupported) GetClass() string

func (*StoryContentUnsupported) GetType added in v0.7.0

func (*StoryContentUnsupported) GetType() string

func (*StoryContentUnsupported) MarshalJSON added in v0.7.0

func (entity *StoryContentUnsupported) MarshalJSON() ([]byte, error)

func (*StoryContentUnsupported) StoryContentType added in v0.7.0

func (*StoryContentUnsupported) StoryContentType() string

type StoryContentVideo added in v0.7.0

type StoryContentVideo struct {

	// The video in MPEG4 format
	Video *StoryVideo `json:"video"`
	// Alternative version of the video in MPEG4 format, encoded with H.264 codec; may be null
	AlternativeVideo *StoryVideo `json:"alternative_video"`
	// contains filtered or unexported fields
}

A video story

func UnmarshalStoryContentVideo added in v0.7.0

func UnmarshalStoryContentVideo(data json.RawMessage) (*StoryContentVideo, error)

func (*StoryContentVideo) GetClass added in v0.7.0

func (*StoryContentVideo) GetClass() string

func (*StoryContentVideo) GetType added in v0.7.0

func (*StoryContentVideo) GetType() string

func (*StoryContentVideo) MarshalJSON added in v0.7.0

func (entity *StoryContentVideo) MarshalJSON() ([]byte, error)

func (*StoryContentVideo) StoryContentType added in v0.7.0

func (*StoryContentVideo) StoryContentType() string

type StoryFullId added in v0.7.1

type StoryFullId struct {

	// Identifier of the chat that posted the story
	SenderChatId int64 `json:"sender_chat_id"`
	// Unique story identifier among stories of the given sender
	StoryId int32 `json:"story_id"`
	// contains filtered or unexported fields
}

Contains identifier of a story along with identifier of its sender

func UnmarshalStoryFullId added in v0.7.1

func UnmarshalStoryFullId(data json.RawMessage) (*StoryFullId, error)

func (*StoryFullId) GetClass added in v0.7.1

func (*StoryFullId) GetClass() string

func (*StoryFullId) GetType added in v0.7.1

func (*StoryFullId) GetType() string

func (*StoryFullId) MarshalJSON added in v0.7.1

func (entity *StoryFullId) MarshalJSON() ([]byte, error)

type StoryInfo added in v0.7.0

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 v0.7.0

func UnmarshalStoryInfo(data json.RawMessage) (*StoryInfo, error)

func (*StoryInfo) GetClass added in v0.7.0

func (*StoryInfo) GetClass() string

func (*StoryInfo) GetType added in v0.7.0

func (*StoryInfo) GetType() string

func (*StoryInfo) MarshalJSON added in v0.7.0

func (entity *StoryInfo) MarshalJSON() ([]byte, error)

type StoryInteraction added in v0.7.2

type StoryInteraction struct {

	// Identifier of the user or chat that made the interaction
	ActorId MessageSender `json:"actor_id"`
	// Approximate point in time (Unix timestamp) when the interaction happened
	InteractionDate int32 `json:"interaction_date"`
	// Block list to which the actor is added; may be null if none or for chat stories
	BlockList BlockList `json:"block_list"`
	// Type of the interaction
	Type StoryInteractionType `json:"type"`
	// contains filtered or unexported fields
}

Represents interaction with a story

func UnmarshalStoryInteraction added in v0.7.2

func UnmarshalStoryInteraction(data json.RawMessage) (*StoryInteraction, error)

func (*StoryInteraction) GetClass added in v0.7.2

func (*StoryInteraction) GetClass() string

func (*StoryInteraction) GetType added in v0.7.2

func (*StoryInteraction) GetType() string

func (*StoryInteraction) MarshalJSON added in v0.7.2

func (entity *StoryInteraction) MarshalJSON() ([]byte, error)

func (*StoryInteraction) UnmarshalJSON added in v0.7.2

func (storyInteraction *StoryInteraction) UnmarshalJSON(data []byte) error

type StoryInteractionInfo added in v0.7.0

type StoryInteractionInfo struct {

	// Number of times the story was viewed
	ViewCount int32 `json:"view_count"`
	// Number of times the story was forwarded; 0 if none or unknown
	ForwardCount int32 `json:"forward_count"`
	// Number of reactions added to the story; 0 if none or unknown
	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 v0.7.0

func UnmarshalStoryInteractionInfo(data json.RawMessage) (*StoryInteractionInfo, error)

func (*StoryInteractionInfo) GetClass added in v0.7.0

func (*StoryInteractionInfo) GetClass() string

func (*StoryInteractionInfo) GetType added in v0.7.0

func (*StoryInteractionInfo) GetType() string

func (*StoryInteractionInfo) MarshalJSON added in v0.7.0

func (entity *StoryInteractionInfo) MarshalJSON() ([]byte, error)

type StoryInteractionType added in v0.7.2

type StoryInteractionType interface {
	StoryInteractionTypeType() string
}

Describes type of interaction with a story

func UnmarshalListOfStoryInteractionType added in v0.7.2

func UnmarshalListOfStoryInteractionType(dataList []json.RawMessage) ([]StoryInteractionType, error)

func UnmarshalStoryInteractionType added in v0.7.2

func UnmarshalStoryInteractionType(data json.RawMessage) (StoryInteractionType, error)

type StoryInteractionTypeForward added in v0.7.2

type StoryInteractionTypeForward struct {

	// The message with story forward
	Message *Message `json:"message"`
	// contains filtered or unexported fields
}

A forward of the story as a message

func UnmarshalStoryInteractionTypeForward added in v0.7.2

func UnmarshalStoryInteractionTypeForward(data json.RawMessage) (*StoryInteractionTypeForward, error)

func (*StoryInteractionTypeForward) GetClass added in v0.7.2

func (*StoryInteractionTypeForward) GetClass() string

func (*StoryInteractionTypeForward) GetType added in v0.7.2

func (*StoryInteractionTypeForward) MarshalJSON added in v0.7.2

func (entity *StoryInteractionTypeForward) MarshalJSON() ([]byte, error)

func (*StoryInteractionTypeForward) StoryInteractionTypeType added in v0.7.2

func (*StoryInteractionTypeForward) StoryInteractionTypeType() string

type StoryInteractionTypeRepost added in v0.7.2

type StoryInteractionTypeRepost struct {

	// The reposted story
	Story *Story `json:"story"`
	// contains filtered or unexported fields
}

A repost of the story as a story

func UnmarshalStoryInteractionTypeRepost added in v0.7.2

func UnmarshalStoryInteractionTypeRepost(data json.RawMessage) (*StoryInteractionTypeRepost, error)

func (*StoryInteractionTypeRepost) GetClass added in v0.7.2

func (*StoryInteractionTypeRepost) GetClass() string

func (*StoryInteractionTypeRepost) GetType added in v0.7.2

func (*StoryInteractionTypeRepost) MarshalJSON added in v0.7.2

func (entity *StoryInteractionTypeRepost) MarshalJSON() ([]byte, error)

func (*StoryInteractionTypeRepost) StoryInteractionTypeType added in v0.7.2

func (*StoryInteractionTypeRepost) StoryInteractionTypeType() string

type StoryInteractionTypeView added in v0.7.2

type StoryInteractionTypeView struct {

	// Type of the reaction that was chosen by the viewer; may be null if none
	ChosenReactionType ReactionType `json:"chosen_reaction_type"`
	// contains filtered or unexported fields
}

A view of the story

func UnmarshalStoryInteractionTypeView added in v0.7.2

func UnmarshalStoryInteractionTypeView(data json.RawMessage) (*StoryInteractionTypeView, error)

func (*StoryInteractionTypeView) GetClass added in v0.7.2

func (*StoryInteractionTypeView) GetClass() string

func (*StoryInteractionTypeView) GetType added in v0.7.2

func (*StoryInteractionTypeView) GetType() string

func (*StoryInteractionTypeView) MarshalJSON added in v0.7.2

func (entity *StoryInteractionTypeView) MarshalJSON() ([]byte, error)

func (*StoryInteractionTypeView) StoryInteractionTypeType added in v0.7.2

func (*StoryInteractionTypeView) StoryInteractionTypeType() string

func (*StoryInteractionTypeView) UnmarshalJSON added in v0.7.2

func (storyInteractionTypeView *StoryInteractionTypeView) UnmarshalJSON(data []byte) error

type StoryInteractions added in v0.7.2

type StoryInteractions struct {

	// Approximate total number of interactions found
	TotalCount int32 `json:"total_count"`
	// Approximate total number of found forwards and reposts; always 0 for chat stories
	TotalForwardCount int32 `json:"total_forward_count"`
	// Approximate total number of found reactions; always 0 for chat stories
	TotalReactionCount int32 `json:"total_reaction_count"`
	// List of story interactions
	Interactions []*StoryInteraction `json:"interactions"`
	// The offset for the next request. If empty, then there are no more results
	NextOffset string `json:"next_offset"`
	// contains filtered or unexported fields
}

Represents a list of interactions with a story

func UnmarshalStoryInteractions added in v0.7.2

func UnmarshalStoryInteractions(data json.RawMessage) (*StoryInteractions, error)

func (*StoryInteractions) GetClass added in v0.7.2

func (*StoryInteractions) GetClass() string

func (*StoryInteractions) GetType added in v0.7.2

func (*StoryInteractions) GetType() string

func (*StoryInteractions) MarshalJSON added in v0.7.2

func (entity *StoryInteractions) MarshalJSON() ([]byte, error)

type StoryList added in v0.7.0

type StoryList interface {
	StoryListType() string
}

Describes a list of stories

func UnmarshalListOfStoryList added in v0.7.0

func UnmarshalListOfStoryList(dataList []json.RawMessage) ([]StoryList, error)

func UnmarshalStoryList added in v0.7.0

func UnmarshalStoryList(data json.RawMessage) (StoryList, error)

type StoryListArchive added in v0.7.0

type StoryListArchive struct {
	// contains filtered or unexported fields
}

The list of stories, shown in the Arvhive chat list

func UnmarshalStoryListArchive added in v0.7.0

func UnmarshalStoryListArchive(data json.RawMessage) (*StoryListArchive, error)

func (*StoryListArchive) GetClass added in v0.7.0

func (*StoryListArchive) GetClass() string

func (*StoryListArchive) GetType added in v0.7.0

func (*StoryListArchive) GetType() string

func (*StoryListArchive) MarshalJSON added in v0.7.0

func (entity *StoryListArchive) MarshalJSON() ([]byte, error)

func (*StoryListArchive) StoryListType added in v0.7.0

func (*StoryListArchive) StoryListType() string

type StoryListMain added in v0.7.0

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 v0.7.0

func UnmarshalStoryListMain(data json.RawMessage) (*StoryListMain, error)

func (*StoryListMain) GetClass added in v0.7.0

func (*StoryListMain) GetClass() string

func (*StoryListMain) GetType added in v0.7.0

func (*StoryListMain) GetType() string

func (*StoryListMain) MarshalJSON added in v0.7.0

func (entity *StoryListMain) MarshalJSON() ([]byte, error)

func (*StoryListMain) StoryListType added in v0.7.0

func (*StoryListMain) StoryListType() string

type StoryOrigin added in v0.7.1

type StoryOrigin interface {
	StoryOriginType() string
}

Contains information about the origin of a story that was reposted

func UnmarshalListOfStoryOrigin added in v0.7.1

func UnmarshalListOfStoryOrigin(dataList []json.RawMessage) ([]StoryOrigin, error)

func UnmarshalStoryOrigin added in v0.7.1

func UnmarshalStoryOrigin(data json.RawMessage) (StoryOrigin, error)

type StoryOriginHiddenUser added in v0.7.1

type StoryOriginHiddenUser struct {

	// Name of the story sender
	SenderName string `json:"sender_name"`
	// contains filtered or unexported fields
}

The original story was sent by an unknown user

func UnmarshalStoryOriginHiddenUser added in v0.7.1

func UnmarshalStoryOriginHiddenUser(data json.RawMessage) (*StoryOriginHiddenUser, error)

func (*StoryOriginHiddenUser) GetClass added in v0.7.1

func (*StoryOriginHiddenUser) GetClass() string

func (*StoryOriginHiddenUser) GetType added in v0.7.1

func (*StoryOriginHiddenUser) GetType() string

func (*StoryOriginHiddenUser) MarshalJSON added in v0.7.1

func (entity *StoryOriginHiddenUser) MarshalJSON() ([]byte, error)

func (*StoryOriginHiddenUser) StoryOriginType added in v0.7.1

func (*StoryOriginHiddenUser) StoryOriginType() string

type StoryOriginPublicStory added in v0.7.1

type StoryOriginPublicStory struct {

	// Identifier of the chat that posted original story
	ChatId int64 `json:"chat_id"`
	// Story identifier of the original story
	StoryId int32 `json:"story_id"`
	// contains filtered or unexported fields
}

The original story was a public story with known sender

func UnmarshalStoryOriginPublicStory added in v0.7.1

func UnmarshalStoryOriginPublicStory(data json.RawMessage) (*StoryOriginPublicStory, error)

func (*StoryOriginPublicStory) GetClass added in v0.7.1

func (*StoryOriginPublicStory) GetClass() string

func (*StoryOriginPublicStory) GetType added in v0.7.1

func (*StoryOriginPublicStory) GetType() string

func (*StoryOriginPublicStory) MarshalJSON added in v0.7.1

func (entity *StoryOriginPublicStory) MarshalJSON() ([]byte, error)

func (*StoryOriginPublicStory) StoryOriginType added in v0.7.1

func (*StoryOriginPublicStory) StoryOriginType() string

type StoryPrivacySettings added in v0.7.0

type StoryPrivacySettings interface {
	StoryPrivacySettingsType() string
}

Describes privacy settings of a story

func UnmarshalListOfStoryPrivacySettings added in v0.7.0

func UnmarshalListOfStoryPrivacySettings(dataList []json.RawMessage) ([]StoryPrivacySettings, error)

func UnmarshalStoryPrivacySettings added in v0.7.0

func UnmarshalStoryPrivacySettings(data json.RawMessage) (StoryPrivacySettings, error)

type StoryPrivacySettingsCloseFriends added in v0.7.0

type StoryPrivacySettingsCloseFriends struct {
	// contains filtered or unexported fields
}

The story can be viewed by all close friends

func UnmarshalStoryPrivacySettingsCloseFriends added in v0.7.0

func UnmarshalStoryPrivacySettingsCloseFriends(data json.RawMessage) (*StoryPrivacySettingsCloseFriends, error)

func (*StoryPrivacySettingsCloseFriends) GetClass added in v0.7.0

func (*StoryPrivacySettingsCloseFriends) GetType added in v0.7.0

func (*StoryPrivacySettingsCloseFriends) MarshalJSON added in v0.7.0

func (entity *StoryPrivacySettingsCloseFriends) MarshalJSON() ([]byte, error)

func (*StoryPrivacySettingsCloseFriends) StoryPrivacySettingsType added in v0.7.0

func (*StoryPrivacySettingsCloseFriends) StoryPrivacySettingsType() string

type StoryPrivacySettingsContacts added in v0.7.0

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 v0.7.0

func UnmarshalStoryPrivacySettingsContacts(data json.RawMessage) (*StoryPrivacySettingsContacts, error)

func (*StoryPrivacySettingsContacts) GetClass added in v0.7.0

func (*StoryPrivacySettingsContacts) GetType added in v0.7.0

func (*StoryPrivacySettingsContacts) MarshalJSON added in v0.7.0

func (entity *StoryPrivacySettingsContacts) MarshalJSON() ([]byte, error)

func (*StoryPrivacySettingsContacts) StoryPrivacySettingsType added in v0.7.0

func (*StoryPrivacySettingsContacts) StoryPrivacySettingsType() string

type StoryPrivacySettingsEveryone added in v0.7.0

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 v0.7.0

func UnmarshalStoryPrivacySettingsEveryone(data json.RawMessage) (*StoryPrivacySettingsEveryone, error)

func (*StoryPrivacySettingsEveryone) GetClass added in v0.7.0

func (*StoryPrivacySettingsEveryone) GetType added in v0.7.0

func (*StoryPrivacySettingsEveryone) MarshalJSON added in v0.7.0

func (entity *StoryPrivacySettingsEveryone) MarshalJSON() ([]byte, error)

func (*StoryPrivacySettingsEveryone) StoryPrivacySettingsType added in v0.7.0

func (*StoryPrivacySettingsEveryone) StoryPrivacySettingsType() string

type StoryPrivacySettingsSelectedUsers added in v0.7.0

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 v0.7.0

func UnmarshalStoryPrivacySettingsSelectedUsers(data json.RawMessage) (*StoryPrivacySettingsSelectedUsers, error)

func (*StoryPrivacySettingsSelectedUsers) GetClass added in v0.7.0

func (*StoryPrivacySettingsSelectedUsers) GetType added in v0.7.0

func (*StoryPrivacySettingsSelectedUsers) MarshalJSON added in v0.7.0

func (entity *StoryPrivacySettingsSelectedUsers) MarshalJSON() ([]byte, error)

func (*StoryPrivacySettingsSelectedUsers) StoryPrivacySettingsType added in v0.7.0

func (*StoryPrivacySettingsSelectedUsers) StoryPrivacySettingsType() string

type StoryRepostInfo added in v0.7.1

type StoryRepostInfo struct {

	// Origin of the story that was reposted
	Origin StoryOrigin `json:"origin"`
	// True, if story content was modified during reposting; otherwise, story wasn't modified
	IsContentModified bool `json:"is_content_modified"`
	// contains filtered or unexported fields
}

Contains information about original story that was reposted

func UnmarshalStoryRepostInfo added in v0.7.1

func UnmarshalStoryRepostInfo(data json.RawMessage) (*StoryRepostInfo, error)

func (*StoryRepostInfo) GetClass added in v0.7.1

func (*StoryRepostInfo) GetClass() string

func (*StoryRepostInfo) GetType added in v0.7.1

func (*StoryRepostInfo) GetType() string

func (*StoryRepostInfo) MarshalJSON added in v0.7.1

func (entity *StoryRepostInfo) MarshalJSON() ([]byte, error)

func (*StoryRepostInfo) UnmarshalJSON added in v0.7.1

func (storyRepostInfo *StoryRepostInfo) UnmarshalJSON(data []byte) error

type StoryStatistics added in v0.7.1

type StoryStatistics struct {

	// A graph containing number of story views and shares
	StoryInteractionGraph StatisticalGraph `json:"story_interaction_graph"`
	// A graph containing number of story reactions
	StoryReactionGraph StatisticalGraph `json:"story_reaction_graph"`
	// contains filtered or unexported fields
}

A detailed statistics about a story

func UnmarshalStoryStatistics added in v0.7.1

func UnmarshalStoryStatistics(data json.RawMessage) (*StoryStatistics, error)

func (*StoryStatistics) GetClass added in v0.7.1

func (*StoryStatistics) GetClass() string

func (*StoryStatistics) GetType added in v0.7.1

func (*StoryStatistics) GetType() string

func (*StoryStatistics) MarshalJSON added in v0.7.1

func (entity *StoryStatistics) MarshalJSON() ([]byte, error)

func (*StoryStatistics) UnmarshalJSON added in v0.7.1

func (storyStatistics *StoryStatistics) UnmarshalJSON(data []byte) error

type StoryVideo added in v0.7.0

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 expected to be preloaded, in bytes
	PreloadPrefixSize int32 `json:"preload_prefix_size"`
	// Timestamp of the frame used as video thumbnail
	CoverFrameTimestamp float64 `json:"cover_frame_timestamp"`
	// 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 v0.7.0

func UnmarshalStoryVideo(data json.RawMessage) (*StoryVideo, error)

func (*StoryVideo) GetClass added in v0.7.0

func (*StoryVideo) GetClass() string

func (*StoryVideo) GetType added in v0.7.0

func (*StoryVideo) GetType() string

func (*StoryVideo) MarshalJSON added in v0.7.0

func (entity *StoryVideo) MarshalJSON() ([]byte, error)

type SuggestUserProfilePhotoRequest added in v0.7.0

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 added in v0.3.0

type SuggestedAction interface {
	SuggestedActionType() string
}

Describes an action suggested to the current user

func UnmarshalListOfSuggestedAction added in v0.3.2

func UnmarshalListOfSuggestedAction(dataList []json.RawMessage) ([]SuggestedAction, error)

func UnmarshalSuggestedAction added in v0.3.0

func UnmarshalSuggestedAction(data json.RawMessage) (SuggestedAction, error)

type SuggestedActionCheckPassword added in v0.5.0

type SuggestedActionCheckPassword struct {
	// contains filtered or unexported fields
}

Suggests the user to check whether they still remember their 2-step verification password

func UnmarshalSuggestedActionCheckPassword added in v0.5.0

func UnmarshalSuggestedActionCheckPassword(data json.RawMessage) (*SuggestedActionCheckPassword, error)

func (*SuggestedActionCheckPassword) GetClass added in v0.5.0

func (*SuggestedActionCheckPassword) GetType added in v0.5.0

func (*SuggestedActionCheckPassword) MarshalJSON added in v0.5.0

func (entity *SuggestedActionCheckPassword) MarshalJSON() ([]byte, error)

func (*SuggestedActionCheckPassword) SuggestedActionType added in v0.5.0

func (*SuggestedActionCheckPassword) SuggestedActionType() string

type SuggestedActionCheckPhoneNumber added in v0.3.0

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 added in v0.3.0

func UnmarshalSuggestedActionCheckPhoneNumber(data json.RawMessage) (*SuggestedActionCheckPhoneNumber, error)

func (*SuggestedActionCheckPhoneNumber) GetClass added in v0.3.0

func (*SuggestedActionCheckPhoneNumber) GetType added in v0.3.0

func (*SuggestedActionCheckPhoneNumber) MarshalJSON added in v0.3.0

func (entity *SuggestedActionCheckPhoneNumber) MarshalJSON() ([]byte, error)

func (*SuggestedActionCheckPhoneNumber) SuggestedActionType added in v0.3.0

func (*SuggestedActionCheckPhoneNumber) SuggestedActionType() string

type SuggestedActionConvertToBroadcastGroup added in v0.5.0

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 added in v0.5.0

func UnmarshalSuggestedActionConvertToBroadcastGroup(data json.RawMessage) (*SuggestedActionConvertToBroadcastGroup, error)

func (*SuggestedActionConvertToBroadcastGroup) GetClass added in v0.5.0

func (*SuggestedActionConvertToBroadcastGroup) GetType added in v0.5.0

func (*SuggestedActionConvertToBroadcastGroup) MarshalJSON added in v0.5.0

func (entity *SuggestedActionConvertToBroadcastGroup) MarshalJSON() ([]byte, error)

func (*SuggestedActionConvertToBroadcastGroup) SuggestedActionType added in v0.5.0

func (*SuggestedActionConvertToBroadcastGroup) SuggestedActionType() string

type SuggestedActionEnableArchiveAndMuteNewChats added in v0.3.0

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 added in v0.3.0

func UnmarshalSuggestedActionEnableArchiveAndMuteNewChats(data json.RawMessage) (*SuggestedActionEnableArchiveAndMuteNewChats, error)

func (*SuggestedActionEnableArchiveAndMuteNewChats) GetClass added in v0.3.0

func (*SuggestedActionEnableArchiveAndMuteNewChats) GetType added in v0.3.0

func (*SuggestedActionEnableArchiveAndMuteNewChats) MarshalJSON added in v0.3.0

func (entity *SuggestedActionEnableArchiveAndMuteNewChats) MarshalJSON() ([]byte, error)

func (*SuggestedActionEnableArchiveAndMuteNewChats) SuggestedActionType added in v0.3.0

func (*SuggestedActionEnableArchiveAndMuteNewChats) SuggestedActionType() string

type SuggestedActionExtendPremium added in v0.7.3

type SuggestedActionExtendPremium struct {

	// A URL for managing Telegram Premium subscription
	ManagePremiumSubscriptionUrl string `json:"manage_premium_subscription_url"`
	// contains filtered or unexported fields
}

Suggests the user to extend their expiring Telegram Premium subscription

func UnmarshalSuggestedActionExtendPremium added in v0.7.3

func UnmarshalSuggestedActionExtendPremium(data json.RawMessage) (*SuggestedActionExtendPremium, error)

func (*SuggestedActionExtendPremium) GetClass added in v0.7.3

func (*SuggestedActionExtendPremium) GetType added in v0.7.3

func (*SuggestedActionExtendPremium) MarshalJSON added in v0.7.3

func (entity *SuggestedActionExtendPremium) MarshalJSON() ([]byte, error)

func (*SuggestedActionExtendPremium) SuggestedActionType added in v0.7.3

func (*SuggestedActionExtendPremium) SuggestedActionType() string

type SuggestedActionExtendStarSubscriptions added in v0.7.3

type SuggestedActionExtendStarSubscriptions struct {
	// contains filtered or unexported fields
}

Suggests the user to extend their expiring Telegram Star subscriptions. Call getStarSubscriptions with only_expiring == true to get the number of expiring subscriptions and the number of required to buy Telegram Stars

func UnmarshalSuggestedActionExtendStarSubscriptions added in v0.7.3

func UnmarshalSuggestedActionExtendStarSubscriptions(data json.RawMessage) (*SuggestedActionExtendStarSubscriptions, error)

func (*SuggestedActionExtendStarSubscriptions) GetClass added in v0.7.3

func (*SuggestedActionExtendStarSubscriptions) GetType added in v0.7.3

func (*SuggestedActionExtendStarSubscriptions) MarshalJSON added in v0.7.3

func (entity *SuggestedActionExtendStarSubscriptions) MarshalJSON() ([]byte, error)

func (*SuggestedActionExtendStarSubscriptions) SuggestedActionType added in v0.7.3

func (*SuggestedActionExtendStarSubscriptions) SuggestedActionType() string

type SuggestedActionGiftPremiumForChristmas added in v0.7.2

type SuggestedActionGiftPremiumForChristmas struct {
	// contains filtered or unexported fields
}

Suggests the user to gift Telegram Premium to friends for Christmas

func UnmarshalSuggestedActionGiftPremiumForChristmas added in v0.7.2

func UnmarshalSuggestedActionGiftPremiumForChristmas(data json.RawMessage) (*SuggestedActionGiftPremiumForChristmas, error)

func (*SuggestedActionGiftPremiumForChristmas) GetClass added in v0.7.2

func (*SuggestedActionGiftPremiumForChristmas) GetType added in v0.7.2

func (*SuggestedActionGiftPremiumForChristmas) MarshalJSON added in v0.7.2

func (entity *SuggestedActionGiftPremiumForChristmas) MarshalJSON() ([]byte, error)

func (*SuggestedActionGiftPremiumForChristmas) SuggestedActionType added in v0.7.2

func (*SuggestedActionGiftPremiumForChristmas) SuggestedActionType() string

type SuggestedActionRestorePremium added in v0.7.0

type SuggestedActionRestorePremium struct {
	// contains filtered or unexported fields
}

Suggests the user to restore a recently expired Premium subscription

func UnmarshalSuggestedActionRestorePremium added in v0.7.0

func UnmarshalSuggestedActionRestorePremium(data json.RawMessage) (*SuggestedActionRestorePremium, error)

func (*SuggestedActionRestorePremium) GetClass added in v0.7.0

func (*SuggestedActionRestorePremium) GetType added in v0.7.0

func (*SuggestedActionRestorePremium) MarshalJSON added in v0.7.0

func (entity *SuggestedActionRestorePremium) MarshalJSON() ([]byte, error)

func (*SuggestedActionRestorePremium) SuggestedActionType added in v0.7.0

func (*SuggestedActionRestorePremium) SuggestedActionType() string

type SuggestedActionSetBirthdate added in v0.7.2

type SuggestedActionSetBirthdate struct {
	// contains filtered or unexported fields
}

Suggests the user to set birthdate

func UnmarshalSuggestedActionSetBirthdate added in v0.7.2

func UnmarshalSuggestedActionSetBirthdate(data json.RawMessage) (*SuggestedActionSetBirthdate, error)

func (*SuggestedActionSetBirthdate) GetClass added in v0.7.2

func (*SuggestedActionSetBirthdate) GetClass() string

func (*SuggestedActionSetBirthdate) GetType added in v0.7.2

func (*SuggestedActionSetBirthdate) MarshalJSON added in v0.7.2

func (entity *SuggestedActionSetBirthdate) MarshalJSON() ([]byte, error)

func (*SuggestedActionSetBirthdate) SuggestedActionType added in v0.7.2

func (*SuggestedActionSetBirthdate) SuggestedActionType() string

type SuggestedActionSetPassword added in v0.5.0

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 added in v0.5.0

func UnmarshalSuggestedActionSetPassword(data json.RawMessage) (*SuggestedActionSetPassword, error)

func (*SuggestedActionSetPassword) GetClass added in v0.5.0

func (*SuggestedActionSetPassword) GetClass() string

func (*SuggestedActionSetPassword) GetType added in v0.5.0

func (*SuggestedActionSetPassword) MarshalJSON added in v0.5.0

func (entity *SuggestedActionSetPassword) MarshalJSON() ([]byte, error)

func (*SuggestedActionSetPassword) SuggestedActionType added in v0.5.0

func (*SuggestedActionSetPassword) SuggestedActionType() string

type SuggestedActionSubscribeToAnnualPremium added in v0.7.0

type SuggestedActionSubscribeToAnnualPremium struct {
	// contains filtered or unexported fields
}

Suggests the user to subscribe to the Premium subscription with annual payments

func UnmarshalSuggestedActionSubscribeToAnnualPremium added in v0.7.0

func UnmarshalSuggestedActionSubscribeToAnnualPremium(data json.RawMessage) (*SuggestedActionSubscribeToAnnualPremium, error)

func (*SuggestedActionSubscribeToAnnualPremium) GetClass added in v0.7.0

func (*SuggestedActionSubscribeToAnnualPremium) GetType added in v0.7.0

func (*SuggestedActionSubscribeToAnnualPremium) MarshalJSON added in v0.7.0

func (entity *SuggestedActionSubscribeToAnnualPremium) MarshalJSON() ([]byte, error)

func (*SuggestedActionSubscribeToAnnualPremium) SuggestedActionType added in v0.7.0

func (*SuggestedActionSubscribeToAnnualPremium) SuggestedActionType() string

type SuggestedActionUpgradePremium added in v0.7.0

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 v0.7.0

func UnmarshalSuggestedActionUpgradePremium(data json.RawMessage) (*SuggestedActionUpgradePremium, error)

func (*SuggestedActionUpgradePremium) GetClass added in v0.7.0

func (*SuggestedActionUpgradePremium) GetType added in v0.7.0

func (*SuggestedActionUpgradePremium) MarshalJSON added in v0.7.0

func (entity *SuggestedActionUpgradePremium) MarshalJSON() ([]byte, error)

func (*SuggestedActionUpgradePremium) SuggestedActionType added in v0.7.0

func (*SuggestedActionUpgradePremium) SuggestedActionType() string

type SuggestedActionViewChecksHint added in v0.5.0

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 added in v0.5.0

func UnmarshalSuggestedActionViewChecksHint(data json.RawMessage) (*SuggestedActionViewChecksHint, error)

func (*SuggestedActionViewChecksHint) GetClass added in v0.5.0

func (*SuggestedActionViewChecksHint) GetType added in v0.5.0

func (*SuggestedActionViewChecksHint) MarshalJSON added in v0.5.0

func (entity *SuggestedActionViewChecksHint) MarshalJSON() ([]byte, error)

func (*SuggestedActionViewChecksHint) SuggestedActionType added in v0.5.0

func (*SuggestedActionViewChecksHint) SuggestedActionType() string

type Supergroup

type Supergroup struct {

	// Supergroup or channel identifier
	Id int64 `json:"id"`
	// 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 getChatSimilarChats, getChatsToSendStories, getCreatedPublicChats, getGroupsInCommon, getInactiveSupergroupChats, getRecommendedChats, getSuitableDiscussionChats, getUserPrivacySettingRules, getVideoChatAvailableParticipants, searchPublicChats, or in chatFolderInviteLinkInfo.missing_chat_ids, or in userFullInfo.personal_chat_id, or for chats with messages or stories from publicForwards and foundStories
	MemberCount int32 `json:"member_count"`
	// Approximate boost level for the chat
	BoostLevel int32 `json:"boost_level"`
	// 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 contains name of the sender. This field is only applicable to channels
	SignMessages bool `json:"sign_messages"`
	// True, if messages sent to the channel have information about the sender user. This field is only applicable to channels
	ShowMessageSender bool `json:"show_message_sender"`
	// 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 is a forum with topics
	IsForum bool `json:"is_forum"`
	// True, if the supergroup or channel is verified
	IsVerified bool `json:"is_verified"`
	// True, if content of media messages in the supergroup or channel chat must be hidden with 18+ spoiler
	HasSensitiveContent bool `json:"has_sensitive_content"`
	// 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"`
	// True, if the supergroup or channel has non-expired stories available to the current user
	HasActiveStories bool `json:"has_active_stories"`
	// True, if the supergroup or channel has unread non-expired stories available to the current user
	HasUnreadActiveStories bool `json:"has_unread_active_stories"`
	// 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 paid reaction can be enabled in the channel chat; for channels only
	CanEnablePaidReaction bool `json:"can_enable_paid_reaction"`
	// 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 the supergroup or channel revenue statistics are available
	CanGetRevenueStatistics bool `json:"can_get_revenue_statistics"`
	// True, if the supergroup or channel Telegram Star revenue statistics are available
	CanGetStarRevenueStatistics bool `json:"can_get_star_revenue_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 the chat can have sponsored messages. The value of this field is only available to the owner of the chat
	CanHaveSponsoredMessages bool `json:"can_have_sponsored_messages"`
	// 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"`
	// True, if paid media can be sent and forwarded to the channel chat; for channels only
	HasPaidMediaAllowed bool `json:"has_paid_media_allowed"`
	// True, if the supergroup or channel has pinned stories
	HasPinnedStories bool `json:"has_pinned_stories"`
	// Number of times the current user boosted the supergroup or channel
	MyBoostCount int32 `json:"my_boost_count"`
	// Number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; 0 if unspecified
	UnrestrictBoostCount int32 `json:"unrestrict_boost_count"`
	// Identifier of the supergroup sticker set that must be shown before user sticker sets; 0 if none
	StickerSetId JsonInt64 `json:"sticker_set_id"`
	// Identifier of the custom emoji sticker set that can be used in the supergroup without Telegram Premium subscription; 0 if none
	CustomEmojiStickerSetId JsonInt64 `json:"custom_emoji_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 added in v0.3.2

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) GetType

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) GetType

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) MarshalJSON

func (entity *SupergroupMembersFilterBots) MarshalJSON() ([]byte, error)

func (*SupergroupMembersFilterBots) SupergroupMembersFilterType

func (*SupergroupMembersFilterBots) SupergroupMembersFilterType() string

type SupergroupMembersFilterContacts added in v0.1.0

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 added in v0.1.0

func UnmarshalSupergroupMembersFilterContacts(data json.RawMessage) (*SupergroupMembersFilterContacts, error)

func (*SupergroupMembersFilterContacts) GetClass added in v0.1.0

func (*SupergroupMembersFilterContacts) GetType added in v0.1.0

func (*SupergroupMembersFilterContacts) MarshalJSON added in v0.1.0

func (entity *SupergroupMembersFilterContacts) MarshalJSON() ([]byte, error)

func (*SupergroupMembersFilterContacts) SupergroupMembersFilterType added in v0.1.0

func (*SupergroupMembersFilterContacts) SupergroupMembersFilterType() string

type SupergroupMembersFilterMention added in v0.3.0

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 added in v0.3.0

func UnmarshalSupergroupMembersFilterMention(data json.RawMessage) (*SupergroupMembersFilterMention, error)

func (*SupergroupMembersFilterMention) GetClass added in v0.3.0

func (*SupergroupMembersFilterMention) GetType added in v0.3.0

func (*SupergroupMembersFilterMention) MarshalJSON added in v0.3.0

func (entity *SupergroupMembersFilterMention) MarshalJSON() ([]byte, error)

func (*SupergroupMembersFilterMention) SupergroupMembersFilterType added in v0.3.0

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) GetType

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) GetType

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) GetType

func (*SupergroupMembersFilterSearch) MarshalJSON

func (entity *SupergroupMembersFilterSearch) MarshalJSON() ([]byte, error)

func (*SupergroupMembersFilterSearch) SupergroupMembersFilterType

func (*SupergroupMembersFilterSearch) SupergroupMembersFilterType() string

type SynchronizeLanguagePackRequest added in v0.0.13

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) GetClass

func (*TMeUrl) GetClass() string

func (*TMeUrl) GetType

func (*TMeUrl) GetType() string

func (*TMeUrl) MarshalJSON

func (entity *TMeUrl) MarshalJSON() ([]byte, error)

func (*TMeUrl) UnmarshalJSON

func (tMeUrl *TMeUrl) UnmarshalJSON(data []byte) error

type TMeUrlType

type TMeUrlType interface {
	TMeUrlTypeType() string
}

Describes the type of URL linking to an internal Telegram entity

func UnmarshalListOfTMeUrlType added in v0.3.2

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) GetClass

func (*TMeUrls) GetClass() string

func (*TMeUrls) GetType

func (*TMeUrls) GetType() string

func (*TMeUrls) MarshalJSON

func (entity *TMeUrls) MarshalJSON() ([]byte, error)

type TargetChat added in v0.7.0

type TargetChat interface {
	TargetChatType() string
}

Describes the target chat to be opened

func UnmarshalListOfTargetChat added in v0.7.0

func UnmarshalListOfTargetChat(dataList []json.RawMessage) ([]TargetChat, error)

func UnmarshalTargetChat added in v0.7.0

func UnmarshalTargetChat(data json.RawMessage) (TargetChat, error)

type TargetChatChosen added in v0.7.0

type TargetChatChosen struct {

	// Allowed types for the chat
	Types *TargetChatTypes `json:"types"`
	// contains filtered or unexported fields
}

The chat needs to be chosen by the user among chats of the specified types

func UnmarshalTargetChatChosen added in v0.7.0

func UnmarshalTargetChatChosen(data json.RawMessage) (*TargetChatChosen, error)

func (*TargetChatChosen) GetClass added in v0.7.0

func (*TargetChatChosen) GetClass() string

func (*TargetChatChosen) GetType added in v0.7.0

func (*TargetChatChosen) GetType() string

func (*TargetChatChosen) MarshalJSON added in v0.7.0

func (entity *TargetChatChosen) MarshalJSON() ([]byte, error)

func (*TargetChatChosen) TargetChatType added in v0.7.0

func (*TargetChatChosen) TargetChatType() string

type TargetChatCurrent added in v0.7.0

type TargetChatCurrent struct {
	// contains filtered or unexported fields
}

The currently opened chat needs to be kept

func UnmarshalTargetChatCurrent added in v0.7.0

func UnmarshalTargetChatCurrent(data json.RawMessage) (*TargetChatCurrent, error)

func (*TargetChatCurrent) GetClass added in v0.7.0

func (*TargetChatCurrent) GetClass() string

func (*TargetChatCurrent) GetType added in v0.7.0

func (*TargetChatCurrent) GetType() string

func (*TargetChatCurrent) MarshalJSON added in v0.7.0

func (entity *TargetChatCurrent) MarshalJSON() ([]byte, error)

func (*TargetChatCurrent) TargetChatType added in v0.7.0

func (*TargetChatCurrent) TargetChatType() string
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(data json.RawMessage) (*TargetChatInternalLink, error)

func (*TargetChatInternalLink) GetClass added in v0.7.0

func (*TargetChatInternalLink) GetClass() string

func (*TargetChatInternalLink) GetType added in v0.7.0

func (*TargetChatInternalLink) GetType() string

func (*TargetChatInternalLink) MarshalJSON added in v0.7.0

func (entity *TargetChatInternalLink) MarshalJSON() ([]byte, error)

func (*TargetChatInternalLink) TargetChatType added in v0.7.0

func (*TargetChatInternalLink) TargetChatType() string

func (*TargetChatInternalLink) UnmarshalJSON added in v0.7.0

func (targetChatInternalLink *TargetChatInternalLink) UnmarshalJSON(data []byte) error

type TargetChatTypes added in v0.7.4

type TargetChatTypes 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
}

Describes allowed types for the target chat

func UnmarshalTargetChatTypes added in v0.7.4

func UnmarshalTargetChatTypes(data json.RawMessage) (*TargetChatTypes, error)

func (*TargetChatTypes) GetClass added in v0.7.4

func (*TargetChatTypes) GetClass() string

func (*TargetChatTypes) GetType added in v0.7.4

func (*TargetChatTypes) GetType() string

func (*TargetChatTypes) MarshalJSON added in v0.7.4

func (entity *TargetChatTypes) MarshalJSON() ([]byte, error)

type TelegramPaymentPurpose added in v0.7.1

type TelegramPaymentPurpose interface {
	TelegramPaymentPurposeType() string
}

Describes a purpose of a payment toward Telegram

func UnmarshalListOfTelegramPaymentPurpose added in v0.7.1

func UnmarshalListOfTelegramPaymentPurpose(dataList []json.RawMessage) ([]TelegramPaymentPurpose, error)

func UnmarshalTelegramPaymentPurpose added in v0.7.1

func UnmarshalTelegramPaymentPurpose(data json.RawMessage) (TelegramPaymentPurpose, error)

type TelegramPaymentPurposeGiftedStars added in v0.7.3

type TelegramPaymentPurposeGiftedStars struct {

	// Identifier of the user to which Telegram Stars are 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"`
	// Number of bought Telegram Stars
	StarCount int64 `json:"star_count"`
	// contains filtered or unexported fields
}

The user buying Telegram Stars for other users

func UnmarshalTelegramPaymentPurposeGiftedStars added in v0.7.3

func UnmarshalTelegramPaymentPurposeGiftedStars(data json.RawMessage) (*TelegramPaymentPurposeGiftedStars, error)

func (*TelegramPaymentPurposeGiftedStars) GetClass added in v0.7.3

func (*TelegramPaymentPurposeGiftedStars) GetType added in v0.7.3

func (*TelegramPaymentPurposeGiftedStars) MarshalJSON added in v0.7.3

func (entity *TelegramPaymentPurposeGiftedStars) MarshalJSON() ([]byte, error)

func (*TelegramPaymentPurposeGiftedStars) TelegramPaymentPurposeType added in v0.7.3

func (*TelegramPaymentPurposeGiftedStars) TelegramPaymentPurposeType() string

type TelegramPaymentPurposeJoinChat added in v0.7.3

type TelegramPaymentPurposeJoinChat struct {

	// Invite link to use
	InviteLink string `json:"invite_link"`
	// contains filtered or unexported fields
}

The user joins a chat and subscribes to regular payments in Telegram Stars

func UnmarshalTelegramPaymentPurposeJoinChat added in v0.7.3

func UnmarshalTelegramPaymentPurposeJoinChat(data json.RawMessage) (*TelegramPaymentPurposeJoinChat, error)

func (*TelegramPaymentPurposeJoinChat) GetClass added in v0.7.3

func (*TelegramPaymentPurposeJoinChat) GetType added in v0.7.3

func (*TelegramPaymentPurposeJoinChat) MarshalJSON added in v0.7.3

func (entity *TelegramPaymentPurposeJoinChat) MarshalJSON() ([]byte, error)

func (*TelegramPaymentPurposeJoinChat) TelegramPaymentPurposeType added in v0.7.3

func (*TelegramPaymentPurposeJoinChat) TelegramPaymentPurposeType() string

type TelegramPaymentPurposePremiumGiftCodes added in v0.7.1

type TelegramPaymentPurposePremiumGiftCodes struct {

	// Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user; 0 if none
	BoostedChatId int64 `json:"boosted_chat_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"`
	// Identifiers of the users which can activate the gift codes
	UserIds []int64 `json:"user_ids"`
	// Number of months the Telegram Premium subscription will be active for the users
	MonthCount int32 `json:"month_count"`
	// Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed
	Text *FormattedText `json:"text"`
	// contains filtered or unexported fields
}

The user creating Telegram Premium gift codes for other users

func UnmarshalTelegramPaymentPurposePremiumGiftCodes added in v0.7.1

func UnmarshalTelegramPaymentPurposePremiumGiftCodes(data json.RawMessage) (*TelegramPaymentPurposePremiumGiftCodes, error)

func (*TelegramPaymentPurposePremiumGiftCodes) GetClass added in v0.7.1

func (*TelegramPaymentPurposePremiumGiftCodes) GetType added in v0.7.1

func (*TelegramPaymentPurposePremiumGiftCodes) MarshalJSON added in v0.7.1

func (entity *TelegramPaymentPurposePremiumGiftCodes) MarshalJSON() ([]byte, error)

func (*TelegramPaymentPurposePremiumGiftCodes) TelegramPaymentPurposeType added in v0.7.1

func (*TelegramPaymentPurposePremiumGiftCodes) TelegramPaymentPurposeType() string

type TelegramPaymentPurposePremiumGiveaway added in v0.7.1

type TelegramPaymentPurposePremiumGiveaway struct {

	// Giveaway parameters
	Parameters *GiveawayParameters `json:"parameters"`
	// 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"`
	// Number of users which will be able to activate the gift codes
	WinnerCount int32 `json:"winner_count"`
	// Number of months the Telegram Premium subscription will be active for the users
	MonthCount int32 `json:"month_count"`
	// contains filtered or unexported fields
}

The user creating a Telegram Premium giveaway

func UnmarshalTelegramPaymentPurposePremiumGiveaway added in v0.7.1

func UnmarshalTelegramPaymentPurposePremiumGiveaway(data json.RawMessage) (*TelegramPaymentPurposePremiumGiveaway, error)

func (*TelegramPaymentPurposePremiumGiveaway) GetClass added in v0.7.1

func (*TelegramPaymentPurposePremiumGiveaway) GetType added in v0.7.1

func (*TelegramPaymentPurposePremiumGiveaway) MarshalJSON added in v0.7.1

func (entity *TelegramPaymentPurposePremiumGiveaway) MarshalJSON() ([]byte, error)

func (*TelegramPaymentPurposePremiumGiveaway) TelegramPaymentPurposeType added in v0.7.1

func (*TelegramPaymentPurposePremiumGiveaway) TelegramPaymentPurposeType() string

type TelegramPaymentPurposeStarGiveaway added in v0.7.3

type TelegramPaymentPurposeStarGiveaway struct {

	// Giveaway parameters
	Parameters *GiveawayParameters `json:"parameters"`
	// 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"`
	// The number of users to receive Telegram Stars
	WinnerCount int32 `json:"winner_count"`
	// The number of Telegram Stars to be distributed through the giveaway
	StarCount int64 `json:"star_count"`
	// contains filtered or unexported fields
}

The user creating a Telegram Star giveaway

func UnmarshalTelegramPaymentPurposeStarGiveaway added in v0.7.3

func UnmarshalTelegramPaymentPurposeStarGiveaway(data json.RawMessage) (*TelegramPaymentPurposeStarGiveaway, error)

func (*TelegramPaymentPurposeStarGiveaway) GetClass added in v0.7.3

func (*TelegramPaymentPurposeStarGiveaway) GetType added in v0.7.3

func (*TelegramPaymentPurposeStarGiveaway) MarshalJSON added in v0.7.3

func (entity *TelegramPaymentPurposeStarGiveaway) MarshalJSON() ([]byte, error)

func (*TelegramPaymentPurposeStarGiveaway) TelegramPaymentPurposeType added in v0.7.3

func (*TelegramPaymentPurposeStarGiveaway) TelegramPaymentPurposeType() string

type TelegramPaymentPurposeStars added in v0.7.3

type TelegramPaymentPurposeStars struct {

	// 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"`
	// Number of bought Telegram Stars
	StarCount int64 `json:"star_count"`
	// contains filtered or unexported fields
}

The user buying Telegram Stars

func UnmarshalTelegramPaymentPurposeStars added in v0.7.3

func UnmarshalTelegramPaymentPurposeStars(data json.RawMessage) (*TelegramPaymentPurposeStars, error)

func (*TelegramPaymentPurposeStars) GetClass added in v0.7.3

func (*TelegramPaymentPurposeStars) GetClass() string

func (*TelegramPaymentPurposeStars) GetType added in v0.7.3

func (*TelegramPaymentPurposeStars) MarshalJSON added in v0.7.3

func (entity *TelegramPaymentPurposeStars) MarshalJSON() ([]byte, error)

func (*TelegramPaymentPurposeStars) TelegramPaymentPurposeType added in v0.7.3

func (*TelegramPaymentPurposeStars) TelegramPaymentPurposeType() string

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) GetClass

func (*TestBytes) GetClass() string

func (*TestBytes) GetType

func (*TestBytes) GetType() string

func (*TestBytes) MarshalJSON

func (entity *TestBytes) MarshalJSON() ([]byte, error)

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) GetClass

func (*TestInt) GetClass() string

func (*TestInt) GetType

func (*TestInt) GetType() string

func (*TestInt) MarshalJSON

func (entity *TestInt) MarshalJSON() ([]byte, error)

type TestProxyRequest added in v0.1.0

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 added in v0.1.0

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 added in v0.6.0

func CleanFileName(req *CleanFileNameRequest) (*Text, error)

Removes potentially dangerous characters from the name of a file. Returns an empty string on failure. Can be called synchronously

func GetCountryFlagEmoji added in v0.7.2

func GetCountryFlagEmoji(req *GetCountryFlagEmojiRequest) (*Text, error)

Returns an emoji for the given country. Returns an empty string on failure. Can be called synchronously

func GetFileExtension added in v0.6.0

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 added in v0.6.0

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 added in v0.6.0

func GetJsonString(req *GetJsonStringRequest) (*Text, error)

Converts a JsonValue object to corresponding JSON-serialized string. Can be called synchronously

func GetThemeParametersJsonString added in v0.7.0

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) GetClass

func (*Text) GetClass() string

func (*Text) GetType

func (*Text) GetType() string

func (*Text) MarshalJSON

func (entity *Text) MarshalJSON() ([]byte, error)

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 added in v0.6.0

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 added in v0.3.2

func UnmarshalListOfTextEntityType(dataList []json.RawMessage) ([]TextEntityType, error)

func UnmarshalTextEntityType

func UnmarshalTextEntityType(data json.RawMessage) (TextEntityType, error)

type TextEntityTypeBankCardNumber added in v0.3.0

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 added in v0.3.0

func UnmarshalTextEntityTypeBankCardNumber(data json.RawMessage) (*TextEntityTypeBankCardNumber, error)

func (*TextEntityTypeBankCardNumber) GetClass added in v0.3.0

func (*TextEntityTypeBankCardNumber) GetType added in v0.3.0

func (*TextEntityTypeBankCardNumber) MarshalJSON added in v0.3.0

func (entity *TextEntityTypeBankCardNumber) MarshalJSON() ([]byte, error)

func (*TextEntityTypeBankCardNumber) TextEntityTypeType added in v0.3.0

func (*TextEntityTypeBankCardNumber) TextEntityTypeType() string

type TextEntityTypeBlockQuote added in v0.7.1

type TextEntityTypeBlockQuote struct {
	// contains filtered or unexported fields
}

Text that must be formatted as if inside a blockquote HTML tag; not supported in secret chats

func UnmarshalTextEntityTypeBlockQuote added in v0.7.1

func UnmarshalTextEntityTypeBlockQuote(data json.RawMessage) (*TextEntityTypeBlockQuote, error)

func (*TextEntityTypeBlockQuote) GetClass added in v0.7.1

func (*TextEntityTypeBlockQuote) GetClass() string

func (*TextEntityTypeBlockQuote) GetType added in v0.7.1

func (*TextEntityTypeBlockQuote) GetType() string

func (*TextEntityTypeBlockQuote) MarshalJSON added in v0.7.1

func (entity *TextEntityTypeBlockQuote) MarshalJSON() ([]byte, error)

func (*TextEntityTypeBlockQuote) TextEntityTypeType added in v0.7.1

func (*TextEntityTypeBlockQuote) 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 "$", consisting of capital English letters (e.g., "$USD"), and optionally containing a chat username at the end

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 v0.7.0

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 v0.7.0

func UnmarshalTextEntityTypeCustomEmoji(data json.RawMessage) (*TextEntityTypeCustomEmoji, error)

func (*TextEntityTypeCustomEmoji) GetClass added in v0.7.0

func (*TextEntityTypeCustomEmoji) GetClass() string

func (*TextEntityTypeCustomEmoji) GetType added in v0.7.0

func (*TextEntityTypeCustomEmoji) GetType() string

func (*TextEntityTypeCustomEmoji) MarshalJSON added in v0.7.0

func (entity *TextEntityTypeCustomEmoji) MarshalJSON() ([]byte, error)

func (*TextEntityTypeCustomEmoji) TextEntityTypeType added in v0.7.0

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) MarshalJSON

func (entity *TextEntityTypeEmailAddress) MarshalJSON() ([]byte, error)

func (*TextEntityTypeEmailAddress) TextEntityTypeType

func (*TextEntityTypeEmailAddress) TextEntityTypeType() string

type TextEntityTypeExpandableBlockQuote added in v0.7.3

type TextEntityTypeExpandableBlockQuote struct {
	// contains filtered or unexported fields
}

Text that must be formatted as if inside a blockquote HTML tag and collapsed by default to 3 lines with the ability to show full text; not supported in secret chats

func UnmarshalTextEntityTypeExpandableBlockQuote added in v0.7.3

func UnmarshalTextEntityTypeExpandableBlockQuote(data json.RawMessage) (*TextEntityTypeExpandableBlockQuote, error)

func (*TextEntityTypeExpandableBlockQuote) GetClass added in v0.7.3

func (*TextEntityTypeExpandableBlockQuote) GetType added in v0.7.3

func (*TextEntityTypeExpandableBlockQuote) MarshalJSON added in v0.7.3

func (entity *TextEntityTypeExpandableBlockQuote) MarshalJSON() ([]byte, error)

func (*TextEntityTypeExpandableBlockQuote) TextEntityTypeType added in v0.7.3

func (*TextEntityTypeExpandableBlockQuote) TextEntityTypeType() string

type TextEntityTypeHashtag

type TextEntityTypeHashtag struct {
	// contains filtered or unexported fields
}

A hashtag text, beginning with "#" and optionally containing a chat username at the end

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 added in v0.5.0

type TextEntityTypeMediaTimestamp struct {

	// Timestamp from which a video/audio/video note/voice note/story playing must start, in seconds. The media can be in the content or the link 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 added in v0.5.0

func UnmarshalTextEntityTypeMediaTimestamp(data json.RawMessage) (*TextEntityTypeMediaTimestamp, error)

func (*TextEntityTypeMediaTimestamp) GetClass added in v0.5.0

func (*TextEntityTypeMediaTimestamp) GetType added in v0.5.0

func (*TextEntityTypeMediaTimestamp) MarshalJSON added in v0.5.0

func (entity *TextEntityTypeMediaTimestamp) MarshalJSON() ([]byte, error)

func (*TextEntityTypeMediaTimestamp) TextEntityTypeType added in v0.5.0

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 added in v0.7.0

type TextEntityTypeSpoiler struct {
	// contains filtered or unexported fields
}

A spoiler text

func UnmarshalTextEntityTypeSpoiler added in v0.7.0

func UnmarshalTextEntityTypeSpoiler(data json.RawMessage) (*TextEntityTypeSpoiler, error)

func (*TextEntityTypeSpoiler) GetClass added in v0.7.0

func (*TextEntityTypeSpoiler) GetClass() string

func (*TextEntityTypeSpoiler) GetType added in v0.7.0

func (*TextEntityTypeSpoiler) GetType() string

func (*TextEntityTypeSpoiler) MarshalJSON added in v0.7.0

func (entity *TextEntityTypeSpoiler) MarshalJSON() ([]byte, error)

func (*TextEntityTypeSpoiler) TextEntityTypeType added in v0.7.0

func (*TextEntityTypeSpoiler) TextEntityTypeType() string

type TextEntityTypeStrikethrough added in v0.2.0

type TextEntityTypeStrikethrough struct {
	// contains filtered or unexported fields
}

A strikethrough text

func UnmarshalTextEntityTypeStrikethrough added in v0.2.0

func UnmarshalTextEntityTypeStrikethrough(data json.RawMessage) (*TextEntityTypeStrikethrough, error)

func (*TextEntityTypeStrikethrough) GetClass added in v0.2.0

func (*TextEntityTypeStrikethrough) GetClass() string

func (*TextEntityTypeStrikethrough) GetType added in v0.2.0

func (*TextEntityTypeStrikethrough) MarshalJSON added in v0.2.0

func (entity *TextEntityTypeStrikethrough) MarshalJSON() ([]byte, error)

func (*TextEntityTypeStrikethrough) TextEntityTypeType added in v0.2.0

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 added in v0.2.0

type TextEntityTypeUnderline struct {
	// contains filtered or unexported fields
}

An underlined text

func UnmarshalTextEntityTypeUnderline added in v0.2.0

func UnmarshalTextEntityTypeUnderline(data json.RawMessage) (*TextEntityTypeUnderline, error)

func (*TextEntityTypeUnderline) GetClass added in v0.2.0

func (*TextEntityTypeUnderline) GetClass() string

func (*TextEntityTypeUnderline) GetType added in v0.2.0

func (*TextEntityTypeUnderline) GetType() string

func (*TextEntityTypeUnderline) MarshalJSON added in v0.2.0

func (entity *TextEntityTypeUnderline) MarshalJSON() ([]byte, error)

func (*TextEntityTypeUnderline) TextEntityTypeType added in v0.2.0

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 added in v0.3.2

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 TextQuote added in v0.7.1

type TextQuote struct {

	// Text of the quote. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities can be present in the text
	Text *FormattedText `json:"text"`
	// Approximate quote position in the original message in UTF-16 code units as specified by the message sender
	Position int32 `json:"position"`
	// True, if the quote was manually chosen by the message sender
	IsManual bool `json:"is_manual"`
	// contains filtered or unexported fields
}

Describes manually or automatically chosen quote from another message

func UnmarshalTextQuote added in v0.7.1

func UnmarshalTextQuote(data json.RawMessage) (*TextQuote, error)

func (*TextQuote) GetClass added in v0.7.1

func (*TextQuote) GetClass() string

func (*TextQuote) GetType added in v0.7.1

func (*TextQuote) GetType() string

func (*TextQuote) MarshalJSON added in v0.7.1

func (entity *TextQuote) MarshalJSON() ([]byte, error)

type ThemeParameters added in v0.7.0

type ThemeParameters struct {

	// A color of the background in the RGB format
	BackgroundColor int32 `json:"background_color"`
	// A secondary color for the background in the RGB format
	SecondaryBackgroundColor int32 `json:"secondary_background_color"`
	// A color of the header background in the RGB format
	HeaderBackgroundColor int32 `json:"header_background_color"`
	// A color of the bottom bar background in the RGB format
	BottomBarBackgroundColor int32 `json:"bottom_bar_background_color"`
	// A color of the section background in the RGB format
	SectionBackgroundColor int32 `json:"section_background_color"`
	// A color of the section separator in the RGB format
	SectionSeparatorColor int32 `json:"section_separator_color"`
	// A color of text in the RGB format
	TextColor int32 `json:"text_color"`
	// An accent color of the text in the RGB format
	AccentTextColor int32 `json:"accent_text_color"`
	// A color of text on the section headers in the RGB format
	SectionHeaderTextColor int32 `json:"section_header_text_color"`
	// A color of the subtitle text in the RGB format
	SubtitleTextColor int32 `json:"subtitle_text_color"`
	// A color of the text for destructive actions in the RGB format
	DestructiveTextColor int32 `json:"destructive_text_color"`
	// A color of hints in the RGB format
	HintColor int32 `json:"hint_color"`
	// A color of links in the RGB format
	LinkColor int32 `json:"link_color"`
	// A color of the buttons in the RGB format
	ButtonColor int32 `json:"button_color"`
	// A color of text on the buttons in the RGB format
	ButtonTextColor int32 `json:"button_text_color"`
	// contains filtered or unexported fields
}

Contains parameters of the application theme

func UnmarshalThemeParameters added in v0.7.0

func UnmarshalThemeParameters(data json.RawMessage) (*ThemeParameters, error)

func (*ThemeParameters) GetClass added in v0.7.0

func (*ThemeParameters) GetClass() string

func (*ThemeParameters) GetType added in v0.7.0

func (*ThemeParameters) GetType() string

func (*ThemeParameters) MarshalJSON added in v0.7.0

func (entity *ThemeParameters) MarshalJSON() ([]byte, error)

type ThemeSettings added in v0.5.0

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 added in v0.5.0

func UnmarshalThemeSettings(data json.RawMessage) (*ThemeSettings, error)

func (*ThemeSettings) GetClass added in v0.5.0

func (*ThemeSettings) GetClass() string

func (*ThemeSettings) GetType added in v0.5.0

func (*ThemeSettings) GetType() string

func (*ThemeSettings) MarshalJSON added in v0.5.0

func (entity *ThemeSettings) MarshalJSON() ([]byte, error)

func (*ThemeSettings) UnmarshalJSON added in v0.5.0

func (themeSettings *ThemeSettings) UnmarshalJSON(data []byte) error

type Thumbnail added in v0.3.0

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 added in v0.3.0

func UnmarshalThumbnail(data json.RawMessage) (*Thumbnail, error)

func (*Thumbnail) GetClass added in v0.3.0

func (*Thumbnail) GetClass() string

func (*Thumbnail) GetType added in v0.3.0

func (*Thumbnail) GetType() string

func (*Thumbnail) MarshalJSON added in v0.3.0

func (entity *Thumbnail) MarshalJSON() ([]byte, error)

func (*Thumbnail) UnmarshalJSON added in v0.3.0

func (thumbnail *Thumbnail) UnmarshalJSON(data []byte) error

type ThumbnailFormat added in v0.3.0

type ThumbnailFormat interface {
	ThumbnailFormatType() string
}

Describes format of a thumbnail

func UnmarshalListOfThumbnailFormat added in v0.3.2

func UnmarshalListOfThumbnailFormat(dataList []json.RawMessage) ([]ThumbnailFormat, error)

func UnmarshalThumbnailFormat added in v0.3.0

func UnmarshalThumbnailFormat(data json.RawMessage) (ThumbnailFormat, error)

type ThumbnailFormatGif added in v0.3.0

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 added in v0.3.0

func UnmarshalThumbnailFormatGif(data json.RawMessage) (*ThumbnailFormatGif, error)

func (*ThumbnailFormatGif) GetClass added in v0.3.0

func (*ThumbnailFormatGif) GetClass() string

func (*ThumbnailFormatGif) GetType added in v0.3.0

func (*ThumbnailFormatGif) GetType() string

func (*ThumbnailFormatGif) MarshalJSON added in v0.3.0

func (entity *ThumbnailFormatGif) MarshalJSON() ([]byte, error)

func (*ThumbnailFormatGif) ThumbnailFormatType added in v0.3.0

func (*ThumbnailFormatGif) ThumbnailFormatType() string

type ThumbnailFormatJpeg added in v0.3.0

type ThumbnailFormatJpeg struct {
	// contains filtered or unexported fields
}

The thumbnail is in JPEG format

func UnmarshalThumbnailFormatJpeg added in v0.3.0

func UnmarshalThumbnailFormatJpeg(data json.RawMessage) (*ThumbnailFormatJpeg, error)

func (*ThumbnailFormatJpeg) GetClass added in v0.3.0

func (*ThumbnailFormatJpeg) GetClass() string

func (*ThumbnailFormatJpeg) GetType added in v0.3.0

func (*ThumbnailFormatJpeg) GetType() string

func (*ThumbnailFormatJpeg) MarshalJSON added in v0.3.0

func (entity *ThumbnailFormatJpeg) MarshalJSON() ([]byte, error)

func (*ThumbnailFormatJpeg) ThumbnailFormatType added in v0.3.0

func (*ThumbnailFormatJpeg) ThumbnailFormatType() string

type ThumbnailFormatMpeg4 added in v0.3.0

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 added in v0.3.0

func UnmarshalThumbnailFormatMpeg4(data json.RawMessage) (*ThumbnailFormatMpeg4, error)

func (*ThumbnailFormatMpeg4) GetClass added in v0.3.0

func (*ThumbnailFormatMpeg4) GetClass() string

func (*ThumbnailFormatMpeg4) GetType added in v0.3.0

func (*ThumbnailFormatMpeg4) GetType() string

func (*ThumbnailFormatMpeg4) MarshalJSON added in v0.3.0

func (entity *ThumbnailFormatMpeg4) MarshalJSON() ([]byte, error)

func (*ThumbnailFormatMpeg4) ThumbnailFormatType added in v0.3.0

func (*ThumbnailFormatMpeg4) ThumbnailFormatType() string

type ThumbnailFormatPng added in v0.3.0

type ThumbnailFormatPng struct {
	// contains filtered or unexported fields
}

The thumbnail is in PNG format. It will be used only for background patterns

func UnmarshalThumbnailFormatPng added in v0.3.0

func UnmarshalThumbnailFormatPng(data json.RawMessage) (*ThumbnailFormatPng, error)

func (*ThumbnailFormatPng) GetClass added in v0.3.0

func (*ThumbnailFormatPng) GetClass() string

func (*ThumbnailFormatPng) GetType added in v0.3.0

func (*ThumbnailFormatPng) GetType() string

func (*ThumbnailFormatPng) MarshalJSON added in v0.3.0

func (entity *ThumbnailFormatPng) MarshalJSON() ([]byte, error)

func (*ThumbnailFormatPng) ThumbnailFormatType added in v0.3.0

func (*ThumbnailFormatPng) ThumbnailFormatType() string

type ThumbnailFormatTgs added in v0.3.0

type ThumbnailFormatTgs struct {
	// contains filtered or unexported fields
}

The thumbnail is in TGS format. It will be used only for sticker sets

func UnmarshalThumbnailFormatTgs added in v0.3.0

func UnmarshalThumbnailFormatTgs(data json.RawMessage) (*ThumbnailFormatTgs, error)

func (*ThumbnailFormatTgs) GetClass added in v0.3.0

func (*ThumbnailFormatTgs) GetClass() string

func (*ThumbnailFormatTgs) GetType added in v0.3.0

func (*ThumbnailFormatTgs) GetType() string

func (*ThumbnailFormatTgs) MarshalJSON added in v0.3.0

func (entity *ThumbnailFormatTgs) MarshalJSON() ([]byte, error)

func (*ThumbnailFormatTgs) ThumbnailFormatType added in v0.3.0

func (*ThumbnailFormatTgs) ThumbnailFormatType() string

type ThumbnailFormatWebm added in v0.7.0

type ThumbnailFormatWebm struct {
	// contains filtered or unexported fields
}

The thumbnail is in WEBM format. It will be used only for sticker sets

func UnmarshalThumbnailFormatWebm added in v0.7.0

func UnmarshalThumbnailFormatWebm(data json.RawMessage) (*ThumbnailFormatWebm, error)

func (*ThumbnailFormatWebm) GetClass added in v0.7.0

func (*ThumbnailFormatWebm) GetClass() string

func (*ThumbnailFormatWebm) GetType added in v0.7.0

func (*ThumbnailFormatWebm) GetType() string

func (*ThumbnailFormatWebm) MarshalJSON added in v0.7.0

func (entity *ThumbnailFormatWebm) MarshalJSON() ([]byte, error)

func (*ThumbnailFormatWebm) ThumbnailFormatType added in v0.7.0

func (*ThumbnailFormatWebm) ThumbnailFormatType() string

type ThumbnailFormatWebp added in v0.3.0

type ThumbnailFormatWebp struct {
	// contains filtered or unexported fields
}

The thumbnail is in WEBP format. It will be used only for some stickers and sticker sets

func UnmarshalThumbnailFormatWebp added in v0.3.0

func UnmarshalThumbnailFormatWebp(data json.RawMessage) (*ThumbnailFormatWebp, error)

func (*ThumbnailFormatWebp) GetClass added in v0.3.0

func (*ThumbnailFormatWebp) GetClass() string

func (*ThumbnailFormatWebp) GetType added in v0.3.0

func (*ThumbnailFormatWebp) GetType() string

func (*ThumbnailFormatWebp) MarshalJSON added in v0.3.0

func (entity *ThumbnailFormatWebp) MarshalJSON() ([]byte, error)

func (*ThumbnailFormatWebp) ThumbnailFormatType added in v0.3.0

func (*ThumbnailFormatWebp) ThumbnailFormatType() string

type TimeZone added in v0.7.2

type TimeZone struct {

	// Unique time zone identifier
	Id string `json:"id"`
	// Time zone name
	Name string `json:"name"`
	// Current UTC time offset for the time zone
	UtcTimeOffset int32 `json:"utc_time_offset"`
	// contains filtered or unexported fields
}

Describes a time zone

func UnmarshalTimeZone added in v0.7.2

func UnmarshalTimeZone(data json.RawMessage) (*TimeZone, error)

func (*TimeZone) GetClass added in v0.7.2

func (*TimeZone) GetClass() string

func (*TimeZone) GetType added in v0.7.2

func (*TimeZone) GetType() string

func (*TimeZone) MarshalJSON added in v0.7.2

func (entity *TimeZone) MarshalJSON() ([]byte, error)

type TimeZones added in v0.7.2

type TimeZones struct {

	// A list of time zones
	TimeZones []*TimeZone `json:"time_zones"`
	// contains filtered or unexported fields
}

Contains a list of time zones

func UnmarshalTimeZones added in v0.7.2

func UnmarshalTimeZones(data json.RawMessage) (*TimeZones, error)

func (*TimeZones) GetClass added in v0.7.2

func (*TimeZones) GetClass() string

func (*TimeZones) GetType added in v0.7.2

func (*TimeZones) GetType() string

func (*TimeZones) MarshalJSON added in v0.7.2

func (entity *TimeZones) MarshalJSON() ([]byte, error)

type ToggleAllDownloadsArePausedRequest added in v0.7.0

type ToggleAllDownloadsArePausedRequest struct {
	// Pass true to pause all downloads; pass false to unpause them
	ArePaused bool `json:"are_paused"`
}

type ToggleBotCanManageEmojiStatusRequest added in v0.7.4

type ToggleBotCanManageEmojiStatusRequest struct {
	// User identifier of the bot
	BotUserId int64 `json:"bot_user_id"`
	// Pass true if the bot is allowed to change emoji status of the user; pass false otherwise
	CanManageEmojiStatus bool `json:"can_manage_emoji_status"`
}

type ToggleBotIsAddedToAttachmentMenuRequest added in v0.7.0

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 v0.7.0

type ToggleBotUsernameIsActiveRequest struct {
	// Identifier of the target bot
	BotUserId int64 `json:"bot_user_id"`
	// The username to change
	Username string `json:"username"`
	// Pass true to activate the username; pass false to disable it
	IsActive bool `json:"is_active"`
}

type ToggleBusinessConnectedBotChatIsPausedRequest added in v0.7.3

type ToggleBusinessConnectedBotChatIsPausedRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Pass true to pause the connected bot in the chat; pass false to resume the bot
	IsPaused bool `json:"is_paused"`
}

type ToggleChatDefaultDisableNotificationRequest

type ToggleChatDefaultDisableNotificationRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// New value of default_disable_notification
	DefaultDisableNotification bool `json:"default_disable_notification"`
}

type ToggleChatFolderTagsRequest added in v0.7.2

type ToggleChatFolderTagsRequest struct {
	// Pass true to enable folder tags; pass false to disable them
	AreTagsEnabled bool `json:"are_tags_enabled"`
}

type ToggleChatHasProtectedContentRequest added in v0.5.0

type ToggleChatHasProtectedContentRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// New value of has_protected_content
	HasProtectedContent bool `json:"has_protected_content"`
}

type ToggleChatIsMarkedAsUnreadRequest

type ToggleChatIsMarkedAsUnreadRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// New value of is_marked_as_unread
	IsMarkedAsUnread bool `json:"is_marked_as_unread"`
}

type ToggleChatIsPinnedRequest

type ToggleChatIsPinnedRequest struct {
	// Chat list in which to change the pinned state of the chat
	ChatList ChatList `json:"chat_list"`
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Pass true to pin the chat; pass false to unpin it
	IsPinned bool `json:"is_pinned"`
}

type ToggleChatIsTranslatableRequest added in v0.7.0

type ToggleChatIsTranslatableRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// New value of is_translatable
	IsTranslatable bool `json:"is_translatable"`
}

type ToggleChatViewAsTopicsRequest added in v0.7.1

type ToggleChatViewAsTopicsRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// New value of view_as_topics
	ViewAsTopics bool `json:"view_as_topics"`
}

type ToggleDownloadIsPausedRequest added in v0.7.0

type ToggleDownloadIsPausedRequest struct {
	// Identifier of the downloaded file
	FileId int32 `json:"file_id"`
	// Pass true if the download is paused
	IsPaused bool `json:"is_paused"`
}

type ToggleForumTopicIsClosedRequest added in v0.7.0

type ToggleForumTopicIsClosedRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
	// Message thread identifier of the forum topic
	MessageThreadId int64 `json:"message_thread_id"`
	// Pass true to close the topic; pass false to reopen it
	IsClosed bool `json:"is_closed"`
}

type ToggleForumTopicIsPinnedRequest added in v0.7.0

type ToggleForumTopicIsPinnedRequest struct {
	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Message thread identifier of the forum topic
	MessageThreadId int64 `json:"message_thread_id"`
	// Pass true to pin the topic; pass false to unpin it
	IsPinned bool `json:"is_pinned"`
}

type ToggleGeneralForumTopicIsHiddenRequest added in v0.7.0

type ToggleGeneralForumTopicIsHiddenRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
	// Pass true to hide and close the General topic; pass false to unhide it
	IsHidden bool `json:"is_hidden"`
}

type ToggleGiftIsSavedRequest added in v0.7.3

type ToggleGiftIsSavedRequest struct {
	// Identifier of the user that sent the gift
	SenderUserId int64 `json:"sender_user_id"`
	// Identifier of the message with the gift in the chat with the user
	MessageId int64 `json:"message_id"`
	// Pass true to display the gift on the user's profile page; pass false to remove it from the profile page
	IsSaved bool `json:"is_saved"`
}

type ToggleGroupCallEnabledStartNotificationRequest added in v0.5.0

type ToggleGroupCallEnabledStartNotificationRequest struct {
	// Group call identifier
	GroupCallId int32 `json:"group_call_id"`
	// New value of the enabled_start_notification setting
	EnabledStartNotification bool `json:"enabled_start_notification"`
}

type ToggleGroupCallIsMyVideoEnabledRequest added in v0.5.0

type ToggleGroupCallIsMyVideoEnabledRequest struct {
	// Group call identifier
	GroupCallId int32 `json:"group_call_id"`
	// Pass true if the current user's video is enabled
	IsMyVideoEnabled bool `json:"is_my_video_enabled"`
}

type ToggleGroupCallIsMyVideoPausedRequest added in v0.5.0

type ToggleGroupCallIsMyVideoPausedRequest struct {
	// Group call identifier
	GroupCallId int32 `json:"group_call_id"`
	// Pass true if the current user's video is paused
	IsMyVideoPaused bool `json:"is_my_video_paused"`
}

type ToggleGroupCallMuteNewParticipantsRequest added in v0.5.0

type ToggleGroupCallMuteNewParticipantsRequest struct {
	// Group call identifier
	GroupCallId int32 `json:"group_call_id"`
	// New value of the mute_new_participants setting
	MuteNewParticipants bool `json:"mute_new_participants"`
}

type ToggleGroupCallParticipantIsHandRaisedRequest added in v0.5.0

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 added in v0.5.0

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 ToggleGroupCallScreenSharingIsPausedRequest added in v0.5.0

type ToggleGroupCallScreenSharingIsPausedRequest struct {
	// Group call identifier
	GroupCallId int32 `json:"group_call_id"`
	// Pass true to pause screen sharing; pass false to unpause it
	IsPaused bool `json:"is_paused"`
}

type ToggleHasSponsoredMessagesEnabledRequest added in v0.7.3

type ToggleHasSponsoredMessagesEnabledRequest struct {
	// Pass true to enable sponsored messages for the current user; false to disable them
	HasSponsoredMessagesEnabled bool `json:"has_sponsored_messages_enabled"`
}

type TogglePaidMessageReactionIsAnonymousRequest added in v0.7.3

type TogglePaidMessageReactionIsAnonymousRequest 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 make paid reaction of the user on the message anonymous; pass false to make the user's profile visible among top reactors
	IsAnonymous bool `json:"is_anonymous"`
}

type ToggleSavedMessagesTopicIsPinnedRequest added in v0.7.2

type ToggleSavedMessagesTopicIsPinnedRequest struct {
	// Identifier of Saved Messages topic to pin or unpin
	SavedMessagesTopicId int64 `json:"saved_messages_topic_id"`
	// Pass true to pin the topic; pass false to unpin it
	IsPinned bool `json:"is_pinned"`
}

type ToggleSessionCanAcceptCallsRequest added in v0.5.0

type ToggleSessionCanAcceptCallsRequest struct {
	// Session identifier
	SessionId JsonInt64 `json:"session_id"`
	// Pass true to allow accepting incoming calls by the session; pass false otherwise
	CanAcceptCalls bool `json:"can_accept_calls"`
}

type ToggleSessionCanAcceptSecretChatsRequest added in v0.5.0

type ToggleSessionCanAcceptSecretChatsRequest struct {
	// Session identifier
	SessionId JsonInt64 `json:"session_id"`
	// Pass true to allow accepting secret chats by the session; pass false otherwise
	CanAcceptSecretChats bool `json:"can_accept_secret_chats"`
}

type ToggleStoryIsPostedToChatPageRequest added in v0.7.3

type ToggleStoryIsPostedToChatPageRequest struct {
	// Identifier of the chat that posted the story
	StorySenderChatId int64 `json:"story_sender_chat_id"`
	// Identifier of the story
	StoryId int32 `json:"story_id"`
	// Pass true to make the story accessible after expiration; pass false to make it private
	IsPostedToChatPage bool `json:"is_posted_to_chat_page"`
}

type ToggleSupergroupCanHaveSponsoredMessagesRequest added in v0.7.3

type ToggleSupergroupCanHaveSponsoredMessagesRequest struct {
	// The identifier of the channel
	SupergroupId int64 `json:"supergroup_id"`
	// The new value of can_have_sponsored_messages
	CanHaveSponsoredMessages bool `json:"can_have_sponsored_messages"`
}

type ToggleSupergroupHasAggressiveAntiSpamEnabledRequest added in v0.7.0

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 v0.7.0

type ToggleSupergroupHasHiddenMembersRequest struct {
	// Identifier of the supergroup
	SupergroupId int64 `json:"supergroup_id"`
	// New value of has_hidden_members
	HasHiddenMembers bool `json:"has_hidden_members"`
}

type ToggleSupergroupIsAllHistoryAvailableRequest

type ToggleSupergroupIsAllHistoryAvailableRequest struct {
	// The identifier of the supergroup
	SupergroupId int64 `json:"supergroup_id"`
	// The new value of is_all_history_available
	IsAllHistoryAvailable bool `json:"is_all_history_available"`
}

type ToggleSupergroupIsBroadcastGroupRequest added in v0.5.0

type ToggleSupergroupIsBroadcastGroupRequest struct {
	// Identifier of the supergroup
	SupergroupId int64 `json:"supergroup_id"`
}

type ToggleSupergroupIsForumRequest added in v0.7.0

type ToggleSupergroupIsForumRequest struct {
	// Identifier of the supergroup
	SupergroupId int64 `json:"supergroup_id"`
	// New value of is_forum
	IsForum bool `json:"is_forum"`
}

type ToggleSupergroupJoinByRequestRequest added in v0.7.0

type ToggleSupergroupJoinByRequestRequest struct {
	// Identifier of the supergroup that isn't a broadcast group
	SupergroupId int64 `json:"supergroup_id"`
	// New value of join_by_request
	JoinByRequest bool `json:"join_by_request"`
}

type ToggleSupergroupJoinToSendMessagesRequest added in v0.7.0

type ToggleSupergroupJoinToSendMessagesRequest struct {
	// Identifier of the supergroup that isn't a broadcast group
	SupergroupId int64 `json:"supergroup_id"`
	// New value of join_to_send_messages
	JoinToSendMessages bool `json:"join_to_send_messages"`
}

type ToggleSupergroupSignMessagesRequest

type ToggleSupergroupSignMessagesRequest struct {
	// Identifier of the channel
	SupergroupId int64 `json:"supergroup_id"`
	// New value of sign_messages
	SignMessages bool `json:"sign_messages"`
	// New value of show_message_sender
	ShowMessageSender bool `json:"show_message_sender"`
}

type ToggleSupergroupUsernameIsActiveRequest added in v0.7.0

type ToggleSupergroupUsernameIsActiveRequest struct {
	// Identifier of the supergroup or channel
	SupergroupId int64 `json:"supergroup_id"`
	// The username to change
	Username string `json:"username"`
	// Pass true to activate the username; pass false to disable it
	IsActive bool `json:"is_active"`
}

type ToggleUsernameIsActiveRequest added in v0.7.0

type ToggleUsernameIsActiveRequest struct {
	// The username to change
	Username string `json:"username"`
	// Pass true to activate the username; pass false to disable it
	IsActive bool `json:"is_active"`
}

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 added in v0.3.2

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 added in v0.2.0

type TopChatCategoryForwardChats struct {
	// contains filtered or unexported fields
}

A category containing frequently used chats used to forward messages

func UnmarshalTopChatCategoryForwardChats added in v0.2.0

func UnmarshalTopChatCategoryForwardChats(data json.RawMessage) (*TopChatCategoryForwardChats, error)

func (*TopChatCategoryForwardChats) GetClass added in v0.2.0

func (*TopChatCategoryForwardChats) GetClass() string

func (*TopChatCategoryForwardChats) GetType added in v0.2.0

func (*TopChatCategoryForwardChats) MarshalJSON added in v0.2.0

func (entity *TopChatCategoryForwardChats) MarshalJSON() ([]byte, error)

func (*TopChatCategoryForwardChats) TopChatCategoryType added in v0.2.0

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 TopChatCategoryWebAppBots added in v0.7.3

type TopChatCategoryWebAppBots struct {
	// contains filtered or unexported fields
}

A category containing frequently used chats with bots, which Web Apps were opened

func UnmarshalTopChatCategoryWebAppBots added in v0.7.3

func UnmarshalTopChatCategoryWebAppBots(data json.RawMessage) (*TopChatCategoryWebAppBots, error)

func (*TopChatCategoryWebAppBots) GetClass added in v0.7.3

func (*TopChatCategoryWebAppBots) GetClass() string

func (*TopChatCategoryWebAppBots) GetType added in v0.7.3

func (*TopChatCategoryWebAppBots) GetType() string

func (*TopChatCategoryWebAppBots) MarshalJSON added in v0.7.3

func (entity *TopChatCategoryWebAppBots) MarshalJSON() ([]byte, error)

func (*TopChatCategoryWebAppBots) TopChatCategoryType added in v0.7.3

func (*TopChatCategoryWebAppBots) TopChatCategoryType() string

type TransferChatOwnershipRequest added in v0.2.0

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 v0.7.0

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 v0.7.0

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 v0.7.0

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 v0.7.0

func UnmarshalTrendingStickerSets(data json.RawMessage) (*TrendingStickerSets, error)

func (*TrendingStickerSets) GetClass added in v0.7.0

func (*TrendingStickerSets) GetClass() string

func (*TrendingStickerSets) GetType added in v0.7.0

func (*TrendingStickerSets) GetType() string

func (*TrendingStickerSets) MarshalJSON added in v0.7.0

func (entity *TrendingStickerSets) MarshalJSON() ([]byte, error)

type Type

type Type interface {
	GetType() string
	GetClass() string
}

func UnmarshalType

func UnmarshalType(data json.RawMessage) (Type, error)

type UnconfirmedSession added in v0.7.0

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 v0.7.0

func UnmarshalUnconfirmedSession(data json.RawMessage) (*UnconfirmedSession, error)

func (*UnconfirmedSession) GetClass added in v0.7.0

func (*UnconfirmedSession) GetClass() string

func (*UnconfirmedSession) GetType added in v0.7.0

func (*UnconfirmedSession) GetType() string

func (*UnconfirmedSession) MarshalJSON added in v0.7.0

func (entity *UnconfirmedSession) MarshalJSON() ([]byte, error)

type UnpinAllChatMessagesRequest added in v0.3.0

type UnpinAllChatMessagesRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
}

type UnpinAllMessageThreadMessagesRequest added in v0.7.0

type UnpinAllMessageThreadMessagesRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
	// Message thread identifier in which messages will be unpinned
	MessageThreadId int64 `json:"message_thread_id"`
}

type UnpinChatMessageRequest added in v0.0.13

type UnpinChatMessageRequest struct {
	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
	// Identifier of the removed pinned message
	MessageId int64 `json:"message_id"`
}

type UnreadReaction added in v0.7.0

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 v0.7.0

func UnmarshalUnreadReaction(data json.RawMessage) (*UnreadReaction, error)

func (*UnreadReaction) GetClass added in v0.7.0

func (*UnreadReaction) GetClass() string

func (*UnreadReaction) GetType added in v0.7.0

func (*UnreadReaction) GetType() string

func (*UnreadReaction) MarshalJSON added in v0.7.0

func (entity *UnreadReaction) MarshalJSON() ([]byte, error)

func (*UnreadReaction) UnmarshalJSON added in v0.7.0

func (unreadReaction *UnreadReaction) UnmarshalJSON(data []byte) error

type Update

type Update interface {
	UpdateType() string
}

Contains notifications about data changes

func UnmarshalListOfUpdate added in v0.3.2

func UnmarshalListOfUpdate(dataList []json.RawMessage) ([]Update, error)

func UnmarshalUpdate

func UnmarshalUpdate(data json.RawMessage) (Update, error)

type UpdateAccentColors added in v0.7.1

type UpdateAccentColors struct {

	// Information about supported colors; colors with identifiers 0 (red), 1 (orange), 2 (purple/violet), 3 (green), 4 (cyan), 5 (blue), 6 (pink) must always be supported and aren't included in the list. The exact colors for the accent colors with identifiers 0-6 must be taken from the app theme
	Colors []*AccentColor `json:"colors"`
	// The list of accent color identifiers, which can be set through setAccentColor and setChatAccentColor. The colors must be shown in the specififed order
	AvailableAccentColorIds []int32 `json:"available_accent_color_ids"`
	// contains filtered or unexported fields
}

The list of supported accent colors has changed

func UnmarshalUpdateAccentColors added in v0.7.1

func UnmarshalUpdateAccentColors(data json.RawMessage) (*UpdateAccentColors, error)

func (*UpdateAccentColors) GetClass added in v0.7.1

func (*UpdateAccentColors) GetClass() string

func (*UpdateAccentColors) GetType added in v0.7.1

func (*UpdateAccentColors) GetType() string

func (*UpdateAccentColors) MarshalJSON added in v0.7.1

func (entity *UpdateAccentColors) MarshalJSON() ([]byte, error)

func (*UpdateAccentColors) UpdateType added in v0.7.1

func (*UpdateAccentColors) UpdateType() string

type UpdateActiveEmojiReactions added in v0.7.0

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 v0.7.0

func UnmarshalUpdateActiveEmojiReactions(data json.RawMessage) (*UpdateActiveEmojiReactions, error)

func (*UpdateActiveEmojiReactions) GetClass added in v0.7.0

func (*UpdateActiveEmojiReactions) GetClass() string

func (*UpdateActiveEmojiReactions) GetType added in v0.7.0

func (*UpdateActiveEmojiReactions) MarshalJSON added in v0.7.0

func (entity *UpdateActiveEmojiReactions) MarshalJSON() ([]byte, error)

func (*UpdateActiveEmojiReactions) UpdateType added in v0.7.0

func (*UpdateActiveEmojiReactions) UpdateType() string

type UpdateActiveLiveLocationMessages added in v0.7.3

type UpdateActiveLiveLocationMessages struct {

	// The list of messages with active live locations
	Messages []*Message `json:"messages"`
	// contains filtered or unexported fields
}

The list of messages with active live location that need to be updated by the application has changed. The list is persistent across application restarts only if the message database is used

func UnmarshalUpdateActiveLiveLocationMessages added in v0.7.3

func UnmarshalUpdateActiveLiveLocationMessages(data json.RawMessage) (*UpdateActiveLiveLocationMessages, error)

func (*UpdateActiveLiveLocationMessages) GetClass added in v0.7.3

func (*UpdateActiveLiveLocationMessages) GetType added in v0.7.3

func (*UpdateActiveLiveLocationMessages) MarshalJSON added in v0.7.3

func (entity *UpdateActiveLiveLocationMessages) MarshalJSON() ([]byte, error)

func (*UpdateActiveLiveLocationMessages) UpdateType added in v0.7.3

type UpdateActiveNotifications added in v0.0.13

type UpdateActiveNotifications struct {

	// Lists of active notification groups
	Groups []*NotificationGroup `json:"groups"`
	// contains filtered or unexported fields
}

Contains active notifications that were 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 added in v0.0.13

func UnmarshalUpdateActiveNotifications(data json.RawMessage) (*UpdateActiveNotifications, error)

func (*UpdateActiveNotifications) GetClass added in v0.0.13

func (*UpdateActiveNotifications) GetClass() string

func (*UpdateActiveNotifications) GetType added in v0.0.13

func (*UpdateActiveNotifications) GetType() string

func (*UpdateActiveNotifications) MarshalJSON added in v0.0.13

func (entity *UpdateActiveNotifications) MarshalJSON() ([]byte, error)

func (*UpdateActiveNotifications) UpdateType added in v0.0.13

func (*UpdateActiveNotifications) UpdateType() string

type UpdateAnimatedEmojiMessageClicked added in v0.5.0

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 added in v0.5.0

func UnmarshalUpdateAnimatedEmojiMessageClicked(data json.RawMessage) (*UpdateAnimatedEmojiMessageClicked, error)

func (*UpdateAnimatedEmojiMessageClicked) GetClass added in v0.5.0

func (*UpdateAnimatedEmojiMessageClicked) GetType added in v0.5.0

func (*UpdateAnimatedEmojiMessageClicked) MarshalJSON added in v0.5.0

func (entity *UpdateAnimatedEmojiMessageClicked) MarshalJSON() ([]byte, error)

func (*UpdateAnimatedEmojiMessageClicked) UpdateType added in v0.5.0

type UpdateAnimationSearchParameters added in v0.3.0

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 added in v0.3.0

func UnmarshalUpdateAnimationSearchParameters(data json.RawMessage) (*UpdateAnimationSearchParameters, error)

func (*UpdateAnimationSearchParameters) GetClass added in v0.3.0

func (*UpdateAnimationSearchParameters) GetType added in v0.3.0

func (*UpdateAnimationSearchParameters) MarshalJSON added in v0.3.0

func (entity *UpdateAnimationSearchParameters) MarshalJSON() ([]byte, error)

func (*UpdateAnimationSearchParameters) UpdateType added in v0.3.0

type UpdateApplicationVerificationRequired added in v0.7.3

type UpdateApplicationVerificationRequired struct {

	// Unique identifier for the verification process
	VerificationId int64 `json:"verification_id"`
	// Unique base64url-encoded nonce for the classic Play Integrity verification (https://developer.android.com/google/play/integrity/classic) for Android, or a unique string to compare with verify_nonce field from a push notification for iOS
	Nonce string `json:"nonce"`
	// Cloud project number to pass to the Play Integrity API on Android
	CloudProjectNumber JsonInt64 `json:"cloud_project_number"`
	// contains filtered or unexported fields
}

A request can't be completed unless application verification is performed; for official mobile applications only. The method setApplicationVerificationToken must be called once the verification is completed or failed

func UnmarshalUpdateApplicationVerificationRequired added in v0.7.3

func UnmarshalUpdateApplicationVerificationRequired(data json.RawMessage) (*UpdateApplicationVerificationRequired, error)

func (*UpdateApplicationVerificationRequired) GetClass added in v0.7.3

func (*UpdateApplicationVerificationRequired) GetType added in v0.7.3

func (*UpdateApplicationVerificationRequired) MarshalJSON added in v0.7.3

func (entity *UpdateApplicationVerificationRequired) MarshalJSON() ([]byte, error)

func (*UpdateApplicationVerificationRequired) UpdateType added in v0.7.3

type UpdateAttachmentMenuBots added in v0.7.0

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 v0.7.0

func UnmarshalUpdateAttachmentMenuBots(data json.RawMessage) (*UpdateAttachmentMenuBots, error)

func (*UpdateAttachmentMenuBots) GetClass added in v0.7.0

func (*UpdateAttachmentMenuBots) GetClass() string

func (*UpdateAttachmentMenuBots) GetType added in v0.7.0

func (*UpdateAttachmentMenuBots) GetType() string

func (*UpdateAttachmentMenuBots) MarshalJSON added in v0.7.0

func (entity *UpdateAttachmentMenuBots) MarshalJSON() ([]byte, error)

func (*UpdateAttachmentMenuBots) UpdateType added in v0.7.0

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 v0.7.0

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 v0.7.0

func UnmarshalUpdateAutosaveSettings(data json.RawMessage) (*UpdateAutosaveSettings, error)

func (*UpdateAutosaveSettings) GetClass added in v0.7.0

func (*UpdateAutosaveSettings) GetClass() string

func (*UpdateAutosaveSettings) GetType added in v0.7.0

func (*UpdateAutosaveSettings) GetType() string

func (*UpdateAutosaveSettings) MarshalJSON added in v0.7.0

func (entity *UpdateAutosaveSettings) MarshalJSON() ([]byte, error)

func (*UpdateAutosaveSettings) UnmarshalJSON added in v0.7.0

func (updateAutosaveSettings *UpdateAutosaveSettings) UnmarshalJSON(data []byte) error

func (*UpdateAutosaveSettings) UpdateType added in v0.7.0

func (*UpdateAutosaveSettings) UpdateType() string

type UpdateAvailableMessageEffects added in v0.7.3

type UpdateAvailableMessageEffects struct {

	// The new list of available message effects from emoji reactions
	ReactionEffectIds []JsonInt64 `json:"reaction_effect_ids"`
	// The new list of available message effects from Premium stickers
	StickerEffectIds []JsonInt64 `json:"sticker_effect_ids"`
	// contains filtered or unexported fields
}

The list of available message effects has changed

func UnmarshalUpdateAvailableMessageEffects added in v0.7.3

func UnmarshalUpdateAvailableMessageEffects(data json.RawMessage) (*UpdateAvailableMessageEffects, error)

func (*UpdateAvailableMessageEffects) GetClass added in v0.7.3

func (*UpdateAvailableMessageEffects) GetType added in v0.7.3

func (*UpdateAvailableMessageEffects) MarshalJSON added in v0.7.3

func (entity *UpdateAvailableMessageEffects) MarshalJSON() ([]byte, error)

func (*UpdateAvailableMessageEffects) UpdateType added in v0.7.3

func (*UpdateAvailableMessageEffects) 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 UpdateBusinessConnection added in v0.7.2

type UpdateBusinessConnection struct {

	// New data about the connection
	Connection *BusinessConnection `json:"connection"`
	// contains filtered or unexported fields
}

A business connection has changed; for bots only

func UnmarshalUpdateBusinessConnection added in v0.7.2

func UnmarshalUpdateBusinessConnection(data json.RawMessage) (*UpdateBusinessConnection, error)

func (*UpdateBusinessConnection) GetClass added in v0.7.2

func (*UpdateBusinessConnection) GetClass() string

func (*UpdateBusinessConnection) GetType added in v0.7.2

func (*UpdateBusinessConnection) GetType() string

func (*UpdateBusinessConnection) MarshalJSON added in v0.7.2

func (entity *UpdateBusinessConnection) MarshalJSON() ([]byte, error)

func (*UpdateBusinessConnection) UpdateType added in v0.7.2

func (*UpdateBusinessConnection) UpdateType() string

type UpdateBusinessMessageEdited added in v0.7.2

type UpdateBusinessMessageEdited struct {

	// Unique identifier of the business connection
	ConnectionId string `json:"connection_id"`
	// The edited message
	Message *BusinessMessage `json:"message"`
	// contains filtered or unexported fields
}

A message in a business account was edited; for bots only

func UnmarshalUpdateBusinessMessageEdited added in v0.7.2

func UnmarshalUpdateBusinessMessageEdited(data json.RawMessage) (*UpdateBusinessMessageEdited, error)

func (*UpdateBusinessMessageEdited) GetClass added in v0.7.2

func (*UpdateBusinessMessageEdited) GetClass() string

func (*UpdateBusinessMessageEdited) GetType added in v0.7.2

func (*UpdateBusinessMessageEdited) MarshalJSON added in v0.7.2

func (entity *UpdateBusinessMessageEdited) MarshalJSON() ([]byte, error)

func (*UpdateBusinessMessageEdited) UpdateType added in v0.7.2

func (*UpdateBusinessMessageEdited) UpdateType() string

type UpdateBusinessMessagesDeleted added in v0.7.2

type UpdateBusinessMessagesDeleted struct {

	// Unique identifier of the business connection
	ConnectionId string `json:"connection_id"`
	// Identifier of a chat in the business account in which messages were deleted
	ChatId int64 `json:"chat_id"`
	// Unique message identifiers of the deleted messages
	MessageIds []int64 `json:"message_ids"`
	// contains filtered or unexported fields
}

Messages in a business account were deleted; for bots only

func UnmarshalUpdateBusinessMessagesDeleted added in v0.7.2

func UnmarshalUpdateBusinessMessagesDeleted(data json.RawMessage) (*UpdateBusinessMessagesDeleted, error)

func (*UpdateBusinessMessagesDeleted) GetClass added in v0.7.2

func (*UpdateBusinessMessagesDeleted) GetType added in v0.7.2

func (*UpdateBusinessMessagesDeleted) MarshalJSON added in v0.7.2

func (entity *UpdateBusinessMessagesDeleted) MarshalJSON() ([]byte, error)

func (*UpdateBusinessMessagesDeleted) UpdateType added in v0.7.2

func (*UpdateBusinessMessagesDeleted) 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 UpdateChatAccentColors added in v0.7.2

type UpdateChatAccentColors struct {

	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// The new chat accent color identifier
	AccentColorId int32 `json:"accent_color_id"`
	// The new identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none
	BackgroundCustomEmojiId JsonInt64 `json:"background_custom_emoji_id"`
	// The new chat profile accent color identifier; -1 if none
	ProfileAccentColorId int32 `json:"profile_accent_color_id"`
	// The new identifier of a custom emoji to be shown on the profile background; 0 if none
	ProfileBackgroundCustomEmojiId JsonInt64 `json:"profile_background_custom_emoji_id"`
	// contains filtered or unexported fields
}

Chat accent colors have changed

func UnmarshalUpdateChatAccentColors added in v0.7.2

func UnmarshalUpdateChatAccentColors(data json.RawMessage) (*UpdateChatAccentColors, error)

func (*UpdateChatAccentColors) GetClass added in v0.7.2

func (*UpdateChatAccentColors) GetClass() string

func (*UpdateChatAccentColors) GetType added in v0.7.2

func (*UpdateChatAccentColors) GetType() string

func (*UpdateChatAccentColors) MarshalJSON added in v0.7.2

func (entity *UpdateChatAccentColors) MarshalJSON() ([]byte, error)

func (*UpdateChatAccentColors) UpdateType added in v0.7.2

func (*UpdateChatAccentColors) UpdateType() string

type UpdateChatAction added in v0.5.0

type UpdateChatAction struct {

	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// If not 0, the 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 added in v0.5.0

func UnmarshalUpdateChatAction(data json.RawMessage) (*UpdateChatAction, error)

func (*UpdateChatAction) GetClass added in v0.5.0

func (*UpdateChatAction) GetClass() string

func (*UpdateChatAction) GetType added in v0.5.0

func (*UpdateChatAction) GetType() string

func (*UpdateChatAction) MarshalJSON added in v0.5.0

func (entity *UpdateChatAction) MarshalJSON() ([]byte, error)

func (*UpdateChatAction) UnmarshalJSON added in v0.5.0

func (updateChatAction *UpdateChatAction) UnmarshalJSON(data []byte) error

func (*UpdateChatAction) UpdateType added in v0.5.0

func (*UpdateChatAction) UpdateType() string

type UpdateChatActionBar added in v0.2.0

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 added in v0.2.0

func UnmarshalUpdateChatActionBar(data json.RawMessage) (*UpdateChatActionBar, error)

func (*UpdateChatActionBar) GetClass added in v0.2.0

func (*UpdateChatActionBar) GetClass() string

func (*UpdateChatActionBar) GetType added in v0.2.0

func (*UpdateChatActionBar) GetType() string

func (*UpdateChatActionBar) MarshalJSON added in v0.2.0

func (entity *UpdateChatActionBar) MarshalJSON() ([]byte, error)

func (*UpdateChatActionBar) UnmarshalJSON added in v0.2.0

func (updateChatActionBar *UpdateChatActionBar) UnmarshalJSON(data []byte) error

func (*UpdateChatActionBar) UpdateType added in v0.2.0

func (*UpdateChatActionBar) UpdateType() string

type UpdateChatActiveStories added in v0.7.0

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 v0.7.0

func UnmarshalUpdateChatActiveStories(data json.RawMessage) (*UpdateChatActiveStories, error)

func (*UpdateChatActiveStories) GetClass added in v0.7.0

func (*UpdateChatActiveStories) GetClass() string

func (*UpdateChatActiveStories) GetType added in v0.7.0

func (*UpdateChatActiveStories) GetType() string

func (*UpdateChatActiveStories) MarshalJSON added in v0.7.0

func (entity *UpdateChatActiveStories) MarshalJSON() ([]byte, error)

func (*UpdateChatActiveStories) UpdateType added in v0.7.0

func (*UpdateChatActiveStories) UpdateType() string

type UpdateChatAddedToList added in v0.7.2

type UpdateChatAddedToList struct {

	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// The chat list to which the chat was added
	ChatList ChatList `json:"chat_list"`
	// contains filtered or unexported fields
}

A chat was added to a chat list

func UnmarshalUpdateChatAddedToList added in v0.7.2

func UnmarshalUpdateChatAddedToList(data json.RawMessage) (*UpdateChatAddedToList, error)

func (*UpdateChatAddedToList) GetClass added in v0.7.2

func (*UpdateChatAddedToList) GetClass() string

func (*UpdateChatAddedToList) GetType added in v0.7.2

func (*UpdateChatAddedToList) GetType() string

func (*UpdateChatAddedToList) MarshalJSON added in v0.7.2

func (entity *UpdateChatAddedToList) MarshalJSON() ([]byte, error)

func (*UpdateChatAddedToList) UnmarshalJSON added in v0.7.2

func (updateChatAddedToList *UpdateChatAddedToList) UnmarshalJSON(data []byte) error

func (*UpdateChatAddedToList) UpdateType added in v0.7.2

func (*UpdateChatAddedToList) UpdateType() string

type UpdateChatAvailableReactions added in v0.7.0

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 v0.7.0

func UnmarshalUpdateChatAvailableReactions(data json.RawMessage) (*UpdateChatAvailableReactions, error)

func (*UpdateChatAvailableReactions) GetClass added in v0.7.0

func (*UpdateChatAvailableReactions) GetType added in v0.7.0

func (*UpdateChatAvailableReactions) MarshalJSON added in v0.7.0

func (entity *UpdateChatAvailableReactions) MarshalJSON() ([]byte, error)

func (*UpdateChatAvailableReactions) UnmarshalJSON added in v0.7.0

func (updateChatAvailableReactions *UpdateChatAvailableReactions) UnmarshalJSON(data []byte) error

func (*UpdateChatAvailableReactions) UpdateType added in v0.7.0

func (*UpdateChatAvailableReactions) UpdateType() string

type UpdateChatBackground added in v0.7.0

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 v0.7.0

func UnmarshalUpdateChatBackground(data json.RawMessage) (*UpdateChatBackground, error)

func (*UpdateChatBackground) GetClass added in v0.7.0

func (*UpdateChatBackground) GetClass() string

func (*UpdateChatBackground) GetType added in v0.7.0

func (*UpdateChatBackground) GetType() string

func (*UpdateChatBackground) MarshalJSON added in v0.7.0

func (entity *UpdateChatBackground) MarshalJSON() ([]byte, error)

func (*UpdateChatBackground) UpdateType added in v0.7.0

func (*UpdateChatBackground) UpdateType() string

type UpdateChatBlockList added in v0.7.0

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 v0.7.0

func UnmarshalUpdateChatBlockList(data json.RawMessage) (*UpdateChatBlockList, error)

func (*UpdateChatBlockList) GetClass added in v0.7.0

func (*UpdateChatBlockList) GetClass() string

func (*UpdateChatBlockList) GetType added in v0.7.0

func (*UpdateChatBlockList) GetType() string

func (*UpdateChatBlockList) MarshalJSON added in v0.7.0

func (entity *UpdateChatBlockList) MarshalJSON() ([]byte, error)

func (*UpdateChatBlockList) UnmarshalJSON added in v0.7.0

func (updateChatBlockList *UpdateChatBlockList) UnmarshalJSON(data []byte) error

func (*UpdateChatBlockList) UpdateType added in v0.7.0

func (*UpdateChatBlockList) UpdateType() string

type UpdateChatBoost added in v0.7.1

type UpdateChatBoost struct {

	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// New information about the boost
	Boost *ChatBoost `json:"boost"`
	// contains filtered or unexported fields
}

A chat boost has changed; for bots only

func UnmarshalUpdateChatBoost added in v0.7.1

func UnmarshalUpdateChatBoost(data json.RawMessage) (*UpdateChatBoost, error)

func (*UpdateChatBoost) GetClass added in v0.7.1

func (*UpdateChatBoost) GetClass() string

func (*UpdateChatBoost) GetType added in v0.7.1

func (*UpdateChatBoost) GetType() string

func (*UpdateChatBoost) MarshalJSON added in v0.7.1

func (entity *UpdateChatBoost) MarshalJSON() ([]byte, error)

func (*UpdateChatBoost) UpdateType added in v0.7.1

func (*UpdateChatBoost) UpdateType() string

type UpdateChatBusinessBotManageBar added in v0.7.3

type UpdateChatBusinessBotManageBar struct {

	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// The new value of the business bot manage bar; may be null
	BusinessBotManageBar *BusinessBotManageBar `json:"business_bot_manage_bar"`
	// contains filtered or unexported fields
}

The bar for managing business bot was changed in a chat

func UnmarshalUpdateChatBusinessBotManageBar added in v0.7.3

func UnmarshalUpdateChatBusinessBotManageBar(data json.RawMessage) (*UpdateChatBusinessBotManageBar, error)

func (*UpdateChatBusinessBotManageBar) GetClass added in v0.7.3

func (*UpdateChatBusinessBotManageBar) GetType added in v0.7.3

func (*UpdateChatBusinessBotManageBar) MarshalJSON added in v0.7.3

func (entity *UpdateChatBusinessBotManageBar) MarshalJSON() ([]byte, error)

func (*UpdateChatBusinessBotManageBar) UpdateType added in v0.7.3

func (*UpdateChatBusinessBotManageBar) 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) GetType

func (*UpdateChatDefaultDisableNotification) MarshalJSON

func (entity *UpdateChatDefaultDisableNotification) MarshalJSON() ([]byte, error)

func (*UpdateChatDefaultDisableNotification) UpdateType

type UpdateChatDraftMessage

type UpdateChatDraftMessage struct {

	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// The new draft message; may be null if none
	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 UpdateChatEmojiStatus added in v0.7.2

type UpdateChatEmojiStatus struct {

	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// The new chat emoji status; may be null
	EmojiStatus *EmojiStatus `json:"emoji_status"`
	// contains filtered or unexported fields
}

Chat emoji status has changed

func UnmarshalUpdateChatEmojiStatus added in v0.7.2

func UnmarshalUpdateChatEmojiStatus(data json.RawMessage) (*UpdateChatEmojiStatus, error)

func (*UpdateChatEmojiStatus) GetClass added in v0.7.2

func (*UpdateChatEmojiStatus) GetClass() string

func (*UpdateChatEmojiStatus) GetType added in v0.7.2

func (*UpdateChatEmojiStatus) GetType() string

func (*UpdateChatEmojiStatus) MarshalJSON added in v0.7.2

func (entity *UpdateChatEmojiStatus) MarshalJSON() ([]byte, error)

func (*UpdateChatEmojiStatus) UpdateType added in v0.7.2

func (*UpdateChatEmojiStatus) UpdateType() string

type UpdateChatFolders added in v0.7.0

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"`
	// True, if folder tags are enabled
	AreTagsEnabled bool `json:"are_tags_enabled"`
	// contains filtered or unexported fields
}

The list of chat folders or a chat folder has changed

func UnmarshalUpdateChatFolders added in v0.7.0

func UnmarshalUpdateChatFolders(data json.RawMessage) (*UpdateChatFolders, error)

func (*UpdateChatFolders) GetClass added in v0.7.0

func (*UpdateChatFolders) GetClass() string

func (*UpdateChatFolders) GetType added in v0.7.0

func (*UpdateChatFolders) GetType() string

func (*UpdateChatFolders) MarshalJSON added in v0.7.0

func (entity *UpdateChatFolders) MarshalJSON() ([]byte, error)

func (*UpdateChatFolders) UpdateType added in v0.7.0

func (*UpdateChatFolders) UpdateType() string

type UpdateChatHasProtectedContent added in v0.5.0

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 added in v0.5.0

func UnmarshalUpdateChatHasProtectedContent(data json.RawMessage) (*UpdateChatHasProtectedContent, error)

func (*UpdateChatHasProtectedContent) GetClass added in v0.5.0

func (*UpdateChatHasProtectedContent) GetType added in v0.5.0

func (*UpdateChatHasProtectedContent) MarshalJSON added in v0.5.0

func (entity *UpdateChatHasProtectedContent) MarshalJSON() ([]byte, error)

func (*UpdateChatHasProtectedContent) UpdateType added in v0.5.0

func (*UpdateChatHasProtectedContent) UpdateType() string

type UpdateChatHasScheduledMessages added in v0.2.0

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 added in v0.2.0

func UnmarshalUpdateChatHasScheduledMessages(data json.RawMessage) (*UpdateChatHasScheduledMessages, error)

func (*UpdateChatHasScheduledMessages) GetClass added in v0.2.0

func (*UpdateChatHasScheduledMessages) GetType added in v0.2.0

func (*UpdateChatHasScheduledMessages) MarshalJSON added in v0.2.0

func (entity *UpdateChatHasScheduledMessages) MarshalJSON() ([]byte, error)

func (*UpdateChatHasScheduledMessages) UpdateType added in v0.2.0

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) MarshalJSON

func (entity *UpdateChatIsMarkedAsUnread) MarshalJSON() ([]byte, error)

func (*UpdateChatIsMarkedAsUnread) UpdateType

func (*UpdateChatIsMarkedAsUnread) UpdateType() string

type UpdateChatIsTranslatable added in v0.7.0

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 v0.7.0

func UnmarshalUpdateChatIsTranslatable(data json.RawMessage) (*UpdateChatIsTranslatable, error)

func (*UpdateChatIsTranslatable) GetClass added in v0.7.0

func (*UpdateChatIsTranslatable) GetClass() string

func (*UpdateChatIsTranslatable) GetType added in v0.7.0

func (*UpdateChatIsTranslatable) GetType() string

func (*UpdateChatIsTranslatable) MarshalJSON added in v0.7.0

func (entity *UpdateChatIsTranslatable) MarshalJSON() ([]byte, error)

func (*UpdateChatIsTranslatable) UpdateType added in v0.7.0

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 if the last message became unknown. While the last message is unknown, new messages can be added to the chat without corresponding updateNewMessage update
	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

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 added in v0.5.0

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 were 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 after sending a join request and being approved by an administrator
	ViaJoinRequest bool `json:"via_join_request"`
	// 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 added in v0.5.0

func UnmarshalUpdateChatMember(data json.RawMessage) (*UpdateChatMember, error)

func (*UpdateChatMember) GetClass added in v0.5.0

func (*UpdateChatMember) GetClass() string

func (*UpdateChatMember) GetType added in v0.5.0

func (*UpdateChatMember) GetType() string

func (*UpdateChatMember) MarshalJSON added in v0.5.0

func (entity *UpdateChatMember) MarshalJSON() ([]byte, error)

func (*UpdateChatMember) UpdateType added in v0.5.0

func (*UpdateChatMember) UpdateType() string

type UpdateChatMessageAutoDeleteTime added in v0.7.0

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 v0.7.0

func UnmarshalUpdateChatMessageAutoDeleteTime(data json.RawMessage) (*UpdateChatMessageAutoDeleteTime, error)

func (*UpdateChatMessageAutoDeleteTime) GetClass added in v0.7.0

func (*UpdateChatMessageAutoDeleteTime) GetType added in v0.7.0

func (*UpdateChatMessageAutoDeleteTime) MarshalJSON added in v0.7.0

func (entity *UpdateChatMessageAutoDeleteTime) MarshalJSON() ([]byte, error)

func (*UpdateChatMessageAutoDeleteTime) UpdateType added in v0.7.0

type UpdateChatMessageSender added in v0.5.0

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 added in v0.5.0

func UnmarshalUpdateChatMessageSender(data json.RawMessage) (*UpdateChatMessageSender, error)

func (*UpdateChatMessageSender) GetClass added in v0.5.0

func (*UpdateChatMessageSender) GetClass() string

func (*UpdateChatMessageSender) GetType added in v0.5.0

func (*UpdateChatMessageSender) GetType() string

func (*UpdateChatMessageSender) MarshalJSON added in v0.5.0

func (entity *UpdateChatMessageSender) MarshalJSON() ([]byte, error)

func (*UpdateChatMessageSender) UnmarshalJSON added in v0.5.0

func (updateChatMessageSender *UpdateChatMessageSender) UnmarshalJSON(data []byte) error

func (*UpdateChatMessageSender) UpdateType added in v0.5.0

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) GetType

func (*UpdateChatNotificationSettings) MarshalJSON

func (entity *UpdateChatNotificationSettings) MarshalJSON() ([]byte, error)

func (*UpdateChatNotificationSettings) UpdateType

func (*UpdateChatNotificationSettings) UpdateType() string

type UpdateChatOnlineMemberCount added in v0.0.13

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 is sent just after the number of online users has changed

func UnmarshalUpdateChatOnlineMemberCount added in v0.0.13

func UnmarshalUpdateChatOnlineMemberCount(data json.RawMessage) (*UpdateChatOnlineMemberCount, error)

func (*UpdateChatOnlineMemberCount) GetClass added in v0.0.13

func (*UpdateChatOnlineMemberCount) GetClass() string

func (*UpdateChatOnlineMemberCount) GetType added in v0.0.13

func (*UpdateChatOnlineMemberCount) MarshalJSON added in v0.0.13

func (entity *UpdateChatOnlineMemberCount) MarshalJSON() ([]byte, error)

func (*UpdateChatOnlineMemberCount) UpdateType added in v0.0.13

func (*UpdateChatOnlineMemberCount) UpdateType() string

type UpdateChatPendingJoinRequests added in v0.5.0

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 added in v0.5.0

func UnmarshalUpdateChatPendingJoinRequests(data json.RawMessage) (*UpdateChatPendingJoinRequests, error)

func (*UpdateChatPendingJoinRequests) GetClass added in v0.5.0

func (*UpdateChatPendingJoinRequests) GetType added in v0.5.0

func (*UpdateChatPendingJoinRequests) MarshalJSON added in v0.5.0

func (entity *UpdateChatPendingJoinRequests) MarshalJSON() ([]byte, error)

func (*UpdateChatPendingJoinRequests) UpdateType added in v0.5.0

func (*UpdateChatPendingJoinRequests) UpdateType() string

type UpdateChatPermissions added in v0.1.0

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 were changed

func UnmarshalUpdateChatPermissions added in v0.1.0

func UnmarshalUpdateChatPermissions(data json.RawMessage) (*UpdateChatPermissions, error)

func (*UpdateChatPermissions) GetClass added in v0.1.0

func (*UpdateChatPermissions) GetClass() string

func (*UpdateChatPermissions) GetType added in v0.1.0

func (*UpdateChatPermissions) GetType() string

func (*UpdateChatPermissions) MarshalJSON added in v0.1.0

func (entity *UpdateChatPermissions) MarshalJSON() ([]byte, error)

func (*UpdateChatPermissions) UpdateType added in v0.1.0

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 added in v0.3.0

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 added in v0.3.0

func UnmarshalUpdateChatPosition(data json.RawMessage) (*UpdateChatPosition, error)

func (*UpdateChatPosition) GetClass added in v0.3.0

func (*UpdateChatPosition) GetClass() string

func (*UpdateChatPosition) GetType added in v0.3.0

func (*UpdateChatPosition) GetType() string

func (*UpdateChatPosition) MarshalJSON added in v0.3.0

func (entity *UpdateChatPosition) MarshalJSON() ([]byte, error)

func (*UpdateChatPosition) UpdateType added in v0.3.0

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 UpdateChatRemovedFromList added in v0.7.2

type UpdateChatRemovedFromList struct {

	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// The chat list from which the chat was removed
	ChatList ChatList `json:"chat_list"`
	// contains filtered or unexported fields
}

A chat was removed from a chat list

func UnmarshalUpdateChatRemovedFromList added in v0.7.2

func UnmarshalUpdateChatRemovedFromList(data json.RawMessage) (*UpdateChatRemovedFromList, error)

func (*UpdateChatRemovedFromList) GetClass added in v0.7.2

func (*UpdateChatRemovedFromList) GetClass() string

func (*UpdateChatRemovedFromList) GetType added in v0.7.2

func (*UpdateChatRemovedFromList) GetType() string

func (*UpdateChatRemovedFromList) MarshalJSON added in v0.7.2

func (entity *UpdateChatRemovedFromList) MarshalJSON() ([]byte, error)

func (*UpdateChatRemovedFromList) UnmarshalJSON added in v0.7.2

func (updateChatRemovedFromList *UpdateChatRemovedFromList) UnmarshalJSON(data []byte) error

func (*UpdateChatRemovedFromList) UpdateType added in v0.7.2

func (*UpdateChatRemovedFromList) 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 UpdateChatRevenueAmount added in v0.7.3

type UpdateChatRevenueAmount struct {

	// Identifier of the chat
	ChatId int64 `json:"chat_id"`
	// New amount of earned revenue
	RevenueAmount *ChatRevenueAmount `json:"revenue_amount"`
	// contains filtered or unexported fields
}

The revenue earned from sponsored messages in a chat has changed. If chat revenue screen is opened, then getChatRevenueTransactions may be called to fetch new transactions

func UnmarshalUpdateChatRevenueAmount added in v0.7.3

func UnmarshalUpdateChatRevenueAmount(data json.RawMessage) (*UpdateChatRevenueAmount, error)

func (*UpdateChatRevenueAmount) GetClass added in v0.7.3

func (*UpdateChatRevenueAmount) GetClass() string

func (*UpdateChatRevenueAmount) GetType added in v0.7.3

func (*UpdateChatRevenueAmount) GetType() string

func (*UpdateChatRevenueAmount) MarshalJSON added in v0.7.3

func (entity *UpdateChatRevenueAmount) MarshalJSON() ([]byte, error)

func (*UpdateChatRevenueAmount) UpdateType added in v0.7.3

func (*UpdateChatRevenueAmount) UpdateType() string

type UpdateChatTheme added in v0.5.0

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 added in v0.5.0

func UnmarshalUpdateChatTheme(data json.RawMessage) (*UpdateChatTheme, error)

func (*UpdateChatTheme) GetClass added in v0.5.0

func (*UpdateChatTheme) GetClass() string

func (*UpdateChatTheme) GetType added in v0.5.0

func (*UpdateChatTheme) GetType() string

func (*UpdateChatTheme) MarshalJSON added in v0.5.0

func (entity *UpdateChatTheme) MarshalJSON() ([]byte, error)

func (*UpdateChatTheme) UpdateType added in v0.5.0

func (*UpdateChatTheme) UpdateType() string

type UpdateChatThemes added in v0.5.0

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 added in v0.5.0

func UnmarshalUpdateChatThemes(data json.RawMessage) (*UpdateChatThemes, error)

func (*UpdateChatThemes) GetClass added in v0.5.0

func (*UpdateChatThemes) GetClass() string

func (*UpdateChatThemes) GetType added in v0.5.0

func (*UpdateChatThemes) GetType() string

func (*UpdateChatThemes) MarshalJSON added in v0.5.0

func (entity *UpdateChatThemes) MarshalJSON() ([]byte, error)

func (*UpdateChatThemes) UpdateType added in v0.5.0

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) GetType

func (*UpdateChatUnreadMentionCount) MarshalJSON

func (entity *UpdateChatUnreadMentionCount) MarshalJSON() ([]byte, error)

func (*UpdateChatUnreadMentionCount) UpdateType

func (*UpdateChatUnreadMentionCount) UpdateType() string

type UpdateChatUnreadReactionCount added in v0.7.0

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 v0.7.0

func UnmarshalUpdateChatUnreadReactionCount(data json.RawMessage) (*UpdateChatUnreadReactionCount, error)

func (*UpdateChatUnreadReactionCount) GetClass added in v0.7.0

func (*UpdateChatUnreadReactionCount) GetType added in v0.7.0

func (*UpdateChatUnreadReactionCount) MarshalJSON added in v0.7.0

func (entity *UpdateChatUnreadReactionCount) MarshalJSON() ([]byte, error)

func (*UpdateChatUnreadReactionCount) UpdateType added in v0.7.0

func (*UpdateChatUnreadReactionCount) UpdateType() string

type UpdateChatVideoChat added in v0.5.0

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 added in v0.5.0

func UnmarshalUpdateChatVideoChat(data json.RawMessage) (*UpdateChatVideoChat, error)

func (*UpdateChatVideoChat) GetClass added in v0.5.0

func (*UpdateChatVideoChat) GetClass() string

func (*UpdateChatVideoChat) GetType added in v0.5.0

func (*UpdateChatVideoChat) GetType() string

func (*UpdateChatVideoChat) MarshalJSON added in v0.5.0

func (entity *UpdateChatVideoChat) MarshalJSON() ([]byte, error)

func (*UpdateChatVideoChat) UpdateType added in v0.5.0

func (*UpdateChatVideoChat) UpdateType() string

type UpdateChatViewAsTopics added in v0.7.1

type UpdateChatViewAsTopics struct {

	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// New value of view_as_topics
	ViewAsTopics bool `json:"view_as_topics"`
	// contains filtered or unexported fields
}

A chat default appearance has changed

func UnmarshalUpdateChatViewAsTopics added in v0.7.1

func UnmarshalUpdateChatViewAsTopics(data json.RawMessage) (*UpdateChatViewAsTopics, error)

func (*UpdateChatViewAsTopics) GetClass added in v0.7.1

func (*UpdateChatViewAsTopics) GetClass() string

func (*UpdateChatViewAsTopics) GetType added in v0.7.1

func (*UpdateChatViewAsTopics) GetType() string

func (*UpdateChatViewAsTopics) MarshalJSON added in v0.7.1

func (entity *UpdateChatViewAsTopics) MarshalJSON() ([]byte, error)

func (*UpdateChatViewAsTopics) UpdateType added in v0.7.1

func (*UpdateChatViewAsTopics) 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 UpdateContactCloseBirthdays added in v0.7.2

type UpdateContactCloseBirthdays struct {

	// List of contact users with close birthday
	CloseBirthdayUsers []*CloseBirthdayUser `json:"close_birthday_users"`
	// contains filtered or unexported fields
}

The list of contacts that had birthdays recently or will have birthday soon has changed

func UnmarshalUpdateContactCloseBirthdays added in v0.7.2

func UnmarshalUpdateContactCloseBirthdays(data json.RawMessage) (*UpdateContactCloseBirthdays, error)

func (*UpdateContactCloseBirthdays) GetClass added in v0.7.2

func (*UpdateContactCloseBirthdays) GetClass() string

func (*UpdateContactCloseBirthdays) GetType added in v0.7.2

func (*UpdateContactCloseBirthdays) MarshalJSON added in v0.7.2

func (entity *UpdateContactCloseBirthdays) MarshalJSON() ([]byte, error)

func (*UpdateContactCloseBirthdays) UpdateType added in v0.7.2

func (*UpdateContactCloseBirthdays) UpdateType() string

type UpdateDefaultBackground added in v0.7.2

type UpdateDefaultBackground struct {

	// True, if default background for dark theme has changed
	ForDarkTheme bool `json:"for_dark_theme"`
	// The new default background; may be null
	Background *Background `json:"background"`
	// contains filtered or unexported fields
}

The default background has changed

func UnmarshalUpdateDefaultBackground added in v0.7.2

func UnmarshalUpdateDefaultBackground(data json.RawMessage) (*UpdateDefaultBackground, error)

func (*UpdateDefaultBackground) GetClass added in v0.7.2

func (*UpdateDefaultBackground) GetClass() string

func (*UpdateDefaultBackground) GetType added in v0.7.2

func (*UpdateDefaultBackground) GetType() string

func (*UpdateDefaultBackground) MarshalJSON added in v0.7.2

func (entity *UpdateDefaultBackground) MarshalJSON() ([]byte, error)

func (*UpdateDefaultBackground) UpdateType added in v0.7.2

func (*UpdateDefaultBackground) UpdateType() string

type UpdateDefaultReactionType added in v0.7.0

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 v0.7.0

func UnmarshalUpdateDefaultReactionType(data json.RawMessage) (*UpdateDefaultReactionType, error)

func (*UpdateDefaultReactionType) GetClass added in v0.7.0

func (*UpdateDefaultReactionType) GetClass() string

func (*UpdateDefaultReactionType) GetType added in v0.7.0

func (*UpdateDefaultReactionType) GetType() string

func (*UpdateDefaultReactionType) MarshalJSON added in v0.7.0

func (entity *UpdateDefaultReactionType) MarshalJSON() ([]byte, error)

func (*UpdateDefaultReactionType) UnmarshalJSON added in v0.7.0

func (updateDefaultReactionType *UpdateDefaultReactionType) UnmarshalJSON(data []byte) error

func (*UpdateDefaultReactionType) UpdateType added in v0.7.0

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 added in v0.3.0

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 added in v0.3.0

func UnmarshalUpdateDiceEmojis(data json.RawMessage) (*UpdateDiceEmojis, error)

func (*UpdateDiceEmojis) GetClass added in v0.3.0

func (*UpdateDiceEmojis) GetClass() string

func (*UpdateDiceEmojis) GetType added in v0.3.0

func (*UpdateDiceEmojis) GetType() string

func (*UpdateDiceEmojis) MarshalJSON added in v0.3.0

func (entity *UpdateDiceEmojis) MarshalJSON() ([]byte, error)

func (*UpdateDiceEmojis) UpdateType added in v0.3.0

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 v0.7.0

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 v0.7.0

func UnmarshalUpdateFileAddedToDownloads(data json.RawMessage) (*UpdateFileAddedToDownloads, error)

func (*UpdateFileAddedToDownloads) GetClass added in v0.7.0

func (*UpdateFileAddedToDownloads) GetClass() string

func (*UpdateFileAddedToDownloads) GetType added in v0.7.0

func (*UpdateFileAddedToDownloads) MarshalJSON added in v0.7.0

func (entity *UpdateFileAddedToDownloads) MarshalJSON() ([]byte, error)

func (*UpdateFileAddedToDownloads) UpdateType added in v0.7.0

func (*UpdateFileAddedToDownloads) UpdateType() string

type UpdateFileDownload added in v0.7.0

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 v0.7.0

func UnmarshalUpdateFileDownload(data json.RawMessage) (*UpdateFileDownload, error)

func (*UpdateFileDownload) GetClass added in v0.7.0

func (*UpdateFileDownload) GetClass() string

func (*UpdateFileDownload) GetType added in v0.7.0

func (*UpdateFileDownload) GetType() string

func (*UpdateFileDownload) MarshalJSON added in v0.7.0

func (entity *UpdateFileDownload) MarshalJSON() ([]byte, error)

func (*UpdateFileDownload) UpdateType added in v0.7.0

func (*UpdateFileDownload) UpdateType() string

type UpdateFileDownloads added in v0.7.0

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 v0.7.0

func UnmarshalUpdateFileDownloads(data json.RawMessage) (*UpdateFileDownloads, error)

func (*UpdateFileDownloads) GetClass added in v0.7.0

func (*UpdateFileDownloads) GetClass() string

func (*UpdateFileDownloads) GetType added in v0.7.0

func (*UpdateFileDownloads) GetType() string

func (*UpdateFileDownloads) MarshalJSON added in v0.7.0

func (entity *UpdateFileDownloads) MarshalJSON() ([]byte, error)

func (*UpdateFileDownloads) UpdateType added in v0.7.0

func (*UpdateFileDownloads) UpdateType() string

type UpdateFileGenerationStart

type UpdateFileGenerationStart struct {

	// Unique identifier for the generation process
	GenerationId JsonInt64 `json:"generation_id"`
	// The original path specified by the application in inputFileGenerated
	OriginalPath string `json:"original_path"`
	// The path to a file that must be created and where the new file must be generated by the application. If the application has no access to the path, it can use writeGeneratedFilePart to generate the file
	DestinationPath string `json:"destination_path"`
	// If the conversion is "#url#" than original_path contains an HTTP/HTTPS URL of a file that must be downloaded by the application. Otherwise, this is the conversion specified by the application in inputFileGenerated
	Conversion string `json:"conversion"`
	// contains filtered or unexported fields
}

The file generation process needs to be started by the application. Use setFileGenerationProgress and finishFileGeneration to generate the file

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 v0.7.0

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 v0.7.0

func UnmarshalUpdateFileRemovedFromDownloads(data json.RawMessage) (*UpdateFileRemovedFromDownloads, error)

func (*UpdateFileRemovedFromDownloads) GetClass added in v0.7.0

func (*UpdateFileRemovedFromDownloads) GetType added in v0.7.0

func (*UpdateFileRemovedFromDownloads) MarshalJSON added in v0.7.0

func (entity *UpdateFileRemovedFromDownloads) MarshalJSON() ([]byte, error)

func (*UpdateFileRemovedFromDownloads) UpdateType added in v0.7.0

func (*UpdateFileRemovedFromDownloads) UpdateType() string

type UpdateForumTopicInfo added in v0.7.0

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 v0.7.0

func UnmarshalUpdateForumTopicInfo(data json.RawMessage) (*UpdateForumTopicInfo, error)

func (*UpdateForumTopicInfo) GetClass added in v0.7.0

func (*UpdateForumTopicInfo) GetClass() string

func (*UpdateForumTopicInfo) GetType added in v0.7.0

func (*UpdateForumTopicInfo) GetType() string

func (*UpdateForumTopicInfo) MarshalJSON added in v0.7.0

func (entity *UpdateForumTopicInfo) MarshalJSON() ([]byte, error)

func (*UpdateForumTopicInfo) UpdateType added in v0.7.0

func (*UpdateForumTopicInfo) UpdateType() string

type UpdateGroupCall added in v0.5.0

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 added in v0.5.0

func UnmarshalUpdateGroupCall(data json.RawMessage) (*UpdateGroupCall, error)

func (*UpdateGroupCall) GetClass added in v0.5.0

func (*UpdateGroupCall) GetClass() string

func (*UpdateGroupCall) GetType added in v0.5.0

func (*UpdateGroupCall) GetType() string

func (*UpdateGroupCall) MarshalJSON added in v0.5.0

func (entity *UpdateGroupCall) MarshalJSON() ([]byte, error)

func (*UpdateGroupCall) UpdateType added in v0.5.0

func (*UpdateGroupCall) UpdateType() string

type UpdateGroupCallParticipant added in v0.5.0

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 added in v0.5.0

func UnmarshalUpdateGroupCallParticipant(data json.RawMessage) (*UpdateGroupCallParticipant, error)

func (*UpdateGroupCallParticipant) GetClass added in v0.5.0

func (*UpdateGroupCallParticipant) GetClass() string

func (*UpdateGroupCallParticipant) GetType added in v0.5.0

func (*UpdateGroupCallParticipant) MarshalJSON added in v0.5.0

func (entity *UpdateGroupCallParticipant) MarshalJSON() ([]byte, error)

func (*UpdateGroupCallParticipant) UpdateType added in v0.5.0

func (*UpdateGroupCallParticipant) UpdateType() string

type UpdateHavePendingNotifications added in v0.0.13

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 added in v0.0.13

func UnmarshalUpdateHavePendingNotifications(data json.RawMessage) (*UpdateHavePendingNotifications, error)

func (*UpdateHavePendingNotifications) GetClass added in v0.0.13

func (*UpdateHavePendingNotifications) GetType added in v0.0.13

func (*UpdateHavePendingNotifications) MarshalJSON added in v0.0.13

func (entity *UpdateHavePendingNotifications) MarshalJSON() ([]byte, error)

func (*UpdateHavePendingNotifications) UpdateType added in v0.0.13

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) MarshalJSON

func (entity *UpdateInstalledStickerSets) MarshalJSON() ([]byte, error)

func (*UpdateInstalledStickerSets) UnmarshalJSON added in v0.7.0

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) 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 UpdateMessageFactCheck added in v0.7.3

type UpdateMessageFactCheck struct {

	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Message identifier
	MessageId int64 `json:"message_id"`
	// The new fact-check
	FactCheck *FactCheck `json:"fact_check"`
	// contains filtered or unexported fields
}

A fact-check added to a message was changed

func UnmarshalUpdateMessageFactCheck added in v0.7.3

func UnmarshalUpdateMessageFactCheck(data json.RawMessage) (*UpdateMessageFactCheck, error)

func (*UpdateMessageFactCheck) GetClass added in v0.7.3

func (*UpdateMessageFactCheck) GetClass() string

func (*UpdateMessageFactCheck) GetType added in v0.7.3

func (*UpdateMessageFactCheck) GetType() string

func (*UpdateMessageFactCheck) MarshalJSON added in v0.7.3

func (entity *UpdateMessageFactCheck) MarshalJSON() ([]byte, error)

func (*UpdateMessageFactCheck) UpdateType added in v0.7.3

func (*UpdateMessageFactCheck) UpdateType() string

type UpdateMessageInteractionInfo added in v0.3.0

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 added in v0.3.0

func UnmarshalUpdateMessageInteractionInfo(data json.RawMessage) (*UpdateMessageInteractionInfo, error)

func (*UpdateMessageInteractionInfo) GetClass added in v0.3.0

func (*UpdateMessageInteractionInfo) GetType added in v0.3.0

func (*UpdateMessageInteractionInfo) MarshalJSON added in v0.3.0

func (entity *UpdateMessageInteractionInfo) MarshalJSON() ([]byte, error)

func (*UpdateMessageInteractionInfo) UpdateType added in v0.3.0

func (*UpdateMessageInteractionInfo) UpdateType() string

type UpdateMessageIsPinned added in v0.3.0

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 added in v0.3.0

func UnmarshalUpdateMessageIsPinned(data json.RawMessage) (*UpdateMessageIsPinned, error)

func (*UpdateMessageIsPinned) GetClass added in v0.3.0

func (*UpdateMessageIsPinned) GetClass() string

func (*UpdateMessageIsPinned) GetType added in v0.3.0

func (*UpdateMessageIsPinned) GetType() string

func (*UpdateMessageIsPinned) MarshalJSON added in v0.3.0

func (entity *UpdateMessageIsPinned) MarshalJSON() ([]byte, error)

func (*UpdateMessageIsPinned) UpdateType added in v0.3.0

func (*UpdateMessageIsPinned) UpdateType() string

type UpdateMessageLiveLocationViewed added in v0.2.0

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 expected to update the live location

func UnmarshalUpdateMessageLiveLocationViewed added in v0.2.0

func UnmarshalUpdateMessageLiveLocationViewed(data json.RawMessage) (*UpdateMessageLiveLocationViewed, error)

func (*UpdateMessageLiveLocationViewed) GetClass added in v0.2.0

func (*UpdateMessageLiveLocationViewed) GetType added in v0.2.0

func (*UpdateMessageLiveLocationViewed) MarshalJSON added in v0.2.0

func (entity *UpdateMessageLiveLocationViewed) MarshalJSON() ([]byte, error)

func (*UpdateMessageLiveLocationViewed) UpdateType added in v0.2.0

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 UpdateMessageReaction added in v0.7.2

type UpdateMessageReaction struct {

	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Message identifier
	MessageId int64 `json:"message_id"`
	// Identifier of the user or chat that changed reactions
	ActorId MessageSender `json:"actor_id"`
	// Point in time (Unix timestamp) when the reactions were changed
	Date int32 `json:"date"`
	// Old list of chosen reactions
	OldReactionTypes []ReactionType `json:"old_reaction_types"`
	// New list of chosen reactions
	NewReactionTypes []ReactionType `json:"new_reaction_types"`
	// contains filtered or unexported fields
}

User changed its reactions on a message with public reactions; for bots only

func UnmarshalUpdateMessageReaction added in v0.7.2

func UnmarshalUpdateMessageReaction(data json.RawMessage) (*UpdateMessageReaction, error)

func (*UpdateMessageReaction) GetClass added in v0.7.2

func (*UpdateMessageReaction) GetClass() string

func (*UpdateMessageReaction) GetType added in v0.7.2

func (*UpdateMessageReaction) GetType() string

func (*UpdateMessageReaction) MarshalJSON added in v0.7.2

func (entity *UpdateMessageReaction) MarshalJSON() ([]byte, error)

func (*UpdateMessageReaction) UnmarshalJSON added in v0.7.2

func (updateMessageReaction *UpdateMessageReaction) UnmarshalJSON(data []byte) error

func (*UpdateMessageReaction) UpdateType added in v0.7.2

func (*UpdateMessageReaction) UpdateType() string

type UpdateMessageReactions added in v0.7.2

type UpdateMessageReactions struct {

	// Chat identifier
	ChatId int64 `json:"chat_id"`
	// Message identifier
	MessageId int64 `json:"message_id"`
	// Point in time (Unix timestamp) when the reactions were changed
	Date int32 `json:"date"`
	// The list of reactions added to the message
	Reactions []*MessageReaction `json:"reactions"`
	// contains filtered or unexported fields
}

Reactions added to a message with anonymous reactions have changed; for bots only

func UnmarshalUpdateMessageReactions added in v0.7.2

func UnmarshalUpdateMessageReactions(data json.RawMessage) (*UpdateMessageReactions, error)

func (*UpdateMessageReactions) GetClass added in v0.7.2

func (*UpdateMessageReactions) GetClass() string

func (*UpdateMessageReactions) GetType added in v0.7.2

func (*UpdateMessageReactions) GetType() string

func (*UpdateMessageReactions) MarshalJSON added in v0.7.2

func (entity *UpdateMessageReactions) MarshalJSON() ([]byte, error)

func (*UpdateMessageReactions) UpdateType added in v0.7.2

func (*UpdateMessageReactions) 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. This update is 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) GetType

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"`
	// The cause of the message sending failure
	Error *Error `json:"error"`
	// 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. Almost any field of the new message can be different from the corresponding field of the original message. For example, the field scheduling_state may change, making the message scheduled, or non-scheduled
	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) MarshalJSON

func (entity *UpdateMessageSendSucceeded) MarshalJSON() ([]byte, error)

func (*UpdateMessageSendSucceeded) UpdateType

func (*UpdateMessageSendSucceeded) UpdateType() string

type UpdateMessageUnreadReactions added in v0.7.0

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 v0.7.0

func UnmarshalUpdateMessageUnreadReactions(data json.RawMessage) (*UpdateMessageUnreadReactions, error)

func (*UpdateMessageUnreadReactions) GetClass added in v0.7.0

func (*UpdateMessageUnreadReactions) GetType added in v0.7.0

func (*UpdateMessageUnreadReactions) MarshalJSON added in v0.7.0

func (entity *UpdateMessageUnreadReactions) MarshalJSON() ([]byte, error)

func (*UpdateMessageUnreadReactions) UpdateType added in v0.7.0

func (*UpdateMessageUnreadReactions) UpdateType() string

type UpdateNewBusinessCallbackQuery added in v0.7.3

type UpdateNewBusinessCallbackQuery struct {

	// Unique query identifier
	Id JsonInt64 `json:"id"`
	// Identifier of the user who sent the query
	SenderUserId int64 `json:"sender_user_id"`
	// Unique identifier of the business connection
	ConnectionId string `json:"connection_id"`
	// The message from the business account from which the query originated
	Message *BusinessMessage `json:"message"`
	// 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 business message; for bots only

func UnmarshalUpdateNewBusinessCallbackQuery added in v0.7.3

func UnmarshalUpdateNewBusinessCallbackQuery(data json.RawMessage) (*UpdateNewBusinessCallbackQuery, error)

func (*UpdateNewBusinessCallbackQuery) GetClass added in v0.7.3

func (*UpdateNewBusinessCallbackQuery) GetType added in v0.7.3

func (*UpdateNewBusinessCallbackQuery) MarshalJSON added in v0.7.3

func (entity *UpdateNewBusinessCallbackQuery) MarshalJSON() ([]byte, error)

func (*UpdateNewBusinessCallbackQuery) UnmarshalJSON added in v0.7.3

func (updateNewBusinessCallbackQuery *UpdateNewBusinessCallbackQuery) UnmarshalJSON(data []byte) error

func (*UpdateNewBusinessCallbackQuery) UpdateType added in v0.7.3

func (*UpdateNewBusinessCallbackQuery) UpdateType() string

type UpdateNewBusinessMessage added in v0.7.2

type UpdateNewBusinessMessage struct {

	// Unique identifier of the business connection
	ConnectionId string `json:"connection_id"`
	// The new message
	Message *BusinessMessage `json:"message"`
	// contains filtered or unexported fields
}

A new message was added to a business account; for bots only

func UnmarshalUpdateNewBusinessMessage added in v0.7.2

func UnmarshalUpdateNewBusinessMessage(data json.RawMessage) (*UpdateNewBusinessMessage, error)

func (*UpdateNewBusinessMessage) GetClass added in v0.7.2

func (*UpdateNewBusinessMessage) GetClass() string

func (*UpdateNewBusinessMessage) GetType added in v0.7.2

func (*UpdateNewBusinessMessage) GetType() string

func (*UpdateNewBusinessMessage) MarshalJSON added in v0.7.2

func (entity *UpdateNewBusinessMessage) MarshalJSON() ([]byte, error)

func (*UpdateNewBusinessMessage) UpdateType added in v0.7.2

func (*UpdateNewBusinessMessage) UpdateType() string

type UpdateNewCallSignalingData added in v0.3.0

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 added in v0.3.0

func UnmarshalUpdateNewCallSignalingData(data json.RawMessage) (*UpdateNewCallSignalingData, error)

func (*UpdateNewCallSignalingData) GetClass added in v0.3.0

func (*UpdateNewCallSignalingData) GetClass() string

func (*UpdateNewCallSignalingData) GetType added in v0.3.0

func (*UpdateNewCallSignalingData) MarshalJSON added in v0.3.0

func (entity *UpdateNewCallSignalingData) MarshalJSON() ([]byte, error)

func (*UpdateNewCallSignalingData) UpdateType added in v0.3.0

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 added in v0.5.0

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 added in v0.5.0

func UnmarshalUpdateNewChatJoinRequest(data json.RawMessage) (*UpdateNewChatJoinRequest, error)

func (*UpdateNewChatJoinRequest) GetClass added in v0.5.0

func (*UpdateNewChatJoinRequest) GetClass() string

func (*UpdateNewChatJoinRequest) GetType added in v0.5.0

func (*UpdateNewChatJoinRequest) GetType() string

func (*UpdateNewChatJoinRequest) MarshalJSON added in v0.5.0

func (entity *UpdateNewChatJoinRequest) MarshalJSON() ([]byte, error)

func (*UpdateNewChatJoinRequest) UpdateType added in v0.5.0

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) 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) GetType

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 added in v0.5.0

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 added in v0.0.13

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 added in v0.0.13

func UnmarshalUpdateNotification(data json.RawMessage) (*UpdateNotification, error)

func (*UpdateNotification) GetClass added in v0.0.13

func (*UpdateNotification) GetClass() string

func (*UpdateNotification) GetType added in v0.0.13

func (*UpdateNotification) GetType() string

func (*UpdateNotification) MarshalJSON added in v0.0.13

func (entity *UpdateNotification) MarshalJSON() ([]byte, error)

func (*UpdateNotification) UpdateType added in v0.0.13

func (*UpdateNotification) UpdateType() string

type UpdateNotificationGroup added in v0.0.13

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 added in v0.0.13

func UnmarshalUpdateNotificationGroup(data json.RawMessage) (*UpdateNotificationGroup, error)

func (*UpdateNotificationGroup) GetClass added in v0.0.13

func (*UpdateNotificationGroup) GetClass() string

func (*UpdateNotificationGroup) GetType added in v0.0.13

func (*UpdateNotificationGroup) GetType() string

func (*UpdateNotificationGroup) MarshalJSON added in v0.0.13

func (entity *UpdateNotificationGroup) MarshalJSON() ([]byte, error)

func (*UpdateNotificationGroup) UnmarshalJSON added in v0.0.13

func (updateNotificationGroup *UpdateNotificationGroup) UnmarshalJSON(data []byte) error

func (*UpdateNotificationGroup) UpdateType added in v0.0.13

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 UpdateOwnedStarCount added in v0.7.3

type UpdateOwnedStarCount struct {

	// The new number of Telegram Stars owned
	StarCount int64 `json:"star_count"`
	// contains filtered or unexported fields
}

The number of Telegram Stars owned by the current user has changed

func UnmarshalUpdateOwnedStarCount added in v0.7.3

func UnmarshalUpdateOwnedStarCount(data json.RawMessage) (*UpdateOwnedStarCount, error)

func (*UpdateOwnedStarCount) GetClass added in v0.7.3

func (*UpdateOwnedStarCount) GetClass() string

func (*UpdateOwnedStarCount) GetType added in v0.7.3

func (*UpdateOwnedStarCount) GetType() string

func (*UpdateOwnedStarCount) MarshalJSON added in v0.7.3

func (entity *UpdateOwnedStarCount) MarshalJSON() ([]byte, error)

func (*UpdateOwnedStarCount) UpdateType added in v0.7.3

func (*UpdateOwnedStarCount) UpdateType() string

type UpdatePaidMediaPurchased added in v0.7.3

type UpdatePaidMediaPurchased struct {

	// User identifier
	UserId int64 `json:"user_id"`
	// Bot-specified payload for the paid media
	Payload string `json:"payload"`
	// contains filtered or unexported fields
}

Paid media were purchased by a user; for bots only

func UnmarshalUpdatePaidMediaPurchased added in v0.7.3

func UnmarshalUpdatePaidMediaPurchased(data json.RawMessage) (*UpdatePaidMediaPurchased, error)

func (*UpdatePaidMediaPurchased) GetClass added in v0.7.3

func (*UpdatePaidMediaPurchased) GetClass() string

func (*UpdatePaidMediaPurchased) GetType added in v0.7.3

func (*UpdatePaidMediaPurchased) GetType() string

func (*UpdatePaidMediaPurchased) MarshalJSON added in v0.7.3

func (entity *UpdatePaidMediaPurchased) MarshalJSON() ([]byte, error)

func (*UpdatePaidMediaPurchased) UpdateType added in v0.7.3

func (*UpdatePaidMediaPurchased) UpdateType() string

type UpdatePoll added in v0.0.13

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 added in v0.0.13

func UnmarshalUpdatePoll(data json.RawMessage) (*UpdatePoll, error)

func (*UpdatePoll) GetClass added in v0.0.13

func (*UpdatePoll) GetClass() string

func (*UpdatePoll) GetType added in v0.0.13

func (*UpdatePoll) GetType() string

func (*UpdatePoll) MarshalJSON added in v0.0.13

func (entity *UpdatePoll) MarshalJSON() ([]byte, error)

func (*UpdatePoll) UpdateType added in v0.0.13

func (*UpdatePoll) UpdateType() string

type UpdatePollAnswer added in v0.2.0

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 added in v0.2.0

func UnmarshalUpdatePollAnswer(data json.RawMessage) (*UpdatePollAnswer, error)

func (*UpdatePollAnswer) GetClass added in v0.2.0

func (*UpdatePollAnswer) GetClass() string

func (*UpdatePollAnswer) GetType added in v0.2.0

func (*UpdatePollAnswer) GetType() string

func (*UpdatePollAnswer) MarshalJSON added in v0.2.0

func (entity *UpdatePollAnswer) MarshalJSON() ([]byte, error)

func (*UpdatePollAnswer) UnmarshalJSON added in v0.7.0

func (updatePollAnswer *UpdatePollAnswer) UnmarshalJSON(data []byte) error

func (*UpdatePollAnswer) UpdateType added in v0.2.0

func (*UpdatePollAnswer) UpdateType() string

type UpdateProfileAccentColors added in v0.7.1

type UpdateProfileAccentColors struct {

	// Information about supported colors
	Colors []*ProfileAccentColor `json:"colors"`
	// The list of accent color identifiers, which can be set through setProfileAccentColor and setChatProfileAccentColor. The colors must be shown in the specififed order
	AvailableAccentColorIds []int32 `json:"available_accent_color_ids"`
	// contains filtered or unexported fields
}

The list of supported accent colors for user profiles has changed

func UnmarshalUpdateProfileAccentColors added in v0.7.1

func UnmarshalUpdateProfileAccentColors(data json.RawMessage) (*UpdateProfileAccentColors, error)

func (*UpdateProfileAccentColors) GetClass added in v0.7.1

func (*UpdateProfileAccentColors) GetClass() string

func (*UpdateProfileAccentColors) GetType added in v0.7.1

func (*UpdateProfileAccentColors) GetType() string

func (*UpdateProfileAccentColors) MarshalJSON added in v0.7.1

func (entity *UpdateProfileAccentColors) MarshalJSON() ([]byte, error)

func (*UpdateProfileAccentColors) UpdateType added in v0.7.1

func (*UpdateProfileAccentColors) UpdateType() string

type UpdateQuickReplyShortcut added in v0.7.2

type UpdateQuickReplyShortcut struct {

	// New data about the shortcut
	Shortcut *QuickReplyShortcut `json:"shortcut"`
	// contains filtered or unexported fields
}

Basic information about a quick reply shortcut has changed. This update is guaranteed to come before the quick shortcut name is returned to the application

func UnmarshalUpdateQuickReplyShortcut added in v0.7.2

func UnmarshalUpdateQuickReplyShortcut(data json.RawMessage) (*UpdateQuickReplyShortcut, error)

func (*UpdateQuickReplyShortcut) GetClass added in v0.7.2

func (*UpdateQuickReplyShortcut) GetClass() string

func (*UpdateQuickReplyShortcut) GetType added in v0.7.2

func (*UpdateQuickReplyShortcut) GetType() string

func (*UpdateQuickReplyShortcut) MarshalJSON added in v0.7.2

func (entity *UpdateQuickReplyShortcut) MarshalJSON() ([]byte, error)

func (*UpdateQuickReplyShortcut) UpdateType added in v0.7.2

func (*UpdateQuickReplyShortcut) UpdateType() string

type UpdateQuickReplyShortcutDeleted added in v0.7.2

type UpdateQuickReplyShortcutDeleted struct {

	// The identifier of the deleted shortcut
	ShortcutId int32 `json:"shortcut_id"`
	// contains filtered or unexported fields
}

A quick reply shortcut and all its messages were deleted

func UnmarshalUpdateQuickReplyShortcutDeleted added in v0.7.2

func UnmarshalUpdateQuickReplyShortcutDeleted(data json.RawMessage) (*UpdateQuickReplyShortcutDeleted, error)

func (*UpdateQuickReplyShortcutDeleted) GetClass added in v0.7.2

func (*UpdateQuickReplyShortcutDeleted) GetType added in v0.7.2

func (*UpdateQuickReplyShortcutDeleted) MarshalJSON added in v0.7.2

func (entity *UpdateQuickReplyShortcutDeleted) MarshalJSON() ([]byte, error)

func (*UpdateQuickReplyShortcutDeleted) UpdateType added in v0.7.2

type UpdateQuickReplyShortcutMessages added in v0.7.2

type UpdateQuickReplyShortcutMessages struct {

	// The identifier of the shortcut
	ShortcutId int32 `json:"shortcut_id"`
	// The new list of quick reply messages for the shortcut in order from the first to the last sent
	Messages []*QuickReplyMessage `json:"messages"`
	// contains filtered or unexported fields
}

The list of quick reply shortcut messages has changed

func UnmarshalUpdateQuickReplyShortcutMessages added in v0.7.2

func UnmarshalUpdateQuickReplyShortcutMessages(data json.RawMessage) (*UpdateQuickReplyShortcutMessages, error)

func (*UpdateQuickReplyShortcutMessages) GetClass added in v0.7.2

func (*UpdateQuickReplyShortcutMessages) GetType added in v0.7.2

func (*UpdateQuickReplyShortcutMessages) MarshalJSON added in v0.7.2

func (entity *UpdateQuickReplyShortcutMessages) MarshalJSON() ([]byte, error)

func (*UpdateQuickReplyShortcutMessages) UpdateType added in v0.7.2

type UpdateQuickReplyShortcuts added in v0.7.2

type UpdateQuickReplyShortcuts struct {

	// The new list of identifiers of quick reply shortcuts
	ShortcutIds []int32 `json:"shortcut_ids"`
	// contains filtered or unexported fields
}

The list of quick reply shortcuts has changed

func UnmarshalUpdateQuickReplyShortcuts added in v0.7.2

func UnmarshalUpdateQuickReplyShortcuts(data json.RawMessage) (*UpdateQuickReplyShortcuts, error)

func (*UpdateQuickReplyShortcuts) GetClass added in v0.7.2

func (*UpdateQuickReplyShortcuts) GetClass() string

func (*UpdateQuickReplyShortcuts) GetType added in v0.7.2

func (*UpdateQuickReplyShortcuts) GetType() string

func (*UpdateQuickReplyShortcuts) MarshalJSON added in v0.7.2

func (entity *UpdateQuickReplyShortcuts) MarshalJSON() ([]byte, error)

func (*UpdateQuickReplyShortcuts) UpdateType added in v0.7.2

func (*UpdateQuickReplyShortcuts) UpdateType() string

type UpdateReactionNotificationSettings added in v0.7.3

type UpdateReactionNotificationSettings struct {

	// The new notification settings
	NotificationSettings *ReactionNotificationSettings `json:"notification_settings"`
	// contains filtered or unexported fields
}

Notification settings for reactions were updated

func UnmarshalUpdateReactionNotificationSettings added in v0.7.3

func UnmarshalUpdateReactionNotificationSettings(data json.RawMessage) (*UpdateReactionNotificationSettings, error)

func (*UpdateReactionNotificationSettings) GetClass added in v0.7.3

func (*UpdateReactionNotificationSettings) GetType added in v0.7.3

func (*UpdateReactionNotificationSettings) MarshalJSON added in v0.7.3

func (entity *UpdateReactionNotificationSettings) MarshalJSON() ([]byte, error)

func (*UpdateReactionNotificationSettings) UpdateType added in v0.7.3

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 UpdateSavedMessagesTags added in v0.7.2

type UpdateSavedMessagesTags struct {

	// Identifier of Saved Messages topic which tags were changed; 0 if tags for the whole chat has changed
	SavedMessagesTopicId int64 `json:"saved_messages_topic_id"`
	// The new tags
	Tags *SavedMessagesTags `json:"tags"`
	// contains filtered or unexported fields
}

Tags used in Saved Messages or a Saved Messages topic have changed

func UnmarshalUpdateSavedMessagesTags added in v0.7.2

func UnmarshalUpdateSavedMessagesTags(data json.RawMessage) (*UpdateSavedMessagesTags, error)

func (*UpdateSavedMessagesTags) GetClass added in v0.7.2

func (*UpdateSavedMessagesTags) GetClass() string

func (*UpdateSavedMessagesTags) GetType added in v0.7.2

func (*UpdateSavedMessagesTags) GetType() string

func (*UpdateSavedMessagesTags) MarshalJSON added in v0.7.2

func (entity *UpdateSavedMessagesTags) MarshalJSON() ([]byte, error)

func (*UpdateSavedMessagesTags) UpdateType added in v0.7.2

func (*UpdateSavedMessagesTags) UpdateType() string

type UpdateSavedMessagesTopic added in v0.7.2

type UpdateSavedMessagesTopic struct {

	// New data about the topic
	Topic *SavedMessagesTopic `json:"topic"`
	// contains filtered or unexported fields
}

Basic information about a Saved Messages topic has changed. This update is guaranteed to come before the topic identifier is returned to the application

func UnmarshalUpdateSavedMessagesTopic added in v0.7.2

func UnmarshalUpdateSavedMessagesTopic(data json.RawMessage) (*UpdateSavedMessagesTopic, error)

func (*UpdateSavedMessagesTopic) GetClass added in v0.7.2

func (*UpdateSavedMessagesTopic) GetClass() string

func (*UpdateSavedMessagesTopic) GetType added in v0.7.2

func (*UpdateSavedMessagesTopic) GetType() string

func (*UpdateSavedMessagesTopic) MarshalJSON added in v0.7.2

func (entity *UpdateSavedMessagesTopic) MarshalJSON() ([]byte, error)

func (*UpdateSavedMessagesTopic) UpdateType added in v0.7.2

func (*UpdateSavedMessagesTopic) UpdateType() string

type UpdateSavedMessagesTopicCount added in v0.7.2

type UpdateSavedMessagesTopicCount struct {

	// Approximate total number of Saved Messages topics
	TopicCount int32 `json:"topic_count"`
	// contains filtered or unexported fields
}

Number of Saved Messages topics has changed

func UnmarshalUpdateSavedMessagesTopicCount added in v0.7.2

func UnmarshalUpdateSavedMessagesTopicCount(data json.RawMessage) (*UpdateSavedMessagesTopicCount, error)

func (*UpdateSavedMessagesTopicCount) GetClass added in v0.7.2

func (*UpdateSavedMessagesTopicCount) GetType added in v0.7.2

func (*UpdateSavedMessagesTopicCount) MarshalJSON added in v0.7.2

func (entity *UpdateSavedMessagesTopicCount) MarshalJSON() ([]byte, error)

func (*UpdateSavedMessagesTopicCount) UpdateType added in v0.7.2

func (*UpdateSavedMessagesTopicCount) UpdateType() string

type UpdateSavedNotificationSounds added in v0.7.0

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 notification 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 v0.7.0

func UnmarshalUpdateSavedNotificationSounds(data json.RawMessage) (*UpdateSavedNotificationSounds, error)

func (*UpdateSavedNotificationSounds) GetClass added in v0.7.0

func (*UpdateSavedNotificationSounds) GetType added in v0.7.0

func (*UpdateSavedNotificationSounds) MarshalJSON added in v0.7.0

func (entity *UpdateSavedNotificationSounds) MarshalJSON() ([]byte, error)

func (*UpdateSavedNotificationSounds) UpdateType added in v0.7.0

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) GetType

func (*UpdateScopeNotificationSettings) MarshalJSON

func (entity *UpdateScopeNotificationSettings) MarshalJSON() ([]byte, error)

func (*UpdateScopeNotificationSettings) UnmarshalJSON

func (updateScopeNotificationSettings *UpdateScopeNotificationSettings) UnmarshalJSON(data []byte) error

func (*UpdateScopeNotificationSettings) UpdateType

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 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 UpdateSpeechRecognitionTrial added in v0.7.1

type UpdateSpeechRecognitionTrial struct {

	// The maximum allowed duration of media for speech recognition without Telegram Premium subscription, in seconds
	MaxMediaDuration int32 `json:"max_media_duration"`
	// The total number of allowed speech recognitions per week; 0 if none
	WeeklyCount int32 `json:"weekly_count"`
	// Number of left speech recognition attempts this week
	LeftCount int32 `json:"left_count"`
	// Point in time (Unix timestamp) when the weekly number of tries will reset; 0 if unknown
	NextResetDate int32 `json:"next_reset_date"`
	// contains filtered or unexported fields
}

The parameters of speech recognition without Telegram Premium subscription has changed

func UnmarshalUpdateSpeechRecognitionTrial added in v0.7.1

func UnmarshalUpdateSpeechRecognitionTrial(data json.RawMessage) (*UpdateSpeechRecognitionTrial, error)

func (*UpdateSpeechRecognitionTrial) GetClass added in v0.7.1

func (*UpdateSpeechRecognitionTrial) GetType added in v0.7.1

func (*UpdateSpeechRecognitionTrial) MarshalJSON added in v0.7.1

func (entity *UpdateSpeechRecognitionTrial) MarshalJSON() ([]byte, error)

func (*UpdateSpeechRecognitionTrial) UpdateType added in v0.7.1

func (*UpdateSpeechRecognitionTrial) UpdateType() string

type UpdateSpeedLimitNotification added in v0.7.3

type UpdateSpeedLimitNotification struct {

	// True, if upload speed was limited; false, if download speed was limited
	IsUpload bool `json:"is_upload"`
	// contains filtered or unexported fields
}

Download or upload file speed for the user was limited, but it can be restored by subscription to Telegram Premium. The notification can be postponed until a being downloaded or uploaded file is visible to the user. Use getOption("premium_download_speedup") or getOption("premium_upload_speedup") to get expected speedup after subscription to Telegram Premium

func UnmarshalUpdateSpeedLimitNotification added in v0.7.3

func UnmarshalUpdateSpeedLimitNotification(data json.RawMessage) (*UpdateSpeedLimitNotification, error)

func (*UpdateSpeedLimitNotification) GetClass added in v0.7.3

func (*UpdateSpeedLimitNotification) GetType added in v0.7.3

func (*UpdateSpeedLimitNotification) MarshalJSON added in v0.7.3

func (entity *UpdateSpeedLimitNotification) MarshalJSON() ([]byte, error)

func (*UpdateSpeedLimitNotification) UpdateType added in v0.7.3

func (*UpdateSpeedLimitNotification) UpdateType() string

type UpdateStarRevenueStatus added in v0.7.3

type UpdateStarRevenueStatus struct {

	// Identifier of the owner of the Telegram Stars
	OwnerId MessageSender `json:"owner_id"`
	// New Telegram Star revenue status
	Status *StarRevenueStatus `json:"status"`
	// contains filtered or unexported fields
}

The Telegram Star revenue earned by a bot or a chat has changed. If Telegram Star transaction screen of the chat is opened, then getStarTransactions may be called to fetch new transactions

func UnmarshalUpdateStarRevenueStatus added in v0.7.3

func UnmarshalUpdateStarRevenueStatus(data json.RawMessage) (*UpdateStarRevenueStatus, error)

func (*UpdateStarRevenueStatus) GetClass added in v0.7.3

func (*UpdateStarRevenueStatus) GetClass() string

func (*UpdateStarRevenueStatus) GetType added in v0.7.3

func (*UpdateStarRevenueStatus) GetType() string

func (*UpdateStarRevenueStatus) MarshalJSON added in v0.7.3

func (entity *UpdateStarRevenueStatus) MarshalJSON() ([]byte, error)

func (*UpdateStarRevenueStatus) UnmarshalJSON added in v0.7.3

func (updateStarRevenueStatus *UpdateStarRevenueStatus) UnmarshalJSON(data []byte) error

func (*UpdateStarRevenueStatus) UpdateType added in v0.7.3

func (*UpdateStarRevenueStatus) UpdateType() string

type UpdateStickerSet added in v0.3.0

type UpdateStickerSet struct {

	// The sticker set
	StickerSet *StickerSet `json:"sticker_set"`
	// contains filtered or unexported fields
}

A sticker set has changed

func UnmarshalUpdateStickerSet added in v0.3.0

func UnmarshalUpdateStickerSet(data json.RawMessage) (*UpdateStickerSet, error)

func (*UpdateStickerSet) GetClass added in v0.3.0

func (*UpdateStickerSet) GetClass() string

func (*UpdateStickerSet) GetType added in v0.3.0

func (*UpdateStickerSet) GetType() string

func (*UpdateStickerSet) MarshalJSON added in v0.3.0

func (entity *UpdateStickerSet) MarshalJSON() ([]byte, error)

func (*UpdateStickerSet) UpdateType added in v0.3.0

func (*UpdateStickerSet) UpdateType() string

type UpdateStory added in v0.7.0

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 v0.7.0

func UnmarshalUpdateStory(data json.RawMessage) (*UpdateStory, error)

func (*UpdateStory) GetClass added in v0.7.0

func (*UpdateStory) GetClass() string

func (*UpdateStory) GetType added in v0.7.0

func (*UpdateStory) GetType() string

func (*UpdateStory) MarshalJSON added in v0.7.0

func (entity *UpdateStory) MarshalJSON() ([]byte, error)

func (*UpdateStory) UpdateType added in v0.7.0

func (*UpdateStory) UpdateType() string

type UpdateStoryDeleted added in v0.7.0

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 v0.7.0

func UnmarshalUpdateStoryDeleted(data json.RawMessage) (*UpdateStoryDeleted, error)

func (*UpdateStoryDeleted) GetClass added in v0.7.0

func (*UpdateStoryDeleted) GetClass() string

func (*UpdateStoryDeleted) GetType added in v0.7.0

func (*UpdateStoryDeleted) GetType() string

func (*UpdateStoryDeleted) MarshalJSON added in v0.7.0

func (entity *UpdateStoryDeleted) MarshalJSON() ([]byte, error)

func (*UpdateStoryDeleted) UpdateType added in v0.7.0

func (*UpdateStoryDeleted) UpdateType() string

type UpdateStoryListChatCount added in v0.7.0

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 v0.7.0

func UnmarshalUpdateStoryListChatCount(data json.RawMessage) (*UpdateStoryListChatCount, error)

func (*UpdateStoryListChatCount) GetClass added in v0.7.0

func (*UpdateStoryListChatCount) GetClass() string

func (*UpdateStoryListChatCount) GetType added in v0.7.0

func (*UpdateStoryListChatCount) GetType() string

func (*UpdateStoryListChatCount) MarshalJSON added in v0.7.0

func (entity *UpdateStoryListChatCount) MarshalJSON() ([]byte, error)

func (*UpdateStoryListChatCount) UnmarshalJSON added in v0.7.0

func (updateStoryListChatCount *UpdateStoryListChatCount) UnmarshalJSON(data []byte) error

func (*UpdateStoryListChatCount) UpdateType added in v0.7.0

func (*UpdateStoryListChatCount) UpdateType() string

type UpdateStorySendFailed added in v0.7.0

type UpdateStorySendFailed struct {

	// The failed to send story
	Story *Story `json:"story"`
	// The cause of the story sending failure
	Error *Error `json:"error"`
	// Type of the error; may be null if unknown
	ErrorType CanSendStoryResult `json:"error_type"`
	// 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 v0.7.0

func UnmarshalUpdateStorySendFailed(data json.RawMessage) (*UpdateStorySendFailed, error)

func (*UpdateStorySendFailed) GetClass added in v0.7.0

func (*UpdateStorySendFailed) GetClass() string

func (*UpdateStorySendFailed) GetType added in v0.7.0

func (*UpdateStorySendFailed) GetType() string

func (*UpdateStorySendFailed) MarshalJSON added in v0.7.0

func (entity *UpdateStorySendFailed) MarshalJSON() ([]byte, error)

func (*UpdateStorySendFailed) UnmarshalJSON added in v0.7.0

func (updateStorySendFailed *UpdateStorySendFailed) UnmarshalJSON(data []byte) error

func (*UpdateStorySendFailed) UpdateType added in v0.7.0

func (*UpdateStorySendFailed) UpdateType() string

type UpdateStorySendSucceeded added in v0.7.0

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 v0.7.0

func UnmarshalUpdateStorySendSucceeded(data json.RawMessage) (*UpdateStorySendSucceeded, error)

func (*UpdateStorySendSucceeded) GetClass added in v0.7.0

func (*UpdateStorySendSucceeded) GetClass() string

func (*UpdateStorySendSucceeded) GetType added in v0.7.0

func (*UpdateStorySendSucceeded) GetType() string

func (*UpdateStorySendSucceeded) MarshalJSON added in v0.7.0

func (entity *UpdateStorySendSucceeded) MarshalJSON() ([]byte, error)

func (*UpdateStorySendSucceeded) UpdateType added in v0.7.0

func (*UpdateStorySendSucceeded) UpdateType() string

type UpdateStoryStealthMode added in v0.7.0

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 v0.7.0

func UnmarshalUpdateStoryStealthMode(data json.RawMessage) (*UpdateStoryStealthMode, error)

func (*UpdateStoryStealthMode) GetClass added in v0.7.0

func (*UpdateStoryStealthMode) GetClass() string

func (*UpdateStoryStealthMode) GetType added in v0.7.0

func (*UpdateStoryStealthMode) GetType() string

func (*UpdateStoryStealthMode) MarshalJSON added in v0.7.0

func (entity *UpdateStoryStealthMode) MarshalJSON() ([]byte, error)

func (*UpdateStoryStealthMode) UpdateType added in v0.7.0

func (*UpdateStoryStealthMode) UpdateType() string

type UpdateSuggestedActions added in v0.3.0

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 added in v0.3.0

func UnmarshalUpdateSuggestedActions(data json.RawMessage) (*UpdateSuggestedActions, error)

func (*UpdateSuggestedActions) GetClass added in v0.3.0

func (*UpdateSuggestedActions) GetClass() string

func (*UpdateSuggestedActions) GetType added in v0.3.0

func (*UpdateSuggestedActions) GetType() string

func (*UpdateSuggestedActions) MarshalJSON added in v0.3.0

func (entity *UpdateSuggestedActions) MarshalJSON() ([]byte, error)

func (*UpdateSuggestedActions) UnmarshalJSON added in v0.3.2

func (updateSuggestedActions *UpdateSuggestedActions) UnmarshalJSON(data []byte) error

func (*UpdateSuggestedActions) UpdateType added in v0.3.0

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 v0.7.0

func (updateTrendingStickerSets *UpdateTrendingStickerSets) UnmarshalJSON(data []byte) error

func (*UpdateTrendingStickerSets) UpdateType

func (*UpdateTrendingStickerSets) UpdateType() string

type UpdateUnconfirmedSession added in v0.7.0

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 v0.7.0

func UnmarshalUpdateUnconfirmedSession(data json.RawMessage) (*UpdateUnconfirmedSession, error)

func (*UpdateUnconfirmedSession) GetClass added in v0.7.0

func (*UpdateUnconfirmedSession) GetClass() string

func (*UpdateUnconfirmedSession) GetType added in v0.7.0

func (*UpdateUnconfirmedSession) GetType() string

func (*UpdateUnconfirmedSession) MarshalJSON added in v0.7.0

func (entity *UpdateUnconfirmedSession) MarshalJSON() ([]byte, error)

func (*UpdateUnconfirmedSession) UpdateType added in v0.7.0

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 added in v0.2.0

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 added in v0.2.0

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) GetType

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 UpdateVideoPublished added in v0.7.3

type UpdateVideoPublished struct {

	// Identifier of the chat with the message
	ChatId int64 `json:"chat_id"`
	// Identifier of the sent message
	MessageId int64 `json:"message_id"`
	// contains filtered or unexported fields
}

An automatically scheduled message with video has been successfully sent after conversion

func UnmarshalUpdateVideoPublished added in v0.7.3

func UnmarshalUpdateVideoPublished(data json.RawMessage) (*UpdateVideoPublished, error)

func (*UpdateVideoPublished) GetClass added in v0.7.3

func (*UpdateVideoPublished) GetClass() string

func (*UpdateVideoPublished) GetType added in v0.7.3

func (*UpdateVideoPublished) GetType() string

func (*UpdateVideoPublished) MarshalJSON added in v0.7.3

func (entity *UpdateVideoPublished) MarshalJSON() ([]byte, error)

func (*UpdateVideoPublished) UpdateType added in v0.7.3

func (*UpdateVideoPublished) UpdateType() string

type UpdateWebAppMessageSent added in v0.7.0

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 v0.7.0

func UnmarshalUpdateWebAppMessageSent(data json.RawMessage) (*UpdateWebAppMessageSent, error)

func (*UpdateWebAppMessageSent) GetClass added in v0.7.0

func (*UpdateWebAppMessageSent) GetClass() string

func (*UpdateWebAppMessageSent) GetType added in v0.7.0

func (*UpdateWebAppMessageSent) GetType() string

func (*UpdateWebAppMessageSent) MarshalJSON added in v0.7.0

func (entity *UpdateWebAppMessageSent) MarshalJSON() ([]byte, error)

func (*UpdateWebAppMessageSent) UpdateType added in v0.7.0

func (*UpdateWebAppMessageSent) UpdateType() string

type Updates added in v0.0.13

type Updates struct {

	// List of updates
	Updates []Update `json:"updates"`
	// contains filtered or unexported fields
}

Contains a list of updates

func UnmarshalUpdates added in v0.0.13

func UnmarshalUpdates(data json.RawMessage) (*Updates, error)

func (*Updates) GetClass added in v0.0.13

func (*Updates) GetClass() string

func (*Updates) GetType added in v0.0.13

func (*Updates) GetType() string

func (*Updates) MarshalJSON added in v0.0.13

func (entity *Updates) MarshalJSON() ([]byte, error)

func (*Updates) UnmarshalJSON added in v0.3.2

func (updates *Updates) UnmarshalJSON(data []byte) error

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"`
	// 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"`
	// Identifier of the accent color for name, and backgrounds of profile photo, reply header, and link preview. For Telegram Premium users only
	AccentColorId int32 `json:"accent_color_id"`
	// Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none. For Telegram Premium users only
	BackgroundCustomEmojiId JsonInt64 `json:"background_custom_emoji_id"`
	// Identifier of the accent color for the user's profile; -1 if none. For Telegram Premium users only
	ProfileAccentColorId int32 `json:"profile_accent_color_id"`
	// Identifier of a custom emoji to be shown on the background of the user's profile; 0 if none. For Telegram Premium users only
	ProfileBackgroundCustomEmojiId JsonInt64 `json:"profile_background_custom_emoji_id"`
	// 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"`
	// True, if the user may restrict new chats with non-contacts. Use canSendMessageToUser to check whether the current user can message the user or try to create a chat with them
	RestrictsNewChats bool `json:"restricts_new_chats"`
	// 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) GetClass

func (*User) GetClass() string

func (*User) GetType

func (*User) GetType() string

func (*User) MarshalJSON

func (entity *User) MarshalJSON() ([]byte, error)

func (*User) UnmarshalJSON

func (user *User) UnmarshalJSON(data []byte) error

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 posted to profile stories
	HasPostedToProfileStories bool `json:"has_posted_to_profile_stories"`
	// True, if the user always enabled sponsored messages; known only for the current user
	HasSponsoredMessagesEnabled bool `json:"has_sponsored_messages_enabled"`
	// 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"`
	// True, if the user set chat background for both chat users and it wasn't reverted yet
	SetChatBackground bool `json:"set_chat_background"`
	// A short user bio; may be null for bots
	Bio *FormattedText `json:"bio"`
	// Birthdate of the user; may be null if unknown
	Birthdate *Birthdate `json:"birthdate"`
	// Identifier of the personal chat of the user; 0 if none
	PersonalChatId int64 `json:"personal_chat_id"`
	// Number of gifts saved to profile by the user
	GiftCount int32 `json:"gift_count"`
	// 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"`
	// Information about business settings for Telegram Business accounts; may be null if none
	BusinessInfo *BusinessInfo `json:"business_info"`
	// 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 v0.7.0

func (userFullInfo *UserFullInfo) UnmarshalJSON(data []byte) error

type UserGift added in v0.7.3

type UserGift struct {

	// Identifier of the user that sent the gift; 0 if unknown
	SenderUserId int64 `json:"sender_user_id"`
	// Message added to the gift
	Text *FormattedText `json:"text"`
	// True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone are able to see them
	IsPrivate bool `json:"is_private"`
	// True, if the gift is displayed on the user's profile page; may be false only for the receiver of the gift
	IsSaved bool `json:"is_saved"`
	// Point in time (Unix timestamp) when the gift was sent
	Date int32 `json:"date"`
	// The gift
	Gift *Gift `json:"gift"`
	// Identifier of the message with the gift in the chat with the sender of the gift; can be 0 or an identifier of a deleted message; only for the gift receiver
	MessageId int64 `json:"message_id"`
	// Number of Telegram Stars that can be claimed by the receiver instead of the gift; 0 if the gift can't be sold by the current user
	SellStarCount int64 `json:"sell_star_count"`
	// contains filtered or unexported fields
}

Represents a gift received by a user

func UnmarshalUserGift added in v0.7.3

func UnmarshalUserGift(data json.RawMessage) (*UserGift, error)

func (*UserGift) GetClass added in v0.7.3

func (*UserGift) GetClass() string

func (*UserGift) GetType added in v0.7.3

func (*UserGift) GetType() string

func (*UserGift) MarshalJSON added in v0.7.3

func (entity *UserGift) MarshalJSON() ([]byte, error)

type UserGifts added in v0.7.3

type UserGifts struct {

	// The total number of received gifts
	TotalCount int32 `json:"total_count"`
	// The list of gifts
	Gifts []*UserGift `json:"gifts"`
	// The offset for the next request. If empty, then there are no more results
	NextOffset string `json:"next_offset"`
	// contains filtered or unexported fields
}

Represents a list of gifts received by a user

func UnmarshalUserGifts added in v0.7.3

func UnmarshalUserGifts(data json.RawMessage) (*UserGifts, error)

func (*UserGifts) GetClass added in v0.7.3

func (*UserGifts) GetClass() string

func (*UserGifts) GetType added in v0.7.3

func (*UserGifts) GetType() string

func (*UserGifts) MarshalJSON added in v0.7.3

func (entity *UserGifts) MarshalJSON() ([]byte, error)
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(data json.RawMessage) (*UserLink, error)

func (*UserLink) GetClass added in v0.7.0

func (*UserLink) GetClass() string

func (*UserLink) GetType added in v0.7.0

func (*UserLink) GetType() string

func (*UserLink) MarshalJSON added in v0.7.0

func (entity *UserLink) MarshalJSON() ([]byte, error)

type UserPrivacySetting

type UserPrivacySetting interface {
	UserPrivacySettingType() string
}

Describes available user privacy settings

func UnmarshalListOfUserPrivacySetting added in v0.3.2

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) GetType

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) GetType

func (*UserPrivacySettingAllowChatInvites) MarshalJSON

func (entity *UserPrivacySettingAllowChatInvites) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingAllowChatInvites) UserPrivacySettingType

func (*UserPrivacySettingAllowChatInvites) UserPrivacySettingType() string

type UserPrivacySettingAllowFindingByPhoneNumber added in v0.2.0

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 added in v0.2.0

func UnmarshalUserPrivacySettingAllowFindingByPhoneNumber(data json.RawMessage) (*UserPrivacySettingAllowFindingByPhoneNumber, error)

func (*UserPrivacySettingAllowFindingByPhoneNumber) GetClass added in v0.2.0

func (*UserPrivacySettingAllowFindingByPhoneNumber) GetType added in v0.2.0

func (*UserPrivacySettingAllowFindingByPhoneNumber) MarshalJSON added in v0.2.0

func (entity *UserPrivacySettingAllowFindingByPhoneNumber) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingAllowFindingByPhoneNumber) UserPrivacySettingType added in v0.2.0

func (*UserPrivacySettingAllowFindingByPhoneNumber) UserPrivacySettingType() string

type UserPrivacySettingAllowPeerToPeerCalls added in v0.0.13

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 added in v0.0.13

func UnmarshalUserPrivacySettingAllowPeerToPeerCalls(data json.RawMessage) (*UserPrivacySettingAllowPeerToPeerCalls, error)

func (*UserPrivacySettingAllowPeerToPeerCalls) GetClass added in v0.0.13

func (*UserPrivacySettingAllowPeerToPeerCalls) GetType added in v0.0.13

func (*UserPrivacySettingAllowPeerToPeerCalls) MarshalJSON added in v0.0.13

func (entity *UserPrivacySettingAllowPeerToPeerCalls) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingAllowPeerToPeerCalls) UserPrivacySettingType added in v0.0.13

func (*UserPrivacySettingAllowPeerToPeerCalls) UserPrivacySettingType() string

type UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages added in v0.7.0

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; for Telegram Premium users only

func UnmarshalUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages added in v0.7.0

func UnmarshalUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages(data json.RawMessage) (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages, error)

func (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) GetClass added in v0.7.0

func (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) GetType added in v0.7.0

func (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) MarshalJSON added in v0.7.0

func (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages) UserPrivacySettingType added in v0.7.0

type UserPrivacySettingAutosaveGifts added in v0.7.4

type UserPrivacySettingAutosaveGifts struct {
	// contains filtered or unexported fields
}

A privacy setting for managing whether received gifts are automatically shown on the user's profile page

func UnmarshalUserPrivacySettingAutosaveGifts added in v0.7.4

func UnmarshalUserPrivacySettingAutosaveGifts(data json.RawMessage) (*UserPrivacySettingAutosaveGifts, error)

func (*UserPrivacySettingAutosaveGifts) GetClass added in v0.7.4

func (*UserPrivacySettingAutosaveGifts) GetType added in v0.7.4

func (*UserPrivacySettingAutosaveGifts) MarshalJSON added in v0.7.4

func (entity *UserPrivacySettingAutosaveGifts) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingAutosaveGifts) UserPrivacySettingType added in v0.7.4

func (*UserPrivacySettingAutosaveGifts) UserPrivacySettingType() string

type UserPrivacySettingRule

type UserPrivacySettingRule interface {
	UserPrivacySettingRuleType() string
}

Represents a single rule for managing user privacy settings

func UnmarshalListOfUserPrivacySettingRule added in v0.3.2

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) GetType

func (*UserPrivacySettingRuleAllowAll) MarshalJSON

func (entity *UserPrivacySettingRuleAllowAll) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingRuleAllowAll) UserPrivacySettingRuleType

func (*UserPrivacySettingRuleAllowAll) UserPrivacySettingRuleType() string

type UserPrivacySettingRuleAllowBots added in v0.7.4

type UserPrivacySettingRuleAllowBots struct {
	// contains filtered or unexported fields
}

A rule to allow all bots to do something

func UnmarshalUserPrivacySettingRuleAllowBots added in v0.7.4

func UnmarshalUserPrivacySettingRuleAllowBots(data json.RawMessage) (*UserPrivacySettingRuleAllowBots, error)

func (*UserPrivacySettingRuleAllowBots) GetClass added in v0.7.4

func (*UserPrivacySettingRuleAllowBots) GetType added in v0.7.4

func (*UserPrivacySettingRuleAllowBots) MarshalJSON added in v0.7.4

func (entity *UserPrivacySettingRuleAllowBots) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingRuleAllowBots) UserPrivacySettingRuleType added in v0.7.4

func (*UserPrivacySettingRuleAllowBots) UserPrivacySettingRuleType() string

type UserPrivacySettingRuleAllowChatMembers added in v0.2.0

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 added in v0.2.0

func UnmarshalUserPrivacySettingRuleAllowChatMembers(data json.RawMessage) (*UserPrivacySettingRuleAllowChatMembers, error)

func (*UserPrivacySettingRuleAllowChatMembers) GetClass added in v0.2.0

func (*UserPrivacySettingRuleAllowChatMembers) GetType added in v0.2.0

func (*UserPrivacySettingRuleAllowChatMembers) MarshalJSON added in v0.2.0

func (entity *UserPrivacySettingRuleAllowChatMembers) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingRuleAllowChatMembers) UserPrivacySettingRuleType added in v0.2.0

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) GetType

func (*UserPrivacySettingRuleAllowContacts) MarshalJSON

func (entity *UserPrivacySettingRuleAllowContacts) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingRuleAllowContacts) UserPrivacySettingRuleType

func (*UserPrivacySettingRuleAllowContacts) UserPrivacySettingRuleType() string

type UserPrivacySettingRuleAllowPremiumUsers added in v0.7.2

type UserPrivacySettingRuleAllowPremiumUsers struct {
	// contains filtered or unexported fields
}

A rule to allow all Premium Users to do something; currently, allowed only for userPrivacySettingAllowChatInvites

func UnmarshalUserPrivacySettingRuleAllowPremiumUsers added in v0.7.2

func UnmarshalUserPrivacySettingRuleAllowPremiumUsers(data json.RawMessage) (*UserPrivacySettingRuleAllowPremiumUsers, error)

func (*UserPrivacySettingRuleAllowPremiumUsers) GetClass added in v0.7.2

func (*UserPrivacySettingRuleAllowPremiumUsers) GetType added in v0.7.2

func (*UserPrivacySettingRuleAllowPremiumUsers) MarshalJSON added in v0.7.2

func (entity *UserPrivacySettingRuleAllowPremiumUsers) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingRuleAllowPremiumUsers) UserPrivacySettingRuleType added in v0.7.2

func (*UserPrivacySettingRuleAllowPremiumUsers) 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) GetType

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) GetType

func (*UserPrivacySettingRuleRestrictAll) MarshalJSON

func (entity *UserPrivacySettingRuleRestrictAll) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingRuleRestrictAll) UserPrivacySettingRuleType

func (*UserPrivacySettingRuleRestrictAll) UserPrivacySettingRuleType() string

type UserPrivacySettingRuleRestrictBots added in v0.7.4

type UserPrivacySettingRuleRestrictBots struct {
	// contains filtered or unexported fields
}

A rule to restrict all bots from doing something

func UnmarshalUserPrivacySettingRuleRestrictBots added in v0.7.4

func UnmarshalUserPrivacySettingRuleRestrictBots(data json.RawMessage) (*UserPrivacySettingRuleRestrictBots, error)

func (*UserPrivacySettingRuleRestrictBots) GetClass added in v0.7.4

func (*UserPrivacySettingRuleRestrictBots) GetType added in v0.7.4

func (*UserPrivacySettingRuleRestrictBots) MarshalJSON added in v0.7.4

func (entity *UserPrivacySettingRuleRestrictBots) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingRuleRestrictBots) UserPrivacySettingRuleType added in v0.7.4

func (*UserPrivacySettingRuleRestrictBots) UserPrivacySettingRuleType() string

type UserPrivacySettingRuleRestrictChatMembers added in v0.2.0

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 added in v0.2.0

func UnmarshalUserPrivacySettingRuleRestrictChatMembers(data json.RawMessage) (*UserPrivacySettingRuleRestrictChatMembers, error)

func (*UserPrivacySettingRuleRestrictChatMembers) GetClass added in v0.2.0

func (*UserPrivacySettingRuleRestrictChatMembers) GetType added in v0.2.0

func (*UserPrivacySettingRuleRestrictChatMembers) MarshalJSON added in v0.2.0

func (entity *UserPrivacySettingRuleRestrictChatMembers) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingRuleRestrictChatMembers) UserPrivacySettingRuleType added in v0.2.0

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) GetType

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) GetType

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 added in v0.3.2

func (userPrivacySettingRules *UserPrivacySettingRules) UnmarshalJSON(data []byte) error

type UserPrivacySettingShowBio added in v0.7.0

type UserPrivacySettingShowBio struct {
	// contains filtered or unexported fields
}

A privacy setting for managing whether the user's bio is visible

func UnmarshalUserPrivacySettingShowBio added in v0.7.0

func UnmarshalUserPrivacySettingShowBio(data json.RawMessage) (*UserPrivacySettingShowBio, error)

func (*UserPrivacySettingShowBio) GetClass added in v0.7.0

func (*UserPrivacySettingShowBio) GetClass() string

func (*UserPrivacySettingShowBio) GetType added in v0.7.0

func (*UserPrivacySettingShowBio) GetType() string

func (*UserPrivacySettingShowBio) MarshalJSON added in v0.7.0

func (entity *UserPrivacySettingShowBio) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingShowBio) UserPrivacySettingType added in v0.7.0

func (*UserPrivacySettingShowBio) UserPrivacySettingType() string

type UserPrivacySettingShowBirthdate added in v0.7.2

type UserPrivacySettingShowBirthdate struct {
	// contains filtered or unexported fields
}

A privacy setting for managing whether the user's birthdate is visible

func UnmarshalUserPrivacySettingShowBirthdate added in v0.7.2

func UnmarshalUserPrivacySettingShowBirthdate(data json.RawMessage) (*UserPrivacySettingShowBirthdate, error)

func (*UserPrivacySettingShowBirthdate) GetClass added in v0.7.2

func (*UserPrivacySettingShowBirthdate) GetType added in v0.7.2

func (*UserPrivacySettingShowBirthdate) MarshalJSON added in v0.7.2

func (entity *UserPrivacySettingShowBirthdate) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingShowBirthdate) UserPrivacySettingType added in v0.7.2

func (*UserPrivacySettingShowBirthdate) UserPrivacySettingType() string

type UserPrivacySettingShowLinkInForwardedMessages added in v0.1.0

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 added in v0.1.0

func UnmarshalUserPrivacySettingShowLinkInForwardedMessages(data json.RawMessage) (*UserPrivacySettingShowLinkInForwardedMessages, error)

func (*UserPrivacySettingShowLinkInForwardedMessages) GetClass added in v0.1.0

func (*UserPrivacySettingShowLinkInForwardedMessages) GetType added in v0.1.0

func (*UserPrivacySettingShowLinkInForwardedMessages) MarshalJSON added in v0.1.0

func (entity *UserPrivacySettingShowLinkInForwardedMessages) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingShowLinkInForwardedMessages) UserPrivacySettingType added in v0.1.0

func (*UserPrivacySettingShowLinkInForwardedMessages) UserPrivacySettingType() string

type UserPrivacySettingShowPhoneNumber added in v0.2.0

type UserPrivacySettingShowPhoneNumber struct {
	// contains filtered or unexported fields
}

A privacy setting for managing whether the user's phone number is visible

func UnmarshalUserPrivacySettingShowPhoneNumber added in v0.2.0

func UnmarshalUserPrivacySettingShowPhoneNumber(data json.RawMessage) (*UserPrivacySettingShowPhoneNumber, error)

func (*UserPrivacySettingShowPhoneNumber) GetClass added in v0.2.0

func (*UserPrivacySettingShowPhoneNumber) GetType added in v0.2.0

func (*UserPrivacySettingShowPhoneNumber) MarshalJSON added in v0.2.0

func (entity *UserPrivacySettingShowPhoneNumber) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingShowPhoneNumber) UserPrivacySettingType added in v0.2.0

func (*UserPrivacySettingShowPhoneNumber) UserPrivacySettingType() string

type UserPrivacySettingShowProfilePhoto added in v0.1.0

type UserPrivacySettingShowProfilePhoto struct {
	// contains filtered or unexported fields
}

A privacy setting for managing whether the user's profile photo is visible

func UnmarshalUserPrivacySettingShowProfilePhoto added in v0.1.0

func UnmarshalUserPrivacySettingShowProfilePhoto(data json.RawMessage) (*UserPrivacySettingShowProfilePhoto, error)

func (*UserPrivacySettingShowProfilePhoto) GetClass added in v0.1.0

func (*UserPrivacySettingShowProfilePhoto) GetType added in v0.1.0

func (*UserPrivacySettingShowProfilePhoto) MarshalJSON added in v0.1.0

func (entity *UserPrivacySettingShowProfilePhoto) MarshalJSON() ([]byte, error)

func (*UserPrivacySettingShowProfilePhoto) UserPrivacySettingType added in v0.1.0

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) GetType

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 added in v0.3.2

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's status has never been 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 {

	// Exact user's status is hidden because the current user enabled userPrivacySettingShowStatus privacy setting for the user and has no Telegram Premium
	ByMyPrivacySettings bool `json:"by_my_privacy_settings"`
	// 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 {

	// Exact user's status is hidden because the current user enabled userPrivacySettingShowStatus privacy setting for the user and has no Telegram Premium
	ByMyPrivacySettings bool `json:"by_my_privacy_settings"`
	// 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 {

	// Exact user's status is hidden because the current user enabled userPrivacySettingShowStatus privacy setting for the user and has no Telegram Premium
	ByMyPrivacySettings bool `json:"by_my_privacy_settings"`
	// 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 v0.7.0

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 v0.7.0

func UnmarshalUserSupportInfo(data json.RawMessage) (*UserSupportInfo, error)

func (*UserSupportInfo) GetClass added in v0.7.0

func (*UserSupportInfo) GetClass() string

func (*UserSupportInfo) GetType added in v0.7.0

func (*UserSupportInfo) GetType() string

func (*UserSupportInfo) MarshalJSON added in v0.7.0

func (entity *UserSupportInfo) MarshalJSON() ([]byte, error)

type UserTransactionPurpose added in v0.7.3

type UserTransactionPurpose interface {
	UserTransactionPurposeType() string
}

Describes purpose of a transaction with a user

func UnmarshalListOfUserTransactionPurpose added in v0.7.3

func UnmarshalListOfUserTransactionPurpose(dataList []json.RawMessage) ([]UserTransactionPurpose, error)

func UnmarshalUserTransactionPurpose added in v0.7.3

func UnmarshalUserTransactionPurpose(data json.RawMessage) (UserTransactionPurpose, error)

type UserTransactionPurposeGiftSell added in v0.7.3

type UserTransactionPurposeGiftSell struct {

	// The gift
	Gift *Gift `json:"gift"`
	// contains filtered or unexported fields
}

The user sold a gift received from another user or bot

func UnmarshalUserTransactionPurposeGiftSell added in v0.7.3

func UnmarshalUserTransactionPurposeGiftSell(data json.RawMessage) (*UserTransactionPurposeGiftSell, error)

func (*UserTransactionPurposeGiftSell) GetClass added in v0.7.3

func (*UserTransactionPurposeGiftSell) GetType added in v0.7.3

func (*UserTransactionPurposeGiftSell) MarshalJSON added in v0.7.3

func (entity *UserTransactionPurposeGiftSell) MarshalJSON() ([]byte, error)

func (*UserTransactionPurposeGiftSell) UserTransactionPurposeType added in v0.7.3

func (*UserTransactionPurposeGiftSell) UserTransactionPurposeType() string

type UserTransactionPurposeGiftSend added in v0.7.3

type UserTransactionPurposeGiftSend struct {

	// The gift
	Gift *Gift `json:"gift"`
	// contains filtered or unexported fields
}

The user or the bot sent a gift to a user

func UnmarshalUserTransactionPurposeGiftSend added in v0.7.3

func UnmarshalUserTransactionPurposeGiftSend(data json.RawMessage) (*UserTransactionPurposeGiftSend, error)

func (*UserTransactionPurposeGiftSend) GetClass added in v0.7.3

func (*UserTransactionPurposeGiftSend) GetType added in v0.7.3

func (*UserTransactionPurposeGiftSend) MarshalJSON added in v0.7.3

func (entity *UserTransactionPurposeGiftSend) MarshalJSON() ([]byte, error)

func (*UserTransactionPurposeGiftSend) UserTransactionPurposeType added in v0.7.3

func (*UserTransactionPurposeGiftSend) UserTransactionPurposeType() string

type UserTransactionPurposeGiftedStars added in v0.7.3

type UserTransactionPurposeGiftedStars struct {

	// A sticker to be shown in the transaction information; may be null if unknown
	Sticker *Sticker `json:"sticker"`
	// contains filtered or unexported fields
}

A user gifted Telegram Stars

func UnmarshalUserTransactionPurposeGiftedStars added in v0.7.3

func UnmarshalUserTransactionPurposeGiftedStars(data json.RawMessage) (*UserTransactionPurposeGiftedStars, error)

func (*UserTransactionPurposeGiftedStars) GetClass added in v0.7.3

func (*UserTransactionPurposeGiftedStars) GetType added in v0.7.3

func (*UserTransactionPurposeGiftedStars) MarshalJSON added in v0.7.3

func (entity *UserTransactionPurposeGiftedStars) MarshalJSON() ([]byte, error)

func (*UserTransactionPurposeGiftedStars) UserTransactionPurposeType added in v0.7.3

func (*UserTransactionPurposeGiftedStars) UserTransactionPurposeType() string

type UserType

type UserType interface {
	UserTypeType() string
}

Represents the type of user. The following types are possible: regular users, deleted users and bots

func UnmarshalListOfUserType added in v0.3.2

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 has the main Web App
	HasMainWebApp bool `json:"has_main_web_app"`
	// 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 supports connection to Telegram Business accounts
	CanConnectToBusiness bool `json:"can_connect_to_business"`
	// True, if the bot can be added to attachment or side menu
	CanBeAddedToAttachmentMenu bool `json:"can_be_added_to_attachment_menu"`
	// The number of recently active users of the bot
	ActiveUserCount int32 `json:"active_user_count"`
	// 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 v0.7.0

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. Information about other active usernames can be received using getCollectibleItemInfo
	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 v0.7.0

func UnmarshalUsernames(data json.RawMessage) (*Usernames, error)

func (*Usernames) GetClass added in v0.7.0

func (*Usernames) GetClass() string

func (*Usernames) GetType added in v0.7.0

func (*Usernames) GetType() string

func (*Usernames) MarshalJSON added in v0.7.0

func (entity *Usernames) MarshalJSON() ([]byte, error)

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) GetClass

func (*Users) GetClass() string

func (*Users) GetType

func (*Users) GetType() string

func (*Users) MarshalJSON

func (entity *Users) MarshalJSON() ([]byte, error)

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 added in v0.5.0

type VectorPathCommand interface {
	VectorPathCommandType() string
}

Represents a vector path command

func UnmarshalListOfVectorPathCommand added in v0.5.0

func UnmarshalListOfVectorPathCommand(dataList []json.RawMessage) ([]VectorPathCommand, error)

func UnmarshalVectorPathCommand added in v0.5.0

func UnmarshalVectorPathCommand(data json.RawMessage) (VectorPathCommand, error)

type VectorPathCommandCubicBezierCurve added in v0.5.0

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 added in v0.5.0

func UnmarshalVectorPathCommandCubicBezierCurve(data json.RawMessage) (*VectorPathCommandCubicBezierCurve, error)

func (*VectorPathCommandCubicBezierCurve) GetClass added in v0.5.0

func (*VectorPathCommandCubicBezierCurve) GetType added in v0.5.0

func (*VectorPathCommandCubicBezierCurve) MarshalJSON added in v0.5.0

func (entity *VectorPathCommandCubicBezierCurve) MarshalJSON() ([]byte, error)

func (*VectorPathCommandCubicBezierCurve) VectorPathCommandType added in v0.5.0

func (*VectorPathCommandCubicBezierCurve) VectorPathCommandType() string

type VectorPathCommandLine added in v0.5.0

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 added in v0.5.0

func UnmarshalVectorPathCommandLine(data json.RawMessage) (*VectorPathCommandLine, error)

func (*VectorPathCommandLine) GetClass added in v0.5.0

func (*VectorPathCommandLine) GetClass() string

func (*VectorPathCommandLine) GetType added in v0.5.0

func (*VectorPathCommandLine) GetType() string

func (*VectorPathCommandLine) MarshalJSON added in v0.5.0

func (entity *VectorPathCommandLine) MarshalJSON() ([]byte, error)

func (*VectorPathCommandLine) VectorPathCommandType added in v0.5.0

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) GetClass

func (*Venue) GetClass() string

func (*Venue) GetType

func (*Venue) GetType() string

func (*Venue) MarshalJSON

func (entity *Venue) MarshalJSON() ([]byte, error)

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 expected 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) GetClass

func (*Video) GetClass() string

func (*Video) GetType

func (*Video) GetType() string

func (*Video) MarshalJSON

func (entity *Video) MarshalJSON() ([]byte, error)

type VideoChat added in v0.5.0

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 added in v0.5.0

func UnmarshalVideoChat(data json.RawMessage) (*VideoChat, error)

func (*VideoChat) GetClass added in v0.5.0

func (*VideoChat) GetClass() string

func (*VideoChat) GetType added in v0.5.0

func (*VideoChat) GetType() string

func (*VideoChat) MarshalJSON added in v0.5.0

func (entity *VideoChat) MarshalJSON() ([]byte, error)

func (*VideoChat) UnmarshalJSON added in v0.5.0

func (videoChat *VideoChat) UnmarshalJSON(data []byte) error

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) GetClass

func (*VideoNote) GetClass() string

func (*VideoNote) GetType

func (*VideoNote) GetType() string

func (*VideoNote) MarshalJSON

func (entity *VideoNote) MarshalJSON() ([]byte, error)

func (*VideoNote) UnmarshalJSON added in v0.7.0

func (videoNote *VideoNote) UnmarshalJSON(data []byte) error

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 v0.7.0

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. Usually, one of "audio/ogg" for Opus in an OGG container, "audio/mpeg" for an MP3 audio, or "audio/mp4" for an M4A audio
	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

func UnmarshalVoiceNote

func UnmarshalVoiceNote(data json.RawMessage) (*VoiceNote, error)

func (*VoiceNote) GetClass

func (*VoiceNote) GetClass() string

func (*VoiceNote) GetType

func (*VoiceNote) GetType() string

func (*VoiceNote) MarshalJSON

func (entity *VoiceNote) MarshalJSON() ([]byte, error)

func (*VoiceNote) UnmarshalJSON added in v0.7.0

func (voiceNote *VoiceNote) UnmarshalJSON(data []byte) error

type WebApp added in v0.7.0

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 v0.7.0

func UnmarshalWebApp(data json.RawMessage) (*WebApp, error)

func (*WebApp) GetClass added in v0.7.0

func (*WebApp) GetClass() string

func (*WebApp) GetType added in v0.7.0

func (*WebApp) GetType() string

func (*WebApp) MarshalJSON added in v0.7.0

func (entity *WebApp) MarshalJSON() ([]byte, error)

type WebAppInfo added in v0.7.0

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 v0.7.0

func UnmarshalWebAppInfo(data json.RawMessage) (*WebAppInfo, error)

func (*WebAppInfo) GetClass added in v0.7.0

func (*WebAppInfo) GetClass() string

func (*WebAppInfo) GetType added in v0.7.0

func (*WebAppInfo) GetType() string

func (*WebAppInfo) MarshalJSON added in v0.7.0

func (entity *WebAppInfo) MarshalJSON() ([]byte, error)

type WebAppOpenMode added in v0.7.4

type WebAppOpenMode interface {
	WebAppOpenModeType() string
}

Describes mode in which a Web App is opened

func UnmarshalListOfWebAppOpenMode added in v0.7.4

func UnmarshalListOfWebAppOpenMode(dataList []json.RawMessage) ([]WebAppOpenMode, error)

func UnmarshalWebAppOpenMode added in v0.7.4

func UnmarshalWebAppOpenMode(data json.RawMessage) (WebAppOpenMode, error)

type WebAppOpenModeCompact added in v0.7.4

type WebAppOpenModeCompact struct {
	// contains filtered or unexported fields
}

The Web App is opened in the compact mode

func UnmarshalWebAppOpenModeCompact added in v0.7.4

func UnmarshalWebAppOpenModeCompact(data json.RawMessage) (*WebAppOpenModeCompact, error)

func (*WebAppOpenModeCompact) GetClass added in v0.7.4

func (*WebAppOpenModeCompact) GetClass() string

func (*WebAppOpenModeCompact) GetType added in v0.7.4

func (*WebAppOpenModeCompact) GetType() string

func (*WebAppOpenModeCompact) MarshalJSON added in v0.7.4

func (entity *WebAppOpenModeCompact) MarshalJSON() ([]byte, error)

func (*WebAppOpenModeCompact) WebAppOpenModeType added in v0.7.4

func (*WebAppOpenModeCompact) WebAppOpenModeType() string

type WebAppOpenModeFullScreen added in v0.7.4

type WebAppOpenModeFullScreen struct {
	// contains filtered or unexported fields
}

The Web App is opened in the full-screen mode

func UnmarshalWebAppOpenModeFullScreen added in v0.7.4

func UnmarshalWebAppOpenModeFullScreen(data json.RawMessage) (*WebAppOpenModeFullScreen, error)

func (*WebAppOpenModeFullScreen) GetClass added in v0.7.4

func (*WebAppOpenModeFullScreen) GetClass() string

func (*WebAppOpenModeFullScreen) GetType added in v0.7.4

func (*WebAppOpenModeFullScreen) GetType() string

func (*WebAppOpenModeFullScreen) MarshalJSON added in v0.7.4

func (entity *WebAppOpenModeFullScreen) MarshalJSON() ([]byte, error)

func (*WebAppOpenModeFullScreen) WebAppOpenModeType added in v0.7.4

func (*WebAppOpenModeFullScreen) WebAppOpenModeType() string

type WebAppOpenModeFullSize added in v0.7.4

type WebAppOpenModeFullSize struct {
	// contains filtered or unexported fields
}

The Web App is opened in the full-size mode

func UnmarshalWebAppOpenModeFullSize added in v0.7.4

func UnmarshalWebAppOpenModeFullSize(data json.RawMessage) (*WebAppOpenModeFullSize, error)

func (*WebAppOpenModeFullSize) GetClass added in v0.7.4

func (*WebAppOpenModeFullSize) GetClass() string

func (*WebAppOpenModeFullSize) GetType added in v0.7.4

func (*WebAppOpenModeFullSize) GetType() string

func (*WebAppOpenModeFullSize) MarshalJSON added in v0.7.4

func (entity *WebAppOpenModeFullSize) MarshalJSON() ([]byte, error)

func (*WebAppOpenModeFullSize) WebAppOpenModeType added in v0.7.4

func (*WebAppOpenModeFullSize) WebAppOpenModeType() string

type WebAppOpenParameters added in v0.7.4

type WebAppOpenParameters struct {

	// Preferred Web App theme; pass null to use the default theme
	Theme *ThemeParameters `json:"theme"`
	// Short name of the current application; 0-64 English letters, digits, and underscores
	ApplicationName string `json:"application_name"`
	// The mode in which the Web App is opened; pass null to open in webAppOpenModeFullSize
	Mode WebAppOpenMode `json:"mode"`
	// contains filtered or unexported fields
}

Options to be used when a Web App is opened

func UnmarshalWebAppOpenParameters added in v0.7.4

func UnmarshalWebAppOpenParameters(data json.RawMessage) (*WebAppOpenParameters, error)

func (*WebAppOpenParameters) GetClass added in v0.7.4

func (*WebAppOpenParameters) GetClass() string

func (*WebAppOpenParameters) GetType added in v0.7.4

func (*WebAppOpenParameters) GetType() string

func (*WebAppOpenParameters) MarshalJSON added in v0.7.4

func (entity *WebAppOpenParameters) MarshalJSON() ([]byte, error)

func (*WebAppOpenParameters) UnmarshalJSON added in v0.7.4

func (webAppOpenParameters *WebAppOpenParameters) UnmarshalJSON(data []byte) error

type WebPageInstantView

type WebPageInstantView struct {

	// Content of the instant view 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 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 added in v0.3.2

func (webPageInstantView *WebPageInstantView) UnmarshalJSON(data []byte) error

type WriteGeneratedFilePartRequest added in v0.0.13

type WriteGeneratedFilePartRequest struct {
	// The identifier of the generation process
	GenerationId JsonInt64 `json:"generation_id"`
	// The offset from which to write the data to the file
	Offset int64 `json:"offset"`
	// The data to write
	Data []byte `json:"data"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL