Versions in this module Expand all Collapse all v0 v0.0.1 Aug 25, 2021 Changes in this version + const APIEndpoint + const ChatFindLocation + const ChatRecordAudio + const ChatRecordVideo + const ChatRecordVideoNote + const ChatRecordVoice + const ChatTyping + const ChatUploadAudio + const ChatUploadDocument + const ChatUploadPhoto + const ChatUploadVideo + const ChatUploadVideoNote + const ChatUploadVoice + const ErrAPIForbidden + const ErrBadFileType + const ErrBadURL + const FileEndpoint + const ModeHTML + const ModeMarkdown + const ModeMarkdownV2 + 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 + func WriteToHTTPResponse(w http.ResponseWriter, c Chattable) error + type APIResponse struct + Description string + ErrorCode int + Ok bool + Parameters *ResponseParameters + Result json.RawMessage + func (a *APIResponse) DebugString() string + func (a *APIResponse) Decode(responseBody io.Reader) error + type Adapter interface + Adapter func() Adapters + Handle func(*Context) bool + IsMatch func(*Context) bool + type Adapters []Adapter + func (a Adapters) Match(c *Context) bool + type AddStickerConfig struct + Emojis string + MaskPosition *MaskPosition + Name string + PNGSticker interface{} + TGSSticker interface{} + UserID int64 + func (config AddStickerConfig) Files() []RequestFile + func (config AddStickerConfig) Method() string + func (config AddStickerConfig) Params() (Params, error) + 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 interface{} + func NewAnimation(chatID int64, file interface{}) AnimationConfig + func (config AnimationConfig) Files() []RequestFile + func (config AnimationConfig) Method() string + func (config AnimationConfig) Params() (Params, error) + 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 interface{} + Title string + func NewAudio(chatID int64, file interface{}) AudioConfig + func (config AudioConfig) Files() []RequestFile + func (config AudioConfig) Method() string + func (config AudioConfig) Params() (Params, error) + type BaseChat struct + AllowSendingWithoutReply bool + ChannelUsername string + ChatID int64 + DisableNotification bool + ReplyMarkup interface{} + ReplyToMessageID int + type BaseEdit struct + ChannelUsername string + ChatID int64 + InlineMessageID string + MessageID int + ReplyMarkup *InlineKeyboardMarkup + type BaseFile struct + File interface{} + func (file BaseFile) Params() (Params, error) + type BaseInputMedia struct + Caption string + CaptionEntities []MessageEntity + Media interface{} + ParseMode string + Type string + type BotCommand struct + Command string + Description string + 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 + func (config CallbackConfig) Method() string + func (config CallbackConfig) Params() (Params, error) + 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 + ID int64 + InviteLink string + LastName string + LinkedChatID int64 + Location *ChatLocation + 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 + func NewChatAction(chatID int64, action string) ChatActionConfig + func (config ChatActionConfig) Method() string + func (config ChatActionConfig) Params() (Params, error) + type ChatAdministratorsConfig struct + func (ChatAdministratorsConfig) Method() string + type ChatConfig struct + ChatID int64 + SuperGroupUsername string + func (config ChatConfig) Params() (Params, error) + type ChatConfigWithUser struct + ChatID int64 + SuperGroupUsername string + UserID int64 + func (config ChatConfigWithUser) Params() (Params, error) + type ChatInfoConfig struct + func (ChatInfoConfig) Method() string + type ChatInviteLink struct + Creator User + ExpireDate int + InviteLink string + IsPrimary bool + IsRevoked bool + MemberLimit int + type ChatInviteLinkConfig struct + func (ChatInviteLinkConfig) Method() string + func (config ChatInviteLinkConfig) Params() (Params, error) + type ChatLocation struct + Address string + Location Location + type ChatMember struct + CanAddWebPagePreviews bool + CanBeEdited bool + CanChangeInfo bool + CanDeleteMessages bool + CanEditMessages bool + CanInviteUsers bool + CanManageChat bool + CanManageVoiceChats 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 + func (ChatMemberCountConfig) Method() string + 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 + Method func() string + Params func() (Params, error) + type ChosenInlineResult struct + From *User + InlineMessageID string + Location *Location + Query string + ResultID string + type CloseConfig struct + func (CloseConfig) Method() string + func (CloseConfig) Params() (Params, error) + type Config struct + ApiEndpoint string + Debug bool + Token string + 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 + func (config ContactConfig) Method() string + func (config ContactConfig) Params() (Params, error) + type Context struct + Engine *Engine + ID string + Message Update + func (c *Context) CommandIs(command string) bool + func (c *Context) DownloadAndSave(fileID, fileDir string) string + func (c *Context) GetFileDirectURL(fileID string) string + func (c *Context) IsMessageToMe(message Message) bool + func (c *Context) NewEditListMessage(text string, ikb *InlineKeyboardMarkup) EditMessageTextConfig + func (c *Context) NewMessage(text string, ikb *InlineKeyboardMarkup) MessageConfig + func (c *Context) ReplyText(s string) + func (c *Context) Send(ct Chattable) (Message, error) + func (c *Context) SendText(s string) + type CopyMessageConfig struct + Caption string + CaptionEntities []MessageEntity + FromChannelUsername string + FromChatID int64 + MessageID int + ParseMode string + func NewCopyMessage(chatID int64, fromChatID int64, messageID int) CopyMessageConfig + func (config CopyMessageConfig) Method() string + func (config CopyMessageConfig) Params() (Params, error) + type CreateChatInviteLinkConfig struct + ExpireDate int + MemberLimit int + func (CreateChatInviteLinkConfig) Method() string + func (config CreateChatInviteLinkConfig) Params() (Params, error) + type Credentials struct + Data SecureData + Nonce string + type DataCredentials struct + DataHash string + Secret string + type DeleteChatPhotoConfig struct + ChannelUsername string + ChatID int64 + func NewDeleteChatPhoto(chatID int64, photo interface{}) DeleteChatPhotoConfig + func (config DeleteChatPhotoConfig) Method() string + func (config DeleteChatPhotoConfig) Params() (Params, error) + type DeleteChatStickerSetConfig struct + ChatID int64 + SuperGroupUsername string + func (config DeleteChatStickerSetConfig) Method() string + func (config DeleteChatStickerSetConfig) Params() (Params, error) + type DeleteMessageConfig struct + ChannelUsername string + ChatID int64 + MessageID int + func NewDeleteMessage(chatID int64, messageID int) DeleteMessageConfig + func (config DeleteMessageConfig) Method() string + func (config DeleteMessageConfig) Params() (Params, error) + type DeleteStickerConfig struct + Sticker string + func (config DeleteStickerConfig) Method() string + func (config DeleteStickerConfig) Params() (Params, error) + type DeleteWebhookConfig struct + DropPendingUpdates bool + func (config DeleteWebhookConfig) Method() string + func (config DeleteWebhookConfig) Params() (Params, error) + type Dice struct + Emoji string + Value int + type DiceConfig struct + Emoji string + func NewDice(chatID int64) DiceConfig + func NewDiceWithEmoji(chatID int64, emoji string) DiceConfig + func NewSendDice(chatID int64) DiceConfig + func (config DiceConfig) Method() string + func (config DiceConfig) Params() (Params, error) + 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 interface{} + func NewDocument(chatID int64, file interface{}) DocumentConfig + func (config DocumentConfig) Files() []RequestFile + func (config DocumentConfig) Method() string + func (config DocumentConfig) Params() (Params, error) + type EditChatInviteLinkConfig struct + ExpireDate int + InviteLink string + MemberLimit int + func (EditChatInviteLinkConfig) Method() string + func (config EditChatInviteLinkConfig) Params() (Params, error) + type EditMessageCaptionConfig struct + Caption string + CaptionEntities []MessageEntity + ParseMode string + func NewEditMessageCaption(chatID int64, messageID int, caption string) EditMessageCaptionConfig + func (config EditMessageCaptionConfig) Method() string + func (config EditMessageCaptionConfig) Params() (Params, error) + type EditMessageLiveLocationConfig struct + Heading int + HorizontalAccuracy float64 + Latitude float64 + Longitude float64 + ProximityAlertRadius int + func (config EditMessageLiveLocationConfig) Method() string + func (config EditMessageLiveLocationConfig) Params() (Params, error) + type EditMessageMediaConfig struct + Media interface{} + func (EditMessageMediaConfig) Method() string + func (config EditMessageMediaConfig) Files() []RequestFile + func (config EditMessageMediaConfig) Params() (Params, error) + type EditMessageReplyMarkupConfig struct + func NewEditMessageReplyMarkup(chatID int64, messageID int, replyMarkup InlineKeyboardMarkup) EditMessageReplyMarkupConfig + func (config EditMessageReplyMarkupConfig) Method() string + func (config EditMessageReplyMarkupConfig) Params() (Params, error) + 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 + func (config EditMessageTextConfig) Method() string + func (config EditMessageTextConfig) Params() (Params, error) + 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 Engine struct + Client HTTPClient + Debug bool + Self User + Token string + UpdateConfig UpdateConfig + func New(token string) (*Engine, error) + func NewEngine(token, apiEndpoint string, client HTTPClient) (*Engine, error) + func (bot *Engine) CopyMessage(config CopyMessageConfig) (MessageID, error) + func (bot *Engine) GetChat(config ChatInfoConfig) (Chat, error) + func (bot *Engine) GetChatAdministrators(config ChatAdministratorsConfig) ([]ChatMember, error) + func (bot *Engine) GetChatMember(config GetChatMemberConfig) (ChatMember, error) + func (bot *Engine) GetChatMembersCount(config ChatMemberCountConfig) (int, error) + func (bot *Engine) GetFile(config FileConfig) (File, error) + func (bot *Engine) GetFileDirectURL(fileID string) (string, error) + func (bot *Engine) GetGameHighScores(config GetGameHighScoresConfig) ([]GameHighScore, error) + func (bot *Engine) GetInviteLink(config ChatInviteLinkConfig) (string, error) + func (bot *Engine) GetMe() (User, error) + func (bot *Engine) GetMyCommands() ([]BotCommand, error) + func (bot *Engine) GetStickerSet(config GetStickerSetConfig) (StickerSet, error) + func (bot *Engine) GetUpdates(config UpdateConfig) ([]Update, error) + func (bot *Engine) GetUserProfilePhotos(config UserProfilePhotosConfig) (UserProfilePhotos, error) + func (bot *Engine) GetWebhookInfo() (WebhookInfo, error) + func (bot *Engine) HandleUpdate(r *http.Request) (*Update, error) + func (bot *Engine) IsMessageToMe(message Message) bool + func (bot *Engine) ListenForWebhook(w http.ResponseWriter, r *http.Request) + func (bot *Engine) MakeRequest(endpoint string, params Params) (*APIResponse, error) + func (bot *Engine) Request(c Chattable) (*APIResponse, error) + func (bot *Engine) Run() + func (bot *Engine) Send(c Chattable) (Message, error) + func (bot *Engine) SendMediaGroup(config MediaGroupConfig) ([]Message, error) + func (bot *Engine) SendSet(c Chattable) (bool, error) + func (bot *Engine) SetAPIEndpoint(apiEndpoint string) + func (bot *Engine) SetAdapter(adapters ...Adapter) + func (bot *Engine) Stop() + func (bot *Engine) StopPoll(config StopPollConfig) (Poll, error) + func (bot *Engine) UploadFiles(endpoint string, params Params, files []RequestFile) (*APIResponse, error) + func (bot *Engine) Username() string + type Error struct + Code int + Message string + func (e Error) Error() string + 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 + type FileConfig struct + FileID string + func (FileConfig) Method() string + func (config FileConfig) Params() (Params, error) + type FileCredentials struct + FileHash string + Secret string + type FileID string + type FileReader struct + Name string + Reader io.Reader + type FileURL string + type Fileable interface + Files func() []RequestFile + type ForceReply struct + ForceReply bool + Selective bool + type ForwardConfig struct + FromChannelUsername string + FromChatID int64 + MessageID int + func NewForward(chatID int64, fromChatID int64, messageID int) ForwardConfig + func (config ForwardConfig) Method() string + func (config ForwardConfig) Params() (Params, error) + type Game struct + Animation Animation + Description string + Photo []PhotoSize + Text string + TextEntities []MessageEntity + Title string + type GameConfig struct + GameShortName string + func (config GameConfig) Method() string + func (config GameConfig) Params() (Params, error) + type GameHighScore struct + Position int + Score int + User User + type GetChatMemberConfig struct + func (GetChatMemberConfig) Method() string + type GetGameHighScoresConfig struct + ChannelUsername string + ChatID int64 + InlineMessageID string + MessageID int + UserID int64 + func (config GetGameHighScoresConfig) Method() string + func (config GetGameHighScoresConfig) Params() (Params, error) + type GetMyCommandsConfig struct + func (config GetMyCommandsConfig) Method() string + func (config GetMyCommandsConfig) Params() (Params, error) + type GetStickerSetConfig struct + Name string + func (config GetStickerSetConfig) Method() string + func (config GetStickerSetConfig) Params() (Params, error) + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + PostForm func(url string, data url.Values) (*http.Response, error) + func NewProxyClient(proxyUrl string) (HTTPClient, error) + type Handler func(*Context) error + type IDDocumentData struct + DocumentNumber string + ExpiryDate string + type InlineConfig struct + CacheTime int + InlineQueryID string + IsPersonal bool + NextOffset string + Results []interface{} + SwitchPMParameter string + SwitchPMText string + func (config InlineConfig) Method() string + func (config InlineConfig) Params() (Params, error) + type InlineKeyboardButton struct + CallbackData *string + CallbackGame *CallbackGame + LoginURL *LoginURL + Pay bool + SwitchInlineQuery *string + SwitchInlineQueryCurrentChat *string + Text string + URL *string + 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 NewInlineKeyboardRow(buttons ...InlineKeyboardButton) []InlineKeyboardButton + type InlineKeyboardMarkup struct + InlineKeyboard [][]InlineKeyboardButton + 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 interface{} + Width int + func NewInputMediaAnimation(media interface{}) InputMediaAnimation + type InputMediaAudio struct + Duration int + Performer string + Thumb interface{} + Title string + func NewInputMediaAudio(media interface{}) InputMediaAudio + type InputMediaDocument struct + DisableContentTypeDetection bool + Thumb interface{} + func NewInputMediaDocument(media interface{}) InputMediaDocument + type InputMediaPhoto struct + func NewInputMediaPhoto(media interface{}) InputMediaPhoto + type InputMediaVideo struct + Duration int + Height int + SupportsStreaming bool + Thumb interface{} + Width int + func NewInputMediaVideo(media interface{}) InputMediaVideo + 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 + Currency string + Description string + StartParameter string + Title string + TotalAmount int + 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 + func (config InvoiceConfig) Method() string + func (config InvoiceConfig) Params() (Params, error) + type KeyboardButton struct + RequestContact bool + RequestLocation bool + RequestPoll *KeyboardButtonPollType + Text string + func NewKeyboardButton(text string) KeyboardButton + func NewKeyboardButtonContact(text string) KeyboardButton + func NewKeyboardButtonLocation(text string) KeyboardButton + func NewKeyboardButtonRow(buttons ...KeyboardButton) []KeyboardButton + type KeyboardButtonPollType struct + Type string + type KickChatMemberConfig struct + RevokeMessages bool + UntilDate int64 + func (config KickChatMemberConfig) Method() string + func (config KickChatMemberConfig) Params() (Params, error) + type LabeledPrice struct + Amount int + Label string + type LeaveChatConfig struct + ChannelUsername string + ChatID int64 + func (config LeaveChatConfig) Method() string + func (config LeaveChatConfig) Params() (Params, error) + 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 + func (config LocationConfig) Method() string + func (config LocationConfig) Params() (Params, error) + type LogOutConfig struct + func (LogOutConfig) Method() string + func (LogOutConfig) Params() (Params, error) + type LoginURL struct + BotUsername string + ForwardText string + RequestWriteAccess bool + URL string + 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 + func (config MediaGroupConfig) Files() []RequestFile + func (config MediaGroupConfig) Method() string + func (config MediaGroupConfig) Params() (Params, error) + type Message struct + Animation *Animation + Audio *Audio + AuthorSignature string + 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 + MessageAutoDeleteTimerChanged *MessageAutoDeleteTimerChanged + MessageID int + MigrateFromChatID int64 + MigrateToChatID int64 + 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 + VoiceChatEnded *VoiceChatEnded + VoiceChatParticipantsInvited *VoiceChatParticipantsInvited + VoiceChatScheduled *VoiceChatScheduled + VoiceChatStarted *VoiceChatStarted + 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 + type MessageAutoDeleteTimerChanged struct + MessageAutoDeleteTime int + type MessageConfig struct + DisableWebPagePreview bool + Entities []MessageEntity + ParseMode string + Text string + func NewMessage(chatID int64, text string) MessageConfig + func NewMessageToChannel(username string, text string) MessageConfig + func (config MessageConfig) Method() string + func (config MessageConfig) Params() (Params, error) + 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) IsURL() bool + func (e MessageEntity) ParseURL() (*url.URL, error) + type MessageID struct + MessageID int + type NewStickerSetConfig struct + ContainsMasks bool + Emojis string + MaskPosition *MaskPosition + Name string + PNGSticker interface{} + TGSSticker interface{} + Title string + UserID int64 + func (config NewStickerSetConfig) Files() []RequestFile + func (config NewStickerSetConfig) Method() string + func (config NewStickerSetConfig) Params() (Params, error) + type OrderInfo struct + Email string + Name string + PhoneNumber string + ShippingAddress *ShippingAddress + type Params map[string]string + func (p Params) AddBool(key string, value bool) + func (p Params) AddFirstValid(key string, args ...interface{}) + 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) + func (p Params) Build() url.Values + 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 interface{} + func NewPhoto(chatID int64, file interface{}) PhotoConfig + func NewPhotoToChannel(username string, file interface{}) PhotoConfig + func (config PhotoConfig) Files() []RequestFile + func (config PhotoConfig) Method() string + func (config PhotoConfig) Params() (Params, error) + type PhotoSize struct + FileID string + FileSize int + FileUniqueID string + Height int + Width int + type PinChatMessageConfig struct + ChannelUsername string + ChatID int64 + DisableNotification bool + MessageID int + func (config PinChatMessageConfig) Method() string + func (config PinChatMessageConfig) Params() (Params, error) + 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 + func (config PreCheckoutConfig) Method() string + func (config PreCheckoutConfig) Params() (Params, error) + 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 + CanManageVoiceChats bool + CanPinMessages bool + CanPostMessages bool + CanPromoteMembers bool + CanRestrictMembers bool + IsAnonymous bool + func (config PromoteChatMemberConfig) Method() string + func (config PromoteChatMemberConfig) Params() (Params, error) + type ProximityAlertTriggered struct + Distance int + Traveler User + Watcher User + type ProxyClient struct + func (p *ProxyClient) Do(req *http.Request) (*http.Response, error) + func (p *ProxyClient) PostForm(url string, data url.Values) (*http.Response, error) + type ReplyKeyboardMarkup struct + 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 RequestFile struct + File interface{} + Name string + type ResponseParameters struct + MigrateToChatID int64 + RetryAfter int + type RestrictChatMemberConfig struct + Permissions *ChatPermissions + UntilDate int64 + func (config RestrictChatMemberConfig) Method() string + func (config RestrictChatMemberConfig) Params() (Params, error) + type RevokeChatInviteLinkConfig struct + InviteLink string + func (RevokeChatInviteLinkConfig) Method() string + func (config RevokeChatInviteLinkConfig) Params() (Params, error) + 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 + func (SendPollConfig) Method() string + func (config SendPollConfig) Params() (Params, error) + type SetChatAdministratorCustomTitle struct + CustomTitle string + func (SetChatAdministratorCustomTitle) Method() string + func (config SetChatAdministratorCustomTitle) Params() (Params, error) + type SetChatDescriptionConfig struct + ChannelUsername string + ChatID int64 + Description string + func NewChatDescription(chatID int64, description string) SetChatDescriptionConfig + func (config SetChatDescriptionConfig) Method() string + func (config SetChatDescriptionConfig) Params() (Params, error) + type SetChatPermissionsConfig struct + Permissions *ChatPermissions + func (SetChatPermissionsConfig) Method() string + func (config SetChatPermissionsConfig) Params() (Params, error) + type SetChatPhotoConfig struct + func NewChatPhoto(chatID int64, photo interface{}) SetChatPhotoConfig + func (config SetChatPhotoConfig) Files() []RequestFile + func (config SetChatPhotoConfig) Method() string + type SetChatStickerSetConfig struct + ChatID int64 + StickerSetName string + SuperGroupUsername string + func (config SetChatStickerSetConfig) Method() string + func (config SetChatStickerSetConfig) Params() (Params, error) + type SetChatTitleConfig struct + ChannelUsername string + ChatID int64 + Title string + func NewChatTitle(chatID int64, title string) SetChatTitleConfig + func (config SetChatTitleConfig) Method() string + func (config SetChatTitleConfig) Params() (Params, error) + type SetGameScoreConfig struct + ChannelUsername string + ChatID int64 + DisableEditMessage bool + Force bool + InlineMessageID string + MessageID int + Score int + UserID int64 + func (config SetGameScoreConfig) Method() string + func (config SetGameScoreConfig) Params() (Params, error) + type SetMyCommandsConfig struct + func NewSetMyCommands(commands ...BotCommand) SetMyCommandsConfig + func (config SetMyCommandsConfig) Method() string + func (config SetMyCommandsConfig) Params() (Params, error) + func (config SetMyCommandsConfig) Set(arr []BotCommand) SetMyCommandsConfig + type SetStickerPositionConfig struct + Position int + Sticker string + func (config SetStickerPositionConfig) Method() string + func (config SetStickerPositionConfig) Params() (Params, error) + type SetStickerSetThumbConfig struct + Name string + Thumb interface{} + UserID int64 + func (config SetStickerSetThumbConfig) Files() []RequestFile + func (config SetStickerSetThumbConfig) Method() string + func (config SetStickerSetThumbConfig) Params() (Params, error) + 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 + func (config ShippingConfig) Method() string + func (config ShippingConfig) Params() (Params, error) + 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 + Thumbnail *PhotoSize + Width int + type StickerConfig struct + func NewSticker(chatID int64, file interface{}) StickerConfig + func (config StickerConfig) Files() []RequestFile + func (config StickerConfig) Method() string + func (config StickerConfig) Params() (Params, error) + type StickerSet struct + ContainsMasks bool + IsAnimated bool + Name string + Stickers []Sticker + Thumbnail *PhotoSize + Title string + type StopMessageLiveLocationConfig struct + func (config StopMessageLiveLocationConfig) Method() string + func (config StopMessageLiveLocationConfig) Params() (Params, error) + type StopPollConfig struct + func NewStopPoll(chatID int64, messageID int) StopPollConfig + func (StopPollConfig) Method() string + func (config StopPollConfig) Params() (Params, error) + type SuccessfulPayment struct + Currency string + InvoicePayload string + OrderInfo *OrderInfo + ProviderPaymentChargeID string + ShippingOptionID string + TelegramPaymentChargeID string + TotalAmount int + type UnbanChatMemberConfig struct + OnlyIfBanned bool + func (config UnbanChatMemberConfig) Method() string + func (config UnbanChatMemberConfig) Params() (Params, error) + type UnpinAllChatMessagesConfig struct + ChannelUsername string + ChatID int64 + func (config UnpinAllChatMessagesConfig) Method() string + func (config UnpinAllChatMessagesConfig) Params() (Params, error) + type UnpinChatMessageConfig struct + ChannelUsername string + ChatID int64 + MessageID int + func (config UnpinChatMessageConfig) Method() string + func (config UnpinChatMessageConfig) Params() (Params, error) + type Update struct + CallbackQuery *CallbackQuery + ChannelPost *Message + ChatMember *ChatMemberUpdated + ChosenInlineResult *ChosenInlineResult + EditedChannelPost *Message + EditedMessage *Message + InlineQuery *InlineQuery + Message *Message + MyChatMember *ChatMemberUpdated + Poll *Poll + PollAnswer *PollAnswer + PreCheckoutQuery *PreCheckoutQuery + ShippingQuery *ShippingQuery + UpdateID int + type UpdateConfig struct + AllowedUpdates []string + Limit int + Offset int + Timeout int + func NewUpdate(offset int) UpdateConfig + func (UpdateConfig) Method() string + func (config UpdateConfig) Params() (Params, error) + type UploadStickerConfig struct + PNGSticker interface{} + UserID int64 + func (config UploadStickerConfig) Files() []RequestFile + func (config UploadStickerConfig) Method() string + func (config UploadStickerConfig) Params() (Params, error) + type User struct + CanJoinGroups bool + CanReadAllGroupMessages bool + FirstName string + ID int64 + IsBot bool + LanguageCode string + LastName string + SupportsInlineQueries bool + UserName string + func (u *User) String() string + type UserProfilePhotos struct + Photos [][]PhotoSize + TotalCount int + type UserProfilePhotosConfig struct + Limit int + Offset int + UserID int64 + func NewUserProfilePhotos(userID int64) UserProfilePhotosConfig + func (UserProfilePhotosConfig) Method() string + func (config UserProfilePhotosConfig) Params() (Params, error) + 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 + func (config VenueConfig) Method() string + func (config VenueConfig) Params() (Params, error) + type Video struct + Duration int + FileID string + FileName string + FileSize int + FileUniqueID string + Height int + MimeType string + Thumbnail *PhotoSize + Width int + type VideoConfig struct + Caption string + CaptionEntities []MessageEntity + Duration int + ParseMode string + SupportsStreaming bool + Thumb interface{} + func NewVideo(chatID int64, file interface{}) VideoConfig + func (config VideoConfig) Files() []RequestFile + func (config VideoConfig) Method() string + func (config VideoConfig) Params() (Params, error) + type VideoNote struct + Duration int + FileID string + FileSize int + FileUniqueID string + Length int + Thumbnail *PhotoSize + type VideoNoteConfig struct + Duration int + Length int + Thumb interface{} + func NewVideoNote(chatID int64, length int, file interface{}) VideoNoteConfig + func (config VideoNoteConfig) Files() []RequestFile + func (config VideoNoteConfig) Method() string + func (config VideoNoteConfig) Params() (Params, error) + type Voice struct + Duration int + FileID string + FileSize int + FileUniqueID string + MimeType string + type VoiceChatEnded struct + Duration int + type VoiceChatParticipantsInvited struct + Users []User + type VoiceChatScheduled struct + StartDate int + func (m *VoiceChatScheduled) Time() time.Time + type VoiceChatStarted struct + type VoiceConfig struct + Caption string + CaptionEntities []MessageEntity + Duration int + ParseMode string + Thumb interface{} + func NewVoice(chatID int64, file interface{}) VoiceConfig + func (config VoiceConfig) Files() []RequestFile + func (config VoiceConfig) Method() string + func (config VoiceConfig) Params() (Params, error) + type WebhookConfig struct + AllowedUpdates []string + Certificate interface{} + DropPendingUpdates bool + IPAddress string + MaxConnections int + URL *url.URL + func NewWebhook(link string) (WebhookConfig, error) + func NewWebhookWithCert(link string, file interface{}) (WebhookConfig, error) + func (config WebhookConfig) Files() []RequestFile + func (config WebhookConfig) Method() string + func (config WebhookConfig) Params() (Params, error) + type WebhookInfo struct + AllowedUpdates []string + HasCustomCertificate bool + IPAddress string + LastErrorDate int + LastErrorMessage string + MaxConnections int + PendingUpdateCount int + URL string + func (info WebhookInfo) IsSet() bool