# api
```go
import "github.com/lukaszraczylo/go-telegram/api"
```
Package api contains the Telegram Bot API types and method wrappers. Most of the package is generated by cmd/genapi from internal/spec/api.json; this file holds the runtime types that are intentionally hand\-coded.
InputFile carries either a local upload \(Reader\+Filename\) or a reference to a previously\-uploaded file \(file\_id\) / URL Telegram can fetch. It is not a pure JSON type, so the codegen skips it \(see runtimeTypes in cmd/genapi/emitter.go\).
ResponseParameters mirrors client.ResponseParameters so callers importing only \`api\` can access retry\_after and migrate\_to\_chat\_id without pulling in the client package.
Package api contains the Telegram Bot API object types and method wrappers, generated from the live documentation by cmd/genapi.
## Index
- [func AddStickerToSet\(ctx context.Context, b \*client.Bot, p \*AddStickerToSetParams\) \(bool, error\)](<#AddStickerToSet>)
- [func AnswerCallbackQuery\(ctx context.Context, b \*client.Bot, p \*AnswerCallbackQueryParams\) \(bool, error\)](<#AnswerCallbackQuery>)
- [func AnswerInlineQuery\(ctx context.Context, b \*client.Bot, p \*AnswerInlineQueryParams\) \(bool, error\)](<#AnswerInlineQuery>)
- [func AnswerPreCheckoutQuery\(ctx context.Context, b \*client.Bot, p \*AnswerPreCheckoutQueryParams\) \(bool, error\)](<#AnswerPreCheckoutQuery>)
- [func AnswerShippingQuery\(ctx context.Context, b \*client.Bot, p \*AnswerShippingQueryParams\) \(bool, error\)](<#AnswerShippingQuery>)
- [func ApproveChatJoinRequest\(ctx context.Context, b \*client.Bot, p \*ApproveChatJoinRequestParams\) \(bool, error\)](<#ApproveChatJoinRequest>)
- [func ApproveSuggestedPost\(ctx context.Context, b \*client.Bot, p \*ApproveSuggestedPostParams\) \(bool, error\)](<#ApproveSuggestedPost>)
- [func BanChatMember\(ctx context.Context, b \*client.Bot, p \*BanChatMemberParams\) \(bool, error\)](<#BanChatMember>)
- [func BanChatSenderChat\(ctx context.Context, b \*client.Bot, p \*BanChatSenderChatParams\) \(bool, error\)](<#BanChatSenderChat>)
- [func Close\(ctx context.Context, b \*client.Bot, p \*CloseParams\) \(bool, error\)](<#Close>)
- [func CloseForumTopic\(ctx context.Context, b \*client.Bot, p \*CloseForumTopicParams\) \(bool, error\)](<#CloseForumTopic>)
- [func CloseGeneralForumTopic\(ctx context.Context, b \*client.Bot, p \*CloseGeneralForumTopicParams\) \(bool, error\)](<#CloseGeneralForumTopic>)
- [func ConvertGiftToStars\(ctx context.Context, b \*client.Bot, p \*ConvertGiftToStarsParams\) \(bool, error\)](<#ConvertGiftToStars>)
- [func CreateInvoiceLink\(ctx context.Context, b \*client.Bot, p \*CreateInvoiceLinkParams\) \(string, error\)](<#CreateInvoiceLink>)
- [func CreateNewStickerSet\(ctx context.Context, b \*client.Bot, p \*CreateNewStickerSetParams\) \(bool, error\)](<#CreateNewStickerSet>)
- [func DeclineChatJoinRequest\(ctx context.Context, b \*client.Bot, p \*DeclineChatJoinRequestParams\) \(bool, error\)](<#DeclineChatJoinRequest>)
- [func DeclineSuggestedPost\(ctx context.Context, b \*client.Bot, p \*DeclineSuggestedPostParams\) \(bool, error\)](<#DeclineSuggestedPost>)
- [func DeleteAllMessageReactions\(ctx context.Context, b \*client.Bot, p \*DeleteAllMessageReactionsParams\) \(bool, error\)](<#DeleteAllMessageReactions>)
- [func DeleteBusinessMessages\(ctx context.Context, b \*client.Bot, p \*DeleteBusinessMessagesParams\) \(bool, error\)](<#DeleteBusinessMessages>)
- [func DeleteChatPhoto\(ctx context.Context, b \*client.Bot, p \*DeleteChatPhotoParams\) \(bool, error\)](<#DeleteChatPhoto>)
- [func DeleteChatStickerSet\(ctx context.Context, b \*client.Bot, p \*DeleteChatStickerSetParams\) \(bool, error\)](<#DeleteChatStickerSet>)
- [func DeleteForumTopic\(ctx context.Context, b \*client.Bot, p \*DeleteForumTopicParams\) \(bool, error\)](<#DeleteForumTopic>)
- [func DeleteMessage\(ctx context.Context, b \*client.Bot, p \*DeleteMessageParams\) \(bool, error\)](<#DeleteMessage>)
- [func DeleteMessageReaction\(ctx context.Context, b \*client.Bot, p \*DeleteMessageReactionParams\) \(bool, error\)](<#DeleteMessageReaction>)
- [func DeleteMessages\(ctx context.Context, b \*client.Bot, p \*DeleteMessagesParams\) \(bool, error\)](<#DeleteMessages>)
- [func DeleteMyCommands\(ctx context.Context, b \*client.Bot, p \*DeleteMyCommandsParams\) \(bool, error\)](<#DeleteMyCommands>)
- [func DeleteStickerFromSet\(ctx context.Context, b \*client.Bot, p \*DeleteStickerFromSetParams\) \(bool, error\)](<#DeleteStickerFromSet>)
- [func DeleteStickerSet\(ctx context.Context, b \*client.Bot, p \*DeleteStickerSetParams\) \(bool, error\)](<#DeleteStickerSet>)
- [func DeleteStory\(ctx context.Context, b \*client.Bot, p \*DeleteStoryParams\) \(bool, error\)](<#DeleteStory>)
- [func DeleteWebhook\(ctx context.Context, b \*client.Bot, p \*DeleteWebhookParams\) \(bool, error\)](<#DeleteWebhook>)
- [func DownloadFileByPath\(ctx context.Context, b \*client.Bot, filePath string\) \(io.ReadCloser, error\)](<#DownloadFileByPath>)
- [func EditForumTopic\(ctx context.Context, b \*client.Bot, p \*EditForumTopicParams\) \(bool, error\)](<#EditForumTopic>)
- [func EditGeneralForumTopic\(ctx context.Context, b \*client.Bot, p \*EditGeneralForumTopicParams\) \(bool, error\)](<#EditGeneralForumTopic>)
- [func EditUserStarSubscription\(ctx context.Context, b \*client.Bot, p \*EditUserStarSubscriptionParams\) \(bool, error\)](<#EditUserStarSubscription>)
- [func ExportChatInviteLink\(ctx context.Context, b \*client.Bot, p \*ExportChatInviteLinkParams\) \(string, error\)](<#ExportChatInviteLink>)
- [func GetChatMemberCount\(ctx context.Context, b \*client.Bot, p \*GetChatMemberCountParams\) \(int64, error\)](<#GetChatMemberCount>)
- [func GetManagedBotToken\(ctx context.Context, b \*client.Bot, p \*GetManagedBotTokenParams\) \(string, error\)](<#GetManagedBotToken>)
- [func GiftPremiumSubscription\(ctx context.Context, b \*client.Bot, p \*GiftPremiumSubscriptionParams\) \(bool, error\)](<#GiftPremiumSubscription>)
- [func HideGeneralForumTopic\(ctx context.Context, b \*client.Bot, p \*HideGeneralForumTopicParams\) \(bool, error\)](<#HideGeneralForumTopic>)
- [func LeaveChat\(ctx context.Context, b \*client.Bot, p \*LeaveChatParams\) \(bool, error\)](<#LeaveChat>)
- [func LogOut\(ctx context.Context, b \*client.Bot, p \*LogOutParams\) \(bool, error\)](<#LogOut>)
- [func PinChatMessage\(ctx context.Context, b \*client.Bot, p \*PinChatMessageParams\) \(bool, error\)](<#PinChatMessage>)
- [func PromoteChatMember\(ctx context.Context, b \*client.Bot, p \*PromoteChatMemberParams\) \(bool, error\)](<#PromoteChatMember>)
- [func Ptr\[T any\]\(v T\) \*T](<#Ptr>)
- [func ReadBusinessMessage\(ctx context.Context, b \*client.Bot, p \*ReadBusinessMessageParams\) \(bool, error\)](<#ReadBusinessMessage>)
- [func RefundStarPayment\(ctx context.Context, b \*client.Bot, p \*RefundStarPaymentParams\) \(bool, error\)](<#RefundStarPayment>)
- [func RemoveBusinessAccountProfilePhoto\(ctx context.Context, b \*client.Bot, p \*RemoveBusinessAccountProfilePhotoParams\) \(bool, error\)](<#RemoveBusinessAccountProfilePhoto>)
- [func RemoveChatVerification\(ctx context.Context, b \*client.Bot, p \*RemoveChatVerificationParams\) \(bool, error\)](<#RemoveChatVerification>)
- [func RemoveMyProfilePhoto\(ctx context.Context, b \*client.Bot, p \*RemoveMyProfilePhotoParams\) \(bool, error\)](<#RemoveMyProfilePhoto>)
- [func RemoveUserVerification\(ctx context.Context, b \*client.Bot, p \*RemoveUserVerificationParams\) \(bool, error\)](<#RemoveUserVerification>)
- [func ReopenForumTopic\(ctx context.Context, b \*client.Bot, p \*ReopenForumTopicParams\) \(bool, error\)](<#ReopenForumTopic>)
- [func ReopenGeneralForumTopic\(ctx context.Context, b \*client.Bot, p \*ReopenGeneralForumTopicParams\) \(bool, error\)](<#ReopenGeneralForumTopic>)
- [func ReplaceManagedBotToken\(ctx context.Context, b \*client.Bot, p \*ReplaceManagedBotTokenParams\) \(string, error\)](<#ReplaceManagedBotToken>)
- [func ReplaceStickerInSet\(ctx context.Context, b \*client.Bot, p \*ReplaceStickerInSetParams\) \(bool, error\)](<#ReplaceStickerInSet>)
- [func RestrictChatMember\(ctx context.Context, b \*client.Bot, p \*RestrictChatMemberParams\) \(bool, error\)](<#RestrictChatMember>)
- [func SendChatAction\(ctx context.Context, b \*client.Bot, p \*SendChatActionParams\) \(bool, error\)](<#SendChatAction>)
- [func SendGift\(ctx context.Context, b \*client.Bot, p \*SendGiftParams\) \(bool, error\)](<#SendGift>)
- [func SendMessageDraft\(ctx context.Context, b \*client.Bot, p \*SendMessageDraftParams\) \(bool, error\)](<#SendMessageDraft>)
- [func SetBusinessAccountBio\(ctx context.Context, b \*client.Bot, p \*SetBusinessAccountBioParams\) \(bool, error\)](<#SetBusinessAccountBio>)
- [func SetBusinessAccountGiftSettings\(ctx context.Context, b \*client.Bot, p \*SetBusinessAccountGiftSettingsParams\) \(bool, error\)](<#SetBusinessAccountGiftSettings>)
- [func SetBusinessAccountName\(ctx context.Context, b \*client.Bot, p \*SetBusinessAccountNameParams\) \(bool, error\)](<#SetBusinessAccountName>)
- [func SetBusinessAccountProfilePhoto\(ctx context.Context, b \*client.Bot, p \*SetBusinessAccountProfilePhotoParams\) \(bool, error\)](<#SetBusinessAccountProfilePhoto>)
- [func SetBusinessAccountUsername\(ctx context.Context, b \*client.Bot, p \*SetBusinessAccountUsernameParams\) \(bool, error\)](<#SetBusinessAccountUsername>)
- [func SetChatAdministratorCustomTitle\(ctx context.Context, b \*client.Bot, p \*SetChatAdministratorCustomTitleParams\) \(bool, error\)](<#SetChatAdministratorCustomTitle>)
- [func SetChatDescription\(ctx context.Context, b \*client.Bot, p \*SetChatDescriptionParams\) \(bool, error\)](<#SetChatDescription>)
- [func SetChatMemberTag\(ctx context.Context, b \*client.Bot, p \*SetChatMemberTagParams\) \(bool, error\)](<#SetChatMemberTag>)
- [func SetChatMenuButton\(ctx context.Context, b \*client.Bot, p \*SetChatMenuButtonParams\) \(bool, error\)](<#SetChatMenuButton>)
- [func SetChatPermissions\(ctx context.Context, b \*client.Bot, p \*SetChatPermissionsParams\) \(bool, error\)](<#SetChatPermissions>)
- [func SetChatPhoto\(ctx context.Context, b \*client.Bot, p \*SetChatPhotoParams\) \(bool, error\)](<#SetChatPhoto>)
- [func SetChatStickerSet\(ctx context.Context, b \*client.Bot, p \*SetChatStickerSetParams\) \(bool, error\)](<#SetChatStickerSet>)
- [func SetChatTitle\(ctx context.Context, b \*client.Bot, p \*SetChatTitleParams\) \(bool, error\)](<#SetChatTitle>)
- [func SetCustomEmojiStickerSetThumbnail\(ctx context.Context, b \*client.Bot, p \*SetCustomEmojiStickerSetThumbnailParams\) \(bool, error\)](<#SetCustomEmojiStickerSetThumbnail>)
- [func SetManagedBotAccessSettings\(ctx context.Context, b \*client.Bot, p \*SetManagedBotAccessSettingsParams\) \(bool, error\)](<#SetManagedBotAccessSettings>)
- [func SetMessageReaction\(ctx context.Context, b \*client.Bot, p \*SetMessageReactionParams\) \(bool, error\)](<#SetMessageReaction>)
- [func SetMyCommands\(ctx context.Context, b \*client.Bot, p \*SetMyCommandsParams\) \(bool, error\)](<#SetMyCommands>)
- [func SetMyDefaultAdministratorRights\(ctx context.Context, b \*client.Bot, p \*SetMyDefaultAdministratorRightsParams\) \(bool, error\)](<#SetMyDefaultAdministratorRights>)
- [func SetMyDescription\(ctx context.Context, b \*client.Bot, p \*SetMyDescriptionParams\) \(bool, error\)](<#SetMyDescription>)
- [func SetMyName\(ctx context.Context, b \*client.Bot, p \*SetMyNameParams\) \(bool, error\)](<#SetMyName>)
- [func SetMyProfilePhoto\(ctx context.Context, b \*client.Bot, p \*SetMyProfilePhotoParams\) \(bool, error\)](<#SetMyProfilePhoto>)
- [func SetMyShortDescription\(ctx context.Context, b \*client.Bot, p \*SetMyShortDescriptionParams\) \(bool, error\)](<#SetMyShortDescription>)
- [func SetPassportDataErrors\(ctx context.Context, b \*client.Bot, p \*SetPassportDataErrorsParams\) \(bool, error\)](<#SetPassportDataErrors>)
- [func SetStickerEmojiList\(ctx context.Context, b \*client.Bot, p \*SetStickerEmojiListParams\) \(bool, error\)](<#SetStickerEmojiList>)
- [func SetStickerKeywords\(ctx context.Context, b \*client.Bot, p \*SetStickerKeywordsParams\) \(bool, error\)](<#SetStickerKeywords>)
- [func SetStickerMaskPosition\(ctx context.Context, b \*client.Bot, p \*SetStickerMaskPositionParams\) \(bool, error\)](<#SetStickerMaskPosition>)
- [func SetStickerPositionInSet\(ctx context.Context, b \*client.Bot, p \*SetStickerPositionInSetParams\) \(bool, error\)](<#SetStickerPositionInSet>)
- [func SetStickerSetThumbnail\(ctx context.Context, b \*client.Bot, p \*SetStickerSetThumbnailParams\) \(bool, error\)](<#SetStickerSetThumbnail>)
- [func SetStickerSetTitle\(ctx context.Context, b \*client.Bot, p \*SetStickerSetTitleParams\) \(bool, error\)](<#SetStickerSetTitle>)
- [func SetUserEmojiStatus\(ctx context.Context, b \*client.Bot, p \*SetUserEmojiStatusParams\) \(bool, error\)](<#SetUserEmojiStatus>)
- [func SetWebhook\(ctx context.Context, b \*client.Bot, p \*SetWebhookParams\) \(bool, error\)](<#SetWebhook>)
- [func TransferBusinessAccountStars\(ctx context.Context, b \*client.Bot, p \*TransferBusinessAccountStarsParams\) \(bool, error\)](<#TransferBusinessAccountStars>)
- [func TransferGift\(ctx context.Context, b \*client.Bot, p \*TransferGiftParams\) \(bool, error\)](<#TransferGift>)
- [func UnbanChatMember\(ctx context.Context, b \*client.Bot, p \*UnbanChatMemberParams\) \(bool, error\)](<#UnbanChatMember>)
- [func UnbanChatSenderChat\(ctx context.Context, b \*client.Bot, p \*UnbanChatSenderChatParams\) \(bool, error\)](<#UnbanChatSenderChat>)
- [func UnhideGeneralForumTopic\(ctx context.Context, b \*client.Bot, p \*UnhideGeneralForumTopicParams\) \(bool, error\)](<#UnhideGeneralForumTopic>)
- [func UnpinAllChatMessages\(ctx context.Context, b \*client.Bot, p \*UnpinAllChatMessagesParams\) \(bool, error\)](<#UnpinAllChatMessages>)
- [func UnpinAllForumTopicMessages\(ctx context.Context, b \*client.Bot, p \*UnpinAllForumTopicMessagesParams\) \(bool, error\)](<#UnpinAllForumTopicMessages>)
- [func UnpinAllGeneralForumTopicMessages\(ctx context.Context, b \*client.Bot, p \*UnpinAllGeneralForumTopicMessagesParams\) \(bool, error\)](<#UnpinAllGeneralForumTopicMessages>)
- [func UnpinChatMessage\(ctx context.Context, b \*client.Bot, p \*UnpinChatMessageParams\) \(bool, error\)](<#UnpinChatMessage>)
- [func UpgradeGift\(ctx context.Context, b \*client.Bot, p \*UpgradeGiftParams\) \(bool, error\)](<#UpgradeGift>)
- [func VerifyChat\(ctx context.Context, b \*client.Bot, p \*VerifyChatParams\) \(bool, error\)](<#VerifyChat>)
- [func VerifyUser\(ctx context.Context, b \*client.Bot, p \*VerifyUserParams\) \(bool, error\)](<#VerifyUser>)
- [type AcceptedGiftTypes](<#AcceptedGiftTypes>)
- [type AddStickerToSetParams](<#AddStickerToSetParams>)
- [type AffiliateInfo](<#AffiliateInfo>)
- [type Animation](<#Animation>)
- [type AnswerCallbackQueryParams](<#AnswerCallbackQueryParams>)
- [type AnswerGuestQueryParams](<#AnswerGuestQueryParams>)
- [type AnswerInlineQueryParams](<#AnswerInlineQueryParams>)
- [type AnswerPreCheckoutQueryParams](<#AnswerPreCheckoutQueryParams>)
- [type AnswerShippingQueryParams](<#AnswerShippingQueryParams>)
- [type AnswerWebAppQueryParams](<#AnswerWebAppQueryParams>)
- [type ApproveChatJoinRequestParams](<#ApproveChatJoinRequestParams>)
- [type ApproveSuggestedPostParams](<#ApproveSuggestedPostParams>)
- [type Audio](<#Audio>)
- [type BackgroundFill](<#BackgroundFill>)
- [func UnmarshalBackgroundFill\(data \[\]byte\) \(BackgroundFill, error\)](<#UnmarshalBackgroundFill>)
- [type BackgroundFillFreeformGradient](<#BackgroundFillFreeformGradient>)
- [func \(v \*BackgroundFillFreeformGradient\) MarshalJSON\(\) \(\[\]byte, error\)](<#BackgroundFillFreeformGradient.MarshalJSON>)
- [type BackgroundFillGradient](<#BackgroundFillGradient>)
- [func \(v \*BackgroundFillGradient\) MarshalJSON\(\) \(\[\]byte, error\)](<#BackgroundFillGradient.MarshalJSON>)
- [type BackgroundFillSolid](<#BackgroundFillSolid>)
- [func \(v \*BackgroundFillSolid\) MarshalJSON\(\) \(\[\]byte, error\)](<#BackgroundFillSolid.MarshalJSON>)
- [type BackgroundFillType](<#BackgroundFillType>)
- [type BackgroundType](<#BackgroundType>)
- [func UnmarshalBackgroundType\(data \[\]byte\) \(BackgroundType, error\)](<#UnmarshalBackgroundType>)
- [type BackgroundTypeChatTheme](<#BackgroundTypeChatTheme>)
- [func \(v \*BackgroundTypeChatTheme\) MarshalJSON\(\) \(\[\]byte, error\)](<#BackgroundTypeChatTheme.MarshalJSON>)
- [type BackgroundTypeFill](<#BackgroundTypeFill>)
- [func \(v \*BackgroundTypeFill\) MarshalJSON\(\) \(\[\]byte, error\)](<#BackgroundTypeFill.MarshalJSON>)
- [func \(m \*BackgroundTypeFill\) UnmarshalJSON\(data \[\]byte\) error](<#BackgroundTypeFill.UnmarshalJSON>)
- [type BackgroundTypeKind](<#BackgroundTypeKind>)
- [type BackgroundTypePattern](<#BackgroundTypePattern>)
- [func \(v \*BackgroundTypePattern\) MarshalJSON\(\) \(\[\]byte, error\)](<#BackgroundTypePattern.MarshalJSON>)
- [func \(m \*BackgroundTypePattern\) UnmarshalJSON\(data \[\]byte\) error](<#BackgroundTypePattern.UnmarshalJSON>)
- [type BackgroundTypeWallpaper](<#BackgroundTypeWallpaper>)
- [func \(v \*BackgroundTypeWallpaper\) MarshalJSON\(\) \(\[\]byte, error\)](<#BackgroundTypeWallpaper.MarshalJSON>)
- [type BanChatMemberParams](<#BanChatMemberParams>)
- [type BanChatSenderChatParams](<#BanChatSenderChatParams>)
- [type Birthdate](<#Birthdate>)
- [type BotAccessSettings](<#BotAccessSettings>)
- [func GetManagedBotAccessSettings\(ctx context.Context, b \*client.Bot, p \*GetManagedBotAccessSettingsParams\) \(\*BotAccessSettings, error\)](<#GetManagedBotAccessSettings>)
- [type BotCommand](<#BotCommand>)
- [func GetMyCommands\(ctx context.Context, b \*client.Bot, p \*GetMyCommandsParams\) \(\[\]BotCommand, error\)](<#GetMyCommands>)
- [type BotCommandScope](<#BotCommandScope>)
- [type BotCommandScopeAllChatAdministrators](<#BotCommandScopeAllChatAdministrators>)
- [func \(v \*BotCommandScopeAllChatAdministrators\) MarshalJSON\(\) \(\[\]byte, error\)](<#BotCommandScopeAllChatAdministrators.MarshalJSON>)
- [type BotCommandScopeAllGroupChats](<#BotCommandScopeAllGroupChats>)
- [func \(v \*BotCommandScopeAllGroupChats\) MarshalJSON\(\) \(\[\]byte, error\)](<#BotCommandScopeAllGroupChats.MarshalJSON>)
- [type BotCommandScopeAllPrivateChats](<#BotCommandScopeAllPrivateChats>)
- [func \(v \*BotCommandScopeAllPrivateChats\) MarshalJSON\(\) \(\[\]byte, error\)](<#BotCommandScopeAllPrivateChats.MarshalJSON>)
- [type BotCommandScopeChat](<#BotCommandScopeChat>)
- [func \(v \*BotCommandScopeChat\) MarshalJSON\(\) \(\[\]byte, error\)](<#BotCommandScopeChat.MarshalJSON>)
- [type BotCommandScopeChatAdministrators](<#BotCommandScopeChatAdministrators>)
- [func \(v \*BotCommandScopeChatAdministrators\) MarshalJSON\(\) \(\[\]byte, error\)](<#BotCommandScopeChatAdministrators.MarshalJSON>)
- [type BotCommandScopeChatMember](<#BotCommandScopeChatMember>)
- [func \(v \*BotCommandScopeChatMember\) MarshalJSON\(\) \(\[\]byte, error\)](<#BotCommandScopeChatMember.MarshalJSON>)
- [type BotCommandScopeDefault](<#BotCommandScopeDefault>)
- [func \(v \*BotCommandScopeDefault\) MarshalJSON\(\) \(\[\]byte, error\)](<#BotCommandScopeDefault.MarshalJSON>)
- [type BotCommandScopeType](<#BotCommandScopeType>)
- [type BotDescription](<#BotDescription>)
- [func GetMyDescription\(ctx context.Context, b \*client.Bot, p \*GetMyDescriptionParams\) \(\*BotDescription, error\)](<#GetMyDescription>)
- [type BotName](<#BotName>)
- [func GetMyName\(ctx context.Context, b \*client.Bot, p \*GetMyNameParams\) \(\*BotName, error\)](<#GetMyName>)
- [type BotShortDescription](<#BotShortDescription>)
- [func GetMyShortDescription\(ctx context.Context, b \*client.Bot, p \*GetMyShortDescriptionParams\) \(\*BotShortDescription, error\)](<#GetMyShortDescription>)
- [type BusinessBotRights](<#BusinessBotRights>)
- [type BusinessConnection](<#BusinessConnection>)
- [func GetBusinessConnection\(ctx context.Context, b \*client.Bot, p \*GetBusinessConnectionParams\) \(\*BusinessConnection, error\)](<#GetBusinessConnection>)
- [type BusinessIntro](<#BusinessIntro>)
- [type BusinessLocation](<#BusinessLocation>)
- [type BusinessMessagesDeleted](<#BusinessMessagesDeleted>)
- [type BusinessOpeningHours](<#BusinessOpeningHours>)
- [type BusinessOpeningHoursInterval](<#BusinessOpeningHoursInterval>)
- [type CallbackGame](<#CallbackGame>)
- [type CallbackQuery](<#CallbackQuery>)
- [func \(m \*CallbackQuery\) UnmarshalJSON\(data \[\]byte\) error](<#CallbackQuery.UnmarshalJSON>)
- [type Chat](<#Chat>)
- [type ChatAdministratorRights](<#ChatAdministratorRights>)
- [func GetMyDefaultAdministratorRights\(ctx context.Context, b \*client.Bot, p \*GetMyDefaultAdministratorRightsParams\) \(\*ChatAdministratorRights, error\)](<#GetMyDefaultAdministratorRights>)
- [type ChatBackground](<#ChatBackground>)
- [func \(m \*ChatBackground\) UnmarshalJSON\(data \[\]byte\) error](<#ChatBackground.UnmarshalJSON>)
- [type ChatBoost](<#ChatBoost>)
- [func \(m \*ChatBoost\) UnmarshalJSON\(data \[\]byte\) error](<#ChatBoost.UnmarshalJSON>)
- [type ChatBoostAdded](<#ChatBoostAdded>)
- [type ChatBoostRemoved](<#ChatBoostRemoved>)
- [func \(m \*ChatBoostRemoved\) UnmarshalJSON\(data \[\]byte\) error](<#ChatBoostRemoved.UnmarshalJSON>)
- [type ChatBoostSource](<#ChatBoostSource>)
- [func UnmarshalChatBoostSource\(data \[\]byte\) \(ChatBoostSource, error\)](<#UnmarshalChatBoostSource>)
- [type ChatBoostSourceGiftCode](<#ChatBoostSourceGiftCode>)
- [func \(v \*ChatBoostSourceGiftCode\) MarshalJSON\(\) \(\[\]byte, error\)](<#ChatBoostSourceGiftCode.MarshalJSON>)
- [type ChatBoostSourceGiveaway](<#ChatBoostSourceGiveaway>)
- [func \(v \*ChatBoostSourceGiveaway\) MarshalJSON\(\) \(\[\]byte, error\)](<#ChatBoostSourceGiveaway.MarshalJSON>)
- [type ChatBoostSourceKind](<#ChatBoostSourceKind>)
- [type ChatBoostSourcePremium](<#ChatBoostSourcePremium>)
- [func \(v \*ChatBoostSourcePremium\) MarshalJSON\(\) \(\[\]byte, error\)](<#ChatBoostSourcePremium.MarshalJSON>)
- [type ChatBoostUpdated](<#ChatBoostUpdated>)
- [type ChatFullInfo](<#ChatFullInfo>)
- [func GetChat\(ctx context.Context, b \*client.Bot, p \*GetChatParams\) \(\*ChatFullInfo, error\)](<#GetChat>)
- [func \(m \*ChatFullInfo\) UnmarshalJSON\(data \[\]byte\) error](<#ChatFullInfo.UnmarshalJSON>)
- [type ChatID](<#ChatID>)
- [func ChatIDFromInt\(id int64\) ChatID](<#ChatIDFromInt>)
- [func ChatIDFromUsername\(name string\) ChatID](<#ChatIDFromUsername>)
- [func \(c ChatID\) IsZero\(\) bool](<#ChatID.IsZero>)
- [func \(c ChatID\) MarshalJSON\(\) \(\[\]byte, error\)](<#ChatID.MarshalJSON>)
- [func \(c ChatID\) String\(\) string](<#ChatID.String>)
- [func \(c \*ChatID\) UnmarshalJSON\(data \[\]byte\) error](<#ChatID.UnmarshalJSON>)
- [type ChatInviteLink](<#ChatInviteLink>)
- [func CreateChatInviteLink\(ctx context.Context, b \*client.Bot, p \*CreateChatInviteLinkParams\) \(\*ChatInviteLink, error\)](<#CreateChatInviteLink>)
- [func CreateChatSubscriptionInviteLink\(ctx context.Context, b \*client.Bot, p \*CreateChatSubscriptionInviteLinkParams\) \(\*ChatInviteLink, error\)](<#CreateChatSubscriptionInviteLink>)
- [func EditChatInviteLink\(ctx context.Context, b \*client.Bot, p \*EditChatInviteLinkParams\) \(\*ChatInviteLink, error\)](<#EditChatInviteLink>)
- [func EditChatSubscriptionInviteLink\(ctx context.Context, b \*client.Bot, p \*EditChatSubscriptionInviteLinkParams\) \(\*ChatInviteLink, error\)](<#EditChatSubscriptionInviteLink>)
- [func RevokeChatInviteLink\(ctx context.Context, b \*client.Bot, p \*RevokeChatInviteLinkParams\) \(\*ChatInviteLink, error\)](<#RevokeChatInviteLink>)
- [type ChatJoinRequest](<#ChatJoinRequest>)
- [type ChatLocation](<#ChatLocation>)
- [type ChatMember](<#ChatMember>)
- [func GetChatAdministrators\(ctx context.Context, b \*client.Bot, p \*GetChatAdministratorsParams\) \(\[\]ChatMember, error\)](<#GetChatAdministrators>)
- [func GetChatMember\(ctx context.Context, b \*client.Bot, p \*GetChatMemberParams\) \(ChatMember, error\)](<#GetChatMember>)
- [func UnmarshalChatMember\(data \[\]byte\) \(ChatMember, error\)](<#UnmarshalChatMember>)
- [type ChatMemberAdministrator](<#ChatMemberAdministrator>)
- [func \(v \*ChatMemberAdministrator\) MarshalJSON\(\) \(\[\]byte, error\)](<#ChatMemberAdministrator.MarshalJSON>)
- [type ChatMemberBanned](<#ChatMemberBanned>)
- [func \(v \*ChatMemberBanned\) MarshalJSON\(\) \(\[\]byte, error\)](<#ChatMemberBanned.MarshalJSON>)
- [type ChatMemberLeft](<#ChatMemberLeft>)
- [func \(v \*ChatMemberLeft\) MarshalJSON\(\) \(\[\]byte, error\)](<#ChatMemberLeft.MarshalJSON>)
- [type ChatMemberMember](<#ChatMemberMember>)
- [func \(v \*ChatMemberMember\) MarshalJSON\(\) \(\[\]byte, error\)](<#ChatMemberMember.MarshalJSON>)
- [type ChatMemberOwner](<#ChatMemberOwner>)
- [func \(v \*ChatMemberOwner\) MarshalJSON\(\) \(\[\]byte, error\)](<#ChatMemberOwner.MarshalJSON>)
- [type ChatMemberRestricted](<#ChatMemberRestricted>)
- [func \(v \*ChatMemberRestricted\) MarshalJSON\(\) \(\[\]byte, error\)](<#ChatMemberRestricted.MarshalJSON>)
- [type ChatMemberStatus](<#ChatMemberStatus>)
- [type ChatMemberUpdated](<#ChatMemberUpdated>)
- [func \(m \*ChatMemberUpdated\) UnmarshalJSON\(data \[\]byte\) error](<#ChatMemberUpdated.UnmarshalJSON>)
- [type ChatOwnerChanged](<#ChatOwnerChanged>)
- [type ChatOwnerLeft](<#ChatOwnerLeft>)
- [type ChatPermissions](<#ChatPermissions>)
- [type ChatPhoto](<#ChatPhoto>)
- [type ChatShared](<#ChatShared>)
- [type ChatType](<#ChatType>)
- [type Checklist](<#Checklist>)
- [type ChecklistTask](<#ChecklistTask>)
- [type ChecklistTasksAdded](<#ChecklistTasksAdded>)
- [type ChecklistTasksDone](<#ChecklistTasksDone>)
- [type ChosenInlineResult](<#ChosenInlineResult>)
- [type CloseForumTopicParams](<#CloseForumTopicParams>)
- [type CloseGeneralForumTopicParams](<#CloseGeneralForumTopicParams>)
- [type CloseParams](<#CloseParams>)
- [type Contact](<#Contact>)
- [type ConvertGiftToStarsParams](<#ConvertGiftToStarsParams>)
- [type CopyMessageParams](<#CopyMessageParams>)
- [type CopyMessagesParams](<#CopyMessagesParams>)
- [type CopyTextButton](<#CopyTextButton>)
- [type CreateChatInviteLinkParams](<#CreateChatInviteLinkParams>)
- [type CreateChatSubscriptionInviteLinkParams](<#CreateChatSubscriptionInviteLinkParams>)
- [type CreateForumTopicParams](<#CreateForumTopicParams>)
- [type CreateInvoiceLinkParams](<#CreateInvoiceLinkParams>)
- [type CreateNewStickerSetParams](<#CreateNewStickerSetParams>)
- [type DeclineChatJoinRequestParams](<#DeclineChatJoinRequestParams>)
- [type DeclineSuggestedPostParams](<#DeclineSuggestedPostParams>)
- [type DeleteAllMessageReactionsParams](<#DeleteAllMessageReactionsParams>)
- [type DeleteBusinessMessagesParams](<#DeleteBusinessMessagesParams>)
- [type DeleteChatPhotoParams](<#DeleteChatPhotoParams>)
- [type DeleteChatStickerSetParams](<#DeleteChatStickerSetParams>)
- [type DeleteForumTopicParams](<#DeleteForumTopicParams>)
- [type DeleteMessageParams](<#DeleteMessageParams>)
- [type DeleteMessageReactionParams](<#DeleteMessageReactionParams>)
- [type DeleteMessagesParams](<#DeleteMessagesParams>)
- [type DeleteMyCommandsParams](<#DeleteMyCommandsParams>)
- [type DeleteStickerFromSetParams](<#DeleteStickerFromSetParams>)
- [type DeleteStickerSetParams](<#DeleteStickerSetParams>)
- [type DeleteStoryParams](<#DeleteStoryParams>)
- [type DeleteWebhookParams](<#DeleteWebhookParams>)
- [type Dice](<#Dice>)
- [type DirectMessagePriceChanged](<#DirectMessagePriceChanged>)
- [type DirectMessagesTopic](<#DirectMessagesTopic>)
- [type Document](<#Document>)
- [type EditChatInviteLinkParams](<#EditChatInviteLinkParams>)
- [type EditChatSubscriptionInviteLinkParams](<#EditChatSubscriptionInviteLinkParams>)
- [type EditForumTopicParams](<#EditForumTopicParams>)
- [type EditGeneralForumTopicParams](<#EditGeneralForumTopicParams>)
- [type EditMessageCaptionParams](<#EditMessageCaptionParams>)
- [type EditMessageChecklistParams](<#EditMessageChecklistParams>)
- [type EditMessageLiveLocationParams](<#EditMessageLiveLocationParams>)
- [type EditMessageMediaParams](<#EditMessageMediaParams>)
- [func \(p \*EditMessageMediaParams\) HasFile\(\) bool](<#EditMessageMediaParams.HasFile>)
- [func \(p \*EditMessageMediaParams\) MultipartFields\(\) map\[string\]string](<#EditMessageMediaParams.MultipartFields>)
- [func \(p \*EditMessageMediaParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#EditMessageMediaParams.MultipartFiles>)
- [type EditMessageReplyMarkupParams](<#EditMessageReplyMarkupParams>)
- [type EditMessageTextParams](<#EditMessageTextParams>)
- [type EditStoryParams](<#EditStoryParams>)
- [type EditUserStarSubscriptionParams](<#EditUserStarSubscriptionParams>)
- [type EncryptedCredentials](<#EncryptedCredentials>)
- [type EncryptedPassportElement](<#EncryptedPassportElement>)
- [type EncryptedPassportElementType](<#EncryptedPassportElementType>)
- [type ExportChatInviteLinkParams](<#ExportChatInviteLinkParams>)
- [type ExternalReplyInfo](<#ExternalReplyInfo>)
- [func \(m \*ExternalReplyInfo\) UnmarshalJSON\(data \[\]byte\) error](<#ExternalReplyInfo.UnmarshalJSON>)
- [type File](<#File>)
- [func DownloadFile\(ctx context.Context, b \*client.Bot, fileID string\) \(io.ReadCloser, \*File, error\)](<#DownloadFile>)
- [func GetFile\(ctx context.Context, b \*client.Bot, p \*GetFileParams\) \(\*File, error\)](<#GetFile>)
- [func UploadStickerFile\(ctx context.Context, b \*client.Bot, p \*UploadStickerFileParams\) \(\*File, error\)](<#UploadStickerFile>)
- [type ForceReply](<#ForceReply>)
- [type ForumTopic](<#ForumTopic>)
- [func CreateForumTopic\(ctx context.Context, b \*client.Bot, p \*CreateForumTopicParams\) \(\*ForumTopic, error\)](<#CreateForumTopic>)
- [type ForumTopicClosed](<#ForumTopicClosed>)
- [type ForumTopicCreated](<#ForumTopicCreated>)
- [type ForumTopicEdited](<#ForumTopicEdited>)
- [type ForumTopicReopened](<#ForumTopicReopened>)
- [type ForwardMessageParams](<#ForwardMessageParams>)
- [type ForwardMessagesParams](<#ForwardMessagesParams>)
- [type Game](<#Game>)
- [type GameHighScore](<#GameHighScore>)
- [func GetGameHighScores\(ctx context.Context, b \*client.Bot, p \*GetGameHighScoresParams\) \(\[\]GameHighScore, error\)](<#GetGameHighScores>)
- [type GeneralForumTopicHidden](<#GeneralForumTopicHidden>)
- [type GeneralForumTopicUnhidden](<#GeneralForumTopicUnhidden>)
- [type GetAvailableGiftsParams](<#GetAvailableGiftsParams>)
- [type GetBusinessAccountGiftsParams](<#GetBusinessAccountGiftsParams>)
- [type GetBusinessAccountStarBalanceParams](<#GetBusinessAccountStarBalanceParams>)
- [type GetBusinessConnectionParams](<#GetBusinessConnectionParams>)
- [type GetChatAdministratorsParams](<#GetChatAdministratorsParams>)
- [type GetChatGiftsParams](<#GetChatGiftsParams>)
- [type GetChatMemberCountParams](<#GetChatMemberCountParams>)
- [type GetChatMemberParams](<#GetChatMemberParams>)
- [type GetChatMenuButtonParams](<#GetChatMenuButtonParams>)
- [type GetChatParams](<#GetChatParams>)
- [type GetCustomEmojiStickersParams](<#GetCustomEmojiStickersParams>)
- [type GetFileParams](<#GetFileParams>)
- [type GetForumTopicIconStickersParams](<#GetForumTopicIconStickersParams>)
- [type GetGameHighScoresParams](<#GetGameHighScoresParams>)
- [type GetManagedBotAccessSettingsParams](<#GetManagedBotAccessSettingsParams>)
- [type GetManagedBotTokenParams](<#GetManagedBotTokenParams>)
- [type GetMeParams](<#GetMeParams>)
- [type GetMyCommandsParams](<#GetMyCommandsParams>)
- [type GetMyDefaultAdministratorRightsParams](<#GetMyDefaultAdministratorRightsParams>)
- [type GetMyDescriptionParams](<#GetMyDescriptionParams>)
- [type GetMyNameParams](<#GetMyNameParams>)
- [type GetMyShortDescriptionParams](<#GetMyShortDescriptionParams>)
- [type GetMyStarBalanceParams](<#GetMyStarBalanceParams>)
- [type GetStarTransactionsParams](<#GetStarTransactionsParams>)
- [type GetStickerSetParams](<#GetStickerSetParams>)
- [type GetUpdatesParams](<#GetUpdatesParams>)
- [type GetUserChatBoostsParams](<#GetUserChatBoostsParams>)
- [type GetUserGiftsParams](<#GetUserGiftsParams>)
- [type GetUserPersonalChatMessagesParams](<#GetUserPersonalChatMessagesParams>)
- [type GetUserProfileAudiosParams](<#GetUserProfileAudiosParams>)
- [type GetUserProfilePhotosParams](<#GetUserProfilePhotosParams>)
- [type GetWebhookInfoParams](<#GetWebhookInfoParams>)
- [type Gift](<#Gift>)
- [type GiftBackground](<#GiftBackground>)
- [type GiftInfo](<#GiftInfo>)
- [type GiftPremiumSubscriptionParams](<#GiftPremiumSubscriptionParams>)
- [type Gifts](<#Gifts>)
- [func GetAvailableGifts\(ctx context.Context, b \*client.Bot, p \*GetAvailableGiftsParams\) \(\*Gifts, error\)](<#GetAvailableGifts>)
- [type Giveaway](<#Giveaway>)
- [type GiveawayCompleted](<#GiveawayCompleted>)
- [type GiveawayCreated](<#GiveawayCreated>)
- [type GiveawayWinners](<#GiveawayWinners>)
- [type HideGeneralForumTopicParams](<#HideGeneralForumTopicParams>)
- [type InaccessibleMessage](<#InaccessibleMessage>)
- [type InlineKeyboardButton](<#InlineKeyboardButton>)
- [type InlineKeyboardMarkup](<#InlineKeyboardMarkup>)
- [type InlineQuery](<#InlineQuery>)
- [type InlineQueryChatType](<#InlineQueryChatType>)
- [type InlineQueryResult](<#InlineQueryResult>)
- [type InlineQueryResultArticle](<#InlineQueryResultArticle>)
- [func \(v \*InlineQueryResultArticle\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultArticle.MarshalJSON>)
- [type InlineQueryResultAudio](<#InlineQueryResultAudio>)
- [func \(v \*InlineQueryResultAudio\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultAudio.MarshalJSON>)
- [type InlineQueryResultCachedAudio](<#InlineQueryResultCachedAudio>)
- [func \(v \*InlineQueryResultCachedAudio\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultCachedAudio.MarshalJSON>)
- [type InlineQueryResultCachedDocument](<#InlineQueryResultCachedDocument>)
- [func \(v \*InlineQueryResultCachedDocument\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultCachedDocument.MarshalJSON>)
- [type InlineQueryResultCachedGif](<#InlineQueryResultCachedGif>)
- [func \(v \*InlineQueryResultCachedGif\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultCachedGif.MarshalJSON>)
- [type InlineQueryResultCachedMpeg4Gif](<#InlineQueryResultCachedMpeg4Gif>)
- [func \(v \*InlineQueryResultCachedMpeg4Gif\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultCachedMpeg4Gif.MarshalJSON>)
- [type InlineQueryResultCachedPhoto](<#InlineQueryResultCachedPhoto>)
- [func \(v \*InlineQueryResultCachedPhoto\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultCachedPhoto.MarshalJSON>)
- [type InlineQueryResultCachedSticker](<#InlineQueryResultCachedSticker>)
- [func \(v \*InlineQueryResultCachedSticker\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultCachedSticker.MarshalJSON>)
- [type InlineQueryResultCachedVideo](<#InlineQueryResultCachedVideo>)
- [func \(v \*InlineQueryResultCachedVideo\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultCachedVideo.MarshalJSON>)
- [type InlineQueryResultCachedVoice](<#InlineQueryResultCachedVoice>)
- [func \(v \*InlineQueryResultCachedVoice\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultCachedVoice.MarshalJSON>)
- [type InlineQueryResultContact](<#InlineQueryResultContact>)
- [func \(v \*InlineQueryResultContact\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultContact.MarshalJSON>)
- [type InlineQueryResultDocument](<#InlineQueryResultDocument>)
- [func \(v \*InlineQueryResultDocument\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultDocument.MarshalJSON>)
- [type InlineQueryResultDocumentMimeType](<#InlineQueryResultDocumentMimeType>)
- [type InlineQueryResultGame](<#InlineQueryResultGame>)
- [func \(v \*InlineQueryResultGame\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultGame.MarshalJSON>)
- [type InlineQueryResultGif](<#InlineQueryResultGif>)
- [func \(v \*InlineQueryResultGif\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultGif.MarshalJSON>)
- [type InlineQueryResultGifThumbnailMimeType](<#InlineQueryResultGifThumbnailMimeType>)
- [type InlineQueryResultLocation](<#InlineQueryResultLocation>)
- [func \(v \*InlineQueryResultLocation\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultLocation.MarshalJSON>)
- [type InlineQueryResultMpeg4Gif](<#InlineQueryResultMpeg4Gif>)
- [func \(v \*InlineQueryResultMpeg4Gif\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultMpeg4Gif.MarshalJSON>)
- [type InlineQueryResultPhoto](<#InlineQueryResultPhoto>)
- [func \(v \*InlineQueryResultPhoto\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultPhoto.MarshalJSON>)
- [type InlineQueryResultType](<#InlineQueryResultType>)
- [type InlineQueryResultVenue](<#InlineQueryResultVenue>)
- [func \(v \*InlineQueryResultVenue\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultVenue.MarshalJSON>)
- [type InlineQueryResultVideo](<#InlineQueryResultVideo>)
- [func \(v \*InlineQueryResultVideo\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultVideo.MarshalJSON>)
- [type InlineQueryResultVoice](<#InlineQueryResultVoice>)
- [func \(v \*InlineQueryResultVoice\) MarshalJSON\(\) \(\[\]byte, error\)](<#InlineQueryResultVoice.MarshalJSON>)
- [type InlineQueryResultsButton](<#InlineQueryResultsButton>)
- [type InputChecklist](<#InputChecklist>)
- [type InputChecklistTask](<#InputChecklistTask>)
- [type InputContactMessageContent](<#InputContactMessageContent>)
- [type InputFile](<#InputFile>)
- [func \(f \*InputFile\) IsLocalUpload\(\) bool](<#InputFile.IsLocalUpload>)
- [type InputInvoiceMessageContent](<#InputInvoiceMessageContent>)
- [type InputLocationMessageContent](<#InputLocationMessageContent>)
- [type InputMedia](<#InputMedia>)
- [type InputMediaAnimation](<#InputMediaAnimation>)
- [func \(v \*InputMediaAnimation\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputMediaAnimation.MarshalJSON>)
- [type InputMediaAudio](<#InputMediaAudio>)
- [func \(v \*InputMediaAudio\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputMediaAudio.MarshalJSON>)
- [type InputMediaDocument](<#InputMediaDocument>)
- [func \(v \*InputMediaDocument\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputMediaDocument.MarshalJSON>)
- [type InputMediaLivePhoto](<#InputMediaLivePhoto>)
- [func \(v \*InputMediaLivePhoto\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputMediaLivePhoto.MarshalJSON>)
- [type InputMediaLocation](<#InputMediaLocation>)
- [func \(v \*InputMediaLocation\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputMediaLocation.MarshalJSON>)
- [type InputMediaPhoto](<#InputMediaPhoto>)
- [func \(v \*InputMediaPhoto\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputMediaPhoto.MarshalJSON>)
- [type InputMediaSticker](<#InputMediaSticker>)
- [func \(v \*InputMediaSticker\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputMediaSticker.MarshalJSON>)
- [type InputMediaType](<#InputMediaType>)
- [type InputMediaVenue](<#InputMediaVenue>)
- [func \(v \*InputMediaVenue\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputMediaVenue.MarshalJSON>)
- [type InputMediaVideo](<#InputMediaVideo>)
- [func \(v \*InputMediaVideo\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputMediaVideo.MarshalJSON>)
- [type InputMessageContent](<#InputMessageContent>)
- [type InputPaidMedia](<#InputPaidMedia>)
- [type InputPaidMediaLivePhoto](<#InputPaidMediaLivePhoto>)
- [func \(v \*InputPaidMediaLivePhoto\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputPaidMediaLivePhoto.MarshalJSON>)
- [type InputPaidMediaPhoto](<#InputPaidMediaPhoto>)
- [func \(v \*InputPaidMediaPhoto\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputPaidMediaPhoto.MarshalJSON>)
- [type InputPaidMediaType](<#InputPaidMediaType>)
- [type InputPaidMediaVideo](<#InputPaidMediaVideo>)
- [func \(v \*InputPaidMediaVideo\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputPaidMediaVideo.MarshalJSON>)
- [type InputPollMedia](<#InputPollMedia>)
- [type InputPollMediaType](<#InputPollMediaType>)
- [type InputPollOption](<#InputPollOption>)
- [type InputPollOptionMedia](<#InputPollOptionMedia>)
- [type InputPollOptionMediaType](<#InputPollOptionMediaType>)
- [type InputProfilePhoto](<#InputProfilePhoto>)
- [type InputProfilePhotoAnimated](<#InputProfilePhotoAnimated>)
- [func \(v \*InputProfilePhotoAnimated\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputProfilePhotoAnimated.MarshalJSON>)
- [type InputProfilePhotoStatic](<#InputProfilePhotoStatic>)
- [func \(v \*InputProfilePhotoStatic\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputProfilePhotoStatic.MarshalJSON>)
- [type InputProfilePhotoType](<#InputProfilePhotoType>)
- [type InputSticker](<#InputSticker>)
- [type InputStickerFormat](<#InputStickerFormat>)
- [type InputStoryContent](<#InputStoryContent>)
- [type InputStoryContentPhoto](<#InputStoryContentPhoto>)
- [func \(v \*InputStoryContentPhoto\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputStoryContentPhoto.MarshalJSON>)
- [type InputStoryContentType](<#InputStoryContentType>)
- [type InputStoryContentVideo](<#InputStoryContentVideo>)
- [func \(v \*InputStoryContentVideo\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputStoryContentVideo.MarshalJSON>)
- [type InputTextMessageContent](<#InputTextMessageContent>)
- [type InputVenueMessageContent](<#InputVenueMessageContent>)
- [type Invoice](<#Invoice>)
- [type KeyboardButton](<#KeyboardButton>)
- [type KeyboardButtonPollType](<#KeyboardButtonPollType>)
- [type KeyboardButtonRequestChat](<#KeyboardButtonRequestChat>)
- [type KeyboardButtonRequestManagedBot](<#KeyboardButtonRequestManagedBot>)
- [type KeyboardButtonRequestUsers](<#KeyboardButtonRequestUsers>)
- [type KeyboardButtonStyle](<#KeyboardButtonStyle>)
- [type LabeledPrice](<#LabeledPrice>)
- [type LeaveChatParams](<#LeaveChatParams>)
- [type LinkPreviewOptions](<#LinkPreviewOptions>)
- [type LivePhoto](<#LivePhoto>)
- [type Location](<#Location>)
- [type LocationAddress](<#LocationAddress>)
- [type LogOutParams](<#LogOutParams>)
- [type LoginUrl](<#LoginUrl>)
- [type ManagedBotCreated](<#ManagedBotCreated>)
- [type ManagedBotUpdated](<#ManagedBotUpdated>)
- [type MaskPosition](<#MaskPosition>)
- [type MaskPositionPoint](<#MaskPositionPoint>)
- [type MaybeInaccessibleMessage](<#MaybeInaccessibleMessage>)
- [func UnmarshalMaybeInaccessibleMessage\(data \[\]byte\) \(MaybeInaccessibleMessage, error\)](<#UnmarshalMaybeInaccessibleMessage>)
- [type MeCache](<#MeCache>)
- [func \(c \*MeCache\) Get\(ctx context.Context, b \*client.Bot\) \(\*User, error\)](<#MeCache.Get>)
- [func \(c \*MeCache\) Reset\(\)](<#MeCache.Reset>)
- [type MenuButton](<#MenuButton>)
- [func GetChatMenuButton\(ctx context.Context, b \*client.Bot, p \*GetChatMenuButtonParams\) \(MenuButton, error\)](<#GetChatMenuButton>)
- [func UnmarshalMenuButton\(data \[\]byte\) \(MenuButton, error\)](<#UnmarshalMenuButton>)
- [type MenuButtonCommands](<#MenuButtonCommands>)
- [func \(v \*MenuButtonCommands\) MarshalJSON\(\) \(\[\]byte, error\)](<#MenuButtonCommands.MarshalJSON>)
- [type MenuButtonDefault](<#MenuButtonDefault>)
- [func \(v \*MenuButtonDefault\) MarshalJSON\(\) \(\[\]byte, error\)](<#MenuButtonDefault.MarshalJSON>)
- [type MenuButtonType](<#MenuButtonType>)
- [type MenuButtonWebApp](<#MenuButtonWebApp>)
- [func \(v \*MenuButtonWebApp\) MarshalJSON\(\) \(\[\]byte, error\)](<#MenuButtonWebApp.MarshalJSON>)
- [type Message](<#Message>)
- [func EditMessageChecklist\(ctx context.Context, b \*client.Bot, p \*EditMessageChecklistParams\) \(\*Message, error\)](<#EditMessageChecklist>)
- [func ForwardMessage\(ctx context.Context, b \*client.Bot, p \*ForwardMessageParams\) \(\*Message, error\)](<#ForwardMessage>)
- [func GetUserPersonalChatMessages\(ctx context.Context, b \*client.Bot, p \*GetUserPersonalChatMessagesParams\) \(\[\]Message, error\)](<#GetUserPersonalChatMessages>)
- [func SendAnimation\(ctx context.Context, b \*client.Bot, p \*SendAnimationParams\) \(\*Message, error\)](<#SendAnimation>)
- [func SendAudio\(ctx context.Context, b \*client.Bot, p \*SendAudioParams\) \(\*Message, error\)](<#SendAudio>)
- [func SendChecklist\(ctx context.Context, b \*client.Bot, p \*SendChecklistParams\) \(\*Message, error\)](<#SendChecklist>)
- [func SendContact\(ctx context.Context, b \*client.Bot, p \*SendContactParams\) \(\*Message, error\)](<#SendContact>)
- [func SendDice\(ctx context.Context, b \*client.Bot, p \*SendDiceParams\) \(\*Message, error\)](<#SendDice>)
- [func SendDocument\(ctx context.Context, b \*client.Bot, p \*SendDocumentParams\) \(\*Message, error\)](<#SendDocument>)
- [func SendGame\(ctx context.Context, b \*client.Bot, p \*SendGameParams\) \(\*Message, error\)](<#SendGame>)
- [func SendInvoice\(ctx context.Context, b \*client.Bot, p \*SendInvoiceParams\) \(\*Message, error\)](<#SendInvoice>)
- [func SendLivePhoto\(ctx context.Context, b \*client.Bot, p \*SendLivePhotoParams\) \(\*Message, error\)](<#SendLivePhoto>)
- [func SendLocation\(ctx context.Context, b \*client.Bot, p \*SendLocationParams\) \(\*Message, error\)](<#SendLocation>)
- [func SendMediaGroup\(ctx context.Context, b \*client.Bot, p \*SendMediaGroupParams\) \(\[\]Message, error\)](<#SendMediaGroup>)
- [func SendMessage\(ctx context.Context, b \*client.Bot, p \*SendMessageParams\) \(\*Message, error\)](<#SendMessage>)
- [func SendPaidMedia\(ctx context.Context, b \*client.Bot, p \*SendPaidMediaParams\) \(\*Message, error\)](<#SendPaidMedia>)
- [func SendPhoto\(ctx context.Context, b \*client.Bot, p \*SendPhotoParams\) \(\*Message, error\)](<#SendPhoto>)
- [func SendPoll\(ctx context.Context, b \*client.Bot, p \*SendPollParams\) \(\*Message, error\)](<#SendPoll>)
- [func SendSticker\(ctx context.Context, b \*client.Bot, p \*SendStickerParams\) \(\*Message, error\)](<#SendSticker>)
- [func SendVenue\(ctx context.Context, b \*client.Bot, p \*SendVenueParams\) \(\*Message, error\)](<#SendVenue>)
- [func SendVideo\(ctx context.Context, b \*client.Bot, p \*SendVideoParams\) \(\*Message, error\)](<#SendVideo>)
- [func SendVideoNote\(ctx context.Context, b \*client.Bot, p \*SendVideoNoteParams\) \(\*Message, error\)](<#SendVideoNote>)
- [func SendVoice\(ctx context.Context, b \*client.Bot, p \*SendVoiceParams\) \(\*Message, error\)](<#SendVoice>)
- [func \(m \*Message\) GetSender\(\) \*Sender](<#Message.GetSender>)
- [func \(m \*Message\) UnmarshalJSON\(data \[\]byte\) error](<#Message.UnmarshalJSON>)
- [type MessageAutoDeleteTimerChanged](<#MessageAutoDeleteTimerChanged>)
- [type MessageEntity](<#MessageEntity>)
- [type MessageEntityType](<#MessageEntityType>)
- [type MessageId](<#MessageId>)
- [func CopyMessage\(ctx context.Context, b \*client.Bot, p \*CopyMessageParams\) \(\*MessageId, error\)](<#CopyMessage>)
- [func CopyMessages\(ctx context.Context, b \*client.Bot, p \*CopyMessagesParams\) \(\[\]MessageId, error\)](<#CopyMessages>)
- [func ForwardMessages\(ctx context.Context, b \*client.Bot, p \*ForwardMessagesParams\) \(\[\]MessageId, error\)](<#ForwardMessages>)
- [type MessageOrBool](<#MessageOrBool>)
- [func EditMessageCaption\(ctx context.Context, b \*client.Bot, p \*EditMessageCaptionParams\) \(\*MessageOrBool, error\)](<#EditMessageCaption>)
- [func EditMessageLiveLocation\(ctx context.Context, b \*client.Bot, p \*EditMessageLiveLocationParams\) \(\*MessageOrBool, error\)](<#EditMessageLiveLocation>)
- [func EditMessageMedia\(ctx context.Context, b \*client.Bot, p \*EditMessageMediaParams\) \(\*MessageOrBool, error\)](<#EditMessageMedia>)
- [func EditMessageReplyMarkup\(ctx context.Context, b \*client.Bot, p \*EditMessageReplyMarkupParams\) \(\*MessageOrBool, error\)](<#EditMessageReplyMarkup>)
- [func EditMessageText\(ctx context.Context, b \*client.Bot, p \*EditMessageTextParams\) \(\*MessageOrBool, error\)](<#EditMessageText>)
- [func SetGameScore\(ctx context.Context, b \*client.Bot, p \*SetGameScoreParams\) \(\*MessageOrBool, error\)](<#SetGameScore>)
- [func StopMessageLiveLocation\(ctx context.Context, b \*client.Bot, p \*StopMessageLiveLocationParams\) \(\*MessageOrBool, error\)](<#StopMessageLiveLocation>)
- [func \(m \*MessageOrBool\) UnmarshalJSON\(data \[\]byte\) error](<#MessageOrBool.UnmarshalJSON>)
- [type MessageOrigin](<#MessageOrigin>)
- [func UnmarshalMessageOrigin\(data \[\]byte\) \(MessageOrigin, error\)](<#UnmarshalMessageOrigin>)
- [type MessageOriginChannel](<#MessageOriginChannel>)
- [func \(v \*MessageOriginChannel\) MarshalJSON\(\) \(\[\]byte, error\)](<#MessageOriginChannel.MarshalJSON>)
- [type MessageOriginChat](<#MessageOriginChat>)
- [func \(v \*MessageOriginChat\) MarshalJSON\(\) \(\[\]byte, error\)](<#MessageOriginChat.MarshalJSON>)
- [type MessageOriginHiddenUser](<#MessageOriginHiddenUser>)
- [func \(v \*MessageOriginHiddenUser\) MarshalJSON\(\) \(\[\]byte, error\)](<#MessageOriginHiddenUser.MarshalJSON>)
- [type MessageOriginType](<#MessageOriginType>)
- [type MessageOriginUser](<#MessageOriginUser>)
- [func \(v \*MessageOriginUser\) MarshalJSON\(\) \(\[\]byte, error\)](<#MessageOriginUser.MarshalJSON>)
- [type MessageReactionCountUpdated](<#MessageReactionCountUpdated>)
- [type MessageReactionUpdated](<#MessageReactionUpdated>)
- [func \(mru \*MessageReactionUpdated\) GetSender\(\) \*Sender](<#MessageReactionUpdated.GetSender>)
- [func \(m \*MessageReactionUpdated\) UnmarshalJSON\(data \[\]byte\) error](<#MessageReactionUpdated.UnmarshalJSON>)
- [type OrderInfo](<#OrderInfo>)
- [type OwnedGift](<#OwnedGift>)
- [func UnmarshalOwnedGift\(data \[\]byte\) \(OwnedGift, error\)](<#UnmarshalOwnedGift>)
- [type OwnedGiftRegular](<#OwnedGiftRegular>)
- [func \(v \*OwnedGiftRegular\) MarshalJSON\(\) \(\[\]byte, error\)](<#OwnedGiftRegular.MarshalJSON>)
- [type OwnedGiftType](<#OwnedGiftType>)
- [type OwnedGiftUnique](<#OwnedGiftUnique>)
- [func \(v \*OwnedGiftUnique\) MarshalJSON\(\) \(\[\]byte, error\)](<#OwnedGiftUnique.MarshalJSON>)
- [type OwnedGifts](<#OwnedGifts>)
- [func GetBusinessAccountGifts\(ctx context.Context, b \*client.Bot, p \*GetBusinessAccountGiftsParams\) \(\*OwnedGifts, error\)](<#GetBusinessAccountGifts>)
- [func GetChatGifts\(ctx context.Context, b \*client.Bot, p \*GetChatGiftsParams\) \(\*OwnedGifts, error\)](<#GetChatGifts>)
- [func GetUserGifts\(ctx context.Context, b \*client.Bot, p \*GetUserGiftsParams\) \(\*OwnedGifts, error\)](<#GetUserGifts>)
- [func \(m \*OwnedGifts\) UnmarshalJSON\(data \[\]byte\) error](<#OwnedGifts.UnmarshalJSON>)
- [type PaidMedia](<#PaidMedia>)
- [func UnmarshalPaidMedia\(data \[\]byte\) \(PaidMedia, error\)](<#UnmarshalPaidMedia>)
- [type PaidMediaInfo](<#PaidMediaInfo>)
- [func \(m \*PaidMediaInfo\) UnmarshalJSON\(data \[\]byte\) error](<#PaidMediaInfo.UnmarshalJSON>)
- [type PaidMediaLivePhoto](<#PaidMediaLivePhoto>)
- [func \(v \*PaidMediaLivePhoto\) MarshalJSON\(\) \(\[\]byte, error\)](<#PaidMediaLivePhoto.MarshalJSON>)
- [type PaidMediaPhoto](<#PaidMediaPhoto>)
- [func \(v \*PaidMediaPhoto\) MarshalJSON\(\) \(\[\]byte, error\)](<#PaidMediaPhoto.MarshalJSON>)
- [type PaidMediaPreview](<#PaidMediaPreview>)
- [func \(v \*PaidMediaPreview\) MarshalJSON\(\) \(\[\]byte, error\)](<#PaidMediaPreview.MarshalJSON>)
- [type PaidMediaPurchased](<#PaidMediaPurchased>)
- [type PaidMediaType](<#PaidMediaType>)
- [type PaidMediaVideo](<#PaidMediaVideo>)
- [func \(v \*PaidMediaVideo\) MarshalJSON\(\) \(\[\]byte, error\)](<#PaidMediaVideo.MarshalJSON>)
- [type PaidMessagePriceChanged](<#PaidMessagePriceChanged>)
- [type ParseMode](<#ParseMode>)
- [type PassportData](<#PassportData>)
- [type PassportElementError](<#PassportElementError>)
- [type PassportElementErrorDataField](<#PassportElementErrorDataField>)
- [func \(v \*PassportElementErrorDataField\) MarshalJSON\(\) \(\[\]byte, error\)](<#PassportElementErrorDataField.MarshalJSON>)
- [type PassportElementErrorDataFieldType](<#PassportElementErrorDataFieldType>)
- [type PassportElementErrorFile](<#PassportElementErrorFile>)
- [func \(v \*PassportElementErrorFile\) MarshalJSON\(\) \(\[\]byte, error\)](<#PassportElementErrorFile.MarshalJSON>)
- [type PassportElementErrorFileType](<#PassportElementErrorFileType>)
- [type PassportElementErrorFiles](<#PassportElementErrorFiles>)
- [func \(v \*PassportElementErrorFiles\) MarshalJSON\(\) \(\[\]byte, error\)](<#PassportElementErrorFiles.MarshalJSON>)
- [type PassportElementErrorFrontSide](<#PassportElementErrorFrontSide>)
- [func \(v \*PassportElementErrorFrontSide\) MarshalJSON\(\) \(\[\]byte, error\)](<#PassportElementErrorFrontSide.MarshalJSON>)
- [type PassportElementErrorReverseSide](<#PassportElementErrorReverseSide>)
- [func \(v \*PassportElementErrorReverseSide\) MarshalJSON\(\) \(\[\]byte, error\)](<#PassportElementErrorReverseSide.MarshalJSON>)
- [type PassportElementErrorReverseSideType](<#PassportElementErrorReverseSideType>)
- [type PassportElementErrorSelfie](<#PassportElementErrorSelfie>)
- [func \(v \*PassportElementErrorSelfie\) MarshalJSON\(\) \(\[\]byte, error\)](<#PassportElementErrorSelfie.MarshalJSON>)
- [type PassportElementErrorSelfieType](<#PassportElementErrorSelfieType>)
- [type PassportElementErrorSource](<#PassportElementErrorSource>)
- [type PassportElementErrorTranslationFile](<#PassportElementErrorTranslationFile>)
- [func \(v \*PassportElementErrorTranslationFile\) MarshalJSON\(\) \(\[\]byte, error\)](<#PassportElementErrorTranslationFile.MarshalJSON>)
- [type PassportElementErrorTranslationFileType](<#PassportElementErrorTranslationFileType>)
- [type PassportElementErrorTranslationFiles](<#PassportElementErrorTranslationFiles>)
- [func \(v \*PassportElementErrorTranslationFiles\) MarshalJSON\(\) \(\[\]byte, error\)](<#PassportElementErrorTranslationFiles.MarshalJSON>)
- [type PassportElementErrorUnspecified](<#PassportElementErrorUnspecified>)
- [func \(v \*PassportElementErrorUnspecified\) MarshalJSON\(\) \(\[\]byte, error\)](<#PassportElementErrorUnspecified.MarshalJSON>)
- [type PassportFile](<#PassportFile>)
- [type PhotoSize](<#PhotoSize>)
- [type PinChatMessageParams](<#PinChatMessageParams>)
- [type Poll](<#Poll>)
- [func StopPoll\(ctx context.Context, b \*client.Bot, p \*StopPollParams\) \(\*Poll, error\)](<#StopPoll>)
- [type PollAnswer](<#PollAnswer>)
- [func \(pa \*PollAnswer\) GetSender\(\) \*Sender](<#PollAnswer.GetSender>)
- [type PollMedia](<#PollMedia>)
- [type PollOption](<#PollOption>)
- [type PollOptionAdded](<#PollOptionAdded>)
- [func \(m \*PollOptionAdded\) UnmarshalJSON\(data \[\]byte\) error](<#PollOptionAdded.UnmarshalJSON>)
- [type PollOptionDeleted](<#PollOptionDeleted>)
- [func \(m \*PollOptionDeleted\) UnmarshalJSON\(data \[\]byte\) error](<#PollOptionDeleted.UnmarshalJSON>)
- [type PollType](<#PollType>)
- [type PostStoryParams](<#PostStoryParams>)
- [type PreCheckoutQuery](<#PreCheckoutQuery>)
- [type PreparedInlineMessage](<#PreparedInlineMessage>)
- [func SavePreparedInlineMessage\(ctx context.Context, b \*client.Bot, p \*SavePreparedInlineMessageParams\) \(\*PreparedInlineMessage, error\)](<#SavePreparedInlineMessage>)
- [type PreparedKeyboardButton](<#PreparedKeyboardButton>)
- [func SavePreparedKeyboardButton\(ctx context.Context, b \*client.Bot, p \*SavePreparedKeyboardButtonParams\) \(\*PreparedKeyboardButton, error\)](<#SavePreparedKeyboardButton>)
- [type PromoteChatMemberParams](<#PromoteChatMemberParams>)
- [type ProximityAlertTriggered](<#ProximityAlertTriggered>)
- [type ReactionCount](<#ReactionCount>)
- [func \(m \*ReactionCount\) UnmarshalJSON\(data \[\]byte\) error](<#ReactionCount.UnmarshalJSON>)
- [type ReactionType](<#ReactionType>)
- [func UnmarshalReactionType\(data \[\]byte\) \(ReactionType, error\)](<#UnmarshalReactionType>)
- [type ReactionTypeCustomEmoji](<#ReactionTypeCustomEmoji>)
- [func \(v \*ReactionTypeCustomEmoji\) MarshalJSON\(\) \(\[\]byte, error\)](<#ReactionTypeCustomEmoji.MarshalJSON>)
- [type ReactionTypeEmoji](<#ReactionTypeEmoji>)
- [func \(v \*ReactionTypeEmoji\) MarshalJSON\(\) \(\[\]byte, error\)](<#ReactionTypeEmoji.MarshalJSON>)
- [type ReactionTypeKind](<#ReactionTypeKind>)
- [type ReactionTypePaid](<#ReactionTypePaid>)
- [func \(v \*ReactionTypePaid\) MarshalJSON\(\) \(\[\]byte, error\)](<#ReactionTypePaid.MarshalJSON>)
- [type ReadBusinessMessageParams](<#ReadBusinessMessageParams>)
- [type RefundStarPaymentParams](<#RefundStarPaymentParams>)
- [type RefundedPayment](<#RefundedPayment>)
- [type RefundedPaymentCurrency](<#RefundedPaymentCurrency>)
- [type RemoveBusinessAccountProfilePhotoParams](<#RemoveBusinessAccountProfilePhotoParams>)
- [type RemoveChatVerificationParams](<#RemoveChatVerificationParams>)
- [type RemoveMyProfilePhotoParams](<#RemoveMyProfilePhotoParams>)
- [type RemoveUserVerificationParams](<#RemoveUserVerificationParams>)
- [type ReopenForumTopicParams](<#ReopenForumTopicParams>)
- [type ReopenGeneralForumTopicParams](<#ReopenGeneralForumTopicParams>)
- [type ReplaceManagedBotTokenParams](<#ReplaceManagedBotTokenParams>)
- [type ReplaceStickerInSetParams](<#ReplaceStickerInSetParams>)
- [type ReplyKeyboardMarkup](<#ReplyKeyboardMarkup>)
- [type ReplyKeyboardRemove](<#ReplyKeyboardRemove>)
- [type ReplyParameters](<#ReplyParameters>)
- [type RepostStoryParams](<#RepostStoryParams>)
- [type ResponseParameters](<#ResponseParameters>)
- [type RestrictChatMemberParams](<#RestrictChatMemberParams>)
- [type RevenueWithdrawalState](<#RevenueWithdrawalState>)
- [func UnmarshalRevenueWithdrawalState\(data \[\]byte\) \(RevenueWithdrawalState, error\)](<#UnmarshalRevenueWithdrawalState>)
- [type RevenueWithdrawalStateFailed](<#RevenueWithdrawalStateFailed>)
- [func \(v \*RevenueWithdrawalStateFailed\) MarshalJSON\(\) \(\[\]byte, error\)](<#RevenueWithdrawalStateFailed.MarshalJSON>)
- [type RevenueWithdrawalStateKind](<#RevenueWithdrawalStateKind>)
- [type RevenueWithdrawalStatePending](<#RevenueWithdrawalStatePending>)
- [func \(v \*RevenueWithdrawalStatePending\) MarshalJSON\(\) \(\[\]byte, error\)](<#RevenueWithdrawalStatePending.MarshalJSON>)
- [type RevenueWithdrawalStateSucceeded](<#RevenueWithdrawalStateSucceeded>)
- [func \(v \*RevenueWithdrawalStateSucceeded\) MarshalJSON\(\) \(\[\]byte, error\)](<#RevenueWithdrawalStateSucceeded.MarshalJSON>)
- [type RevokeChatInviteLinkParams](<#RevokeChatInviteLinkParams>)
- [type SavePreparedInlineMessageParams](<#SavePreparedInlineMessageParams>)
- [type SavePreparedKeyboardButtonParams](<#SavePreparedKeyboardButtonParams>)
- [type SendAnimationParams](<#SendAnimationParams>)
- [func \(p \*SendAnimationParams\) HasFile\(\) bool](<#SendAnimationParams.HasFile>)
- [func \(p \*SendAnimationParams\) MultipartFields\(\) map\[string\]string](<#SendAnimationParams.MultipartFields>)
- [func \(p \*SendAnimationParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#SendAnimationParams.MultipartFiles>)
- [type SendAudioParams](<#SendAudioParams>)
- [func \(p \*SendAudioParams\) HasFile\(\) bool](<#SendAudioParams.HasFile>)
- [func \(p \*SendAudioParams\) MultipartFields\(\) map\[string\]string](<#SendAudioParams.MultipartFields>)
- [func \(p \*SendAudioParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#SendAudioParams.MultipartFiles>)
- [type SendChatActionParams](<#SendChatActionParams>)
- [type SendChecklistParams](<#SendChecklistParams>)
- [type SendContactParams](<#SendContactParams>)
- [type SendDiceParams](<#SendDiceParams>)
- [type SendDocumentParams](<#SendDocumentParams>)
- [func \(p \*SendDocumentParams\) HasFile\(\) bool](<#SendDocumentParams.HasFile>)
- [func \(p \*SendDocumentParams\) MultipartFields\(\) map\[string\]string](<#SendDocumentParams.MultipartFields>)
- [func \(p \*SendDocumentParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#SendDocumentParams.MultipartFiles>)
- [type SendGameParams](<#SendGameParams>)
- [type SendGiftParams](<#SendGiftParams>)
- [type SendInvoiceParams](<#SendInvoiceParams>)
- [type SendLivePhotoParams](<#SendLivePhotoParams>)
- [func \(p \*SendLivePhotoParams\) HasFile\(\) bool](<#SendLivePhotoParams.HasFile>)
- [func \(p \*SendLivePhotoParams\) MultipartFields\(\) map\[string\]string](<#SendLivePhotoParams.MultipartFields>)
- [func \(p \*SendLivePhotoParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#SendLivePhotoParams.MultipartFiles>)
- [type SendLocationParams](<#SendLocationParams>)
- [type SendMediaGroupParams](<#SendMediaGroupParams>)
- [func \(p \*SendMediaGroupParams\) HasFile\(\) bool](<#SendMediaGroupParams.HasFile>)
- [func \(p \*SendMediaGroupParams\) MultipartFields\(\) map\[string\]string](<#SendMediaGroupParams.MultipartFields>)
- [func \(p \*SendMediaGroupParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#SendMediaGroupParams.MultipartFiles>)
- [type SendMessageDraftParams](<#SendMessageDraftParams>)
- [type SendMessageParams](<#SendMessageParams>)
- [type SendPaidMediaParams](<#SendPaidMediaParams>)
- [func \(p \*SendPaidMediaParams\) HasFile\(\) bool](<#SendPaidMediaParams.HasFile>)
- [func \(p \*SendPaidMediaParams\) MultipartFields\(\) map\[string\]string](<#SendPaidMediaParams.MultipartFields>)
- [func \(p \*SendPaidMediaParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#SendPaidMediaParams.MultipartFiles>)
- [type SendPhotoParams](<#SendPhotoParams>)
- [func \(p \*SendPhotoParams\) HasFile\(\) bool](<#SendPhotoParams.HasFile>)
- [func \(p \*SendPhotoParams\) MultipartFields\(\) map\[string\]string](<#SendPhotoParams.MultipartFields>)
- [func \(p \*SendPhotoParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#SendPhotoParams.MultipartFiles>)
- [type SendPollParams](<#SendPollParams>)
- [type SendStickerParams](<#SendStickerParams>)
- [func \(p \*SendStickerParams\) HasFile\(\) bool](<#SendStickerParams.HasFile>)
- [func \(p \*SendStickerParams\) MultipartFields\(\) map\[string\]string](<#SendStickerParams.MultipartFields>)
- [func \(p \*SendStickerParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#SendStickerParams.MultipartFiles>)
- [type SendVenueParams](<#SendVenueParams>)
- [type SendVideoNoteParams](<#SendVideoNoteParams>)
- [func \(p \*SendVideoNoteParams\) HasFile\(\) bool](<#SendVideoNoteParams.HasFile>)
- [func \(p \*SendVideoNoteParams\) MultipartFields\(\) map\[string\]string](<#SendVideoNoteParams.MultipartFields>)
- [func \(p \*SendVideoNoteParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#SendVideoNoteParams.MultipartFiles>)
- [type SendVideoParams](<#SendVideoParams>)
- [func \(p \*SendVideoParams\) HasFile\(\) bool](<#SendVideoParams.HasFile>)
- [func \(p \*SendVideoParams\) MultipartFields\(\) map\[string\]string](<#SendVideoParams.MultipartFields>)
- [func \(p \*SendVideoParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#SendVideoParams.MultipartFiles>)
- [type SendVoiceParams](<#SendVoiceParams>)
- [func \(p \*SendVoiceParams\) HasFile\(\) bool](<#SendVoiceParams.HasFile>)
- [func \(p \*SendVoiceParams\) MultipartFields\(\) map\[string\]string](<#SendVoiceParams.MultipartFields>)
- [func \(p \*SendVoiceParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#SendVoiceParams.MultipartFiles>)
- [type Sender](<#Sender>)
- [func \(s \*Sender\) ID\(\) int64](<#Sender.ID>)
- [func \(s \*Sender\) IsAnonymousAdmin\(\) bool](<#Sender.IsAnonymousAdmin>)
- [func \(s \*Sender\) IsAnonymousChannel\(\) bool](<#Sender.IsAnonymousChannel>)
- [type SentGuestMessage](<#SentGuestMessage>)
- [func AnswerGuestQuery\(ctx context.Context, b \*client.Bot, p \*AnswerGuestQueryParams\) \(\*SentGuestMessage, error\)](<#AnswerGuestQuery>)
- [type SentWebAppMessage](<#SentWebAppMessage>)
- [func AnswerWebAppQuery\(ctx context.Context, b \*client.Bot, p \*AnswerWebAppQueryParams\) \(\*SentWebAppMessage, error\)](<#AnswerWebAppQuery>)
- [type SetBusinessAccountBioParams](<#SetBusinessAccountBioParams>)
- [type SetBusinessAccountGiftSettingsParams](<#SetBusinessAccountGiftSettingsParams>)
- [type SetBusinessAccountNameParams](<#SetBusinessAccountNameParams>)
- [type SetBusinessAccountProfilePhotoParams](<#SetBusinessAccountProfilePhotoParams>)
- [type SetBusinessAccountUsernameParams](<#SetBusinessAccountUsernameParams>)
- [type SetChatAdministratorCustomTitleParams](<#SetChatAdministratorCustomTitleParams>)
- [type SetChatDescriptionParams](<#SetChatDescriptionParams>)
- [type SetChatMemberTagParams](<#SetChatMemberTagParams>)
- [type SetChatMenuButtonParams](<#SetChatMenuButtonParams>)
- [type SetChatPermissionsParams](<#SetChatPermissionsParams>)
- [type SetChatPhotoParams](<#SetChatPhotoParams>)
- [func \(p \*SetChatPhotoParams\) HasFile\(\) bool](<#SetChatPhotoParams.HasFile>)
- [func \(p \*SetChatPhotoParams\) MultipartFields\(\) map\[string\]string](<#SetChatPhotoParams.MultipartFields>)
- [func \(p \*SetChatPhotoParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#SetChatPhotoParams.MultipartFiles>)
- [type SetChatStickerSetParams](<#SetChatStickerSetParams>)
- [type SetChatTitleParams](<#SetChatTitleParams>)
- [type SetCustomEmojiStickerSetThumbnailParams](<#SetCustomEmojiStickerSetThumbnailParams>)
- [type SetGameScoreParams](<#SetGameScoreParams>)
- [type SetManagedBotAccessSettingsParams](<#SetManagedBotAccessSettingsParams>)
- [type SetMessageReactionParams](<#SetMessageReactionParams>)
- [type SetMyCommandsParams](<#SetMyCommandsParams>)
- [type SetMyDefaultAdministratorRightsParams](<#SetMyDefaultAdministratorRightsParams>)
- [type SetMyDescriptionParams](<#SetMyDescriptionParams>)
- [type SetMyNameParams](<#SetMyNameParams>)
- [type SetMyProfilePhotoParams](<#SetMyProfilePhotoParams>)
- [type SetMyShortDescriptionParams](<#SetMyShortDescriptionParams>)
- [type SetPassportDataErrorsParams](<#SetPassportDataErrorsParams>)
- [type SetStickerEmojiListParams](<#SetStickerEmojiListParams>)
- [type SetStickerKeywordsParams](<#SetStickerKeywordsParams>)
- [type SetStickerMaskPositionParams](<#SetStickerMaskPositionParams>)
- [type SetStickerPositionInSetParams](<#SetStickerPositionInSetParams>)
- [type SetStickerSetThumbnailParams](<#SetStickerSetThumbnailParams>)
- [func \(p \*SetStickerSetThumbnailParams\) HasFile\(\) bool](<#SetStickerSetThumbnailParams.HasFile>)
- [func \(p \*SetStickerSetThumbnailParams\) MultipartFields\(\) map\[string\]string](<#SetStickerSetThumbnailParams.MultipartFields>)
- [func \(p \*SetStickerSetThumbnailParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#SetStickerSetThumbnailParams.MultipartFiles>)
- [type SetStickerSetTitleParams](<#SetStickerSetTitleParams>)
- [type SetUserEmojiStatusParams](<#SetUserEmojiStatusParams>)
- [type SetWebhookParams](<#SetWebhookParams>)
- [func \(p \*SetWebhookParams\) HasFile\(\) bool](<#SetWebhookParams.HasFile>)
- [func \(p \*SetWebhookParams\) MultipartFields\(\) map\[string\]string](<#SetWebhookParams.MultipartFields>)
- [func \(p \*SetWebhookParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#SetWebhookParams.MultipartFiles>)
- [type SharedUser](<#SharedUser>)
- [type ShippingAddress](<#ShippingAddress>)
- [type ShippingOption](<#ShippingOption>)
- [type ShippingQuery](<#ShippingQuery>)
- [type StarAmount](<#StarAmount>)
- [func GetBusinessAccountStarBalance\(ctx context.Context, b \*client.Bot, p \*GetBusinessAccountStarBalanceParams\) \(\*StarAmount, error\)](<#GetBusinessAccountStarBalance>)
- [func GetMyStarBalance\(ctx context.Context, b \*client.Bot, p \*GetMyStarBalanceParams\) \(\*StarAmount, error\)](<#GetMyStarBalance>)
- [type StarTransaction](<#StarTransaction>)
- [func \(m \*StarTransaction\) UnmarshalJSON\(data \[\]byte\) error](<#StarTransaction.UnmarshalJSON>)
- [type StarTransactions](<#StarTransactions>)
- [func GetStarTransactions\(ctx context.Context, b \*client.Bot, p \*GetStarTransactionsParams\) \(\*StarTransactions, error\)](<#GetStarTransactions>)
- [type Sticker](<#Sticker>)
- [func GetCustomEmojiStickers\(ctx context.Context, b \*client.Bot, p \*GetCustomEmojiStickersParams\) \(\[\]Sticker, error\)](<#GetCustomEmojiStickers>)
- [func GetForumTopicIconStickers\(ctx context.Context, b \*client.Bot, p \*GetForumTopicIconStickersParams\) \(\[\]Sticker, error\)](<#GetForumTopicIconStickers>)
- [type StickerSet](<#StickerSet>)
- [func GetStickerSet\(ctx context.Context, b \*client.Bot, p \*GetStickerSetParams\) \(\*StickerSet, error\)](<#GetStickerSet>)
- [type StickerType](<#StickerType>)
- [type StopMessageLiveLocationParams](<#StopMessageLiveLocationParams>)
- [type StopPollParams](<#StopPollParams>)
- [type Story](<#Story>)
- [func EditStory\(ctx context.Context, b \*client.Bot, p \*EditStoryParams\) \(\*Story, error\)](<#EditStory>)
- [func PostStory\(ctx context.Context, b \*client.Bot, p \*PostStoryParams\) \(\*Story, error\)](<#PostStory>)
- [func RepostStory\(ctx context.Context, b \*client.Bot, p \*RepostStoryParams\) \(\*Story, error\)](<#RepostStory>)
- [type StoryArea](<#StoryArea>)
- [func \(m \*StoryArea\) UnmarshalJSON\(data \[\]byte\) error](<#StoryArea.UnmarshalJSON>)
- [type StoryAreaPosition](<#StoryAreaPosition>)
- [type StoryAreaType](<#StoryAreaType>)
- [func UnmarshalStoryAreaType\(data \[\]byte\) \(StoryAreaType, error\)](<#UnmarshalStoryAreaType>)
- [type StoryAreaTypeKind](<#StoryAreaTypeKind>)
- [type StoryAreaTypeLink](<#StoryAreaTypeLink>)
- [func \(v \*StoryAreaTypeLink\) MarshalJSON\(\) \(\[\]byte, error\)](<#StoryAreaTypeLink.MarshalJSON>)
- [type StoryAreaTypeLocation](<#StoryAreaTypeLocation>)
- [func \(v \*StoryAreaTypeLocation\) MarshalJSON\(\) \(\[\]byte, error\)](<#StoryAreaTypeLocation.MarshalJSON>)
- [type StoryAreaTypeSuggestedReaction](<#StoryAreaTypeSuggestedReaction>)
- [func \(v \*StoryAreaTypeSuggestedReaction\) MarshalJSON\(\) \(\[\]byte, error\)](<#StoryAreaTypeSuggestedReaction.MarshalJSON>)
- [func \(m \*StoryAreaTypeSuggestedReaction\) UnmarshalJSON\(data \[\]byte\) error](<#StoryAreaTypeSuggestedReaction.UnmarshalJSON>)
- [type StoryAreaTypeUniqueGift](<#StoryAreaTypeUniqueGift>)
- [func \(v \*StoryAreaTypeUniqueGift\) MarshalJSON\(\) \(\[\]byte, error\)](<#StoryAreaTypeUniqueGift.MarshalJSON>)
- [type StoryAreaTypeWeather](<#StoryAreaTypeWeather>)
- [func \(v \*StoryAreaTypeWeather\) MarshalJSON\(\) \(\[\]byte, error\)](<#StoryAreaTypeWeather.MarshalJSON>)
- [type SuccessfulPayment](<#SuccessfulPayment>)
- [type SuggestedPostApprovalFailed](<#SuggestedPostApprovalFailed>)
- [type SuggestedPostApproved](<#SuggestedPostApproved>)
- [type SuggestedPostDeclined](<#SuggestedPostDeclined>)
- [type SuggestedPostInfo](<#SuggestedPostInfo>)
- [type SuggestedPostInfoState](<#SuggestedPostInfoState>)
- [type SuggestedPostPaid](<#SuggestedPostPaid>)
- [type SuggestedPostPaidCurrency](<#SuggestedPostPaidCurrency>)
- [type SuggestedPostParameters](<#SuggestedPostParameters>)
- [type SuggestedPostPrice](<#SuggestedPostPrice>)
- [type SuggestedPostRefunded](<#SuggestedPostRefunded>)
- [type SuggestedPostRefundedReason](<#SuggestedPostRefundedReason>)
- [type SwitchInlineQueryChosenChat](<#SwitchInlineQueryChosenChat>)
- [type TextQuote](<#TextQuote>)
- [type TransactionPartner](<#TransactionPartner>)
- [func UnmarshalTransactionPartner\(data \[\]byte\) \(TransactionPartner, error\)](<#UnmarshalTransactionPartner>)
- [type TransactionPartnerAffiliateProgram](<#TransactionPartnerAffiliateProgram>)
- [func \(v \*TransactionPartnerAffiliateProgram\) MarshalJSON\(\) \(\[\]byte, error\)](<#TransactionPartnerAffiliateProgram.MarshalJSON>)
- [type TransactionPartnerChat](<#TransactionPartnerChat>)
- [func \(v \*TransactionPartnerChat\) MarshalJSON\(\) \(\[\]byte, error\)](<#TransactionPartnerChat.MarshalJSON>)
- [type TransactionPartnerFragment](<#TransactionPartnerFragment>)
- [func \(v \*TransactionPartnerFragment\) MarshalJSON\(\) \(\[\]byte, error\)](<#TransactionPartnerFragment.MarshalJSON>)
- [func \(m \*TransactionPartnerFragment\) UnmarshalJSON\(data \[\]byte\) error](<#TransactionPartnerFragment.UnmarshalJSON>)
- [type TransactionPartnerOther](<#TransactionPartnerOther>)
- [func \(v \*TransactionPartnerOther\) MarshalJSON\(\) \(\[\]byte, error\)](<#TransactionPartnerOther.MarshalJSON>)
- [type TransactionPartnerTelegramAds](<#TransactionPartnerTelegramAds>)
- [func \(v \*TransactionPartnerTelegramAds\) MarshalJSON\(\) \(\[\]byte, error\)](<#TransactionPartnerTelegramAds.MarshalJSON>)
- [type TransactionPartnerTelegramApi](<#TransactionPartnerTelegramApi>)
- [func \(v \*TransactionPartnerTelegramApi\) MarshalJSON\(\) \(\[\]byte, error\)](<#TransactionPartnerTelegramApi.MarshalJSON>)
- [type TransactionPartnerType](<#TransactionPartnerType>)
- [type TransactionPartnerUser](<#TransactionPartnerUser>)
- [func \(v \*TransactionPartnerUser\) MarshalJSON\(\) \(\[\]byte, error\)](<#TransactionPartnerUser.MarshalJSON>)
- [func \(m \*TransactionPartnerUser\) UnmarshalJSON\(data \[\]byte\) error](<#TransactionPartnerUser.UnmarshalJSON>)
- [type TransactionPartnerUserTransactionType](<#TransactionPartnerUserTransactionType>)
- [type TransferBusinessAccountStarsParams](<#TransferBusinessAccountStarsParams>)
- [type TransferGiftParams](<#TransferGiftParams>)
- [type UnbanChatMemberParams](<#UnbanChatMemberParams>)
- [type UnbanChatSenderChatParams](<#UnbanChatSenderChatParams>)
- [type UnhideGeneralForumTopicParams](<#UnhideGeneralForumTopicParams>)
- [type UniqueGift](<#UniqueGift>)
- [type UniqueGiftBackdrop](<#UniqueGiftBackdrop>)
- [type UniqueGiftBackdropColors](<#UniqueGiftBackdropColors>)
- [type UniqueGiftColors](<#UniqueGiftColors>)
- [type UniqueGiftInfo](<#UniqueGiftInfo>)
- [type UniqueGiftInfoOrigin](<#UniqueGiftInfoOrigin>)
- [type UniqueGiftModel](<#UniqueGiftModel>)
- [type UniqueGiftModelRarity](<#UniqueGiftModelRarity>)
- [type UniqueGiftSymbol](<#UniqueGiftSymbol>)
- [type UnpinAllChatMessagesParams](<#UnpinAllChatMessagesParams>)
- [type UnpinAllForumTopicMessagesParams](<#UnpinAllForumTopicMessagesParams>)
- [type UnpinAllGeneralForumTopicMessagesParams](<#UnpinAllGeneralForumTopicMessagesParams>)
- [type UnpinChatMessageParams](<#UnpinChatMessageParams>)
- [type Update](<#Update>)
- [func GetUpdates\(ctx context.Context, b \*client.Bot, p \*GetUpdatesParams\) \(\[\]Update, error\)](<#GetUpdates>)
- [type UpdateType](<#UpdateType>)
- [type UpgradeGiftParams](<#UpgradeGiftParams>)
- [type UploadStickerFileParams](<#UploadStickerFileParams>)
- [func \(p \*UploadStickerFileParams\) HasFile\(\) bool](<#UploadStickerFileParams.HasFile>)
- [func \(p \*UploadStickerFileParams\) MultipartFields\(\) map\[string\]string](<#UploadStickerFileParams.MultipartFields>)
- [func \(p \*UploadStickerFileParams\) MultipartFiles\(\) \[\]client.MultipartFile](<#UploadStickerFileParams.MultipartFiles>)
- [type User](<#User>)
- [func GetMe\(ctx context.Context, b \*client.Bot, p \*GetMeParams\) \(\*User, error\)](<#GetMe>)
- [type UserChatBoosts](<#UserChatBoosts>)
- [func GetUserChatBoosts\(ctx context.Context, b \*client.Bot, p \*GetUserChatBoostsParams\) \(\*UserChatBoosts, error\)](<#GetUserChatBoosts>)
- [type UserProfileAudios](<#UserProfileAudios>)
- [func GetUserProfileAudios\(ctx context.Context, b \*client.Bot, p \*GetUserProfileAudiosParams\) \(\*UserProfileAudios, error\)](<#GetUserProfileAudios>)
- [type UserProfilePhotos](<#UserProfilePhotos>)
- [func GetUserProfilePhotos\(ctx context.Context, b \*client.Bot, p \*GetUserProfilePhotosParams\) \(\*UserProfilePhotos, error\)](<#GetUserProfilePhotos>)
- [type UserRating](<#UserRating>)
- [type UsersShared](<#UsersShared>)
- [type Venue](<#Venue>)
- [type VerifyChatParams](<#VerifyChatParams>)
- [type VerifyUserParams](<#VerifyUserParams>)
- [type Video](<#Video>)
- [type VideoChatEnded](<#VideoChatEnded>)
- [type VideoChatParticipantsInvited](<#VideoChatParticipantsInvited>)
- [type VideoChatScheduled](<#VideoChatScheduled>)
- [type VideoChatStarted](<#VideoChatStarted>)
- [type VideoNote](<#VideoNote>)
- [type VideoQuality](<#VideoQuality>)
- [type Voice](<#Voice>)
- [type WebAppData](<#WebAppData>)
- [type WebAppInfo](<#WebAppInfo>)
- [type WebhookInfo](<#WebhookInfo>)
- [func GetWebhookInfo\(ctx context.Context, b \*client.Bot, p \*GetWebhookInfoParams\) \(\*WebhookInfo, error\)](<#GetWebhookInfo>)
- [type WriteAccessAllowed](<#WriteAccessAllowed>)
## func [AddStickerToSet]()
```go
func AddStickerToSet(ctx context.Context, b *client.Bot, p *AddStickerToSetParams) (bool, error)
```
AddStickerToSet calls the addStickerToSet Telegram Bot API method.
Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 200 stickers. Other sticker sets can have up to 120 stickers. Returns True on success.
## func [AnswerCallbackQuery]()
```go
func AnswerCallbackQuery(ctx context.Context, b *client.Bot, p *AnswerCallbackQueryParams) (bool, error)
```
AnswerCallbackQuery calls the answerCallbackQuery Telegram Bot API method.
Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned. Alternatively, the user can be redirected to the specified Game URL. For this option to work, you must first create a game for your bot via @BotFather and accept the terms. Otherwise, you may use links like t.me/your\_bot?start=XXXX that open your bot with a parameter.
## func [AnswerInlineQuery]()
```go
func AnswerInlineQuery(ctx context.Context, b *client.Bot, p *AnswerInlineQueryParams) (bool, error)
```
AnswerInlineQuery calls the answerInlineQuery Telegram Bot API method.
Use this method to send answers to an inline query. On success, True is returned.No more than 50 results per query are allowed.
## func [AnswerPreCheckoutQuery]()
```go
func AnswerPreCheckoutQuery(ctx context.Context, b *client.Bot, p *AnswerPreCheckoutQueryParams) (bool, error)
```
AnswerPreCheckoutQuery calls the answerPreCheckoutQuery Telegram Bot API method.
Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre\_checkout\_query. Use this method to respond to such pre\-checkout queries. On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after the pre\-checkout query was sent.
## func [AnswerShippingQuery]()
```go
func AnswerShippingQuery(ctx context.Context, b *client.Bot, p *AnswerShippingQueryParams) (bool, error)
```
AnswerShippingQuery calls the answerShippingQuery Telegram Bot API method.
If you sent an invoice requesting a shipping address and the parameter is\_flexible was specified, the Bot API will send an Update with a shipping\_query field to the bot. Use this method to reply to shipping queries. On success, True is returned.
## func [ApproveChatJoinRequest]()
```go
func ApproveChatJoinRequest(ctx context.Context, b *client.Bot, p *ApproveChatJoinRequestParams) (bool, error)
```
ApproveChatJoinRequest calls the approveChatJoinRequest Telegram Bot API method.
Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the can\_invite\_users administrator right. Returns True on success.
## func [ApproveSuggestedPost]()
```go
func ApproveSuggestedPost(ctx context.Context, b *client.Bot, p *ApproveSuggestedPostParams) (bool, error)
```
ApproveSuggestedPost calls the approveSuggestedPost Telegram Bot API method.
Use this method to approve a suggested post in a direct messages chat. The bot must have the 'can\_post\_messages' administrator right in the corresponding channel chat. Returns True on success.
## func [BanChatMember]()
```go
func BanChatMember(ctx context.Context, b *client.Bot, p *BanChatMemberParams) (bool, error)
```
BanChatMember calls the banChatMember Telegram Bot API method.
Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.
## func [BanChatSenderChat]()
```go
func BanChatSenderChat(ctx context.Context, b *client.Bot, p *BanChatSenderChatParams) (bool, error)
```
BanChatSenderChat calls the banChatSenderChat Telegram Bot API method.
Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success.
## func [Close]()
```go
func Close(ctx context.Context, b *client.Bot, p *CloseParams) (bool, error)
```
Close calls the close Telegram Bot API method.
Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn't launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched. Returns True on success. Requires no parameters.
## func [CloseForumTopic]()
```go
func CloseForumTopic(ctx context.Context, b *client.Bot, p *CloseForumTopicParams) (bool, error)
```
CloseForumTopic calls the closeForumTopic Telegram Bot API method.
Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can\_manage\_topics administrator rights, unless it is the creator of the topic. Returns True on success.
## func [CloseGeneralForumTopic]()
```go
func CloseGeneralForumTopic(ctx context.Context, b *client.Bot, p *CloseGeneralForumTopicParams) (bool, error)
```
CloseGeneralForumTopic calls the closeGeneralForumTopic Telegram Bot API method.
Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can\_manage\_topics administrator rights. Returns True on success.
## func [ConvertGiftToStars]()
```go
func ConvertGiftToStars(ctx context.Context, b *client.Bot, p *ConvertGiftToStarsParams) (bool, error)
```
ConvertGiftToStars calls the convertGiftToStars Telegram Bot API method.
Converts a given regular gift to Telegram Stars. Requires the can\_convert\_gifts\_to\_stars business bot right. Returns True on success.
## func [CreateInvoiceLink]()
```go
func CreateInvoiceLink(ctx context.Context, b *client.Bot, p *CreateInvoiceLinkParams) (string, error)
```
CreateInvoiceLink calls the createInvoiceLink Telegram Bot API method.
Use this method to create a link for an invoice. Returns the created invoice link as String on success.
## func [CreateNewStickerSet]()
```go
func CreateNewStickerSet(ctx context.Context, b *client.Bot, p *CreateNewStickerSetParams) (bool, error)
```
CreateNewStickerSet calls the createNewStickerSet Telegram Bot API method.
Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. Returns True on success.
## func [DeclineChatJoinRequest]()
```go
func DeclineChatJoinRequest(ctx context.Context, b *client.Bot, p *DeclineChatJoinRequestParams) (bool, error)
```
DeclineChatJoinRequest calls the declineChatJoinRequest Telegram Bot API method.
Use this method to decline a chat join request. The bot must be an administrator in the chat for this to work and must have the can\_invite\_users administrator right. Returns True on success.
## func [DeclineSuggestedPost]()
```go
func DeclineSuggestedPost(ctx context.Context, b *client.Bot, p *DeclineSuggestedPostParams) (bool, error)
```
DeclineSuggestedPost calls the declineSuggestedPost Telegram Bot API method.
Use this method to decline a suggested post in a direct messages chat. The bot must have the 'can\_manage\_direct\_messages' administrator right in the corresponding channel chat. Returns True on success.
## func [DeleteAllMessageReactions]()
```go
func DeleteAllMessageReactions(ctx context.Context, b *client.Bot, p *DeleteAllMessageReactionsParams) (bool, error)
```
DeleteAllMessageReactions calls the deleteAllMessageReactions Telegram Bot API method.
Use this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a given user or chat. The bot must have the 'can\_delete\_messages' administrator right in the chat. Returns True on success.
## func [DeleteBusinessMessages]()
```go
func DeleteBusinessMessages(ctx context.Context, b *client.Bot, p *DeleteBusinessMessagesParams) (bool, error)
```
DeleteBusinessMessages calls the deleteBusinessMessages Telegram Bot API method.
Delete messages on behalf of a business account. Requires the can\_delete\_sent\_messages business bot right to delete messages sent by the bot itself, or the can\_delete\_all\_messages business bot right to delete any message. Returns True on success.
## func [DeleteChatPhoto]()
```go
func DeleteChatPhoto(ctx context.Context, b *client.Bot, p *DeleteChatPhotoParams) (bool, error)
```
DeleteChatPhoto calls the deleteChatPhoto Telegram Bot API method.
Use this method to delete a chat photo. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.
## func [DeleteChatStickerSet]()
```go
func DeleteChatStickerSet(ctx context.Context, b *client.Bot, p *DeleteChatStickerSetParams) (bool, error)
```
DeleteChatStickerSet calls the deleteChatStickerSet Telegram Bot API method.
Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field can\_set\_sticker\_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success.
## func [DeleteForumTopic]()
```go
func DeleteForumTopic(ctx context.Context, b *client.Bot, p *DeleteForumTopicParams) (bool, error)
```
DeleteForumTopic calls the deleteForumTopic Telegram Bot API method.
Use this method to delete a forum topic along with all its messages in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the can\_delete\_messages administrator rights. Returns True on success.
## func [DeleteMessage]()
```go
func DeleteMessage(ctx context.Context, b *client.Bot, p *DeleteMessageParams) (bool, error)
```
DeleteMessage calls the deleteMessage Telegram Bot API method.
Use this method to delete a message, including service messages, with the following limitations:\- A message can only be deleted if it was sent less than 48 hours ago.\- Service messages about a supergroup, channel, or forum topic creation can't be deleted.\- A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.\- Bots can delete outgoing messages in private chats, groups, and supergroups.\- Bots can delete incoming messages in private chats.\- Bots granted can\_post\_messages permissions can delete outgoing messages in channels.\- If the bot is an administrator of a group, it can delete any message there.\- If the bot has can\_delete\_messages administrator right in a supergroup or a channel, it can delete any message there.\- If the bot has can\_manage\_direct\_messages administrator right in a channel, it can delete any message in the corresponding direct messages chat.Returns True on success.
## func [DeleteMessageReaction]()
```go
func DeleteMessageReaction(ctx context.Context, b *client.Bot, p *DeleteMessageReactionParams) (bool, error)
```
DeleteMessageReaction calls the deleteMessageReaction Telegram Bot API method.
Use this method to remove a reaction from a message in a group or a supergroup chat. The bot must have the 'can\_delete\_messages' administrator right in the chat. Returns True on success.
## func [DeleteMessages]()
```go
func DeleteMessages(ctx context.Context, b *client.Bot, p *DeleteMessagesParams) (bool, error)
```
DeleteMessages calls the deleteMessages Telegram Bot API method.
Use this method to delete multiple messages simultaneously. If some of the specified messages can't be found, they are skipped. Returns True on success.
## func [DeleteMyCommands]()
```go
func DeleteMyCommands(ctx context.Context, b *client.Bot, p *DeleteMyCommandsParams) (bool, error)
```
DeleteMyCommands calls the deleteMyCommands Telegram Bot API method.
Use this method to delete the list of the bot's commands for the given scope and user language. After deletion, higher level commands will be shown to affected users. Returns True on success.
## func [DeleteStickerFromSet]()
```go
func DeleteStickerFromSet(ctx context.Context, b *client.Bot, p *DeleteStickerFromSetParams) (bool, error)
```
DeleteStickerFromSet calls the deleteStickerFromSet Telegram Bot API method.
Use this method to delete a sticker from a set created by the bot. Returns True on success.
## func [DeleteStickerSet]()
```go
func DeleteStickerSet(ctx context.Context, b *client.Bot, p *DeleteStickerSetParams) (bool, error)
```
DeleteStickerSet calls the deleteStickerSet Telegram Bot API method.
Use this method to delete a sticker set that was created by the bot. Returns True on success.
## func [DeleteStory]()
```go
func DeleteStory(ctx context.Context, b *client.Bot, p *DeleteStoryParams) (bool, error)
```
DeleteStory calls the deleteStory Telegram Bot API method.
Deletes a story previously posted by the bot on behalf of a managed business account. Requires the can\_manage\_stories business bot right. Returns True on success.
## func [DeleteWebhook]()
```go
func DeleteWebhook(ctx context.Context, b *client.Bot, p *DeleteWebhookParams) (bool, error)
```
DeleteWebhook calls the deleteWebhook Telegram Bot API method.
Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success.
## func [DownloadFileByPath]()
```go
func DownloadFileByPath(ctx context.Context, b *client.Bot, filePath string) (io.ReadCloser, error)
```
DownloadFileByPath fetches a file by its file\_path \(typically obtained from a prior File response\). Useful when the caller already has a \*File and wants to skip the GetFile round\-trip.
## func [EditForumTopic]()
```go
func EditForumTopic(ctx context.Context, b *client.Bot, p *EditForumTopicParams) (bool, error)
```
EditForumTopic calls the editForumTopic Telegram Bot API method.
Use this method to edit name and icon of a topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the can\_manage\_topics administrator rights, unless it is the creator of the topic. Returns True on success.
## func [EditGeneralForumTopic]()
```go
func EditGeneralForumTopic(ctx context.Context, b *client.Bot, p *EditGeneralForumTopicParams) (bool, error)
```
EditGeneralForumTopic calls the editGeneralForumTopic Telegram Bot API method.
Use this method to edit the name of the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can\_manage\_topics administrator rights. Returns True on success.
## func [EditUserStarSubscription]()
```go
func EditUserStarSubscription(ctx context.Context, b *client.Bot, p *EditUserStarSubscriptionParams) (bool, error)
```
EditUserStarSubscription calls the editUserStarSubscription Telegram Bot API method.
Allows the bot to cancel or re\-enable extension of a subscription paid in Telegram Stars. Returns True on success.
## func [ExportChatInviteLink]()
```go
func ExportChatInviteLink(ctx context.Context, b *client.Bot, p *ExportChatInviteLinkParams) (string, error)
```
ExportChatInviteLink calls the exportChatInviteLink Telegram Bot API method.
Use this method to generate a new primary invite link for a chat; any previously generated primary link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the new invite link as String on success. Note: Each administrator in a chat generates their own invite links. Bots can't use invite links generated by other administrators. If you want your bot to work with invite links, it will need to generate its own link using exportChatInviteLink or by calling the getChat method. If your bot needs to generate a new primary invite link replacing its previous one, use exportChatInviteLink again.
## func [GetChatMemberCount]()
```go
func GetChatMemberCount(ctx context.Context, b *client.Bot, p *GetChatMemberCountParams) (int64, error)
```
GetChatMemberCount calls the getChatMemberCount Telegram Bot API method.
Use this method to get the number of members in a chat. Returns Int on success.
## func [GetManagedBotToken]()
```go
func GetManagedBotToken(ctx context.Context, b *client.Bot, p *GetManagedBotTokenParams) (string, error)
```
GetManagedBotToken calls the getManagedBotToken Telegram Bot API method.
Use this method to get the token of a managed bot. Returns the token as String on success.
## func [GiftPremiumSubscription]()
```go
func GiftPremiumSubscription(ctx context.Context, b *client.Bot, p *GiftPremiumSubscriptionParams) (bool, error)
```
GiftPremiumSubscription calls the giftPremiumSubscription Telegram Bot API method.
Gifts a Telegram Premium subscription to the given user. Returns True on success.
## func [HideGeneralForumTopic]()
```go
func HideGeneralForumTopic(ctx context.Context, b *client.Bot, p *HideGeneralForumTopicParams) (bool, error)
```
HideGeneralForumTopic calls the hideGeneralForumTopic Telegram Bot API method.
Use this method to hide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can\_manage\_topics administrator rights. The topic will be automatically closed if it was open. Returns True on success.
## func [LeaveChat]()
```go
func LeaveChat(ctx context.Context, b *client.Bot, p *LeaveChatParams) (bool, error)
```
LeaveChat calls the leaveChat Telegram Bot API method.
Use this method for your bot to leave a group, supergroup or channel. Returns True on success.
## func [LogOut]()
```go
func LogOut(ctx context.Context, b *client.Bot, p *LogOutParams) (bool, error)
```
LogOut calls the logOut Telegram Bot API method.
Use this method to log out from the cloud Bot API server before launching the bot locally. You must log out the bot before running it locally, otherwise there is no guarantee that the bot will receive updates. After a successful call, you can immediately log in on a local server, but will not be able to log in back to the cloud Bot API server for 10 minutes. Returns True on success. Requires no parameters.
## func [PinChatMessage]()
```go
func PinChatMessage(ctx context.Context, b *client.Bot, p *PinChatMessageParams) (bool, error)
```
PinChatMessage calls the pinChatMessage Telegram Bot API method.
Use this method to add a message to the list of pinned messages in a chat. In private chats and channel direct messages chats, all non\-service messages can be pinned. Conversely, the bot must be an administrator with the 'can\_pin\_messages' right or the 'can\_edit\_messages' right to pin messages in groups and channels respectively. Returns True on success.
## func [PromoteChatMember]()
```go
func PromoteChatMember(ctx context.Context, b *client.Bot, p *PromoteChatMemberParams) (bool, error)
```
PromoteChatMember calls the promoteChatMember Telegram Bot API method.
Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Pass False for all boolean parameters to demote a user. Returns True on success.
## func [Ptr]()
```go
func Ptr[T any](v T) *T
```
Ptr returns a pointer to v. Useful for optional scalar fields where the wire format must distinguish absent \(nil\) from an explicit zero value \(e.g. DisableNotification: api.Ptr\(false\) to override the chat default\).
For untyped literals, supply the type parameter explicitly:
```
Limit: api.Ptr[int64](5)
```
For already\-typed values, type inference handles it:
```
var n int64 = 5
Limit: api.Ptr(n)
```
## func [ReadBusinessMessage]()
```go
func ReadBusinessMessage(ctx context.Context, b *client.Bot, p *ReadBusinessMessageParams) (bool, error)
```
ReadBusinessMessage calls the readBusinessMessage Telegram Bot API method.
Marks incoming message as read on behalf of a business account. Requires the can\_read\_messages business bot right. Returns True on success.
## func [RefundStarPayment]()
```go
func RefundStarPayment(ctx context.Context, b *client.Bot, p *RefundStarPaymentParams) (bool, error)
```
RefundStarPayment calls the refundStarPayment Telegram Bot API method.
Refunds a successful payment in Telegram Stars. Returns True on success.
## func [RemoveBusinessAccountProfilePhoto]()
```go
func RemoveBusinessAccountProfilePhoto(ctx context.Context, b *client.Bot, p *RemoveBusinessAccountProfilePhotoParams) (bool, error)
```
RemoveBusinessAccountProfilePhoto calls the removeBusinessAccountProfilePhoto Telegram Bot API method.
Removes the current profile photo of a managed business account. Requires the can\_edit\_profile\_photo business bot right. Returns True on success.
## func [RemoveChatVerification]()
```go
func RemoveChatVerification(ctx context.Context, b *client.Bot, p *RemoveChatVerificationParams) (bool, error)
```
RemoveChatVerification calls the removeChatVerification Telegram Bot API method.
Removes verification from a chat that is currently verified on behalf of the organization represented by the bot. Returns True on success.
## func [RemoveMyProfilePhoto]()
```go
func RemoveMyProfilePhoto(ctx context.Context, b *client.Bot, p *RemoveMyProfilePhotoParams) (bool, error)
```
RemoveMyProfilePhoto calls the removeMyProfilePhoto Telegram Bot API method.
Removes the profile photo of the bot. Requires no parameters. Returns True on success.
## func [RemoveUserVerification]()
```go
func RemoveUserVerification(ctx context.Context, b *client.Bot, p *RemoveUserVerificationParams) (bool, error)
```
RemoveUserVerification calls the removeUserVerification Telegram Bot API method.
Removes verification from a user who is currently verified on behalf of the organization represented by the bot. Returns True on success.
## func [ReopenForumTopic]()
```go
func ReopenForumTopic(ctx context.Context, b *client.Bot, p *ReopenForumTopicParams) (bool, error)
```
ReopenForumTopic calls the reopenForumTopic Telegram Bot API method.
Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can\_manage\_topics administrator rights, unless it is the creator of the topic. Returns True on success.
## func [ReopenGeneralForumTopic]()
```go
func ReopenGeneralForumTopic(ctx context.Context, b *client.Bot, p *ReopenGeneralForumTopicParams) (bool, error)
```
ReopenGeneralForumTopic calls the reopenGeneralForumTopic Telegram Bot API method.
Use this method to reopen a closed 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can\_manage\_topics administrator rights. The topic will be automatically unhidden if it was hidden. Returns True on success.
## func [ReplaceManagedBotToken]()
```go
func ReplaceManagedBotToken(ctx context.Context, b *client.Bot, p *ReplaceManagedBotTokenParams) (string, error)
```
ReplaceManagedBotToken calls the replaceManagedBotToken Telegram Bot API method.
Use this method to revoke the current token of a managed bot and generate a new one. Returns the new token as String on success.
## func [ReplaceStickerInSet]()
```go
func ReplaceStickerInSet(ctx context.Context, b *client.Bot, p *ReplaceStickerInSetParams) (bool, error)
```
ReplaceStickerInSet calls the replaceStickerInSet Telegram Bot API method.
Use this method to replace an existing sticker in a sticker set with a new one. The method is equivalent to calling deleteStickerFromSet, then addStickerToSet, then setStickerPositionInSet. Returns True on success.
## func [RestrictChatMember]()
```go
func RestrictChatMember(ctx context.Context, b *client.Bot, p *RestrictChatMemberParams) (bool, error)
```
RestrictChatMember calls the restrictChatMember Telegram Bot API method.
Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the appropriate administrator rights. Pass True for all permissions to lift restrictions from a user. Returns True on success.
## func [SendChatAction]()
```go
func SendChatAction(ctx context.Context, b *client.Bot, p *SendChatActionParams) (bool, error)
```
SendChatAction calls the sendChatAction Telegram Bot API method.
Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less \(when a message arrives from your bot, Telegram clients clear its typing status\). Returns True on success. Example: The ImageBot needs some time to process a request and upload the image. Instead of sending a text message along the lines of “Retrieving image, please wait…”, the bot may use sendChatAction with action = upload\_photo. The user will see a “sending photo” status for the bot. We only recommend using this method when a response from the bot will take a noticeable amount of time to arrive.
## func [SendGift]()
```go
func SendGift(ctx context.Context, b *client.Bot, p *SendGiftParams) (bool, error)
```
SendGift calls the sendGift Telegram Bot API method.
Sends a gift to the given user or channel chat. The gift can't be converted to Telegram Stars by the receiver. Returns True on success.
## func [SendMessageDraft]()
```go
func SendMessageDraft(ctx context.Context, b *client.Bot, p *SendMessageDraftParams) (bool, error)
```
SendMessageDraft calls the sendMessageDraft Telegram Bot API method.
Use this method to stream a partial message to a user while the message is being generated. Note that the streamed draft is ephemeral and acts as a temporary 30\-second preview \- once the output is finalized, you must call sendMessage with the complete message to persist it in the user's chat. Returns True on success.
## func [SetBusinessAccountBio]()
```go
func SetBusinessAccountBio(ctx context.Context, b *client.Bot, p *SetBusinessAccountBioParams) (bool, error)
```
SetBusinessAccountBio calls the setBusinessAccountBio Telegram Bot API method.
Changes the bio of a managed business account. Requires the can\_change\_bio business bot right. Returns True on success.
## func [SetBusinessAccountGiftSettings]()
```go
func SetBusinessAccountGiftSettings(ctx context.Context, b *client.Bot, p *SetBusinessAccountGiftSettingsParams) (bool, error)
```
SetBusinessAccountGiftSettings calls the setBusinessAccountGiftSettings Telegram Bot API method.
Changes the privacy settings pertaining to incoming gifts in a managed business account. Requires the can\_change\_gift\_settings business bot right. Returns True on success.
## func [SetBusinessAccountName]()
```go
func SetBusinessAccountName(ctx context.Context, b *client.Bot, p *SetBusinessAccountNameParams) (bool, error)
```
SetBusinessAccountName calls the setBusinessAccountName Telegram Bot API method.
Changes the first and last name of a managed business account. Requires the can\_change\_name business bot right. Returns True on success.
## func [SetBusinessAccountProfilePhoto]()
```go
func SetBusinessAccountProfilePhoto(ctx context.Context, b *client.Bot, p *SetBusinessAccountProfilePhotoParams) (bool, error)
```
SetBusinessAccountProfilePhoto calls the setBusinessAccountProfilePhoto Telegram Bot API method.
Changes the profile photo of a managed business account. Requires the can\_edit\_profile\_photo business bot right. Returns True on success.
## func [SetBusinessAccountUsername]()
```go
func SetBusinessAccountUsername(ctx context.Context, b *client.Bot, p *SetBusinessAccountUsernameParams) (bool, error)
```
SetBusinessAccountUsername calls the setBusinessAccountUsername Telegram Bot API method.
Changes the username of a managed business account. Requires the can\_change\_username business bot right. Returns True on success.
## func [SetChatAdministratorCustomTitle]()
```go
func SetChatAdministratorCustomTitle(ctx context.Context, b *client.Bot, p *SetChatAdministratorCustomTitleParams) (bool, error)
```
SetChatAdministratorCustomTitle calls the setChatAdministratorCustomTitle Telegram Bot API method.
Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.
## func [SetChatDescription]()
```go
func SetChatDescription(ctx context.Context, b *client.Bot, p *SetChatDescriptionParams) (bool, error)
```
SetChatDescription calls the setChatDescription Telegram Bot API method.
Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.
## func [SetChatMemberTag]()
```go
func SetChatMemberTag(ctx context.Context, b *client.Bot, p *SetChatMemberTagParams) (bool, error)
```
SetChatMemberTag calls the setChatMemberTag Telegram Bot API method.
Use this method to set a tag for a regular member in a group or a supergroup. The bot must be an administrator in the chat for this to work and must have the can\_manage\_tags administrator right. Returns True on success.
## func [SetChatMenuButton]()
```go
func SetChatMenuButton(ctx context.Context, b *client.Bot, p *SetChatMenuButtonParams) (bool, error)
```
SetChatMenuButton calls the setChatMenuButton Telegram Bot API method.
Use this method to change the bot's menu button in a private chat, or the default menu button. Returns True on success.
## func [SetChatPermissions]()
```go
func SetChatPermissions(ctx context.Context, b *client.Bot, p *SetChatPermissionsParams) (bool, error)
```
SetChatPermissions calls the setChatPermissions Telegram Bot API method.
Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can\_restrict\_members administrator rights. Returns True on success.
## func [SetChatPhoto]()
```go
func SetChatPhoto(ctx context.Context, b *client.Bot, p *SetChatPhotoParams) (bool, error)
```
SetChatPhoto calls the setChatPhoto Telegram Bot API method.
Use this method to set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.
## func [SetChatStickerSet]()
```go
func SetChatStickerSet(ctx context.Context, b *client.Bot, p *SetChatStickerSetParams) (bool, error)
```
SetChatStickerSet calls the setChatStickerSet Telegram Bot API method.
Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field can\_set\_sticker\_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success.
## func [SetChatTitle]()
```go
func SetChatTitle(ctx context.Context, b *client.Bot, p *SetChatTitleParams) (bool, error)
```
SetChatTitle calls the setChatTitle Telegram Bot API method.
Use this method to change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.
## func [SetCustomEmojiStickerSetThumbnail]()
```go
func SetCustomEmojiStickerSetThumbnail(ctx context.Context, b *client.Bot, p *SetCustomEmojiStickerSetThumbnailParams) (bool, error)
```
SetCustomEmojiStickerSetThumbnail calls the setCustomEmojiStickerSetThumbnail Telegram Bot API method.
Use this method to set the thumbnail of a custom emoji sticker set. Returns True on success.
## func [SetManagedBotAccessSettings]()
```go
func SetManagedBotAccessSettings(ctx context.Context, b *client.Bot, p *SetManagedBotAccessSettingsParams) (bool, error)
```
SetManagedBotAccessSettings calls the setManagedBotAccessSettings Telegram Bot API method.
Use this method to change the access settings of a managed bot. Returns True on success.
## func [SetMessageReaction]()
```go
func SetMessageReaction(ctx context.Context, b *client.Bot, p *SetMessageReactionParams) (bool, error)
```
SetMessageReaction calls the setMessageReaction Telegram Bot API method.
Use this method to change the chosen reactions on a message. Service messages of some types can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Bots can't use paid reactions. Returns True on success.
## func [SetMyCommands]()
```go
func SetMyCommands(ctx context.Context, b *client.Bot, p *SetMyCommandsParams) (bool, error)
```
SetMyCommands calls the setMyCommands Telegram Bot API method.
Use this method to change the list of the bot's commands. See this manual for more details about bot commands. Returns True on success.
## func [SetMyDefaultAdministratorRights]()
```go
func SetMyDefaultAdministratorRights(ctx context.Context, b *client.Bot, p *SetMyDefaultAdministratorRightsParams) (bool, error)
```
SetMyDefaultAdministratorRights calls the setMyDefaultAdministratorRights Telegram Bot API method.
Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are free to modify the list before adding the bot. Returns True on success.
## func [SetMyDescription]()
```go
func SetMyDescription(ctx context.Context, b *client.Bot, p *SetMyDescriptionParams) (bool, error)
```
SetMyDescription calls the setMyDescription Telegram Bot API method.
Use this method to change the bot's description, which is shown in the chat with the bot if the chat is empty. Returns True on success.
## func [SetMyName]()
```go
func SetMyName(ctx context.Context, b *client.Bot, p *SetMyNameParams) (bool, error)
```
SetMyName calls the setMyName Telegram Bot API method.
Use this method to change the bot's name. Returns True on success.
## func [SetMyProfilePhoto]()
```go
func SetMyProfilePhoto(ctx context.Context, b *client.Bot, p *SetMyProfilePhotoParams) (bool, error)
```
SetMyProfilePhoto calls the setMyProfilePhoto Telegram Bot API method.
Changes the profile photo of the bot. Returns True on success.
## func [SetMyShortDescription]()
```go
func SetMyShortDescription(ctx context.Context, b *client.Bot, p *SetMyShortDescriptionParams) (bool, error)
```
SetMyShortDescription calls the setMyShortDescription Telegram Bot API method.
Use this method to change the bot's short description, which is shown on the bot's profile page and is sent together with the link when users share the bot. Returns True on success.
## func [SetPassportDataErrors]()
```go
func SetPassportDataErrors(ctx context.Context, b *client.Bot, p *SetPassportDataErrorsParams) (bool, error)
```
SetPassportDataErrors calls the setPassportDataErrors Telegram Bot API method.
Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re\-submit their Passport to you until the errors are fixed \(the contents of the field for which you returned the error must change\). Returns True on success. Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues.
## func [SetStickerEmojiList]()
```go
func SetStickerEmojiList(ctx context.Context, b *client.Bot, p *SetStickerEmojiListParams) (bool, error)
```
SetStickerEmojiList calls the setStickerEmojiList Telegram Bot API method.
Use this method to change the list of emoji assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns True on success.
## func [SetStickerKeywords]()
```go
func SetStickerKeywords(ctx context.Context, b *client.Bot, p *SetStickerKeywordsParams) (bool, error)
```
SetStickerKeywords calls the setStickerKeywords Telegram Bot API method.
Use this method to change search keywords assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns True on success.
## func [SetStickerMaskPosition]()
```go
func SetStickerMaskPosition(ctx context.Context, b *client.Bot, p *SetStickerMaskPositionParams) (bool, error)
```
SetStickerMaskPosition calls the setStickerMaskPosition Telegram Bot API method.
Use this method to change the mask position of a mask sticker. The sticker must belong to a sticker set that was created by the bot. Returns True on success.
## func [SetStickerPositionInSet]()
```go
func SetStickerPositionInSet(ctx context.Context, b *client.Bot, p *SetStickerPositionInSetParams) (bool, error)
```
SetStickerPositionInSet calls the setStickerPositionInSet Telegram Bot API method.
Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.
## func [SetStickerSetThumbnail]()
```go
func SetStickerSetThumbnail(ctx context.Context, b *client.Bot, p *SetStickerSetThumbnailParams) (bool, error)
```
SetStickerSetThumbnail calls the setStickerSetThumbnail Telegram Bot API method.
Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail file must match the format of the stickers in the set. Returns True on success.
## func [SetStickerSetTitle]()
```go
func SetStickerSetTitle(ctx context.Context, b *client.Bot, p *SetStickerSetTitleParams) (bool, error)
```
SetStickerSetTitle calls the setStickerSetTitle Telegram Bot API method.
Use this method to set the title of a created sticker set. Returns True on success.
## func [SetUserEmojiStatus]()
```go
func SetUserEmojiStatus(ctx context.Context, b *client.Bot, p *SetUserEmojiStatusParams) (bool, error)
```
SetUserEmojiStatus calls the setUserEmojiStatus Telegram Bot API method.
Changes the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method requestEmojiStatusAccess. Returns True on success.
## func [SetWebhook]()
```go
func SetWebhook(ctx context.Context, b *client.Bot, p *SetWebhookParams) (bool, error)
```
SetWebhook calls the setWebhook Telegram Bot API method.
Use this method to specify a URL and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified URL, containing a JSON\-serialized Update. In case of an unsuccessful request \(a request with response HTTP status code different from 2XY\), we will repeat the request and give up after a reasonable amount of attempts. Returns True on success. If you'd like to make sure that the webhook was set by you, you can specify secret data in the parameter secret\_token. If specified, the request will contain a header “X\-Telegram\-Bot\-Api\-Secret\-Token” with the secret token as content. Notes1. You will not be able to receive updates using getUpdates for as long as an outgoing webhook is set up.2. To use a self\-signed certificate, you need to upload your public key certificate using certificate parameter. Please upload as InputFile, sending a String will not work.3. Ports currently supported for webhooks: 443, 80, 88, 8443. If you're having any trouble setting up webhooks, please check out this amazing guide to webhooks.
## func [TransferBusinessAccountStars]()
```go
func TransferBusinessAccountStars(ctx context.Context, b *client.Bot, p *TransferBusinessAccountStarsParams) (bool, error)
```
TransferBusinessAccountStars calls the transferBusinessAccountStars Telegram Bot API method.
Transfers Telegram Stars from the business account balance to the bot's balance. Requires the can\_transfer\_stars business bot right. Returns True on success.
## func [TransferGift]()
```go
func TransferGift(ctx context.Context, b *client.Bot, p *TransferGiftParams) (bool, error)
```
TransferGift calls the transferGift Telegram Bot API method.
Transfers an owned unique gift to another user. Requires the can\_transfer\_and\_upgrade\_gifts business bot right. Requires can\_transfer\_stars business bot right if the transfer is paid. Returns True on success.
## func [UnbanChatMember]()
```go
func UnbanChatMember(ctx context.Context, b *client.Bot, p *UnbanChatMemberParams) (bool, error)
```
UnbanChatMember calls the unbanChatMember Telegram Bot API method.
Use this method to unban a previously banned user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work. By default, this method guarantees that after the call the user is not a member of the chat, but will be able to join it. So if the user is a member of the chat they will also be removed from the chat. If you don't want this, use the parameter only\_if\_banned. Returns True on success.
## func [UnbanChatSenderChat]()
```go
func UnbanChatSenderChat(ctx context.Context, b *client.Bot, p *UnbanChatSenderChatParams) (bool, error)
```
UnbanChatSenderChat calls the unbanChatSenderChat Telegram Bot API method.
Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success.
## func [UnhideGeneralForumTopic]()
```go
func UnhideGeneralForumTopic(ctx context.Context, b *client.Bot, p *UnhideGeneralForumTopicParams) (bool, error)
```
UnhideGeneralForumTopic calls the unhideGeneralForumTopic Telegram Bot API method.
Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can\_manage\_topics administrator rights. Returns True on success.
## func [UnpinAllChatMessages]()
```go
func UnpinAllChatMessages(ctx context.Context, b *client.Bot, p *UnpinAllChatMessagesParams) (bool, error)
```
UnpinAllChatMessages calls the unpinAllChatMessages Telegram Bot API method.
Use this method to clear the list of pinned messages in a chat. In private chats and channel direct messages chats, no additional rights are required to unpin all pinned messages. Conversely, the bot must be an administrator with the 'can\_pin\_messages' right or the 'can\_edit\_messages' right to unpin all pinned messages in groups and channels respectively. Returns True on success.
## func [UnpinAllForumTopicMessages]()
```go
func UnpinAllForumTopicMessages(ctx context.Context, b *client.Bot, p *UnpinAllForumTopicMessagesParams) (bool, error)
```
UnpinAllForumTopicMessages calls the unpinAllForumTopicMessages Telegram Bot API method.
Use this method to clear the list of pinned messages in a forum topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the can\_pin\_messages administrator right in the supergroup. Returns True on success.
## func [UnpinAllGeneralForumTopicMessages]()
```go
func UnpinAllGeneralForumTopicMessages(ctx context.Context, b *client.Bot, p *UnpinAllGeneralForumTopicMessagesParams) (bool, error)
```
UnpinAllGeneralForumTopicMessages calls the unpinAllGeneralForumTopicMessages Telegram Bot API method.
Use this method to clear the list of pinned messages in a General forum topic. The bot must be an administrator in the chat for this to work and must have the can\_pin\_messages administrator right in the supergroup. Returns True on success.
## func [UnpinChatMessage]()
```go
func UnpinChatMessage(ctx context.Context, b *client.Bot, p *UnpinChatMessageParams) (bool, error)
```
UnpinChatMessage calls the unpinChatMessage Telegram Bot API method.
Use this method to remove a message from the list of pinned messages in a chat. In private chats and channel direct messages chats, all messages can be unpinned. Conversely, the bot must be an administrator with the 'can\_pin\_messages' right or the 'can\_edit\_messages' right to unpin messages in groups and channels respectively. Returns True on success.
## func [UpgradeGift]()
```go
func UpgradeGift(ctx context.Context, b *client.Bot, p *UpgradeGiftParams) (bool, error)
```
UpgradeGift calls the upgradeGift Telegram Bot API method.
Upgrades a given regular gift to a unique gift. Requires the can\_transfer\_and\_upgrade\_gifts business bot right. Additionally requires the can\_transfer\_stars business bot right if the upgrade is paid. Returns True on success.
## func [VerifyChat]()
```go
func VerifyChat(ctx context.Context, b *client.Bot, p *VerifyChatParams) (bool, error)
```
VerifyChat calls the verifyChat Telegram Bot API method.
Verifies a chat on behalf of the organization which is represented by the bot. Returns True on success.
## func [VerifyUser]()
```go
func VerifyUser(ctx context.Context, b *client.Bot, p *VerifyUserParams) (bool, error)
```
VerifyUser calls the verifyUser Telegram Bot API method.
Verifies a user on behalf of the organization which is represented by the bot. Returns True on success.
## type [AcceptedGiftTypes]()
This object describes the types of gifts that can be gifted to a user or a chat.
```go
type AcceptedGiftTypes struct {
// True, if unlimited regular gifts are accepted
UnlimitedGifts bool `json:"unlimited_gifts"`
// True, if limited regular gifts are accepted
LimitedGifts bool `json:"limited_gifts"`
// True, if unique gifts or gifts that can be upgraded to unique for free are accepted
UniqueGifts bool `json:"unique_gifts"`
// True, if a Telegram Premium subscription is accepted
PremiumSubscription bool `json:"premium_subscription"`
// True, if transfers of unique gifts from channels are accepted
GiftsFromChannels bool `json:"gifts_from_channels"`
}
```
## type [AddStickerToSetParams]()
AddStickerToSetParams is the parameter set for AddStickerToSet.
Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 200 stickers. Other sticker sets can have up to 120 stickers. Returns True on success.
```go
type AddStickerToSetParams struct {
// User identifier of sticker set owner
UserID int64 `json:"user_id"`
// Sticker set name
Name string `json:"name"`
// A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set isn't changed.
Sticker InputSticker `json:"sticker"`
}
```
## type [AffiliateInfo]()
Contains information about the affiliate that received a commission via this transaction.
```go
type AffiliateInfo struct {
// Optional. The bot or the user that received an affiliate commission if it was received by a bot or a user
AffiliateUser *User `json:"affiliate_user,omitempty"`
// Optional. The chat that received an affiliate commission if it was received by a chat
AffiliateChat *Chat `json:"affiliate_chat,omitempty"`
// The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users
CommissionPerMille int64 `json:"commission_per_mille"`
// Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds
Amount int64 `json:"amount"`
// Optional. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds
NanostarAmount *int64 `json:"nanostar_amount,omitempty"`
}
```
## type [Animation]()
This object represents an animation file \(GIF or H.264/MPEG\-4 AVC video without sound\).
```go
type Animation struct {
// Identifier for this file, which can be used to download or reuse the file
FileID string `json:"file_id"`
// Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
FileUniqueID string `json:"file_unique_id"`
// Video width as defined by the sender
Width int64 `json:"width"`
// Video height as defined by the sender
Height int64 `json:"height"`
// Duration of the video in seconds as defined by the sender
Duration int64 `json:"duration"`
// Optional. Animation thumbnail as defined by the sender
Thumbnail *PhotoSize `json:"thumbnail,omitempty"`
// Optional. Original animation filename as defined by the sender
FileName string `json:"file_name,omitempty"`
// Optional. MIME type of the file as defined by the sender
MimeType string `json:"mime_type,omitempty"`
// Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.
FileSize *int64 `json:"file_size,omitempty"`
}
```
## type [AnswerCallbackQueryParams]()
AnswerCallbackQueryParams is the parameter set for AnswerCallbackQuery.
Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned. Alternatively, the user can be redirected to the specified Game URL. For this option to work, you must first create a game for your bot via @BotFather and accept the terms. Otherwise, you may use links like t.me/your\_bot?start=XXXX that open your bot with a parameter.
```go
type AnswerCallbackQueryParams struct {
// Unique identifier for the query to be answered
CallbackQueryID string `json:"callback_query_id"`
// Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters
Text string `json:"text,omitempty"`
// If True, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false.
ShowAlert *bool `json:"show_alert,omitempty"`
// URL that will be opened by the user's client. If you have created a Game and accepted the conditions via @BotFather, specify the URL that opens your game - note that this will only work if the query comes from a callback_game button.Otherwise, you may use links like t.me/your_bot?start=XXXX that open your bot with a parameter.
URL string `json:"url,omitempty"`
// The maximum amount of time in seconds that the result of the callback query may be cached client-side. Telegram apps will support caching starting in version 3.14. Defaults to 0.
CacheTime *int64 `json:"cache_time,omitempty"`
}
```
## type [AnswerGuestQueryParams]()
AnswerGuestQueryParams is the parameter set for AnswerGuestQuery.
Use this method to reply to a received guest message. On success, a SentGuestMessage object is returned.
```go
type AnswerGuestQueryParams struct {
// Unique identifier for the query to be answered
GuestQueryID string `json:"guest_query_id"`
// A JSON-serialized object describing the message to be sent
Result InlineQueryResult `json:"result"`
}
```
## type [AnswerInlineQueryParams]()
AnswerInlineQueryParams is the parameter set for AnswerInlineQuery.
Use this method to send answers to an inline query. On success, True is returned.No more than 50 results per query are allowed.
```go
type AnswerInlineQueryParams struct {
// Unique identifier for the answered query
InlineQueryID string `json:"inline_query_id"`
// A JSON-serialized array of results for the inline query
Results []InlineQueryResult `json:"results"`
// The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.
CacheTime *int64 `json:"cache_time,omitempty"`
// Pass True if results may be cached on the server side 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,omitempty"`
// Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes.
NextOffset string `json:"next_offset,omitempty"`
// A JSON-serialized object describing a button to be shown above inline query results
Button *InlineQueryResultsButton `json:"button,omitempty"`
}
```
## type [AnswerPreCheckoutQueryParams]()
AnswerPreCheckoutQueryParams is the parameter set for AnswerPreCheckoutQuery.
Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre\_checkout\_query. Use this method to respond to such pre\-checkout queries. On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after the pre\-checkout query was sent.
```go
type AnswerPreCheckoutQueryParams struct {
// Unique identifier for the query to be answered
PreCheckoutQueryID string `json:"pre_checkout_query_id"`
// Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems.
Ok bool `json:"ok"`
// Required if ok is False. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user.
ErrorMessage string `json:"error_message,omitempty"`
}
```
## type [AnswerShippingQueryParams]()
AnswerShippingQueryParams is the parameter set for AnswerShippingQuery.
If you sent an invoice requesting a shipping address and the parameter is\_flexible was specified, the Bot API will send an Update with a shipping\_query field to the bot. Use this method to reply to shipping queries. On success, True is returned.
```go
type AnswerShippingQueryParams struct {
// Unique identifier for the query to be answered
ShippingQueryID string `json:"shipping_query_id"`
// Pass True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible)
Ok bool `json:"ok"`
// Required if ok is True. A JSON-serialized array of available shipping options.
ShippingOptions []ShippingOption `json:"shipping_options,omitempty"`
// Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. “Sorry, delivery to your desired address is unavailable”). Telegram will display this message to the user.
ErrorMessage string `json:"error_message,omitempty"`
}
```
## type [AnswerWebAppQueryParams]()
AnswerWebAppQueryParams is the parameter set for AnswerWebAppQuery.
Use this method to set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated. On success, a SentWebAppMessage object is returned.
```go
type AnswerWebAppQueryParams struct {
// Unique identifier for the query to be answered
WebAppQueryID string `json:"web_app_query_id"`
// A JSON-serialized object describing the message to be sent
Result InlineQueryResult `json:"result"`
}
```
## type [ApproveChatJoinRequestParams]()
ApproveChatJoinRequestParams is the parameter set for ApproveChatJoinRequest.
Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the can\_invite\_users administrator right. Returns True on success.
```go
type ApproveChatJoinRequestParams struct {
// Unique identifier for the target chat or username of the target channel in the format @username
ChatID ChatID `json:"chat_id"`
// Unique identifier of the target user
UserID int64 `json:"user_id"`
}
```
## type [ApproveSuggestedPostParams]()
ApproveSuggestedPostParams is the parameter set for ApproveSuggestedPost.
Use this method to approve a suggested post in a direct messages chat. The bot must have the 'can\_post\_messages' administrator right in the corresponding channel chat. Returns True on success.
```go
type ApproveSuggestedPostParams struct {
// Unique identifier for the target direct messages chat
ChatID int64 `json:"chat_id"`
// Identifier of a suggested post message to approve
MessageID int64 `json:"message_id"`
// Point in time (Unix timestamp) when the post is expected to be published; omit if the date has already been specified when the suggested post was created. If specified, then the date must be not more than 2678400 seconds (30 days) in the future
SendDate *int64 `json:"send_date,omitempty"`
}
```
## type [Audio]()
This object represents an audio file to be treated as music by the Telegram clients.
```go
type Audio struct {
// Identifier for this file, which can be used to download or reuse the file
FileID string `json:"file_id"`
// Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
FileUniqueID string `json:"file_unique_id"`
// Duration of the audio in seconds as defined by the sender
Duration int64 `json:"duration"`
// Optional. Performer of the audio as defined by the sender or by audio tags
Performer string `json:"performer,omitempty"`
// Optional. Title of the audio as defined by the sender or by audio tags
Title string `json:"title,omitempty"`
// Optional. Original filename as defined by the sender
FileName string `json:"file_name,omitempty"`
// Optional. MIME type of the file as defined by the sender
MimeType string `json:"mime_type,omitempty"`
// Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.
FileSize *int64 `json:"file_size,omitempty"`
// Optional. Thumbnail of the album cover to which the music file belongs
Thumbnail *PhotoSize `json:"thumbnail,omitempty"`
}
```
## type [BackgroundFill]()
BackgroundFill is a union type. The following concrete variants implement it:
- BackgroundFillSolid
- BackgroundFillGradient
- BackgroundFillFreeformGradient
This object describes the way a background is filled based on the selected colors. Currently, it can be one of
```go
type BackgroundFill interface {
// contains filtered or unexported methods
}
```
### func [UnmarshalBackgroundFill]()
```go
func UnmarshalBackgroundFill(data []byte) (BackgroundFill, error)
```
UnmarshalBackgroundFill decodes a BackgroundFill from JSON by inspecting the "type" field and dispatching to the correct concrete type.
## type [BackgroundFillFreeformGradient]()
The background is a freeform gradient that rotates after every message in the chat.
```go
type BackgroundFillFreeformGradient struct {
// Type of the background fill, always “freeform_gradient”
Type BackgroundFillType `json:"type"`
// A list of the 3 or 4 base colors that are used to generate the freeform gradient in the RGB24 format
Colors []int64 `json:"colors"`
}
```
### func \(\*BackgroundFillFreeformGradient\) [MarshalJSON]()
```go
func (v *BackgroundFillFreeformGradient) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes BackgroundFillFreeformGradient with the discriminator field "type" forced to "freeform\_gradient". The hardcoded value frees callers from setting Type by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [BackgroundFillGradient]()
The background is a gradient fill.
```go
type BackgroundFillGradient struct {
// Type of the background fill, always “gradient”
Type BackgroundFillType `json:"type"`
// Top color of the gradient in the RGB24 format
TopColor int64 `json:"top_color"`
// Bottom color of the gradient in the RGB24 format
BottomColor int64 `json:"bottom_color"`
// Clockwise rotation angle of the background fill in degrees; 0-359
RotationAngle int64 `json:"rotation_angle"`
}
```
### func \(\*BackgroundFillGradient\) [MarshalJSON]()
```go
func (v *BackgroundFillGradient) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes BackgroundFillGradient with the discriminator field "type" forced to "gradient". The hardcoded value frees callers from setting Type by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [BackgroundFillSolid]()
The background is filled using the selected color.
```go
type BackgroundFillSolid struct {
// Type of the background fill, always “solid”
Type BackgroundFillType `json:"type"`
// The color of the background fill in the RGB24 format
Color int64 `json:"color"`
}
```
### func \(\*BackgroundFillSolid\) [MarshalJSON]()
```go
func (v *BackgroundFillSolid) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes BackgroundFillSolid with the discriminator field "type" forced to "solid". The hardcoded value frees callers from setting Type by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [BackgroundFillType]()
```go
type BackgroundFillType string
```
```go
const (
BackgroundFillTypeSolid BackgroundFillType = "solid"
BackgroundFillTypeGradient BackgroundFillType = "gradient"
BackgroundFillTypeFreeformGradient BackgroundFillType = "freeform_gradient"
)
```
## type [BackgroundType]()
BackgroundType is a union type. The following concrete variants implement it:
- BackgroundTypeFill
- BackgroundTypeWallpaper
- BackgroundTypePattern
- BackgroundTypeChatTheme
This object describes the type of a background. Currently, it can be one of
```go
type BackgroundType interface {
// contains filtered or unexported methods
}
```
### func [UnmarshalBackgroundType]()
```go
func UnmarshalBackgroundType(data []byte) (BackgroundType, error)
```
UnmarshalBackgroundType decodes a BackgroundType from JSON by inspecting the "type" field and dispatching to the correct concrete type.
## type [BackgroundTypeChatTheme]()
The background is taken directly from a built\-in chat theme.
```go
type BackgroundTypeChatTheme struct {
// Type of the background, always “chat_theme”
Type BackgroundTypeKind `json:"type"`
// Name of the chat theme, which is usually an emoji
ThemeName string `json:"theme_name"`
}
```
### func \(\*BackgroundTypeChatTheme\) [MarshalJSON]()
```go
func (v *BackgroundTypeChatTheme) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes BackgroundTypeChatTheme with the discriminator field "type" forced to "chat\_theme". The hardcoded value frees callers from setting Type by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [BackgroundTypeFill]()
The background is automatically filled based on the selected colors.
```go
type BackgroundTypeFill struct {
// Type of the background, always “fill”
Type BackgroundTypeKind `json:"type"`
// The background fill
Fill BackgroundFill `json:"fill"`
// Dimming of the background in dark themes, as a percentage; 0-100
DarkThemeDimming int64 `json:"dark_theme_dimming"`
}
```
### func \(\*BackgroundTypeFill\) [MarshalJSON]()
```go
func (v *BackgroundTypeFill) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes BackgroundTypeFill with the discriminator field "type" forced to "fill". The hardcoded value frees callers from setting Type by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
### func \(\*BackgroundTypeFill\) [UnmarshalJSON]()
```go
func (m *BackgroundTypeFill) UnmarshalJSON(data []byte) error
```
UnmarshalJSON decodes BackgroundTypeFill by dispatching union\-typed fields \(Fill\) through their concrete UnmarshalXxx helpers.
## type [BackgroundTypeKind]()
```go
type BackgroundTypeKind string
```
```go
const (
BackgroundTypeKindFill BackgroundTypeKind = "fill"
BackgroundTypeKindWallpaper BackgroundTypeKind = "wallpaper"
BackgroundTypeKindPattern BackgroundTypeKind = "pattern"
BackgroundTypeKindChatTheme BackgroundTypeKind = "chat_theme"
)
```
## type [BackgroundTypePattern]()
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.
```go
type BackgroundTypePattern struct {
// Type of the background, always “pattern”
Type BackgroundTypeKind `json:"type"`
// Document with the pattern
Document Document `json:"document"`
// The background fill that is combined with the pattern
Fill BackgroundFill `json:"fill"`
// Intensity of the pattern when it is shown above the filled background; 0-100
Intensity int64 `json:"intensity"`
// Optional. 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,omitempty"`
// Optional. True, if the background moves slightly when the device is tilted
IsMoving *bool `json:"is_moving,omitempty"`
}
```
### func \(\*BackgroundTypePattern\) [MarshalJSON]()
```go
func (v *BackgroundTypePattern) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes BackgroundTypePattern with the discriminator field "type" forced to "pattern". The hardcoded value frees callers from setting Type by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
### func \(\*BackgroundTypePattern\) [UnmarshalJSON]()
```go
func (m *BackgroundTypePattern) UnmarshalJSON(data []byte) error
```
UnmarshalJSON decodes BackgroundTypePattern by dispatching union\-typed fields \(Fill\) through their concrete UnmarshalXxx helpers.
## type [BackgroundTypeWallpaper]()
The background is a wallpaper in the JPEG format.
```go
type BackgroundTypeWallpaper struct {
// Type of the background, always “wallpaper”
Type BackgroundTypeKind `json:"type"`
// Document with the wallpaper
Document Document `json:"document"`
// Dimming of the background in dark themes, as a percentage; 0-100
DarkThemeDimming int64 `json:"dark_theme_dimming"`
// Optional. True, if the wallpaper is downscaled to fit in a 450x450 square and then box-blurred with radius 12
IsBlurred *bool `json:"is_blurred,omitempty"`
// Optional. True, if the background moves slightly when the device is tilted
IsMoving *bool `json:"is_moving,omitempty"`
}
```
### func \(\*BackgroundTypeWallpaper\) [MarshalJSON]()
```go
func (v *BackgroundTypeWallpaper) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes BackgroundTypeWallpaper with the discriminator field "type" forced to "wallpaper". The hardcoded value frees callers from setting Type by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [BanChatMemberParams]()
BanChatMemberParams is the parameter set for BanChatMember.
Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.
```go
type BanChatMemberParams struct {
// Unique identifier for the target group or username of the target supergroup or channel in the format @username
ChatID ChatID `json:"chat_id"`
// Unique identifier of the target user
UserID int64 `json:"user_id"`
// Date when the user will be unbanned; Unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only.
UntilDate *int64 `json:"until_date,omitempty"`
// Pass True to delete all messages from the chat for the user that is being removed. If False, the user will be able to see messages in the group that were sent before the user was removed. Always True for supergroups and channels.
RevokeMessages *bool `json:"revoke_messages,omitempty"`
}
```
## type [BanChatSenderChatParams]()
BanChatSenderChatParams is the parameter set for BanChatSenderChat.
Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success.
```go
type BanChatSenderChatParams struct {
// Unique identifier for the target chat or username of the target channel in the format @username
ChatID ChatID `json:"chat_id"`
// Unique identifier of the target sender chat
SenderChatID int64 `json:"sender_chat_id"`
}
```
## type [Birthdate]()
Describes the birthdate of a user.
```go
type Birthdate struct {
// Day of the user's birth; 1-31
Day int64 `json:"day"`
// Month of the user's birth; 1-12
Month int64 `json:"month"`
// Optional. Year of the user's birth
Year *int64 `json:"year,omitempty"`
}
```
## type [BotAccessSettings]()
This object describes the access settings of a bot.
```go
type BotAccessSettings struct {
// True, if only selected users can access the bot. The bot's owner can always access it.
IsAccessRestricted bool `json:"is_access_restricted"`
// Optional. The list of other users who have access to the bot if the access is restricted
AddedUsers []User `json:"added_users,omitempty"`
}
```
### func [GetManagedBotAccessSettings]()
```go
func GetManagedBotAccessSettings(ctx context.Context, b *client.Bot, p *GetManagedBotAccessSettingsParams) (*BotAccessSettings, error)
```
GetManagedBotAccessSettings calls the getManagedBotAccessSettings Telegram Bot API method.
Use this method to get the access settings of a managed bot. Returns a BotAccessSettings object on success.
## type [BotCommand]()
This object represents a bot command.
```go
type BotCommand struct {
// Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.
Command string `json:"command"`
// Description of the command; 1-256 characters.
Description string `json:"description"`
}
```
### func [GetMyCommands]()
```go
func GetMyCommands(ctx context.Context, b *client.Bot, p *GetMyCommandsParams) ([]BotCommand, error)
```
GetMyCommands calls the getMyCommands Telegram Bot API method.
Use this method to get the current list of the bot's commands for the given scope and user language. Returns an Array of BotCommand objects. If commands aren't set, an empty list is returned.
## type [BotCommandScope]()
BotCommandScope is a union type. The following concrete variants implement it:
- BotCommandScopeDefault
- BotCommandScopeAllPrivateChats
- BotCommandScopeAllGroupChats
- BotCommandScopeAllChatAdministrators
- BotCommandScopeChat
- BotCommandScopeChatAdministrators
- BotCommandScopeChatMember
This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported:
```go
type BotCommandScope interface {
// contains filtered or unexported methods
}
```
## type [BotCommandScopeAllChatAdministrators]()
Represents the scope of bot commands, covering all group and supergroup chat administrators.
```go
type BotCommandScopeAllChatAdministrators struct {
// Scope type, must be all_chat_administrators
Type BotCommandScopeType `json:"type"`
}
```
### func \(\*BotCommandScopeAllChatAdministrators\) [MarshalJSON]()
```go
func (v *BotCommandScopeAllChatAdministrators) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes BotCommandScopeAllChatAdministrators with the discriminator field "type" forced to "all\_chat\_administrators". The hardcoded value frees callers from setting Type by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [BotCommandScopeAllGroupChats]()
Represents the scope of bot commands, covering all group and supergroup chats.
```go
type BotCommandScopeAllGroupChats struct {
// Scope type, must be all_group_chats
Type BotCommandScopeType `json:"type"`
}
```
### func \(\*BotCommandScopeAllGroupChats\) [MarshalJSON]()
```go
func (v *BotCommandScopeAllGroupChats) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes BotCommandScopeAllGroupChats with the discriminator field "type" forced to "all\_group\_chats". The hardcoded value frees callers from setting Type by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [BotCommandScopeAllPrivateChats]()
Represents the scope of bot commands, covering all private chats.
```go
type BotCommandScopeAllPrivateChats struct {
// Scope type, must be all_private_chats
Type BotCommandScopeType `json:"type"`
}
```
### func \(\*BotCommandScopeAllPrivateChats\) [MarshalJSON]()
```go
func (v *BotCommandScopeAllPrivateChats) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes BotCommandScopeAllPrivateChats with the discriminator field "type" forced to "all\_private\_chats". The hardcoded value frees callers from setting Type by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [BotCommandScopeChat]()
Represents the scope of bot commands, covering a specific chat.
```go
type BotCommandScopeChat struct {
// Scope type, must be chat
Type BotCommandScopeType `json:"type"`
// Unique identifier for the target chat or username of the target supergroup in the format @username. Channel direct messages chats and channel chats aren't supported.
ChatID ChatID `json:"chat_id"`
}
```
### func \(\*BotCommandScopeChat\) [MarshalJSON]()
```go
func (v *BotCommandScopeChat) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes BotCommandScopeChat with the discriminator field "type" forced to "chat". The hardcoded value frees callers from setting Type by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [BotCommandScopeChatAdministrators]()
Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.
```go
type BotCommandScopeChatAdministrators struct {
// Scope type, must be chat_administrators
Type BotCommandScopeType `json:"type"`
// Unique identifier for the target chat or username of the target supergroup in the format @username. Channel direct messages chats and channel chats aren't supported.
ChatID ChatID `json:"chat_id"`
}
```
### func \(\*BotCommandScopeChatAdministrators\) [MarshalJSON]()
```go
func (v *BotCommandScopeChatAdministrators) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes BotCommandScopeChatAdministrators with the discriminator field "type" forced to "chat\_administrators". The hardcoded value frees callers from setting Type by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [BotCommandScopeChatMember]()
Represents the scope of bot commands, covering a specific member of a group or supergroup chat.
```go
type BotCommandScopeChatMember struct {
// Scope type, must be chat_member
Type BotCommandScopeType `json:"type"`
// Unique identifier for the target chat or username of the target supergroup in the format @username. Channel direct messages chats and channel chats aren't supported.
ChatID ChatID `json:"chat_id"`
// Unique identifier of the target user
UserID int64 `json:"user_id"`
}
```
### func \(\*BotCommandScopeChatMember\) [MarshalJSON]()
```go
func (v *BotCommandScopeChatMember) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes BotCommandScopeChatMember with the discriminator field "type" forced to "chat\_member". The hardcoded value frees callers from setting Type by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [BotCommandScopeDefault]()
Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user.
```go
type BotCommandScopeDefault struct {
// Scope type, must be default
Type BotCommandScopeType `json:"type"`
}
```
### func \(\*BotCommandScopeDefault\) [MarshalJSON]()
```go
func (v *BotCommandScopeDefault) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes BotCommandScopeDefault with the discriminator field "type" forced to "default". The hardcoded value frees callers from setting Type by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [BotCommandScopeType]()
```go
type BotCommandScopeType string
```
```go
const (
BotCommandScopeTypeDefault BotCommandScopeType = "default"
BotCommandScopeTypeAllPrivateChats BotCommandScopeType = "all_private_chats"
BotCommandScopeTypeAllGroupChats BotCommandScopeType = "all_group_chats"
BotCommandScopeTypeAllChatAdministrators BotCommandScopeType = "all_chat_administrators"
BotCommandScopeTypeChat BotCommandScopeType = "chat"
BotCommandScopeTypeChatAdministrators BotCommandScopeType = "chat_administrators"
BotCommandScopeTypeChatMember BotCommandScopeType = "chat_member"
)
```
## type [BotDescription]()
This object represents the bot's description.
```go
type BotDescription struct {
// The bot's description
Description string `json:"description"`
}
```
### func [GetMyDescription]()
```go
func GetMyDescription(ctx context.Context, b *client.Bot, p *GetMyDescriptionParams) (*BotDescription, error)
```
GetMyDescription calls the getMyDescription Telegram Bot API method.
Use this method to get the current bot description for the given user language. Returns BotDescription on success.
## type [BotName]()
This object represents the bot's name.
```go
type BotName struct {
// The bot's name
Name string `json:"name"`
}
```
### func [GetMyName]()
```go
func GetMyName(ctx context.Context, b *client.Bot, p *GetMyNameParams) (*BotName, error)
```
GetMyName calls the getMyName Telegram Bot API method.
Use this method to get the current bot name for the given user language. Returns BotName on success.
## type [BotShortDescription]()
This object represents the bot's short description.
```go
type BotShortDescription struct {
// The bot's short description
ShortDescription string `json:"short_description"`
}
```
### func [GetMyShortDescription]()
```go
func GetMyShortDescription(ctx context.Context, b *client.Bot, p *GetMyShortDescriptionParams) (*BotShortDescription, error)
```
GetMyShortDescription calls the getMyShortDescription Telegram Bot API method.
Use this method to get the current bot short description for the given user language. Returns BotShortDescription on success.
## type [BusinessBotRights]()
Represents the rights of a business bot.
```go
type BusinessBotRights struct {
// Optional. True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours
CanReply *bool `json:"can_reply,omitempty"`
// Optional. True, if the bot can mark incoming private messages as read
CanReadMessages *bool `json:"can_read_messages,omitempty"`
// Optional. True, if the bot can delete messages sent by the bot
CanDeleteSentMessages *bool `json:"can_delete_sent_messages,omitempty"`
// Optional. True, if the bot can delete all private messages in managed chats
CanDeleteAllMessages *bool `json:"can_delete_all_messages,omitempty"`
// Optional. True, if the bot can edit the first and last name of the business account
CanEditName *bool `json:"can_edit_name,omitempty"`
// Optional. True, if the bot can edit the bio of the business account
CanEditBio *bool `json:"can_edit_bio,omitempty"`
// Optional. True, if the bot can edit the profile photo of the business account
CanEditProfilePhoto *bool `json:"can_edit_profile_photo,omitempty"`
// Optional. True, if the bot can edit the username of the business account
CanEditUsername *bool `json:"can_edit_username,omitempty"`
// Optional. True, if the bot can change the privacy settings pertaining to gifts for the business account
CanChangeGiftSettings *bool `json:"can_change_gift_settings,omitempty"`
// Optional. True, if the bot can view gifts and the amount of Telegram Stars owned by the business account
CanViewGiftsAndStars *bool `json:"can_view_gifts_and_stars,omitempty"`
// Optional. True, if the bot can convert regular gifts owned by the business account to Telegram Stars
CanConvertGiftsToStars *bool `json:"can_convert_gifts_to_stars,omitempty"`
// Optional. True, if the bot can transfer and upgrade gifts owned by the business account
CanTransferAndUpgradeGifts *bool `json:"can_transfer_and_upgrade_gifts,omitempty"`
// Optional. True, if the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts
CanTransferStars *bool `json:"can_transfer_stars,omitempty"`
// Optional. True, if the bot can post, edit and delete stories on behalf of the business account
CanManageStories *bool `json:"can_manage_stories,omitempty"`
}
```
## type [BusinessConnection]()
Describes the connection of the bot with a business account.
```go
type BusinessConnection struct {
// Unique identifier of the business connection
ID string `json:"id"`
// Business account user that created the business connection
User User `json:"user"`
// Identifier of a private chat with the user who created the business connection. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
UserChatID int64 `json:"user_chat_id"`
// Date the connection was established in Unix time
Date int64 `json:"date"`
// Optional. Rights of the business bot
Rights *BusinessBotRights `json:"rights,omitempty"`
// True, if the connection is active
IsEnabled bool `json:"is_enabled"`
}
```
### func [GetBusinessConnection]()
```go
func GetBusinessConnection(ctx context.Context, b *client.Bot, p *GetBusinessConnectionParams) (*BusinessConnection, error)
```
GetBusinessConnection calls the getBusinessConnection Telegram Bot API method.
Use this method to get information about the connection of the bot with a business account. Returns a BusinessConnection object on success.
## type [BusinessIntro]()
Contains information about the start page settings of a Telegram Business account.
```go
type BusinessIntro struct {
// Optional. Title text of the business intro
Title string `json:"title,omitempty"`
// Optional. Message text of the business intro
Message string `json:"message,omitempty"`
// Optional. Sticker of the business intro
Sticker *Sticker `json:"sticker,omitempty"`
}
```
## type [BusinessLocation]()
Contains information about the location of a Telegram Business account.
```go
type BusinessLocation struct {
// Address of the business
Address string `json:"address"`
// Optional. Location of the business
Location *Location `json:"location,omitempty"`
}
```
## type [BusinessMessagesDeleted]()
This object is received when messages are deleted from a connected business account.
```go
type BusinessMessagesDeleted struct {
// Unique identifier of the business connection
BusinessConnectionID string `json:"business_connection_id"`
// Information about a chat in the business account. The bot may not have access to the chat or the corresponding user.
Chat Chat `json:"chat"`
// The list of identifiers of deleted messages in the chat of the business account
MessageIds []int64 `json:"message_ids"`
}
```
## type [BusinessOpeningHours]()
Describes the opening hours of a business.
```go
type BusinessOpeningHours struct {
// Unique name of the time zone for which the opening hours are defined
TimeZoneName string `json:"time_zone_name"`
// List of time intervals describing business opening hours
OpeningHours []BusinessOpeningHoursInterval `json:"opening_hours"`
}
```
## type [BusinessOpeningHoursInterval]()
Describes an interval of time during which a business is open.
```go
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
OpeningMinute int64 `json:"opening_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; 0 - 8 * 24 * 60
ClosingMinute int64 `json:"closing_minute"`
}
```
## type [CallbackGame]()
A placeholder, currently holds no information. Use BotFather to set up your game.
```go
type CallbackGame struct {
}
```
## type [CallbackQuery]()
This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot \(in inline mode\), the field inline\_message\_id will be present. Exactly one of the fields data or game\_short\_name will be present. NOTE: After the user presses a callback button, Telegram clients will display a progress bar until you call answerCallbackQuery. It is, therefore, necessary to react by calling answerCallbackQuery even if no notification to the user is needed \(e.g., without specifying any of the optional parameters\).
```go
type CallbackQuery struct {
// Unique identifier for this query
ID string `json:"id"`
// Sender
From User `json:"from"`
// Optional. Message sent by the bot with the callback button that originated the query
Message MaybeInaccessibleMessage `json:"message,omitempty"`
// Optional. Identifier of the message sent via the bot in inline mode, that originated the query.
InlineMessageID string `json:"inline_message_id,omitempty"`
// Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
ChatInstance string `json:"chat_instance"`
// Optional. Data associated with the callback button. Be aware that the message originated the query can contain no callback buttons with this data.
Data string `json:"data,omitempty"`
// Optional. Short name of a Game to be returned, serves as the unique identifier for the game
GameShortName string `json:"game_short_name,omitempty"`
}
```
### func \(\*CallbackQuery\) [UnmarshalJSON]()
```go
func (m *CallbackQuery) UnmarshalJSON(data []byte) error
```
UnmarshalJSON decodes CallbackQuery by dispatching union\-typed fields \(Message\) through their concrete UnmarshalXxx helpers.
## type [Chat]()
This object represents a chat.
```go
type Chat struct {
// Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
ID int64 `json:"id"`
// Type of the chat, can be either “private”, “group”, “supergroup” or “channel”
Type ChatType `json:"type"`
// Optional. Title, for supergroups, channels and group chats
Title string `json:"title,omitempty"`
// Optional. Username, for private chats, supergroups and channels if available
Username string `json:"username,omitempty"`
// Optional. First name of the other party in a private chat
FirstName string `json:"first_name,omitempty"`
// Optional. Last name of the other party in a private chat
LastName string `json:"last_name,omitempty"`
// Optional. True, if the supergroup chat is a forum (has topics enabled)
IsForum *bool `json:"is_forum,omitempty"`
// Optional. True, if the chat is the direct messages chat of a channel
IsDirectMessages *bool `json:"is_direct_messages,omitempty"`
}
```
## type [ChatAdministratorRights]()
Represents the rights of an administrator in a chat.
```go
type ChatAdministratorRights struct {
// True, if the user's presence in the chat is hidden
IsAnonymous bool `json:"is_anonymous"`
// True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other administrator privilege.
CanManageChat bool `json:"can_manage_chat"`
// True, if the administrator can delete messages of other users
CanDeleteMessages bool `json:"can_delete_messages"`
// True, if the administrator can manage video chats
CanManageVideoChats bool `json:"can_manage_video_chats"`
// True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics
CanRestrictMembers bool `json:"can_restrict_members"`
// True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user)
CanPromoteMembers bool `json:"can_promote_members"`
// True, if the user is allowed to change the chat title, photo and other settings
CanChangeInfo bool `json:"can_change_info"`
// True, if the user is allowed to invite new users to the chat
CanInviteUsers bool `json:"can_invite_users"`
// True, if the administrator can post stories to the chat
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 the chat's story archive
CanEditStories bool `json:"can_edit_stories"`
// True, if the administrator can delete stories posted by other users
CanDeleteStories bool `json:"can_delete_stories"`
// Optional. True, if the administrator can post messages in the channel, approve suggested posts, or access channel statistics; for channels only
CanPostMessages *bool `json:"can_post_messages,omitempty"`
// Optional. True, if the administrator can edit messages of other users and can pin messages; for channels only
CanEditMessages *bool `json:"can_edit_messages,omitempty"`
// Optional. True, if the user is allowed to pin messages; for groups and supergroups only
CanPinMessages *bool `json:"can_pin_messages,omitempty"`
// Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only
CanManageTopics *bool `json:"can_manage_topics,omitempty"`
// Optional. True, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only
CanManageDirectMessages *bool `json:"can_manage_direct_messages,omitempty"`
// Optional. True, if the administrator can edit the tags of regular members; for groups and supergroups only. If omitted defaults to the value of can_pin_messages.
CanManageTags *bool `json:"can_manage_tags,omitempty"`
}
```
### func [GetMyDefaultAdministratorRights]()
```go
func GetMyDefaultAdministratorRights(ctx context.Context, b *client.Bot, p *GetMyDefaultAdministratorRightsParams) (*ChatAdministratorRights, error)
```
GetMyDefaultAdministratorRights calls the getMyDefaultAdministratorRights Telegram Bot API method.
Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success.
## type [ChatBackground]()
This object represents a chat background.
```go
type ChatBackground struct {
// Type of the background
Type BackgroundType `json:"type"`
}
```
### func \(\*ChatBackground\) [UnmarshalJSON]()
```go
func (m *ChatBackground) UnmarshalJSON(data []byte) error
```
UnmarshalJSON decodes ChatBackground by dispatching union\-typed fields \(Type\) through their concrete UnmarshalXxx helpers.
## type [ChatBoost]()
This object contains information about a chat boost.
```go
type ChatBoost struct {
// Unique identifier of the boost
BoostID string `json:"boost_id"`
// Point in time (Unix timestamp) when the chat was boosted
AddDate int64 `json:"add_date"`
// Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegram Premium subscription is prolonged
ExpirationDate int64 `json:"expiration_date"`
// Source of the added boost
Source ChatBoostSource `json:"source"`
}
```
### func \(\*ChatBoost\) [UnmarshalJSON]()
```go
func (m *ChatBoost) UnmarshalJSON(data []byte) error
```
UnmarshalJSON decodes ChatBoost by dispatching union\-typed fields \(Source\) through their concrete UnmarshalXxx helpers.
## type [ChatBoostAdded]()
This object represents a service message about a user boosting a chat.
```go
type ChatBoostAdded struct {
// Number of boosts added by the user
BoostCount int64 `json:"boost_count"`
}
```
## type [ChatBoostRemoved]()
This object represents a boost removed from a chat.
```go
type ChatBoostRemoved struct {
// Chat which was boosted
Chat Chat `json:"chat"`
// Unique identifier of the boost
BoostID string `json:"boost_id"`
// Point in time (Unix timestamp) when the boost was removed
RemoveDate int64 `json:"remove_date"`
// Source of the removed boost
Source ChatBoostSource `json:"source"`
}
```
### func \(\*ChatBoostRemoved\) [UnmarshalJSON]()
```go
func (m *ChatBoostRemoved) UnmarshalJSON(data []byte) error
```
UnmarshalJSON decodes ChatBoostRemoved by dispatching union\-typed fields \(Source\) through their concrete UnmarshalXxx helpers.
## type [ChatBoostSource]()
ChatBoostSource is a union type. The following concrete variants implement it:
- ChatBoostSourcePremium
- ChatBoostSourceGiftCode
- ChatBoostSourceGiveaway
This object describes the source of a chat boost. It can be one of
```go
type ChatBoostSource interface {
// contains filtered or unexported methods
}
```
### func [UnmarshalChatBoostSource]()
```go
func UnmarshalChatBoostSource(data []byte) (ChatBoostSource, error)
```
UnmarshalChatBoostSource decodes a ChatBoostSource from JSON by inspecting the "source" field and dispatching to the correct concrete type.
## type [ChatBoostSourceGiftCode]()
The boost was obtained by the creation of Telegram Premium gift codes to boost a chat. Each such code boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.
```go
type ChatBoostSourceGiftCode struct {
// Source of the boost, always “gift_code”
Source ChatBoostSourceKind `json:"source"`
// User for which the gift code was created
User User `json:"user"`
}
```
### func \(\*ChatBoostSourceGiftCode\) [MarshalJSON]()
```go
func (v *ChatBoostSourceGiftCode) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes ChatBoostSourceGiftCode with the discriminator field "source" forced to "gift\_code". The hardcoded value frees callers from setting Source by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [ChatBoostSourceGiveaway]()
The boost was obtained by the creation of a Telegram Premium or a Telegram Star giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription for Telegram Premium giveaways and prize\_star\_count / 500 times for one year for Telegram Star giveaways.
```go
type ChatBoostSourceGiveaway struct {
// Source of the boost, always “giveaway”
Source ChatBoostSourceKind `json:"source"`
// Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn't sent yet.
GiveawayMessageID int64 `json:"giveaway_message_id"`
// Optional. User that won the prize in the giveaway if any; for Telegram Premium giveaways only
User *User `json:"user,omitempty"`
// Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
PrizeStarCount *int64 `json:"prize_star_count,omitempty"`
// Optional. True, if the giveaway was completed, but there was no user to win the prize
IsUnclaimed *bool `json:"is_unclaimed,omitempty"`
}
```
### func \(\*ChatBoostSourceGiveaway\) [MarshalJSON]()
```go
func (v *ChatBoostSourceGiveaway) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes ChatBoostSourceGiveaway with the discriminator field "source" forced to "giveaway". The hardcoded value frees callers from setting Source by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [ChatBoostSourceKind]()
```go
type ChatBoostSourceKind string
```
```go
const (
ChatBoostSourceKindPremium ChatBoostSourceKind = "premium"
ChatBoostSourceKindGiftCode ChatBoostSourceKind = "gift_code"
ChatBoostSourceKindGiveaway ChatBoostSourceKind = "giveaway"
)
```
## type [ChatBoostSourcePremium]()
The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscription to another user.
```go
type ChatBoostSourcePremium struct {
// Source of the boost, always “premium”
Source ChatBoostSourceKind `json:"source"`
// User that boosted the chat
User User `json:"user"`
}
```
### func \(\*ChatBoostSourcePremium\) [MarshalJSON]()
```go
func (v *ChatBoostSourcePremium) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes ChatBoostSourcePremium with the discriminator field "source" forced to "premium". The hardcoded value frees callers from setting Source by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [ChatBoostUpdated]()
This object represents a boost added to a chat or changed.
```go
type ChatBoostUpdated struct {
// Chat which was boosted
Chat Chat `json:"chat"`
// Information about the chat boost
Boost ChatBoost `json:"boost"`
}
```
## type [ChatFullInfo]()
This object contains full information about a chat.
```go
type ChatFullInfo struct {
// Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
ID int64 `json:"id"`
// Type of the chat, can be either “private”, “group”, “supergroup” or “channel”
Type ChatType `json:"type"`
// Optional. Title, for supergroups, channels and group chats
Title string `json:"title,omitempty"`
// Optional. Username, for private chats, supergroups and channels if available
Username string `json:"username,omitempty"`
// Optional. First name of the other party in a private chat
FirstName string `json:"first_name,omitempty"`
// Optional. Last name of the other party in a private chat
LastName string `json:"last_name,omitempty"`
// Optional. True, if the supergroup chat is a forum (has topics enabled)
IsForum *bool `json:"is_forum,omitempty"`
// Optional. True, if the chat is the direct messages chat of a channel
IsDirectMessages *bool `json:"is_direct_messages,omitempty"`
// Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview. See accent colors for more details.
AccentColorID int64 `json:"accent_color_id"`
// The maximum number of reactions that can be set on a message in the chat
MaxReactionCount int64 `json:"max_reaction_count"`
// Optional. Chat photo
Photo *ChatPhoto `json:"photo,omitempty"`
// Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels
ActiveUsernames []string `json:"active_usernames,omitempty"`
// Optional. For private chats, the date of birth of the user
Birthdate *Birthdate `json:"birthdate,omitempty"`
// Optional. For private chats with business accounts, the intro of the business
BusinessIntro *BusinessIntro `json:"business_intro,omitempty"`
// Optional. For private chats with business accounts, the location of the business
BusinessLocation *BusinessLocation `json:"business_location,omitempty"`
// Optional. For private chats with business accounts, the opening hours of the business
BusinessOpeningHours *BusinessOpeningHours `json:"business_opening_hours,omitempty"`
// Optional. For private chats, the personal channel of the user
PersonalChat *Chat `json:"personal_chat,omitempty"`
// Optional. Information about the corresponding channel chat; for direct messages chats only
ParentChat *Chat `json:"parent_chat,omitempty"`
// Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.
AvailableReactions []ReactionType `json:"available_reactions,omitempty"`
// Optional. Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background
BackgroundCustomEmojiID string `json:"background_custom_emoji_id,omitempty"`
// Optional. Identifier of the accent color for the chat's profile background. See profile accent colors for more details.
ProfileAccentColorID *int64 `json:"profile_accent_color_id,omitempty"`
// Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background
ProfileBackgroundCustomEmojiID string `json:"profile_background_custom_emoji_id,omitempty"`
// Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private chat
EmojiStatusCustomEmojiID string `json:"emoji_status_custom_emoji_id,omitempty"`
// Optional. Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any
EmojiStatusExpirationDate *int64 `json:"emoji_status_expiration_date,omitempty"`
// Optional. Bio of the other party in a private chat
Bio string `json:"bio,omitempty"`
// Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id= links only in chats with the user
HasPrivateForwards *bool `json:"has_private_forwards,omitempty"`
// Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat
HasRestrictedVoiceAndVideoMessages *bool `json:"has_restricted_voice_and_video_messages,omitempty"`
// Optional. True, if users need to join the supergroup before they can send messages
JoinToSendMessages *bool `json:"join_to_send_messages,omitempty"`
// Optional. True, if all users directly joining the supergroup without using an invite link need to be approved by supergroup administrators
JoinByRequest *bool `json:"join_by_request,omitempty"`
// Optional. Description, for groups, supergroups and channel chats
Description string `json:"description,omitempty"`
// Optional. Primary invite link, for groups, supergroups and channel chats
InviteLink string `json:"invite_link,omitempty"`
// Optional. The most recent pinned message (by sending date)
PinnedMessage *Message `json:"pinned_message,omitempty"`
// Optional. Default chat member permissions, for groups and supergroups
Permissions *ChatPermissions `json:"permissions,omitempty"`
// Information about types of gifts that are accepted by the chat or by the corresponding user for private chats
AcceptedGiftTypes AcceptedGiftTypes `json:"accepted_gift_types"`
// Optional. True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats.
CanSendPaidMedia *bool `json:"can_send_paid_media,omitempty"`
// Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds
SlowModeDelay *int64 `json:"slow_mode_delay,omitempty"`
// Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions
UnrestrictBoostCount *int64 `json:"unrestrict_boost_count,omitempty"`
// Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds
MessageAutoDeleteTime *int64 `json:"message_auto_delete_time,omitempty"`
// Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators.
HasAggressiveAntiSpamEnabled *bool `json:"has_aggressive_anti_spam_enabled,omitempty"`
// Optional. True, if non-administrators can only get the list of bots and administrators in the chat
HasHiddenMembers *bool `json:"has_hidden_members,omitempty"`
// Optional. True, if messages from the chat can't be forwarded to other chats
HasProtectedContent *bool `json:"has_protected_content,omitempty"`
// Optional. True, if new chat members will have access to old messages; available only to chat administrators
HasVisibleHistory *bool `json:"has_visible_history,omitempty"`
// Optional. For supergroups, name of the group sticker set
StickerSetName string `json:"sticker_set_name,omitempty"`
// Optional. True, if the bot can change the group sticker set
CanSetStickerSet *bool `json:"can_set_sticker_set,omitempty"`
// Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group.
CustomEmojiStickerSetName string `json:"custom_emoji_sticker_set_name,omitempty"`
// Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
LinkedChatID *int64 `json:"linked_chat_id,omitempty"`
// Optional. For supergroups, the location to which the supergroup is connected
Location *ChatLocation `json:"location,omitempty"`
// Optional. For private chats, the rating of the user if any
Rating *UserRating `json:"rating,omitempty"`
// Optional. For private chats, the first audio added to the profile of the user
FirstProfileAudio *Audio `json:"first_profile_audio,omitempty"`
// Optional. The color scheme based on a unique gift that must be used for the chat's name, message replies and link previews
UniqueGiftColors *UniqueGiftColors `json:"unique_gift_colors,omitempty"`
// Optional. The number of Telegram Stars a general user have to pay to send a message to the chat
PaidMessageStarCount *int64 `json:"paid_message_star_count,omitempty"`
}
```
### func [GetChat]()
```go
func GetChat(ctx context.Context, b *client.Bot, p *GetChatParams) (*ChatFullInfo, error)
```
GetChat calls the getChat Telegram Bot API method.
Use this method to get up\-to\-date information about the chat. Returns a ChatFullInfo object on success.
### func \(\*ChatFullInfo\) [UnmarshalJSON]()
```go
func (m *ChatFullInfo) UnmarshalJSON(data []byte) error
```
UnmarshalJSON decodes ChatFullInfo by dispatching union\-typed fields \(AvailableReactions\) through their concrete UnmarshalXxx helpers.
## type [ChatID]()
ChatID identifies a chat by either numeric id or "@username". The Telegram Bot API spells the same field as either an integer or a string; ChatID preserves both forms with explicit constructors and a custom MarshalJSON so callers never see \`any\` at the source level.
```go
type ChatID struct {
// contains filtered or unexported fields
}
```
### func [ChatIDFromInt]()
```go
func ChatIDFromInt(id int64) ChatID
```
ChatIDFromInt builds a ChatID for a numeric chat identifier \(e.g. \-1001234567890\).
### func [ChatIDFromUsername]()
```go
func ChatIDFromUsername(name string) ChatID
```
ChatIDFromUsername builds a ChatID for a public chat \(e.g. "@channel"\). The leading "@" is required by Telegram for usernames.
### func \(ChatID\) [IsZero]()
```go
func (c ChatID) IsZero() bool
```
IsZero reports whether c carries no value.
### func \(ChatID\) [MarshalJSON]()
```go
func (c ChatID) MarshalJSON() ([]byte, error)
```
MarshalJSON emits either a JSON number \(integer form\) or a JSON string \(@username form\). Empty values marshal as "null".
### func \(ChatID\) [String]()
```go
func (c ChatID) String() string
```
String returns the wire form \(decimal integer or "@name"\) for use in multipart bodies.
### func \(\*ChatID\) [UnmarshalJSON]()
```go
func (c *ChatID) UnmarshalJSON(data []byte) error
```
UnmarshalJSON accepts either a JSON number or a JSON string.
## type [ChatInviteLink]()
Represents an invite link for a chat.
```go
type ChatInviteLink struct {
// The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with “…”.
InviteLink string `json:"invite_link"`
// Creator of the link
Creator User `json:"creator"`
// True, if users joining the chat via the link need to be approved by chat administrators
CreatesJoinRequest bool `json:"creates_join_request"`
// True, if the link is primary
IsPrimary bool `json:"is_primary"`
// True, if the link is revoked
IsRevoked bool `json:"is_revoked"`
// Optional. Invite link name
Name string `json:"name,omitempty"`
// Optional. Point in time (Unix timestamp) when the link will expire or has been expired
ExpireDate *int64 `json:"expire_date,omitempty"`
// Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
MemberLimit *int64 `json:"member_limit,omitempty"`
// Optional. Number of pending join requests created using this link
PendingJoinRequestCount *int64 `json:"pending_join_request_count,omitempty"`
// Optional. The number of seconds the subscription will be active for before the next payment
SubscriptionPeriod *int64 `json:"subscription_period,omitempty"`
// Optional. The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link
SubscriptionPrice *int64 `json:"subscription_price,omitempty"`
}
```
### func [CreateChatInviteLink]()
```go
func CreateChatInviteLink(ctx context.Context, b *client.Bot, p *CreateChatInviteLinkParams) (*ChatInviteLink, error)
```
CreateChatInviteLink calls the createChatInviteLink Telegram Bot API method.
Use this method to create an additional invite link for a chat. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. The link can be revoked using the method revokeChatInviteLink. Returns the new invite link as ChatInviteLink object.
### func [CreateChatSubscriptionInviteLink]()
```go
func CreateChatSubscriptionInviteLink(ctx context.Context, b *client.Bot, p *CreateChatSubscriptionInviteLinkParams) (*ChatInviteLink, error)
```
CreateChatSubscriptionInviteLink calls the createChatSubscriptionInviteLink Telegram Bot API method.
Use this method to create a subscription invite link for a channel chat. The bot must have the can\_invite\_users administrator rights. The link can be edited using the method editChatSubscriptionInviteLink or revoked using the method revokeChatInviteLink. Returns the new invite link as a ChatInviteLink object.
### func [EditChatInviteLink]()
```go
func EditChatInviteLink(ctx context.Context, b *client.Bot, p *EditChatInviteLinkParams) (*ChatInviteLink, error)
```
EditChatInviteLink calls the editChatInviteLink Telegram Bot API method.
Use this method to edit a non\-primary invite link created by the bot. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the edited invite link as a ChatInviteLink object.
### func [EditChatSubscriptionInviteLink]()
```go
func EditChatSubscriptionInviteLink(ctx context.Context, b *client.Bot, p *EditChatSubscriptionInviteLinkParams) (*ChatInviteLink, error)
```
EditChatSubscriptionInviteLink calls the editChatSubscriptionInviteLink Telegram Bot API method.
Use this method to edit a subscription invite link created by the bot. The bot must have the can\_invite\_users administrator rights. Returns the edited invite link as a ChatInviteLink object.
### func [RevokeChatInviteLink]()
```go
func RevokeChatInviteLink(ctx context.Context, b *client.Bot, p *RevokeChatInviteLinkParams) (*ChatInviteLink, error)
```
RevokeChatInviteLink calls the revokeChatInviteLink Telegram Bot API method.
Use this method to revoke an invite link created by the bot. If the primary link is revoked, a new link is automatically generated. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the revoked invite link as ChatInviteLink object.
## type [ChatJoinRequest]()
Represents a join request sent to a chat.
```go
type ChatJoinRequest struct {
// Chat to which the request was sent
Chat Chat `json:"chat"`
// User that sent the join request
From User `json:"from"`
// Identifier of a private chat with the user who sent the join request. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot can use this identifier for 5 minutes to send messages until the join request is processed, assuming no other administrator contacted the user.
UserChatID int64 `json:"user_chat_id"`
// Date the request was sent in Unix time
Date int64 `json:"date"`
// Optional. Bio of the user.
Bio string `json:"bio,omitempty"`
// Optional. Chat invite link that was used by the user to send the join request
InviteLink *ChatInviteLink `json:"invite_link,omitempty"`
}
```
## type [ChatLocation]()
Represents a location to which a chat is connected.
```go
type ChatLocation struct {
// The location to which the supergroup is connected. Can't be a live location.
Location Location `json:"location"`
// Location address; 1-64 characters, as defined by the chat owner
Address string `json:"address"`
}
```
## type [ChatMember]()
ChatMember is a union type. The following concrete variants implement it:
- ChatMemberOwner
- ChatMemberAdministrator
- ChatMemberMember
- ChatMemberRestricted
- ChatMemberLeft
- ChatMemberBanned
This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported:
```go
type ChatMember interface {
// contains filtered or unexported methods
}
```
### func [GetChatAdministrators]()
```go
func GetChatAdministrators(ctx context.Context, b *client.Bot, p *GetChatAdministratorsParams) ([]ChatMember, error)
```
GetChatAdministrators calls the getChatAdministrators Telegram Bot API method.
Use this method to get a list of administrators in a chat. Returns an Array of ChatMember objects.
### func [GetChatMember]()
```go
func GetChatMember(ctx context.Context, b *client.Bot, p *GetChatMemberParams) (ChatMember, error)
```
GetChatMember calls the getChatMember Telegram Bot API method.
Use this method to get information about a member of a chat. The method is only guaranteed to work for other users if the bot is an administrator in the chat. Returns a ChatMember object on success.
### func [UnmarshalChatMember]()
```go
func UnmarshalChatMember(data []byte) (ChatMember, error)
```
UnmarshalChatMember decodes a ChatMember from JSON by inspecting the "status" field and dispatching to the correct concrete type.
## type [ChatMemberAdministrator]()
Represents a chat member that has some additional privileges.
```go
type ChatMemberAdministrator struct {
// The member's status in the chat, always “administrator”
Status ChatMemberStatus `json:"status"`
// Information about the user
User User `json:"user"`
// True, if the bot is allowed to edit administrator privileges of that user
CanBeEdited bool `json:"can_be_edited"`
// True, if the user's presence in the chat is hidden
IsAnonymous bool `json:"is_anonymous"`
// True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other administrator privilege.
CanManageChat bool `json:"can_manage_chat"`
// True, if the administrator can delete messages of other users
CanDeleteMessages bool `json:"can_delete_messages"`
// True, if the administrator can manage video chats
CanManageVideoChats bool `json:"can_manage_video_chats"`
// True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics
CanRestrictMembers bool `json:"can_restrict_members"`
// True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user)
CanPromoteMembers bool `json:"can_promote_members"`
// True, if the user is allowed to change the chat title, photo and other settings
CanChangeInfo bool `json:"can_change_info"`
// True, if the user is allowed to invite new users to the chat
CanInviteUsers bool `json:"can_invite_users"`
// True, if the administrator can post stories to the chat
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 the chat's story archive
CanEditStories bool `json:"can_edit_stories"`
// True, if the administrator can delete stories posted by other users
CanDeleteStories bool `json:"can_delete_stories"`
// Optional. True, if the administrator can post messages in the channel, approve suggested posts, or access channel statistics; for channels only
CanPostMessages *bool `json:"can_post_messages,omitempty"`
// Optional. True, if the administrator can edit messages of other users and can pin messages; for channels only
CanEditMessages *bool `json:"can_edit_messages,omitempty"`
// Optional. True, if the user is allowed to pin messages; for groups and supergroups only
CanPinMessages *bool `json:"can_pin_messages,omitempty"`
// Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only
CanManageTopics *bool `json:"can_manage_topics,omitempty"`
// Optional. True, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only
CanManageDirectMessages *bool `json:"can_manage_direct_messages,omitempty"`
// Optional. True, if the administrator can edit the tags of regular members; for groups and supergroups only. If omitted defaults to the value of can_pin_messages.
CanManageTags *bool `json:"can_manage_tags,omitempty"`
// Optional. Custom title for this user
CustomTitle string `json:"custom_title,omitempty"`
}
```
### func \(\*ChatMemberAdministrator\) [MarshalJSON]()
```go
func (v *ChatMemberAdministrator) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes ChatMemberAdministrator with the discriminator field "status" forced to "administrator". The hardcoded value frees callers from setting Status by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [ChatMemberBanned]()
Represents a chat member that was banned in the chat and can't return to the chat or view chat messages.
```go
type ChatMemberBanned struct {
// The member's status in the chat, always “kicked”
Status ChatMemberStatus `json:"status"`
// Information about the user
User User `json:"user"`
// Date when restrictions will be lifted for this user; Unix time. If 0, then the user is banned forever
UntilDate int64 `json:"until_date"`
}
```
### func \(\*ChatMemberBanned\) [MarshalJSON]()
```go
func (v *ChatMemberBanned) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes ChatMemberBanned with the discriminator field "status" forced to "kicked". The hardcoded value frees callers from setting Status by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [ChatMemberLeft]()
Represents a chat member that isn't currently a member of the chat, but may join it themselves.
```go
type ChatMemberLeft struct {
// The member's status in the chat, always “left”
Status ChatMemberStatus `json:"status"`
// Information about the user
User User `json:"user"`
}
```
### func \(\*ChatMemberLeft\) [MarshalJSON]()
```go
func (v *ChatMemberLeft) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes ChatMemberLeft with the discriminator field "status" forced to "left". The hardcoded value frees callers from setting Status by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [ChatMemberMember]()
Represents a chat member that has no additional privileges or restrictions.
```go
type ChatMemberMember struct {
// The member's status in the chat, always “member”
Status ChatMemberStatus `json:"status"`
// Optional. Tag of the member
Tag string `json:"tag,omitempty"`
// Information about the user
User User `json:"user"`
// Optional. Date when the user's subscription will expire; Unix time
UntilDate *int64 `json:"until_date,omitempty"`
}
```
### func \(\*ChatMemberMember\) [MarshalJSON]()
```go
func (v *ChatMemberMember) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes ChatMemberMember with the discriminator field "status" forced to "member". The hardcoded value frees callers from setting Status by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [ChatMemberOwner]()
Represents a chat member that owns the chat and has all administrator privileges.
```go
type ChatMemberOwner struct {
// The member's status in the chat, always “creator”
Status ChatMemberStatus `json:"status"`
// Information about the user
User User `json:"user"`
// True, if the user's presence in the chat is hidden
IsAnonymous bool `json:"is_anonymous"`
// Optional. Custom title for this user
CustomTitle string `json:"custom_title,omitempty"`
}
```
### func \(\*ChatMemberOwner\) [MarshalJSON]()
```go
func (v *ChatMemberOwner) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes ChatMemberOwner with the discriminator field "status" forced to "creator". The hardcoded value frees callers from setting Status by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [ChatMemberRestricted]()
Represents a chat member that is under certain restrictions in the chat. Supergroups only.
```go
type ChatMemberRestricted struct {
// The member's status in the chat, always “restricted”
Status ChatMemberStatus `json:"status"`
// Optional. Tag of the member
Tag string `json:"tag,omitempty"`
// Information about the user
User User `json:"user"`
// True, if the user is a member of the chat at the moment of the request
IsMember bool `json:"is_member"`
// True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners, invoices, locations and venues
CanSendMessages bool `json:"can_send_messages"`
// True, if the user is allowed to send audios
CanSendAudios bool `json:"can_send_audios"`
// True, if the user is allowed to send documents
CanSendDocuments bool `json:"can_send_documents"`
// True, if the user is allowed to send photos
CanSendPhotos bool `json:"can_send_photos"`
// True, if the user is allowed to send videos
CanSendVideos bool `json:"can_send_videos"`
// True, if the user is allowed to send video notes
CanSendVideoNotes bool `json:"can_send_video_notes"`
// True, if the user is allowed to send voice notes
CanSendVoiceNotes bool `json:"can_send_voice_notes"`
// True, if the user is allowed to send polls and checklists
CanSendPolls bool `json:"can_send_polls"`
// True, if the user is allowed to send animations, games, stickers and use inline bots
CanSendOtherMessages bool `json:"can_send_other_messages"`
// True, if the user is allowed to add web page previews to their messages
CanAddWebPagePreviews bool `json:"can_add_web_page_previews"`
// True, if the user is allowed to react to messages
CanReactToMessages bool `json:"can_react_to_messages"`
// True, if the user is allowed to edit their own tag
CanEditTag bool `json:"can_edit_tag"`
// True, if the user is allowed to change the chat title, photo and other settings
CanChangeInfo bool `json:"can_change_info"`
// True, if the user is allowed to invite new users to the chat
CanInviteUsers bool `json:"can_invite_users"`
// True, if the user is allowed to pin messages
CanPinMessages bool `json:"can_pin_messages"`
// True, if the user is allowed to create forum topics
CanManageTopics bool `json:"can_manage_topics"`
// Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever
UntilDate int64 `json:"until_date"`
}
```
### func \(\*ChatMemberRestricted\) [MarshalJSON]()
```go
func (v *ChatMemberRestricted) MarshalJSON() ([]byte, error)
```
MarshalJSON encodes ChatMemberRestricted with the discriminator field "status" forced to "restricted". The hardcoded value frees callers from setting Status by hand — any user\-supplied value on the struct literal is overridden so a typo can't slip through to Telegram.
## type [ChatMemberStatus]()
```go
type ChatMemberStatus string
```
```go
const (
ChatMemberStatusCreator ChatMemberStatus = "creator"
ChatMemberStatusAdministrator ChatMemberStatus = "administrator"
ChatMemberStatusMember ChatMemberStatus = "member"
ChatMemberStatusRestricted ChatMemberStatus = "restricted"
ChatMemberStatusLeft ChatMemberStatus = "left"
ChatMemberStatusKicked ChatMemberStatus = "kicked"
)
```
## type [ChatMemberUpdated]()
This object represents changes in the status of a chat member.
```go
type ChatMemberUpdated struct {
// Chat the user belongs to
Chat Chat `json:"chat"`
// Performer of the action, which resulted in the change
From User `json:"from"`
// Date the change was done in Unix time
Date int64 `json:"date"`
// Previous information about the chat member
OldChatMember ChatMember `json:"old_chat_member"`
// New information about the chat member
NewChatMember ChatMember `json:"new_chat_member"`
// Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
InviteLink *ChatInviteLink `json:"invite_link,omitempty"`
// Optional. True, if the user joined the chat after sending a direct join request without using an invite link and being approved by an administrator
ViaJoinRequest *bool `json:"via_join_request,omitempty"`
// Optional. True, if the user joined the chat via a chat folder invite link
ViaChatFolderInviteLink *bool `json:"via_chat_folder_invite_link,omitempty"`
}
```
### func \(\*ChatMemberUpdated\) [UnmarshalJSON]()
```go
func (m *ChatMemberUpdated) UnmarshalJSON(data []byte) error
```
UnmarshalJSON decodes ChatMemberUpdated by dispatching union\-typed fields \(OldChatMember, NewChatMember\) through their concrete UnmarshalXxx helpers.
## type [ChatOwnerChanged]()
Describes a service message about an ownership change in the chat.
```go
type ChatOwnerChanged struct {
// The new owner of the chat
NewOwner User `json:"new_owner"`
}
```
## type [ChatOwnerLeft]()
Describes a service message about the chat owner leaving the chat.
```go
type ChatOwnerLeft struct {
// Optional. The user who will become the new owner of the chat if the previous owner does not return to the chat
NewOwner *User `json:"new_owner,omitempty"`
}
```
## type [ChatPermissions]()
Describes actions that a non\-administrator user is allowed to take in a chat.
```go
type ChatPermissions struct {
// Optional. True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners, invoices, locations and venues
CanSendMessages *bool `json:"can_send_messages,omitempty"`
// Optional. True, if the user is allowed to send audios
CanSendAudios *bool `json:"can_send_audios,omitempty"`
// Optional. True, if the user is allowed to send documents
CanSendDocuments *bool `json:"can_send_documents,omitempty"`
// Optional. True, if the user is allowed to send photos
CanSendPhotos *bool `json:"can_send_photos,omitempty"`
// Optional. True, if the user is allowed to send videos
CanSendVideos *bool `json:"can_send_videos,omitempty"`
// Optional. True, if the user is allowed to send video notes
CanSendVideoNotes *bool `json:"can_send_video_notes,omitempty"`
// Optional. True, if the user is allowed to send voice notes
CanSendVoiceNotes *bool `json:"can_send_voice_notes,omitempty"`
// Optional. True, if the user is allowed to send polls and checklists
CanSendPolls *bool `json:"can_send_polls,omitempty"`
// Optional. True, if the user is allowed to send animations, games, stickers and use inline bots
CanSendOtherMessages *bool `json:"can_send_other_messages,omitempty"`
// Optional. True, if the user is allowed to add web page previews to their messages
CanAddWebPagePreviews *bool `json:"can_add_web_page_previews,omitempty"`
// Optional. True, if the user is allowed to react to messages. If omitted, defaults to the value of can_send_messages.
CanReactToMessages *bool `json:"can_react_to_messages,omitempty"`
// Optional. True, if the user is allowed to edit their own tag. If omitted, defaults to the value of can_pin_messages.
CanEditTag *bool `json:"can_edit_tag,omitempty"`
// Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups
CanChangeInfo *bool `json:"can_change_info,omitempty"`
// Optional. True, if the user is allowed to invite new users to the chat
CanInviteUsers *bool `json:"can_invite_users,omitempty"`
// Optional. True, if the user is allowed to pin messages. Ignored in public supergroups
CanPinMessages *bool `json:"can_pin_messages,omitempty"`
// Optional. True, if the user is allowed to create forum topics. If omitted defaults to the value of can_pin_messages
CanManageTopics *bool `json:"can_manage_topics,omitempty"`
}
```
## type [ChatPhoto]()
This object represents a chat photo.
```go
type ChatPhoto struct {
// File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
SmallFileID string `json:"small_file_id"`
// Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
SmallFileUniqueID string `json:"small_file_unique_id"`
// File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
BigFileID string `json:"big_file_id"`
// Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
BigFileUniqueID string `json:"big_file_unique_id"`
}
```
## type [ChatShared]()
This object contains information about a chat that was shared with the bot using a KeyboardButtonRequestChat button.
```go
type ChatShared struct {
// Identifier of the request
RequestID int64 `json:"request_id"`
// Identifier of the shared chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot may not have access to the chat and could be unable to use this identifier, unless the chat is already known to the bot by some other means.
ChatID int64 `json:"chat_id"`
// Optional. Title of the chat, if the title was requested by the bot.
Title string `json:"title,omitempty"`
// Optional. Username of the chat, if the username was requested by the bot and available.
Username string `json:"username,omitempty"`
// Optional. Available sizes of the chat photo, if the photo was requested by the bot
Photo []PhotoSize `json:"photo,omitempty"`
}
```
## type [ChatType]()
```go
type ChatType string
```
```go
const (
ChatTypePrivate ChatType = "private"
ChatTypeGroup ChatType = "group"
ChatTypeSupergroup ChatType = "supergroup"
ChatTypeChannel ChatType = "channel"
)
```
## type [Checklist]()
Describes a checklist.
```go
type Checklist struct {
// Title of the checklist
Title string `json:"title"`
// Optional. Special entities that appear in the checklist title
TitleEntities []MessageEntity `json:"title_entities,omitempty"`
// List of tasks in the checklist
Tasks []ChecklistTask `json:"tasks"`
// Optional. True, if users other than the creator of the list can add tasks to the list
OthersCanAddTasks *bool `json:"others_can_add_tasks,omitempty"`
// Optional. True, if users other than the creator of the list can mark tasks as done or not done
OthersCanMarkTasksAsDone *bool `json:"others_can_mark_tasks_as_done,omitempty"`
}
```
## type [ChecklistTask]()
Describes a task in a checklist.
```go
type ChecklistTask struct {
// Unique identifier of the task
ID int64 `json:"id"`
// Text of the task
Text string `json:"text"`
// Optional. Special entities that appear in the task text
TextEntities []MessageEntity `json:"text_entities,omitempty"`
// Optional. User that completed the task; omitted if the task wasn't completed by a user
CompletedByUser *User `json:"completed_by_user,omitempty"`
// Optional. Chat that completed the task; omitted if the task wasn't completed by a chat
CompletedByChat *Chat `json:"completed_by_chat,omitempty"`
// Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed
CompletionDate *int64 `json:"completion_date,omitempty"`
}
```
## type [ChecklistTasksAdded]()
Describes a service message about tasks added to a checklist.
```go
type ChecklistTasksAdded struct {
// Optional. Message containing the checklist to which the tasks were added. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
ChecklistMessage *Message `json:"checklist_message,omitempty"`
// List of tasks added to the checklist
Tasks []ChecklistTask `json:"tasks"`
}
```
## type [ChecklistTasksDone]()
Describes a service message about checklist tasks marked as done or not done.
```go
type ChecklistTasksDone struct {
// Optional. Message containing the checklist whose tasks were marked as done or not done. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
ChecklistMessage *Message `json:"checklist_message,omitempty"`
// Optional. Identifiers of the tasks that were marked as done
MarkedAsDoneTaskIds []int64 `json:"marked_as_done_task_ids,omitempty"`
// Optional. Identifiers of the tasks that were marked as not done
MarkedAsNotDoneTaskIds []int64 `json:"marked_as_not_done_task_ids,omitempty"`
}
```
## type [ChosenInlineResult]()
Represents a result of an inline query that was chosen by the user and sent to their chat partner. Note: It is necessary to enable inline feedback via @BotFather in order to receive these objects in updates.
```go
type ChosenInlineResult struct {
// The unique identifier for the result that was chosen
ResultID string `json:"result_id"`
// The user that chose the result
From User `json:"from"`
// Optional. Sender location, only for bots that require user location
Location *Location `json:"location,omitempty"`
// Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.
InlineMessageID string `json:"inline_message_id,omitempty"`
// The query that was used to obtain the result
Query string `json:"query"`
}
```
## type [CloseForumTopicParams]()
CloseForumTopicParams is the parameter set for CloseForumTopic.
Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can\_manage\_topics administrator rights, unless it is the creator of the topic. Returns True on success.
```go
type CloseForumTopicParams struct {
// Unique identifier for the target chat or username of the target supergroup in the format @username
ChatID ChatID `json:"chat_id"`
// Unique identifier for the target message thread of the forum topic
MessageThreadID int64 `json:"message_thread_id"`
}
```
## type [CloseGeneralForumTopicParams]()
CloseGeneralForumTopicParams is the parameter set for CloseGeneralForumTopic.
Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can\_manage\_topics administrator rights. Returns True on success.
```go
type CloseGeneralForumTopicParams struct {
// Unique identifier for the target chat or username of the target supergroup in the format @username
ChatID ChatID `json:"chat_id"`
}
```
## type [CloseParams]()
CloseParams is the parameter set for Close.
Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn't launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched. Returns True on success. Requires no parameters.
```go
type CloseParams struct {
}
```
## type [Contact]()
This object represents a phone contact.
```go
type Contact struct {
// Contact's phone number
PhoneNumber string `json:"phone_number"`
// Contact's first name
FirstName string `json:"first_name"`
// Optional. Contact's last name
LastName string `json:"last_name,omitempty"`
// Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
UserID *int64 `json:"user_id,omitempty"`
// Optional. Additional data about the contact in the form of a vCard
Vcard string `json:"vcard,omitempty"`
}
```
## type [ConvertGiftToStarsParams]()
ConvertGiftToStarsParams is the parameter set for ConvertGiftToStars.
Converts a given regular gift to Telegram Stars. Requires the can\_convert\_gifts\_to\_stars business bot right. Returns True on success.
```go
type ConvertGiftToStarsParams struct {
// Unique identifier of the business connection
BusinessConnectionID string `json:"business_connection_id"`
// Unique identifier of the regular gift that should be converted to Telegram Stars
OwnedGiftID string `json:"owned_gift_id"`
}
```
## type [CopyMessageParams]()
CopyMessageParams is the parameter set for CopyMessage.
Use this method to copy messages of any kind. Service messages, paid media messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz poll can be copied only if the value of the field correct\_option\_id is known to the bot. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success.
```go
type CopyMessageParams struct {
// Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username
ChatID ChatID `json:"chat_id"`
// Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadID *int64 `json:"message_thread_id,omitempty"`
// Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicID *int64 `json:"direct_messages_topic_id,omitempty"`
// Unique identifier for the chat where the original message was sent (or username of the target bot, supergroup or channel in the format @username)
FromChatID ChatID `json:"from_chat_id"`
// Message identifier in the chat specified in from_chat_id
MessageID int64 `json:"message_id"`
// New start timestamp for the copied video in the message
VideoStartTimestamp *int64 `json:"video_start_timestamp,omitempty"`
// New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept
Caption string `json:"caption,omitempty"`
// Mode for parsing entities in the new caption. See formatting options for more details.
ParseMode ParseMode `json:"parse_mode,omitempty"`
// A JSON-serialized list of special entities that appear in the new caption, which can be specified instead of parse_mode
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
// Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified.
ShowCaptionAboveMedia *bool `json:"show_caption_above_media,omitempty"`
// Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance.
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// Unique identifier of the message effect to be added to the message; only available when copying to private chats
MessageEffectID string `json:"message_effect_id,omitempty"`
// A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup any `json:"reply_markup,omitempty"`
}
```
## type [CopyMessagesParams]()
CopyMessagesParams is the parameter set for CopyMessages.
Use this method to copy messages of any kind. If some of the specified messages can't be found or copied, they are skipped. Service messages, paid media messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz poll can be copied only if the value of the field correct\_option\_id is known to the bot. The method is analogous to the method forwardMessages, but the copied messages don't have a link to the original message. Album grouping is kept for copied messages. On success, an array of MessageId of the sent messages is returned.
```go
type CopyMessagesParams struct {
// Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username
ChatID ChatID `json:"chat_id"`
// Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadID *int64 `json:"message_thread_id,omitempty"`
// Identifier of the direct messages topic to which the messages will be sent; required if the messages are sent to a direct messages chat
DirectMessagesTopicID *int64 `json:"direct_messages_topic_id,omitempty"`
// Unique identifier for the chat where the original messages were sent (or username of the target bot, supergroup or channel in the format @username)
FromChatID ChatID `json:"from_chat_id"`
// A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to copy. The identifiers must be specified in a strictly increasing order.
MessageIds []int64 `json:"message_ids"`
// Sends the messages silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Protects the contents of the sent messages from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// Pass True to copy the messages without their captions
RemoveCaption *bool `json:"remove_caption,omitempty"`
}
```
## type [CopyTextButton]()
This object represents an inline keyboard button that copies specified text to the clipboard.
```go
type CopyTextButton struct {
// The text to be copied to the clipboard; 1-256 characters
Text string `json:"text"`
}
```
## type [CreateChatInviteLinkParams]()
CreateChatInviteLinkParams is the parameter set for CreateChatInviteLink.
Use this method to create an additional invite link for a chat. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. The link can be revoked using the method revokeChatInviteLink. Returns the new invite link as ChatInviteLink object.
```go
type CreateChatInviteLinkParams struct {
// Unique identifier for the target chat or username of the target channel in the format @username
ChatID ChatID `json:"chat_id"`
// Invite link name; 0-32 characters
Name string `json:"name,omitempty"`
// Point in time (Unix timestamp) when the link will expire
ExpireDate *int64 `json:"expire_date,omitempty"`
// The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
MemberLimit *int64 `json:"member_limit,omitempty"`
// True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified
CreatesJoinRequest *bool `json:"creates_join_request,omitempty"`
}
```