Versions in this module Expand all Collapse all v0 v0.0.3 Apr 3, 2023 v0.0.2 Apr 3, 2023 v0.0.1 Apr 3, 2023 Changes in this version + const APIEndpoint + const ChatFindLocation + const ChatRecordAudio + const ChatRecordVideo + const ChatTyping + const ChatUploadAudio + const ChatUploadDocument + const ChatUploadPhoto + const ChatUploadVideo + const ErrBadFileType + const ErrBadURL + const FileEndpoint + const ModeHTML + const ModeMarkdown + var ErrNoChatID = errors.New("missing chat_id") + func ReplyToResponse(chattable Chattable, w http.ResponseWriter) (string, error) + type APIResponse struct + Description string + ErrorCode int + Ok bool + Result json.RawMessage + func (j *APIResponse) MarshalJSON() ([]byte, error) + func (j *APIResponse) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *APIResponse) UnmarshalJSON(input []byte) error + func (j *APIResponse) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + func (r APIResponse) Error() string + type AnswerCallbackQueryConfig struct + CacheTime int + CallbackQueryID string + ShowAlert bool + Text string + URL string + func NewCallback(id, text string) AnswerCallbackQueryConfig + func NewCallbackWithAlert(id, text string) AnswerCallbackQueryConfig + func NewCallbackWithURL(url string) AnswerCallbackQueryConfig + func (config AnswerCallbackQueryConfig) Values() (v url.Values, err error) + func (j *AnswerCallbackQueryConfig) MarshalJSON() ([]byte, error) + func (j *AnswerCallbackQueryConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *AnswerCallbackQueryConfig) UnmarshalJSON(input []byte) error + func (j *AnswerCallbackQueryConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Audio struct + Duration int + FileID string + FileSize int + MimeType string + Performer string + Title string + func (j *Audio) MarshalJSON() ([]byte, error) + func (j *Audio) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Audio) UnmarshalJSON(input []byte) error + func (j *Audio) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type AudioConfig struct + Duration int + Performer string + Title string + func NewAudioShare(chatID int64, fileID string) AudioConfig + func NewAudioUpload(chatID int64, file interface{}) AudioConfig + func (config AudioConfig) Values() (url.Values, error) + func (j *AudioConfig) MarshalJSON() ([]byte, error) + func (j *AudioConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *AudioConfig) UnmarshalJSON(input []byte) error + func (j *AudioConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type BaseChat struct + ChannelUsername string + ChatID int64 + DisableNotification bool + ReplyMarkup interface{} + ReplyToMessageID int + func (chat *BaseChat) Values() (url.Values, error) + func (j *BaseChat) MarshalJSON() ([]byte, error) + func (j *BaseChat) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *BaseChat) UnmarshalJSON(input []byte) error + func (j *BaseChat) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type BaseEdit struct + ChannelUsername string + InlineMessageID string + ReplyMarkup *InlineKeyboardMarkup + func NewChatMessageEdit(chatID int64, messageID int) BaseEdit + func (edit BaseEdit) Values() (url.Values, error) + func (j *BaseEdit) MarshalJSON() ([]byte, error) + func (j *BaseEdit) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *BaseEdit) UnmarshalJSON(input []byte) error + func (j *BaseEdit) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type BaseFile struct + File interface{} + FileID string + FileSize int + MimeType string + UseExisting bool + func (j *BaseFile) MarshalJSON() ([]byte, error) + func (j *BaseFile) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *BaseFile) UnmarshalJSON(input []byte) error + func (j *BaseFile) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type BotAPI struct + Client *http.Client + Self User + Token string + func NewBotAPI(token string) *BotAPI + func NewBotAPIWithClient(token string, client *http.Client) *BotAPI + func (bot *BotAPI) AnswerInlineQuery(config InlineConfig) (APIResponse, error) + func (bot *BotAPI) EnableDebug(c context.Context) + func (bot *BotAPI) GetChat(chatID string) (Chat, error) + func (bot *BotAPI) GetFile(config FileConfig) (File, error) + func (bot *BotAPI) GetFileDirectURL(fileID string) (string, error) + func (bot *BotAPI) GetMe() (User, error) + func (bot *BotAPI) GetUpdates(config UpdateConfig) ([]Update, error) + func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (<-chan Update, error) + func (bot *BotAPI) GetUserProfilePhotos(config UserProfilePhotosConfig) (UserProfilePhotos, error) + func (bot *BotAPI) IsMessageToMe(message Message) bool + func (bot *BotAPI) KickChatMember(config ChatMemberConfig) (APIResponse, error) + func (bot *BotAPI) ListenForWebhook(pattern string) <-chan Update + func (bot *BotAPI) MakeRequest(endpoint string, params url.Values) (apiResp APIResponse, err error) + func (bot *BotAPI) MakeRequestFromChattable(m Chattable) (resp APIResponse, err error) + func (bot *BotAPI) RemoveWebhook() (APIResponse, error) + func (bot *BotAPI) Send(c Chattable) (Message, error) + func (bot *BotAPI) SetWebhook(config WebhookConfig) (APIResponse, error) + func (bot *BotAPI) UnbanChatMember(config ChatMemberConfig) (APIResponse, error) + func (bot *BotAPI) UploadFile(endpoint string, params map[string]string, fieldname string, file interface{}) (APIResponse, error) + type CallbackQuery struct + ChatInstance string + Data string + From *User + ID string + InlineMessageID string + Message *Message + func (j *CallbackQuery) MarshalJSON() ([]byte, error) + func (j *CallbackQuery) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *CallbackQuery) UnmarshalJSON(input []byte) error + func (j *CallbackQuery) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Chat struct + FirstName string + ID int64 + LastName string + Title string + Type string + UserName string + func (c *Chat) IsChannel() bool + func (c *Chat) IsGroup() bool + func (c *Chat) IsPrivate() bool + func (c *Chat) IsSuperGroup() bool + func (j *Chat) MarshalJSON() ([]byte, error) + func (j *Chat) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Chat) UnmarshalJSON(input []byte) error + func (j *Chat) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type ChatActionConfig struct + Action string + func NewChatAction(chatID int64, action string) ChatActionConfig + func (config ChatActionConfig) Values() (url.Values, error) + func (j *ChatActionConfig) MarshalJSON() ([]byte, error) + func (j *ChatActionConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *ChatActionConfig) UnmarshalJSON(input []byte) error + func (j *ChatActionConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type ChatMember struct + IsBot bool + func (chatMember ChatMember) IsBotUser() bool + func (j *ChatMember) MarshalJSON() ([]byte, error) + func (j *ChatMember) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *ChatMember) UnmarshalJSON(input []byte) error + func (j *ChatMember) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type ChatMemberConfig struct + ChatID int64 + SuperGroupUsername string + UserID int + func (j *ChatMemberConfig) MarshalJSON() ([]byte, error) + func (j *ChatMemberConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *ChatMemberConfig) UnmarshalJSON(input []byte) error + func (j *ChatMemberConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Chattable interface + Values func() (url.Values, error) + type ChosenInlineResult struct + From *User + InlineMessageID string + Location *Location + Query string + ResultID string + func (j *ChosenInlineResult) MarshalJSON() ([]byte, error) + func (j *ChosenInlineResult) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *ChosenInlineResult) UnmarshalJSON(input []byte) error + func (j *ChosenInlineResult) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Contact struct + FirstName string + LastName string + PhoneNumber string + UserID int + func (j *Contact) MarshalJSON() ([]byte, error) + func (j *Contact) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Contact) UnmarshalJSON(input []byte) error + func (j *Contact) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type ContactConfig struct + FirstName string + LastName string + PhoneNumber string + func NewContact(chatID int64, phoneNumber, firstName string) ContactConfig + func (config ContactConfig) Values() (url.Values, error) + func (j *ContactConfig) MarshalJSON() ([]byte, error) + func (j *ContactConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *ContactConfig) UnmarshalJSON(input []byte) error + func (j *ContactConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type DeleteMessage chatEdit + func (j *DeleteMessage) MarshalJSON() ([]byte, error) + func (j *DeleteMessage) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *DeleteMessage) UnmarshalJSON(input []byte) error + func (j *DeleteMessage) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + func (m DeleteMessage) Values() (url.Values, error) + type Document struct + FileID string + FileName string + FileSize int + MimeType string + Thumbnail *PhotoSize + func (j *Document) MarshalJSON() ([]byte, error) + func (j *Document) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Document) UnmarshalJSON(input []byte) error + func (j *Document) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type DocumentConfig struct + func NewDocumentShare(chatID int64, fileID string) DocumentConfig + func NewDocumentUpload(chatID int64, file interface{}) DocumentConfig + func (config DocumentConfig) Values() (url.Values, error) + func (j *DocumentConfig) MarshalJSON() ([]byte, error) + func (j *DocumentConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *DocumentConfig) UnmarshalJSON(input []byte) error + func (j *DocumentConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type EditMessageCaptionConfig struct + Caption string + func NewEditMessageCaption(chatID int64, messageID int, caption string) EditMessageCaptionConfig + func (config EditMessageCaptionConfig) Values() (url.Values, error) + func (j *EditMessageCaptionConfig) MarshalJSON() ([]byte, error) + func (j *EditMessageCaptionConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *EditMessageCaptionConfig) UnmarshalJSON(input []byte) error + func (j *EditMessageCaptionConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type EditMessageReplyMarkupConfig struct + func NewEditMessageReplyMarkup(chatID int64, messageID int, inlineMessageID string, ...) EditMessageReplyMarkupConfig + func (config EditMessageReplyMarkupConfig) Values() (url.Values, error) + func (j *EditMessageReplyMarkupConfig) MarshalJSON() ([]byte, error) + func (j *EditMessageReplyMarkupConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *EditMessageReplyMarkupConfig) UnmarshalJSON(input []byte) error + func (j *EditMessageReplyMarkupConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type EditMessageTextConfig struct + DisableWebPagePreview bool + ParseMode string + Text string + func NewEditMessageText(chatID int64, messageID int, inlineMessageID, text string) *EditMessageTextConfig + func (config EditMessageTextConfig) Values() (url.Values, error) + func (j *EditMessageTextConfig) MarshalJSON() ([]byte, error) + func (j *EditMessageTextConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *EditMessageTextConfig) UnmarshalJSON(input []byte) error + func (j *EditMessageTextConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type ErrAPIForbidden struct + func (err ErrAPIForbidden) Error() string + func (err ErrAPIForbidden) IsForbidden() + func (j *ErrAPIForbidden) MarshalJSON() ([]byte, error) + func (j *ErrAPIForbidden) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *ErrAPIForbidden) UnmarshalJSON(input []byte) error + func (j *ErrAPIForbidden) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type ExportChatInviteLink struct + func (config ExportChatInviteLink) Values() (url.Values, error) + func (j *ExportChatInviteLink) MarshalJSON() ([]byte, error) + func (j *ExportChatInviteLink) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *ExportChatInviteLink) UnmarshalJSON(input []byte) error + func (j *ExportChatInviteLink) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type File struct + FileID string + FilePath string + FileSize int + func (f *File) Link(token string) string + func (j *File) MarshalJSON() ([]byte, error) + func (j *File) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *File) UnmarshalJSON(input []byte) error + func (j *File) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type FileBytes struct + Bytes []byte + Name string + func (j *FileBytes) MarshalJSON() ([]byte, error) + func (j *FileBytes) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *FileBytes) UnmarshalJSON(input []byte) error + func (j *FileBytes) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type FileConfig struct + FileID string + func (j *FileConfig) MarshalJSON() ([]byte, error) + func (j *FileConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *FileConfig) UnmarshalJSON(input []byte) error + func (j *FileConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type FileReader struct + Name string + Reader io.Reader + Size int64 + func (j *FileReader) MarshalJSON() ([]byte, error) + func (j *FileReader) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *FileReader) UnmarshalJSON(input []byte) error + func (j *FileReader) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Fileable interface + type ForceReply struct + ForceReply bool + Selective bool + func (ForceReply) KeyboardType() bots.KeyboardType + func (j *ForceReply) MarshalJSON() ([]byte, error) + func (j *ForceReply) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *ForceReply) UnmarshalJSON(input []byte) error + func (j *ForceReply) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type ForwardConfig struct + FromChannelUsername string + FromChatID int64 + MessageID int + func NewForward(chatID int64, fromChatID int64, messageID int) ForwardConfig + func (config ForwardConfig) Values() (url.Values, error) + func (j *ForwardConfig) MarshalJSON() ([]byte, error) + func (j *ForwardConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *ForwardConfig) UnmarshalJSON(input []byte) error + func (j *ForwardConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type GroupChat struct + ID int + Title string + func (j *GroupChat) MarshalJSON() ([]byte, error) + func (j *GroupChat) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *GroupChat) UnmarshalJSON(input []byte) error + func (j *GroupChat) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type InlineConfig struct + CacheTime int + InlineQueryID string + IsPersonal bool + NextOffset string + Results []interface{} + SwitchPMParameter string + SwitchPMText string + func (config InlineConfig) Values() (url.Values, error) + func (j *InlineConfig) MarshalJSON() ([]byte, error) + func (j *InlineConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InlineConfig) UnmarshalJSON(input []byte) error + func (j *InlineConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type InlineKeyboardButton struct + CallbackData string + Pay bool + SwitchInlineQuery *string + SwitchInlineQueryCurrentChat *string + Text string + URL string + func NewInlineKeyboardButtonData(text, data string) InlineKeyboardButton + func NewInlineKeyboardButtonSwitchInlineQuery(text, query string) InlineKeyboardButton + func NewInlineKeyboardButtonSwitchInlineQueryCurrentChat(text, query string) InlineKeyboardButton + func NewInlineKeyboardButtonURL(text, url string) InlineKeyboardButton + func NewInlineKeyboardRow(buttons ...InlineKeyboardButton) []InlineKeyboardButton + func (j *InlineKeyboardButton) MarshalJSON() ([]byte, error) + func (j *InlineKeyboardButton) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InlineKeyboardButton) UnmarshalJSON(input []byte) error + func (j *InlineKeyboardButton) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type InlineKeyboardMarkup struct + InlineKeyboard [][]InlineKeyboardButton + func NewInlineKeyboardMarkup(rows ...[]InlineKeyboardButton) *InlineKeyboardMarkup + func (*InlineKeyboardMarkup) KeyboardType() bots.KeyboardType + func (j *InlineKeyboardMarkup) MarshalJSON() ([]byte, error) + func (j *InlineKeyboardMarkup) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InlineKeyboardMarkup) UnmarshalJSON(input []byte) error + func (j *InlineKeyboardMarkup) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type InlineQuery struct + From *User + ID string + Location *Location + Offset string + Query string + func (j *InlineQuery) MarshalJSON() ([]byte, error) + func (j *InlineQuery) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InlineQuery) UnmarshalJSON(input []byte) error + func (j *InlineQuery) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + 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 (j *InlineQueryResultArticle) MarshalJSON() ([]byte, error) + func (j *InlineQueryResultArticle) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InlineQueryResultArticle) UnmarshalJSON(input []byte) error + func (j *InlineQueryResultArticle) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type InlineQueryResultAudio struct + Duration int + ID string + InputMessageContent interface{} + Performer string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + URL string + func NewInlineQueryResultAudio(id, url, title string) InlineQueryResultAudio + func (j *InlineQueryResultAudio) MarshalJSON() ([]byte, error) + func (j *InlineQueryResultAudio) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InlineQueryResultAudio) UnmarshalJSON(input []byte) error + func (j *InlineQueryResultAudio) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + 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 + func (j *InlineQueryResultDocument) MarshalJSON() ([]byte, error) + func (j *InlineQueryResultDocument) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InlineQueryResultDocument) UnmarshalJSON(input []byte) error + func (j *InlineQueryResultDocument) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type InlineQueryResultGIF struct + Caption string + Height int + ID string + InputMessageContent interface{} + ReplyMarkup *InlineKeyboardMarkup + ThumbURL string + Title string + Type string + URL string + Width int + func NewInlineQueryResultGIF(id, url string) InlineQueryResultGIF + func (j *InlineQueryResultGIF) MarshalJSON() ([]byte, error) + func (j *InlineQueryResultGIF) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InlineQueryResultGIF) UnmarshalJSON(input []byte) error + func (j *InlineQueryResultGIF) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type InlineQueryResultLocation struct + ID string + InputMessageContent interface{} + Latitude float64 + Longitude float64 + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbURL string + ThumbWidth int + Title string + Type string + func NewInlineQueryResultLocation(id, title string, latitude, longitude float64) InlineQueryResultLocation + func (j *InlineQueryResultLocation) MarshalJSON() ([]byte, error) + func (j *InlineQueryResultLocation) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InlineQueryResultLocation) UnmarshalJSON(input []byte) error + func (j *InlineQueryResultLocation) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type InlineQueryResultMPEG4GIF struct + Caption string + Height int + ID string + InputMessageContent interface{} + ReplyMarkup *InlineKeyboardMarkup + ThumbURL string + Title string + Type string + URL string + Width int + func NewInlineQueryResultMPEG4GIF(id, url string) InlineQueryResultMPEG4GIF + func (j *InlineQueryResultMPEG4GIF) MarshalJSON() ([]byte, error) + func (j *InlineQueryResultMPEG4GIF) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InlineQueryResultMPEG4GIF) UnmarshalJSON(input []byte) error + func (j *InlineQueryResultMPEG4GIF) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type InlineQueryResultPhoto struct + Caption string + Description string + Height int + ID string + InputMessageContent interface{} + MimeType string + ReplyMarkup *InlineKeyboardMarkup + ThumbURL string + Title string + Type string + URL string + Width int + func NewInlineQueryResultPhoto(id, url string) InlineQueryResultPhoto + func (j *InlineQueryResultPhoto) MarshalJSON() ([]byte, error) + func (j *InlineQueryResultPhoto) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InlineQueryResultPhoto) UnmarshalJSON(input []byte) error + func (j *InlineQueryResultPhoto) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + 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 + func (j *InlineQueryResultVideo) MarshalJSON() ([]byte, error) + func (j *InlineQueryResultVideo) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InlineQueryResultVideo) UnmarshalJSON(input []byte) error + func (j *InlineQueryResultVideo) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type InlineQueryResultVoice struct + Duration int + ID string + InputMessageContent interface{} + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + URL string + func NewInlineQueryResultVoice(id, url, title string) InlineQueryResultVoice + func (j *InlineQueryResultVoice) MarshalJSON() ([]byte, error) + func (j *InlineQueryResultVoice) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InlineQueryResultVoice) UnmarshalJSON(input []byte) error + func (j *InlineQueryResultVoice) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type InputContactMessageContent struct + FirstName string + LastName string + PhoneNumber string + func (j *InputContactMessageContent) MarshalJSON() ([]byte, error) + func (j *InputContactMessageContent) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InputContactMessageContent) UnmarshalJSON(input []byte) error + func (j *InputContactMessageContent) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type InputLocationMessageContent struct + Latitude float64 + Longitude float64 + func (j *InputLocationMessageContent) MarshalJSON() ([]byte, error) + func (j *InputLocationMessageContent) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InputLocationMessageContent) UnmarshalJSON(input []byte) error + func (j *InputLocationMessageContent) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type InputTextMessageContent struct + DisableWebPagePreview bool + ParseMode string + Text string + func (j *InputTextMessageContent) MarshalJSON() ([]byte, error) + func (j *InputTextMessageContent) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InputTextMessageContent) UnmarshalJSON(input []byte) error + func (j *InputTextMessageContent) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type InputVenueMessageContent struct + Address string + FoursquareID string + Latitude float64 + Longitude float64 + Title string + func (j *InputVenueMessageContent) MarshalJSON() ([]byte, error) + func (j *InputVenueMessageContent) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *InputVenueMessageContent) UnmarshalJSON(input []byte) error + func (j *InputVenueMessageContent) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type KeyboardButton struct + RequestContact bool + RequestLocation bool + Text string + func NewKeyboardButton(text string) KeyboardButton + func NewKeyboardButtonContact(text string) KeyboardButton + func NewKeyboardButtonLocation(text string) KeyboardButton + func NewKeyboardButtonRow(buttons ...KeyboardButton) []KeyboardButton + func (j *KeyboardButton) MarshalJSON() ([]byte, error) + func (j *KeyboardButton) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *KeyboardButton) UnmarshalJSON(input []byte) error + func (j *KeyboardButton) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type LeaveChatConfig struct + func (config LeaveChatConfig) Values() (url.Values, error) + func (j *LeaveChatConfig) MarshalJSON() ([]byte, error) + func (j *LeaveChatConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *LeaveChatConfig) UnmarshalJSON(input []byte) error + func (j *LeaveChatConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Location struct + Latitude float64 + Longitude float64 + func (j *Location) MarshalJSON() ([]byte, error) + func (j *Location) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Location) UnmarshalJSON(input []byte) error + func (j *Location) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type LocationConfig struct + Latitude float64 + Longitude float64 + func NewLocation(chatID int64, latitude float64, longitude float64) LocationConfig + func (config LocationConfig) Values() (url.Values, error) + func (j *LocationConfig) MarshalJSON() ([]byte, error) + func (j *LocationConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *LocationConfig) UnmarshalJSON(input []byte) error + func (j *LocationConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Message struct + Audio *Audio + Caption string + ChannelChatCreated bool + Chat *Chat + Contact *Contact + Date int + DeleteChatPhoto bool + Document *Document + Entities *[]MessageEntity + ForwardDate int + ForwardFrom *User + From *User + GroupChatCreated bool + LeftChatMember *ChatMember + Location *Location + MessageID int + MigrateFromChatID int64 + MigrateToChatID int64 + NewChatMember *ChatMember + NewChatMembers []ChatMember + NewChatParticipant *ChatMember + NewChatPhoto *[]PhotoSize + NewChatTitle string + Photo *[]PhotoSize + PinnedMessage *Message + ReplyToMessage *Message + Sticker *Sticker + SuperGroupChatCreated bool + Text string + Venue *Venue + Video *Video + Voice *Voice + func (j *Message) MarshalJSON() ([]byte, error) + func (j *Message) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Message) UnmarshalJSON(input []byte) error + func (j *Message) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + func (m *Message) Command() string + func (m *Message) CommandArguments() string + func (m *Message) IsCommand() bool + func (m *Message) Time() time.Time + type MessageConfig struct + DisableWebPagePreview bool + ParseMode string + Text string + func NewMessage(chatID int64, text string) MessageConfig + func NewMessageToChannel(username string, text string) MessageConfig + func (config MessageConfig) Values() (url.Values, error) + func (j *MessageConfig) MarshalJSON() ([]byte, error) + func (j *MessageConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *MessageConfig) UnmarshalJSON(input []byte) error + func (j *MessageConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type MessageEntity struct + Length int + Offset int + Type string + URL string + func (entity MessageEntity) ParseURL() (*url.URL, error) + func (j *MessageEntity) MarshalJSON() ([]byte, error) + func (j *MessageEntity) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *MessageEntity) UnmarshalJSON(input []byte) error + func (j *MessageEntity) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type PhotoConfig struct + Caption string + func NewPhotoShare(chatID int64, fileID string) PhotoConfig + func NewPhotoUpload(chatID int64, file interface{}) PhotoConfig + func (config PhotoConfig) Values() (url.Values, error) + func (j *PhotoConfig) MarshalJSON() ([]byte, error) + func (j *PhotoConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *PhotoConfig) UnmarshalJSON(input []byte) error + func (j *PhotoConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type PhotoSize struct + FileID string + FileSize int + Height int + Width int + func (j *PhotoSize) MarshalJSON() ([]byte, error) + func (j *PhotoSize) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *PhotoSize) UnmarshalJSON(input []byte) error + func (j *PhotoSize) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type ReplyKeyboardHide struct + HideKeyboard bool + Selective bool + func NewHideKeyboard(selective bool) *ReplyKeyboardHide + func (ReplyKeyboardHide) KeyboardType() bots.KeyboardType + func (j *ReplyKeyboardHide) MarshalJSON() ([]byte, error) + func (j *ReplyKeyboardHide) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *ReplyKeyboardHide) UnmarshalJSON(input []byte) error + func (j *ReplyKeyboardHide) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type ReplyKeyboardMarkup struct + Keyboard [][]KeyboardButton + OneTimeKeyboard bool + ResizeKeyboard bool + Selective bool + func NewReplyKeyboard(rows ...[]KeyboardButton) *ReplyKeyboardMarkup + func NewReplyKeyboardUsingStrings(buttons [][]string) *ReplyKeyboardMarkup + func (*ReplyKeyboardMarkup) KeyboardType() bots.KeyboardType + func (j *ReplyKeyboardMarkup) MarshalJSON() ([]byte, error) + func (j *ReplyKeyboardMarkup) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *ReplyKeyboardMarkup) UnmarshalJSON(input []byte) error + func (j *ReplyKeyboardMarkup) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Sticker struct + FileID string + FileSize int + Height int + Thumbnail *PhotoSize + Width int + func (j *Sticker) MarshalJSON() ([]byte, error) + func (j *Sticker) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Sticker) UnmarshalJSON(input []byte) error + func (j *Sticker) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type StickerConfig struct + func NewStickerShare(chatID int64, fileID string) StickerConfig + func NewStickerUpload(chatID int64, file interface{}) StickerConfig + func (config StickerConfig) Values() (url.Values, error) + func (j *StickerConfig) MarshalJSON() ([]byte, error) + func (j *StickerConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *StickerConfig) UnmarshalJSON(input []byte) error + func (j *StickerConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Update struct + CallbackQuery *CallbackQuery + ChannelPost *Message + ChosenInlineResult *ChosenInlineResult + EditedChannelPost *Message + EditedMessage *Message + InlineQuery *InlineQuery + Message *Message + UpdateID int + func (j *Update) MarshalJSON() ([]byte, error) + func (j *Update) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Update) UnmarshalJSON(input []byte) error + func (j *Update) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + func (update Update) Chat() *Chat + type UpdateConfig struct + Limit int + Offset int + Timeout int + func NewUpdate(offset int) UpdateConfig + func (j *UpdateConfig) MarshalJSON() ([]byte, error) + func (j *UpdateConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *UpdateConfig) UnmarshalJSON(input []byte) error + func (j *UpdateConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type User struct + FirstName string + ID int + LanguageCode string + LastName string + UserName string + func (j *User) MarshalJSON() ([]byte, error) + func (j *User) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *User) UnmarshalJSON(input []byte) error + func (j *User) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + func (u *User) String() string + func (u User) GetFirstName() string + func (u User) GetFullName() string + func (u User) GetID() interface{} + func (u User) GetLanguage() string + func (u User) GetLastName() string + func (u User) GetUserName() string + func (u User) Platform() string + type UserProfilePhotos struct + Photos [][]PhotoSize + TotalCount int + func (j *UserProfilePhotos) MarshalJSON() ([]byte, error) + func (j *UserProfilePhotos) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *UserProfilePhotos) UnmarshalJSON(input []byte) error + func (j *UserProfilePhotos) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type UserProfilePhotosConfig struct + Limit int + Offset int + UserID int + func NewUserProfilePhotos(userID int) UserProfilePhotosConfig + func (j *UserProfilePhotosConfig) MarshalJSON() ([]byte, error) + func (j *UserProfilePhotosConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *UserProfilePhotosConfig) UnmarshalJSON(input []byte) error + func (j *UserProfilePhotosConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Venue struct + Address string + FoursquareID string + Location Location + Title string + func (j *Venue) MarshalJSON() ([]byte, error) + func (j *Venue) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Venue) UnmarshalJSON(input []byte) error + func (j *Venue) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type VenueConfig struct + Address string + FoursquareID string + Latitude float64 + Longitude float64 + Title string + func NewVenue(chatID int64, title, address string, latitude, longitude float64) VenueConfig + func (config VenueConfig) Values() (url.Values, error) + func (j *VenueConfig) MarshalJSON() ([]byte, error) + func (j *VenueConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *VenueConfig) UnmarshalJSON(input []byte) error + func (j *VenueConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Video struct + Duration int + FileID string + FileSize int + Height int + MimeType string + Thumbnail *PhotoSize + Width int + func (j *Video) MarshalJSON() ([]byte, error) + func (j *Video) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Video) UnmarshalJSON(input []byte) error + func (j *Video) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type VideoConfig struct + Caption string + Duration int + func NewVideoShare(chatID int64, fileID string) VideoConfig + func NewVideoUpload(chatID int64, file interface{}) VideoConfig + func (config VideoConfig) Values() (url.Values, error) + func (j *VideoConfig) MarshalJSON() ([]byte, error) + func (j *VideoConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *VideoConfig) UnmarshalJSON(input []byte) error + func (j *VideoConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Voice struct + Duration int + FileID string + FileSize int + MimeType string + func (j *Voice) MarshalJSON() ([]byte, error) + func (j *Voice) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Voice) UnmarshalJSON(input []byte) error + func (j *Voice) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type VoiceConfig struct + Duration int + func NewVoiceShare(chatID int64, fileID string) VoiceConfig + func NewVoiceUpload(chatID int64, file interface{}) VoiceConfig + func (config VoiceConfig) Values() (url.Values, error) + func (j *VoiceConfig) MarshalJSON() ([]byte, error) + func (j *VoiceConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *VoiceConfig) UnmarshalJSON(input []byte) error + func (j *VoiceConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type WebhookConfig struct + AllowedUpdates []string + Certificate interface{} + MaxConnections int + URL *url.URL + func NewWebhook(link string) WebhookConfig + func NewWebhookWithCert(link string, file interface{}) WebhookConfig + func (j *WebhookConfig) MarshalJSON() ([]byte, error) + func (j *WebhookConfig) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *WebhookConfig) UnmarshalJSON(input []byte) error + func (j *WebhookConfig) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error