Versions in this module Expand all Collapse all v1 v1.0.0 Apr 22, 2022 Changes in this version + var APIEndpoint = "https://api.telegram.org/bot" + var DefaultFasthttpClient = &fasthttp.Client + func DefaultHttpDoRequest(method string, url string, headers map[string]string, body []byte) (respBody []byte, err error) + func NewAPI(token string) (*API, *User, error) + func NewAPIWithHTTPDoRequest(token string, ...) (*API, *User, error) + func StartRecievingUpdates(api *API, reciever func(update *Update, err error)) (close func()) + func StartRecievingUpdatesWithParams(api *API, params *GetUpdatesParameters, ...) (close func()) + type API struct + Token string + func (api *API) AddStickerToSet(params *AddStickerToSetParameters) error + func (api *API) AnswerCallbackQuery(params *AnswerCallbackQueryParameters) error + func (api *API) AnswerInlineQuery(params *AnswerInlineQueryParameters) error + func (api *API) AnswerPreCheckoutQuery(params *AnswerPreCheckoutQueryParameters) error + func (api *API) AnswerShippingQuery(params *AnswerShippingQueryParameters) error + func (api *API) AnswerWebAppQuery(params *AnswerWebAppQueryParameters) (*SentWebAppMessage, error) + func (api *API) ApproveChatJoinRequest(params *ApproveChatJoinRequestParameters) error + func (api *API) BanChatMember(params *BanChatMemberParameters) error + func (api *API) BanChatSenderChat(params *BanChatSenderChatParameters) error + func (api *API) Close() error + func (api *API) CopyMessage(params *CopyMessageParameters) (*MessageIDObject, error) + func (api *API) CreateChatInviteLink(params *CreateChatInviteLinkParameters) (*ChatInviteLink, error) + func (api *API) CreateNewStickerSet(params *CreateNewStickerSetParameters) error + func (api *API) DeclineChatJoinRequest(params *DeclineChatJoinRequestParameters) error + func (api *API) DeleteChatPhoto(params *DeleteChatPhotoParameters) error + func (api *API) DeleteChatStickerSet(params *DeleteChatStickerSetParameters) error + func (api *API) DeleteMessage(params *DeleteMessageParameters) error + func (api *API) DeleteMyCommands(params *DeleteMyCommandsParameters) error + func (api *API) DeleteStickerFromSet(params *DeleteStickerFromSetParameters) error + func (api *API) DeleteWebhook(params *DeleteWebhookParameters) error + func (api *API) EditChatInviteLink(params *EditChatInviteLinkParameters) (*ChatInviteLink, error) + func (api *API) EditMessageCaption(params *EditMessageCaptionParameters) (*Message, error) + func (api *API) EditMessageLiveLocation(params *EditMessageLiveLocationParameters) (*Message, error) + func (api *API) EditMessageMedia(params *EditMessageMediaParameters) (*Message, error) + func (api *API) EditMessageReplyMarkup(params *EditMessageReplyMarkupParameters) (*Message, error) + func (api *API) EditMessageText(params *EditMessageTextParameters) (*Message, error) + func (api *API) ExportChatInviteLink(params *ExportChatInviteLinkParameters) (string, error) + func (api *API) ForwardMessage(params *ForwardMessageParameters) (*Message, error) + func (api *API) GetChat(params *GetChatParameters) (*UserProfilePhotos, error) + func (api *API) GetChatAdministrators(params *GetChatAdministratorsParameters) ([]*ChatMember, error) + func (api *API) GetChatMember(params *GetChatMemberParameters) (*ChatMember, error) + func (api *API) GetChatMemberCount(params *GetChatMemberCountParameters) (int, error) + func (api *API) GetChatMenuButton(params *GetChatMenuButtonParameters) (*MenuButton, error) + func (api *API) GetFile(params *GetFileParameters) (*File, error) + func (api *API) GetGameHighScores(params *GetGameHighScoresParameters) ([]*GameHighScore, error) + func (api *API) GetMe() (*User, error) + func (api *API) GetMyCommands(params *GetMyCommandsParameters) ([]*BotCommand, error) + func (api *API) GetMyDefaultAdministratorRights(params *GetMyDefaultAdministratorRightsParameters) (*ChatAdministratorRights, error) + func (api *API) GetStickerSet(params *GetStickerSetParameters) (*StickerSet, error) + func (api *API) GetUpdates(params *GetUpdatesParameters) ([]*Update, error) + func (api *API) GetUserProfilePhotos(params *GetUserProfilePhotosParameters) (*UserProfilePhotos, error) + func (api *API) GetWebhookInfo() (*WebhookInfo, error) + func (api *API) LeaveChat(params *LeaveChatParameters) error + func (api *API) LogOut() error + func (api *API) PinChatMessage(params *PinChatMessageParameters) error + func (api *API) PromoteChatMember(params *PromoteChatMemberParameters) error + func (api *API) RestrictChatMember(params *RestrictChatMemberParameters) error + func (api *API) RevokeChatInviteLink(params *RevokeChatInviteLinkParameters) (*ChatInviteLink, error) + func (api *API) SendAnimation(params *SendAnimationParameters) (*Message, error) + func (api *API) SendAudio(params *SendAudioParameters) (*Message, error) + func (api *API) SendChatAction(params *SendChatActionParameters) error + func (api *API) SendContact(params *SendContactParameters) (*Message, error) + func (api *API) SendDice(params *SendDiceParameters) (*Message, error) + func (api *API) SendDocument(params *SendDocumentParameters) (*Message, error) + func (api *API) SendGame(params *SendGameParameters) (*Message, error) + func (api *API) SendInvoice(params *SendInvoiceParameters) (*Message, error) + func (api *API) SendLocation(params *SendLocationParameters) (*Message, error) + func (api *API) SendMediaGroup(params *SendMediaGroupParameters) ([]*Message, error) + func (api *API) SendMessage(params *SendMessageParameters) (*Message, error) + func (api *API) SendPhoto(params *SendPhotoParameters) (*Message, error) + func (api *API) SendPoll(params *SendPollParameters) (*Message, error) + func (api *API) SendSticker(params *SendStickerParameters) (*Message, error) + func (api *API) SendVenue(params *SendVenueParameters) (*Message, error) + func (api *API) SendVideo(params *SendVideoParameters) (*Message, error) + func (api *API) SendVideoNote(params *SendVideoNoteParameters) (*Message, error) + func (api *API) SendVoice(params *SendVoiceParameters) (*Message, error) + func (api *API) SetChatAdministratorCustomTitle(params *SetChatAdministratorCustomTitleParameters) error + func (api *API) SetChatDescription(params *SetChatDescriptionParameters) error + func (api *API) SetChatMenuButton(params *SetChatMenuButtonParameters) error + func (api *API) SetChatPhoto(params *SetChatPhotoParameters) error + func (api *API) SetChatStickerSet(params *SetChatStickerSetParameters) error + func (api *API) SetChatTitle(params *SetChatTitleParameters) error + func (api *API) SetGameScore(params *SetGameScoreParameters) (*Message, error) + func (api *API) SetMyCommands(params *SetMyCommandsParameters) error + func (api *API) SetMyDefaultAdministratorRights(params *SetMyDefaultAdministratorRightsParameters) error + func (api *API) SetPassportDataErrors(params *SetPassportDataErrorsParameters) error + func (api *API) SetStickerPositionInSet(params *SetStickerPositionInSetParameters) error + func (api *API) SetStickerSetThumb(params *SetStickerSetThumbParameters) error + func (api *API) SetWebhook(params *SetWebhookParameters) error + func (api *API) StopMessageLiveLocation(params *StopMessageLiveLocationParameters) (*Message, error) + func (api *API) StopPoll(params *StopPollParameters) (*Poll, error) + func (api *API) UnbanChatMember(params *UnbanChatMemberParameters) error + func (api *API) UnbanChatSenderChat(params *UnbanChatSenderChatParameters) error + func (api *API) UnpinAllChatMessages(params *UnpinAllChatMessagesParameters) error + func (api *API) UnpinChatMessage(params *UnpinChatMessageParameters) error + func (api *API) UploadStickerFile(params *UploadStickerFileParameters) (*File, error) + type AddStickerToSetParameters struct + Emojis string + MaskPosition *MaskPosition + Name StickerSetName + PNGSticker InputFile + TGSSticker InputFile + UserID UserID + WEBMSticker InputFile + type Animation struct + Duration int + FileID FileID + FileName string + FileSize int + FileUniqueID FileUniqueID + Height int + MimeType string + Thumb *PhotoSize + Width int + type AnswerCallbackQueryParameters struct + CacheTime int + CallbackQueryID CallbackQueryID + ShowAlert bool + Text string + URL string + type AnswerInlineQueryParameters struct + CacheTime int + InlineQueryID InlineQueryID + IsPersonal bool + NextOffset string + Results []*InlineQueryResult + SwitchPMParameter string + SwitchPMText string + type AnswerPreCheckoutQueryParameters struct + ErrorMessage string + OK bool + PreCheckoutQueryID PreCheckoutQueryID + type AnswerShippingQueryParameters struct + ErrorMessage string + OK bool + ShippingOptions []*ShippingOption + ShippingQueryID ShippingQueryID + type AnswerWebAppQueryParameters struct + Result *InlineQueryResult + WebAppQueryID WebAppQueryID + type ApproveChatJoinRequestParameters struct + ChatID ChatIDOrUsername + UserID UserID + type Audio struct + Duration int + FileID FileID + FileName string + FileSize int + FileUniqueID FileUniqueID + MimeType string + Performer string + Thumb *PhotoSize + Title string + type BanChatMemberParameters struct + ChatID ChatIDOrUsername + RevokeMessages bool + UntilDate int64 + UserID UserID + type BanChatSenderChatParameters struct + ChatID ChatIDOrUsername + SenderChatID ChatID + type BotCommand struct + Command string + Description string + type BotCommandScope struct + ChatID ChatIDOrUsername + Type BotCommandScopeType + UserID UserID + type BotCommandScopeType string + const BotCommandScopeTypeAllChatAdministrators + const BotCommandScopeTypeAllGroupChats + const BotCommandScopeTypeAllPrivateChats + const BotCommandScopeTypeChat + const BotCommandScopeTypeChatAdministrator + const BotCommandScopeTypeChatMember + const BotCommandScopeTypeDefault + type CallbackGame struct + type CallbackQuery struct + ChatInstance ChatInstance + Data string + From *User + GameShortName GameShortName + ID CallbackQueryID + InlineMessageID InlineMessageID + Message *Message + type CallbackQueryID string + type Chat struct + Bio string + CanSetStickerSet bool + Description string + FirstName string + HasPrivateForwards string + HasProtectedContent bool + ID ChatID + InviteLink string + LastName string + LinkedChatID ChatID + Location *ChatLocation + MessageAutoDeleteTime int + Permissions *ChatPermissions + Photo *ChatPhoto + PinnedMessage *Message + SlowModeDelay int + StickerSetName string + Title string + Type ChatType + Username Username + type ChatAction string + const ChatActionChooseSticker + const ChatActionFindLocation + const ChatActionRecordVideo + const ChatActionRecordVideoNote + const ChatActionRecordVoice + const ChatActionTyping + const ChatActionUploadDocument + const ChatActionUploadPhoto + const ChatActionUploadVideo + const ChatActionUploadVideoNote + const ChatActionUploadVoice + type ChatAdministratorRights struct + CanChangeInfo bool + CanDeleteMessages bool + CanEditMessages bool + CanInviteUsers bool + CanManageChat bool + CanManageVideoChats bool + CanPinMessages bool + CanPostMessages bool + CanPromoteMembers bool + CanRestrictMembers bool + IsAnonymous bool + type ChatID int64 + type ChatIDOrUsername interface + type ChatInstance string + type ChatInviteLink struct + CreatesJoinRequest bool + Creator *User + ExpireDate int64 + InviteLink string + IsPrimary bool + IsRevoked bool + MemberLimit int + Name string + PendingJoinRequestCount int + type ChatJoinRequest struct + Bio string + Chat *Chat + Date int64 + From *User + InviteLink *ChatInviteLink + type ChatLocation struct + Address string + Location *Location + type ChatMember struct + CanAddWebPagePreviews bool + CanBeEdited bool + CanChangeInfo bool + CanDeleteMessages bool + CanEditMessages bool + CanInviteUsers bool + CanManageChat bool + CanManageVideoChats bool + CanPinMessages bool + CanPostMessages bool + CanPromoteMembers bool + CanRestrictMembers bool + CanSendMediaMessages bool + CanSendMessages bool + CanSendOtherMessages bool + CanSendPolls bool + CustomTitle string + IsAnonymous bool + IsMember bool + Status ChatMemberStatus + UntilDate int64 + User *User + type ChatMemberStatus string + const ChatMemberStatusAdministrator + const ChatMemberStatusCreator + const ChatMemberStatusKicked + const ChatMemberStatusLeft + const ChatMemberStatusMember + const ChatMemberStatusRestricted + type ChatMemberUpdated struct + Chat *Chat + Date int64 + From *User + InviteLink *ChatInviteLink + NewChatMember *ChatMember + OldChatMember *ChatMember + type ChatPermissions struct + CanAddWebPagePreviews bool + CanChangeInfo bool + CanInviteUsers bool + CanPinMessages bool + CanSendMediaMessages bool + CanSendMessages bool + CanSendOtherMessages bool + CanSendPolls bool + type ChatPhoto struct + BigFileID FileID + BigFileUniqueID FileUniqueID + SmallFileID FileID + SmallFileUniqueID FileUniqueID + type ChatType string + const ChatTypeChannel + const ChatTypeGroup + const ChatTypePrivate + const ChatTypeSupergroup + type ChosenInlineResult struct + From *User + InlineMessageID InlineMessageID + Location *Location + Query string + ResultID InlineQueryResultID + type Contact struct + FirstName string + LastName string + PhoneNumber string + UserID UserID + VCard string + type CopyMessageParameters struct + AllowSendingWithoutReply bool + Caption string + CaptionEntities []*MessageEntity + ChatID ChatIDOrUsername + DisableNotification bool + FromChatID ChatIDOrUsername + MessageID MessageID + ParseMode ParseMode + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID bool + type CreateChatInviteLinkParameters struct + ChatID ChatIDOrUsername + CreatesJoinRequest bool + ExpireDate int64 + MemberLimit int + Name string + type CreateNewStickerSetParameters struct + ContainsMasks bool + Emojis string + MaskPosition *MaskPosition + Name StickerSetName + PNGSticker InputFile + TGSSticker InputFile + Title string + UserID UserID + WEBMSticker InputFile + type DeclineChatJoinRequestParameters struct + ChatID ChatIDOrUsername + UserID UserID + type DeleteChatPhotoParameters struct + ChatID ChatIDOrUsername + type DeleteChatStickerSetParameters struct + ChatID ChatIDOrUsername + type DeleteMessageParameters struct + ChatID ChatIDOrUsername + MessageID MessageID + type DeleteMyCommandsParameters struct + LanguageCode LanguageCode + Scope *BotCommandScope + type DeleteStickerFromSetParameters struct + Sticker FileID + type DeleteWebhookParameters struct + DropPendingUpdates bool + type Dice struct + Emoji string + Value int + type DiceEmoji string + const DiceEmojiBasketball + const DiceEmojiBowling + const DiceEmojiBullseye + const DiceEmojiGameDie + const DiceEmojiSlotMachine + const DiceEmojiSoccerBall + type Document struct + FileID FileID + FileName string + FileSize int + FileUniqueID FileUniqueID + MimeType string + Thumb *PhotoSize + type EditChatInviteLinkParameters struct + ChatID ChatIDOrUsername + CreatesJoinRequest bool + ExpireDate int64 + InviteLink string + MemberLimit int + Name string + type EditMessageCaptionParameters struct + Caption string + CaptionEntities []*MessageEntity + ChatID ChatIDOrUsername + InlineMessageID InlineMessageID + MessageID MessageID + ParseMode ParseMode + ReplyMarkup *InlineKeyboardMarkup + type EditMessageLiveLocationParameters struct + ChatID ChatIDOrUsername + Heading int + HorizontalAccuracy float64 + InlineMessageID InlineMessageID + Latitude float64 + Longitude float64 + MessageID MessageID + ProximityAlertRadius int + ReplyMarkup *InlineKeyboardMarkup + type EditMessageMediaParameters struct + ChatID ChatIDOrUsername + InlineMessageID InlineMessageID + Media *InputMedia + MessageID MessageID + ReplyMarkup *InlineKeyboardMarkup + type EditMessageReplyMarkupParameters struct + ChatID ChatIDOrUsername + InlineMessageID InlineMessageID + MessageID MessageID + ReplyMarkup *InlineKeyboardMarkup + type EditMessageTextParameters struct + ChatID ChatIDOrUsername + DisableWebPagePreview bool + Entities []*MessageEntity + InlineMessageID InlineMessageID + MessageID MessageID + ParseMode ParseMode + ReplyMarkup *InlineKeyboardMarkup + Text string + type EncryptedCredentials struct + Data string + Hash string + Secret string + type EncryptedPassportElement struct + Data string + Email string + Files []*PassportFile + FrontSide *PassportFile + Hash string + PhoneNumber string + ReverseSide *PassportFile + Selfie *PassportFile + Translation []*PassportFile + Type PassportElementType + type ExportChatInviteLinkParameters struct + ChatID ChatIDOrUsername + type File struct + FileID FileID + FilePath string + FileSize int + FileUniqueID FileUniqueID + type FileID string + type FileReader struct + Name string + Reader io.Reader + func (fr *FileReader) MarshalJSON() ([]byte, error) + type FileURL string + type FileUniqueID string + type ForceReply struct + ForceReply bool + InputFieldPlaceholder string + Selective bool + type ForwardMessageParameters struct + ChatID ChatIDOrUsername + DisableNotification bool + FromChatID ChatIDOrUsername + MessageID MessageID + ProtectContent bool + type Game struct + Animation *Animation + Description string + Photo []*PhotoSize + RTxtEntities []*MessageEntity + Text string + Title string + type GameHighScore struct + Position int + Score int + User *User + type GameShortName string + type GetChatAdministratorsParameters struct + ChatID ChatIDOrUsername + type GetChatMemberCountParameters struct + ChatID ChatIDOrUsername + type GetChatMemberParameters struct + ChatID ChatIDOrUsername + UserID UserID + type GetChatMenuButtonParameters struct + ChatID ChatID + type GetChatParameters struct + ChatID ChatIDOrUsername + type GetFileParameters struct + FileID FileID + type GetGameHighScoresParameters struct + ChatID ChatID + InlineMessageID InlineMessageID + MessageID MessageID + UserID UserID + type GetMyCommandsParameters struct + LanguageCode LanguageCode + Scope *BotCommandScope + type GetMyDefaultAdministratorRightsParameters struct + ForChannels bool + type GetStickerSetParameters struct + Name StickerSetName + type GetUpdatesParameters struct + AllowedUpdates []UpdateType + Limit int + Offset UpdateID + Timeout int + type GetUserProfilePhotosParameters struct + Limit int + Offset int + UserID UserID + type InlineKeyboardButton struct + CallbackData string + CallbackGame *CallbackGame + LoginURL *LoginURL + Pay bool + SwitchInlineQuery string + SwitchInlineQueryCurrentChat string + Text string + URL string + WebApp *WebAppInfo + type InlineKeyboardMarkup struct + InlineKeyboard [][]*InlineKeyboardButton + type InlineMessageID string + type InlineQuery struct + ChatType InlineQueryChatType + From *User + ID InlineQueryID + Location *Location + Offset string + Query string + type InlineQueryChatType ChatType + const InlineQueryChatTypeChannel + const InlineQueryChatTypeGroup + const InlineQueryChatTypePrivate + const InlineQueryChatTypeSender + const InlineQueryChatTypeSupergroup + type InlineQueryID string + type InlineQueryResult struct + Address string + AudioDuration int + AudioFileID FileID + AudioURL string + Caption string + CaptionEntities []*MessageEntity + Description string + DocumentFileID FileID + DocumentURL string + FirstName string + FoursquareID string + FoursquareType string + GameShortName GameShortName + GifDuration int + GifFileID FileID + GifHeight int + GifURL string + GifWidth int + GooglePlaceID string + GooglePlaceType string + Heading int + HideURL bool + HorizontalAccuracy float64 + ID InlineQueryResultID + InputMessageContent *InputMessageContent + LastName string + Latitude float64 + LivePeriod int + Longitude float64 + MimeType string + Mpeg4Duration int + Mpeg4FileID FileID + Mpeg4Height int + Mpeg4URL string + Mpeg4Width int + ParseMode ParseMode + Performer string + PhoneNumber string + PhotoFileID FileID + PhotoURL string + ProximityAlertRadius int + ReplyMarkup *InlineKeyboardMarkup + StickerFileID FileID + ThumbHeight int + ThumbMimeType string + ThumbURL string + ThumbWidth int + Title string + Type InlineQueryResultType + URL string + VCard string + VideoDuration int + VideoFileID FileID + VideoHeight int + VideoURL string + VideoWidth int + VoiceFileID FileID + VoiceURL string + type InlineQueryResultID string + type InlineQueryResultType string + const InlineQueryResultTypeArticle + const InlineQueryResultTypeAudio + const InlineQueryResultTypeContact + const InlineQueryResultTypeDocument + const InlineQueryResultTypeGame + const InlineQueryResultTypeGif + const InlineQueryResultTypeLocation + const InlineQueryResultTypeMpeg4Gif + const InlineQueryResultTypePhoto + const InlineQueryResultTypeSticker + const InlineQueryResultTypeVenue + const InlineQueryResultTypeVideo + const InlineQueryResultTypeVoice + type InputFile interface + type InputMedia struct + Caption string + CaptionEntities []*MessageEntity + DisableContentTypeDetection bool + Duration int + Height int + Media InputFile + ParseMode ParseMode + Performer int + SupportsStreaming bool + Thumb InputFile + Title int + Type InputMediaType + Width int + type InputMediaType string + const InputMediaTypeAnimation + const InputMediaTypeAudio + const InputMediaTypeDocument + const InputMediaTypePhoto + const InputMediaTypeVideo + type InputMessageContent struct + Address string + Currency string + Description string + DisableWebPagePreview bool + Entities []*MessageEntity + FirstName string + FoursquareID string + FoursquareType string + GooglePlaceID string + GooglePlaceType string + Heading int + HorizontalAccuracy float64 + IsFlexible bool + LastName string + Latitude float64 + LiveOeriod int + Longitude float64 + MaxTipAmount int + MessageText string + NeedEmail bool + NeedName bool + NeedPhoneNumber bool + NeedShippingAddress bool + ParseMode ParseMode + Payload string + PhoneNumber string + PhotoHeight int + PhotoSize int + PhotoURL string + PhotoWidth int + Prices []*LabeledPrice + ProviderData string + ProviderToken string + ProximityAlertRadius int + SendEmailToProvider bool + SendPhoneNumberToProvider bool + SuggestedTipAmounts []int + Title string + VCard string + type Invoice struct + Currency string + Description string + StartParameter string + Title string + TotalAmount int + type KeyboardButton struct + RequestContact bool + RequestLocation bool + RequestPoll *KeyboardButtonPollType + Text string + WebApp *WebAppInfo + type KeyboardButtonPollType struct + Type PollType + type LabeledPrice struct + Amount int + Label string + type LanguageCode string + const LanguageCodeBelarusian + const LanguageCodeCatalan + const LanguageCodeDutch + const LanguageCodeEnglish + const LanguageCodeFrench + const LanguageCodeGerman + const LanguageCodeItalian + const LanguageCodeKorean + const LanguageCodeMalay + const LanguageCodePolish + const LanguageCodePortuguese + const LanguageCodeRussian + const LanguageCodeSpanish + const LanguageCodeTurkish + const LanguageCodeUkrainian + type LeaveChatParameters struct + ChatID ChatIDOrUsername + type Location struct + Heading int + HorizontalAccuracy float64 + Latitude float64 + LivePeriod int + Longitude float64 + ProximityAlertRadius int + type LoginURL struct + BotUsername Username + ForwardText string + RequestWriteAccess bool + URL string + type MaskPosition struct + Point MaskPositionPoint + Scale float64 + XShift float64 + YShift float64 + type MaskPositionPoint string + const MaskPositionPointChin + const MaskPositionPointEyes + const MaskPositionPointForehead + const MaskPositionPointMounth + type MenuButton struct + Text string + Type MenuButtonType + WebApp *WebAppInfo + type MenuButtonType string + const MenuButtonTypeCommands + const MenuButtonTypeDefault + const MenuButtonTypeWebApp + type Message struct + Animation *Animation + Audio *Audio + AuthorSignature string + Caption string + CaptionEntities []*MessageEntity + ChannelChatCreated bool + Chat *Chat + ConnectedWebsite string + Contact *Contact + Date int64 + DeleteChatPhoto bool + Dice *Dice + Document *Document + EditDate int64 + Entities []*MessageEntity + ForwardDate int64 + ForwardFrom *User + ForwardFromChat *Chat + ForwardFromMessageID MessageID + ForwardSenderName string + ForwardSignature string + From *User + Game *Game + GroupChatCreated bool + HasProtectedContent bool + Invoice *Invoice + IsAutomaticForward bool + LeftChatMember *User + Location *Location + MediaGroupID string + MessageAutoDeleteTimerChanged *MessageAutoDeleteTimerChanged + MessageID MessageID + MigrateFromChatID ChatID + MigrateToChatID ChatID + 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 bool + Text string + Venue *Venue + ViaBot *User + Video *Video + VideoChatEnded *VideoChatEnded + VideoChatParticipantsInvited *VideoChatParticipantsInvited + VideoChatScheduled *VideoChatScheduled + VideoChatStarted *VideoChatStarted + VideoNote *VideoNote + Voice *Voice + WebAppData *WebAppData + type MessageAutoDeleteTimerChanged struct + MessageAutoDeleteTime int + type MessageEntity struct + Language string + Length int + Offset int + Type MessageEntityType + URL string + User *User + type MessageEntityType string + const MessageEntityTypeBold + const MessageEntityTypeBotCommand + const MessageEntityTypeCashtag + const MessageEntityTypeCode + const MessageEntityTypeEmail + const MessageEntityTypeHashtag + const MessageEntityTypeItalic + const MessageEntityTypeMention + const MessageEntityTypePhoneNumber + const MessageEntityTypePre + const MessageEntityTypeSpoiler + const MessageEntityTypeStrikethrough + const MessageEntityTypeTextLink + const MessageEntityTypeTextMention + const MessageEntityTypeURL + const MessageEntityTypeUnderline + type MessageID int + type MessageIDObject struct + MessageID MessageID + type OrderInfo struct + Email string + Name string + PhoneNumber string + ShippingAddress *ShippingAddress + type ParseMode string + const ParseModeHTML + const ParseModeMarkdown + const ParseModeMarkdownV2 + type PassportData struct + Credentials *EncryptedCredentials + Data []*EncryptedPassportElement + type PassportElementError struct + DataHash string + ElementHash string + FieldName string + FileHash string + FileHashes []string + Message string + Source PassportElementErrorSource + Type PassportElementType + type PassportElementErrorSource string + const PassportElementErrorSourceData + const PassportElementErrorSourceFile + const PassportElementErrorSourceFiles + const PassportElementErrorSourceFrontSide + const PassportElementErrorSourceReverseSide + const PassportElementErrorSourceSelfie + const PassportElementErrorSourceTranslationFile + const PassportElementErrorSourceTranslationFiles + const PassportElementErrorSourceUnspecified + type PassportElementType string + const PassportElementTypeAddress + const PassportElementTypeBankStatement + const PassportElementTypeDriverLicense + const PassportElementTypeEmail + const PassportElementTypeIdentityCard + const PassportElementTypeInternalPassport + const PassportElementTypePassport + const PassportElementTypePassportRegistration + const PassportElementTypePersonalDetails + const PassportElementTypePhoneNumber + const PassportElementTypeRentalAgreement + const PassportElementTypeTemporaryRegistration + const PassportElementTypeUtilityBill + type PassportFile struct + FileDate int64 + FileID FileID + FileSize int + FileUniqueID FileUniqueID + type PhotoSize struct + FileID FileID + FileSize int + FileUniqueID FileUniqueID + Height int + Width int + type PinChatMessageParameters struct + ChatID ChatIDOrUsername + DisableNotification bool + MessageID MessageID + type Poll struct + AllowsMultipleAnswers bool + CloseDate int64 + CorrectOptionID int + Explanation string + ExplanationEntities []*MessageEntity + ID PollID + IsAnonymous bool + IsClosed bool + OpenPeriod int + Options []*PollOption + Question string + TotalVoterCount int + Type PollType + type PollAnswer struct + OptionIDs []int + PollID PollID + User *User + type PollID string + type PollOption struct + Text string + VoterCount int + type PollType string + const PollTypeQuiz + const PollTypeRegular + type PreCheckoutQuery struct + Currency string + From *User + ID PreCheckoutQueryID + InvoicePayload string + OrderInfo *OrderInfo + ShippingOptionID ShippingOptionID + TotalAmount int + type PreCheckoutQueryID string + type PromoteChatMemberParameters struct + CanChangeInfo bool + CanDeleteMessages bool + CanEditMessages bool + CanInviteUsers bool + CanManageChat bool + CanManageVideoChats bool + CanPinMessages bool + CanPostMessages bool + CanPromoteMembers bool + CanRestrictMembers bool + ChatID ChatIDOrUsername + IsAnonymous bool + UserID UserID + type ProximityAlertTriggered struct + Distance int + Traveler *User + Watcher *User + type ReplyKeyboardMarkup struct + InputFieldPlaceholder string + Keyboard [][]*KeyboardButton + OneTimeKeyboard bool + ResizeKeyboard bool + Selective bool + type ReplyKeyboardRemove struct + RemoveKeyboard bool + Selective bool + type ReplyMarkup interface + type RestrictChatMemberParameters struct + ChatID ChatIDOrUsername + Permissions *ChatPermissions + UntilDate int64 + UserID UserID + type RevokeChatInviteLinkParameters struct + ChatID ChatIDOrUsername + InviteLink string + type SendAnimationParameters struct + AllowSendingWithoutReply bool + Animation InputFile + Caption string + CaptionEntities []*MessageEntity + ChatID ChatIDOrUsername + DisableContentTypeDetection bool + DisableNotification bool + Duration int + Height int + ParseMode ParseMode + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID bool + Thumb InputFile + Width int + type SendAudioParameters struct + AllowSendingWithoutReply bool + Audio InputFile + Caption string + CaptionEntities []*MessageEntity + ChatID ChatIDOrUsername + DisableNotification bool + Duration int + ParseMode ParseMode + Performer string + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID bool + Thumb InputFile + Title string + type SendChatActionParameters struct + Action ChatAction + ChatID ChatIDOrUsername + type SendContactParameters struct + AllowSendingWithoutReply bool + ChatID ChatIDOrUsername + DisableNotification bool + FirstName string + LastName string + PhoneNumber string + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID bool + VCard string + type SendDiceParameters struct + AllowSendingWithoutReply bool + ChatID ChatIDOrUsername + DisableNotification bool + Emoji DiceEmoji + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID bool + type SendDocumentParameters struct + AllowSendingWithoutReply bool + Caption string + CaptionEntities []*MessageEntity + ChatID ChatIDOrUsername + DisableContentTypeDetection bool + DisableNotification bool + Document InputFile + ParseMode ParseMode + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID bool + Thumb InputFile + type SendGameParameters struct + AllowSendingWithoutReply bool + ChatID ChatID + DisableNotification bool + GameShortName GameShortName + ProtectContent bool + ReplyMarkup *InlineKeyboardMarkup + ReplyToMessageID MessageID + type SendInvoiceParameters struct + AllowSendingWithoutReply bool + ChatID ChatIDOrUsername + Currency string + Description string + DisableNotification bool + IsFlexible bool + MaxTipAmount int + NeedEmail bool + NeedName bool + NeedPhoneNumber bool + NeedShippingAddress bool + Payload string + PhotoHeight int + PhotoSize int + PhotoURL string + PhotoWidth int + Prices []*LabeledPrice + ProtectContent bool + ProviderData string + ProviderToken string + ReplyMarkup *InlineKeyboardMarkup + ReplyToMessageID MessageID + SendEmailToProvider bool + SendPhoneNumberToProvider bool + StartParameter string + SuggestedTipAmounts []int + Title string + type SendLocationParameters struct + AllowSendingWithoutReply bool + ChatID ChatIDOrUsername + DisableNotification bool + Heading int + HorizontalAccuracy float64 + Latitude float64 + LivePeriod int + Longitude float64 + ProtectContent bool + ProximityAlertRadius int + ReplyMarkup ReplyMarkup + ReplyToMessageID bool + type SendMediaGroupParameters struct + AllowSendingWithoutReply bool + ChatID ChatIDOrUsername + DisableNotification bool + Media []*InputMedia + ProtectContent bool + ReplyToMessageID bool + type SendMessageParameters struct + AllowSendingWithoutReply bool + ChatID ChatIDOrUsername + DisableNotification bool + DisableWebPagePreview bool + Entities []*MessageEntity + ParseMode ParseMode + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID MessageID + Text string + type SendPhotoParameters struct + AllowSendingWithoutReply bool + Caption string + CaptionEntities []*MessageEntity + ChatID ChatIDOrUsername + DisableNotification bool + ParseMode ParseMode + Photo InputFile + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID bool + type SendPollParameters struct + AllowSendingWithoutReply bool + AllowsMultipleAnswers bool + ChatID ChatIDOrUsername + CloseDate int64 + CorrectOptionID int + DisableNotification bool + Explanation string + ExplanationEntities []*MessageEntity + ExplanationParseMode ParseMode + IsAnonymous bool + IsClosed bool + OpenPeriod int + Options []string + ProtectContent bool + Question string + ReplyMarkup ReplyMarkup + ReplyToMessageID bool + Type PollType + type SendStickerParameters struct + AllowSendingWithoutReply bool + ChatID ChatIDOrUsername + DisableNotification bool + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID MessageID + Sticker InputFile + type SendVenueParameters struct + Address string + AllowSendingWithoutReply bool + ChatID ChatIDOrUsername + DisableNotification bool + FoursquareID string + FoursquareType string + GooglePlaceID string + GooglePlaceType string + Latitude float64 + Longitude float64 + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID bool + Title string + type SendVideoNoteParameters struct + AllowSendingWithoutReply bool + Caption string + CaptionEntities []*MessageEntity + ChatID ChatIDOrUsername + DisableContentTypeDetection bool + DisableNotification bool + Duration int + Length int + ParseMode ParseMode + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID bool + Thumb InputFile + VideoNote InputFile + type SendVideoParameters struct + AllowSendingWithoutReply bool + Caption string + CaptionEntities []*MessageEntity + ChatID ChatIDOrUsername + DisableContentTypeDetection bool + DisableNotification bool + Duration int + Height int + ParseMode ParseMode + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID bool + Thumb InputFile + Video InputFile + Width int + type SendVoiceParameters struct + AllowSendingWithoutReply bool + Caption string + CaptionEntities []*MessageEntity + ChatID ChatIDOrUsername + DisableContentTypeDetection bool + DisableNotification bool + Duration int + ParseMode ParseMode + ProtectContent bool + ReplyMarkup ReplyMarkup + ReplyToMessageID bool + Voice InputFile + type SentWebAppMessage struct + InlineMessageID InlineMessageID + type SetChatAdministratorCustomTitleParameters struct + ChatID ChatIDOrUsername + CustomTitle string + UserID UserID + type SetChatDescriptionParameters struct + ChatID ChatIDOrUsername + Description string + type SetChatMenuButtonParameters struct + ChatID ChatID + MenuButton *MenuButton + type SetChatPhotoParameters struct + ChatID ChatIDOrUsername + Photo InputFile + type SetChatStickerSetParameters struct + ChatID ChatIDOrUsername + StickerSetName StickerSetName + type SetChatTitleParameters struct + ChatID ChatIDOrUsername + Title string + type SetGameScoreParameters struct + ChatID ChatID + DisableEditMessage bool + Force bool + InlineMessageID InlineMessageID + MessageID MessageID + Score int + UserID UserID + type SetMyCommandsParameters struct + Commands []*BotCommand + LanguageCode LanguageCode + Scope *BotCommandScope + type SetMyDefaultAdministratorRightsParameters struct + ForChannels bool + Rights *ChatAdministratorRights + type SetPassportDataErrorsParameters struct + Errors []*PassportElementError + UserID UserID + type SetStickerPositionInSetParameters struct + Position int + Sticker FileID + type SetStickerSetThumbParameters struct + Name StickerSetName + Thumb InputFile + UserID UserID + type SetWebhookParameters struct + AllowedUpdates []UpdateType + Certificate InputFile + DropPendingUpdates bool + IPAddress string + MaxConnections int + URL bool + type ShippingAddress struct + City string + Country_code string + PostCode string + State string + StreetLine1 string + StreetLine2 string + type ShippingOption struct + ID ShippingOptionID + Prices []*LabeledPrice + Title string + type ShippingOptionID string + type ShippingQuery struct + From *User + ID ShippingQueryID + InvoicePayload string + ShippingAddress *ShippingAddress + type ShippingQueryID string + type Sticker struct + Emoji string + FileID FileID + FileSize int + FileUniqueID FileUniqueID + Height int + IsAnimated bool + IsVideo bool + MaskPosition *MaskPosition + SetName StickerSetName + Thumb *PhotoSize + Width int + type StickerSet struct + ContainsMasks bool + IsAnimated bool + IsVideo bool + Name StickerSetName + Stickers []*Sticker + Thumb *PhotoSize + Title string + type StickerSetName string + type StopMessageLiveLocationParameters struct + ChatID ChatIDOrUsername + InlineMessageID InlineMessageID + MessageID MessageID + ReplyMarkup *InlineKeyboardMarkup + type StopPollParameters struct + ChatID ChatIDOrUsername + MessageID MessageID + ReplyMarkup *InlineKeyboardMarkup + type SuccessfulPayment struct + Currency string + InvoicePayload string + OrderInfo *OrderInfo + ProviderPaymentChargeID string + ShippingOptionID ShippingOptionID + TelegramPaymentChargeID string + TotalAmount int + type UnbanChatMemberParameters struct + ChatID ChatIDOrUsername + OnlyIfBanned bool + UserID UserID + type UnbanChatSenderChatParameters struct + ChatID ChatIDOrUsername + SenderChatID ChatID + type UnpinAllChatMessagesParameters struct + ChatID ChatIDOrUsername + type UnpinChatMessageParameters struct + ChatID ChatIDOrUsername + MessageID MessageID + 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 UpdateID + func SortUpdates(updates []*Update) []*Update + type UpdateID int + type UpdateType string + const UpdateTypeCallbackQuery + const UpdateTypeChannelPost + const UpdateTypeChatJoinRequest + const UpdateTypeChatMember + const UpdateTypeChosenInlineResult + const UpdateTypeEditedChannelPost + const UpdateTypeEditedMessage + const UpdateTypeInlineQuery + const UpdateTypeMessage + const UpdateTypeMyChatMember + const UpdateTypePoll + const UpdateTypePollAnswer + const UpdateTypePreCheckoutQuery + const UpdateTypeShippingQuery + type UploadStickerFileParameters struct + PNGSticker InputFile + UserID UserID + type User struct + CanJoinGroups bool + CanReadAllGroupMessages bool + FirstName string + ID UserID + IsBot bool + LanguageCode LanguageCode + LastName string + SupportsInlineQueries bool + Username Username + type UserID ChatID + type UserProfilePhotos struct + Photos [][]*PhotoSize + TotalCount int + type Username string + type Venue struct + Address string + Foursquare_id string + Foursquare_type string + GooglePlaceID string + GooglePlaceType string + Location *Location + Title string + type Video struct + Duration int + FileID FileID + FileName string + FileSize int + FileUniqueID FileUniqueID + Height int + MimeType string + Thumb *PhotoSize + Width int + type VideoChatEnded struct + Duration int + type VideoChatParticipantsInvited struct + Users []*User + type VideoChatScheduled struct + StartDate int64 + type VideoChatStarted struct + type VideoNote struct + Duration int + FileID FileID + FileSize int + FileUniqueID FileUniqueID + Length int + Thumb *PhotoSize + type Voice struct + Duration int + FileID FileID + FileSize int + FileUniqueID FileUniqueID + MimeType string + type WebAppData struct + ButtonText string + Data string + type WebAppInfo struct + URL string + type WebAppQueryID string + type WebhookInfo struct + AllowedUpdates []UpdateType + HasCustomCertificate bool + IPAddress string + LastErrorDate int64 + LastErrorMessage string + LastSynchronizationErrorDate int64 + MaxConnections int + PendingUpdateCount int + URL string