Versions in this module Expand all Collapse all v2 v2.3.7 Feb 22, 2021 Changes in this version + const DefaultApiURL + const OnAddedToGroup + const OnAnimation + const OnAudio + const OnCallback + const OnChannelPost + const OnCheckout + const OnChosenInlineResult + const OnContact + const OnDice + const OnDocument + const OnEdited + const OnEditedChannelPost + const OnGroupPhotoDeleted + const OnInvoice + const OnLocation + const OnMigration + const OnNewGroupPhoto + const OnNewGroupTitle + const OnPayment + const OnPhoto + const OnPinned + const OnPoll + const OnPollAnswer + const OnQuery + const OnShipping + const OnSticker + const OnText + const OnUserJoined + const OnUserLeft + const OnVenue + const OnVideo + const OnVideoNote + const OnVoice + var Ball = &Dice + var Bowl = &Dice + var Cube = &Dice + var Dart = &Dice + var ErrBadPollOptions = NewAPIError(400, "Bad Request: expected an Array of String as options") + var ErrBadRecipient = errors.New("telebot: recipient is nil") + var ErrBadURLContent = NewAPIError(400, "Bad Request: failed to get HTTP URL content") + var ErrBlockedByUser = NewAPIError(401, "Forbidden: bot was blocked by the user") + var ErrBotKickedFromGroup = NewAPIError(403, "Forbidden: bot was kicked from the group chat") + var ErrBotKickedFromSuperGroup = NewAPIError(403, "Forbidden: bot was kicked from the supergroup chat") + var ErrButtonDataInvalid = NewAPIError(400, "Bad Request: BUTTON_DATA_INVALID") + var ErrCantEditMessage = NewAPIError(400, "Bad Request: message can't be edited") + var ErrChatNotFound = NewAPIError(400, "Bad Request: chat not found") + var ErrCouldNotUpdate = errors.New("telebot: could not fetch new updates") + var ErrEmptyChatID = NewAPIError(400, "Bad Request: chat_id is empty") + var ErrEmptyMessage = NewAPIError(400, "Bad Request: message must be non-empty") + var ErrEmptyText = NewAPIError(400, "Bad Request: text is empty") + var ErrFailedImageProcess = NewAPIError(400, "Bad Request: IMAGE_PROCESS_FAILED", "Image process failed") + var ErrInternal = NewAPIError(500, "Internal Server Error") + var ErrInvalidStickerSet = NewAPIError(400, "Bad Request: STICKERSET_INVALID", "Stickerset is invalid") + var ErrKickingChatOwner = NewAPIError(400, "Bad Request: can't remove chat owner") + var ErrMessageNotModified = NewAPIError(400, "Bad Request: message is not modified") + var ErrMessageTooLong = NewAPIError(400, "Bad Request: message is too long") + var ErrNoRightsToDelete = NewAPIError(400, "Bad Request: message can't be deleted") + var ErrNoRightsToRestrict = NewAPIError(400, "Bad Request: not enough rights to restrict/unrestrict chat member") + var ErrNoRightsToSend = NewAPIError(400, "Bad Request: have no rights to send a message") + var ErrNoRightsToSendGifs = NewAPIError(400, "Bad Request: CHAT_SEND_GIFS_FORBIDDEN", ...) + var ErrNoRightsToSendPhoto = NewAPIError(400, "Bad Request: not enough rights to send photos to the chat") + var ErrNoRightsToSendStickers = NewAPIError(400, "Bad Request: not enough rights to send stickers to the chat") + var ErrNotFound = NewAPIError(404, "Not Found") + var ErrNotStartedByUser = NewAPIError(403, "Forbidden: bot can't initiate conversation with a user") + var ErrSameMessageContent = NewAPIError(400, ...) + var ErrToDeleteNotFound = NewAPIError(400, "Bad Request: message to delete not found") + var ErrToForwardNotFound = NewAPIError(400, "Bad Request: message to forward not found") + var ErrToReplyNotFound = NewAPIError(400, "Bad Request: reply message not found") + var ErrTooLarge = NewAPIError(400, "Request Entity Too Large") + var ErrTrueResult = errors.New("telebot: result is True") + var ErrUnauthorized = NewAPIError(401, "Unauthorized") + var ErrUnsupportedWhat = errors.New("telebot: unsupported what argument") + var ErrUserIsDeactivated = NewAPIError(401, "Forbidden: user is deactivated") + var ErrWrongFileID = NewAPIError(400, "Bad Request: wrong file identifier/HTTP URL specified") + var ErrWrongFileIDCharacter = NewAPIError(400, ...) + var ErrWrongFileIDLength = NewAPIError(400, "Bad Request: wrong remote file id specified: Wrong string length") + var ErrWrongFileIDPadding = NewAPIError(400, ...) + var ErrWrongFileIDSymbol = NewAPIError(400, ...) + var ErrWrongTypeOfContent = NewAPIError(400, "Bad Request: wrong type of the web page content") + var Goal = &Dice + var Slot = &Dice + var SupportedCurrencies = map[string]Currency + func ErrByDescription(s string) error + func Forever() int64 + type APIError struct + Code int + Description string + Message string + func NewAPIError(code int, msgs ...string) *APIError + func (err *APIError) Error() string + type Album []InputMedia + type Animation struct + Caption string + Duration int + FileName string + Height int + MIME string + Thumbnail *Photo + Width int + func (a *Animation) MediaFile() *File + func (a *Animation) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, error) + type ArticleResult struct + Description string + HideURL bool + Text string + ThumbHeight int + ThumbURL string + ThumbWidth int + Title string + URL string + type Audio struct + Caption string + Duration int + FileName string + MIME string + ParseMode ParseMode + Performer string + Thumbnail *Photo + Title string + func (a *Audio) MediaFile() *File + func (a *Audio) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, error) + type AudioResult struct + Cache string + Caption string + Duration int + ParseMode ParseMode + Performer string + Title string + URL string + type Bot struct + Me *User + Poller Poller + Token string + URL string + Updates chan Update + func NewBot(pref Settings) (*Bot, error) + func (b *Bot) Accept(query *PreCheckoutQuery, errorMessage ...string) error + func (b *Bot) AddStickerToSet(to Recipient, s StickerSet) error + func (b *Bot) AdminsOf(chat *Chat) ([]ChatMember, error) + func (b *Bot) Answer(query *Query, resp *QueryResponse) error + func (b *Bot) Ban(chat *Chat, member *ChatMember) error + func (b *Bot) ChatByID(id string) (*Chat, error) + func (b *Bot) ChatMemberOf(chat *Chat, user *User) (*ChatMember, error) + func (b *Bot) CreateNewStickerSet(to Recipient, s StickerSet) error + func (b *Bot) Delete(msg Editable) error + func (b *Bot) DeleteGroupPhoto(chat *Chat) error + func (b *Bot) DeleteGroupStickerSet(chat *Chat) error + func (b *Bot) DeleteStickerFromSet(sticker string) error + func (b *Bot) Download(file *File, localFilename string) error + func (b *Bot) Edit(msg Editable, what interface{}, options ...interface{}) (*Message, error) + func (b *Bot) EditCaption(msg Editable, caption string, options ...interface{}) (*Message, error) + func (b *Bot) EditMedia(msg Editable, media InputMedia, options ...interface{}) (*Message, error) + func (b *Bot) EditReplyMarkup(msg Editable, markup *ReplyMarkup) (*Message, error) + func (b *Bot) FileByID(fileID string) (File, error) + func (b *Bot) FileURLByID(fileID string) (string, error) + func (b *Bot) Forward(to Recipient, msg Editable, options ...interface{}) (*Message, error) + func (b *Bot) GetCommands() ([]Command, error) + func (b *Bot) GetFile(file *File) (io.ReadCloser, error) + func (b *Bot) GetGameScores(user Recipient, msg Editable) ([]GameHighScore, error) + func (b *Bot) GetInviteLink(chat *Chat) (string, error) + func (b *Bot) GetStickerSet(name string) (*StickerSet, error) + func (b *Bot) GetWebhook() (*Webhook, error) + func (b *Bot) Handle(endpoint interface{}, handler interface{}) + func (b *Bot) Leave(chat *Chat) error + func (b *Bot) Len(chat *Chat) (int, error) + func (b *Bot) NewMarkup() *ReplyMarkup + func (b *Bot) Notify(to Recipient, action ChatAction) error + func (b *Bot) Pin(msg Editable, options ...interface{}) error + func (b *Bot) ProcessUpdate(upd Update) + func (b *Bot) ProfilePhotosOf(user *User) ([]Photo, error) + func (b *Bot) Promote(chat *Chat, member *ChatMember) error + func (b *Bot) Raw(method string, payload interface{}) ([]byte, error) + func (b *Bot) RemoveWebhook() error + func (b *Bot) Reply(to *Message, what interface{}, options ...interface{}) (*Message, error) + func (b *Bot) Respond(c *Callback, resp ...*CallbackResponse) error + func (b *Bot) Restrict(chat *Chat, member *ChatMember) error + func (b *Bot) Send(to Recipient, what interface{}, options ...interface{}) (*Message, error) + func (b *Bot) SendAlbum(to Recipient, a Album, options ...interface{}) ([]Message, error) + func (b *Bot) SetAdminTitle(chat *Chat, user *User, title string) error + func (b *Bot) SetCommands(cmds []Command) error + func (b *Bot) SetGameScore(user Recipient, msg Editable, score GameHighScore) (*Message, error) + func (b *Bot) SetGroupDescription(chat *Chat, description string) error + func (b *Bot) SetGroupPermissions(chat *Chat, perms Rights) error + func (b *Bot) SetGroupPhoto(chat *Chat, p *Photo) error + func (b *Bot) SetGroupStickerSet(chat *Chat, setName string) error + func (b *Bot) SetGroupTitle(chat *Chat, title string) error + func (b *Bot) SetStickerPositionInSet(sticker string, position int) error + func (b *Bot) SetStickerSetThumb(to Recipient, s StickerSet) error + func (b *Bot) SetWebhook(w *Webhook) error + func (b *Bot) Ship(query *ShippingQuery, what ...interface{}) error + func (b *Bot) Start() + func (b *Bot) Stop() + func (b *Bot) StopLiveLocation(msg Editable, options ...interface{}) (*Message, error) + func (b *Bot) StopPoll(msg Editable, options ...interface{}) (*Poll, error) + func (b *Bot) Unban(chat *Chat, user *User) error + func (b *Bot) Unpin(chat *Chat) error + func (b *Bot) UploadStickerFile(to Recipient, png *File) (*File, error) + type Btn struct + Contact bool + Data string + InlineQuery string + InlineQueryChat string + Location bool + Login *Login + Poll PollType + Text string + URL string + Unique string + func (b Btn) Inline() *InlineButton + func (b Btn) Reply() *ReplyButton + func (t *Btn) CallbackUnique() string + type Callback struct + Data string + ID string + Message *Message + MessageID string + Sender *User + func (c *Callback) IsInline() bool + type CallbackEndpoint interface + CallbackUnique func() string + type CallbackResponse struct + CallbackID string + ShowAlert bool + Text string + URL string + type Chat struct + CanSetStickerSet bool + Description string + FirstName string + ID int64 + InviteLink string + LastName string + Permissions *Rights + Photo *ChatPhoto + PinnedMessage *Message + SlowMode int + StickerSet string + Still bool + Title string + Type ChatType + Username string + func (c *Chat) Recipient() string + type ChatAction string + const FindingLocation + const RecordingAudio + const RecordingVNote + const RecordingVideo + const Typing + const UploadingAudio + const UploadingDocument + const UploadingPhoto + const UploadingVNote + const UploadingVideo + type ChatID int64 + func (i ChatID) Recipient() string + type ChatMember struct + RestrictedUntil int64 + Role MemberStatus + Title string + User *User + type ChatPhoto struct + BigFileID string + BigFileUniqueID string + SmallFileID string + SmallFileUniqueID string + type ChatType string + const ChatChannel + const ChatChannelPrivate + const ChatGroup + const ChatPrivate + const ChatSuperGroup + type ChosenInlineResult struct + From User + Location *Location + MessageID string + Query string + ResultID string + type Command struct + Description string + Text string + type Contact struct + FirstName string + LastName string + PhoneNumber string + UserID int + type ContactResult struct + FirstName string + LastName string + PhoneNumber string + ThumbHeight int + ThumbURL string + ThumbWidth int + VCard string + type Currency struct + Code string + DecimalSep string + Exp int + MaxAmount interface{} + MinAmount interface{} + Native string + SpaceBetween bool + Symbol string + SymbolLeft bool + ThousandsSep string + Title string + func (c Currency) FromTotal(total int) float64 + func (c Currency) ToTotal(total float64) int + type Dice struct + Type DiceType + Value int + func (d *Dice) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, error) + type DiceType string + type Document struct + Caption string + FileName string + MIME string + ParseMode ParseMode + Thumbnail *Photo + func (d *Document) MediaFile() *File + func (d *Document) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, error) + type DocumentResult struct + Cache string + Caption string + Description string + MIME string + ParseMode ParseMode + ThumbHeight int + ThumbURL string + ThumbWidth int + Title string + URL string + type Editable interface + MessageSig func() (messageID string, chatID int64) + type EntityType string + const EntityBold + const EntityCashtag + const EntityCode + const EntityCodeBlock + const EntityCommand + const EntityEmail + const EntityHashtag + const EntityItalic + const EntityMention + const EntityPhone + const EntityStrikethrough + const EntityTMention + const EntityTextLink + const EntityURL + const EntityUnderline + type File struct + FileID string + FileLocal string + FilePath string + FileReader io.Reader + FileSize int + FileURL string + UniqueID string + func FromDisk(filename string) File + func FromReader(reader io.Reader) File + func FromURL(url string) File + func (f *File) InCloud() bool + func (f *File) OnDisk() bool + type FloodError struct + RetryAfter int + type Game struct + Animation *Animation + Description string + Entities []MessageEntity + Name string + Photo *Photo + Text string + Title string + func (g *Game) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, error) + type GameHighScore struct + Force bool + NoEdit bool + Position int + Score int + User *User + type GifResult struct + Cache string + Caption string + Duration int + Height int + ParseMode ParseMode + ThumbMIME string + ThumbURL string + Title string + URL string + Width int + type InlineButton struct + Data string + InlineQuery string + InlineQueryChat string + Login *Login + Text string + URL string + Unique string + func (t *InlineButton) CallbackUnique() string + func (t *InlineButton) MarshalJSON() ([]byte, error) + func (t *InlineButton) With(data string) *InlineButton + type InlineKeyboardMarkup struct + InlineKeyboard [][]InlineButton + type InputContactMessageContent struct + FirstName string + LastName string + PhoneNumber string + func (input *InputContactMessageContent) IsInputMessageContent() bool + type InputLocationMessageContent struct + Lat float32 + Lng float32 + func (input *InputLocationMessageContent) IsInputMessageContent() bool + type InputMedia interface + MediaFile func() *File + type InputMessageContent interface + IsInputMessageContent func() bool + type InputTextMessageContent struct + DisablePreview bool + ParseMode string + Text string + func (input *InputTextMessageContent) IsInputMessageContent() bool + type InputVenueMessageContent struct + Address string + FoursquareID string + Lat float32 + Lng float32 + Title string + func (input *InputVenueMessageContent) IsInputMessageContent() bool + type Invoice struct + Currency string + Data string + Description string + Flexible bool + NeedEmail bool + NeedName bool + NeedPhoneNumber bool + NeedShippingAddress bool + Payload string + Photo *Photo + PhotoSize int + Prices []Price + SendEmail bool + SendPhoneNumber bool + Start string + Title string + Token string + Total int + func (i *Invoice) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, error) + type Location struct + Lat float32 + LivePeriod int + Lng float32 + func (x *Location) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, error) + type LocationResult struct + ThumbURL string + Title string + type Login struct + Text string + URL string + Username string + WriteAccess bool + type LongPoller struct + AllowedUpdates []string + LastUpdateID int + Limit int + Timeout time.Duration + func (p *LongPoller) Poll(b *Bot, dest chan Update, stop chan struct{}) + type MaskFeature string + const FeatureChin + const FeatureEyes + const FeatureForehead + const FeatureMouth + type MaskPosition struct + Feature MaskFeature + Scale float32 + XShift float32 + YShift float32 + type MemberStatus string + const Administrator + const Creator + const Kicked + const Left + const Member + const Restricted + type Message struct + AlbumID string + Animation *Animation + Audio *Audio + Caption string + CaptionEntities []MessageEntity + ChannelCreated bool + Chat *Chat + ConnectedWebsite string + Contact *Contact + Dice *Dice + Document *Document + Entities []MessageEntity + GroupCreated bool + GroupPhotoDeleted bool + ID int + InlineID string + Invoice *Invoice + LastEdit int64 + Location *Location + MigrateFrom int64 + MigrateTo int64 + NewGroupPhoto *Photo + NewGroupTitle string + OriginalChat *Chat + OriginalMessageID int + OriginalSender *User + OriginalSenderName string + OriginalSignature string + OriginalUnixtime int + Payload string + Payment *Payment + Photo *Photo + PinnedMessage *Message + Poll *Poll + ReplyMarkup InlineKeyboardMarkup + ReplyTo *Message + Sender *User + Signature string + Sticker *Sticker + SuperGroupCreated bool + Text string + Unixtime int64 + UserJoined *User + UserLeft *User + UsersJoined []User + Venue *Venue + Via *User + Video *Video + VideoNote *VideoNote + Voice *Voice + func (m *Message) FromChannel() bool + func (m *Message) FromGroup() bool + func (m *Message) IsForwarded() bool + func (m *Message) IsReply() bool + func (m *Message) IsService() bool + func (m *Message) LastEdited() time.Time + func (m *Message) MessageSig() (string, int64) + func (m *Message) Private() bool + func (m *Message) Time() time.Time + type MessageEntity struct + Language string + Length int + Offset int + Type EntityType + URL string + User *User + type MiddlewarePoller struct + Capacity int + Filter func(*Update) bool + Poller Poller + func NewMiddlewarePoller(original Poller, filter func(*Update) bool) *MiddlewarePoller + func (p *MiddlewarePoller) Poll(b *Bot, dest chan Update, stop chan struct{}) + type Mpeg4GifResult struct + Cache string + Caption string + Duration int + Height int + ParseMode ParseMode + ThumbMIME string + ThumbURL string + Title string + URL string + Width int + type Option int + const ForceReply + const NoPreview + const OneTimeKeyboard + const Silent + type Order struct + Address ShippingAddress + Email string + Name string + PhoneNumber string + type ParseMode = string + const ModeDefault + const ModeHTML + const ModeMarkdown + const ModeMarkdownV2 + type Payment struct + Currency string + OptionID string + Order Order + Payload string + ProviderChargeID string + TelegramChargeID string + Total int + type Photo struct + Caption string + Height int + ParseMode ParseMode + Width int + func (p *Photo) MediaFile() *File + func (p *Photo) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, error) + func (p *Photo) UnmarshalJSON(jsonStr []byte) error + type PhotoResult struct + Cache string + Caption string + Description string + Height int + ParseMode ParseMode + ThumbURL string + Title string + URL string + Width int + type Poll struct + Anonymous bool + CloseUnixdate int64 + Closed bool + CorrectOption int + Entities []MessageEntity + Explanation string + ID string + MultipleAnswers bool + OpenPeriod int + Options []PollOption + ParseMode ParseMode + Question string + Type PollType + VoterCount int + func (p *Poll) AddOptions(opts ...string) + func (p *Poll) CloseDate() time.Time + func (p *Poll) IsQuiz() bool + func (p *Poll) IsRegular() bool + func (p *Poll) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, error) + type PollAnswer struct + Options []int + PollID string + User User + type PollOption struct + Text string + VoterCount int + type PollType string + const PollAny + const PollQuiz + const PollRegular + func (pt PollType) MarshalJSON() ([]byte, error) + type Poller interface + Poll func(b *Bot, updates chan Update, stop chan struct{}) + type PreCheckoutQuery struct + Currency string + ID string + OptionID string + Order Order + Payload string + Sender *User + Total int + type Price struct + Amount int + Label string + type Query struct + From User + ID string + Location *Location + Offset string + Text string + type QueryResponse struct + CacheTime int + IsPersonal bool + NextOffset string + QueryID string + Results Results + SwitchPMParameter string + SwitchPMText string + type Recipient interface + Recipient func() string + type ReplyButton struct + Contact bool + Location bool + Poll PollType + Text string + func (t *ReplyButton) CallbackUnique() string + type ReplyMarkup struct + ForceReply bool + InlineKeyboard [][]InlineButton + OneTimeKeyboard bool + ReplyKeyboard [][]ReplyButton + ReplyKeyboardRemove bool + ResizeReplyKeyboard bool + Selective bool + func (r *ReplyMarkup) Contact(text string) Btn + func (r *ReplyMarkup) Data(text, unique string, data ...string) Btn + func (r *ReplyMarkup) Inline(rows ...Row) + func (r *ReplyMarkup) Location(text string) Btn + func (r *ReplyMarkup) Login(text string, login *Login) Btn + func (r *ReplyMarkup) Poll(text string, poll PollType) Btn + func (r *ReplyMarkup) Query(text, query string) Btn + func (r *ReplyMarkup) QueryChat(text, query string) Btn + func (r *ReplyMarkup) Reply(rows ...Row) + func (r *ReplyMarkup) Row(many ...Btn) Row + func (r *ReplyMarkup) Text(text string) Btn + func (r *ReplyMarkup) URL(text, url string) Btn + type Result interface + Process func() + ResultID func() string + SetContent func(InputMessageContent) + SetReplyMarkup func([][]InlineButton) + SetResultID func(string) + type ResultBase struct + Content *InputMessageContent + ID string + ReplyMarkup *InlineKeyboardMarkup + Type string + func (r *ResultBase) Process() + func (r *ResultBase) ResultID() string + func (r *ResultBase) SetContent(content InputMessageContent) + func (r *ResultBase) SetReplyMarkup(keyboard [][]InlineButton) + func (r *ResultBase) SetResultID(id string) + type Results []Result + func (results Results) MarshalJSON() ([]byte, error) + type Rights struct + CanAddPreviews bool + CanBeEdited bool + CanChangeInfo bool + CanDeleteMessages bool + CanEditMessages bool + CanInviteUsers bool + CanPinMessages bool + CanPostMessages bool + CanPromoteMembers bool + CanRestrictMembers bool + CanSendMedia bool + CanSendMessages bool + CanSendOther bool + CanSendPolls bool + func AdminRights() Rights + func NoRestrictions() Rights + func NoRights() Rights + type Row []Btn + type SendOptions struct + DisableNotification bool + DisableWebPagePreview bool + ParseMode ParseMode + ReplyMarkup *ReplyMarkup + ReplyTo *Message + type Sendable interface + Send func(*Bot, Recipient, *SendOptions) (*Message, error) + type Settings struct + Client *http.Client + ParseMode ParseMode + Poller Poller + Reporter func(error) + Synchronous bool + Token string + URL string + Updates int + Verbose bool + type ShippingAddress struct + City string + CountryCode string + PostCode string + State string + StreetLine1 string + StreetLine2 string + type ShippingOption struct + ID string + Prices []Price + Title string + type ShippingQuery struct + Address ShippingAddress + ID string + Payload string + Sender *User + type Sticker struct + Animated bool + Emoji string + Height int + MaskPosition *MaskPosition + SetName string + Thumbnail *Photo + Width int + func (s *Sticker) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, error) + type StickerResult struct + Cache string + type StickerSet struct + Animated bool + ContainsMasks bool + Emojis string + MaskPosition *MaskPosition + Name string + PNG *File + Stickers []Sticker + TGS *File + Thumbnail *Photo + Title string + type StoredMessage struct + ChatID int64 + MessageID string + func (x StoredMessage) MessageSig() (string, int64) + type Update struct + Callback *Callback + ChannelPost *Message + ChosenInlineResult *ChosenInlineResult + EditedChannelPost *Message + EditedMessage *Message + ID int + Message *Message + Poll *Poll + PollAnswer *PollAnswer + PreCheckoutQuery *PreCheckoutQuery + Query *Query + ShippingQuery *ShippingQuery + type User struct + CanJoinGroups bool + CanReadMessages bool + FirstName string + ID int + IsBot bool + LanguageCode string + LastName string + SupportsInline bool + Username string + func (u *User) Recipient() string + type Venue struct + Address string + FoursquareID string + FoursquareType string + Location Location + Title string + func (v *Venue) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, error) + type VenueResult struct + Address string + FoursquareID string + ThumbHeight int + ThumbURL string + ThumbWidth int + Title string + type Video struct + Caption string + Duration int + FileName string + Height int + MIME string + ParseMode ParseMode + SupportsStreaming bool + Thumbnail *Photo + Width int + func (v *Video) MediaFile() *File + func (v *Video) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, error) + type VideoNote struct + Duration int + Length int + Thumbnail *Photo + func (v *VideoNote) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, error) + type VideoResult struct + Cache string + Caption string + Description string + Duration int + Height int + MIME string + ParseMode ParseMode + ThumbURL string + Title string + URL string + Width int + type Voice struct + Duration int + MIME string + func (v *Voice) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, error) + type VoiceResult struct + Cache string + Caption string + Duration int + ParseMode ParseMode + Title string + URL string + type Webhook struct + AllowedUpdates []string + Endpoint *WebhookEndpoint + ErrorMessage string + ErrorUnixtime int64 + HasCustomCert bool + Listen string + MaxConnections int + PendingUpdates int + TLS *WebhookTLS + func (h *Webhook) Poll(b *Bot, dest chan Update, stop chan struct{}) + func (h *Webhook) ServeHTTP(w http.ResponseWriter, r *http.Request) + type WebhookEndpoint struct + Cert string + PublicURL string + type WebhookTLS struct + Cert string + Key string