Versions in this module Expand all Collapse all v5 v5.0.3 Mar 18, 2021 Changes in this version type Contact + VCard string type ContactConfig + VCard string v5.0.2 Mar 18, 2021 v5.0.1 Mar 18, 2021 Changes in this version + const APIEndpoint + const ChatFindLocation + const ChatRecordAudio + const ChatRecordVideo + const ChatTyping + const ChatUploadAudio + const ChatUploadDocument + const ChatUploadPhoto + const ChatUploadVideo + const ErrAPIForbidden + const ErrBadFileType + const ErrBadURL + const FileEndpoint + const ModeHTML + const ModeMarkdown + const ModeMarkdownV2 + func EscapeText(parseMode string, text string) string + func SetLogger(logger BotLogger) error + type APIResponse struct + Description string + ErrorCode int + Ok bool + Parameters *ResponseParameters + Result json.RawMessage + type Animation struct + FileID string + FileName string + FileSize int + MimeType string + Thumb PhotoSize + type AnimationConfig struct + Caption string + Duration int + ParseMode string + func NewAnimationShare(chatID int64, fileID string) AnimationConfig + func NewAnimationUpload(chatID int64, file interface{}) AnimationConfig + type Audio struct + Duration int + FileID string + FileSize int + MimeType string + Performer string + Title string + type AudioConfig struct + Caption string + Duration int + ParseMode string + Performer string + Title string + func NewAudioShare(chatID int64, fileID string) AudioConfig + func NewAudioUpload(chatID int64, file interface{}) AudioConfig + type BaseChat struct + 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{} + FileID string + FileSize int + MimeType string + UseExisting bool + type BotAPI struct + Buffer int + Client HttpClient + Debug bool + Self User + Token string + func NewBotAPI(token string) (*BotAPI, error) + func NewBotAPIWithAPIEndpoint(token, apiEndpoint string) (*BotAPI, error) + func NewBotAPIWithClient(token, apiEndpoint string, client HttpClient) (*BotAPI, error) + func (bot *BotAPI) AnswerCallbackQuery(config CallbackConfig) (APIResponse, error) + func (bot *BotAPI) AnswerInlineQuery(config InlineConfig) (APIResponse, error) + func (bot *BotAPI) AnswerPreCheckoutQuery(config PreCheckoutConfig) (APIResponse, error) + func (bot *BotAPI) AnswerShippingQuery(config ShippingConfig) (APIResponse, error) + func (bot *BotAPI) DeleteChatPhoto(config DeleteChatPhotoConfig) (APIResponse, error) + func (bot *BotAPI) DeleteMessage(config DeleteMessageConfig) (APIResponse, error) + func (bot *BotAPI) GetChat(config ChatConfig) (Chat, error) + func (bot *BotAPI) GetChatAdministrators(config ChatConfig) ([]ChatMember, error) + func (bot *BotAPI) GetChatMember(config ChatConfigWithUser) (ChatMember, error) + func (bot *BotAPI) GetChatMembersCount(config ChatConfig) (int, error) + func (bot *BotAPI) GetFile(config FileConfig) (File, error) + func (bot *BotAPI) GetFileDirectURL(fileID string) (string, error) + func (bot *BotAPI) GetGameHighScores(config GetGameHighScoresConfig) ([]GameHighScore, error) + func (bot *BotAPI) GetInviteLink(config ChatConfig) (string, error) + func (bot *BotAPI) GetMe() (User, error) + func (bot *BotAPI) GetMyCommands() ([]BotCommand, error) + func (bot *BotAPI) GetStickerSet(config GetStickerSetConfig) (StickerSet, error) + func (bot *BotAPI) GetUpdates(config UpdateConfig) ([]Update, error) + func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) + func (bot *BotAPI) GetUserProfilePhotos(config UserProfilePhotosConfig) (UserProfilePhotos, error) + func (bot *BotAPI) GetWebhookInfo() (WebhookInfo, error) + func (bot *BotAPI) HandleUpdate(r *http.Request) (*Update, error) + func (bot *BotAPI) IsMessageToMe(message Message) bool + func (bot *BotAPI) KickChatMember(config KickChatMemberConfig) (APIResponse, error) + func (bot *BotAPI) LeaveChat(config ChatConfig) (APIResponse, error) + func (bot *BotAPI) ListenForWebhook(pattern string) UpdatesChannel + func (bot *BotAPI) MakeRequest(endpoint string, params url.Values) (APIResponse, error) + func (bot *BotAPI) PinChatMessage(config PinChatMessageConfig) (APIResponse, error) + func (bot *BotAPI) PromoteChatMember(config PromoteChatMemberConfig) (APIResponse, error) + func (bot *BotAPI) RemoveWebhook() (APIResponse, error) + func (bot *BotAPI) RestrictChatMember(config RestrictChatMemberConfig) (APIResponse, error) + func (bot *BotAPI) Send(c Chattable) (Message, error) + func (bot *BotAPI) SetAPIEndpoint(apiEndpoint string) + func (bot *BotAPI) SetChatDescription(config SetChatDescriptionConfig) (APIResponse, error) + func (bot *BotAPI) SetChatPhoto(config SetChatPhotoConfig) (APIResponse, error) + func (bot *BotAPI) SetChatTitle(config SetChatTitleConfig) (APIResponse, error) + func (bot *BotAPI) SetMyCommands(commands []BotCommand) error + func (bot *BotAPI) SetWebhook(config WebhookConfig) (APIResponse, error) + func (bot *BotAPI) StopReceivingUpdates() + func (bot *BotAPI) UnbanChatMember(config ChatMemberConfig) (APIResponse, error) + func (bot *BotAPI) UnpinChatMessage(config UnpinChatMessageConfig) (APIResponse, error) + func (bot *BotAPI) UploadFile(endpoint string, params map[string]string, fieldname string, file interface{}) (APIResponse, error) + type BotCommand struct + Command string + Description string + type BotLogger interface + Printf func(format string, v ...interface{}) + Println func(v ...interface{}) + type CallbackConfig struct + CacheTime int + CallbackQueryID string + ShowAlert bool + Text string + URL string + func NewCallback(id, text string) CallbackConfig + func NewCallbackWithAlert(id, text string) CallbackConfig + type CallbackGame struct + type CallbackQuery struct + ChatInstance string + Data string + From *User + GameShortName string + ID string + InlineMessageID string + Message *Message + type Chat struct + AllMembersAreAdmins bool + Description string + FirstName string + ID int64 + InviteLink string + LastName string + Photo *ChatPhoto + PinnedMessage *Message + 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 + type ChatAnimation struct + Duration int + FileID string + FileName string + FileSize int + Height int + MimeType string + Thumbnail *PhotoSize + Width int + type ChatConfig struct + ChatID int64 + SuperGroupUsername string + type ChatConfigWithUser struct + ChatID int64 + SuperGroupUsername string + UserID int + 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 + CustomTitle string + Status string + UntilDate int64 + User *User + func (chat ChatMember) HasLeft() bool + func (chat ChatMember) IsAdministrator() bool + func (chat ChatMember) IsCreator() bool + func (chat ChatMember) IsMember() bool + func (chat ChatMember) WasKicked() bool + type ChatMemberConfig struct + ChannelUsername string + ChatID int64 + SuperGroupUsername string + UserID int + type ChatPhoto struct + BigFileID string + SmallFileID string + type Chattable interface + 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 ContactConfig struct + FirstName string + LastName string + PhoneNumber string + func NewContact(chatID int64, phoneNumber, firstName string) ContactConfig + type Credentials struct + Data SecureData + Nonce string + type DataCredentials struct + DataHash string + Secret string + type DeleteChatPhotoConfig struct + ChatID int64 + type DeleteMessageConfig struct + ChannelUsername string + ChatID int64 + MessageID int + func NewDeleteMessage(chatID int64, messageID int) DeleteMessageConfig + type DiceConfig struct + Emoji string + func NewDice(chatID int64) DiceConfig + func NewDiceWithEmoji(chatID int64, emoji string) DiceConfig + type Document struct + FileID string + FileName string + FileSize int + MimeType string + Thumbnail *PhotoSize + type DocumentConfig struct + Caption string + ParseMode string + func NewDocumentShare(chatID int64, fileID string) DocumentConfig + func NewDocumentUpload(chatID int64, file interface{}) DocumentConfig + type EditMessageCaptionConfig struct + Caption string + ParseMode string + func NewEditMessageCaption(chatID int64, messageID int, caption string) EditMessageCaptionConfig + type EditMessageReplyMarkupConfig struct + func NewEditMessageReplyMarkup(chatID int64, messageID int, replyMarkup InlineKeyboardMarkup) EditMessageReplyMarkupConfig + type EditMessageTextConfig struct + DisableWebPagePreview bool + ParseMode string + Text string + func NewEditMessageText(chatID int64, messageID int, text string) EditMessageTextConfig + func NewEditMessageTextAndMarkup(chatID int64, messageID int, text string, replyMarkup InlineKeyboardMarkup) EditMessageTextConfig + type EncryptedCredentials struct + Data string + Hash string + Secret string + type EncryptedPassportElement struct + Data string + Email string + Files []PassportFile + FrontSide *PassportFile + PhoneNumber string + ReverseSide *PassportFile + Selfie *PassportFile + Type string + type Error struct + Code int + Message string + func (e Error) Error() string + type File struct + FileID string + FilePath string + FileSize int + func (f *File) Link(token string) string + type FileBytes struct + Bytes []byte + Name string + type FileConfig struct + FileID string + type FileCredentials struct + FileHash string + Secret string + type FileReader struct + Name string + Reader io.Reader + Size int64 + type Fileable interface + 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 + type Game struct + Animation Animation + Description string + Photo []PhotoSize + Text string + TextEntities []MessageEntity + Title string + type GameConfig struct + GameShortName string + type GameHighScore struct + Position int + Score int + User User + type GetGameHighScoresConfig struct + ChannelUsername string + ChatID int + InlineMessageID string + MessageID int + UserID int + type GetStickerSetConfig struct + Name string + type GroupChat struct + ID int + Title string + type HttpClient interface + Do func(req *http.Request) (*http.Response, 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 + type InlineKeyboardButton struct + CallbackData *string + CallbackGame *CallbackGame + Pay bool + SwitchInlineQuery *string + SwitchInlineQueryCurrentChat *string + Text string + URL *string + func NewInlineKeyboardButtonData(text, data string) 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 + 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 + Duration int + ID string + InputMessageContent interface{} + Performer string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + URL string + func NewInlineQueryResultAudio(id, url, title string) InlineQueryResultAudio + type InlineQueryResultCachedAudio struct + AudioID string + Caption string + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Type string + func NewInlineQueryResultCachedAudio(id, audioID string) InlineQueryResultCachedAudio + type InlineQueryResultCachedDocument struct + Caption string + 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 + 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 + ID string + InputMessageContent interface{} + MGifID string + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + func NewInlineQueryResultCachedMPEG4GIF(id, MPEG4GifID string) InlineQueryResultCachedMpeg4Gif + type InlineQueryResultCachedPhoto struct + Caption string + 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{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + StickerID string + Title string + Type string + func NewInlineQueryResultCachedSticker(id, stickerID, title string) InlineQueryResultCachedSticker + type InlineQueryResultCachedVideo struct + Caption string + 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 + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + VoiceID string + func NewInlineQueryResultCachedVoice(id, voiceID, title string) InlineQueryResultCachedVoice + 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 + Duration int + Height int + ID string + InputMessageContent interface{} + 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 + 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 + type InlineQueryResultMPEG4GIF struct + Caption string + Duration int + Height int + ID string + InputMessageContent interface{} + ReplyMarkup *InlineKeyboardMarkup + ThumbURL string + Title string + Type string + URL string + Width int + func NewInlineQueryResultMPEG4GIF(id, url string) InlineQueryResultMPEG4GIF + type InlineQueryResultPhoto struct + Caption string + 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 + 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 + Duration int + ID string + InputMessageContent interface{} + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + URL string + func NewInlineQueryResultVoice(id, url, title string) InlineQueryResultVoice + type InputContactMessageContent struct + FirstName string + LastName string + PhoneNumber string + type InputLocationMessageContent struct + Latitude float64 + Longitude float64 + type InputMediaPhoto struct + Caption string + Media string + ParseMode string + Type string + func NewInputMediaPhoto(media string) InputMediaPhoto + type InputMediaVideo struct + Caption string + Duration int + Height int + Media string + ParseMode string + SupportsStreaming bool + Type string + Width int + func NewInputMediaVideo(media string) InputMediaVideo + type InputTextMessageContent struct + DisableWebPagePreview bool + ParseMode string + Text string + type InputVenueMessageContent struct + Address string + FoursquareID 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 + NeedEmail bool + NeedName bool + NeedPhoneNumber bool + NeedShippingAddress bool + Payload string + PhotoHeight int + PhotoSize int + PhotoURL string + PhotoWidth int + Prices *[]LabeledPrice + ProviderToken string + StartParameter string + Title string + func NewInvoice(chatID int64, ...) InvoiceConfig + 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 + type KickChatMemberConfig struct + UntilDate int64 + type LabeledPrice struct + Amount int + Label string + type Location struct + Latitude float64 + Longitude float64 + type LocationConfig struct + Latitude float64 + Longitude float64 + func NewLocation(chatID int64, latitude float64, longitude float64) LocationConfig + type MediaGroupConfig struct + InputMedia []interface{} + func NewMediaGroup(chatID int64, files []interface{}) MediaGroupConfig + type Message struct + Animation *ChatAnimation + Audio *Audio + AuthorSignature string + Caption string + CaptionEntities *[]MessageEntity + ChannelChatCreated bool + Chat *Chat + Contact *Contact + Date int + DeleteChatPhoto bool + Document *Document + EditDate int + Entities *[]MessageEntity + ForwardDate int + ForwardFrom *User + ForwardFromChat *Chat + ForwardFromMessageID int + From *User + Game *Game + GroupChatCreated bool + Invoice *Invoice + LeftChatMember *User + Location *Location + MediaGroupID string + MessageID int + MigrateFromChatID int64 + MigrateToChatID int64 + NewChatMembers *[]User + NewChatPhoto *[]PhotoSize + NewChatTitle string + PassportData *PassportData + Photo *[]PhotoSize + PinnedMessage *Message + ReplyToMessage *Message + Sticker *Sticker + SuccessfulPayment *SuccessfulPayment + SuperGroupChatCreated bool + Text string + Venue *Venue + ViaBot *User + Video *Video + VideoNote *VideoNote + Voice *Voice + 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 MessageConfig struct + DisableWebPagePreview bool + ParseMode string + Text string + func NewMessage(chatID int64, text string) MessageConfig + func NewMessageToChannel(username string, text string) MessageConfig + type MessageEntity struct + 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 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{}) error + func (p Params) AddInterface(key string, value interface{}) error + func (p Params) AddNonEmpty(key, value string) + func (p Params) AddNonZero(key string, value int) + func (p Params) AddNonZero64(key string, value int64) + func (p Params) AddNonZeroFloat(key string, value float64) + type PassportData struct + Credentials *EncryptedCredentials + Data []EncryptedPassportElement + type PassportElementError interface + type PassportElementErrorDataField struct + DataHash string + FieldName string + Message string + Source string + Type string + type PassportElementErrorFile struct + FileHash string + Message string + Source string + Type string + type PassportElementErrorFiles struct + FileHashes []string + Message string + Source string + Type string + type PassportElementErrorFrontSide struct + FileHash string + Message string + Source string + Type string + type PassportElementErrorReverseSide struct + FileHash string + Message string + Source string + Type string + type PassportElementErrorSelfie struct + FileHash string + Message string + Source string + Type string + type PassportFile struct + FileDate int64 + FileID string + FileSize int + 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 + ParseMode string + func NewPhotoShare(chatID int64, fileID string) PhotoConfig + func NewPhotoUpload(chatID int64, file interface{}) PhotoConfig + type PhotoSize struct + FileID string + FileSize int + Height int + Width int + type PinChatMessageConfig struct + ChatID int64 + DisableNotification bool + MessageID int + type PreCheckoutConfig struct + ErrorMessage string + OK bool + PreCheckoutQueryID string + type PreCheckoutQuery struct + Currency string + From *User + ID string + InvoicePayload string + OrderInfo *OrderInfo + ShippingOptionID string + TotalAmount int + type PromoteChatMemberConfig struct + CanChangeInfo *bool + CanDeleteMessages *bool + CanEditMessages *bool + CanInviteUsers *bool + CanPinMessages *bool + CanPostMessages *bool + CanPromoteMembers *bool + CanRestrictMembers *bool + type ReplyKeyboardHide struct + HideKeyboard bool + Selective bool + func NewHideKeyboard(selective bool) ReplyKeyboardHide + 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 ResponseParameters struct + MigrateToChatID int64 + RetryAfter int + type RestrictChatMemberConfig struct + CanAddWebPagePreviews *bool + CanSendMediaMessages *bool + CanSendMessages *bool + CanSendOtherMessages *bool + UntilDate int64 + 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 + ExplanationParseMode string + IsAnonymous bool + IsClosed bool + OpenPeriod int + Options []string + Question string + Type string + type SetChatDescriptionConfig struct + ChatID int64 + Description string + type SetChatPhotoConfig struct + func NewSetChatPhotoShare(chatID int64, fileID string) SetChatPhotoConfig + func NewSetChatPhotoUpload(chatID int64, file interface{}) SetChatPhotoConfig + type SetChatTitleConfig struct + ChatID int64 + Title string + type SetGameScoreConfig struct + ChannelUsername string + ChatID int64 + DisableEditMessage bool + Force bool + InlineMessageID string + MessageID int + Score int + UserID int + type ShippingAddress struct + City string + CountryCode string + PostCode string + State string + StreetLine1 string + StreetLine2 string + type ShippingConfig struct + ErrorMessage string + OK bool + ShippingOptions *[]ShippingOption + ShippingQueryID string + type ShippingOption struct + ID string + Prices *[]LabeledPrice + Title string + type ShippingQuery struct + From *User + ID string + InvoicePayload string + ShippingAddress *ShippingAddress + type Sticker struct + Emoji string + FileID string + FileSize int + FileUniqueID string + Height int + IsAnimated bool + SetName string + Thumbnail *PhotoSize + Width int + type StickerConfig struct + func NewStickerShare(chatID int64, fileID string) StickerConfig + func NewStickerUpload(chatID int64, file interface{}) StickerConfig + type StickerSet struct + ContainsMasks bool + IsAnimated bool + Name string + Stickers []Sticker + Title string + type SuccessfulPayment struct + Currency string + InvoicePayload string + OrderInfo *OrderInfo + ProviderPaymentChargeID string + ShippingOptionID string + TelegramPaymentChargeID string + TotalAmount int + type UnpinChatMessageConfig struct + ChatID int64 + type Update struct + CallbackQuery *CallbackQuery + ChannelPost *Message + ChosenInlineResult *ChosenInlineResult + EditedChannelPost *Message + EditedMessage *Message + InlineQuery *InlineQuery + Message *Message + PreCheckoutQuery *PreCheckoutQuery + ShippingQuery *ShippingQuery + UpdateID int + type UpdateConfig struct + Limit int + Offset int + Timeout int + func NewUpdate(offset int) UpdateConfig + type UpdatesChannel <-chan Update + func (ch UpdatesChannel) Clear() + type User struct + FirstName string + ID int + IsBot bool + LanguageCode string + LastName string + UserName string + func (u *User) String() string + type UserProfilePhotos struct + Photos [][]PhotoSize + TotalCount int + type UserProfilePhotosConfig struct + Limit int + Offset int + UserID int + func NewUserProfilePhotos(userID int) UserProfilePhotosConfig + type Venue struct + Address string + FoursquareID string + Location Location + Title string + type VenueConfig struct + Address string + FoursquareID string + Latitude float64 + Longitude float64 + Title string + func NewVenue(chatID int64, title, address string, latitude, longitude float64) VenueConfig + type Video struct + Duration int + FileID string + FileSize int + Height int + MimeType string + Thumbnail *PhotoSize + Width int + type VideoConfig struct + Caption string + Duration int + ParseMode string + func NewVideoShare(chatID int64, fileID string) VideoConfig + func NewVideoUpload(chatID int64, file interface{}) VideoConfig + type VideoNote struct + Duration int + FileID string + FileSize int + Length int + Thumbnail *PhotoSize + type VideoNoteConfig struct + Duration int + Length int + func NewVideoNoteShare(chatID int64, length int, fileID string) VideoNoteConfig + func NewVideoNoteUpload(chatID int64, length int, file interface{}) VideoNoteConfig + type Voice struct + Duration int + FileID string + FileSize int + MimeType string + type VoiceConfig struct + Caption string + Duration int + ParseMode string + func NewVoiceShare(chatID int64, fileID string) VoiceConfig + func NewVoiceUpload(chatID int64, file interface{}) VoiceConfig + type WebhookConfig struct + Certificate interface{} + MaxConnections int + URL *url.URL + func NewWebhook(link string) WebhookConfig + func NewWebhookWithCert(link string, file interface{}) WebhookConfig + type WebhookInfo struct + HasCustomCertificate bool + LastErrorDate int + LastErrorMessage string + MaxConnections int + PendingUpdateCount int + URL string + func (info WebhookInfo) IsSet() bool Other modules containing this package github.com/kofilabs/telegram-bot-api