Versions in this module Expand all Collapse all v0 v0.0.7 Nov 3, 2026 v0.0.6 Nov 3, 2026 v0.0.5 Nov 3, 2026 v0.0.4 Nov 3, 2026 v0.0.3 Nov 3, 2026 Changes in this version + var Debug = false type BotAPI + func NewEmpty(token string, client HTTPClient, apiEndpoint string) *BotAPI v0.0.2 Nov 3, 2026 v0.0.1 Nov 3, 2026 Changes in this version + const APIEndpoint + const ChatChooseSticker + const ChatFindLocation + const ChatRecordVideo + const ChatRecordVideoNote + const ChatRecordVoice + const ChatTyping + const ChatUploadDocument + const ChatUploadPhoto + const ChatUploadVideo + const ChatUploadVideoNote + const ChatUploadVoice + const CtxPath + const DefaultCommandPath + const DefaultMessagePath + const DefaultRoutePath + const ErrAPIForbidden + const ErrBadURL + const FileEndpoint + const MAX_CAPTION_LENGTH + const MAX_FILESIZE_DOWNLOAD + const MAX_FILESIZE_UPLOAD + const MAX_MESSAGES_PER_MINUTE_PER_GROUP + const MAX_MESSAGES_PER_SECOND + const MAX_MESSAGES_PER_SECOND_PER_CHAT + const MAX_MESSAGE_LENGTH + const MAX_MESSAGE_LENGTH_IN_GRAPH + const ModeHTML + const ModeMarkdown + const ModeMarkdownV2 + const PaidEmoji + const UpdateTypeCallbackQuery + const UpdateTypeChannelPost + const UpdateTypeChatMember + const UpdateTypeChosenInlineResult + const UpdateTypeEditedChannelPost + const UpdateTypeEditedMessage + const UpdateTypeInlineQuery + const UpdateTypeMessage + const UpdateTypeMyChatMember + const UpdateTypePoll + const UpdateTypePollAnswer + const UpdateTypePreCheckoutQuery + const UpdateTypeShippingQuery + var AutoShutdown = false + var DiscardAllUpdates = false + var ErrBreak = errors.New("break") + var ErrNoHandlerRoute error = nil + var ErrNotOK = errors.New("not ok") + var ErrorLogger = func(ctx context.Context, b *BotAPI, u Update, h Handler, err error) + var Errorf = fmt.Errorf + var GetRoutePath = func(u Update) (string, bool) + var HandleLaunch = HandleLaunchFG + var HandleLaunchBG = func(ctx context.Context, b *BotAPI, u Update, h Handler) func() error + var HandleLaunchFG = func(ctx context.Context, b *BotAPI, u Update, h Handler) func() error + var Log404 = true + var Slog = slog.Default + var ValidEmojiNames = []string + var ValidEmojiReactions = []string + var WaitDuration = 3 * time.Second + func BumpRateLimit(err error) bool + func CommandPaths(mux *Mux) []string + func EscapeText(parseMode string, text string) string + func IsModifiedVersion() bool + func ParseRetryAfter(err error) int + func RoutePathString(v string) string + func SetLogger(logger BotLogger) error + func ValidateWebAppData(token, telegramInitData string) (bool, error) + func WriteToHTTPResponse(w http.ResponseWriter, c Chattable) error + type APIResponse struct + Description string + ErrorCode int + Ok bool + Parameters *ResponseParameters + Result json.RawMessage + type AddStickerConfig struct + Emojis string + MaskPosition *MaskPosition + Name string + PNGSticker RequestFileData + TGSSticker RequestFileData + UserID int64 + type Animation struct + Duration int + FileID string + FileName string + FileSize int + FileUniqueID string + Height int + MimeType string + Thumbnail *PhotoSize + Width int + type AnimationConfig struct + Caption string + CaptionEntities []MessageEntity + Duration int + ParseMode string + Thumb RequestFileData + func NewAnimation(chatID int64, file RequestFileData) AnimationConfig + type AnswerWebAppQueryConfig struct + Result interface{} + WebAppQueryID string + type ApproveChatJoinRequestConfig struct + UserID int64 + type Audio struct + Duration int + FileID string + FileName string + FileSize int + FileUniqueID string + MimeType string + Performer string + Thumbnail *PhotoSize + Title string + type AudioConfig struct + Caption string + CaptionEntities []MessageEntity + Duration int + ParseMode string + Performer string + Thumb RequestFileData + Title string + func NewAudio(chatID int64, file RequestFileData) AudioConfig + type BanChatMemberConfig struct + RevokeMessages bool + UntilDate int64 + type BanChatSenderChatConfig struct + ChannelUsername string + ChatID int64 + SenderChatID int64 + UntilDate int + type BaseChat struct + AllowSendingWithoutReply bool + ChannelUsername string + ChatID int64 + DisableNotification bool + ProtectContent bool + ReplyMarkup any + ReplyToMessageID int + type BaseEdit struct + BusinessConnectionID string + ChannelUsername string + ChatID int64 + InlineMessageID string + MessageID int + ReplyMarkup *InlineKeyboardMarkup + RichMessage *InputRichMessage + type BaseFile struct + File RequestFileData + type BaseInputMedia struct + Caption string + CaptionEntities []MessageEntity + Media RequestFileData + ParseMode string + Type string + type Bot = BotAPI + type BotAPI struct + Buffer int + Client HTTPClient + Debug bool + Self User + Token string + func NewBotAPI(token string) (*BotAPI, error) + func NewBotAPIWithAPIEndpoint(token, apiEndpoint string) (*BotAPI, error) + func NewBotAPIWithClient(token, apiEndpoint string, client HTTPClient) (*BotAPI, error) + func (b *BotAPI) GetManagedBotSettings(otherBotUserID int64) (BotAccessSettings, error) + func (b *BotAPI) GetManagedBotToken(otherBotUserID int64) (string, error) + func (b *BotAPI) ReplaceManagedBotToken(otherBotUserID int64) (string, error) + func (bot *BotAPI) AnswerWebAppQuery(config AnswerWebAppQueryConfig) (SentWebAppMessage, error) + func (bot *BotAPI) CopyMessage(config CopyMessageConfig) (int, error) + func (bot *BotAPI) DeleteMessage(msg Message) error + func (bot *BotAPI) GetBusinessConnection(businessConnectionID string) (BusinessConnection, error) + func (bot *BotAPI) GetChat(config ChatInfoConfig) (Chat, error) + func (bot *BotAPI) GetChatAdministrators(config ChatAdministratorsConfig) ([]ChatMember, error) + func (bot *BotAPI) GetChatMember(config GetChatMemberConfig) (ChatMember, error) + func (bot *BotAPI) GetChatMembersCount(config ChatMemberCountConfig) (int, error) + func (bot *BotAPI) GetFile(config FileConfig) (File, error) + func (bot *BotAPI) GetFileDirectURL(fileID string) (string, error) + func (bot *BotAPI) GetGameHighScores(config GetGameHighScoresConfig) ([]GameHighScore, error) + func (bot *BotAPI) GetInviteLink(config ChatInviteLinkConfig) (string, error) + func (bot *BotAPI) GetMe() (User, error) + func (bot *BotAPI) GetMessage(u Update) *Message + func (bot *BotAPI) GetMyCommands() ([]BotCommand, error) + func (bot *BotAPI) GetMyCommandsWithConfig(config GetMyCommandsConfig) ([]BotCommand, error) + func (bot *BotAPI) GetMyDefaultAdministratorRights(config GetMyDefaultAdministratorRightsConfig) (ChatAdministratorRights, error) + func (bot *BotAPI) GetReply(u Update) ReplyParameters + func (bot *BotAPI) GetRoutePath(ctx context.Context) (string, bool) + func (bot *BotAPI) GetStickerSet(config GetStickerSetConfig) (StickerSet, error) + func (bot *BotAPI) GetUpdates(config UpdateConfig) ([]Update, error) + func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) UpdatesChannel + func (bot *BotAPI) GetUserPersonalChat(userID int64, limitMessages int) ([]Message, error) + func (bot *BotAPI) GetUserProfilePhotos(config UserProfilePhotosConfig) (UserProfilePhotos, error) + func (bot *BotAPI) GetWebhookInfo() (WebhookInfo, error) + func (bot *BotAPI) IsMessageToMe(message Message) bool + func (bot *BotAPI) MakeRequest(endpoint string, params Params) (*APIResponse, error) + func (bot *BotAPI) MakeRequestForm(endpoint string, values url.Values) (*APIResponse, error) + func (bot *BotAPI) MakeRequestJSON(endpoint string, val any) (*APIResponse, error) + func (bot *BotAPI) ReplyToM1(replyTo Message, textV1 string) (Message, error) + func (bot *BotAPI) ReplyToM2(replyTo Message, textV2 string) (Message, error) + func (bot *BotAPI) Request(c Chattable) (*APIResponse, error) + func (bot *BotAPI) Send(c Chattable) (Message, error) + func (bot *BotAPI) SendDraftM1(chatID int64, draftID int, format string, a ...any) (Message, error) + func (bot *BotAPI) SendDraftM2(chatID int64, draftID int, format string, a ...any) (Message, error) + func (bot *BotAPI) SendJSON(endpoint string, val any) (*Message, error) + func (bot *BotAPI) SendMediaGroup(config MediaGroupConfig) ([]Message, error) + func (bot *BotAPI) SendTextM1(chatID int64, format string, a ...any) (Message, error) + func (bot *BotAPI) SendTextM2(chatID int64, format string, a ...any) (Message, error) + func (bot *BotAPI) SetAPIEndpoint(apiEndpoint string) + func (bot *BotAPI) StopPoll(config StopPollConfig) (Poll, error) + func (bot *BotAPI) StopReceivingUpdates() + func (bot *BotAPI) UploadFiles(endpoint string, params Params, files []RequestFile) (*APIResponse, error) + func (bot *BotAPI) WebhookHandler() *WebhookHandler + type BotAccessSettings struct + AddedUsers []User + IsAccessRestricted bool + type BotCommand struct + Command string + Description string + type BotCommandScope struct + ChatID int64 + Type string + UserID int64 + func NewBotCommandScopeAllChatAdministrators() BotCommandScope + func NewBotCommandScopeAllGroupChats() BotCommandScope + func NewBotCommandScopeAllPrivateChats() BotCommandScope + func NewBotCommandScopeChat(chatID int64) BotCommandScope + func NewBotCommandScopeChatAdministrators(chatID int64) BotCommandScope + func NewBotCommandScopeChatMember(chatID, userID int64) BotCommandScope + func NewBotCommandScopeDefault() BotCommandScope + type BotLogger interface + Printf func(format string, v ...interface{}) + Println func(v ...interface{}) + type BusinessBotRights struct + CanChangeGiftSettings bool + CanConvertGiftsToStars bool + CanDeleteAllMessages bool + CanDeleteSentMessages bool + CanEditBio bool + CanEditName bool + CanEditProfilePhoto bool + CanEditUsername bool + CanManageStories bool + CanReadMessages bool + CanReply bool + CanTransferAndUpgradeGifts bool + CanTransferStars bool + CanViewGiftsAndStars bool + type BusinessConnection struct + Date int64 + Id string + IsEnabled bool + Rights *BusinessBotRights + User *User + UserChatId int64 + func (b BusinessConnection) Time() time.Time + type BusinessMessagesDeleted struct + BusinessConnectionID string + Chat *Chat + MessageIDs []int + type CallbackConfig struct + CacheTime int + CallbackQueryID string + ShowAlert bool + Text string + URL string + func NewCallback(id, text string) CallbackConfig + func NewCallbackWithAlert(id, text string) CallbackConfig + type CallbackGame struct + type CallbackQuery struct + ChatInstance string + Data string + From *User + GameShortName string + ID string + InlineMessageID string + Message *Message + type Chat struct + Bio string + CanSetStickerSet bool + Description string + FirstName string + HasPrivateForwards bool + HasProtectedContent bool + ID int64 + InviteLink string + LastName string + LinkedChatID int64 + Location *ChatLocation + MessageAutoDeleteTime int + Permissions *ChatPermissions + Photo *ChatPhoto + PinnedMessage *Message + SlowModeDelay int + StickerSetName string + Title string + Type string + UserName string + func (c Chat) ChatConfig() ChatConfig + func (c Chat) IsChannel() bool + func (c Chat) IsGroup() bool + func (c Chat) IsPrivate() bool + func (c Chat) IsSuperGroup() bool + type ChatActionConfig struct + Action string + BusinessConnectionID string + MessageThreadID *int64 + func NewChatAction(chatID int64, action string) ChatActionConfig + type ChatAdministratorRights struct + CanChangeInfo bool + CanDeleteMessages bool + CanEditMessages bool + CanInviteUsers bool + CanManageChat bool + CanManageVideoChats bool + CanPinMessages bool + CanPostMessages bool + CanPromoteMembers bool + CanRestrictMembers bool + IsAnonymous bool + type ChatAdministratorsConfig struct + type ChatConfig struct + ChatID int64 + SuperGroupUsername string + type ChatConfigWithUser struct + ChatID int64 + SuperGroupUsername string + UserID int64 + type ChatInfoConfig struct + type ChatInviteLink struct + CreatesJoinRequest bool + Creator User + ExpireDate int + InviteLink string + IsPrimary bool + IsRevoked bool + MemberLimit int + Name string + PendingJoinRequestCount int + type ChatInviteLinkConfig struct + type ChatJoinRequest struct + Bio string + Chat Chat + Date int + From User + InviteLink *ChatInviteLink + type ChatLocation struct + Address string + Location Location + type ChatMember struct + CanAddWebPagePreviews bool + CanBeEdited bool + CanChangeInfo bool + CanDeleteMessages bool + CanEditMessages bool + CanInviteUsers bool + CanManageChat bool + CanManageVideoChats bool + CanPinMessages bool + CanPostMessages bool + CanPromoteMembers bool + CanRestrictMembers bool + CanSendMediaMessages bool + CanSendMessages bool + CanSendOtherMessages bool + CanSendPolls bool + CustomTitle string + IsAnonymous bool + IsMember bool + Status string + UntilDate int64 + User *User + func (chat ChatMember) HasLeft() bool + func (chat ChatMember) IsAdministrator() bool + func (chat ChatMember) IsCreator() bool + func (chat ChatMember) WasKicked() bool + type ChatMemberConfig struct + ChannelUsername string + ChatID int64 + SuperGroupUsername string + UserID int64 + type ChatMemberCountConfig struct + type ChatMemberUpdated struct + Chat Chat + Date int + From User + InviteLink *ChatInviteLink + NewChatMember ChatMember + OldChatMember ChatMember + type ChatPermissions struct + CanAddWebPagePreviews bool + CanChangeInfo bool + CanInviteUsers bool + CanPinMessages bool + CanSendMediaMessages bool + CanSendMessages bool + CanSendOtherMessages bool + CanSendPolls bool + type ChatPhoto struct + BigFileID string + BigFileUniqueID string + SmallFileID string + SmallFileUniqueID string + type Chattable interface + type ChosenInlineResult struct + From *User + InlineMessageID string + Location *Location + Query string + ResultID string + type CloseConfig struct + type Contact struct + FirstName string + LastName string + PhoneNumber string + UserID int64 + VCard string + type ContactConfig struct + FirstName string + LastName string + PhoneNumber string + VCard string + func NewContact(chatID int64, phoneNumber, firstName string) ContactConfig + type CopyMessageConfig struct + Caption string + CaptionEntities []MessageEntity + FromChannelUsername string + FromChatID int64 + MessageID int + ParseMode string + func NewCopyMessage(chatID int64, fromChatID int64, messageID int) CopyMessageConfig + type CreateChatInviteLinkConfig struct + CreatesJoinRequest bool + ExpireDate int + MemberLimit int + Name string + type Credentials struct + Data SecureData + Nonce string + type DataCredentials struct + DataHash string + Secret string + type DeclineChatJoinRequest struct + UserID int64 + type DeleteChatPhotoConfig struct + ChannelUsername string + ChatID int64 + func NewDeleteChatPhoto(chatID int64) DeleteChatPhotoConfig + type DeleteChatStickerSetConfig struct + ChatID int64 + SuperGroupUsername string + type DeleteMessageConfig struct + ChannelUsername string + ChatID int64 + MessageID int + func NewDeleteMessage(chatID int64, messageID int) DeleteMessageConfig + type DeleteMyCommandsConfig struct + LanguageCode string + Scope *BotCommandScope + func NewDeleteMyCommands() DeleteMyCommandsConfig + func NewDeleteMyCommandsWithScope(scope BotCommandScope) DeleteMyCommandsConfig + func NewDeleteMyCommandsWithScopeAndLanguage(scope BotCommandScope, languageCode string) DeleteMyCommandsConfig + type DeleteStickerConfig struct + Sticker string + type DeleteWebhookConfig struct + DropPendingUpdates bool + type Dice struct + Emoji string + Value int + type DiceConfig struct + Emoji string + func NewDice(chatID int64) DiceConfig + func NewDiceWithEmoji(chatID int64, emoji string) DiceConfig + type DirectMessagesTopic struct + TopicID int64 + User *User + type Document struct + FileID string + FileName string + FileSize int + FileUniqueID string + MimeType string + Thumbnail *PhotoSize + type DocumentConfig struct + Caption string + CaptionEntities []MessageEntity + DisableContentTypeDetection bool + ParseMode string + Thumb RequestFileData + func NewDocument(chatID int64, file RequestFileData) DocumentConfig + type EditChatInviteLinkConfig struct + CreatesJoinRequest bool + ExpireDate int + InviteLink string + MemberLimit int + Name string + type EditMessageCaptionConfig struct + Caption string + CaptionEntities []MessageEntity + ParseMode string + func NewEditMessageCaption(chatID int64, messageID int, caption string) EditMessageCaptionConfig + type EditMessageLiveLocationConfig struct + Heading int + HorizontalAccuracy float64 + Latitude float64 + Longitude float64 + ProximityAlertRadius int + type EditMessageMediaConfig struct + Media interface{} + type EditMessageReplyMarkupConfig struct + func NewEditMessageReplyMarkup(chatID int64, messageID int, replyMarkup InlineKeyboardMarkup) EditMessageReplyMarkupConfig + type EditMessageTextConfig struct + DisableWebPagePreview bool + Entities []MessageEntity + ParseMode string + Text string + func NewEditMessageText(chatID int64, messageID int, text string) EditMessageTextConfig + func NewEditMessageTextAndMarkup(chatID int64, messageID int, text string, replyMarkup InlineKeyboardMarkup) EditMessageTextConfig + type EncryptedCredentials struct + Data string + Hash string + Secret string + type EncryptedPassportElement struct + Data string + Email string + Files []PassportFile + FrontSide *PassportFile + PhoneNumber string + ReverseSide *PassportFile + Selfie *PassportFile + Type string + type Error struct + Code int + Message string + func (e Error) Error() string + type ExternalReplyInfo struct + Animation *Animation + Audio *Audio + Chat *Chat + Checklist json.RawMessage + Contact *Contact + Dice *Dice + Document *Document + Game *Game + Giveaway json.RawMessage + GiveawayWinners json.RawMessage + HasMediaSpoiler bool + Invoice *Invoice + LinkPreviewOptions json.RawMessage + LivePhoto json.RawMessage + Location *Location + MessageID *int + Origin MessageOrigin + PaidMedia json.RawMessage + Photo []PhotoSize + Poll *Poll + Sticker *Sticker + Story json.RawMessage + Venue *Venue + Video *Video + VideoNote *VideoNote + Voice *Voice + type File struct + FileID string + FilePath string + FileSize int + FileUniqueID string + func (f *File) Link(token string) string + type FileBytes struct + Bytes []byte + Name string + func (fb FileBytes) NeedsUpload() bool + func (fb FileBytes) SendData() string + func (fb FileBytes) UploadData() (string, io.Reader, error) + type FileConfig struct + FileID string + type FileCredentials struct + FileHash string + Secret string + type FileID string + func (fi FileID) NeedsUpload() bool + func (fi FileID) SendData() string + func (fi FileID) UploadData() (string, io.Reader, error) + type FilePath string + func (fp FilePath) NeedsUpload() bool + func (fp FilePath) SendData() string + func (fp FilePath) UploadData() (string, io.Reader, error) + type FileReader struct + Name string + Reader io.Reader + func (fr FileReader) NeedsUpload() bool + func (fr FileReader) SendData() string + func (fr FileReader) UploadData() (string, io.Reader, error) + type FileURL string + func (fu FileURL) NeedsUpload() bool + func (fu FileURL) SendData() string + func (fu FileURL) UploadData() (string, io.Reader, error) + type Fileable interface + type ForceReply struct + ForceReply bool + InputFieldPlaceholder string + Selective bool + type ForwardConfig struct + FromChannelUsername string + FromChatID int64 + MessageID int + func NewForward(chatID int64, fromChatID int64, messageID int) ForwardConfig + type Game struct + Animation Animation + Description string + Photo []PhotoSize + Text string + TextEntities []MessageEntity + Title string + type GameConfig struct + GameShortName string + type GameHighScore struct + Position int + Score int + User User + type GetChatMemberConfig struct + type GetChatMenuButtonConfig struct + ChannelUsername string + ChatID int64 + type GetGameHighScoresConfig struct + ChannelUsername string + ChatID int64 + InlineMessageID string + MessageID int + UserID int64 + type GetMyCommandsConfig struct + LanguageCode string + Scope *BotCommandScope + func NewGetMyCommandsWithScope(scope BotCommandScope) GetMyCommandsConfig + func NewGetMyCommandsWithScopeAndLanguage(scope BotCommandScope, languageCode string) GetMyCommandsConfig + type GetMyDefaultAdministratorRightsConfig struct + ForChannels bool + type GetStickerSetConfig struct + Name string + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type Handler interface + HandleUpdate func(ctx context.Context, b *BotAPI, u Update) error + type HandlerFunc func(ctx context.Context, b *BotAPI, u Update) error + func (h HandlerFunc) HandleUpdate(ctx context.Context, b *BotAPI, u Update) error + type HandlerMiddleware = func(h Handler) Handler + type IDDocumentData struct + DocumentNumber string + ExpiryDate string + type InlineConfig struct + CacheTime int + InlineQueryID string + IsPersonal bool + NextOffset string + Results []interface{} + SwitchPMParameter string + SwitchPMText string + type InlineKeyboardButton struct + CallbackData *string + CallbackGame *CallbackGame + LoginURL *LoginURL + Pay bool + SwitchInlineQuery *string + SwitchInlineQueryCurrentChat *string + Text string + URL *string + WebApp *WebAppInfo + func NewInlineKeyboardButtonData(text, data string) InlineKeyboardButton + func NewInlineKeyboardButtonLoginURL(text string, loginURL LoginURL) InlineKeyboardButton + func NewInlineKeyboardButtonSwitch(text, sw string) InlineKeyboardButton + func NewInlineKeyboardButtonURL(text, url string) InlineKeyboardButton + func NewInlineKeyboardButtonWebApp(text string, webapp WebAppInfo) InlineKeyboardButton + func NewInlineKeyboardRow(buttons ...InlineKeyboardButton) []InlineKeyboardButton + type InlineKeyboardMarkup struct + InlineKeyboard [][]InlineKeyboardButton + func InlineKeyboard(rows ...[][2]string) InlineKeyboardMarkup + func NewInlineKeyboardMarkup(rows ...[]InlineKeyboardButton) InlineKeyboardMarkup + type InlineQuery struct + ChatType string + From *User + ID string + Location *Location + Offset string + Query string + type InlineQueryResultArticle struct + Description string + HideURL bool + ID string + InputMessageContent interface{} + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbURL string + ThumbWidth int + Title string + Type string + URL string + func NewInlineQueryResultArticle(id, title, messageText string) InlineQueryResultArticle + func NewInlineQueryResultArticleHTML(id, title, messageText string) InlineQueryResultArticle + func NewInlineQueryResultArticleMarkdown(id, title, messageText string) InlineQueryResultArticle + func NewInlineQueryResultArticleMarkdownV2(id, title, messageText string) InlineQueryResultArticle + type InlineQueryResultAudio struct + Caption string + CaptionEntities []MessageEntity + Duration int + ID string + InputMessageContent interface{} + ParseMode string + Performer string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + URL string + func NewInlineQueryResultAudio(id, url, title string) InlineQueryResultAudio + type InlineQueryResultCachedAudio struct + AudioID string + Caption string + CaptionEntities []MessageEntity + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Type string + func NewInlineQueryResultCachedAudio(id, audioID string) InlineQueryResultCachedAudio + type InlineQueryResultCachedDocument struct + Caption string + CaptionEntities []MessageEntity + Description string + DocumentID string + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + func NewInlineQueryResultCachedDocument(id, documentID, title string) InlineQueryResultCachedDocument + type InlineQueryResultCachedGIF struct + Caption string + CaptionEntities []MessageEntity + GIFID string + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + func NewInlineQueryResultCachedGIF(id, gifID string) InlineQueryResultCachedGIF + type InlineQueryResultCachedMPEG4GIF struct + Caption string + CaptionEntities []MessageEntity + ID string + InputMessageContent interface{} + MPEG4FileID string + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + func NewInlineQueryResultCachedMPEG4GIF(id, MPEG4GIFID string) InlineQueryResultCachedMPEG4GIF + type InlineQueryResultCachedPhoto struct + Caption string + CaptionEntities []MessageEntity + Description string + ID string + InputMessageContent interface{} + ParseMode string + PhotoID string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + func NewInlineQueryResultCachedPhoto(id, photoID string) InlineQueryResultCachedPhoto + type InlineQueryResultCachedSticker struct + ID string + InputMessageContent interface{} + ReplyMarkup *InlineKeyboardMarkup + StickerID string + Title string + Type string + func NewInlineQueryResultCachedSticker(id, stickerID, title string) InlineQueryResultCachedSticker + type InlineQueryResultCachedVideo struct + Caption string + CaptionEntities []MessageEntity + Description string + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + VideoID string + func NewInlineQueryResultCachedVideo(id, videoID, title string) InlineQueryResultCachedVideo + type InlineQueryResultCachedVoice struct + Caption string + CaptionEntities []MessageEntity + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + VoiceID string + func NewInlineQueryResultCachedVoice(id, voiceID, title string) InlineQueryResultCachedVoice + type InlineQueryResultContact struct + FirstName string + ID string + InputMessageContent interface{} + LastName string + PhoneNumber string + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbURL string + ThumbWidth int + Type string + VCard string + type InlineQueryResultDocument struct + Caption string + Description string + ID string + InputMessageContent interface{} + MimeType string + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbURL string + ThumbWidth int + Title string + Type string + URL string + func NewInlineQueryResultDocument(id, url, title, mimeType string) InlineQueryResultDocument + type InlineQueryResultGIF struct + Caption string + CaptionEntities []MessageEntity + Duration int + Height int + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + ThumbURL string + Title string + Type string + URL string + Width int + func NewInlineQueryResultGIF(id, url string) InlineQueryResultGIF + type InlineQueryResultGame struct + GameShortName string + ID string + ReplyMarkup *InlineKeyboardMarkup + Type string + type InlineQueryResultLocation struct + Heading int + HorizontalAccuracy float64 + ID string + InputMessageContent interface{} + Latitude float64 + LivePeriod int + Longitude float64 + ProximityAlertRadius int + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbURL string + ThumbWidth int + Title string + Type string + func NewInlineQueryResultLocation(id, title string, latitude, longitude float64) InlineQueryResultLocation + type InlineQueryResultMPEG4GIF struct + Caption string + CaptionEntities []MessageEntity + Duration int + Height int + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + ThumbURL string + Title string + Type string + URL string + Width int + func NewInlineQueryResultMPEG4GIF(id, url string) InlineQueryResultMPEG4GIF + type InlineQueryResultPhoto struct + Caption string + CaptionEntities []MessageEntity + Description string + Height int + ID string + InputMessageContent interface{} + MimeType string + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + ThumbURL string + Title string + Type string + URL string + Width int + func NewInlineQueryResultPhoto(id, url string) InlineQueryResultPhoto + func NewInlineQueryResultPhotoWithThumb(id, url, thumb string) InlineQueryResultPhoto + type InlineQueryResultVenue struct + Address string + FoursquareID string + FoursquareType string + GooglePlaceID string + GooglePlaceType string + ID string + InputMessageContent interface{} + Latitude float64 + Longitude float64 + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbURL string + ThumbWidth int + Title string + Type string + func NewInlineQueryResultVenue(id, title, address string, latitude, longitude float64) InlineQueryResultVenue + type InlineQueryResultVideo struct + Caption string + Description string + Duration int + Height int + ID string + InputMessageContent interface{} + MimeType string + ReplyMarkup *InlineKeyboardMarkup + ThumbURL string + Title string + Type string + URL string + Width int + func NewInlineQueryResultVideo(id, url string) InlineQueryResultVideo + type InlineQueryResultVoice struct + Caption string + CaptionEntities []MessageEntity + Duration int + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + URL string + func NewInlineQueryResultVoice(id, url, title string) InlineQueryResultVoice + type InputContactMessageContent struct + FirstName string + LastName string + PhoneNumber string + VCard string + type InputInvoiceMessageContent struct + Currency string + Description string + IsFlexible bool + MaxTipAmount int + NeedEmail bool + NeedName bool + NeedPhoneNumber bool + NeedShippingAddress bool + Payload string + PhotoHeight int + PhotoSize int + PhotoURL string + PhotoWidth int + Prices []LabeledPrice + ProviderData string + ProviderToken string + SendEmailToProvider bool + SendPhoneNumberToProvider bool + SuggestedTipAmounts []int + Title string + type InputLocationMessageContent struct + Heading int + HorizontalAccuracy float64 + Latitude float64 + LivePeriod int + Longitude float64 + ProximityAlertRadius int + type InputMediaAnimation struct + Duration int + Height int + Thumb RequestFileData + Width int + func NewInputMediaAnimation(media RequestFileData) InputMediaAnimation + type InputMediaAudio struct + Duration int + Performer string + Thumb RequestFileData + Title string + func NewInputMediaAudio(media RequestFileData) InputMediaAudio + type InputMediaDocument struct + DisableContentTypeDetection bool + Thumb RequestFileData + func NewInputMediaDocument(media RequestFileData) InputMediaDocument + type InputMediaPhoto struct + func NewInputMediaPhoto(media RequestFileData) InputMediaPhoto + type InputMediaVideo struct + Duration int + Height int + SupportsStreaming bool + Thumb RequestFileData + Width int + func NewInputMediaVideo(media RequestFileData) InputMediaVideo + type InputRichBlock json.RawMessage + type InputRichMedia struct + ID string + Media any + type InputRichMessage struct + Blocks []any + HTML string + IsRTL bool + Markdown string + Media []InputRichMedia + SkipEntityDetection bool + type InputTextMessageContent struct + DisableWebPagePreview bool + Entities []MessageEntity + ParseMode string + Text string + type InputVenueMessageContent struct + Address string + FoursquareID string + FoursquareType string + GooglePlaceID string + GooglePlaceType string + Latitude float64 + Longitude float64 + Title string + type Invoice struct + AllowPaidBroadcast bool + BusinessConnectionID string + ChatID interface{} + Currency string + Description string + DirectMessagesTopicID *int + DisableNotification bool + IsFlexible bool + MaxTipAmount int + MessageEffectID string + MessageThreadID *int + NeedEmail bool + NeedName bool + NeedPhoneNumber bool + NeedShippingAddress bool + Payload string + PhotoHeight *int + PhotoSize *int + PhotoURL string + PhotoWidth *int + Prices []LabeledPrice + ProtectContent bool + ProviderData string + ProviderToken string + ReplyParameters *ReplyParameters + SendEmailToProvider bool + SendPhoneNumberToProvider bool + StartParameter string + SuggestedPostParameters *SuggestedPostParameters + SuggestedTipAmounts []int + Title string + type InvoiceConfig struct + Currency string + Description string + IsFlexible bool + MaxTipAmount int + NeedEmail bool + NeedName bool + NeedPhoneNumber bool + NeedShippingAddress bool + Payload string + PhotoHeight int + PhotoSize int + PhotoURL string + PhotoWidth int + Prices []LabeledPrice + ProviderData string + ProviderToken string + SendEmailToProvider bool + SendPhoneNumberToProvider bool + StartParameter string + SuggestedTipAmounts []int + Title string + func NewInvoice(chatID int64, ...) InvoiceConfig + type KeyboardButton struct + RequestContact bool + RequestLocation bool + RequestPoll *KeyboardButtonPollType + Text string + WebApp *WebAppInfo + func NewKeyboardButton(text string) KeyboardButton + func NewKeyboardButtonContact(text string) KeyboardButton + func NewKeyboardButtonLocation(text string) KeyboardButton + func NewKeyboardButtonRow(buttons ...KeyboardButton) []KeyboardButton + func NewKeyboardButtonWebApp(text string, webapp WebAppInfo) KeyboardButton + type KeyboardButtonPollType struct + Type string + type KickChatMemberConfig = BanChatMemberConfig + type LabeledPrice struct + Amount int + Label string + type LeaveChatConfig struct + ChannelUsername string + ChatID int64 + type LinkPreviewOptions struct + IsDisabled bool + PreferLargeMedia bool + PreferSmallMedia bool + ShowAboveText bool + URL string + type Location struct + Heading int + HorizontalAccuracy float64 + Latitude float64 + LivePeriod int + Longitude float64 + ProximityAlertRadius int + type LocationConfig struct + Heading int + HorizontalAccuracy float64 + Latitude float64 + LivePeriod int + Longitude float64 + ProximityAlertRadius int + func NewLocation(chatID int64, latitude float64, longitude float64) LocationConfig + type LogOutConfig struct + type LoginURL struct + BotUsername string + ForwardText string + RequestWriteAccess bool + URL string + type ManagedBotConfig struct + UserID int64 + type MaskPosition struct + Point string + Scale float64 + XShift float64 + YShift float64 + type MediaGroupConfig struct + ChannelUsername string + ChatID int64 + DisableNotification bool + Media []interface{} + ReplyToMessageID int + func NewMediaGroup(chatID int64, files []interface{}) MediaGroupConfig + type MenuButton struct + Text string + Type string + WebApp *WebAppInfo + type Message struct + Animation *Animation + Audio *Audio + AuthorSignature string + BoostAdded json.RawMessage + BusinessConnectionID string + Caption string + CaptionEntities []MessageEntity + ChannelChatCreated bool + Chat *Chat + ChatBackgroundSet json.RawMessage + Checklist json.RawMessage + ChecklistTasksAdded json.RawMessage + ChecklistTasksDone json.RawMessage + CommunityChatAdded json.RawMessage + CommunityChatJoined json.RawMessage + CommunityChatRemoved json.RawMessage + ConnectedWebsite string + Contact *Contact + Date int64 + DeleteChatPhoto bool + Dice *Dice + DirectMessagePriceChanged json.RawMessage + DirectMessagesTopic *DirectMessagesTopic + Document *Document + EditDate int + EffectID string + Entities []MessageEntity + EphemeralMessageID *int + ExternalReply *ExternalReplyInfo + ForumTopicClosed json.RawMessage + ForumTopicCreated json.RawMessage + ForumTopicEdited json.RawMessage + ForumTopicReopened json.RawMessage + ForwardDate int + ForwardFrom *User + ForwardFromChat *Chat + ForwardFromMessageID int + ForwardOrigin *MessageOrigin + ForwardSenderName string + ForwardSignature string + From *User + Game *Game + GeneralForumTopicHidden json.RawMessage + GeneralForumTopicUnhidden json.RawMessage + Gift json.RawMessage + GiftUpgradeSent json.RawMessage + Giveaway json.RawMessage + GiveawayCompleted json.RawMessage + GiveawayCreated json.RawMessage + GiveawayWinners json.RawMessage + GroupChatCreated bool + GuestBotCallerChat *Chat + GuestBotCallerUser *User + GuestQueryID string + HasMediaSpoiler bool + HasProtectedContent bool + Invoice *Invoice + IsAutomaticForward bool + IsFromOffline bool + IsPaidPost bool + IsTopicMessage bool + LeftChatMember *User + LinkPreviewOptions json.RawMessage + Location *Location + ManagedBotCreated json.RawMessage + MediaGroupID string + MessageAutoDeleteTimerChanged *MessageAutoDeleteTimerChanged + MessageID int + MessageThreadID *int64 + MigrateFromChatID int64 + MigrateToChatID int64 + NewChatMembers []User + NewChatPhoto []PhotoSize + NewChatTitle string + PaidMedia json.RawMessage + PaidMessagePriceChanged json.RawMessage + PaidStarCount int + PassportData *PassportData + Photo []PhotoSize + PinnedMessage *Message + Poll *Poll + PollOptionAdded json.RawMessage + PollOptionDeleted json.RawMessage + PremiumAnimation *Animation + ProximityAlertTriggered *ProximityAlertTriggered + Quote *TextQuote + ReceiverUser *User + RefundedPayment *RefundedPayment + ReplyMarkup *InlineKeyboardMarkup + ReplyToChecklistTaskID *int + ReplyToMessage *Message + ReplyToPollOptionID string + ReplyToStory json.RawMessage + RichMessage json.RawMessage + SenderBusinessBot *User + SenderChat *Chat + SenderTag string + ShowCaptionAboveMedia bool + Sticker *Sticker + SuccessfulPayment *SuccessfulPayment + SuggestedPostApprovalFailed json.RawMessage + SuggestedPostApproved json.RawMessage + SuggestedPostDeclined json.RawMessage + SuggestedPostInfo json.RawMessage + SuggestedPostPaid json.RawMessage + SuggestedPostRefunded json.RawMessage + SuperGroupChatCreated bool + Text string + UniqueGift json.RawMessage + Venue *Venue + ViaBot *User + Video *Video + VideoChatEnded *VideoChatEnded + VideoChatParticipantsInvited *VideoChatParticipantsInvited + VideoChatScheduled *VideoChatScheduled + VideoChatStarted *VideoChatStarted + VideoNote *VideoNote + Voice *Voice + WebAppData *WebAppData + func (m *Message) Command() string + func (m *Message) CommandArguments() string + func (m *Message) CommandWithAt() string + func (m *Message) IsCommand() bool + func (m *Message) Time() time.Time + func (m Message) BaseChat() BaseChat + func (m Message) NewReply() BaseChat + type MessageAutoDeleteTimerChanged struct + MessageAutoDeleteTime int + type MessageConfig struct + AllowPaidBroadcast bool + BusinessConnectionID string + DirectMessagesTopicId *int64 + DisableNotification bool + DisableWebPagePreview bool + DraftID int + Entities []MessageEntity + LinkPreviewOptions *LinkPreviewOptions + MessageEffectId string + MessageThreadId *int64 + ParseMode string + ProtectContent bool + ReplyMarkup any + ReplyParameters *ReplyParameters + Text string + func NewMessage(chatID int64, text string) MessageConfig + func NewMessageToChannel(username string, text string) MessageConfig + type MessageDraftConfig MessageConfig + type MessageEmojiReactionConfig struct + BusinessConnectionID string + ChatID int64 + Emoji string + IsBig bool + MessageID int + type MessageEntity struct + Language string + Length int + Offset int + Type string + URL string + User *User + func (e MessageEntity) IsBold() bool + func (e MessageEntity) IsCode() bool + func (e MessageEntity) IsCommand() bool + func (e MessageEntity) IsEmail() bool + func (e MessageEntity) IsHashtag() bool + func (e MessageEntity) IsItalic() bool + func (e MessageEntity) IsMention() bool + func (e MessageEntity) IsPre() bool + func (e MessageEntity) IsTextLink() bool + func (e MessageEntity) IsTextMention() bool + func (e MessageEntity) IsURL() bool + func (e MessageEntity) ParseURL() (*url.URL, error) + type MessageID struct + MessageID int + type MessageOrigin struct + AuthorSignature string + Chat *Chat + Date int + MessageID int + SenderChat *Chat + SenderUser *User + SenderUserName string + Type string + type Mux struct + Auth func(b *BotAPI, u Update) bool + BaseContext context.Context + GetRoutePath func(u Update) (string, bool) + NewContext func(ctx context.Context, u Update) context.Context + func NewMux() *Mux + func (m *Mux) Handle(path string, h Handler) + func (m *Mux) HandleFunc(path string, h func(ctx context.Context, b *BotAPI, u Update) error) + func (m Mux) Route(b *BotAPI, u Update) (path string, h Handler, found bool) + func (mx *Mux) Run(basectx context.Context, b *BotAPI, config UpdateConfig) error + type NewStickerSetConfig struct + ContainsMasks bool + Emojis string + MaskPosition *MaskPosition + Name string + PNGSticker RequestFileData + TGSSticker RequestFileData + Title string + UserID int64 + type OldInvoice struct + Currency string + Description string + StartParameter string + Title string + TotalAmount int + type OrderInfo struct + Email string + Name string + PhoneNumber string + ShippingAddress *ShippingAddress + type Params map[string]string + func (p Params) AddAny(key string, value interface{}) error + func (p Params) AddBool(key string, value bool) + func (p Params) AddFirstValid(key string, args ...interface{}) error + func (p Params) AddInterface(key string, value interface{}) error + func (p Params) AddNonEmpty(key, value string) + func (p Params) AddNonZero(key string, value int) + func (p Params) AddNonZero64(key string, value int64) + func (p Params) AddNonZeroFloat(key string, value float64) + type PassportData struct + Credentials *EncryptedCredentials + Data []EncryptedPassportElement + type PassportElementError interface + type PassportElementErrorDataField struct + DataHash string + FieldName string + Message string + Source string + Type string + type PassportElementErrorFile struct + FileHash string + Message string + Source string + Type string + type PassportElementErrorFiles struct + FileHashes []string + Message string + Source string + Type string + type PassportElementErrorFrontSide struct + FileHash string + Message string + Source string + Type string + type PassportElementErrorReverseSide struct + FileHash string + Message string + Source string + Type string + type PassportElementErrorSelfie struct + FileHash string + Message string + Source string + Type string + type PassportFile struct + FileDate int64 + FileID string + FileSize int + FileUniqueID string + type PassportRequestInfoConfig struct + BotID int + Nonce string + PublicKey string + Scope *PassportScope + type PassportScope struct + Data []PassportScopeElement + V int + type PassportScopeElement interface + ScopeType func() string + type PassportScopeElementOne struct + NativeNames bool + Selfie bool + Translation bool + Type string + func (eo *PassportScopeElementOne) ScopeType() string + type PassportScopeElementOneOfSeveral struct + func (eo *PassportScopeElementOneOfSeveral) ScopeType() string + type PersonalDetails struct + BirthDate string + CountryCode string + FirstName string + FirstNameNative string + Gender string + LastName string + LastNameNative string + MiddleName string + MiddleNameNative string + ResidenceCountryCode string + type PhotoConfig struct + Caption string + CaptionEntities []MessageEntity + ParseMode string + Thumb RequestFileData + func NewPhoto(chatID int64, file RequestFileData) PhotoConfig + func NewPhotoToChannel(username string, file RequestFileData) PhotoConfig + type PhotoSize struct + FileID string + FileSize int + FileUniqueID string + Height int + Width int + type PinChatMessageConfig struct + ChannelUsername string + ChatID int64 + DisableNotification bool + MessageID int + type Poll struct + AllowsMultipleAnswers bool + CloseDate int + CorrectOptionID int + Explanation string + ExplanationEntities []MessageEntity + ID string + IsAnonymous bool + IsClosed bool + OpenPeriod int + Options []PollOption + Question string + TotalVoterCount int + Type string + type PollAnswer struct + OptionIDs []int + PollID string + User User + type PollOption struct + Text string + VoterCount int + type PreCheckoutConfig struct + ErrorMessage string + OK bool + PreCheckoutQueryID string + type PreCheckoutQuery struct + Currency string + From *User + ID string + InvoicePayload string + OrderInfo *OrderInfo + ShippingOptionID string + TotalAmount int + type PromoteChatMemberConfig struct + CanChangeInfo bool + CanDeleteMessages bool + CanEditMessages bool + CanInviteUsers bool + CanManageChat bool + CanManageVideoChats bool + CanPinMessages bool + CanPostMessages bool + CanPromoteMembers bool + CanRestrictMembers bool + IsAnonymous bool + type ProximityAlertTriggered struct + Distance int + Traveler User + Watcher User + type RefundedPayment struct + Currency string + InvoicePayload string + ProviderPaymentChargeID string + TelegramPaymentChargeID string + TotalAmount int + type ReplyKeyboardMarkup struct + InputFieldPlaceholder string + Keyboard [][]KeyboardButton + OneTimeKeyboard bool + ResizeKeyboard bool + Selective bool + func NewOneTimeReplyKeyboard(rows ...[]KeyboardButton) ReplyKeyboardMarkup + func NewReplyKeyboard(rows ...[]KeyboardButton) ReplyKeyboardMarkup + type ReplyKeyboardRemove struct + RemoveKeyboard bool + Selective bool + func NewRemoveKeyboard(selective bool) ReplyKeyboardRemove + type ReplyParameters struct + AllowSendingWithoutReply bool + ChatID any + ChecklistTaskID *int + EphemeralMessageID *int + MessageID *int + PollOptionID string + Quote string + QuoteEntities []MessageEntity + QuoteParseMode string + QuotePosition *int + type RequestFile struct + Data RequestFileData + Name string + type RequestFileData interface + NeedsUpload func() bool + SendData func() string + UploadData func() (string, io.Reader, error) + type ResponseParameters struct + MigrateToChatID int64 + RetryAfter int + type RestrictChatMemberConfig struct + Permissions *ChatPermissions + UntilDate int64 + type RevokeChatInviteLinkConfig struct + InviteLink string + type SecureData map[string]*SecureValue + type SecureValue struct + Data *DataCredentials + Files []*FileCredentials + FrontSide *FileCredentials + ReverseSide *FileCredentials + Selfie *FileCredentials + Translation []*FileCredentials + type SendPollConfig struct + AllowsMultipleAnswers bool + CloseDate int + CorrectOptionID int64 + Explanation string + ExplanationEntities []MessageEntity + ExplanationParseMode string + IsAnonymous bool + IsClosed bool + OpenPeriod int + Options []string + Question string + Type string + func NewPoll(chatID int64, question string, options ...string) SendPollConfig + type SentWebAppMessage struct + InlineMessageID string + type SetChatAdministratorCustomTitle struct + CustomTitle string + type SetChatDescriptionConfig struct + ChannelUsername string + ChatID int64 + Description string + func NewChatDescription(chatID int64, description string) SetChatDescriptionConfig + type SetChatMenuButtonConfig struct + ChannelUsername string + ChatID int64 + MenuButton *MenuButton + type SetChatPermissionsConfig struct + Permissions *ChatPermissions + type SetChatPhotoConfig struct + func NewChatPhoto(chatID int64, photo RequestFileData) SetChatPhotoConfig + type SetChatStickerSetConfig struct + ChatID int64 + StickerSetName string + SuperGroupUsername string + type SetChatTitleConfig struct + ChannelUsername string + ChatID int64 + Title string + func NewChatTitle(chatID int64, title string) SetChatTitleConfig + type SetGameScoreConfig struct + ChannelUsername string + ChatID int64 + DisableEditMessage bool + Force bool + InlineMessageID string + MessageID int + Score int + UserID int64 + type SetMyCommandsConfig struct + Commands []BotCommand + LanguageCode string + Scope *BotCommandScope + func NewSetMyCommands(commands ...BotCommand) SetMyCommandsConfig + func NewSetMyCommandsWithScope(scope BotCommandScope, commands ...BotCommand) SetMyCommandsConfig + func NewSetMyCommandsWithScopeAndLanguage(scope BotCommandScope, languageCode string, commands ...BotCommand) SetMyCommandsConfig + type SetMyDefaultAdministratorRightsConfig struct + ForChannels bool + Rights ChatAdministratorRights + type SetStickerPositionConfig struct + Position int + Sticker string + type SetStickerSetThumbConfig struct + Name string + Thumb RequestFileData + UserID int64 + type ShippingAddress struct + City string + CountryCode string + PostCode string + State string + StreetLine1 string + StreetLine2 string + type ShippingConfig struct + ErrorMessage string + OK bool + ShippingOptions []ShippingOption + ShippingQueryID string + type ShippingOption struct + ID string + Prices []LabeledPrice + Title string + type ShippingQuery struct + From *User + ID string + InvoicePayload string + ShippingAddress *ShippingAddress + type Sticker struct + CustomEmojiID string + Emoji string + FileID string + FileSize int + FileUniqueID string + Height int + IsAnimated bool + IsVideo bool + MaskPosition *MaskPosition + PremiumAnimation *File + SetName string + Thumbnail *PhotoSize + Width int + type StickerConfig struct + func NewSticker(chatID int64, file RequestFileData) StickerConfig + type StickerSet struct + ContainsMasks bool + IsAnimated bool + IsVideo bool + Name string + StickerType string + Stickers []Sticker + Thumbnail *PhotoSize + Title string + type StopMessageLiveLocationConfig struct + type StopPollConfig struct + func NewStopPoll(chatID int64, messageID int) StopPollConfig + type SuccessfulPayment struct + Currency string + InvoicePayload string + IsFirstRecurring bool + IsRecurring bool + OrderInfo *OrderInfo + ProviderPaymentChargeID string + ShippingOptionID string + SubscriptionExpirationDate int + TelegramPaymentChargeID string + TotalAmount int + type SuggestedPostParameters struct + Price *SuggestedPostPrice + SendDate int64 + type SuggestedPostPrice struct + Ammount int64 + Currency string + type TextQuote struct + Entities []MessageEntity + IsManual bool + Position int + Text string + type UnbanChatMemberConfig struct + OnlyIfBanned bool + type UnbanChatSenderChatConfig struct + ChannelUsername string + ChatID int64 + SenderChatID int64 + type UnpinAllChatMessagesConfig struct + ChannelUsername string + ChatID int64 + type UnpinChatMessageConfig struct + ChannelUsername string + ChatID int64 + MessageID int + type Update struct + BusinessConnection *BusinessConnection + BusinessMessage *Message + CallbackQuery *CallbackQuery + ChannelPost *Message + ChatJoinRequest *ChatJoinRequest + ChatMember *ChatMemberUpdated + ChosenInlineResult *ChosenInlineResult + EditedBusinessMessage *Message + EditedChannelPost *Message + EditedMessage *Message + GuestMessage *Message + InlineQuery *InlineQuery + Message *Message + MessageReaction json.RawMessage + MessageReactionCount json.RawMessage + MyChatMember *ChatMemberUpdated + Poll *Poll + PollAnswer *PollAnswer + PreCheckoutQuery *PreCheckoutQuery + ShippingQuery *ShippingQuery + UpdateID int + func (u *Update) CallbackData() string + func (u *Update) FromChat() *Chat + func (u *Update) SentFrom() *User + func (u Update) Raw() json.RawMessage + type UpdateConfig struct + AllowedUpdates []string + Limit int + Offset int + Timeout int + func NewUpdate(offset int) UpdateConfig + type UpdatesChannel <-chan Update + func (ch UpdatesChannel) Clear() + type UploadStickerConfig struct + PNGSticker RequestFileData + UserID int64 + type User struct + AddedToAttachmentMenu bool + AllowsUsersToCreateTopics bool + CanConnectToBusiness bool + CanJoinGroups bool + CanManageBots bool + CanReadAllGroupMessages bool + FirstName string + HasMainWebApp bool + HasTopicsEnabled bool + ID int64 + IsBot bool + IsPremium bool + LanguageCode string + LastName string + SupportsInlineQueries bool + SupportsJoinRequestQueries bool + UserName string + func (u *User) String() string + type UserPersonalChatMessages struct + Limit int + UserID int64 + type UserProfilePhotos struct + Photos [][]PhotoSize + TotalCount int + type UserProfilePhotosConfig struct + Limit int + Offset int + UserID int64 + func NewUserProfilePhotos(userID int64) UserProfilePhotosConfig + type Venue struct + Address string + FoursquareID string + FoursquareType string + GooglePlaceID string + GooglePlaceType string + Location Location + Title string + type VenueConfig struct + Address string + FoursquareID string + FoursquareType string + GooglePlaceID string + GooglePlaceType string + Latitude float64 + Longitude float64 + Title string + func NewVenue(chatID int64, title, address string, latitude, longitude float64) VenueConfig + type Video struct + Duration int + FileID string + FileName string + FileSize int + FileUniqueID string + Height int + MimeType string + Thumbnail *PhotoSize + Width int + type VideoChatEnded struct + Duration int + type VideoChatParticipantsInvited struct + Users []User + type VideoChatScheduled struct + StartDate int + func (m *VideoChatScheduled) Time() time.Time + type VideoChatStarted struct + type VideoConfig struct + Caption string + CaptionEntities []MessageEntity + Duration int + ParseMode string + SupportsStreaming bool + Thumb RequestFileData + func NewVideo(chatID int64, file RequestFileData) VideoConfig + type VideoNote struct + Duration int + FileID string + FileSize int + FileUniqueID string + Length int + Thumbnail *PhotoSize + type VideoNoteConfig struct + Duration int + Length int + Thumb RequestFileData + func NewVideoNote(chatID int64, length int, file RequestFileData) VideoNoteConfig + type Voice struct + Duration int + FileID string + FileSize int + FileUniqueID string + MimeType string + type VoiceConfig struct + Caption string + CaptionEntities []MessageEntity + Duration int + ParseMode string + Thumb RequestFileData + func NewVoice(chatID int64, file RequestFileData) VoiceConfig + type WebAppData struct + ButtonText string + Data string + type WebAppInfo struct + URL string + type WebhookConfig struct + AllowedUpdates []string + Certificate RequestFileData + DropPendingUpdates bool + IPAddress string + MaxConnections int + URL *url.URL + func NewWebhook(link string) (WebhookConfig, error) + func NewWebhookWithCert(link string, file RequestFileData) (WebhookConfig, error) + type WebhookHandler struct + func (bot *WebhookHandler) HandleUpdate(r *http.Request) (*Update, error) + func (bot *WebhookHandler) ListenForWebhook(mux *http.ServeMux, pattern string) UpdatesChannel + func (bot *WebhookHandler) ListenForWebhookRespReqFormat(w http.ResponseWriter, r *http.Request) UpdatesChannel + type WebhookInfo struct + AllowedUpdates []string + HasCustomCertificate bool + IPAddress string + LastErrorDate int + LastErrorMessage string + LastSynchronizationErrorDate int + MaxConnections int + PendingUpdateCount int + URL string + func (info WebhookInfo) IsSet() bool