package
0.0.0-20240623125145-6ca9948cfcdc
Repository: https://github.com/gotd/botapi.git
Documentation: pkg.go.dev
# Functions
LabelerFromContext retrieves the Labeler from the provided context, if present.
NewBackgroundFillFreeformGradientBackgroundFill returns new BackgroundFill from BackgroundFillFreeformGradient.
NewBackgroundFillGradientBackgroundFill returns new BackgroundFill from BackgroundFillGradient.
NewBackgroundFillSolidBackgroundFill returns new BackgroundFill from BackgroundFillSolid.
NewBackgroundTypeChatThemeBackgroundType returns new BackgroundType from BackgroundTypeChatTheme.
NewBackgroundTypeFillBackgroundType returns new BackgroundType from BackgroundTypeFill.
NewBackgroundTypePatternBackgroundType returns new BackgroundType from BackgroundTypePattern.
NewBackgroundTypeWallpaperBackgroundType returns new BackgroundType from BackgroundTypeWallpaper.
NewBoolResultMessageOrBooleanResult returns new ResultMessageOrBooleanResult from bool.
NewBotCommandScopeAllChatAdministratorsBotCommandScope returns new BotCommandScope from BotCommandScopeAllChatAdministrators.
NewBotCommandScopeAllGroupChatsBotCommandScope returns new BotCommandScope from BotCommandScopeAllGroupChats.
NewBotCommandScopeAllPrivateChatsBotCommandScope returns new BotCommandScope from BotCommandScopeAllPrivateChats.
NewBotCommandScopeChatAdministratorsBotCommandScope returns new BotCommandScope from BotCommandScopeChatAdministrators.
NewBotCommandScopeChatBotCommandScope returns new BotCommandScope from BotCommandScopeChat.
NewBotCommandScopeChatMemberBotCommandScope returns new BotCommandScope from BotCommandScopeChatMember.
NewBotCommandScopeDefaultBotCommandScope returns new BotCommandScope from BotCommandScopeDefault.
NewChatBoostSourceGiftCodeChatBoostSource returns new ChatBoostSource from ChatBoostSourceGiftCode.
NewChatBoostSourceGiveawayChatBoostSource returns new ChatBoostSource from ChatBoostSourceGiveaway.
NewChatBoostSourcePremiumChatBoostSource returns new ChatBoostSource from ChatBoostSourcePremium.
NewChatMemberAdministratorChatMember returns new ChatMember from ChatMemberAdministrator.
NewChatMemberBannedChatMember returns new ChatMember from ChatMemberBanned.
NewChatMemberLeftChatMember returns new ChatMember from ChatMemberLeft.
NewChatMemberMemberChatMember returns new ChatMember from ChatMemberMember.
NewChatMemberOwnerChatMember returns new ChatMember from ChatMemberOwner.
NewChatMemberRestrictedChatMember returns new ChatMember from ChatMemberRestricted.
NewClient initializes new Client defined by OAS.
NewForceReplySendReplyMarkup returns new SendReplyMarkup from ForceReply.
NewInaccessibleMessageMaybeInaccessibleMessage returns new MaybeInaccessibleMessage from InaccessibleMessage.
NewInlineKeyboardMarkupSendReplyMarkup returns new SendReplyMarkup from InlineKeyboardMarkup.
NewInlineQueryResultArticleInlineQueryResult returns new InlineQueryResult from InlineQueryResultArticle.
NewInlineQueryResultAudioInlineQueryResult returns new InlineQueryResult from InlineQueryResultAudio.
NewInlineQueryResultCachedAudioInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedAudio.
NewInlineQueryResultCachedDocumentInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedDocument.
NewInlineQueryResultCachedGifInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedGif.
NewInlineQueryResultCachedMpeg4GifInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedMpeg4Gif.
NewInlineQueryResultCachedPhotoInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedPhoto.
NewInlineQueryResultCachedStickerInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedSticker.
NewInlineQueryResultCachedVideoInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedVideo.
NewInlineQueryResultCachedVoiceInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedVoice.
NewInlineQueryResultContactInlineQueryResult returns new InlineQueryResult from InlineQueryResultContact.
NewInlineQueryResultDocumentInlineQueryResult returns new InlineQueryResult from InlineQueryResultDocument.
NewInlineQueryResultGameInlineQueryResult returns new InlineQueryResult from InlineQueryResultGame.
NewInlineQueryResultGifInlineQueryResult returns new InlineQueryResult from InlineQueryResultGif.
NewInlineQueryResultLocationInlineQueryResult returns new InlineQueryResult from InlineQueryResultLocation.
NewInlineQueryResultMpeg4GifInlineQueryResult returns new InlineQueryResult from InlineQueryResultMpeg4Gif.
NewInlineQueryResultPhotoInlineQueryResult returns new InlineQueryResult from InlineQueryResultPhoto.
NewInlineQueryResultVenueInlineQueryResult returns new InlineQueryResult from InlineQueryResultVenue.
NewInlineQueryResultVideoInlineQueryResult returns new InlineQueryResult from InlineQueryResultVideo.
NewInlineQueryResultVoiceInlineQueryResult returns new InlineQueryResult from InlineQueryResultVoice.
NewInputContactMessageContentInputMessageContent returns new InputMessageContent from InputContactMessageContent.
NewInputInvoiceMessageContentInputMessageContent returns new InputMessageContent from InputInvoiceMessageContent.
NewInputLocationMessageContentInputMessageContent returns new InputMessageContent from InputLocationMessageContent.
NewInputMediaAnimationInputMedia returns new InputMedia from InputMediaAnimation.
NewInputMediaAudioInputMedia returns new InputMedia from InputMediaAudio.
NewInputMediaAudioSendMediaGroupMediaItem returns new SendMediaGroupMediaItem from InputMediaAudio.
NewInputMediaDocumentInputMedia returns new InputMedia from InputMediaDocument.
NewInputMediaDocumentSendMediaGroupMediaItem returns new SendMediaGroupMediaItem from InputMediaDocument.
NewInputMediaPhotoInputMedia returns new InputMedia from InputMediaPhoto.
NewInputMediaPhotoSendMediaGroupMediaItem returns new SendMediaGroupMediaItem from InputMediaPhoto.
NewInputMediaVideoInputMedia returns new InputMedia from InputMediaVideo.
NewInputMediaVideoSendMediaGroupMediaItem returns new SendMediaGroupMediaItem from InputMediaVideo.
NewInputTextMessageContentInputMessageContent returns new InputMessageContent from InputTextMessageContent.
NewInputVenueMessageContentInputMessageContent returns new InputMessageContent from InputVenueMessageContent.
NewInt64ID returns new ID from int64.
NewKeyboardButtonObjectKeyboardButton returns new KeyboardButton from KeyboardButtonObject.
NewMenuButtonCommandsMenuButton returns new MenuButton from MenuButtonCommands.
NewMenuButtonDefaultMenuButton returns new MenuButton from MenuButtonDefault.
NewMenuButtonWebAppMenuButton returns new MenuButton from MenuButtonWebApp.
NewMessageMaybeInaccessibleMessage returns new MaybeInaccessibleMessage from Message.
NewMessageOriginChannelMessageOrigin returns new MessageOrigin from MessageOriginChannel.
NewMessageOriginChatMessageOrigin returns new MessageOrigin from MessageOriginChat.
NewMessageOriginHiddenUserMessageOrigin returns new MessageOrigin from MessageOriginHiddenUser.
NewMessageOriginUserMessageOrigin returns new MessageOrigin from MessageOriginUser.
NewMessageResultMessageOrBooleanResult returns new ResultMessageOrBooleanResult from Message.
NewOptAnimation returns new OptAnimation with value set to v.
NewOptAudio returns new OptAudio with value set to v.
NewOptBool returns new OptBool with value set to v.
NewOptBotCommandScope returns new OptBotCommandScope with value set to v.
NewOptBusinessConnection returns new OptBusinessConnection with value set to v.
NewOptBusinessMessagesDeleted returns new OptBusinessMessagesDeleted with value set to v.
NewOptCallbackGame returns new OptCallbackGame with value set to v.
NewOptCallbackQuery returns new OptCallbackQuery with value set to v.
NewOptChat returns new OptChat with value set to v.
NewOptChatAdministratorRights returns new OptChatAdministratorRights with value set to v.
NewOptChatBackground returns new OptChatBackground with value set to v.
NewOptChatBoostAdded returns new OptChatBoostAdded with value set to v.
NewOptChatBoostRemoved returns new OptChatBoostRemoved with value set to v.
NewOptChatBoostUpdated returns new OptChatBoostUpdated with value set to v.
NewOptChatInviteLink returns new OptChatInviteLink with value set to v.
NewOptChatJoinRequest returns new OptChatJoinRequest with value set to v.
NewOptChatMember returns new OptChatMember with value set to v.
NewOptChatMemberUpdated returns new OptChatMemberUpdated with value set to v.
NewOptChatShared returns new OptChatShared with value set to v.
NewOptChosenInlineResult returns new OptChosenInlineResult with value set to v.
NewOptContact returns new OptContact with value set to v.
NewOptDeleteMyCommands returns new OptDeleteMyCommands with value set to v.
NewOptDeleteWebhook returns new OptDeleteWebhook with value set to v.
NewOptDice returns new OptDice with value set to v.
NewOptDocument returns new OptDocument with value set to v.
NewOptExternalReplyInfo returns new OptExternalReplyInfo with value set to v.
NewOptFile returns new OptFile with value set to v.
NewOptFloat64 returns new OptFloat64 with value set to v.
NewOptForumTopicClosed returns new OptForumTopicClosed with value set to v.
NewOptForumTopicCreated returns new OptForumTopicCreated with value set to v.
NewOptForumTopicEdited returns new OptForumTopicEdited with value set to v.
NewOptForumTopicReopened returns new OptForumTopicReopened with value set to v.
NewOptGame returns new OptGame with value set to v.
NewOptGeneralForumTopicHidden returns new OptGeneralForumTopicHidden with value set to v.
NewOptGeneralForumTopicUnhidden returns new OptGeneralForumTopicUnhidden with value set to v.
NewOptGetChatMenuButton returns new OptGetChatMenuButton with value set to v.
NewOptGetMyCommands returns new OptGetMyCommands with value set to v.
NewOptGetMyDefaultAdministratorRights returns new OptGetMyDefaultAdministratorRights with value set to v.
NewOptGetMyDescription returns new OptGetMyDescription with value set to v.
NewOptGetMyName returns new OptGetMyName with value set to v.
NewOptGetMyShortDescription returns new OptGetMyShortDescription with value set to v.
NewOptGetStarTransactions returns new OptGetStarTransactions with value set to v.
NewOptGetUpdates returns new OptGetUpdates with value set to v.
NewOptGiveaway returns new OptGiveaway with value set to v.
NewOptGiveawayCompleted returns new OptGiveawayCompleted with value set to v.
NewOptGiveawayCreated returns new OptGiveawayCreated with value set to v.
NewOptGiveawayWinners returns new OptGiveawayWinners with value set to v.
NewOptID returns new OptID with value set to v.
NewOptInlineKeyboardMarkup returns new OptInlineKeyboardMarkup with value set to v.
NewOptInlineQuery returns new OptInlineQuery with value set to v.
NewOptInlineQueryChatType returns new OptInlineQueryChatType with value set to v.
NewOptInlineQueryResultsButton returns new OptInlineQueryResultsButton with value set to v.
NewOptInputMessageContent returns new OptInputMessageContent with value set to v.
NewOptInt returns new OptInt with value set to v.
NewOptInt64 returns new OptInt64 with value set to v.
NewOptInvoice returns new OptInvoice with value set to v.
NewOptKeyboardButtonPollType returns new OptKeyboardButtonPollType with value set to v.
NewOptKeyboardButtonRequestChat returns new OptKeyboardButtonRequestChat with value set to v.
NewOptKeyboardButtonRequestUsers returns new OptKeyboardButtonRequestUsers with value set to v.
NewOptLinkPreviewOptions returns new OptLinkPreviewOptions with value set to v.
NewOptLocation returns new OptLocation with value set to v.
NewOptLoginUrl returns new OptLoginUrl with value set to v.
NewOptMaskPosition returns new OptMaskPosition with value set to v.
NewOptMaybeInaccessibleMessage returns new OptMaybeInaccessibleMessage with value set to v.
NewOptMenuButton returns new OptMenuButton with value set to v.
NewOptMessage returns new OptMessage with value set to v.
NewOptMessageAutoDeleteTimerChanged returns new OptMessageAutoDeleteTimerChanged with value set to v.
NewOptMessageId returns new OptMessageId with value set to v.
NewOptMessageOrigin returns new OptMessageOrigin with value set to v.
NewOptMessageReactionCountUpdated returns new OptMessageReactionCountUpdated with value set to v.
NewOptMessageReactionUpdated returns new OptMessageReactionUpdated with value set to v.
NewOptOrderInfo returns new OptOrderInfo with value set to v.
NewOptPassportData returns new OptPassportData with value set to v.
NewOptPassportFile returns new OptPassportFile with value set to v.
NewOptPhotoSize returns new OptPhotoSize with value set to v.
NewOptPoll returns new OptPoll with value set to v.
NewOptPollAnswer returns new OptPollAnswer with value set to v.
NewOptPreCheckoutQuery returns new OptPreCheckoutQuery with value set to v.
NewOptProximityAlertTriggered returns new OptProximityAlertTriggered with value set to v.
NewOptReplyParameters returns new OptReplyParameters with value set to v.
NewOptResponseParameters returns new OptResponseParameters with value set to v.
NewOptResultMessageOrBooleanResult returns new OptResultMessageOrBooleanResult with value set to v.
NewOptSendReplyMarkup returns new OptSendReplyMarkup with value set to v.
NewOptSetChatMenuButton returns new OptSetChatMenuButton with value set to v.
NewOptSetMyDefaultAdministratorRights returns new OptSetMyDefaultAdministratorRights with value set to v.
NewOptSetMyDescription returns new OptSetMyDescription with value set to v.
NewOptSetMyName returns new OptSetMyName with value set to v.
NewOptSetMyShortDescription returns new OptSetMyShortDescription with value set to v.
NewOptShippingAddress returns new OptShippingAddress with value set to v.
NewOptShippingQuery returns new OptShippingQuery with value set to v.
NewOptSticker returns new OptSticker with value set to v.
NewOptStickerSet returns new OptStickerSet with value set to v.
NewOptStory returns new OptStory with value set to v.
NewOptString returns new OptString with value set to v.
NewOptSuccessfulPayment returns new OptSuccessfulPayment with value set to v.
NewOptSwitchInlineQueryChosenChat returns new OptSwitchInlineQueryChosenChat with value set to v.
NewOptTextQuote returns new OptTextQuote with value set to v.
NewOptUser returns new OptUser with value set to v.
NewOptUserProfilePhotos returns new OptUserProfilePhotos with value set to v.
NewOptUsersShared returns new OptUsersShared with value set to v.
NewOptVenue returns new OptVenue with value set to v.
NewOptVideo returns new OptVideo with value set to v.
NewOptVideoChatEnded returns new OptVideoChatEnded with value set to v.
NewOptVideoChatParticipantsInvited returns new OptVideoChatParticipantsInvited with value set to v.
NewOptVideoChatScheduled returns new OptVideoChatScheduled with value set to v.
NewOptVideoChatStarted returns new OptVideoChatStarted with value set to v.
NewOptVideoNote returns new OptVideoNote with value set to v.
NewOptVoice returns new OptVoice with value set to v.
NewOptWebAppData returns new OptWebAppData with value set to v.
NewOptWebAppInfo returns new OptWebAppInfo with value set to v.
NewOptWebhookInfo returns new OptWebhookInfo with value set to v.
NewOptWriteAccessAllowed returns new OptWriteAccessAllowed with value set to v.
NewPassportElementErrorDataFieldPassportElementError returns new PassportElementError from PassportElementErrorDataField.
NewPassportElementErrorFilePassportElementError returns new PassportElementError from PassportElementErrorFile.
NewPassportElementErrorFilesPassportElementError returns new PassportElementError from PassportElementErrorFiles.
NewPassportElementErrorFrontSidePassportElementError returns new PassportElementError from PassportElementErrorFrontSide.
NewPassportElementErrorReverseSidePassportElementError returns new PassportElementError from PassportElementErrorReverseSide.
NewPassportElementErrorSelfiePassportElementError returns new PassportElementError from PassportElementErrorSelfie.
NewPassportElementErrorTranslationFilePassportElementError returns new PassportElementError from PassportElementErrorTranslationFile.
NewPassportElementErrorTranslationFilesPassportElementError returns new PassportElementError from PassportElementErrorTranslationFiles.
NewPassportElementErrorUnspecifiedPassportElementError returns new PassportElementError from PassportElementErrorUnspecified.
NewReactionTypeCustomEmojiReactionType returns new ReactionType from ReactionTypeCustomEmoji.
NewReactionTypeEmojiReactionType returns new ReactionType from ReactionTypeEmoji.
NewReplyKeyboardMarkupSendReplyMarkup returns new SendReplyMarkup from ReplyKeyboardMarkup.
NewReplyKeyboardRemoveSendReplyMarkup returns new SendReplyMarkup from ReplyKeyboardRemove.
NewServer creates new Server.
NewStringID returns new ID from string.
NewStringKeyboardButton returns new KeyboardButton from string.
WithClient specifies http client to use.
WithErrorHandler specifies error handler to use.
WithMaxMultipartMemory specifies limit of memory for storing file parts.
WithMeterProvider specifies a meter provider to use for creating a meter.
WithMethodNotAllowed specifies Method Not Allowed handler to use.
WithMiddleware specifies middlewares to use.
WithNotFound specifies Not Found handler to use.
WithPathPrefix specifies server path prefix.
WithServerURL sets context key to override server URL.
WithTracerProvider specifies a tracer provider to use for creating a tracer.
# Constants
Possible values for BackgroundFillType.
Possible values for BackgroundFillType.
Possible values for BackgroundFillType.
Possible values for BackgroundTypeType.
Possible values for BackgroundTypeType.
Possible values for BackgroundTypeType.
Possible values for BackgroundTypeType.
Possible values for ResultMessageOrBooleanResultType.
Possible values for BotCommandScopeType.
Possible values for BotCommandScopeType.
Possible values for BotCommandScopeType.
Possible values for BotCommandScopeType.
Possible values for BotCommandScopeType.
Possible values for BotCommandScopeType.
Possible values for BotCommandScopeType.
Possible values for ChatBoostSourceType.
Possible values for ChatBoostSourceType.
Possible values for ChatBoostSourceType.
Possible values for ChatMemberType.
Possible values for ChatMemberType.
Possible values for ChatMemberType.
Possible values for ChatMemberType.
Possible values for ChatMemberType.
Possible values for ChatMemberType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Possible values for SendReplyMarkupType.
Possible values for MaybeInaccessibleMessageType.
Possible values for SendReplyMarkupType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InlineQueryResultType.
Possible values for InputMessageContentType.
Possible values for InputMessageContentType.
Possible values for InputMessageContentType.
Possible values for InputMediaType.
Possible values for InputMediaType.
Possible values for SendMediaGroupMediaItemType.
Possible values for InputMediaType.
Possible values for SendMediaGroupMediaItemType.
Possible values for InputMediaType.
Possible values for SendMediaGroupMediaItemType.
Possible values for InputMediaType.
Possible values for SendMediaGroupMediaItemType.
Possible values for InputMessageContentType.
Possible values for InputMessageContentType.
Possible values for IDType.
Possible values for KeyboardButtonType.
Possible values for MenuButtonType.
Possible values for MenuButtonType.
Possible values for MenuButtonType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Possible values for MaybeInaccessibleMessageType.
Possible values for MessageOriginType.
Possible values for MessageOriginType.
Possible values for MessageOriginType.
Possible values for MessageOriginType.
Possible values for ResultMessageOrBooleanResultType.
Possible values for PassportElementErrorType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Possible values for PassportElementErrorType.
Possible values for PassportElementErrorType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Possible values for PassportElementErrorType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Possible values for PassportElementErrorType.
No description provided by the author
No description provided by the author
Possible values for PassportElementErrorType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Possible values for PassportElementErrorType.
Possible values for PassportElementErrorType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Possible values for PassportElementErrorType.
No description provided by the author
No description provided by the author
Possible values for ReactionTypeType.
Possible values for ReactionTypeType.
Possible values for SendReplyMarkupType.
Possible values for SendReplyMarkupType.
No description provided by the author
No description provided by the author
No description provided by the author
Possible values for IDType.
Possible values for KeyboardButtonType.
# Structs
Input for addStickerToSet.
This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
Input for answerCallbackQuery.
Input for answerInlineQuery.
Input for answerPreCheckoutQuery.
Input for answerShippingQuery.
Input for answerWebAppQuery.
Input for approveChatJoinRequest.
This object represents an audio file to be treated as music by the Telegram clients.
This object describes the way a background is filled based on the selected colors.
The background is a freeform gradient that rotates after every message in the chat.
The background is a gradient fill.
The background is filled using the selected color.
This object describes the type of a background.
The background is taken directly from a built-in chat theme.
The background is automatically filled based on the selected colors.
The background is 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.
The background is a wallpaper in the JPEG format.
Input for banChatMember.
Input for banChatSenderChat.
This object represents a bot command.
This object represents the scope to which bot commands are applied.
Represents the [scope](https://core.telegram.org/bots/api#botcommandscope) of bot commands, covering all group and supergroup chat administrators.
Represents the [scope](https://core.telegram.org/bots/api#botcommandscope) of bot commands, covering all group and supergroup chats.
Represents the [scope](https://core.telegram.org/bots/api#botcommandscope) of bot commands, covering all private chats.
Represents the [scope](https://core.telegram.org/bots/api#botcommandscope) of bot commands, covering a specific chat.
Represents the [scope](https://core.telegram.org/bots/api#botcommandscope) of bot commands, covering all administrators of a specific group or supergroup chat.
Represents the [scope](https://core.telegram.org/bots/api#botcommandscope) of bot commands, covering a specific member of a group or supergroup chat.
Represents the default [scope](https://core.telegram.org/bots/api#botcommandscope) of bot commands.
Describes the connection of the bot with a business account.
This object is received when messages are deleted from a connected business account.
This object represents an incoming callback query from a callback button in an [inline keyboard](https://core.telegram.org/bots/features#inline-keyboards).
This object represents a chat.
Represents the rights of an administrator in a chat.
This object represents a chat background.
This object contains information about a chat boost.
This object represents a service message about a user boosting a chat.
This object represents a boost removed from a chat.
This object describes the source of a chat boost.
The boost was obtained by the creation of Telegram Premium gift codes to boost a chat.
The boost was obtained by the creation of a Telegram Premium giveaway.
The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscription to another user.
This object represents a boost added to a chat or changed.
Represents an invite link for a chat.
Represents a join request sent to a chat.
This object contains information about one member of a chat.
Represents a [chat member](https://core.telegram.org/bots/api#chatmember) that has some additional privileges.
Represents a [chat member](https://core.telegram.org/bots/api#chatmember) that was banned in the chat and can't return to the chat or view chat messages.
Represents a [chat member](https://core.telegram.org/bots/api#chatmember) that isn't currently a member of the chat, but may join it themselves.
Represents a [chat member](https://core.telegram.org/bots/api#chatmember) that has no additional privileges or restrictions.
Represents a [chat member](https://core.telegram.org/bots/api#chatmember) that owns the chat and has all administrator privileges.
Represents a [chat member](https://core.telegram.org/bots/api#chatmember) that is under certain restrictions in the chat.
This object represents changes in the status of a chat member.
Describes actions that a non-administrator user is allowed to take in a chat.
This object contains information about a chat that was shared with the bot using a [KeyboardButtonRequestChat](https://core.telegram.org/bots/api#keyboardbuttonrequestchat) button.
Represents a [result](https://core.telegram.org/bots/api#inlinequeryresult) of an inline query that was chosen by the user and sent to their chat partner.
Client implements OAS client.
Input for closeForumTopic.
Input for closeGeneralForumTopic.
This object represents a phone contact.
Input for copyMessage.
Input for copyMessages.
Input for createChatInviteLink.
Input for createForumTopic.
Input for createInvoiceLink.
Input for createNewStickerSet.
Input for declineChatJoinRequest.
Input for deleteChatPhoto.
Input for deleteChatStickerSet.
Input for deleteForumTopic.
Input for deleteMessage.
Input for deleteMessages.
Input for deleteMyCommands.
Input for deleteStickerFromSet.
Input for deleteStickerSet.
Input for deleteWebhook.
This object represents an animated emoji that displays a random value.
This object represents a general file (as opposed to [photos](https://core.telegram.
Input for editChatInviteLink.
Input for editForumTopic.
Input for editGeneralForumTopic.
Input for editMessageCaption.
Input for editMessageLiveLocation.
Input for editMessageMedia.
Input for editMessageReplyMarkup.
Input for editMessageText.
Describes data required for decrypting and authenticating [EncryptedPassportElement](https://core.
Describes documents or other Telegram Passport elements shared with the bot by the user.
Ref: #/components/schemas/Error.
ErrorStatusCode wraps Error with StatusCode.
Input for exportChatInviteLink.
This object contains information about a message that is being replied to, which may come from another chat or forum topic.
This object represents a file ready to be downloaded.
Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply').
This object represents a service message about a new forum topic created in the chat.
This object represents a service message about an edited forum topic.
Input for forwardMessage.
Input for forwardMessages.
This object represents a game.
This object represents one row of the high scores table for a game.
Input for getBusinessConnection.
Input for getChat.
Input for getChatAdministrators.
Input for getChatMember.
Input for getChatMemberCount.
Input for getChatMenuButton.
Input for getCustomEmojiStickers.
Input for getFile.
Input for getGameHighScores.
Input for getMyCommands.
Input for getMyDefaultAdministratorRights.
Input for getMyDescription.
Input for getMyName.
Input for getMyShortDescription.
Input for getStarTransactions.
Input for getStickerSet.
Input for getUpdates.
Input for getUserChatBoosts.
Input for getUserProfilePhotos.
This object represents a message about a scheduled giveaway.
This object represents a service message about the completion of a giveaway without public winners.
This object represents a message about the completion of a giveaway with public winners.
Input for hideGeneralForumTopic.
Ref: #/components/schemas/ID ID represents sum type.
This object describes a message that was deleted or is otherwise inaccessible to the bot.
This object represents one button of an inline keyboard.
This object represents an [inline keyboard](https://core.telegram.
This object represents an incoming inline query.
This object represents one result of an inline query.
Represents a link to an article or web page.
Represents a link to an MP3 audio file.
Represents a link to an MP3 audio file stored on the Telegram servers.
Represents a link to a file stored on the Telegram servers.
Represents a link to an animated GIF file stored on the Telegram servers.
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers.
Represents a link to a photo stored on the Telegram servers.
Represents a link to a sticker stored on the Telegram servers.
Represents a link to a video file stored on the Telegram servers.
Represents a link to a voice message stored on the Telegram servers.
Represents a contact with a phone number.
Represents a link to a file.
Represents a [Game](https://core.telegram.org/bots/api#games).
Represents a link to an animated GIF file.
Represents a location on a map.
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound).
Represents a link to a photo.
This object represents a button to be shown above inline query results.
Represents a venue.
Represents a link to a page containing an embedded video player or a video file.
Represents a link to a voice recording in an .OGG container encoded with OPUS.
Represents the [content](https://core.telegram.org/bots/api#inputmessagecontent) of a contact message to be sent as the result of an inline query.
Represents the [content](https://core.telegram.org/bots/api#inputmessagecontent) of an invoice message to be sent as the result of an inline query.
Represents the [content](https://core.telegram.org/bots/api#inputmessagecontent) of a location message to be sent as the result of an inline query.
This object represents the content of a media message to be sent.
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
Represents an audio file to be treated as music to be sent.
Represents a general file to be sent.
Represents a photo to be sent.
Represents a video to be sent.
This object represents the content of a message to be sent as a result of an inline query.
This object contains information about one answer option in a poll to send.
This object describes a sticker to be added to a sticker set.
Represents the [content](https://core.telegram.org/bots/api#inputmessagecontent) of a text message to be sent as the result of an inline query.
Represents the [content](https://core.telegram.org/bots/api#inputmessagecontent) of a venue message to be sent as the result of an inline query.
This object contains basic information about an invoice.
Ref: #/components/schemas/KeyboardButton KeyboardButton represents sum type.
This object represents one button of the reply keyboard.
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
This object defines the criteria used to request a suitable chat.
This object defines the criteria used to request suitable users.
This object represents a portion of the price for goods or services.
Labeler is used to allow adding custom attributes to the server request metrics.
Input for leaveChat.
Describes the options used for link preview generation.
This object represents a point on the map.
Telegram apps support these buttons as of [version 5.7](https://telegram.
This object describes the position on faces where a mask should be placed by default.
This object describes a message that can be inaccessible to the bot.
This object describes the bot's menu button in a private chat.
Represents a menu button, which opens the bot's list of commands.
Describes that no specific value for the menu button was set.
Represents a menu button, which launches a [Web App](https://core.telegram.org/bots/webapps).
This object represents a message.
This object represents a service message about a change in auto-delete timer settings.
This object represents one special entity in a text message.
This object represents a unique message identifier.
This object describes the origin of a message.
The message was originally sent to a channel chat.
The message was originally sent on behalf of a chat to a group chat.
The message was originally sent by an unknown user.
The message was originally sent by a known user.
This object represents reaction changes on a message with anonymous reactions.
This object represents a change of a reaction on a message performed by a user.
OptAnimation is optional Animation.
OptAudio is optional Audio.
OptBool is optional bool.
OptBotCommandScope is optional BotCommandScope.
OptBusinessConnection is optional BusinessConnection.
OptBusinessMessagesDeleted is optional BusinessMessagesDeleted.
OptCallbackGame is optional CallbackGame.
OptCallbackQuery is optional CallbackQuery.
OptChat is optional Chat.
OptChatAdministratorRights is optional ChatAdministratorRights.
OptChatBackground is optional ChatBackground.
OptChatBoostAdded is optional ChatBoostAdded.
OptChatBoostRemoved is optional ChatBoostRemoved.
OptChatBoostUpdated is optional ChatBoostUpdated.
OptChatInviteLink is optional ChatInviteLink.
OptChatJoinRequest is optional ChatJoinRequest.
OptChatMember is optional ChatMember.
OptChatMemberUpdated is optional ChatMemberUpdated.
OptChatShared is optional ChatShared.
OptChosenInlineResult is optional ChosenInlineResult.
OptContact is optional Contact.
OptDeleteMyCommands is optional DeleteMyCommands.
OptDeleteWebhook is optional DeleteWebhook.
OptDice is optional Dice.
OptDocument is optional Document.
OptExternalReplyInfo is optional ExternalReplyInfo.
OptFile is optional File.
OptFloat64 is optional float64.
OptForumTopicClosed is optional ForumTopicClosed.
OptForumTopicCreated is optional ForumTopicCreated.
OptForumTopicEdited is optional ForumTopicEdited.
OptForumTopicReopened is optional ForumTopicReopened.
OptGame is optional Game.
OptGeneralForumTopicHidden is optional GeneralForumTopicHidden.
OptGeneralForumTopicUnhidden is optional GeneralForumTopicUnhidden.
OptGetChatMenuButton is optional GetChatMenuButton.
OptGetMyCommands is optional GetMyCommands.
OptGetMyDefaultAdministratorRights is optional GetMyDefaultAdministratorRights.
OptGetMyDescription is optional GetMyDescription.
OptGetMyName is optional GetMyName.
OptGetMyShortDescription is optional GetMyShortDescription.
OptGetStarTransactions is optional GetStarTransactions.
OptGetUpdates is optional GetUpdates.
OptGiveaway is optional Giveaway.
OptGiveawayCompleted is optional GiveawayCompleted.
OptGiveawayCreated is optional GiveawayCreated.
OptGiveawayWinners is optional GiveawayWinners.
OptID is optional ID.
OptInlineKeyboardMarkup is optional InlineKeyboardMarkup.
OptInlineQuery is optional InlineQuery.
OptInlineQueryChatType is optional InlineQueryChatType.
OptInlineQueryResultsButton is optional InlineQueryResultsButton.
OptInputMessageContent is optional InputMessageContent.
OptInt is optional int.
OptInt64 is optional int64.
OptInvoice is optional Invoice.
OptKeyboardButtonPollType is optional KeyboardButtonPollType.
OptKeyboardButtonRequestChat is optional KeyboardButtonRequestChat.
OptKeyboardButtonRequestUsers is optional KeyboardButtonRequestUsers.
OptLinkPreviewOptions is optional LinkPreviewOptions.
OptLocation is optional Location.
OptLoginUrl is optional LoginUrl.
OptMaskPosition is optional MaskPosition.
OptMaybeInaccessibleMessage is optional MaybeInaccessibleMessage.
OptMenuButton is optional MenuButton.
OptMessage is optional Message.
OptMessageAutoDeleteTimerChanged is optional MessageAutoDeleteTimerChanged.
OptMessageId is optional MessageId.
OptMessageOrigin is optional MessageOrigin.
OptMessageReactionCountUpdated is optional MessageReactionCountUpdated.
OptMessageReactionUpdated is optional MessageReactionUpdated.
OptOrderInfo is optional OrderInfo.
OptPassportData is optional PassportData.
OptPassportFile is optional PassportFile.
OptPhotoSize is optional PhotoSize.
OptPoll is optional Poll.
OptPollAnswer is optional PollAnswer.
OptPreCheckoutQuery is optional PreCheckoutQuery.
OptProximityAlertTriggered is optional ProximityAlertTriggered.
OptReplyParameters is optional ReplyParameters.
OptResponseParameters is optional ResponseParameters.
OptResultMessageOrBooleanResult is optional ResultMessageOrBooleanResult.
OptSendReplyMarkup is optional SendReplyMarkup.
OptSetChatMenuButton is optional SetChatMenuButton.
OptSetMyDefaultAdministratorRights is optional SetMyDefaultAdministratorRights.
OptSetMyDescription is optional SetMyDescription.
OptSetMyName is optional SetMyName.
OptSetMyShortDescription is optional SetMyShortDescription.
OptShippingAddress is optional ShippingAddress.
OptShippingQuery is optional ShippingQuery.
OptSticker is optional Sticker.
OptStickerSet is optional StickerSet.
OptStory is optional Story.
OptString is optional string.
OptSuccessfulPayment is optional SuccessfulPayment.
OptSwitchInlineQueryChosenChat is optional SwitchInlineQueryChosenChat.
OptTextQuote is optional TextQuote.
OptUser is optional User.
OptUserProfilePhotos is optional UserProfilePhotos.
OptUsersShared is optional UsersShared.
OptVenue is optional Venue.
OptVideo is optional Video.
OptVideoChatEnded is optional VideoChatEnded.
OptVideoChatParticipantsInvited is optional VideoChatParticipantsInvited.
OptVideoChatScheduled is optional VideoChatScheduled.
OptVideoChatStarted is optional VideoChatStarted.
OptVideoNote is optional VideoNote.
OptVoice is optional Voice.
OptWebAppData is optional WebAppData.
OptWebAppInfo is optional WebAppInfo.
OptWebhookInfo is optional WebhookInfo.
OptWriteAccessAllowed is optional WriteAccessAllowed.
This object represents information about an order.
Describes Telegram Passport data shared with the bot by the user.
This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user.
Represents an issue in one of the data fields that was provided by the user.
Represents an issue with a document scan.
Represents an issue with a list of scans.
Represents an issue with the front side of a document.
Represents an issue with the reverse side of a document.
Represents an issue with the selfie with a document.
Represents an issue with one of the files that constitute the translation of a document.
Represents an issue with the translated version of a document.
Represents an issue in an unspecified place.
This object represents a file uploaded to Telegram Passport.
This object represents one size of a photo or a [file](https://core.telegram.
Input for pinChatMessage.
This object contains information about a poll.
This object represents an answer of a user in a non-anonymous poll.
This object contains information about one answer option in a poll.
This object contains information about an incoming pre-checkout query.
Input for promoteChatMember.
This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.
Represents a reaction added to a message along with the number of times it was added.
This object describes the type of a reaction.
The reaction is based on a custom emoji.
The reaction is based on an emoji.
Input for refundStarPayment.
Input for reopenForumTopic.
Input for reopenGeneralForumTopic.
Input for replaceStickerInSet.
This object represents a [custom keyboard](https://core.telegram.org/bots/features#keyboards) with reply options (see [Introduction to bots](https://core.telegram.org/bots/features#keyboards) for details and examples).
Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard.
Describes reply parameters for the message that is being sent.
Describes why a request was unsuccessful.
Input for restrictChatMember.
Ref: #/components/schemas/Result.
Ref: #/components/schemas/ResultArrayOfBotCommand.
Ref: #/components/schemas/ResultArrayOfChatMember.
Ref: #/components/schemas/ResultArrayOfGameHighScore.
Ref: #/components/schemas/ResultArrayOfMessage.
Ref: #/components/schemas/ResultArrayOfMessageId.
Ref: #/components/schemas/ResultArrayOfSticker.
Ref: #/components/schemas/ResultArrayOfUpdate.
Ref: #/components/schemas/ResultChatInviteLink.
Ref: #/components/schemas/ResultChatMember.
Ref: #/components/schemas/ResultFile.
Ref: #/components/schemas/ResultInt.
Ref: #/components/schemas/ResultMessage.
Ref: #/components/schemas/ResultMessageId.
Ref: #/components/schemas/ResultMessageOrBoolean.
ResultMessageOrBooleanResult represents sum type.
Ref: #/components/schemas/ResultPoll.
Ref: #/components/schemas/ResultStickerSet.
Ref: #/components/schemas/ResultString.
Ref: #/components/schemas/ResultUser.
Ref: #/components/schemas/ResultUserProfilePhotos.
Ref: #/components/schemas/ResultWebhookInfo.
Input for revokeChatInviteLink.
Route is route object.
Input for sendAnimation.
Input for sendAudio.
Input for sendChatAction.
Input for sendContact.
Input for sendDice.
Input for sendDocument.
Input for sendGame.
Input for sendInvoice.
Input for sendLocation.
Input for sendMediaGroup.
SendMediaGroupMediaItem represents sum type.
Input for sendMessage.
Input for sendPhoto.
Input for sendPoll.
Ref: #/components/schemas/SendReplyMarkup SendReplyMarkup represents sum type.
Input for sendSticker.
Input for sendVenue.
Input for sendVideo.
Input for sendVideoNote.
Input for sendVoice.
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
Input for setChatAdministratorCustomTitle.
Input for setChatDescription.
Input for setChatMenuButton.
Input for setChatPermissions.
Input for setChatPhoto.
Input for setChatStickerSet.
Input for setChatTitle.
Input for setCustomEmojiStickerSetThumbnail.
Input for setGameScore.
Input for setMessageReaction.
Input for setMyCommands.
Input for setMyDefaultAdministratorRights.
Input for setMyDescription.
Input for setMyName.
Input for setMyShortDescription.
Input for setPassportDataErrors.
Input for setStickerEmojiList.
Input for setStickerKeywords.
Input for setStickerMaskPosition.
Input for setStickerPositionInSet.
Input for setStickerSetThumbnail.
Input for setStickerSetTitle.
Input for setWebhook.
This object contains information about a user that was shared with the bot using a [KeyboardButtonRequestUsers](https://core.telegram.org/bots/api#keyboardbuttonrequestusers) button.
This object represents a shipping address.
This object represents one shipping option.
This object contains information about an incoming shipping query.
This object represents a sticker.
This object represents a sticker set.
Input for stopMessageLiveLocation.
Input for stopPoll.
This object represents a story.
This object contains basic information about a successful payment.
This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query.
This object contains information about the quoted part of a message that is replied to by the given message.
Input for unbanChatMember.
Input for unbanChatSenderChat.
Input for unhideGeneralForumTopic.
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
Input for unpinAllChatMessages.
Input for unpinAllForumTopicMessages.
Input for unpinAllGeneralForumTopicMessages.
Input for unpinChatMessage.
This [object](https://core.telegram.org/bots/api#available-types) represents an incoming update.At most **one** of the optional parameters can be present in any given update.
Input for uploadStickerFile.
This object represents a Telegram user or bot.
This object represent a user's profile pictures.
This object contains information about the users whose identifiers were shared with the bot using a [KeyboardButtonRequestUsers](https://core.telegram.org/bots/api#keyboardbuttonrequestusers) button.
This object represents a venue.
This object represents a video file.
This object represents a service message about a video chat ended in the chat.
This object represents a service message about new members invited to a video chat.
This object represents a service message about a video chat scheduled in the chat.
This object represents a [video message](https://telegram.org/blog/video-messages-and-telescope) (available in Telegram apps as of [v.4.0](https://telegram.org/blog/video-messages-and-telescope)).
This object represents a voice note.
Describes data sent from a [Web App](https://core.telegram.org/bots/webapps) to the bot.
Describes a [Web App](https://core.telegram.org/bots/webapps).
Describes the current status of a webhook.
This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method [requestWriteAccess](https://core.telegram.
# Interfaces
ClientOption is client config option.
Handler handles operations described by OpenAPI v3 specification.
Invoker invokes operations described by OpenAPI v3 specification.
Option is config option.
ServerOption is server config option.
# Type aliases
BackgroundFillType is oneOf type of BackgroundFill.
BackgroundTypeType is oneOf type of BackgroundType.
BotCommandScopeType is oneOf type of BotCommandScope.
A placeholder, currently holds no information.
ChatBoostSourceType is oneOf type of ChatBoostSource.
ChatMemberType is oneOf type of ChatMember.
Type of the chat, can be either `private`, `group`, `supergroup` or `channel`.
Element type.
ErrorHandler is error handler.
This object represents a service message about a forum topic closed in the chat.
This object represents a service message about a forum topic reopened in the chat.
This object represents a service message about General forum topic hidden in the chat.
This object represents a service message about General forum topic unhidden in the chat.
This object represents a service message about the creation of a scheduled giveaway.
IDType is oneOf type of ID.
_Optional_.
InlineQueryResultType is oneOf type of InlineQueryResult.
InputMediaType is oneOf type of InputMedia.
InputMessageContentType is oneOf type of InputMessageContent.
KeyboardButtonType is oneOf type of KeyboardButton.
MaybeInaccessibleMessageType is oneOf type of MaybeInaccessibleMessage.
MenuButtonType is oneOf type of MenuButton.
Type of the entity.
MessageOriginType is oneOf type of MessageOrigin.
Middleware is middleware type.
The section of the user's Telegram Passport which has the error, one of `personal_details`, `passport`, `driver_license`, `identity_card`, `internal_passport`, `address`.
The section of the user's Telegram Passport which has the issue, one of `utility_bill`, `bank_statement`, `rental_agreement`, `passport_registration`, `temporary_registration`.
The section of the user's Telegram Passport which has the issue, one of `utility_bill`, `bank_statement`, `rental_agreement`, `passport_registration`, `temporary_registration`.
The section of the user's Telegram Passport which has the issue, one of `passport`, `driver_license`, `identity_card`, `internal_passport`.
The section of the user's Telegram Passport which has the issue, one of `driver_license`, `identity_card`.
The section of the user's Telegram Passport which has the issue, one of `passport`, `driver_license`, `identity_card`, `internal_passport`.
Type of element of the user's Telegram Passport which has the issue, one of `passport`, `driver_license`, `identity_card`, `internal_passport`, `utility_bill`, `bank_statement`, `rental_agreement`, `passport_registration`, `temporary_registration`.
Type of element of the user's Telegram Passport which has the issue, one of `passport`, `driver_license`, `identity_card`, `internal_passport`, `utility_bill`, `bank_statement`, `rental_agreement`, `passport_registration`, `temporary_registration`.
PassportElementErrorType is oneOf type of PassportElementError.
Poll type, currently can be `regular` or `quiz`.
ReactionTypeType is oneOf type of ReactionType.
ResultMessageOrBooleanResultType is oneOf type of ResultMessageOrBooleanResult.
SendMediaGroupMediaItemType is oneOf type of SendMediaGroupMediaItem.
SendReplyMarkupType is oneOf type of SendReplyMarkup.
Type of the sticker, currently one of `regular`, `mask`, `custom_emoji`.
This object represents a service message about a video chat started in the chat.