Versions in this module Expand all Collapse all v0 v0.0.2 May 3, 2023 v0.0.1 May 3, 2023 Changes in this version + const APIEndpoint + const FileEndpoint + const ParseModeHTML + const ParseModeMarkdown + const Version + var ErrNoSuchChoice = errors.New("no such choice") + var ErrNoSuchConversation = errors.New("no such conversation") + func AskUser(user *User) string + type API struct + func New(token string) *API + func NewWithEndpointAndClient(token, endpoint, fileEndpoint string, cli *http.Client) *API + func (api *API) AddStickerToSet(ctx context.Context, args *AddStickerToSetConfig) error + func (api *API) AnswerCallbackQuery(ctx context.Context, args *AnswerCallbackQueryConfig) error + func (api *API) AnswerInlineQuery(ctx context.Context, args *AnswerInlineQueryConfig) error + func (api *API) AnswerPreCheckoutQuery(ctx context.Context, args *AnswerPreCheckoutQueryConfig) error + func (api *API) AnswerShippingQuery(ctx context.Context, args *AnswerShippingQueryConfig) error + func (api *API) AnswerWebAppQuery(ctx context.Context, result InlineQueryResult, webAppQueryID string) (*SentWebAppMessage, error) + func (api *API) ApproveChatJoinRequest(ctx context.Context, chatID IntStr, userID int64) error + func (api *API) BanChatMember(ctx context.Context, args *BanChatMemberConfig) error + func (api *API) BanChatSenderChat(ctx context.Context, chatID IntStr, senderChatID int64) error + func (api *API) Close(ctx context.Context) error + func (api *API) CloseForumTopic(ctx context.Context, chatID IntStr, messageThreadID int64) error + func (api *API) CloseGeneralForumTopic(ctx context.Context, chatID IntStr) error + func (api *API) CopyMessage(ctx context.Context, args *CopyMessageConfig) (*MessageID, error) + func (api *API) CreateChatInviteLink(ctx context.Context, args *CreateChatInviteLinkConfig) (*ChatInviteLink, error) + func (api *API) CreateForumTopic(ctx context.Context, args *CreateForumTopicConfig) (*ForumTopic, error) + func (api *API) CreateInvoiceLink(ctx context.Context, args *CreateInvoiceLinkConfig) (string, error) + func (api *API) CreateNewStickerSet(ctx context.Context, args *CreateNewStickerSetConfig) error + func (api *API) DeclineChatJoinRequest(ctx context.Context, chatID IntStr, userID int64) error + func (api *API) DeleteChatPhoto(ctx context.Context, chatID IntStr) error + func (api *API) DeleteChatStickerSet(ctx context.Context, chatID IntStr) error + func (api *API) DeleteForumTopic(ctx context.Context, chatID IntStr, messageThreadID int64) error + func (api *API) DeleteMessage(ctx context.Context, chatID IntStr, messageID int64) error + func (api *API) DeleteMyCommands(ctx context.Context, languageCode *string, scope *BotCommandScope) error + func (api *API) DeleteStickerFromSet(ctx context.Context, sticker string) error + func (api *API) DeleteStickerSet(ctx context.Context, name string) error + func (api *API) DeleteWebhook(ctx context.Context, dropPendingUpdates *bool) error + func (api *API) EditChatInviteLink(ctx context.Context, args *EditChatInviteLinkConfig) (*ChatInviteLink, error) + func (api *API) EditForumTopic(ctx context.Context, args *EditForumTopicConfig) error + func (api *API) EditGeneralForumTopic(ctx context.Context, chatID IntStr, name string) error + func (api *API) EditMessageCaption(ctx context.Context, args *EditMessageCaptionConfig) (*Message, error) + func (api *API) EditMessageLiveLocation(ctx context.Context, args *EditMessageLiveLocationConfig) (*Message, error) + func (api *API) EditMessageMedia(ctx context.Context, args *EditMessageMediaConfig) (*Message, error) + func (api *API) EditMessageReplyMarkup(ctx context.Context, args *EditMessageReplyMarkupConfig) (*Message, error) + func (api *API) EditMessageText(ctx context.Context, args *EditMessageTextConfig) (*Message, error) + func (api *API) ExportChatInviteLink(ctx context.Context, chatID IntStr) (string, error) + func (api *API) ForwardMessage(ctx context.Context, args *ForwardMessageConfig) (*Message, error) + func (api *API) GetChat(ctx context.Context, chatID IntStr) (*Chat, error) + func (api *API) GetChatAdministrators(ctx context.Context, chatID IntStr) ([]ChatMember, error) + func (api *API) GetChatMember(ctx context.Context, chatID IntStr, userID int64) (*ChatMember, error) + func (api *API) GetChatMemberCount(ctx context.Context, chatID IntStr) (int64, error) + func (api *API) GetChatMenuButton(ctx context.Context, chatID *int64) (*MenuButton, error) + func (api *API) GetCustomEmojiStickers(ctx context.Context, customEmojiIDs []string) ([]Sticker, error) + func (api *API) GetFile(ctx context.Context, fileID string) (*File, error) + func (api *API) GetFileDirectly(ctx context.Context, fileID string) (io.ReadCloser, error) + func (api *API) GetFileDirectlyConfig(ctx context.Context, fileConfig *File) (io.ReadCloser, error) + func (api *API) GetForumTopicIconStickers(ctx context.Context) ([]Sticker, error) + func (api *API) GetGameHighScores(ctx context.Context, args *GetGameHighScoresConfig) ([]GameHighScore, error) + func (api *API) GetMe(ctx context.Context) (*User, error) + func (api *API) GetMyCommands(ctx context.Context) ([]BotCommand, error) + func (api *API) GetMyDefaultAdministratorRights(ctx context.Context, forChannels *bool) (*ChatAdministratorRights, error) + func (api *API) GetMyDescription(ctx context.Context, languageCode *string) (*BotDescription, error) + func (api *API) GetMyName(ctx context.Context, languageCode *string) (*BotName, error) + func (api *API) GetMyShortDescription(ctx context.Context, languageCode *string) (*BotShortDescription, error) + func (api *API) GetStickerSet(ctx context.Context, name string) (*StickerSet, error) + func (api *API) GetUpdates(ctx context.Context, args *GetUpdatesConfig) ([]Update, error) + func (api *API) GetUserProfilePhotos(ctx context.Context, args *GetUserProfilePhotosConfig) (*UserProfilePhotos, error) + func (api *API) GetWebhookInfo(ctx context.Context) (*WebhookInfo, error) + func (api *API) HideGeneralForumTopic(ctx context.Context, chatID IntStr) error + func (api *API) LeaveChat(ctx context.Context, chatID IntStr) error + func (api *API) LogOut(ctx context.Context) error + func (api *API) MakeRequest(ctx context.Context, method string, data interface{}) (*Response, error) + func (api *API) PinChatMessage(ctx context.Context, args *PinChatMessageConfig) error + func (api *API) PromoteChatMember(ctx context.Context, args *PromoteChatMemberConfig) error + func (api *API) ReopenForumTopic(ctx context.Context, chatID IntStr, messageThreadID int64) error + func (api *API) ReopenGeneralForumTopic(ctx context.Context, chatID IntStr) error + func (api *API) RestrictChatMember(ctx context.Context, args *RestrictChatMemberConfig) error + func (api *API) RevokeChatInviteLink(ctx context.Context, chatID IntStr, inviteLink string) (*ChatInviteLink, error) + func (api *API) SendAnimation(ctx context.Context, args *SendAnimationConfig) (*Message, error) + func (api *API) SendAudio(ctx context.Context, args *SendAudioConfig) (*Message, error) + func (api *API) SendChatAction(ctx context.Context, args *SendChatActionConfig) error + func (api *API) SendContact(ctx context.Context, args *SendContactConfig) (*Message, error) + func (api *API) SendDice(ctx context.Context, args *SendDiceConfig) (*Message, error) + func (api *API) SendDocument(ctx context.Context, args *SendDocumentConfig) (*Message, error) + func (api *API) SendGame(ctx context.Context, args *SendGameConfig) (*Message, error) + func (api *API) SendInvoice(ctx context.Context, args *SendInvoiceConfig) (*Message, error) + func (api *API) SendLocation(ctx context.Context, args *SendLocationConfig) (*Message, error) + func (api *API) SendMediaGroup(ctx context.Context, args *SendMediaGroupConfig) ([]Message, error) + func (api *API) SendMessage(ctx context.Context, args *SendMessageConfig) (*Message, error) + func (api *API) SendPhoto(ctx context.Context, args *SendPhotoConfig) (*Message, error) + func (api *API) SendPoll(ctx context.Context, args *SendPollConfig) (*Message, error) + func (api *API) SendSticker(ctx context.Context, args *SendStickerConfig) (*Message, error) + func (api *API) SendVenue(ctx context.Context, args *SendVenueConfig) (*Message, error) + func (api *API) SendVideo(ctx context.Context, args *SendVideoConfig) (*Message, error) + func (api *API) SendVideoNote(ctx context.Context, args *SendVideoNoteConfig) (*Message, error) + func (api *API) SendVoice(ctx context.Context, args *SendVoiceConfig) (*Message, error) + func (api *API) SetChatAdministratorCustomTitle(ctx context.Context, args *SetChatAdministratorCustomTitleConfig) error + func (api *API) SetChatDescription(ctx context.Context, chatID IntStr, description *string) error + func (api *API) SetChatMenuButton(ctx context.Context, chatID *int64, menuButton *MenuButton) error + func (api *API) SetChatPermissions(ctx context.Context, args *SetChatPermissionsConfig) error + func (api *API) SetChatPhoto(ctx context.Context, chatID IntStr, photo InputFile) error + func (api *API) SetChatStickerSet(ctx context.Context, chatID IntStr, stickerSetName string) error + func (api *API) SetChatTitle(ctx context.Context, chatID IntStr, title string) error + func (api *API) SetCustomEmojiStickerSetThumbnail(ctx context.Context, customEmojiID *string, name string) error + func (api *API) SetGameScore(ctx context.Context, args *SetGameScoreConfig) (*Message, error) + func (api *API) SetMyCommands(ctx context.Context, args *SetMyCommandsConfig) error + func (api *API) SetMyDefaultAdministratorRights(ctx context.Context, forChannels *bool, rights *ChatAdministratorRights) error + func (api *API) SetMyDescription(ctx context.Context, description *string, languageCode *string) error + func (api *API) SetMyName(ctx context.Context, languageCode *string, name *string) error + func (api *API) SetMyShortDescription(ctx context.Context, languageCode *string, shortDescription *string) error + func (api *API) SetPassportDataErrors(ctx context.Context, errors []PassportElementError, userID int64) error + func (api *API) SetStickerEmojiList(ctx context.Context, emojiList []string, sticker string) error + func (api *API) SetStickerKeywords(ctx context.Context, keywords []string, sticker string) error + func (api *API) SetStickerMaskPosition(ctx context.Context, maskPosition *MaskPosition, sticker string) error + func (api *API) SetStickerPositionInSet(ctx context.Context, position int64, sticker string) error + func (api *API) SetStickerSetThumbnail(ctx context.Context, args *SetStickerSetThumbnailConfig) error + func (api *API) SetStickerSetTitle(ctx context.Context, name string, title string) error + func (api *API) SetWebhook(ctx context.Context, args *SetWebhookConfig) error + func (api *API) StopMessageLiveLocation(ctx context.Context, args *StopMessageLiveLocationConfig) (*Message, error) + func (api *API) StopPoll(ctx context.Context, args *StopPollConfig) (*Poll, error) + func (api *API) UnbanChatMember(ctx context.Context, args *UnbanChatMemberConfig) error + func (api *API) UnbanChatSenderChat(ctx context.Context, chatID IntStr, senderChatID int64) error + func (api *API) UnhideGeneralForumTopic(ctx context.Context, chatID IntStr) error + func (api *API) UnpinAllChatMessages(ctx context.Context, chatID IntStr) error + func (api *API) UnpinAllForumTopicMessages(ctx context.Context, chatID IntStr, messageThreadID int64) error + func (api *API) UnpinChatMessage(ctx context.Context, chatID IntStr, messageID *int64) error + func (api *API) UploadFile(ctx context.Context, values url.Values, method string, filetype string, ...) (*Response, error) + type AcceptFunc func(*Update) bool + type AddStickerToSetConfig struct + Name string + Sticker InputSticker + UserID int64 + type Animation struct + Duration int64 + FileID string + FileName *string + FileSize *int64 + FileUniqueID string + Height int64 + MimeType *string + Thumbnail *PhotoSize + Width int64 + func (t *Animation) GetDuration() int64 + func (t *Animation) GetFileID() string + func (t *Animation) GetFileName() string + func (t *Animation) GetFileSize() int64 + func (t *Animation) GetFileUniqueID() string + func (t *Animation) GetHeight() int64 + func (t *Animation) GetMimeType() string + func (t *Animation) GetThumbnail() *PhotoSize + func (t *Animation) GetWidth() int64 + type AnswerCallbackQueryConfig struct + CacheTime int64 + CallbackQueryID string + ShowAlert bool + Text string + URL string + type AnswerInlineQueryConfig struct + Button *InlineQueryResultsButton + CacheTime int64 + InlineQueryID string + IsPersonal bool + NextOffset string + Results []InlineQueryResult + type AnswerPreCheckoutQueryConfig struct + ErrorMessage string + Ok bool + PreCheckoutQueryID string + type AnswerShippingQueryConfig struct + ErrorMessage string + Ok bool + ShippingOptions []ShippingOption + ShippingQueryID string + type Audio struct + Duration int64 + FileID string + FileName *string + FileSize *int64 + FileUniqueID string + MimeType *string + Performer *string + Thumbnail *PhotoSize + Title *string + func (t *Audio) GetDuration() int64 + func (t *Audio) GetFileID() string + func (t *Audio) GetFileName() string + func (t *Audio) GetFileSize() int64 + func (t *Audio) GetFileUniqueID() string + func (t *Audio) GetMimeType() string + func (t *Audio) GetPerformer() string + func (t *Audio) GetThumbnail() *PhotoSize + func (t *Audio) GetTitle() string + type BanChatMemberConfig struct + ChatID IntStr + RevokeMessages bool + UntilDate int64 + UserID int64 + type BotCommand struct + Command string + Description string + func (t *BotCommand) GetCommand() string + func (t *BotCommand) GetDescription() string + type BotCommandScope struct + Type BotType + func (t *BotCommandScope) GetType() *BotType + type BotCommandScopeAllChatAdministrators struct + Type BotType + func (t *BotCommandScopeAllChatAdministrators) GetType() *BotType + type BotCommandScopeAllGroupChats struct + Type BotType + func (t *BotCommandScopeAllGroupChats) GetType() *BotType + type BotCommandScopeAllPrivateChats struct + Type BotType + func (t *BotCommandScopeAllPrivateChats) GetType() *BotType + type BotCommandScopeChat struct + ChatID IntStr + Type BotType + func (t *BotCommandScopeChat) GetChatID() IntStr + func (t *BotCommandScopeChat) GetType() *BotType + type BotCommandScopeChatAdministrators struct + ChatID IntStr + Type BotType + func (t *BotCommandScopeChatAdministrators) GetChatID() IntStr + func (t *BotCommandScopeChatAdministrators) GetType() *BotType + type BotCommandScopeChatMember struct + ChatID IntStr + Type BotType + UserID int64 + func (t *BotCommandScopeChatMember) GetChatID() IntStr + func (t *BotCommandScopeChatMember) GetType() *BotType + func (t *BotCommandScopeChatMember) GetUserID() int64 + type BotCommandScopeDefault struct + Type BotType + func (t *BotCommandScopeDefault) GetType() *BotType + type BotDescription struct + Description string + func (t *BotDescription) GetDescription() string + type BotName struct + Name string + func (t *BotName) GetName() string + type BotShortDescription struct + ShortDescription string + func (t *BotShortDescription) GetShortDescription() string + type BotType int + func (enum *BotType) UnmarshalText(src []byte) error + func (enum BotType) MarshalText() ([]byte, error) + func (enum BotType) String() string + type CallTree struct + func NewCallTree(defaultHandler HandlerFunc) *CallTree + func (c *CallTree) HandleUpdate(ctx context.Context, update *Update) + func (c *CallTree) NewChild(accept AcceptFunc, handler HandlerFunc) *CallTree + type CallbackGame struct + ChatID *int64 + DisableEditMessage *bool + Force *bool + InlineMessageID *string + MessageID *int64 + Score int64 + UserID int64 + func (t *CallbackGame) GetChatID() int64 + func (t *CallbackGame) GetDisableEditMessage() bool + func (t *CallbackGame) GetForce() bool + func (t *CallbackGame) GetInlineMessageID() string + func (t *CallbackGame) GetMessageID() int64 + func (t *CallbackGame) GetScore() int64 + func (t *CallbackGame) GetUserID() int64 + type CallbackQuery struct + ChatInstance string + Data *string + From User + GameShortName *string + ID string + InlineMessageID *string + Message *Message + func (t *CallbackQuery) GetChatInstance() string + func (t *CallbackQuery) GetData() string + func (t *CallbackQuery) GetFrom() *User + func (t *CallbackQuery) GetGameShortName() string + func (t *CallbackQuery) GetID() string + func (t *CallbackQuery) GetInlineMessageID() string + func (t *CallbackQuery) GetMessage() *Message + type Chat struct + ActiveUsernames []string + Bio *string + CanSetStickerSet *True + Description *string + EmojiStatusCustomEmojiID *string + FirstName *string + HasAggressiveAntiSpamEnabled *True + HasHiddenMembers *True + HasPrivateForwards *True + HasProtectedContent *True + HasRestrictedVoiceAndVideoMessages *True + ID int64 + InviteLink *string + IsForum *True + JoinByRequest *True + JoinToSendMessages *True + LastName *string + LinkedChatID *int64 + Location *ChatLocation + MessageAutoDeleteTime *int64 + Permissions *ChatPermissions + Photo *ChatPhoto + PinnedMessage *Message + SlowModeDelay *int64 + StickerSetName *string + Title *string + Type ChatType + Username *string + func (t *Chat) GetBio() string + func (t *Chat) GetCanSetStickerSet() *True + func (t *Chat) GetDescription() string + func (t *Chat) GetEmojiStatusCustomEmojiID() string + func (t *Chat) GetFirstName() string + func (t *Chat) GetHasAggressiveAntiSpamEnabled() *True + func (t *Chat) GetHasHiddenMembers() *True + func (t *Chat) GetHasPrivateForwards() *True + func (t *Chat) GetHasProtectedContent() *True + func (t *Chat) GetHasRestrictedVoiceAndVideoMessages() *True + func (t *Chat) GetID() int64 + func (t *Chat) GetInviteLink() string + func (t *Chat) GetIsForum() *True + func (t *Chat) GetJoinByRequest() *True + func (t *Chat) GetJoinToSendMessages() *True + func (t *Chat) GetLastName() string + func (t *Chat) GetLinkedChatID() int64 + func (t *Chat) GetLocation() *ChatLocation + func (t *Chat) GetMessageAutoDeleteTime() int64 + func (t *Chat) GetPermissions() *ChatPermissions + func (t *Chat) GetPhoto() *ChatPhoto + func (t *Chat) GetPinnedMessage() *Message + func (t *Chat) GetSlowModeDelay() int64 + func (t *Chat) GetStickerSetName() string + func (t *Chat) GetTitle() string + func (t *Chat) GetType() *ChatType + func (t *Chat) GetUsername() string + type ChatAdministratorRights struct + CanChangeInfo bool + CanDeleteMessages bool + CanEditMessages *bool + CanInviteUsers bool + CanManageChat bool + CanManageTopics *bool + CanManageVideoChats bool + CanPinMessages *bool + CanPostMessages *bool + CanPromoteMembers bool + CanRestrictMembers bool + IsAnonymous bool + func (t *ChatAdministratorRights) GetCanChangeInfo() bool + func (t *ChatAdministratorRights) GetCanDeleteMessages() bool + func (t *ChatAdministratorRights) GetCanEditMessages() bool + func (t *ChatAdministratorRights) GetCanInviteUsers() bool + func (t *ChatAdministratorRights) GetCanManageChat() bool + func (t *ChatAdministratorRights) GetCanManageTopics() bool + func (t *ChatAdministratorRights) GetCanManageVideoChats() bool + func (t *ChatAdministratorRights) GetCanPinMessages() bool + func (t *ChatAdministratorRights) GetCanPostMessages() bool + func (t *ChatAdministratorRights) GetCanPromoteMembers() bool + func (t *ChatAdministratorRights) GetCanRestrictMembers() bool + func (t *ChatAdministratorRights) GetIsAnonymous() bool + type ChatInviteLink struct + CreatesJoinRequest bool + Creator User + ExpireDate *int64 + InviteLink string + IsPrimary bool + IsRevoked bool + MemberLimit *int64 + Name *string + PendingJoinRequestCount *int64 + func (t *ChatInviteLink) GetCreatesJoinRequest() bool + func (t *ChatInviteLink) GetCreator() *User + func (t *ChatInviteLink) GetExpireDate() int64 + func (t *ChatInviteLink) GetInviteLink() string + func (t *ChatInviteLink) GetIsPrimary() bool + func (t *ChatInviteLink) GetIsRevoked() bool + func (t *ChatInviteLink) GetMemberLimit() int64 + func (t *ChatInviteLink) GetName() string + func (t *ChatInviteLink) GetPendingJoinRequestCount() int64 + type ChatJoinRequest struct + Bio *string + Chat Chat + Date int64 + From User + InviteLink *ChatInviteLink + UserChatID int64 + func (t *ChatJoinRequest) GetBio() string + func (t *ChatJoinRequest) GetChat() *Chat + func (t *ChatJoinRequest) GetDate() int64 + func (t *ChatJoinRequest) GetFrom() *User + func (t *ChatJoinRequest) GetInviteLink() *ChatInviteLink + func (t *ChatJoinRequest) GetUserChatID() int64 + type ChatLocation struct + Address string + Location Location + func (t *ChatLocation) GetAddress() string + func (t *ChatLocation) GetLocation() *Location + type ChatMember struct + CustomTitle *string + IsAnonymous bool + Status string + User User + func (t *ChatMember) GetCustomTitle() string + func (t *ChatMember) GetIsAnonymous() bool + func (t *ChatMember) GetStatus() string + func (t *ChatMember) GetUser() *User + type ChatMemberAdministrator struct + CanBeEdited bool + CanChangeInfo bool + CanDeleteMessages bool + CanEditMessages *bool + CanInviteUsers bool + CanManageChat bool + CanManageTopics *bool + CanManageVideoChats bool + CanPinMessages *bool + CanPostMessages *bool + CanPromoteMembers bool + CanRestrictMembers bool + CustomTitle *string + IsAnonymous bool + Status string + User User + func (t *ChatMemberAdministrator) GetCanBeEdited() bool + func (t *ChatMemberAdministrator) GetCanChangeInfo() bool + func (t *ChatMemberAdministrator) GetCanDeleteMessages() bool + func (t *ChatMemberAdministrator) GetCanEditMessages() bool + func (t *ChatMemberAdministrator) GetCanInviteUsers() bool + func (t *ChatMemberAdministrator) GetCanManageChat() bool + func (t *ChatMemberAdministrator) GetCanManageTopics() bool + func (t *ChatMemberAdministrator) GetCanManageVideoChats() bool + func (t *ChatMemberAdministrator) GetCanPinMessages() bool + func (t *ChatMemberAdministrator) GetCanPostMessages() bool + func (t *ChatMemberAdministrator) GetCanPromoteMembers() bool + func (t *ChatMemberAdministrator) GetCanRestrictMembers() bool + func (t *ChatMemberAdministrator) GetCustomTitle() string + func (t *ChatMemberAdministrator) GetIsAnonymous() bool + func (t *ChatMemberAdministrator) GetStatus() string + func (t *ChatMemberAdministrator) GetUser() *User + type ChatMemberBanned struct + Status string + UntilDate int64 + User User + func (t *ChatMemberBanned) GetStatus() string + func (t *ChatMemberBanned) GetUntilDate() int64 + func (t *ChatMemberBanned) GetUser() *User + type ChatMemberLeft struct + Status string + User User + func (t *ChatMemberLeft) GetStatus() string + func (t *ChatMemberLeft) GetUser() *User + type ChatMemberMember struct + Status string + User User + func (t *ChatMemberMember) GetStatus() string + func (t *ChatMemberMember) GetUser() *User + type ChatMemberOwner struct + CustomTitle *string + IsAnonymous bool + Status string + User User + func (t *ChatMemberOwner) GetCustomTitle() string + func (t *ChatMemberOwner) GetIsAnonymous() bool + func (t *ChatMemberOwner) GetStatus() string + func (t *ChatMemberOwner) GetUser() *User + type ChatMemberRestricted struct + CanAddWebPagePreviews bool + CanChangeInfo bool + CanInviteUsers bool + CanManageTopics bool + CanPinMessages bool + CanSendAudios bool + CanSendDocuments bool + CanSendMessages bool + CanSendOtherMessages bool + CanSendPhotos bool + CanSendPolls bool + CanSendVideoNotes bool + CanSendVideos bool + CanSendVoiceNotes bool + IsMember bool + Status string + UntilDate int64 + User User + func (t *ChatMemberRestricted) GetCanAddWebPagePreviews() bool + func (t *ChatMemberRestricted) GetCanChangeInfo() bool + func (t *ChatMemberRestricted) GetCanInviteUsers() bool + func (t *ChatMemberRestricted) GetCanManageTopics() bool + func (t *ChatMemberRestricted) GetCanPinMessages() bool + func (t *ChatMemberRestricted) GetCanSendAudios() bool + func (t *ChatMemberRestricted) GetCanSendDocuments() bool + func (t *ChatMemberRestricted) GetCanSendMessages() bool + func (t *ChatMemberRestricted) GetCanSendOtherMessages() bool + func (t *ChatMemberRestricted) GetCanSendPhotos() bool + func (t *ChatMemberRestricted) GetCanSendPolls() bool + func (t *ChatMemberRestricted) GetCanSendVideoNotes() bool + func (t *ChatMemberRestricted) GetCanSendVideos() bool + func (t *ChatMemberRestricted) GetCanSendVoiceNotes() bool + func (t *ChatMemberRestricted) GetIsMember() bool + func (t *ChatMemberRestricted) GetStatus() string + func (t *ChatMemberRestricted) GetUntilDate() int64 + func (t *ChatMemberRestricted) GetUser() *User + type ChatMemberUpdated struct + Chat Chat + Date int64 + From User + InviteLink *ChatInviteLink + NewChatMember ChatMember + OldChatMember ChatMember + ViaChatFolderInviteLink *bool + func (t *ChatMemberUpdated) GetChat() *Chat + func (t *ChatMemberUpdated) GetDate() int64 + func (t *ChatMemberUpdated) GetFrom() *User + func (t *ChatMemberUpdated) GetInviteLink() *ChatInviteLink + func (t *ChatMemberUpdated) GetNewChatMember() *ChatMember + func (t *ChatMemberUpdated) GetOldChatMember() *ChatMember + func (t *ChatMemberUpdated) GetViaChatFolderInviteLink() bool + type ChatPermissions struct + CanAddWebPagePreviews *bool + CanChangeInfo *bool + CanInviteUsers *bool + CanManageTopics *bool + CanPinMessages *bool + CanSendAudios *bool + CanSendDocuments *bool + CanSendMessages *bool + CanSendOtherMessages *bool + CanSendPhotos *bool + CanSendPolls *bool + CanSendVideoNotes *bool + CanSendVideos *bool + CanSendVoiceNotes *bool + func (t *ChatPermissions) GetCanAddWebPagePreviews() bool + func (t *ChatPermissions) GetCanChangeInfo() bool + func (t *ChatPermissions) GetCanInviteUsers() bool + func (t *ChatPermissions) GetCanManageTopics() bool + func (t *ChatPermissions) GetCanPinMessages() bool + func (t *ChatPermissions) GetCanSendAudios() bool + func (t *ChatPermissions) GetCanSendDocuments() bool + func (t *ChatPermissions) GetCanSendMessages() bool + func (t *ChatPermissions) GetCanSendOtherMessages() bool + func (t *ChatPermissions) GetCanSendPhotos() bool + func (t *ChatPermissions) GetCanSendPolls() bool + func (t *ChatPermissions) GetCanSendVideoNotes() bool + func (t *ChatPermissions) GetCanSendVideos() bool + func (t *ChatPermissions) GetCanSendVoiceNotes() bool + type ChatPhoto struct + BigFileID string + BigFileUniqueID string + SmallFileID string + SmallFileUniqueID string + func (t *ChatPhoto) GetBigFileID() string + func (t *ChatPhoto) GetBigFileUniqueID() string + func (t *ChatPhoto) GetSmallFileID() string + func (t *ChatPhoto) GetSmallFileUniqueID() string + type ChatShared struct + ChatID int64 + RequestID int64 + func (t *ChatShared) GetChatID() int64 + func (t *ChatShared) GetRequestID() int64 + type ChatType int + const ChatTypeChannel + const ChatTypeGroup + const ChatTypePrivate + const ChatTypeSupergroup + func (enum *ChatType) UnmarshalText(src []byte) error + func (enum ChatType) MarshalText() ([]byte, error) + func (enum ChatType) String() string + type Choice struct + Accept func(*Message) bool + Apply func(context.Context, *Message) (ConversationState, error) + type ChosenInlineResult struct + From User + InlineMessageID *string + Location *Location + Query string + ResultID string + func (t *ChosenInlineResult) GetFrom() *User + func (t *ChosenInlineResult) GetInlineMessageID() string + func (t *ChosenInlineResult) GetLocation() *Location + func (t *ChosenInlineResult) GetQuery() string + func (t *ChosenInlineResult) GetResultID() string + type Contact struct + FirstName string + LastName *string + PhoneNumber string + UserID *int64 + Vcard *string + func (t *Contact) GetFirstName() string + func (t *Contact) GetLastName() string + func (t *Contact) GetPhoneNumber() string + func (t *Contact) GetUserID() int64 + func (t *Contact) GetVcard() string + type Conversation struct + func NewConversation(cache *ttlcache.Cache) *Conversation + func (c *Conversation) AddChoices(state ConversationState, choices ...Choice) + func (c *Conversation) AddUser(userID int64, state ConversationState) + func (c *Conversation) CheckUser(userID int64) bool + func (c *Conversation) GetUserState(userID int64) (ConversationState, bool) + func (c *Conversation) Handle(ctx context.Context, msg *Message) (ConversationState, error) + func (c *Conversation) RemoveUser(userID int64) + func (c *Conversation) Stop() + type ConversationState int + type CopyMessageConfig struct + AllowSendingWithoutReply bool + Caption string + CaptionEntities []MessageEntity + ChatID IntStr + DisableNotification bool + FromChatID IntStr + MessageID int64 + MessageThreadID int64 + ParseMode string + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID int64 + type CreateChatInviteLinkConfig struct + ChatID IntStr + CreatesJoinRequest bool + ExpireDate int64 + MemberLimit int64 + Name string + type CreateForumTopicConfig struct + ChatID IntStr + IconColor int64 + IconCustomEmojiID string + Name string + type CreateInvoiceLinkConfig struct + Currency string + Description string + IsFlexible bool + MaxTipAmount int64 + NeedEmail bool + NeedName bool + NeedPhoneNumber bool + NeedShippingAddress bool + Payload string + PhotoHeight int64 + PhotoSize int64 + PhotoURL string + PhotoWidth int64 + Prices []LabeledPrice + ProviderData string + ProviderToken string + SendEmailToProvider bool + SendPhoneNumberToProvider bool + SuggestedTipAmounts []int64 + Title string + type CreateNewStickerSetConfig struct + Name string + NeedsRepainting bool + StickerFormat string + StickerType string + Stickers []InputSticker + Title string + UserID int64 + type Dice struct + Emoji string + Value int64 + func (t *Dice) GetEmoji() string + func (t *Dice) GetValue() int64 + type Document struct + FileID string + FileName *string + FileSize *int64 + FileUniqueID string + MimeType *string + Thumbnail *PhotoSize + func (t *Document) GetFileID() string + func (t *Document) GetFileName() string + func (t *Document) GetFileSize() int64 + func (t *Document) GetFileUniqueID() string + func (t *Document) GetMimeType() string + func (t *Document) GetThumbnail() *PhotoSize + type EditChatInviteLinkConfig struct + ChatID IntStr + CreatesJoinRequest bool + ExpireDate int64 + InviteLink string + MemberLimit int64 + Name string + type EditForumTopicConfig struct + ChatID IntStr + IconCustomEmojiID string + MessageThreadID int64 + Name string + type EditMessageCaptionConfig struct + Caption string + CaptionEntities []MessageEntity + ChatID IntStr + InlineMessageID string + MessageID int64 + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + type EditMessageLiveLocationConfig struct + ChatID IntStr + Heading int64 + HorizontalAccuracy *float64 + InlineMessageID string + Latitude float64 + Longitude float64 + MessageID int64 + ProximityAlertRadius int64 + ReplyMarkup *InlineKeyboardMarkup + type EditMessageMediaConfig struct + ChatID IntStr + InlineMessageID string + Media InputMedia + MessageID int64 + ReplyMarkup *InlineKeyboardMarkup + type EditMessageReplyMarkupConfig struct + ChatID IntStr + InlineMessageID string + MessageID int64 + ReplyMarkup *InlineKeyboardMarkup + type EditMessageTextConfig struct + ChatID IntStr + DisableWebPagePreview bool + Entities []MessageEntity + InlineMessageID string + MessageID int64 + ParseMode string + ReplyMarkup *InlineKeyboardMarkup + Text string + type EncryptedCredentials struct + Data string + Hash string + Secret string + func (t *EncryptedCredentials) GetData() string + func (t *EncryptedCredentials) GetHash() string + func (t *EncryptedCredentials) GetSecret() string + type EncryptedPassportElement struct + Data *string + Email *string + Files []PassportFile + FrontSide *PassportFile + Hash string + PhoneNumber *string + ReverseSide *PassportFile + Selfie *PassportFile + Translation []PassportFile + Type EncryptedType + func (t *EncryptedPassportElement) GetData() string + func (t *EncryptedPassportElement) GetEmail() string + func (t *EncryptedPassportElement) GetFrontSide() *PassportFile + func (t *EncryptedPassportElement) GetHash() string + func (t *EncryptedPassportElement) GetPhoneNumber() string + func (t *EncryptedPassportElement) GetReverseSide() *PassportFile + func (t *EncryptedPassportElement) GetSelfie() *PassportFile + func (t *EncryptedPassportElement) GetType() *EncryptedType + type EncryptedType int + const EncryptedTypeAddress + const EncryptedTypeBankStatement + const EncryptedTypeDriverLicense + const EncryptedTypeEmail + const EncryptedTypeIDentityCard + const EncryptedTypeInternalPassport + const EncryptedTypePassport + const EncryptedTypePassportRegistration + const EncryptedTypePersonalDetails + const EncryptedTypePhoneNumber + const EncryptedTypeRentalAgreement + const EncryptedTypeTemporaryRegistration + const EncryptedTypeUtilityBill + func (enum *EncryptedType) UnmarshalText(src []byte) error + func (enum EncryptedType) MarshalText() ([]byte, error) + func (enum EncryptedType) String() string + type EntityType int + const EntityTypeBold + const EntityTypeBotCommand + const EntityTypeCashtag + const EntityTypeCode + const EntityTypeCustomEmoji + const EntityTypeEmail + const EntityTypeHashtag + const EntityTypeItalic + const EntityTypeMention + const EntityTypePhoneNumber + const EntityTypePre + const EntityTypeSpoiler + const EntityTypeStrikethrough + const EntityTypeTextLink + const EntityTypeTextMention + const EntityTypeURL + const EntityTypeUnderline + func (enum *EntityType) UnmarshalText(src []byte) error + func (enum EntityType) MarshalText() ([]byte, error) + func (enum EntityType) String() string + type ErrIncorrectEnum struct + Value string + func (e ErrIncorrectEnum) Error() string + type Error struct + Code int + Message string + func (e Error) Error() string + type ErrorCallback func(error) + type File struct + FileID string + FilePath *string + FileSize *int64 + FileUniqueID string + func (t *File) GetFileID() string + func (t *File) GetFilePath() string + func (t *File) GetFileSize() int64 + func (t *File) GetFileUniqueID() string + type FileID = string + type ForceReply struct + ForceReply True + InputFieldPlaceholder *string + Selective *bool + func (t *ForceReply) GetForceReply() *True + func (t *ForceReply) GetInputFieldPlaceholder() string + func (t *ForceReply) GetSelective() bool + type ForumTopic struct + IconColor int64 + IconCustomEmojiID *string + MessageThreadID int64 + Name string + func (t *ForumTopic) GetIconColor() int64 + func (t *ForumTopic) GetIconCustomEmojiID() string + func (t *ForumTopic) GetMessageThreadID() int64 + func (t *ForumTopic) GetName() string + type ForumTopicClosed struct + IconCustomEmojiID *string + Name *string + func (t *ForumTopicClosed) GetIconCustomEmojiID() string + func (t *ForumTopicClosed) GetName() string + type ForumTopicCreated struct + IconColor int64 + IconCustomEmojiID *string + Name string + func (t *ForumTopicCreated) GetIconColor() int64 + func (t *ForumTopicCreated) GetIconCustomEmojiID() string + func (t *ForumTopicCreated) GetName() string + type ForumTopicEdited struct + IconCustomEmojiID *string + Name *string + func (t *ForumTopicEdited) GetIconCustomEmojiID() string + func (t *ForumTopicEdited) GetName() string + type ForumTopicReopened struct + RequestID int64 + UserID int64 + func (t *ForumTopicReopened) GetRequestID() int64 + func (t *ForumTopicReopened) GetUserID() int64 + type ForwardMessageConfig struct + ChatID IntStr + DisableNotification bool + FromChatID IntStr + MessageID int64 + MessageThreadID int64 + ProtectContent bool + type Game struct + Animation *Animation + Description string + Photo []PhotoSize + Text *string + TextEntities []MessageEntity + Title string + func (t *Game) GetAnimation() *Animation + func (t *Game) GetDescription() string + func (t *Game) GetText() string + func (t *Game) GetTitle() string + type GameHighScore struct + Position int64 + Score int64 + User User + func (t *GameHighScore) GetPosition() int64 + func (t *GameHighScore) GetScore() int64 + func (t *GameHighScore) GetUser() *User + type Games struct + AllowSendingWithoutReply *bool + ChatID int64 + DisableNotification *bool + GameShortName string + MessageThreadID *int64 + ProtectContent *bool + ReplyMarkup *InlineKeyboardMarkup + ReplyToMessageID *int64 + func (t *Games) GetAllowSendingWithoutReply() bool + func (t *Games) GetChatID() int64 + func (t *Games) GetDisableNotification() bool + func (t *Games) GetGameShortName() string + func (t *Games) GetMessageThreadID() int64 + func (t *Games) GetProtectContent() bool + func (t *Games) GetReplyMarkup() *InlineKeyboardMarkup + func (t *Games) GetReplyToMessageID() int64 + type GeneralForumTopicHidden struct + RequestID int64 + UserID int64 + func (t *GeneralForumTopicHidden) GetRequestID() int64 + func (t *GeneralForumTopicHidden) GetUserID() int64 + type GeneralForumTopicUnhidden struct + RequestID int64 + UserID int64 + func (t *GeneralForumTopicUnhidden) GetRequestID() int64 + func (t *GeneralForumTopicUnhidden) GetUserID() int64 + type GetGameHighScoresConfig struct + ChatID int64 + InlineMessageID string + MessageID int64 + UserID int64 + type GetUpdatesConfig struct + AllowedUpdates []string + Limit int64 + Offset int64 + Timeout int64 + type GetUserProfilePhotosConfig struct + Limit int64 + Offset int64 + UserID int64 + type Handler interface + HandleUpdate func(context.Context, *Update) + type HandlerFunc func(context.Context, *Update) + type InlineKeyboardButton struct + CallbackData *string + CallbackGame *CallbackGame + LoginURL *LoginURL + Pay *bool + SwitchInlineQuery *string + SwitchInlineQueryChosenChat *SwitchInlineQueryChosenChat + SwitchInlineQueryCurrentChat *string + Text string + URL *string + WebApp *WebAppInfo + func (t *InlineKeyboardButton) GetCallbackData() string + func (t *InlineKeyboardButton) GetCallbackGame() *CallbackGame + func (t *InlineKeyboardButton) GetLoginURL() *LoginURL + func (t *InlineKeyboardButton) GetPay() bool + func (t *InlineKeyboardButton) GetSwitchInlineQuery() string + func (t *InlineKeyboardButton) GetSwitchInlineQueryChosenChat() *SwitchInlineQueryChosenChat + func (t *InlineKeyboardButton) GetSwitchInlineQueryCurrentChat() string + func (t *InlineKeyboardButton) GetText() string + func (t *InlineKeyboardButton) GetURL() string + func (t *InlineKeyboardButton) GetWebApp() *WebAppInfo + type InlineKeyboardMarkup struct + InlineKeyboard [][]InlineKeyboardButton + type InlineQuery struct + ChatType *string + From User + ID string + Location *Location + Offset string + Query string + func (t *InlineQuery) GetChatType() string + func (t *InlineQuery) GetFrom() *User + func (t *InlineQuery) GetID() string + func (t *InlineQuery) GetLocation() *Location + func (t *InlineQuery) GetOffset() string + func (t *InlineQuery) GetQuery() string + type InlineQueryResult struct + Description *string + HideURL *bool + ID string + InputMessageContent InputMessageContent + ReplyMarkup *InlineKeyboardMarkup + ThumbnailHeight *int64 + ThumbnailURL *string + ThumbnailWidth *int64 + Title string + Type InlineType + URL *string + func (t *InlineQueryResult) GetDescription() string + func (t *InlineQueryResult) GetHideURL() bool + func (t *InlineQueryResult) GetID() string + func (t *InlineQueryResult) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResult) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResult) GetThumbnailHeight() int64 + func (t *InlineQueryResult) GetThumbnailURL() string + func (t *InlineQueryResult) GetThumbnailWidth() int64 + func (t *InlineQueryResult) GetTitle() string + func (t *InlineQueryResult) GetType() *InlineType + func (t *InlineQueryResult) GetURL() string + type InlineQueryResultArticle struct + Description *string + HideURL *bool + ID string + InputMessageContent InputMessageContent + ReplyMarkup *InlineKeyboardMarkup + ThumbnailHeight *int64 + ThumbnailURL *string + ThumbnailWidth *int64 + Title string + Type InlineType + URL *string + func (t *InlineQueryResultArticle) GetDescription() string + func (t *InlineQueryResultArticle) GetHideURL() bool + func (t *InlineQueryResultArticle) GetID() string + func (t *InlineQueryResultArticle) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultArticle) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultArticle) GetThumbnailHeight() int64 + func (t *InlineQueryResultArticle) GetThumbnailURL() string + func (t *InlineQueryResultArticle) GetThumbnailWidth() int64 + func (t *InlineQueryResultArticle) GetTitle() string + func (t *InlineQueryResultArticle) GetType() *InlineType + func (t *InlineQueryResultArticle) GetURL() string + type InlineQueryResultAudio struct + AudioDuration *int64 + AudioURL string + Caption *string + CaptionEntities []MessageEntity + ID string + InputMessageContent *InputMessageContent + ParseMode *string + Performer *string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type InlineType + func (t *InlineQueryResultAudio) GetAudioDuration() int64 + func (t *InlineQueryResultAudio) GetAudioURL() string + func (t *InlineQueryResultAudio) GetCaption() string + func (t *InlineQueryResultAudio) GetID() string + func (t *InlineQueryResultAudio) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultAudio) GetParseMode() string + func (t *InlineQueryResultAudio) GetPerformer() string + func (t *InlineQueryResultAudio) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultAudio) GetTitle() string + func (t *InlineQueryResultAudio) GetType() *InlineType + type InlineQueryResultCachedAudio struct + AudioFileID string + Caption *string + CaptionEntities []MessageEntity + ID string + InputMessageContent *InputMessageContent + ParseMode *string + ReplyMarkup *InlineKeyboardMarkup + Type InlineType + func (t *InlineQueryResultCachedAudio) GetAudioFileID() string + func (t *InlineQueryResultCachedAudio) GetCaption() string + func (t *InlineQueryResultCachedAudio) GetID() string + func (t *InlineQueryResultCachedAudio) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultCachedAudio) GetParseMode() string + func (t *InlineQueryResultCachedAudio) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultCachedAudio) GetType() *InlineType + type InlineQueryResultCachedDocument struct + Caption *string + CaptionEntities []MessageEntity + Description *string + DocumentFileID string + ID string + InputMessageContent *InputMessageContent + ParseMode *string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type InlineType + func (t *InlineQueryResultCachedDocument) GetCaption() string + func (t *InlineQueryResultCachedDocument) GetDescription() string + func (t *InlineQueryResultCachedDocument) GetDocumentFileID() string + func (t *InlineQueryResultCachedDocument) GetID() string + func (t *InlineQueryResultCachedDocument) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultCachedDocument) GetParseMode() string + func (t *InlineQueryResultCachedDocument) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultCachedDocument) GetTitle() string + func (t *InlineQueryResultCachedDocument) GetType() *InlineType + type InlineQueryResultCachedGif struct + Caption *string + CaptionEntities []MessageEntity + GifFileID string + ID string + InputMessageContent *InputMessageContent + ParseMode *string + ReplyMarkup *InlineKeyboardMarkup + Title *string + Type InlineType + func (t *InlineQueryResultCachedGif) GetCaption() string + func (t *InlineQueryResultCachedGif) GetGifFileID() string + func (t *InlineQueryResultCachedGif) GetID() string + func (t *InlineQueryResultCachedGif) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultCachedGif) GetParseMode() string + func (t *InlineQueryResultCachedGif) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultCachedGif) GetTitle() string + func (t *InlineQueryResultCachedGif) GetType() *InlineType + type InlineQueryResultCachedMpeg4Gif struct + Caption *string + CaptionEntities []MessageEntity + ID string + InputMessageContent *InputMessageContent + Mpeg4FileID string + ParseMode *string + ReplyMarkup *InlineKeyboardMarkup + Title *string + Type InlineType + func (t *InlineQueryResultCachedMpeg4Gif) GetCaption() string + func (t *InlineQueryResultCachedMpeg4Gif) GetID() string + func (t *InlineQueryResultCachedMpeg4Gif) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultCachedMpeg4Gif) GetMpeg4FileID() string + func (t *InlineQueryResultCachedMpeg4Gif) GetParseMode() string + func (t *InlineQueryResultCachedMpeg4Gif) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultCachedMpeg4Gif) GetTitle() string + func (t *InlineQueryResultCachedMpeg4Gif) GetType() *InlineType + type InlineQueryResultCachedPhoto struct + Caption *string + CaptionEntities []MessageEntity + Description *string + ID string + InputMessageContent *InputMessageContent + ParseMode *string + PhotoFileID string + ReplyMarkup *InlineKeyboardMarkup + Title *string + Type InlineType + func (t *InlineQueryResultCachedPhoto) GetCaption() string + func (t *InlineQueryResultCachedPhoto) GetDescription() string + func (t *InlineQueryResultCachedPhoto) GetID() string + func (t *InlineQueryResultCachedPhoto) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultCachedPhoto) GetParseMode() string + func (t *InlineQueryResultCachedPhoto) GetPhotoFileID() string + func (t *InlineQueryResultCachedPhoto) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultCachedPhoto) GetTitle() string + func (t *InlineQueryResultCachedPhoto) GetType() *InlineType + type InlineQueryResultCachedSticker struct + ID string + InputMessageContent *InputMessageContent + ReplyMarkup *InlineKeyboardMarkup + StickerFileID string + Type InlineType + func (t *InlineQueryResultCachedSticker) GetID() string + func (t *InlineQueryResultCachedSticker) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultCachedSticker) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultCachedSticker) GetStickerFileID() string + func (t *InlineQueryResultCachedSticker) GetType() *InlineType + type InlineQueryResultCachedVideo struct + Caption *string + CaptionEntities []MessageEntity + Description *string + ID string + InputMessageContent *InputMessageContent + ParseMode *string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type InlineType + VideoFileID string + func (t *InlineQueryResultCachedVideo) GetCaption() string + func (t *InlineQueryResultCachedVideo) GetDescription() string + func (t *InlineQueryResultCachedVideo) GetID() string + func (t *InlineQueryResultCachedVideo) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultCachedVideo) GetParseMode() string + func (t *InlineQueryResultCachedVideo) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultCachedVideo) GetTitle() string + func (t *InlineQueryResultCachedVideo) GetType() *InlineType + func (t *InlineQueryResultCachedVideo) GetVideoFileID() string + type InlineQueryResultCachedVoice struct + Caption *string + CaptionEntities []MessageEntity + ID string + InputMessageContent *InputMessageContent + ParseMode *string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type InlineType + VoiceFileID string + func (t *InlineQueryResultCachedVoice) GetCaption() string + func (t *InlineQueryResultCachedVoice) GetID() string + func (t *InlineQueryResultCachedVoice) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultCachedVoice) GetParseMode() string + func (t *InlineQueryResultCachedVoice) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultCachedVoice) GetTitle() string + func (t *InlineQueryResultCachedVoice) GetType() *InlineType + func (t *InlineQueryResultCachedVoice) GetVoiceFileID() string + type InlineQueryResultContact struct + FirstName string + ID string + InputMessageContent *InputMessageContent + LastName *string + PhoneNumber string + ReplyMarkup *InlineKeyboardMarkup + ThumbnailHeight *int64 + ThumbnailURL *string + ThumbnailWidth *int64 + Type InlineType + Vcard *string + func (t *InlineQueryResultContact) GetFirstName() string + func (t *InlineQueryResultContact) GetID() string + func (t *InlineQueryResultContact) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultContact) GetLastName() string + func (t *InlineQueryResultContact) GetPhoneNumber() string + func (t *InlineQueryResultContact) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultContact) GetThumbnailHeight() int64 + func (t *InlineQueryResultContact) GetThumbnailURL() string + func (t *InlineQueryResultContact) GetThumbnailWidth() int64 + func (t *InlineQueryResultContact) GetType() *InlineType + func (t *InlineQueryResultContact) GetVcard() string + type InlineQueryResultDocument struct + Caption *string + CaptionEntities []MessageEntity + Description *string + DocumentURL string + ID string + InputMessageContent *InputMessageContent + MimeType string + ParseMode *string + ReplyMarkup *InlineKeyboardMarkup + ThumbnailHeight *int64 + ThumbnailURL *string + ThumbnailWidth *int64 + Title string + Type InlineType + func (t *InlineQueryResultDocument) GetCaption() string + func (t *InlineQueryResultDocument) GetDescription() string + func (t *InlineQueryResultDocument) GetDocumentURL() string + func (t *InlineQueryResultDocument) GetID() string + func (t *InlineQueryResultDocument) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultDocument) GetMimeType() string + func (t *InlineQueryResultDocument) GetParseMode() string + func (t *InlineQueryResultDocument) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultDocument) GetThumbnailHeight() int64 + func (t *InlineQueryResultDocument) GetThumbnailURL() string + func (t *InlineQueryResultDocument) GetThumbnailWidth() int64 + func (t *InlineQueryResultDocument) GetTitle() string + func (t *InlineQueryResultDocument) GetType() *InlineType + type InlineQueryResultGame struct + GameShortName string + ID string + ReplyMarkup *InlineKeyboardMarkup + Type InlineType + func (t *InlineQueryResultGame) GetGameShortName() string + func (t *InlineQueryResultGame) GetID() string + func (t *InlineQueryResultGame) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultGame) GetType() *InlineType + type InlineQueryResultGif struct + Caption *string + CaptionEntities []MessageEntity + GifDuration *int64 + GifHeight *int64 + GifURL string + GifWidth *int64 + ID string + InputMessageContent *InputMessageContent + ParseMode *string + ReplyMarkup *InlineKeyboardMarkup + ThumbnailMimeType *string + ThumbnailURL string + Title *string + Type InlineType + func (t *InlineQueryResultGif) GetCaption() string + func (t *InlineQueryResultGif) GetGifDuration() int64 + func (t *InlineQueryResultGif) GetGifHeight() int64 + func (t *InlineQueryResultGif) GetGifURL() string + func (t *InlineQueryResultGif) GetGifWidth() int64 + func (t *InlineQueryResultGif) GetID() string + func (t *InlineQueryResultGif) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultGif) GetParseMode() string + func (t *InlineQueryResultGif) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultGif) GetThumbnailMimeType() string + func (t *InlineQueryResultGif) GetThumbnailURL() string + func (t *InlineQueryResultGif) GetTitle() string + func (t *InlineQueryResultGif) GetType() *InlineType + type InlineQueryResultLocation struct + Heading *int64 + HorizontalAccuracy *float64 + ID string + InputMessageContent *InputMessageContent + Latitude float64 + LivePeriod *int64 + Longitude float64 + ProximityAlertRadius *int64 + ReplyMarkup *InlineKeyboardMarkup + ThumbnailHeight *int64 + ThumbnailURL *string + ThumbnailWidth *int64 + Title string + Type InlineType + func (t *InlineQueryResultLocation) GetHeading() int64 + func (t *InlineQueryResultLocation) GetHorizontalAccuracy() *float64 + func (t *InlineQueryResultLocation) GetID() string + func (t *InlineQueryResultLocation) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultLocation) GetLatitude() *float64 + func (t *InlineQueryResultLocation) GetLivePeriod() int64 + func (t *InlineQueryResultLocation) GetLongitude() *float64 + func (t *InlineQueryResultLocation) GetProximityAlertRadius() int64 + func (t *InlineQueryResultLocation) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultLocation) GetThumbnailHeight() int64 + func (t *InlineQueryResultLocation) GetThumbnailURL() string + func (t *InlineQueryResultLocation) GetThumbnailWidth() int64 + func (t *InlineQueryResultLocation) GetTitle() string + func (t *InlineQueryResultLocation) GetType() *InlineType + type InlineQueryResultMpeg4Gif struct + Caption *string + CaptionEntities []MessageEntity + ID string + InputMessageContent *InputMessageContent + Mpeg4Duration *int64 + Mpeg4Height *int64 + Mpeg4URL string + Mpeg4Width *int64 + ParseMode *string + ReplyMarkup *InlineKeyboardMarkup + ThumbnailMimeType *string + ThumbnailURL string + Title *string + Type InlineType + func (t *InlineQueryResultMpeg4Gif) GetCaption() string + func (t *InlineQueryResultMpeg4Gif) GetID() string + func (t *InlineQueryResultMpeg4Gif) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultMpeg4Gif) GetMpeg4Duration() int64 + func (t *InlineQueryResultMpeg4Gif) GetMpeg4Height() int64 + func (t *InlineQueryResultMpeg4Gif) GetMpeg4URL() string + func (t *InlineQueryResultMpeg4Gif) GetMpeg4Width() int64 + func (t *InlineQueryResultMpeg4Gif) GetParseMode() string + func (t *InlineQueryResultMpeg4Gif) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultMpeg4Gif) GetThumbnailMimeType() string + func (t *InlineQueryResultMpeg4Gif) GetThumbnailURL() string + func (t *InlineQueryResultMpeg4Gif) GetTitle() string + func (t *InlineQueryResultMpeg4Gif) GetType() *InlineType + type InlineQueryResultPhoto struct + Caption *string + CaptionEntities []MessageEntity + Description *string + ID string + InputMessageContent *InputMessageContent + ParseMode *string + PhotoHeight *int64 + PhotoURL string + PhotoWidth *int64 + ReplyMarkup *InlineKeyboardMarkup + ThumbnailURL string + Title *string + Type InlineType + func (t *InlineQueryResultPhoto) GetCaption() string + func (t *InlineQueryResultPhoto) GetDescription() string + func (t *InlineQueryResultPhoto) GetID() string + func (t *InlineQueryResultPhoto) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultPhoto) GetParseMode() string + func (t *InlineQueryResultPhoto) GetPhotoHeight() int64 + func (t *InlineQueryResultPhoto) GetPhotoURL() string + func (t *InlineQueryResultPhoto) GetPhotoWidth() int64 + func (t *InlineQueryResultPhoto) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultPhoto) GetThumbnailURL() string + func (t *InlineQueryResultPhoto) GetTitle() string + func (t *InlineQueryResultPhoto) GetType() *InlineType + type InlineQueryResultVenue struct + Address string + FoursquareID *string + FoursquareType *string + GooglePlaceID *string + GooglePlaceType *string + ID string + InputMessageContent *InputMessageContent + Latitude float64 + Longitude float64 + ReplyMarkup *InlineKeyboardMarkup + ThumbnailHeight *int64 + ThumbnailURL *string + ThumbnailWidth *int64 + Title string + Type InlineType + func (t *InlineQueryResultVenue) GetAddress() string + func (t *InlineQueryResultVenue) GetFoursquareID() string + func (t *InlineQueryResultVenue) GetFoursquareType() string + func (t *InlineQueryResultVenue) GetGooglePlaceID() string + func (t *InlineQueryResultVenue) GetGooglePlaceType() string + func (t *InlineQueryResultVenue) GetID() string + func (t *InlineQueryResultVenue) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultVenue) GetLatitude() *float64 + func (t *InlineQueryResultVenue) GetLongitude() *float64 + func (t *InlineQueryResultVenue) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultVenue) GetThumbnailHeight() int64 + func (t *InlineQueryResultVenue) GetThumbnailURL() string + func (t *InlineQueryResultVenue) GetThumbnailWidth() int64 + func (t *InlineQueryResultVenue) GetTitle() string + func (t *InlineQueryResultVenue) GetType() *InlineType + type InlineQueryResultVideo struct + Caption *string + CaptionEntities []MessageEntity + Description *string + ID string + InputMessageContent *InputMessageContent + MimeType string + ParseMode *string + ReplyMarkup *InlineKeyboardMarkup + ThumbnailURL string + Title string + Type InlineType + VideoDuration *int64 + VideoHeight *int64 + VideoURL string + VideoWidth *int64 + func (t *InlineQueryResultVideo) GetCaption() string + func (t *InlineQueryResultVideo) GetDescription() string + func (t *InlineQueryResultVideo) GetID() string + func (t *InlineQueryResultVideo) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultVideo) GetMimeType() string + func (t *InlineQueryResultVideo) GetParseMode() string + func (t *InlineQueryResultVideo) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultVideo) GetThumbnailURL() string + func (t *InlineQueryResultVideo) GetTitle() string + func (t *InlineQueryResultVideo) GetType() *InlineType + func (t *InlineQueryResultVideo) GetVideoDuration() int64 + func (t *InlineQueryResultVideo) GetVideoHeight() int64 + func (t *InlineQueryResultVideo) GetVideoURL() string + func (t *InlineQueryResultVideo) GetVideoWidth() int64 + type InlineQueryResultVoice struct + Caption *string + CaptionEntities []MessageEntity + ID string + InputMessageContent *InputMessageContent + ParseMode *string + ReplyMarkup *InlineKeyboardMarkup + Title string + Type InlineType + VoiceDuration *int64 + VoiceURL string + func (t *InlineQueryResultVoice) GetCaption() string + func (t *InlineQueryResultVoice) GetID() string + func (t *InlineQueryResultVoice) GetInputMessageContent() *InputMessageContent + func (t *InlineQueryResultVoice) GetParseMode() string + func (t *InlineQueryResultVoice) GetReplyMarkup() *InlineKeyboardMarkup + func (t *InlineQueryResultVoice) GetTitle() string + func (t *InlineQueryResultVoice) GetType() *InlineType + func (t *InlineQueryResultVoice) GetVoiceDuration() int64 + func (t *InlineQueryResultVoice) GetVoiceURL() string + type InlineQueryResultsButton struct + StartParameter *string + Text string + WebApp *WebAppInfo + func (t *InlineQueryResultsButton) GetStartParameter() string + func (t *InlineQueryResultsButton) GetText() string + func (t *InlineQueryResultsButton) GetWebApp() *WebAppInfo + type InlineType int + const InlineTypeArticle + const InlineTypeAudio + const InlineTypeContact + const InlineTypeDocument + const InlineTypeGame + const InlineTypeGif + const InlineTypeLocation + const InlineTypeMpeg4Gif + const InlineTypePhoto + const InlineTypeSticker + const InlineTypeVenue + const InlineTypeVideo + const InlineTypeVoice + func (enum *InlineType) UnmarshalText(src []byte) error + func (enum InlineType) MarshalText() ([]byte, error) + func (enum InlineType) String() string + type InputContactMessageContent struct + FirstName string + LastName *string + PhoneNumber string + Vcard *string + func (t *InputContactMessageContent) GetFirstName() string + func (t *InputContactMessageContent) GetLastName() string + func (t *InputContactMessageContent) GetPhoneNumber() string + func (t *InputContactMessageContent) GetVcard() string + type InputFile struct + FileID FileID + Name string + Reader io.Reader + URL string + func (i *InputFile) String() string + func (i InputFile) MarshalText() ([]byte, error) + type InputInvoiceMessageContent struct + Currency string + Description string + IsFlexible *bool + MaxTipAmount *int64 + NeedEmail *bool + NeedName *bool + NeedPhoneNumber *bool + NeedShippingAddress *bool + Payload string + PhotoHeight *int64 + PhotoSize *int64 + PhotoURL *string + PhotoWidth *int64 + Prices []LabeledPrice + ProviderData *string + ProviderToken string + SendEmailToProvider *bool + SendPhoneNumberToProvider *bool + SuggestedTipAmounts []int64 + Title string + func (t *InputInvoiceMessageContent) GetCurrency() string + func (t *InputInvoiceMessageContent) GetDescription() string + func (t *InputInvoiceMessageContent) GetIsFlexible() bool + func (t *InputInvoiceMessageContent) GetMaxTipAmount() int64 + func (t *InputInvoiceMessageContent) GetNeedEmail() bool + func (t *InputInvoiceMessageContent) GetNeedName() bool + func (t *InputInvoiceMessageContent) GetNeedPhoneNumber() bool + func (t *InputInvoiceMessageContent) GetNeedShippingAddress() bool + func (t *InputInvoiceMessageContent) GetPayload() string + func (t *InputInvoiceMessageContent) GetPhotoHeight() int64 + func (t *InputInvoiceMessageContent) GetPhotoSize() int64 + func (t *InputInvoiceMessageContent) GetPhotoURL() string + func (t *InputInvoiceMessageContent) GetPhotoWidth() int64 + func (t *InputInvoiceMessageContent) GetProviderData() string + func (t *InputInvoiceMessageContent) GetProviderToken() string + func (t *InputInvoiceMessageContent) GetSendEmailToProvider() bool + func (t *InputInvoiceMessageContent) GetSendPhoneNumberToProvider() bool + func (t *InputInvoiceMessageContent) GetTitle() string + type InputLocationMessageContent struct + Heading *int64 + HorizontalAccuracy *float64 + Latitude float64 + LivePeriod *int64 + Longitude float64 + ProximityAlertRadius *int64 + func (t *InputLocationMessageContent) GetHeading() int64 + func (t *InputLocationMessageContent) GetHorizontalAccuracy() *float64 + func (t *InputLocationMessageContent) GetLatitude() *float64 + func (t *InputLocationMessageContent) GetLivePeriod() int64 + func (t *InputLocationMessageContent) GetLongitude() *float64 + func (t *InputLocationMessageContent) GetProximityAlertRadius() int64 + type InputMedia struct + Caption *string + CaptionEntities []MessageEntity + HasSpoiler *bool + Media string + ParseMode *string + Type InputType + func (t *InputMedia) GetCaption() string + func (t *InputMedia) GetHasSpoiler() bool + func (t *InputMedia) GetMedia() string + func (t *InputMedia) GetParseMode() string + func (t *InputMedia) GetType() *InputType + type InputMediaAnimation struct + Caption *string + CaptionEntities []MessageEntity + Duration *int64 + HasSpoiler *bool + Height *int64 + Media string + ParseMode *string + Thumbnail *FileID + Type InputType + Width *int64 + func (t *InputMediaAnimation) GetCaption() string + func (t *InputMediaAnimation) GetDuration() int64 + func (t *InputMediaAnimation) GetHasSpoiler() bool + func (t *InputMediaAnimation) GetHeight() int64 + func (t *InputMediaAnimation) GetMedia() string + func (t *InputMediaAnimation) GetParseMode() string + func (t *InputMediaAnimation) GetThumbnail() *FileID + func (t *InputMediaAnimation) GetType() *InputType + func (t *InputMediaAnimation) GetWidth() int64 + type InputMediaAudio struct + Caption *string + CaptionEntities []MessageEntity + Duration *int64 + Media string + ParseMode *string + Performer *string + Thumbnail *FileID + Title *string + Type InputType + func (t *InputMediaAudio) GetCaption() string + func (t *InputMediaAudio) GetDuration() int64 + func (t *InputMediaAudio) GetMedia() string + func (t *InputMediaAudio) GetParseMode() string + func (t *InputMediaAudio) GetPerformer() string + func (t *InputMediaAudio) GetThumbnail() *FileID + func (t *InputMediaAudio) GetTitle() string + func (t *InputMediaAudio) GetType() *InputType + type InputMediaDocument struct + Caption *string + CaptionEntities []MessageEntity + DisableContentTypeDetection *bool + Media string + ParseMode *string + Thumbnail *FileID + Type InputType + func (t *InputMediaDocument) GetCaption() string + func (t *InputMediaDocument) GetDisableContentTypeDetection() bool + func (t *InputMediaDocument) GetMedia() string + func (t *InputMediaDocument) GetParseMode() string + func (t *InputMediaDocument) GetThumbnail() *FileID + func (t *InputMediaDocument) GetType() *InputType + type InputMediaGraphics interface + type InputMediaPhoto struct + Caption *string + CaptionEntities []MessageEntity + HasSpoiler *bool + Media string + ParseMode *string + Type InputType + func (t *InputMediaPhoto) GetCaption() string + func (t *InputMediaPhoto) GetHasSpoiler() bool + func (t *InputMediaPhoto) GetMedia() string + func (t *InputMediaPhoto) GetParseMode() string + func (t *InputMediaPhoto) GetType() *InputType + type InputMediaVideo struct + Caption *string + CaptionEntities []MessageEntity + Duration *int64 + HasSpoiler *bool + Height *int64 + Media string + ParseMode *string + SupportsStreaming *bool + Thumbnail *FileID + Type InputType + Width *int64 + func (t *InputMediaVideo) GetCaption() string + func (t *InputMediaVideo) GetDuration() int64 + func (t *InputMediaVideo) GetHasSpoiler() bool + func (t *InputMediaVideo) GetHeight() int64 + func (t *InputMediaVideo) GetMedia() string + func (t *InputMediaVideo) GetParseMode() string + func (t *InputMediaVideo) GetSupportsStreaming() bool + func (t *InputMediaVideo) GetThumbnail() *FileID + func (t *InputMediaVideo) GetType() *InputType + func (t *InputMediaVideo) GetWidth() int64 + type InputMessageContent struct + DisableWebPagePreview *bool + Entities []MessageEntity + MessageText string + ParseMode *string + func (t *InputMessageContent) GetDisableWebPagePreview() bool + func (t *InputMessageContent) GetMessageText() string + func (t *InputMessageContent) GetParseMode() string + type InputSticker struct + EmojiList []string + Keywords []string + MaskPosition *MaskPosition + Sticker FileID + func (t *InputSticker) GetMaskPosition() *MaskPosition + func (t *InputSticker) GetSticker() *FileID + type InputTextMessageContent struct + DisableWebPagePreview *bool + Entities []MessageEntity + MessageText string + ParseMode *string + func (t *InputTextMessageContent) GetDisableWebPagePreview() bool + func (t *InputTextMessageContent) GetMessageText() string + func (t *InputTextMessageContent) GetParseMode() string + type InputType int + const InputTypeAnimation + const InputTypeAudio + const InputTypeDocument + const InputTypePhoto + const InputTypeVideo + func (enum *InputType) UnmarshalText(src []byte) error + func (enum InputType) MarshalText() ([]byte, error) + func (enum InputType) String() string + type InputVenueMessageContent struct + Address string + FoursquareID *string + FoursquareType *string + GooglePlaceID *string + GooglePlaceType *string + Latitude float64 + Longitude float64 + Title string + func (t *InputVenueMessageContent) GetAddress() string + func (t *InputVenueMessageContent) GetFoursquareID() string + func (t *InputVenueMessageContent) GetFoursquareType() string + func (t *InputVenueMessageContent) GetGooglePlaceID() string + func (t *InputVenueMessageContent) GetGooglePlaceType() string + func (t *InputVenueMessageContent) GetLatitude() *float64 + func (t *InputVenueMessageContent) GetLongitude() *float64 + func (t *InputVenueMessageContent) GetTitle() string + type IntStr struct + Int int64 + Str string + func NewInt(i int64) IntStr + func NewStr(s string) IntStr + func (i IntStr) MarshalText() ([]byte, error) + func (i IntStr) String() string + type Invoice struct + Currency string + Description string + StartParameter string + Title string + TotalAmount int64 + func (t *Invoice) GetCurrency() string + func (t *Invoice) GetDescription() string + func (t *Invoice) GetStartParameter() string + func (t *Invoice) GetTitle() string + func (t *Invoice) GetTotalAmount() int64 + type KeyboardButton struct + RequestChat *KeyboardButtonRequestChat + RequestContact *bool + RequestLocation *bool + RequestPoll *KeyboardButtonPollType + RequestUser *KeyboardButtonRequestUser + Text string + WebApp *WebAppInfo + func (t *KeyboardButton) GetRequestChat() *KeyboardButtonRequestChat + func (t *KeyboardButton) GetRequestContact() bool + func (t *KeyboardButton) GetRequestLocation() bool + func (t *KeyboardButton) GetRequestPoll() *KeyboardButtonPollType + func (t *KeyboardButton) GetRequestUser() *KeyboardButtonRequestUser + func (t *KeyboardButton) GetText() string + func (t *KeyboardButton) GetWebApp() *WebAppInfo + type KeyboardButtonPollType struct + Type *KeyboardButtonType + func (t *KeyboardButtonPollType) GetType() *KeyboardButtonType + type KeyboardButtonRequestChat struct + BotAdministratorRights *ChatAdministratorRights + BotIsMember *bool + ChatHasUsername *bool + ChatIsChannel bool + ChatIsCreated *bool + ChatIsForum *bool + RequestID int64 + UserAdministratorRights *ChatAdministratorRights + func (t *KeyboardButtonRequestChat) GetBotAdministratorRights() *ChatAdministratorRights + func (t *KeyboardButtonRequestChat) GetBotIsMember() bool + func (t *KeyboardButtonRequestChat) GetChatHasUsername() bool + func (t *KeyboardButtonRequestChat) GetChatIsChannel() bool + func (t *KeyboardButtonRequestChat) GetChatIsCreated() bool + func (t *KeyboardButtonRequestChat) GetChatIsForum() bool + func (t *KeyboardButtonRequestChat) GetRequestID() int64 + func (t *KeyboardButtonRequestChat) GetUserAdministratorRights() *ChatAdministratorRights + type KeyboardButtonRequestUser struct + RequestID int64 + UserIsBot *bool + UserIsPremium *bool + func (t *KeyboardButtonRequestUser) GetRequestID() int64 + func (t *KeyboardButtonRequestUser) GetUserIsBot() bool + func (t *KeyboardButtonRequestUser) GetUserIsPremium() bool + type KeyboardButtonType int + const KeyboardButtonTypeQuiz + const KeyboardButtonTypeRegular + func (enum *KeyboardButtonType) UnmarshalText(src []byte) error + func (enum KeyboardButtonType) MarshalText() ([]byte, error) + func (enum KeyboardButtonType) String() string + type LabeledPrice struct + Amount int64 + Label string + func (t *LabeledPrice) GetAmount() int64 + func (t *LabeledPrice) GetLabel() string + type Location struct + Heading *int64 + HorizontalAccuracy *float64 + Latitude float64 + LivePeriod *int64 + Longitude float64 + ProximityAlertRadius *int64 + func (t *Location) GetHeading() int64 + func (t *Location) GetHorizontalAccuracy() *float64 + func (t *Location) GetLatitude() *float64 + func (t *Location) GetLivePeriod() int64 + func (t *Location) GetLongitude() *float64 + func (t *Location) GetProximityAlertRadius() int64 + type LoginURL struct + BotUsername *string + ForwardText *string + RequestWriteAccess *bool + URL string + func (t *LoginURL) GetBotUsername() string + func (t *LoginURL) GetForwardText() string + func (t *LoginURL) GetRequestWriteAccess() bool + func (t *LoginURL) GetURL() string + type LongPoller struct + func NewPoller(api *API, handler Handler, options ...LongPollerOption) *LongPoller + func (lp *LongPoller) Listen(updatesConfig *GetUpdatesConfig) + func (lp *LongPoller) Shutdown(ctx context.Context) error + type LongPollerOption func(*pollerOptions) + func LongPollerErrorListener(listener ErrorCallback) LongPollerOption + func LongPollerPollTimeout(timeout time.Duration) LongPollerOption + type MaskPosition struct + Point string + Scale float64 + XShift float64 + YShift float64 + func (t *MaskPosition) GetPoint() string + func (t *MaskPosition) GetScale() *float64 + func (t *MaskPosition) GetXShift() *float64 + func (t *MaskPosition) GetYShift() *float64 + type MenuButton struct + Type MenuType + func (t *MenuButton) GetType() *MenuType + type MenuButtonCommands struct + Type MenuType + func (t *MenuButtonCommands) GetType() *MenuType + type MenuButtonDefault struct + Type MenuType + func (t *MenuButtonDefault) GetType() *MenuType + type MenuButtonWebApp struct + Text string + Type MenuType + WebApp WebAppInfo + func (t *MenuButtonWebApp) GetText() string + func (t *MenuButtonWebApp) GetType() *MenuType + func (t *MenuButtonWebApp) GetWebApp() *WebAppInfo + type MenuType int + func (enum *MenuType) UnmarshalText(src []byte) error + func (enum MenuType) MarshalText() ([]byte, error) + func (enum MenuType) String() string + type Message struct + Animation *Animation + Audio *Audio + AuthorSignature *string + Caption *string + CaptionEntities []MessageEntity + ChannelChatCreated *True + Chat Chat + ChatShared *ChatShared + ConnectedWebsite *string + Contact *Contact + Date int64 + DeleteChatPhoto *True + Dice *Dice + Document *Document + EditDate *int64 + Entities []MessageEntity + ForumTopicClosed *ForumTopicClosed + ForumTopicCreated *ForumTopicCreated + ForumTopicEdited *ForumTopicEdited + ForumTopicReopened *ForumTopicReopened + ForwardDate *int64 + ForwardFrom *User + ForwardFromChat *Chat + ForwardFromMessageID *int64 + ForwardSenderName *string + ForwardSignature *string + From *User + Game *Game + GeneralForumTopicHidden *GeneralForumTopicHidden + GeneralForumTopicUnhidden *GeneralForumTopicUnhidden + GroupChatCreated *True + HasMediaSpoiler *True + HasProtectedContent *True + Invoice *Invoice + IsAutomaticForward *True + IsTopicMessage *True + LeftChatMember *User + Location *Location + MediaGroupID *string + MessageAutoDeleteTimerChanged *MessageAutoDeleteTimerChanged + MessageID int64 + MessageThreadID *int64 + MigrateFromChatID *int64 + MigrateToChatID *int64 + NewChatMembers []User + NewChatPhoto []PhotoSize + NewChatTitle *string + PassportData *PassportData + Photo []PhotoSize + PinnedMessage *Message + Poll *Poll + ProximityAlertTriggered *ProximityAlertTriggered + ReplyMarkup *InlineKeyboardMarkup + ReplyToMessage *Message + SenderChat *Chat + Sticker *Sticker + SuccessfulPayment *SuccessfulPayment + SupergroupChatCreated *True + Text *string + UserShared *UserShared + Venue *Venue + ViaBot *User + Video *Video + VideoChatEnded *VideoChatEnded + VideoChatParticipantsInvited *VideoChatParticipantsInvited + VideoChatScheduled *VideoChatScheduled + VideoChatStarted *VideoChatStarted + VideoNote *VideoNote + Voice *Voice + WebAppData *WebAppData + WriteAccessAllowed *WriteAccessAllowed + func (t *Message) Command() string + func (t *Message) CommandArguments() string + func (t *Message) CommandWithAt() string + func (t *Message) GetAnimation() *Animation + func (t *Message) GetAudio() *Audio + func (t *Message) GetAuthorSignature() string + func (t *Message) GetCaption() string + func (t *Message) GetChannelChatCreated() *True + func (t *Message) GetChat() *Chat + func (t *Message) GetChatShared() *ChatShared + func (t *Message) GetConnectedWebsite() string + func (t *Message) GetContact() *Contact + func (t *Message) GetDate() int64 + func (t *Message) GetDeleteChatPhoto() *True + func (t *Message) GetDice() *Dice + func (t *Message) GetDocument() *Document + func (t *Message) GetEditDate() int64 + func (t *Message) GetForumTopicClosed() *ForumTopicClosed + func (t *Message) GetForumTopicCreated() *ForumTopicCreated + func (t *Message) GetForumTopicEdited() *ForumTopicEdited + func (t *Message) GetForumTopicReopened() *ForumTopicReopened + func (t *Message) GetForwardDate() int64 + func (t *Message) GetForwardFrom() *User + func (t *Message) GetForwardFromChat() *Chat + func (t *Message) GetForwardFromMessageID() int64 + func (t *Message) GetForwardSenderName() string + func (t *Message) GetForwardSignature() string + func (t *Message) GetFrom() *User + func (t *Message) GetGame() *Game + func (t *Message) GetGeneralForumTopicHidden() *GeneralForumTopicHidden + func (t *Message) GetGeneralForumTopicUnhidden() *GeneralForumTopicUnhidden + func (t *Message) GetGroupChatCreated() *True + func (t *Message) GetHasMediaSpoiler() *True + func (t *Message) GetHasProtectedContent() *True + func (t *Message) GetInvoice() *Invoice + func (t *Message) GetIsAutomaticForward() *True + func (t *Message) GetIsTopicMessage() *True + func (t *Message) GetLeftChatMember() *User + func (t *Message) GetLocation() *Location + func (t *Message) GetMediaGroupID() string + func (t *Message) GetMessageAutoDeleteTimerChanged() *MessageAutoDeleteTimerChanged + func (t *Message) GetMessageID() int64 + func (t *Message) GetMessageThreadID() int64 + func (t *Message) GetMigrateFromChatID() int64 + func (t *Message) GetMigrateToChatID() int64 + func (t *Message) GetNewChatTitle() string + func (t *Message) GetPassportData() *PassportData + func (t *Message) GetPinnedMessage() *Message + func (t *Message) GetPoll() *Poll + func (t *Message) GetProximityAlertTriggered() *ProximityAlertTriggered + func (t *Message) GetReplyMarkup() *InlineKeyboardMarkup + func (t *Message) GetReplyToMessage() *Message + func (t *Message) GetSenderChat() *Chat + func (t *Message) GetSticker() *Sticker + func (t *Message) GetSuccessfulPayment() *SuccessfulPayment + func (t *Message) GetSupergroupChatCreated() *True + func (t *Message) GetText() string + func (t *Message) GetUserShared() *UserShared + func (t *Message) GetVenue() *Venue + func (t *Message) GetViaBot() *User + func (t *Message) GetVideo() *Video + func (t *Message) GetVideoChatEnded() *VideoChatEnded + func (t *Message) GetVideoChatParticipantsInvited() *VideoChatParticipantsInvited + func (t *Message) GetVideoChatScheduled() *VideoChatScheduled + func (t *Message) GetVideoChatStarted() *VideoChatStarted + func (t *Message) GetVideoNote() *VideoNote + func (t *Message) GetVoice() *Voice + func (t *Message) GetWebAppData() *WebAppData + func (t *Message) GetWriteAccessAllowed() *WriteAccessAllowed + func (t *Message) IsCommand() bool + type MessageAutoDeleteTimerChanged struct + MessageAutoDeleteTime int64 + func (t *MessageAutoDeleteTimerChanged) GetMessageAutoDeleteTime() int64 + type MessageEntity struct + CustomEmojiID *string + Language *string + Length int64 + Offset int64 + Type EntityType + URL *string + User *User + func (t *MessageEntity) GetCustomEmojiID() string + func (t *MessageEntity) GetLanguage() string + func (t *MessageEntity) GetLength() int64 + func (t *MessageEntity) GetOffset() int64 + func (t *MessageEntity) GetType() *EntityType + func (t *MessageEntity) GetURL() string + func (t *MessageEntity) GetUser() *User + func (t *MessageEntity) IsCommand() bool + type MessageID struct + MessageID int64 + func (t *MessageID) GetMessageID() int64 + type OrderInfo struct + Email *string + Name *string + PhoneNumber *string + ShippingAddress *ShippingAddress + func (t *OrderInfo) GetEmail() string + func (t *OrderInfo) GetName() string + func (t *OrderInfo) GetPhoneNumber() string + func (t *OrderInfo) GetShippingAddress() *ShippingAddress + type PassportData struct + Credentials EncryptedCredentials + Data []EncryptedPassportElement + func (t *PassportData) GetCredentials() *EncryptedCredentials + type PassportElementError struct + DataHash string + FieldName string + Message string + Source string + Type PassportType + func (t *PassportElementError) GetDataHash() string + func (t *PassportElementError) GetFieldName() string + func (t *PassportElementError) GetMessage() string + func (t *PassportElementError) GetSource() string + func (t *PassportElementError) GetType() *PassportType + type PassportElementErrorDataField struct + DataHash string + FieldName string + Message string + Source string + Type PassportType + func (t *PassportElementErrorDataField) GetDataHash() string + func (t *PassportElementErrorDataField) GetFieldName() string + func (t *PassportElementErrorDataField) GetMessage() string + func (t *PassportElementErrorDataField) GetSource() string + func (t *PassportElementErrorDataField) GetType() *PassportType + type PassportElementErrorFile struct + FileHash string + Message string + Source string + Type PassportType + func (t *PassportElementErrorFile) GetFileHash() string + func (t *PassportElementErrorFile) GetMessage() string + func (t *PassportElementErrorFile) GetSource() string + func (t *PassportElementErrorFile) GetType() *PassportType + type PassportElementErrorFiles struct + FileHashes []string + Message string + Source string + Type PassportType + func (t *PassportElementErrorFiles) GetMessage() string + func (t *PassportElementErrorFiles) GetSource() string + func (t *PassportElementErrorFiles) GetType() *PassportType + type PassportElementErrorFrontSide struct + FileHash string + Message string + Source string + Type PassportType + func (t *PassportElementErrorFrontSide) GetFileHash() string + func (t *PassportElementErrorFrontSide) GetMessage() string + func (t *PassportElementErrorFrontSide) GetSource() string + func (t *PassportElementErrorFrontSide) GetType() *PassportType + type PassportElementErrorReverseSide struct + FileHash string + Message string + Source string + Type PassportType + func (t *PassportElementErrorReverseSide) GetFileHash() string + func (t *PassportElementErrorReverseSide) GetMessage() string + func (t *PassportElementErrorReverseSide) GetSource() string + func (t *PassportElementErrorReverseSide) GetType() *PassportType + type PassportElementErrorSelfie struct + FileHash string + Message string + Source string + Type PassportType + func (t *PassportElementErrorSelfie) GetFileHash() string + func (t *PassportElementErrorSelfie) GetMessage() string + func (t *PassportElementErrorSelfie) GetSource() string + func (t *PassportElementErrorSelfie) GetType() *PassportType + type PassportElementErrorTranslationFile struct + FileHash string + Message string + Source string + Type PassportType + func (t *PassportElementErrorTranslationFile) GetFileHash() string + func (t *PassportElementErrorTranslationFile) GetMessage() string + func (t *PassportElementErrorTranslationFile) GetSource() string + func (t *PassportElementErrorTranslationFile) GetType() *PassportType + type PassportElementErrorTranslationFiles struct + FileHashes []string + Message string + Source string + Type PassportType + func (t *PassportElementErrorTranslationFiles) GetMessage() string + func (t *PassportElementErrorTranslationFiles) GetSource() string + func (t *PassportElementErrorTranslationFiles) GetType() *PassportType + type PassportElementErrorUnspecified struct + ElementHash string + Message string + Source string + Type PassportType + func (t *PassportElementErrorUnspecified) GetElementHash() string + func (t *PassportElementErrorUnspecified) GetMessage() string + func (t *PassportElementErrorUnspecified) GetSource() string + func (t *PassportElementErrorUnspecified) GetType() *PassportType + type PassportFile struct + FileDate int64 + FileID string + FileSize int64 + FileUniqueID string + func (t *PassportFile) GetFileDate() int64 + func (t *PassportFile) GetFileID() string + func (t *PassportFile) GetFileSize() int64 + func (t *PassportFile) GetFileUniqueID() string + type PassportType int + const PassportTypeAddress + const PassportTypeBankStatement + const PassportTypeDriverLicense + const PassportTypeIDentityCard + const PassportTypeInternalPassport + const PassportTypePassport + const PassportTypePassportRegistration + const PassportTypePersonalDetails + const PassportTypeRentalAgreement + const PassportTypeTemporaryRegistration + const PassportTypeUtilityBill + func (enum *PassportType) UnmarshalText(src []byte) error + func (enum PassportType) MarshalText() ([]byte, error) + func (enum PassportType) String() string + type Payments struct + AllowSendingWithoutReply *bool + ChatID IntStr + Currency string + Description string + DisableNotification *bool + IsFlexible *bool + MaxTipAmount *int64 + MessageThreadID *int64 + NeedEmail *bool + NeedName *bool + NeedPhoneNumber *bool + NeedShippingAddress *bool + Payload string + PhotoHeight *int64 + PhotoSize *int64 + PhotoURL *string + PhotoWidth *int64 + Prices []LabeledPrice + ProtectContent *bool + ProviderData *string + ProviderToken string + ReplyMarkup *InlineKeyboardMarkup + ReplyToMessageID *int64 + SendEmailToProvider *bool + SendPhoneNumberToProvider *bool + StartParameter *string + SuggestedTipAmounts []int64 + Title string + func (t *Payments) GetAllowSendingWithoutReply() bool + func (t *Payments) GetChatID() IntStr + func (t *Payments) GetCurrency() string + func (t *Payments) GetDescription() string + func (t *Payments) GetDisableNotification() bool + func (t *Payments) GetIsFlexible() bool + func (t *Payments) GetMaxTipAmount() int64 + func (t *Payments) GetMessageThreadID() int64 + func (t *Payments) GetNeedEmail() bool + func (t *Payments) GetNeedName() bool + func (t *Payments) GetNeedPhoneNumber() bool + func (t *Payments) GetNeedShippingAddress() bool + func (t *Payments) GetPayload() string + func (t *Payments) GetPhotoHeight() int64 + func (t *Payments) GetPhotoSize() int64 + func (t *Payments) GetPhotoURL() string + func (t *Payments) GetPhotoWidth() int64 + func (t *Payments) GetProtectContent() bool + func (t *Payments) GetProviderData() string + func (t *Payments) GetProviderToken() string + func (t *Payments) GetReplyMarkup() *InlineKeyboardMarkup + func (t *Payments) GetReplyToMessageID() int64 + func (t *Payments) GetSendEmailToProvider() bool + func (t *Payments) GetSendPhoneNumberToProvider() bool + func (t *Payments) GetStartParameter() string + func (t *Payments) GetTitle() string + type PhotoSize struct + FileID string + FileSize *int64 + FileUniqueID string + Height int64 + Width int64 + func (t *PhotoSize) GetFileID() string + func (t *PhotoSize) GetFileSize() int64 + func (t *PhotoSize) GetFileUniqueID() string + func (t *PhotoSize) GetHeight() int64 + func (t *PhotoSize) GetWidth() int64 + type PinChatMessageConfig struct + ChatID IntStr + DisableNotification bool + MessageID int64 + type Poll struct + AllowsMultipleAnswers bool + CloseDate *int64 + CorrectOptionID *int64 + Explanation *string + ExplanationEntities []MessageEntity + ID string + IsAnonymous bool + IsClosed bool + OpenPeriod *int64 + Options []PollOption + Question string + TotalVoterCount int64 + Type PollType + func (t *Poll) GetAllowsMultipleAnswers() bool + func (t *Poll) GetCloseDate() int64 + func (t *Poll) GetCorrectOptionID() int64 + func (t *Poll) GetExplanation() string + func (t *Poll) GetID() string + func (t *Poll) GetIsAnonymous() bool + func (t *Poll) GetIsClosed() bool + func (t *Poll) GetOpenPeriod() int64 + func (t *Poll) GetQuestion() string + func (t *Poll) GetTotalVoterCount() int64 + func (t *Poll) GetType() *PollType + type PollAnswer struct + OptionIDs []int64 + PollID string + User User + func (t *PollAnswer) GetPollID() string + func (t *PollAnswer) GetUser() *User + type PollOption struct + Text string + VoterCount int64 + func (t *PollOption) GetText() string + func (t *PollOption) GetVoterCount() int64 + type PollType int + const PollTypeQuiz + const PollTypeRegular + func (enum *PollType) UnmarshalText(src []byte) error + func (enum PollType) MarshalText() ([]byte, error) + func (enum PollType) String() string + type PreCheckoutQuery struct + Currency string + From User + ID string + InvoicePayload string + OrderInfo *OrderInfo + ShippingOptionID *string + TotalAmount int64 + func (t *PreCheckoutQuery) GetCurrency() string + func (t *PreCheckoutQuery) GetFrom() *User + func (t *PreCheckoutQuery) GetID() string + func (t *PreCheckoutQuery) GetInvoicePayload() string + func (t *PreCheckoutQuery) GetOrderInfo() *OrderInfo + func (t *PreCheckoutQuery) GetShippingOptionID() string + func (t *PreCheckoutQuery) GetTotalAmount() int64 + type PromoteChatMemberConfig struct + CanChangeInfo bool + CanDeleteMessages bool + CanEditMessages bool + CanInviteUsers bool + CanManageChat bool + CanManageTopics bool + CanManageVideoChats bool + CanPinMessages bool + CanPostMessages bool + CanPromoteMembers bool + CanRestrictMembers bool + ChatID IntStr + IsAnonymous bool + UserID int64 + type ProximityAlertTriggered struct + Distance int64 + Traveler User + Watcher User + func (t *ProximityAlertTriggered) GetDistance() int64 + func (t *ProximityAlertTriggered) GetTraveler() *User + func (t *ProximityAlertTriggered) GetWatcher() *User + type ReplyKeyboardMarkup struct + InputFieldPlaceholder *string + IsPersistent *bool + Keyboard [][]KeyboardButton + OneTimeKeyboard *bool + ResizeKeyboard *bool + Selective *bool + func (t *ReplyKeyboardMarkup) GetInputFieldPlaceholder() string + func (t *ReplyKeyboardMarkup) GetIsPersistent() bool + func (t *ReplyKeyboardMarkup) GetOneTimeKeyboard() bool + func (t *ReplyKeyboardMarkup) GetResizeKeyboard() bool + func (t *ReplyKeyboardMarkup) GetSelective() bool + type ReplyKeyboardRemove struct + RemoveKeyboard True + Selective *bool + func (t *ReplyKeyboardRemove) GetRemoveKeyboard() *True + func (t *ReplyKeyboardRemove) GetSelective() bool + type ReplyMarkup interface + type Response struct + Description string + ErrorCode int + OK bool + Parameters ResponseParameters + Result json.RawMessage + type ResponseParameters struct + MigrateToChatID *int64 + RetryAfter *int64 + func (t *ResponseParameters) GetMigrateToChatID() int64 + func (t *ResponseParameters) GetRetryAfter() int64 + type RestrictChatMemberConfig struct + ChatID IntStr + Permissions ChatPermissions + UntilDate int64 + UseIndependentChatPermissions bool + UserID int64 + type SendAnimationConfig struct + AllowSendingWithoutReply bool + Animation InputFile + Caption string + CaptionEntities []MessageEntity + ChatID IntStr + DisableNotification bool + Duration int64 + HasSpoiler bool + Height int64 + MessageThreadID int64 + ParseMode string + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID int64 + Thumbnail *InputFile + Width int64 + func (t SendAnimationConfig) EncodeURL() (url.Values, error) + type SendAudioConfig struct + AllowSendingWithoutReply bool + Audio InputFile + Caption string + CaptionEntities []MessageEntity + ChatID IntStr + DisableNotification bool + Duration int64 + MessageThreadID int64 + ParseMode string + Performer string + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID int64 + Thumbnail *InputFile + Title string + func (t SendAudioConfig) EncodeURL() (url.Values, error) + type SendChatActionConfig struct + Action string + ChatID IntStr + MessageThreadID int64 + type SendContactConfig struct + AllowSendingWithoutReply bool + ChatID IntStr + DisableNotification bool + FirstName string + LastName string + MessageThreadID int64 + PhoneNumber string + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID int64 + Vcard string + type SendDiceConfig struct + AllowSendingWithoutReply bool + ChatID IntStr + DisableNotification bool + Emoji string + MessageThreadID int64 + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID int64 + type SendDocumentConfig struct + AllowSendingWithoutReply bool + Caption string + CaptionEntities []MessageEntity + ChatID IntStr + DisableContentTypeDetection bool + DisableNotification bool + Document InputFile + MessageThreadID int64 + ParseMode string + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID int64 + Thumbnail *InputFile + func (t SendDocumentConfig) EncodeURL() (url.Values, error) + type SendGameConfig struct + AllowSendingWithoutReply bool + ChatID int64 + DisableNotification bool + GameShortName string + MessageThreadID int64 + ProtectContent bool + ReplyMarkup *InlineKeyboardMarkup + ReplyToMessageID int64 + type SendInvoiceConfig struct + AllowSendingWithoutReply bool + ChatID IntStr + Currency string + Description string + DisableNotification bool + IsFlexible bool + MaxTipAmount int64 + MessageThreadID int64 + NeedEmail bool + NeedName bool + NeedPhoneNumber bool + NeedShippingAddress bool + Payload string + PhotoHeight int64 + PhotoSize int64 + PhotoURL string + PhotoWidth int64 + Prices []LabeledPrice + ProtectContent bool + ProviderData string + ProviderToken string + ReplyMarkup *InlineKeyboardMarkup + ReplyToMessageID int64 + SendEmailToProvider bool + SendPhoneNumberToProvider bool + StartParameter string + SuggestedTipAmounts []int64 + Title string + type SendLocationConfig struct + AllowSendingWithoutReply bool + ChatID IntStr + DisableNotification bool + Heading int64 + HorizontalAccuracy *float64 + Latitude float64 + LivePeriod int64 + Longitude float64 + MessageThreadID int64 + ProtectContent bool + ProximityAlertRadius int64 + ReplyMarkup ReplyMarkup + ReplyToMessageID int64 + type SendMediaGroupConfig struct + AllowSendingWithoutReply bool + ChatID IntStr + DisableNotification bool + Media []InputMediaGraphics + MessageThreadID int64 + ProtectContent bool + ReplyToMessageID int64 + type SendMessageConfig struct + AllowSendingWithoutReply bool + ChatID IntStr + DisableNotification bool + DisableWebPagePreview bool + Entities []MessageEntity + MessageThreadID int64 + ParseMode string + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID int64 + Text string + type SendPhotoConfig struct + AllowSendingWithoutReply bool + Caption string + CaptionEntities []MessageEntity + ChatID IntStr + DisableNotification bool + HasSpoiler bool + MessageThreadID int64 + ParseMode string + Photo InputFile + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID int64 + func (t SendPhotoConfig) EncodeURL() (url.Values, error) + type SendPollConfig struct + AllowSendingWithoutReply bool + AllowsMultipleAnswers bool + ChatID IntStr + CloseDate int64 + CorrectOptionID int64 + DisableNotification bool + Explanation string + ExplanationEntities []MessageEntity + ExplanationParseMode string + IsAnonymous bool + IsClosed bool + MessageThreadID int64 + OpenPeriod int64 + Options []string + ProtectContent bool + Question string + ReplyMarkup ReplyMarkup + ReplyToMessageID int64 + Type *SendType + type SendStickerConfig struct + AllowSendingWithoutReply bool + ChatID IntStr + DisableNotification bool + Emoji string + MessageThreadID int64 + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID int64 + Sticker InputFile + func (t SendStickerConfig) EncodeURL() (url.Values, error) + type SendType int + const SendTypeQuiz + const SendTypeRegular + func (enum *SendType) UnmarshalText(src []byte) error + func (enum SendType) MarshalText() ([]byte, error) + func (enum SendType) String() string + type SendVenueConfig struct + Address string + AllowSendingWithoutReply bool + ChatID IntStr + DisableNotification bool + FoursquareID string + FoursquareType string + GooglePlaceID string + GooglePlaceType string + Latitude float64 + Longitude float64 + MessageThreadID int64 + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID int64 + Title string + type SendVideoConfig struct + AllowSendingWithoutReply bool + Caption string + CaptionEntities []MessageEntity + ChatID IntStr + DisableNotification bool + Duration int64 + HasSpoiler bool + Height int64 + MessageThreadID int64 + ParseMode string + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID int64 + SupportsStreaming bool + Thumbnail *InputFile + Video InputFile + Width int64 + func (t SendVideoConfig) EncodeURL() (url.Values, error) + type SendVideoNoteConfig struct + AllowSendingWithoutReply bool + ChatID IntStr + DisableNotification bool + Duration int64 + Length int64 + MessageThreadID int64 + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID int64 + Thumbnail *InputFile + VideoNote InputFile + func (t SendVideoNoteConfig) EncodeURL() (url.Values, error) + type SendVoiceConfig struct + AllowSendingWithoutReply bool + Caption string + CaptionEntities []MessageEntity + ChatID IntStr + DisableNotification bool + Duration int64 + MessageThreadID int64 + ParseMode string + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID int64 + Voice InputFile + func (t SendVoiceConfig) EncodeURL() (url.Values, error) + type SentWebAppMessage struct + InlineMessageID *string + func (t *SentWebAppMessage) GetInlineMessageID() string + type SetChatAdministratorCustomTitleConfig struct + ChatID IntStr + CustomTitle string + UserID int64 + type SetChatPermissionsConfig struct + ChatID IntStr + Permissions ChatPermissions + UseIndependentChatPermissions bool + type SetGameScoreConfig struct + ChatID int64 + DisableEditMessage bool + Force bool + InlineMessageID string + MessageID int64 + Score int64 + UserID int64 + type SetMyCommandsConfig struct + Commands []BotCommand + LanguageCode string + Scope *BotCommandScope + type SetStickerSetThumbnailConfig struct + Name string + Thumbnail *InputFile + UserID int64 + type SetWebhookConfig struct + AllowedUpdates []string + Certificate *InputFile + DropPendingUpdates bool + IPAddress string + MaxConnections int64 + SecretToken string + URL string + type ShippingAddress struct + City string + CountryCode string + PostCode string + State string + StreetLine1 string + StreetLine2 string + func (t *ShippingAddress) GetCity() string + func (t *ShippingAddress) GetCountryCode() string + func (t *ShippingAddress) GetPostCode() string + func (t *ShippingAddress) GetState() string + func (t *ShippingAddress) GetStreetLine1() string + func (t *ShippingAddress) GetStreetLine2() string + type ShippingOption struct + ID string + Prices []LabeledPrice + Title string + func (t *ShippingOption) GetID() string + func (t *ShippingOption) GetTitle() string + type ShippingQuery struct + From User + ID string + InvoicePayload string + ShippingAddress ShippingAddress + func (t *ShippingQuery) GetFrom() *User + func (t *ShippingQuery) GetID() string + func (t *ShippingQuery) GetInvoicePayload() string + func (t *ShippingQuery) GetShippingAddress() *ShippingAddress + type Sticker struct + CustomEmojiID *string + Emoji *string + FileID string + FileSize *int64 + FileUniqueID string + Height int64 + IsAnimated bool + IsVideo bool + MaskPosition *MaskPosition + NeedsRepainting *True + PremiumAnimation *File + SetName *string + Thumbnail *PhotoSize + Type StickerType + Width int64 + func (t *Sticker) GetCustomEmojiID() string + func (t *Sticker) GetEmoji() string + func (t *Sticker) GetFileID() string + func (t *Sticker) GetFileSize() int64 + func (t *Sticker) GetFileUniqueID() string + func (t *Sticker) GetHeight() int64 + func (t *Sticker) GetIsAnimated() bool + func (t *Sticker) GetIsVideo() bool + func (t *Sticker) GetMaskPosition() *MaskPosition + func (t *Sticker) GetNeedsRepainting() *True + func (t *Sticker) GetPremiumAnimation() *File + func (t *Sticker) GetSetName() string + func (t *Sticker) GetThumbnail() *PhotoSize + func (t *Sticker) GetType() *StickerType + func (t *Sticker) GetWidth() int64 + type StickerSet struct + IsAnimated bool + IsVideo bool + Name string + StickerType string + Stickers []Sticker + Thumbnail *PhotoSize + Title string + func (t *StickerSet) GetIsAnimated() bool + func (t *StickerSet) GetIsVideo() bool + func (t *StickerSet) GetName() string + func (t *StickerSet) GetStickerType() string + func (t *StickerSet) GetThumbnail() *PhotoSize + func (t *StickerSet) GetTitle() string + type StickerType int + const StickerTypeCustomEmoji + const StickerTypeMask + const StickerTypeRegular + func (enum *StickerType) UnmarshalText(src []byte) error + func (enum StickerType) MarshalText() ([]byte, error) + func (enum StickerType) String() string + type Stickers struct + CustomEmojiID *string + Emoji *string + FileID string + FileSize *int64 + FileUniqueID string + Height int64 + IsAnimated bool + IsVideo bool + MaskPosition *MaskPosition + NeedsRepainting *True + PremiumAnimation *File + SetName *string + Thumbnail *PhotoSize + Type StickersType + Width int64 + func (t *Stickers) GetCustomEmojiID() string + func (t *Stickers) GetEmoji() string + func (t *Stickers) GetFileID() string + func (t *Stickers) GetFileSize() int64 + func (t *Stickers) GetFileUniqueID() string + func (t *Stickers) GetHeight() int64 + func (t *Stickers) GetIsAnimated() bool + func (t *Stickers) GetIsVideo() bool + func (t *Stickers) GetMaskPosition() *MaskPosition + func (t *Stickers) GetNeedsRepainting() *True + func (t *Stickers) GetPremiumAnimation() *File + func (t *Stickers) GetSetName() string + func (t *Stickers) GetThumbnail() *PhotoSize + func (t *Stickers) GetType() *StickersType + func (t *Stickers) GetWidth() int64 + type StickersType int + const StickersTypeCustomEmoji + const StickersTypeMask + const StickersTypeRegular + func (enum *StickersType) UnmarshalText(src []byte) error + func (enum StickersType) MarshalText() ([]byte, error) + func (enum StickersType) String() string + type StopMessageLiveLocationConfig struct + ChatID IntStr + InlineMessageID string + MessageID int64 + ReplyMarkup *InlineKeyboardMarkup + type StopPollConfig struct + ChatID IntStr + MessageID int64 + ReplyMarkup *InlineKeyboardMarkup + type SuccessfulPayment struct + Currency string + InvoicePayload string + OrderInfo *OrderInfo + ProviderPaymentChargeID string + ShippingOptionID *string + TelegramPaymentChargeID string + TotalAmount int64 + func (t *SuccessfulPayment) GetCurrency() string + func (t *SuccessfulPayment) GetInvoicePayload() string + func (t *SuccessfulPayment) GetOrderInfo() *OrderInfo + func (t *SuccessfulPayment) GetProviderPaymentChargeID() string + func (t *SuccessfulPayment) GetShippingOptionID() string + func (t *SuccessfulPayment) GetTelegramPaymentChargeID() string + func (t *SuccessfulPayment) GetTotalAmount() int64 + type SwitchInlineQueryChosenChat struct + AllowBotChats *bool + AllowChannelChats *bool + AllowGroupChats *bool + AllowUserChats *bool + Query *string + func (t *SwitchInlineQueryChosenChat) GetAllowBotChats() bool + func (t *SwitchInlineQueryChosenChat) GetAllowChannelChats() bool + func (t *SwitchInlineQueryChosenChat) GetAllowGroupChats() bool + func (t *SwitchInlineQueryChosenChat) GetAllowUserChats() bool + func (t *SwitchInlineQueryChosenChat) GetQuery() string + type True struct + func (*True) UnmarshalText([]byte) error + func (True) MarshalText() ([]byte, error) + type UnbanChatMemberConfig struct + ChatID IntStr + OnlyIfBanned bool + UserID int64 + 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 + PreCheckoutQuery *PreCheckoutQuery + ShippingQuery *ShippingQuery + UpdateID int64 + func (t *Update) GetCallbackQuery() *CallbackQuery + func (t *Update) GetChannelPost() *Message + func (t *Update) GetChatJoinRequest() *ChatJoinRequest + func (t *Update) GetChatMember() *ChatMemberUpdated + func (t *Update) GetChosenInlineResult() *ChosenInlineResult + func (t *Update) GetEditedChannelPost() *Message + func (t *Update) GetEditedMessage() *Message + func (t *Update) GetInlineQuery() *InlineQuery + func (t *Update) GetMessage() *Message + func (t *Update) GetMyChatMember() *ChatMemberUpdated + func (t *Update) GetPoll() *Poll + func (t *Update) GetPollAnswer() *PollAnswer + func (t *Update) GetPreCheckoutQuery() *PreCheckoutQuery + func (t *Update) GetShippingQuery() *ShippingQuery + func (t *Update) GetUpdateID() int64 + type UploadStickerFileConfig struct + Sticker InputFile + StickerFormat string + UserID int64 + type User struct + AddedToAttachmentMenu *True + CanJoinGroups *bool + CanReadAllGroupMessages *bool + FirstName string + ID int64 + IsBot bool + IsPremium *True + LanguageCode *string + LastName *string + SupportsInlineQueries *bool + Username *string + func (t *User) GetAddedToAttachmentMenu() *True + func (t *User) GetCanJoinGroups() bool + func (t *User) GetCanReadAllGroupMessages() bool + func (t *User) GetFirstName() string + func (t *User) GetID() int64 + func (t *User) GetIsBot() bool + func (t *User) GetIsPremium() *True + func (t *User) GetLanguageCode() string + func (t *User) GetLastName() string + func (t *User) GetSupportsInlineQueries() bool + func (t *User) GetUsername() string + func (t *User) String() string + type UserProfilePhotos struct + Photos [][]PhotoSize + TotalCount int64 + func (t *UserProfilePhotos) GetTotalCount() int64 + type UserShared struct + RequestID int64 + UserID int64 + func (t *UserShared) GetRequestID() int64 + func (t *UserShared) GetUserID() int64 + type Venue struct + Address string + FoursquareID *string + FoursquareType *string + GooglePlaceID *string + GooglePlaceType *string + Location Location + Title string + func (t *Venue) GetAddress() string + func (t *Venue) GetFoursquareID() string + func (t *Venue) GetFoursquareType() string + func (t *Venue) GetGooglePlaceID() string + func (t *Venue) GetGooglePlaceType() string + func (t *Venue) GetLocation() *Location + func (t *Venue) GetTitle() string + type Video struct + Duration int64 + FileID string + FileName *string + FileSize *int64 + FileUniqueID string + Height int64 + MimeType *string + Thumbnail *PhotoSize + Width int64 + func (t *Video) GetDuration() int64 + func (t *Video) GetFileID() string + func (t *Video) GetFileName() string + func (t *Video) GetFileSize() int64 + func (t *Video) GetFileUniqueID() string + func (t *Video) GetHeight() int64 + func (t *Video) GetMimeType() string + func (t *Video) GetThumbnail() *PhotoSize + func (t *Video) GetWidth() int64 + type VideoChatEnded struct + Duration int64 + func (t *VideoChatEnded) GetDuration() int64 + type VideoChatParticipantsInvited struct + Users []User + type VideoChatScheduled struct + StartDate int64 + func (t *VideoChatScheduled) GetStartDate() int64 + type VideoChatStarted struct + Duration int64 + func (t *VideoChatStarted) GetDuration() int64 + type VideoNote struct + Duration int64 + FileID string + FileSize *int64 + FileUniqueID string + Length int64 + Thumbnail *PhotoSize + func (t *VideoNote) GetDuration() int64 + func (t *VideoNote) GetFileID() string + func (t *VideoNote) GetFileSize() int64 + func (t *VideoNote) GetFileUniqueID() string + func (t *VideoNote) GetLength() int64 + func (t *VideoNote) GetThumbnail() *PhotoSize + type Voice struct + Duration int64 + FileID string + FileSize *int64 + FileUniqueID string + MimeType *string + func (t *Voice) GetDuration() int64 + func (t *Voice) GetFileID() string + func (t *Voice) GetFileSize() int64 + func (t *Voice) GetFileUniqueID() string + func (t *Voice) GetMimeType() string + type WebAppData struct + ButtonText string + Data string + func (t *WebAppData) GetButtonText() string + func (t *WebAppData) GetData() string + type WebAppInfo struct + URL string + func (t *WebAppInfo) GetURL() string + type WebhookInfo struct + AllowedUpdates []string + HasCustomCertificate bool + IPAddress *string + LastErrorDate *int64 + LastErrorMessage *string + LastSynchronizationErrorDate *int64 + MaxConnections *int64 + PendingUpdateCount int64 + URL string + func (t *WebhookInfo) GetHasCustomCertificate() bool + func (t *WebhookInfo) GetIPAddress() string + func (t *WebhookInfo) GetLastErrorDate() int64 + func (t *WebhookInfo) GetLastErrorMessage() string + func (t *WebhookInfo) GetLastSynchronizationErrorDate() int64 + func (t *WebhookInfo) GetMaxConnections() int64 + func (t *WebhookInfo) GetPendingUpdateCount() int64 + func (t *WebhookInfo) GetURL() string + type WriteAccessAllowed struct + WebAppName *string + func (t *WriteAccessAllowed) GetWebAppName() string