Versions in this module Expand all Collapse all v0 v0.55.0 May 4, 2024 v0.54.0 Apr 4, 2024 Changes in this version + const ChatTypeChannel + const ChatTypeGroup + const ChatTypePrivate + const ChatTypeSupergroup + const EntityTypeBold + const EntityTypeBotCommand + const EntityTypeCode + const EntityTypeEmail + const EntityTypeHashtag + const EntityTypeItalic + const EntityTypeMention + const EntityTypePhoneNumber + const EntityTypePre + const EntityTypeStrikethrough + const EntityTypeTextLink + const EntityTypeTextMention + const EntityTypeURL + const EntityTypeUnderline + const EnvToken + const EnvWebhookURL + const ParseModeHTML + const ParseModeMarkdownV2 + const UpdateTypeCallbackQuery + const UpdateTypeChannelPost + const UpdateTypeChosenInlineResult + const UpdateTypeEditedChannelPost + const UpdateTypeEditedMessage + const UpdateTypeInlineQuery + const UpdateTypeMessage + const UpdateTypePoll + const UpdateTypePollAnswer + const UpdateTypePreCheckoutQuery + const UpdateTypeShippingQuery + type Animation Video + type Audio struct + Duration int + Performer string + Title string + type Bot struct + func New(opts Options) (bot *Bot, err error) + func (bot *Bot) DeleteWebhook() (err error) + func (bot *Bot) GetMe() (user *User, err error) + func (bot *Bot) GetMyCommands() (cmds []Command, err error) + func (bot *Bot) GetWebhookInfo() (webhookInfo *WebhookInfo, err error) + func (bot *Bot) SendMessage(parent *Message, parseMode, text string) (msg *Message, err error) + func (bot *Bot) SetMyCommands(cmds []Command) (err error) + func (bot *Bot) Start() (err error) + func (bot *Bot) Stop() (err error) + type CallbackGame struct + type CallbackQuery struct + ChatInstance string + Data string + From *User + GameShortName string + ID string + InlineMessageID string + Message *Message + type Chat struct + CanSetStickerSet bool + Description string + FirstName string + ID int64 + InviteLink string + LastName string + Permissions *ChatPermissions + Photo *ChatPhoto + PinnedMesage *Message + SlowModeDelay int + StickerSetName string + Title string + Type string + Username string + type ChatPermissions struct + CanAddWebPagePreviews bool + CanChangeInfo bool + CanInviteUsers bool + CanPinMessages bool + CanSendMediaMessages bool + CanSendMessages bool + CanSendOtherMessages bool + CanSendPolls bool + type ChatPhoto struct + BigFileID string + BigFileUniqueID string + SmallFileID string + SmallFileUniqueID string + type ChosenInlineResult struct + From *User + InlineMessageID string + Location *Location + Query string + ResultID string + type Command struct + Command string + Description string + Handler UpdateHandler + type Contact struct + FirstName string + LastName string + PhoneNumber string + UserID int64 + VCard string + type Dice struct + Value int + type Document struct + FileID string + FileName string + FileSize int + FileUniqueID string + MimeType string + Thumb *PhotoSize + type EncryptedCredentials struct + Data string + Hash string + Secret string + type EncryptedPassportElement struct + Data string + Email string + Files []PassportFile + FrontSide *PassportFile + PhoneNumber string + ReverseSide *PassportFile + Selfie *PassportFile + Translation []PassportFile + Type string + type Game struct + Animation *Animation + Description string + Photo []PhotoSize + Text string + TextEntities []MessageEntity + Title string + type InlineKeyboardButton struct + CallbackData string + CallbackGame *CallbackGame + LoginURL *LoginURL + Pay bool + SwitchInlineQuery string + SwitchInlineQueryCurrentChat string + Text string + URL string + type InlineKeyboardMarkup struct + InlineKeyboard [][]InlineKeyboardButton + type InlineQuery struct + From *User + ID string + Location *Location + Offset string + Query string + type Invoice struct + Currency string + Description string + StartParameter string + Title string + TotalAmount int + type Location struct + Latitude float64 + Longitude float64 + type LoginURL struct + BotUsername string + ForwardText string + RequestWriteAccess bool + URL string + type MaskPosition struct + Point string + Scale float64 + XShift float64 + YShift float64 + type Message struct + Animation *Animation + Audio *Audio + AuthorSignature string + Caption string + CaptionEntities []MessageEntity + Chat *Chat + Command string + CommandArgs string + ConnectedWebsite string + Contact *Contact + Date int + Dice *Dice + Document *Document + EditDate int + Entities []MessageEntity + From *User + Game *Game + ID int + Invoice *Invoice + IsChannelChatCreated bool + IsChatPhotoDeleted bool + IsGroupChatCreated bool + IsSupergroupChatCreated bool + LeftMembers []*User + Location *Location + MediaGroupID string + MigrateFromChatID int64 + MigrateToChatID int64 + NewChatPhoto []PhotoSize + NewChatTitle string + NewMembers []*User + PassportData *PassportData + Photo []PhotoSize + PinnedMessage *Message + Poll *Poll + ReplyMarkup *InlineKeyboardMarkup + ReplyTo *Message + Sticker *Sticker + SuccessfulPayment *SuccessfulPayment + Text string + Venue *Venue + Video *Video + VideoNote *VideoNote + Voice *Voice + type MessageEntity struct + Language string + Length int + Offset int + Type string + URL string + User *User + type MessageForward struct + ForwardChat *Chat + ForwardDate int64 + ForwardFrom *User + ForwardID int64 + ForwardSenderName string + ForwardSignature string + type Options struct + HandleUpdate UpdateHandler + Token string + Webhook *Webhook + type OrderInfo struct + Email string + Name string + PhoneNumber string + ShippingAddress *ShippingAddress + type PassportData struct + Credentials EncryptedCredentials + type PassportFile struct + FileDate int + FileID string + FileSize int + FileUniqueID string + type PhotoSize struct + FileID string + FileSize int + FileUniqueID string + Height int + Width int + type Poll struct + AllowsMultipleAnswers bool + CorrectOptionID int + ID string + IsAnonymous bool + IsClosed bool + Options []PollOption + Question string + TotalVoterCount int + Type string + type PollAnswer struct + OptionIDs []int + PollID string + User *User + type PollOption struct + Text string + VoterCount int + type PreCheckoutQuery struct + Currency string + From *User + ID string + InvoicePayload string + OrderInfo *OrderInfo + ShippingOptionID string + TotalAmount int + type ShippingAddress struct + City string + CountryCode string + PostCode string + State string + StreetLine1 string + StreetLine2 string + type ShippingQuery struct + From *User + ID string + InvoicePayload string + ShippingAddress *ShippingAddress + type Sticker struct + Emoji string + Height int + IsAnimated bool + MaskPosition *MaskPosition + SetName string + Width int + type SuccessfulPayment struct + Currency string + InvoicePayload string + OrderInfo *OrderInfo + ProviderPaymentChargeID string + ShippingOptionID string + TelegramPaymentChargeID string + TotalAmount int + type Update struct + CallbackQuery *CallbackQuery + ChannelPost *Message + ChosenInlineResult *ChosenInlineResult + EditedChannelPost *Message + EditedMessage *Message + ID int64 + InlineQuery *InlineQuery + Message *Message + Poll *Poll + PollAnswer *PollAnswer + PreCheckoutQuery *PreCheckoutQuery + ShippingQuery *ShippingQuery + type UpdateHandler func(update Update) + type User struct + CanJoinGroups bool + CanReadAllGroupMessages bool + FirstName string + ID int + IsBot bool + LanguageCode string + LastName string + SupportsInlineQueries bool + Username string + type Venue struct + Address string + FoursquareID string + FoursquareType string + Location Location + Title string + type Video struct + Duration int + Height int + Width int + type VideoNote struct + Duration int + Length int + type Voice Audio + type Webhook struct + AllowedUpdates []string + Certificate []byte + ListenAddress string + ListenCertificate *tls.Certificate + MaxConnections int + URL string + type WebhookInfo struct + AllowedUpdates []string + HasCustomCertificate bool + LastErrorDate int + LastErrorMessage string + MaxConnections int + PendingUpdateCount int + URL string