Versions in this module Expand all Collapse all v1 v1.0.0 Nov 7, 2020 Changes in this version + const ApiUrl + var DefaultTgBotRequester = BaseRequester + type Animation struct + Duration int + FileId string + FileName string + FileSize int + FileUniqueId string + Height int + MimeType string + Thumb *PhotoSize + Width int + type Audio struct + Duration int + FileId string + FileName string + FileSize int + FileUniqueId string + MimeType string + Performer string + Thumb *PhotoSize + Title string + type BasePassportError struct + Message string + Source string + Type string + type BaseRequester struct + ApiUrl string + Client http.Client + func (tbg BaseRequester) Get(l *zap.SugaredLogger, token string, method string, params url.Values) (json.RawMessage, error) + func (tbg BaseRequester) Post(l *zap.SugaredLogger, token string, method string, params url.Values, ...) (json.RawMessage, error) + type Bot struct + AllowSendingWithoutReply bool + DisableWebPreview bool + FirstName string + Id int + Logger *zap.SugaredLogger + Token string + UserName string + func NewBot(l *zap.Logger, token string) (*Bot, error) + func (b Bot) AddPngStickerToSet(userId int, name string, pngSticker InputFile, emojis string) (bool, error) + func (b Bot) AddTgsStickerToSet(userId int, name string, tgsSticker InputFile, emojis string) (bool, error) + func (b Bot) AnswerCallbackQuery(callbackQueryId string) (bool, error) + func (b Bot) AnswerCallbackQueryText(callbackQueryId string, text string, alert bool) (bool, error) + func (b Bot) AnswerCallbackQueryURL(callbackQueryId string, url string) (bool, error) + func (b Bot) AnswerInlineQuery(inlineQueryId string, results []InlineQueryResult) (bool, error) + func (b Bot) AnswerPreCheckoutQuery(preCheckoutQueryId string, ok bool) (bool, error) + func (b Bot) AnswerShippingQuery(shippingQueryId string, ok bool) (bool, error) + func (b Bot) Close() (bool, error) + func (b Bot) CreateNewPngStickerSet(userId int, name string, title string, pngSticker InputFile, emojis string) (bool, error) + func (b Bot) CreateNewTgsStickerSet(userId int, name string, title string, tgsSticker InputFile, emojis string) (bool, error) + func (b Bot) DeleteChatPhoto(chatId int) (bool, error) + func (b Bot) DeleteChatStickerSet(chatId int) (bool, error) + func (b Bot) DeleteMessage(chatId int, messageId int) (bool, error) + func (b Bot) DeleteStickerFromSet(sticker string) (bool, error) + func (b Bot) DeleteWebhook() (bool, error) + func (b Bot) DeleteWebhookDrop(dropUpdates bool) (bool, error) + func (b Bot) DemoteChatMember(chatId int, userId int) (bool, error) + func (b Bot) EditMessage(chatId int, messageId int, text string, parseMode string) (*Message, error) + func (b Bot) EditMessageCaption(chatId int, messageId int, caption string) (*Message, error) + func (b Bot) EditMessageCaptionInline(inlineMessageId string, caption string) (*Message, error) + func (b Bot) EditMessageCaptionMarkup(chatId int, messageId int, caption string, markup ReplyMarkup) (*Message, error) + func (b Bot) EditMessageCaptionParseMode(chatId int, messageId int, caption string, parseMode string) (*Message, error) + func (b Bot) EditMessageHTML(chatId int, messageId int, text string) (*Message, error) + func (b Bot) EditMessageHTMLInline(inlineMessageId string, text string) (*Message, error) + func (b Bot) EditMessageInline(inlineMessageId string, text string, parseMode string) (*Message, error) + func (b Bot) EditMessageMarkdown(chatId int, messageId int, text string) (*Message, error) + func (b Bot) EditMessageMarkdownInline(inlineMessageId string, text string) (*Message, error) + func (b Bot) EditMessageMarkdownV2(chatId int, messageId int, text string) (*Message, error) + func (b Bot) EditMessageMarkdownV2Inline(inlineMessageId string, text string) (*Message, error) + func (b Bot) EditMessageReplyMarkup(chatId int, messageId int, replyMarkup InlineKeyboardMarkup) (*Message, error) + func (b Bot) EditMessageReplyMarkupInline(inlineMessageId string, replyMarkup InlineKeyboardMarkup) (*Message, error) + func (b Bot) EditMessageText(chatId int, messageId int, text string) (*Message, error) + func (b Bot) EditMessageTextInline(inlineMessageId string, text string) (*Message, error) + func (b Bot) EditMessageTextMarkup(chatId int, messageId int, text string, parseMode string, markup ReplyMarkup) (*Message, error) + func (b Bot) ExportChatInviteLink(chatId int) (string, error) + func (b Bot) ForwardMessage(chatId int, fromChatId int, messageId int) (*Message, error) + func (b Bot) Get(method string, params url.Values) (json.RawMessage, error) + func (b Bot) GetChat(chatId int) (*Chat, error) + func (b Bot) GetChatAdministrators(chatId int) ([]ChatMember, error) + func (b Bot) GetChatMember(chatId int, userId int) (*ChatMember, error) + func (b Bot) GetChatMembersCount(chatId int) (int, error) + func (b Bot) GetFile(fileId string) (*File, error) + func (b Bot) GetGameHighScores(userId int, chatId int, messageId int) ([]GameHighScore, error) + func (b Bot) GetGameHighScoresInline(userId int, inlineMessageId string) ([]GameHighScore, error) + func (b Bot) GetMe() (*User, error) + func (b Bot) GetMyCommands() ([]BotCommand, error) + func (b Bot) GetStickerSet(name string) (*StickerSet, error) + func (b Bot) GetUserProfilePhotos(userId int, offset int, limit int) (*UserProfilePhotos, error) + func (b Bot) GetWebhookInfo() (*WebhookInfo, error) + func (b Bot) KickChatMember(chatId int, userId int) (bool, error) + func (b Bot) KickChatMemberUntil(chatId int, userId int, untilDate int64) (bool, error) + func (b Bot) LeaveChat(chatId int) (bool, error) + func (b Bot) LogOut() (bool, error) + func (b Bot) NewFileId(fileId string) InputFile + func (b Bot) NewFileReader(name string, r io.Reader) InputFile + func (b Bot) NewFileURL(url string) InputFile + func (b Bot) NewSendableAddStickerToSet(userId int, name string, emojis string) *sendableAddStickerToSet + func (b Bot) NewSendableAnimation(chatId int, caption string) *sendableAnimation + func (b Bot) NewSendableAnswerCallbackQuery(queryId string) *sendableCallbackQuery + func (b Bot) NewSendableAnswerInlineQuery(inlineQueryId string, results []InlineQueryResult) *sendableAnswerInlineQuery + func (b Bot) NewSendableAnswerPreCheckoutQuery(shippingQueryId string, ok bool) *sendableAnswerPreCheckoutQuery + func (b Bot) NewSendableAnswerShippingQuery(shippingQueryId string, ok bool) *sendableAnswerShippingQuery + func (b Bot) NewSendableAudio(chatId int, caption string) *sendableAudio + func (b Bot) NewSendableChatAction(chatId int) *sendableChatAction + func (b Bot) NewSendableContact(chatId int) *sendableContact + func (b Bot) NewSendableCopyMessage(chatId int, fromChatId int, messageId int) *sendableCopyMessage + func (b Bot) NewSendableCreateNewStickerSet(userId int, name string, title string, emojis string) *sendableCreateNewStickerSet + func (b Bot) NewSendableDice(chatId int) *sendableDice + func (b Bot) NewSendableDocument(chatId int, caption string) *sendableDocument + func (b Bot) NewSendableEditMessageCaption(chatId int, messageId int, caption string) *sendableEditMessageCaption + func (b Bot) NewSendableEditMessageLiveLocation(chatId int, latitude float64, longitude float64) *sendableEditMessageLiveLocation + func (b Bot) NewSendableEditMessageMedia(chatId int, messageId int) *sendableEditMessageMedia + func (b Bot) NewSendableEditMessageReplyMarkup(chatId int, messageId int, markup ReplyMarkup) *sendableEditMessageReplyMarkup + func (b Bot) NewSendableEditMessageText(chatId int, messageId int, text string) *sendableEditMessageText + func (b Bot) NewSendableGame(chatId int, gameShortName string) *sendableGame + func (b Bot) NewSendableGetGameHighScore(userId int, chatId int, messageId int) *sendableGetGameHighScores + func (b Bot) NewSendableGetGameHighScoreInline(userId int, inlineMessageId string) *sendableGetGameHighScores + func (b Bot) NewSendableInvoice(chatId int, title string, description string, payload string, ...) *sendableInvoice + func (b Bot) NewSendableKickChatMember(chatId int, userId int) *sendableKickChatMember + func (b Bot) NewSendableLocation(chatId int) *sendableLocation + func (b Bot) NewSendableMediaGroup(chatId int) *sendableMediaGroup + func (b Bot) NewSendableMessage(chatId int, text string) *sendableTextMessage + func (b Bot) NewSendablePhoto(chatId int, caption string) *sendablePhoto + func (b Bot) NewSendablePinChatMessage(chatId int, messageId int) *sendablePinChatMessage + func (b Bot) NewSendablePoll(chatId int, question string, options []string) *sendablePoll + func (b Bot) NewSendablePromoteChatMember(chatId int, userId int) *sendablePromoteChatMember + func (b Bot) NewSendableRestrictChatMember(chatId int, userId int) *sendableRestrictChatMember + func (b Bot) NewSendableSetChatAdministratorCustomTitle(chatId int, userId int, customTitle string) *sendableSetChatAdministratorCustomTitle + func (b Bot) NewSendableSetChatPermissions(chatId int, perms ChatPermissions) *sendableSetChatPermissions + func (b Bot) NewSendableSetChatPhoto(chatId int) *sendableSetChatPhoto + func (b Bot) NewSendableSetGameScore(userId int, score int, chatId int, messageId int) *sendableSetGameScore + func (b Bot) NewSendableSetGameScoreInline(userId int, score int, inlineMessageId string) *sendableSetGameScore + func (b Bot) NewSendableSetStickerSetThumb(userId int) *sendableSetStickerSetThumb + func (b Bot) NewSendableSticker(chatId int) *sendableSticker + func (b Bot) NewSendableStopMessageLiveLocation(chatId int) *sendableStopMessageLiveLocation + func (b Bot) NewSendableUploadStickerFile(userId int) *sendableUploadStickerFile + func (b Bot) NewSendableVenue(chatId int) *sendableVenue + func (b Bot) NewSendableVideo(chatId int, caption string) *sendableVideo + func (b Bot) NewSendableVideoNote(chatId int) *sendableVideoNote + func (b Bot) NewSendableVoice(chatId int, caption string) *sendableVoice + func (b Bot) ParseMessage(message json.RawMessage) (mess *Message, err error) + func (b Bot) PinChatMessage(chatId int, messageId int) (bool, error) + func (b Bot) PinChatMessageQuiet(chatId int, messageId int) (bool, error) + func (b Bot) Post(method string, params url.Values, data map[string]PostFile) (json.RawMessage, error) + func (b Bot) PromoteChatMember(chatId int, userId int) (bool, error) + func (b Bot) ReplyAudio(chatId int, audio InputFile, replyToMessageId int) (*Message, error) + func (b Bot) ReplyContact(chatId int, phoneNumber string, firstName string, replyToMessageId int) (*Message, error) + func (b Bot) ReplyDocument(chatId int, document InputFile, replyToMessageId int) (*Message, error) + func (b Bot) ReplyDocumentCaption(chatId int, document InputFile, caption string, replyToMessageId int) (*Message, error) + func (b Bot) ReplyHTML(chatId int, text string, replyToMessageId int) (*Message, error) + func (b Bot) ReplyLocation(chatId int, latitude float64, longitude float64, replyToMessageId int) (*Message, error) + func (b Bot) ReplyMarkdown(chatId int, text string, replyToMessageId int) (*Message, error) + func (b Bot) ReplyMarkdownV2(chatId int, text string, replyToMessageId int) (*Message, error) + func (b Bot) ReplyPhoto(chatId int, photo InputFile, replyToMessageId int) (*Message, error) + func (b Bot) ReplyPhotoCaption(chatId int, photo InputFile, caption string, replyToMessageId int) (*Message, error) + func (b Bot) ReplyPoll(chatId int, question string, options []string, replyToMessageId int) (*Message, error) + func (b Bot) ReplySticker(chatId int, s InputFile, replyToMessageId int) (*Message, error) + func (b Bot) ReplyText(chatId int, text string, replyToMessageId int) (*Message, error) + func (b Bot) ReplyVenue(chatId int, latitude float64, longitude float64, title string, address string, ...) (*Message, error) + func (b Bot) ReplyVideo(chatId int, video InputFile, replyToMessageId int) (*Message, error) + func (b Bot) ReplyVideoNote(chatId int, videoNote InputFile, replyToMessageId int) (*Message, error) + func (b Bot) ReplyVoice(chatId int, voice InputFile, replyToMessageId int) (*Message, error) + func (b Bot) RestrictChatMember(chatId int, userId int) (bool, error) + func (b Bot) SendAudio(chatId int, audio InputFile) (*Message, error) + func (b Bot) SendChatAction(chatId int, action string) (bool, error) + func (b Bot) SendContact(chatId int, phoneNumber string, firstName string) (*Message, error) + func (b Bot) SendDocument(chatId int, document InputFile) (*Message, error) + func (b Bot) SendDocumentCaption(chatId int, document InputFile, caption string) (*Message, error) + func (b Bot) SendGame(chatId int, gameShortName string) (*Message, error) + func (b Bot) SendInvoice(chatId int, title string, description string, payload string, ...) (*Message, error) + func (b Bot) SendLocation(chatId int, latitude float64, longitude float64) (*Message, error) + func (b Bot) SendMessage(chatId int, text string) (*Message, error) + func (b Bot) SendMessageHTML(chatId int, text string) (*Message, error) + func (b Bot) SendMessageMarkdown(chatId int, text string) (*Message, error) + func (b Bot) SendMessageMarkdownV2(chatId int, text string) (*Message, error) + func (b Bot) SendPhoto(chatId int, photo InputFile) (*Message, error) + func (b Bot) SendPhotoCaption(chatId int, photo InputFile, caption string) (*Message, error) + func (b Bot) SendPoll(chatId int, question string, options []string) (*Message, error) + func (b Bot) SendSticker(chatId int, s InputFile) (*Message, error) + func (b Bot) SendVenue(chatId int, latitude float64, longitude float64, title string, address string) (*Message, error) + func (b Bot) SendVideo(chatId int, video InputFile) (*Message, error) + func (b Bot) SendVideoNote(chatId int, videoNote InputFile) (*Message, error) + func (b Bot) SendVoice(chatId int, voice InputFile) (*Message, error) + func (b Bot) SetChatAdministratorCustomTitle(chatId int, userId int, customTitle string) (bool, error) + func (b Bot) SetChatDescription(chatId int, description string) (bool, error) + func (b Bot) SetChatPermissions(chatId int, perms ChatPermissions) (bool, error) + func (b Bot) SetChatPhoto(chatId int, photo InputFile) (bool, error) + func (b Bot) SetChatStickerSet(chatId int, stickerSetName string) (bool, error) + func (b Bot) SetChatTitle(chatId int, title string) (bool, error) + func (b Bot) SetGameScore(userId int, score int, chatId int, messageId int) (bool, error) + func (b Bot) SetGameScoreInline(userId int, score int, inlineMessageId string) (bool, error) + func (b Bot) SetMyCommands(cmds []BotCommand) (bool, error) + func (b Bot) SetPassportDataErrors(userId int, errors ...PassportElementError) + func (b Bot) SetStickerPositionInSet(sticker string, position int) (bool, error) + func (b Bot) SetWebhook(path string, webhook Webhook) (bool, error) + func (b Bot) StopPoll(chatId int, messageId int) (*Poll, error) + func (b Bot) StopPollMarkup(chatId int, messageId int, replyMarkup InlineKeyboardMarkup) (*Poll, error) + func (b Bot) UnRestrictChatMember(chatId int, userId int) (bool, error) + func (b Bot) UnbanChatMember(chatId int, userId int) (bool, error) + func (b Bot) UnbanChatMemberOnlyIfBanned(chatId int, userId int, onlyIfBanned bool) (bool, error) + func (b Bot) UnpinAllChatMessages(chatId int) (bool, error) + func (b Bot) UnpinChatMessage(chatId int) (bool, error) + func (b Bot) UnpinChatMessageById(chatId int, messageId int) (bool, error) + func (b Bot) UploadSticker(userId int, s InputFile) (*File, error) + type BotCommand struct + Command string + Description string + type CallbackQuery struct + Bot Bot + ChatInstance string + Data string + From *User + GameShortName string + Id string + InlineMessageId string + Message *Message + func (cq *CallbackQuery) AnswerCallbackQuery() (bool, error) + func (cq *CallbackQuery) AnswerCallbackQueryText(text string, alert bool) (bool, error) + func (cq *CallbackQuery) AnswerCallbackQueryURL(url string) (bool, error) + type Chat struct + Bio string + Bot Bot + CanSetStickerSet bool + Description string + FirstName string + Id int + InviteLink string + LastName string + LinkedChatId int + Location ChatLocation + Permissions *ChatPermissions + Photo *ChatPhoto + PinnedMessage *Message + SlowModeDelay int + StickerSetName string + Title string + Type string + Username string + func (chat Chat) DeleteMessage(messageId int) (bool, error) + func (chat Chat) DeletePhoto() (bool, error) + func (chat Chat) DeleteStickerSet() (bool, error) + func (chat Chat) DemoteMember(userId int) (bool, error) + func (chat Chat) ExportInviteLink() (string, error) + func (chat Chat) Get() (*Chat, error) + func (chat Chat) GetAdministrators() ([]ChatMember, error) + func (chat Chat) GetMember(userId int) (*ChatMember, error) + func (chat Chat) GetMembersCount() (int, error) + func (chat Chat) KickMember(userId int) (bool, error) + func (chat Chat) Leave() (bool, error) + func (chat Chat) PinMessage(messageId int) (bool, error) + func (chat Chat) PinMessageQuiet(messageId int) (bool, error) + func (chat Chat) PromoteMember(userId int) (bool, error) + func (chat Chat) RestrictMember(userId int) (bool, error) + func (chat Chat) SendAction(action string) (bool, error) + func (chat Chat) SetAdministratorCustomTitle(userId int, customTitle string) (bool, error) + func (chat Chat) SetChatPermissions(perms ChatPermissions) (bool, error) + func (chat Chat) SetChatPhoto(photo InputFile) (bool, error) + func (chat Chat) SetDescription(description string) (bool, error) + func (chat Chat) SetStickerSet(stickerSetName string) (bool, error) + func (chat Chat) SetTitle(title string) (bool, error) + func (chat Chat) UnRestrictMember(userId int) (bool, error) + func (chat Chat) UnbanMember(userId int) (bool, error) + func (chat Chat) UnpinAll() (bool, error) + func (chat Chat) UnpinMessage() (bool, error) + func (chat Chat) UnpinMessageById(messageId int) (bool, error) + type ChatLocation struct + Address string + Location Location + type ChatMember struct + CanAddWebPagePreviews bool + CanBeEdited bool + CanChangeInfo bool + CanDeleteMessages bool + CanEditMessages bool + CanInviteUsers 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 + 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 ChosenInlineResult struct + From *User + InlineMessageId string + Location Location + Query string + ResultId string + type Contact struct + FirstName string + LastName string + PhoneNumber string + UserId int + type Dice struct + Bot Bot + Emoji string + Value int + type Document struct + FileId string + FileName string + FileSize int + FileUniqueId string + MimeType string + Thumb *PhotoSize + type EncryptedCredentials struct + Data string + Hash string + Secret string + type EncryptedPassportElement struct + Data string + Email string + Files []PassportFile + FrontSide PassportFile + Hash string + PhoneNumber string + ReverseSide PassportFile + Selfie PassportFile + Translation []PassportFile + Type string + type File struct + FileId string + FilePath string + FileSize int + FileUniqueId string + type ForceReply struct + ForceReply bool + Selective bool + func (fr *ForceReply) Marshal() ([]byte, error) + type Game struct + Animation *Animation + Description string + Photo []PhotoSize + Text string + TextEntities []MessageEntity + Title string + type GameHighScore struct + Position int + Score int + User User + type InlineKeyboardButton struct + CallbackData string + LoginUrl *LoginUrl + Pay bool + SwitchInlineQuery string + SwitchInlineQueryCurrentChat string + Text string + Url string + type InlineKeyboardMarkup struct + InlineKeyboard *[][]InlineKeyboardButton + func (rkm *InlineKeyboardMarkup) Marshal() ([]byte, error) + type InlineQuery struct + From *User + Id string + Location *Location + Offset string + Query string + type InlineQueryResult struct + type InlineQueryResultArticle struct + Description string + HideUrl bool + Id string + InputMessageContent InputMessageContent + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbUrl string + ThumbWidth int + Title string + Type string + Url string + type InlineQueryResultAudio struct + AudioDuration int + AudioUrl string + Caption string + Id string + InputMessageContent InputMessageContent + Performer string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + type InlineQueryResultCachedAudio struct + AudioFileId string + Caption string + Id string + InputMessageContent InputMessageContent + ReplyMarkup *InlineKeyboardMarkup + Type string + type InlineQueryResultCachedDocument struct + Caption string + Description string + DocumentFileId string + Id string + InputMessageContent InputMessageContent + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + type InlineQueryResultCachedGif struct + Caption string + GifFileId string + Id string + InputMessageContent InputMessageContent + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + type InlineQueryResultCachedMpeg4Gif struct + Caption string + Id string + InputMessageContent InputMessageContent + Mpeg4FileId string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + type InlineQueryResultCachedPhoto struct + Caption string + Description string + Id string + InputMessageContent InputMessageContent + PhotoFileId string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + type InlineQueryResultCachedSticker struct + Id string + InputMessageContent InputMessageContent + ReplyMarkup *InlineKeyboardMarkup + StickerFileId string + Type string + type InlineQueryResultCachedVideo struct + Caption string + Description string + Id string + InputMessageContent InputMessageContent + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + VideoFileId string + type InlineQueryResultCachedVoice struct + Caption string + Id string + InputMessageContent InputMessageContent + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + VoiceFileId string + type InlineQueryResultContact struct + FirstName string + Id string + InputMessageContent InputMessageContent + LastName string + PhoneNumber string + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbUrl string + ThumbWidth int + Type string + type InlineQueryResultDocument struct + Caption string + Description string + DocumentUrl string + Id string + InputMessageContent InputMessageContent + MimeType string + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbUrl string + ThumbWidth int + Title string + Type string + type InlineQueryResultGame struct + GameShortName string + Id string + ReplyMarkup *InlineKeyboardMarkup + Type string + type InlineQueryResultGif struct + Caption string + GifDuration int + GifHeight int + GifUrl string + GifWidth int + Id string + InputMessageContent InputMessageContent + ReplyMarkup *InlineKeyboardMarkup + ThumbUrl string + Title string + Type string + type InlineQueryResultLocation struct + Heading int + HorizontalAccuracy float64 + Id string + InputMessageContent InputMessageContent + Latitude float64 + LivePeriod int + Longitude float64 + ProximityAlertRadius int + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbUrl string + ThumbWidth int + Title string + Type string + type InlineQueryResultMpeg4Gif struct + Caption string + Id string + InputMessageContent InputMessageContent + Mpeg4Duration int + Mpeg4Height int + Mpeg4Url string + Mpeg4Width int + ReplyMarkup *InlineKeyboardMarkup + ThumbUrl string + Title string + Type string + type InlineQueryResultPhoto struct + Caption string + Description string + Id string + InputMessageContent InputMessageContent + PhotoHeight int + PhotoUrl string + PhotoWidth int + ReplyMarkup *InlineKeyboardMarkup + ThumbUrl string + Title string + Type string + type InlineQueryResultVenue struct + Address string + FoursquareId string + FoursquareType string + GooglePlaceId string + GooglePlaceType string + Id string + InputMessageContent InputMessageContent + Latitude float64 + Longitude float64 + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbUrl string + ThumbWidth int + Title string + Type string + type InlineQueryResultVideo struct + Caption string + Description string + Id string + InputMessageContent InputMessageContent + MimeType string + ReplyMarkup *InlineKeyboardMarkup + ThumbUrl string + Title string + Type string + VideoDuration int + VideoHeight int + VideoUrl string + VideoWidth int + type InlineQueryResultVoice struct + Caption string + Id string + InputMessageContent InputMessageContent + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + VoiceDuration int + VoiceUrl string + type InputContactMessageContent struct + FirstName string + LastName string + PhoneNumber string + type InputFile struct + FileId string + Name string + Reader io.Reader + URL string + func (f InputFile) GetMediaType(attachAs string, data map[string]PostFile) string + type InputLocationMessageContent struct + Heading int + HorizontalAccuracy float64 + Latitude float64 + LivePeriod int + Longitude float64 + ProximityAlertRadius int + type InputMedia interface + type InputMediaAnimation struct + Caption string + CaptionEntities []MessageEntity + Duration int + Height int + Media InputFile + ParseMode string + Thumb *InputFile + Width int + type InputMediaAudio struct + Caption string + CaptionEntities []MessageEntity + Duration int + Media InputFile + ParseMode string + Performer string + Thumb *InputFile + Title string + type InputMediaDocument struct + Caption string + CaptionEntities []MessageEntity + DisableContentTypeDetection bool + Media InputFile + ParseMode string + Thumb *InputFile + type InputMediaPhoto struct + Caption string + CaptionEntities []MessageEntity + Media InputFile + ParseMode string + type InputMediaVideo struct + Caption string + CaptionEntities []MessageEntity + Duration int + Height int + Media InputFile + ParseMode string + SupportStreaming bool + Thumb *InputFile + Width int + type InputMessageContent struct + type InputTextMessageContent struct + DisableWebPagePreview bool + MessageText string + ParseMode string + type InputVenueMessageContent struct + Address string + FoursquareId string + FoursquareType string + GooglePlaceId string + GooglePlaceType string + Latitude float64 + Longitude float64 + Title string + type Invoice struct + Currency string + Description string + StartParameter string + Title string + TotalAmount int + type KeyboardButton struct + RequestContact bool + RequestLocation bool + RequestPoll *KeyboardButtonPollType + Text string + type KeyboardButtonPollType struct + Type []string + type LabeledPrice struct + Amount int + Label string + type Location struct + Heading int + HorizontalAccuracy float64 + Latitude float64 + LivePeriod int + Longitude float64 + ProximityAlertRadius int + type LoginUrl struct + BotUsername string + ForwardText string + RequestWriteAccess bool + Url string + type MaskPosition struct + Point string + Scale float64 + XShift float64 + YShift float64 + type Message struct + Animation *Animation + Audio *Audio + AuthorSignature string + Bot Bot + Caption string + CaptionEntities []MessageEntity + ChannelChatCreated bool + Chat *Chat + ConnectedWebsite string + Contact *Contact + Date int + DeleteChatPhoto bool + Dice *Dice + Document *Document + EditDate int + Entities []MessageEntity + ForwardDate int + ForwardFrom *User + ForwardFromChat *Chat + ForwardFromMessageId int + ForwardSenderName string + ForwardSignature string + From *User + Game *Game + GroupChatCreated bool + Invoice *Invoice + LeftChatMember *User + Location *Location + MediaGroupId string + MessageId int + MigrateFromChatId int + MigrateToChatId int + NewChatMembers []User + NewChatPhoto []PhotoSize + NewChatTitle string + PassportData *PassportData + Photo []PhotoSize + PinnedMessage *Message + Poll *Poll + ProximityAlertTriggered *ProximityAlertTriggered + ReplyMarkup *InlineKeyboardMarkup + ReplyToMessage *Message + SenderChat *Chat + Sticker *Sticker + SuccessfulPayment *SuccessfulPayment + SupergroupChatCreated bool + Text string + Venue *Venue + ViaBot *User + Video *Video + VideoNote *VideoNote + Voice *Voice + func (m *Message) OriginalCaption() string + func (m *Message) OriginalCaptionHTML() string + func (m *Message) OriginalCaptionV2() string + func (m *Message) OriginalHTML() string + func (m *Message) OriginalText() string + func (m *Message) OriginalTextV2() string + func (m *Message) ParseCaptionEntities() (out []ParsedMessageEntity) + func (m *Message) ParseCaptionEntity(entity MessageEntity) ParsedMessageEntity + func (m *Message) ParseCaptionEntityTypes(accepted map[string]struct{}) (out []ParsedMessageEntity) + func (m *Message) ParseEntities() (out []ParsedMessageEntity) + func (m *Message) ParseEntity(entity MessageEntity) ParsedMessageEntity + func (m *Message) ParseEntityTypes(accepted map[string]struct{}) (out []ParsedMessageEntity) + func (m Message) Delete() (bool, error) + func (m Message) EditCaption(text string) (*Message, error) + func (m Message) EditCaptionHTML(text string) (*Message, error) + func (m Message) EditCaptionHTMLf(format string, a ...interface{}) (*Message, error) + func (m Message) EditCaptionMarkdown(text string) (*Message, error) + func (m Message) EditCaptionMarkdownf(format string, a ...interface{}) (*Message, error) + func (m Message) EditCaptionf(format string, a ...interface{}) (*Message, error) + func (m Message) EditHTML(text string) (*Message, error) + func (m Message) EditHTMLf(format string, a ...interface{}) (*Message, error) + func (m Message) EditMarkdown(text string) (*Message, error) + func (m Message) EditMarkdownf(format string, a ...interface{}) (*Message, error) + func (m Message) EditText(text string) (*Message, error) + func (m Message) EditTextf(format string, a ...interface{}) (*Message, error) + func (m Message) Forward(chatId int) (*Message, error) + func (m Message) ReplyAudio(audio InputFile) (*Message, error) + func (m Message) ReplyDocument(document InputFile) (*Message, error) + func (m Message) ReplyHTML(text string) (*Message, error) + func (m Message) ReplyHTMLf(format string, a ...interface{}) (*Message, error) + func (m Message) ReplyLocation(latitude float64, longitude float64) (*Message, error) + func (m Message) ReplyMarkdown(text string) (*Message, error) + func (m Message) ReplyMarkdownf(format string, a ...interface{}) (*Message, error) + func (m Message) ReplyPhoto(photo InputFile) (*Message, error) + func (m Message) ReplySticker(sticker InputFile) (*Message, error) + func (m Message) ReplyText(text string) (*Message, error) + func (m Message) ReplyTextf(format string, a ...interface{}) (*Message, error) + func (m Message) ReplyVenue(latitude float64, longitude float64, title string, address string) (*Message, error) + func (m Message) ReplyVideo(video InputFile) (*Message, error) + func (m Message) ReplyVideoNote(videoNote InputFile) (*Message, error) + func (m Message) ReplyVoice(voice InputFile) (*Message, error) + type MessageEntity struct + Language string + Length int + Offset int + Type string + Url string + User *User + type OrderInfo struct + Email string + Name string + PhoneNumber string + ShippingAddress ShippingAddress + type ParsedMessageEntity struct + Length int + Offset int + Text string + Type string + Url string + User *User + type PassportData struct + Credentials EncryptedCredentials + Data []EncryptedPassportElement + type PassportElementError interface + Data func() (url.Values, error) + type PassportElementErrorDataField struct + DataHash string + FieldName string + func (pe PassportElementErrorDataField) Data() (url.Values, error) + type PassportElementErrorFile struct + FileHash string + func (pe PassportElementErrorFile) Data() (url.Values, error) + type PassportElementErrorFiles struct + FileHashes []string + func (pe PassportElementErrorFiles) Data() (url.Values, error) + type PassportElementErrorFrontSide struct + FileHash string + func (pe PassportElementErrorFrontSide) Data() (url.Values, error) + type PassportElementErrorReverseSide struct + FileHash string + func (pe PassportElementErrorReverseSide) Data() (url.Values, error) + type PassportElementErrorSelfie struct + FileHash string + func (pe PassportElementErrorSelfie) Data() (url.Values, error) + type PassportElementErrorTranslationFile struct + FileHash string + func (pe PassportElementErrorTranslationFile) Data() (url.Values, error) + type PassportElementErrorTranslationFiles struct + FileHashes []string + func (pe PassportElementErrorTranslationFiles) Data() (url.Values, error) + type PassportElementErrorUnspecified struct + ElementHash string + func (pe PassportElementErrorUnspecified) Data() (url.Values, error) + type PassportFile struct + FileDate int + FileId string + FileSize int + FileUniqueId string + type PhotoSize struct + FileId string + FileSize int + FileUniqueId string + Height int + Width int + type Poll struct + AllowsMultipleAnswers bool + Bot Bot + 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 + Bot Bot + OptionIds []int + PollId string + User *User + type PollOption struct + Text string + VoterCount int + type PostFile struct + File io.Reader + FileName string + type PreCheckoutQuery struct + Currency string + From *User + Id string + InvoicePayload string + OrderInfo OrderInfo + ShippingOptionId string + TotalAmount int + type ProximityAlertTriggered struct + Distance int + Traveler User + Watcher User + type ReplyKeyboardMarkup struct + Keyboard *[][]KeyboardButton + OneTimeKeyboard bool + ResizeKeyboard bool + Selective bool + func (rkm *ReplyKeyboardMarkup) Marshal() ([]byte, error) + type ReplyKeyboardRemove struct + RemoveKeyboard bool + Selective bool + func (rkm *ReplyKeyboardRemove) Marshal() ([]byte, error) + type ReplyMarkup interface + Marshal func() ([]byte, error) + type Requester interface + Get func(l *zap.SugaredLogger, token string, method string, params url.Values) (json.RawMessage, error) + Post func(l *zap.SugaredLogger, token string, method string, params url.Values, ...) (json.RawMessage, error) + type ResponseParameters struct + MigrateToChatId int + RetryAfter int + type Sendable interface + Send func() (*Message, error) + type ShippingAddress struct + City string + CountryCode string + PostCode string + State string + StreetLine1 string + StreetLine2 string + type ShippingOption struct + Id string + Prices []LabeledPrice + Title string + type ShippingQuery struct + From *User + Id string + InvoicePayload string + ShippingAddress ShippingAddress + type Sticker struct + Emoji string + FileId string + FileSize int + FileUniqueId string + Height int + IsAnimated bool + MaskPosition MaskPosition + SetName string + Thumb *PhotoSize + Width int + type StickerSet struct + ContainsMasks bool + IsAnimated bool + Name string + Stickers []Sticker + Thumb *PhotoSize + Title string + type SuccessfulPayment struct + Currency string + InvoicePayload string + OrderInfo OrderInfo + ProviderPaymentChargeId string + ShippingOptionId string + TelegramPaymentChargeId string + TotalAmount int + type TelegramError struct + Code int + Description string + Method string + Values url.Values + func (t *TelegramError) Error() string + type User struct + Bot Bot + CanJoinGroups bool + CanReadAllGroupMessages bool + FirstName string + Id int + IsBot bool + LanguageCode string + LastName string + SupportsInlineQueries bool + Username string + func (user User) GetProfilePhotos() (*UserProfilePhotos, error) + func (user User) GetProfilePhotosOffset(offset int, limit int) (*UserProfilePhotos, error) + type UserProfilePhotos struct + Photos [][]PhotoSize + TotalCount int + type Venue struct + Address string + FoursquareId string + FoursquareType string + GooglePlaceId string + GooglePlaceType string + Location Location + Title string + type Video struct + Duration int + FileId string + FileName string + FileSize int + FileUniqueId string + Height int + MimeType string + Thumb *PhotoSize + Width int + type VideoNote struct + Duration int + FileId string + FileSize int + FileUniqueId string + Length int + Thumb *PhotoSize + type Voice struct + Duration int + FileId string + FileSize int + FileUniqueId string + MimeType string + type Webhook struct + AllowedUpdates []string + DropPendingUpdates bool + IPAddress string + MaxConnections int + Serve string + ServePath string + ServePort int + URL string + func (w Webhook) GetListenUrl() string + type WebhookInfo struct + AllowedUpdates []string + HasCustomCertificate bool + IPAddress string + LastErrorDate int + LastErrorMessage int + MaxConnections int + PendingUpdateCount int + URL string v1.0.0-beta6 Mar 12, 2021 v1.0.0-beta5 Mar 9, 2021 v1.0.0-beta4 Mar 9, 2021 v1.0.0-beta3 Mar 9, 2021 v1.0.0-beta2 Jan 19, 2021 v1.0.0-beta1 Nov 7, 2020 Other modules containing this package github.com/PaulSonOfLars/gotgbot/v2