Versions in this module Expand all Collapse all v1 v1.0.0 Feb 9, 2025 Changes in this version + type APIResponse struct + Description string + ErrorCode int + Ok bool + Parameters *ResponseParameters + Result json.RawMessage + type Animation struct + Duration int + FileID string + FileName string + FileSize int + FileUniqueID string + Height int + MimeType string + Thumbnail *PhotoSize + Width int + type AnswerInlineQuery struct + Button *InlineKeyboardButton + ChacheTIme int + Endpoint string + InlineQueryId string + Is_personal bool + Next_offset string + Results []any + func (m *AnswerInlineQuery) Close() error + func (m *AnswerInlineQuery) Read(p []byte) (int, error) + type Audio struct + Duration int + FileID string + FileName string + FileSize int + FileUniqueID string + MimeType string + Performer string + Thumbnail *PhotoSize + Title string + type BotCommand struct + Command string + Description string + type BotCommandScope struct + ChatID int64 + Type string + UserID int64 + type CallbackGame struct + type CallbackQuery struct + ChatInstance string + Data string + From *User + GameShortName string + ID string + InlineMessageID string + Message *Message + type Chat struct + Bio string + CanSetStickerSet bool + Description string + FirstName string + HasPrivateForwards bool + HasProtectedContent bool + ID int64 + InviteLink string + LastName string + LinkedChatID int64 + Location *ChatLocation + MessageAutoDeleteTime int + Permissions *ChatPermissions + Photo *ChatPhoto + PinnedMessage *Message + SlowModeDelay int + StickerSetName 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 + type ChatInviteLink struct + CreatesJoinRequest bool + Creator User + ExpireDate int + InviteLink string + IsPrimary bool + IsRevoked bool + MemberLimit int + Name string + PendingJoinRequestCount int + type ChatJoinRequest struct + Bio string + Chat Chat + Date int + From User + InviteLink *ChatInviteLink + type ChatLocation struct + Address string + Location Location + type ChatMember struct + CanAddWebPagePreviews bool + CanBeEdited bool + CanChangeInfo bool + CanDeleteMessages bool + CanEditMessages bool + CanInviteUsers bool + CanManageChat bool + CanManageVoiceChats bool + CanPinMessages bool + CanPostMessages bool + CanPromoteMembers bool + CanRestrictMembers bool + CanSendMediaMessages bool + CanSendMessages bool + CanSendOtherMessages bool + CanSendPolls bool + CustomTitle string + IsAnonymous bool + IsMember bool + Status string + UntilDate int64 + User *User + func (chat ChatMember) HasLeft() bool + func (chat ChatMember) IsAdministrator() bool + func (chat ChatMember) IsCreator() bool + func (chat ChatMember) WasKicked() bool + type ChatMemberUpdated struct + Chat Chat + Date int + From User + InviteLink *ChatInviteLink + NewChatMember ChatMember + OldChatMember ChatMember + type ChatPermissions struct + CanAddWebPagePreviews bool + CanChangeInfo bool + CanInviteUsers bool + CanPinMessages bool + CanSendMediaMessages bool + CanSendMessages bool + CanSendOtherMessages bool + CanSendPolls bool + type ChatPhoto struct + BigFileID string + BigFileUniqueID string + SmallFileID string + SmallFileUniqueID string + type ChosenInlineResult struct + From *User + InlineMessageID string + Location *Location + Query string + ResultID string + type Contact struct + FirstName string + LastName string + PhoneNumber string + UserID int64 + VCard string + type CopyMessage struct + Chat_id int64 + Disable_notification bool + From_chat_id int64 + Message_id int64 + Message_thread_id int + Protect_content bool + func (m *CopyMessage) Close() error + func (m *CopyMessage) Read(p []byte) (int, error) + type Dice struct + Emoji string + Value int + type Document struct + FileID string + FileName string + FileSize int + FileUniqueID string + MimeType string + Thumbnail *PhotoSize + type Error struct + Code int + Message string + func (e Error) Error() string + type File struct + FileID string + FilePath string + FileSize int + FileUniqueID string + type ForceReply struct + ForceReply bool + InputFieldPlaceholder string + Selective bool + type ForwardMessage struct + Chat_id int64 + Disable_notification bool + From_chat_id int64 + Message_id int64 + Message_thread_id int + Protect_content bool + func (m *ForwardMessage) Close() error + func (m *ForwardMessage) Read(p []byte) (int, error) + type Game struct + Animation Animation + Description string + Photo []PhotoSize + Text string + TextEntities []MessageEntity + Title string + type GameHighScore struct + Position int + Score int + User User + type InlineKeyboardButton struct + CallbackData *string + CallbackGame *CallbackGame + LoginURL *LoginURL + Pay bool + SwitchInlineQuery *string + SwitchInlineQueryCurrentChat *string + Text string + URL *string + type InlineKeyboardButtonv2 struct + CallbackData string + Text string + URL string + type InlineKeyboardMarkup struct + InlineKeyboard [][]InlineKeyboardButton + type InlineQuery struct + ChatType string + From *User + ID string + Location *Location + Offset string + Query string + type InlineQueryResultArticle struct + Description string + HideURL bool + ID string + InputMessageContent interface{} + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbURL string + ThumbWidth int + Title string + Type string + URL string + type InlineQueryResultAudio struct + Caption string + CaptionEntities []MessageEntity + Duration int + ID string + InputMessageContent interface{} + ParseMode string + Performer string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + URL string + type InlineQueryResultCachedAudio struct + AudioID string + Caption string + CaptionEntities []MessageEntity + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Type string + type InlineQueryResultCachedDocument struct + Caption string + CaptionEntities []MessageEntity + Description string + DocumentID string + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + type InlineQueryResultCachedGIF struct + Caption string + CaptionEntities []MessageEntity + GIFID string + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + type InlineQueryResultCachedMPEG4GIF struct + Caption string + CaptionEntities []MessageEntity + ID string + InputMessageContent interface{} + MPEG4FileID string + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + type InlineQueryResultCachedPhoto struct + Caption string + CaptionEntities []MessageEntity + Description string + ID string + InputMessageContent interface{} + ParseMode string + PhotoID string + ReplyMarkup any + Title string + Type string + type InlineQueryResultCachedSticker struct + ID string + InputMessageContent interface{} + ReplyMarkup *InlineKeyboardMarkup + StickerID string + Title string + Type string + type InlineQueryResultCachedVideo struct + Caption string + CaptionEntities []MessageEntity + Description string + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup any + Title string + Type string + VideoID string + type InlineQueryResultCachedVoice struct + Caption string + CaptionEntities []MessageEntity + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + VoiceID string + type InlineQueryResultContact struct + FirstName string + ID string + InputMessageContent interface{} + LastName string + PhoneNumber string + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbURL string + ThumbWidth int + Type string + VCard string + type InlineQueryResultDocument struct + Caption string + Description string + ID string + InputMessageContent interface{} + MimeType string + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbURL string + ThumbWidth int + Title string + Type string + URL string + type InlineQueryResultGIF struct + Caption string + CaptionEntities []MessageEntity + Duration int + Height int + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + ThumbURL string + Title string + Type string + URL string + Width int + type InlineQueryResultGame struct + GameShortName string + ID string + ReplyMarkup *InlineKeyboardMarkup + Type string + type InlineQueryResultLocation struct + Heading int + HorizontalAccuracy float64 + ID string + InputMessageContent interface{} + Latitude float64 + LivePeriod int + Longitude float64 + ProximityAlertRadius int + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbURL string + ThumbWidth int + Title string + Type string + type InlineQueryResultMPEG4GIF struct + Caption string + CaptionEntities []MessageEntity + Duration int + Height int + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + ThumbURL string + Title string + Type string + URL string + Width int + type InlineQueryResultPhoto struct + Caption string + CaptionEntities []MessageEntity + Description string + Height int + ID string + InputMessageContent interface{} + MimeType string + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + ThumbURL string + Title string + Type string + URL string + Width int + type InlineQueryResultVenue struct + Address string + FoursquareID string + FoursquareType string + GooglePlaceID string + GooglePlaceType string + ID string + InputMessageContent interface{} + Latitude float64 + Longitude float64 + ReplyMarkup *InlineKeyboardMarkup + ThumbHeight int + ThumbURL string + ThumbWidth int + Title string + Type string + 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 + type InlineQueryResultVoice struct + Caption string + CaptionEntities []MessageEntity + Duration int + ID string + InputMessageContent interface{} + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type string + URL string + type InputLocationMessageContent struct + Heading int + HorizontalAccuracy float64 + Latitude float64 + LivePeriod int + Longitude float64 + ProximityAlertRadius int + type InputTextMessageContent struct + DisableWebPagePreview bool + Entities []MessageEntity + ParseMode string + Text string + type InputVenueMessageContent struct + Address string + FoursquareID string + FoursquareType string + GooglePlaceID string + GooglePlaceType string + Latitude float64 + Longitude float64 + Title string + type KeyboardButton struct + RequestContact bool + RequestLocation bool + RequestPoll *KeyboardButtonPollType + Text string + type KeyboardButtonPollType struct + Type string + type Location struct + Heading int + HorizontalAccuracy float64 + Latitude float64 + LivePeriod int + Longitude float64 + ProximityAlertRadius int + 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 + ChannelChatCreated bool + Chat *Chat + ConnectedWebsite string + Contact *Contact + Date int + DeleteChatPhoto bool + Dice *Dice + Document *Document + EditDate int + Entities []MessageEntity + ForwardDate int + ForwardFrom *User + ForwardFromChat *Chat + ForwardFromMessageID int + ForwardSenderName string + ForwardSignature string + From *User + Game *Game + GroupChatCreated bool + HasProtectedContent bool + IsAutomaticForward bool + LeftChatMember *User + Location *Location + MediaGroupID string + MessageAutoDeleteTimerChanged *MessageAutoDeleteTimerChanged + MessageID int + MessageOrigin *MessageOrigin + MigrateFromChatID int64 + MigrateToChatID int64 + NewChatMembers []User + NewChatPhoto []PhotoSize + NewChatTitle string + Photo []PhotoSize + PinnedMessage *Message + Poll *Poll + ProximityAlertTriggered *ProximityAlertTriggered + ReplyMarkup *InlineKeyboardMarkup + ReplyToMessage *Message + SenderChat *Chat + Sticker *Sticker + SuperGroupChatCreated bool + Text string + Venue *Venue + ViaBot *User + Video *Video + VideoNote *VideoNote + Voice *Voice + VoiceChatEnded *VoiceChatEnded + VoiceChatParticipantsInvited *VoiceChatParticipantsInvited + VoiceChatScheduled *VoiceChatScheduled + VoiceChatStarted *VoiceChatStarted + func (m *Message) Command() string + func (m *Message) CommandArguments() string + func (m *Message) CommandWithAt() string + func (m *Message) IsCommand() bool + func (m *Message) IsForwaded() bool + func (m *Message) Time() time.Time + type MessageAutoDeleteTimerChanged struct + MessageAutoDeleteTime int + type MessageEntity struct + Language string + Length int + Offset int + Type string + URL string + User *User + func (e MessageEntity) IsBold() bool + func (e MessageEntity) IsCode() bool + func (e MessageEntity) IsCommand() bool + func (e MessageEntity) IsEmail() bool + func (e MessageEntity) IsHashtag() bool + func (e MessageEntity) IsItalic() bool + func (e MessageEntity) IsMention() bool + func (e MessageEntity) IsPre() bool + func (e MessageEntity) IsTextLink() bool + func (e MessageEntity) IsURL() bool + type MessageID struct + MessageID int + type MessageOrigin struct + Type string + type PhotoSize struct + FileID string + FileSize int + FileUniqueID string + Height int + Width int + type Poll struct + AllowsMultipleAnswers bool + CloseDate int + CorrectOptionID int + Explanation string + ExplanationEntities []MessageEntity + ID string + IsAnonymous bool + IsClosed bool + OpenPeriod int + Options []PollOption + Question string + TotalVoterCount int + Type string + type PollAnswer struct + OptionIDs []int + PollID string + User User + type PollOption struct + Text string + VoterCount int + type ProximityAlertTriggered struct + Distance int + Traveler User + Watcher User + type ReplyKeyboardMarkup struct + InputFieldPlaceholder string + Keyboard [][]KeyboardButton + OneTimeKeyboard bool + ResizeKeyboard bool + Selective bool + type ReplyKeyboardRemove struct + RemoveKeyboard bool + Selective bool + type ResponseParameters struct + MigrateToChatID int64 + RetryAfter int + type Sticker struct + Emoji string + FileID string + FileSize int + FileUniqueID string + Height int + IsAnimated bool + MaskPosition *MaskPosition + SetName string + Thumbnail *PhotoSize + Width int + type StickerSet struct + ContainsMasks bool + IsAnimated bool + Name string + Stickers []Sticker + Thumbnail *PhotoSize + Title string + type Update struct + CallbackQuery *CallbackQuery + ChannelPost *Message + ChatJoinRequest *ChatJoinRequest + ChatMember *ChatMemberUpdated + ChosenInlineResult *ChosenInlineResult + EditedChannelPost *Message + EditedMessage *Message + InlineQuery *InlineQuery + Message *Message + MyChatMember *ChatMemberUpdated + Poll *Poll + PollAnswer *PollAnswer + UpdateID int + func (u *Update) CallbackData() string + func (u *Update) FromChat() *Chat + func (u *Update) Info() string + func (u *Update) SentFrom() *User + type UpdatesChannel <-chan Update + func (ch UpdatesChannel) Clear() + type User struct + CanJoinGroups bool + CanReadAllGroupMessages bool + FirstName string + ID int64 + IsBot bool + LanguageCode string + LastName string + SupportsInlineQueries bool + UserName string + func (u *User) String() string + type UserProfilePhotos struct + Photos [][]PhotoSize + TotalCount int + type Venue struct + Address string + FoursquareID string + FoursquareType string + GooglePlaceID string + GooglePlaceType string + Location Location + Title string + type Video struct + Duration int + FileID string + FileName string + FileSize int + FileUniqueID string + Height int + MimeType string + Thumbnail *PhotoSize + Width int + type VideoNote struct + Duration int + FileID string + FileSize int + FileUniqueID string + Length int + Thumbnail *PhotoSize + type Voice struct + Duration int + FileID string + FileSize int + FileUniqueID string + MimeType string + type VoiceChatEnded struct + Duration int + type VoiceChatParticipantsInvited struct + Users []User + type VoiceChatScheduled struct + StartDate int + func (m *VoiceChatScheduled) Time() time.Time + type VoiceChatStarted struct + type WebhookConfig struct + AllowedUpdates []string + DropPendingUpdates bool + IPAddress string + MaxConnections int + URL *url.URL + type WebhookInfo struct + AllowedUpdates []string + HasCustomCertificate bool + IPAddress string + LastErrorDate int + LastErrorMessage string + MaxConnections int + PendingUpdateCount int + Secret_token string + URL string + func (info *WebhookInfo) Close() error + func (info *WebhookInfo) Read(p []byte) (int, error) + func (info WebhookInfo) IsSet() bool