Versions in this module Expand all Collapse all v1 v1.2.0 Apr 11, 2024 Changes in this version + var ErrorBadRequest = errors.New("bad request") + var ErrorConflict = errors.New("conflict") + var ErrorForbidden = errors.New("forbidden") + var ErrorNotFound = errors.New("not found") + var ErrorTooManyRequests = errors.New("too many requests") + var ErrorUnauthorized = errors.New("unauthorized") + func EscapeMarkdown(s string) string + func EscapeMarkdownUnescaped(s string) string + func False() *bool + func IsMigrateError(err error) bool + func IsTooManyRequestsError(err error) bool + func RandomString(n int) string + func True() *bool + type AddStickerToSetParams struct + Name string + Sticker models.InputSticker + UserID int64 + type AllowedUpdates []string + type AnswerCallbackQueryParams struct + CacheTime int + CallbackQueryID string + ShowAlert bool + Text string + URL string + type AnswerInlineQueryParams struct + Button *models.InlineQueryResultsButton + CacheTime int + InlineQueryID string + IsPersonal bool + NextOffset string + Results []models.InlineQueryResult + type AnswerPreCheckoutQueryParams struct + ErrorMessage string + OK bool + PreCheckoutQueryID string + type AnswerShippingQueryParams struct + ErrorMessage string + OK bool + ShippingOptions []models.ShippingOption + ShippingQueryID string + type AnswerWebAppQueryParams struct + Result models.InlineQueryResult + WebAppQueryID string + type ApproveChatJoinRequestParams struct + ChatID any + UserID int64 + type BanChatMemberParams struct + ChatID any + RevokeMessages bool + UntilDate int + UserID int64 + type BanChatSenderChatParams struct + ChatID any + SenderChatID int + type Bot struct + func New(token string, options ...Option) (*Bot, error) + func (b *Bot) AddStickerToSet(ctx context.Context, params *AddStickerToSetParams) (bool, error) + func (b *Bot) AnswerCallbackQuery(ctx context.Context, params *AnswerCallbackQueryParams) (bool, error) + func (b *Bot) AnswerInlineQuery(ctx context.Context, params *AnswerInlineQueryParams) (bool, error) + func (b *Bot) AnswerPreCheckoutQuery(ctx context.Context, params *AnswerPreCheckoutQueryParams) (bool, error) + func (b *Bot) AnswerShippingQuery(ctx context.Context, params *AnswerShippingQueryParams) (bool, error) + func (b *Bot) AnswerWebAppQuery(ctx context.Context, params *AnswerWebAppQueryParams) (*models.SentWebAppMessage, error) + func (b *Bot) ApproveChatJoinRequest(ctx context.Context, params *ApproveChatJoinRequestParams) (bool, error) + func (b *Bot) BanChatMember(ctx context.Context, params *BanChatMemberParams) (bool, error) + func (b *Bot) BanChatSenderChat(ctx context.Context, params *BanChatSenderChatParams) (bool, error) + func (b *Bot) Close(ctx context.Context) (bool, error) + func (b *Bot) CloseForumTopic(ctx context.Context, params *CloseForumTopicParams) (bool, error) + func (b *Bot) CloseGeneralForumTopic(ctx context.Context, params *CloseGeneralForumTopicParams) (bool, error) + func (b *Bot) CopyMessage(ctx context.Context, params *CopyMessageParams) (*models.MessageID, error) + func (b *Bot) CopyMessages(ctx context.Context, params *CopyMessagesParams) ([]models.MessageID, error) + func (b *Bot) CreateChatInviteLink(ctx context.Context, params *CreateChatInviteLinkParams) (*models.ChatInviteLink, error) + func (b *Bot) CreateForumTopic(ctx context.Context, params *CreateForumTopicParams) (*models.ForumTopic, error) + func (b *Bot) CreateInvoiceLink(ctx context.Context, params *CreateInvoiceLinkParams) (string, error) + func (b *Bot) CreateNewStickerSet(ctx context.Context, params *CreateNewStickerSetParams) (bool, error) + func (b *Bot) DeclineChatJoinRequest(ctx context.Context, params *DeclineChatJoinRequestParams) (bool, error) + func (b *Bot) DeleteChatPhoto(ctx context.Context, params *DeleteChatPhotoParams) (bool, error) + func (b *Bot) DeleteChatStickerSet(ctx context.Context, params *DeleteChatStickerSetParams) (bool, error) + func (b *Bot) DeleteForumTopic(ctx context.Context, params *DeleteForumTopicParams) (bool, error) + func (b *Bot) DeleteMessage(ctx context.Context, params *DeleteMessageParams) (bool, error) + func (b *Bot) DeleteMessages(ctx context.Context, params *DeleteMessagesParams) (bool, error) + func (b *Bot) DeleteMyCommands(ctx context.Context, params *DeleteMyCommandsParams) (bool, error) + func (b *Bot) DeleteStickerFromSet(ctx context.Context, params *DeleteStickerFromSetParams) (bool, error) + func (b *Bot) DeleteStickerSet(ctx context.Context, params *DeleteStickerSetParams) (bool, error) + func (b *Bot) DeleteWebhook(ctx context.Context, params *DeleteWebhookParams) (bool, error) + func (b *Bot) EditChatInviteLink(ctx context.Context, params *EditChatInviteLinkParams) (*models.ChatInviteLink, error) + func (b *Bot) EditForumTopic(ctx context.Context, params *EditForumTopicParams) (bool, error) + func (b *Bot) EditGeneralForumTopic(ctx context.Context, params *EditGeneralForumTopicParams) (bool, error) + func (b *Bot) EditMessageCaption(ctx context.Context, params *EditMessageCaptionParams) (*models.Message, error) + func (b *Bot) EditMessageLiveLocation(ctx context.Context, params *EditMessageLiveLocationParams) (*models.Message, error) + func (b *Bot) EditMessageMedia(ctx context.Context, params *EditMessageMediaParams) (*models.Message, error) + func (b *Bot) EditMessageReplyMarkup(ctx context.Context, params *EditMessageReplyMarkupParams) (*models.Message, error) + func (b *Bot) EditMessageText(ctx context.Context, params *EditMessageTextParams) (*models.Message, error) + func (b *Bot) ExportChatInviteLink(ctx context.Context, params *ExportChatInviteLinkParams) (string, error) + func (b *Bot) FileDownloadLink(f *models.File) string + func (b *Bot) ForwardMessage(ctx context.Context, params *ForwardMessageParams) (*models.Message, error) + func (b *Bot) ForwardMessages(ctx context.Context, params *ForwardMessagesParams) ([]models.MessageID, error) + func (b *Bot) GetChat(ctx context.Context, params *GetChatParams) (*models.Chat, error) + func (b *Bot) GetChatAdministrators(ctx context.Context, params *GetChatAdministratorsParams) ([]models.ChatMember, error) + func (b *Bot) GetChatMember(ctx context.Context, params *GetChatMemberParams) (*models.ChatMember, error) + func (b *Bot) GetChatMemberCount(ctx context.Context, params *GetChatMemberCountParams) (int, error) + func (b *Bot) GetChatMenuButton(ctx context.Context, params *GetChatMenuButtonParams) (models.MenuButton, error) + func (b *Bot) GetCustomEmojiStickers(ctx context.Context, params *GetCustomEmojiStickersParams) ([]*models.Sticker, error) + func (b *Bot) GetFile(ctx context.Context, params *GetFileParams) (*models.File, error) + func (b *Bot) GetForumTopicIconStickers(ctx context.Context) ([]*models.Sticker, error) + func (b *Bot) GetGameHighScores(ctx context.Context, params *GetGameHighScoresParams) (*models.GameHighScore, error) + func (b *Bot) GetMe(ctx context.Context) (*models.User, error) + func (b *Bot) GetMyCommands(ctx context.Context, params *GetMyCommandsParams) ([]models.BotCommand, error) + func (b *Bot) GetMyDefaultAdministratorRights(ctx context.Context, params *GetMyDefaultAdministratorRightsParams) (*models.ChatAdministratorRights, error) + func (b *Bot) GetMyDescription(ctx context.Context, params *GetMyDescriptionParams) (models.BotDescription, error) + func (b *Bot) GetMyName(ctx context.Context, params *GetMyNameParams) (models.BotName, error) + func (b *Bot) GetMyShortDescription(ctx context.Context, params *GetMyShortDescriptionParams) (models.BotShortDescription, error) + func (b *Bot) GetStickerSet(ctx context.Context, params *GetStickerSetParams) (*models.StickerSet, error) + func (b *Bot) GetUserChatBoosts(ctx context.Context, params *GetUserChatBoostsParams) (*models.UserChatBoosts, error) + func (b *Bot) GetUserProfilePhotos(ctx context.Context, params *GetUserProfilePhotosParams) (*models.UserProfilePhotos, error) + func (b *Bot) GetWebhookInfo(ctx context.Context) (*models.WebhookInfo, error) + func (b *Bot) HideGeneralForumTopic(ctx context.Context, params *HideGeneralForumTopicParams) (bool, error) + func (b *Bot) LeaveChat(ctx context.Context, params *LeaveChatParams) (bool, error) + func (b *Bot) Logout(ctx context.Context) (bool, error) + func (b *Bot) PinChatMessage(ctx context.Context, params *PinChatMessageParams) (bool, error) + func (b *Bot) ProcessUpdate(ctx context.Context, upd *models.Update) + func (b *Bot) PromoteChatMember(ctx context.Context, params *PromoteChatMemberParams) (bool, error) + func (b *Bot) RegisterHandler(handlerType HandlerType, pattern string, matchType MatchType, f HandlerFunc) string + func (b *Bot) RegisterHandlerMatchFunc(matchFunc MatchFunc, f HandlerFunc) string + func (b *Bot) RegisterHandlerRegexp(handlerType HandlerType, re *regexp.Regexp, f HandlerFunc) string + func (b *Bot) ReopenForumTopic(ctx context.Context, params *ReopenForumTopicParams) (bool, error) + func (b *Bot) ReopenGeneralForumTopic(ctx context.Context, params *ReopenGeneralForumTopicParams) (bool, error) + func (b *Bot) ReplaceStickerInSet(ctx context.Context, params *ReplaceStickerInSetParams) (bool, error) + func (b *Bot) RestrictChatMember(ctx context.Context, params *RestrictChatMemberParams) (bool, error) + func (b *Bot) RevokeChatInviteLink(ctx context.Context, params *RevokeChatInviteLinkParams) (*models.ChatInviteLink, error) + func (b *Bot) SendAnimation(ctx context.Context, params *SendAnimationParams) (*models.Message, error) + func (b *Bot) SendAudio(ctx context.Context, params *SendAudioParams) (*models.Message, error) + func (b *Bot) SendChatAction(ctx context.Context, params *SendChatActionParams) (bool, error) + func (b *Bot) SendContact(ctx context.Context, params *SendContactParams) (*models.Message, error) + func (b *Bot) SendDice(ctx context.Context, params *SendDiceParams) (*models.Message, error) + func (b *Bot) SendDocument(ctx context.Context, params *SendDocumentParams) (*models.Message, error) + func (b *Bot) SendGame(ctx context.Context, params *SendGameParams) (*models.Message, error) + func (b *Bot) SendInvoice(ctx context.Context, params *SendInvoiceParams) (*models.Message, error) + func (b *Bot) SendLocation(ctx context.Context, params *SendLocationParams) (*models.Message, error) + func (b *Bot) SendMediaGroup(ctx context.Context, params *SendMediaGroupParams) ([]*models.Message, error) + func (b *Bot) SendMessage(ctx context.Context, params *SendMessageParams) (*models.Message, error) + func (b *Bot) SendPhoto(ctx context.Context, params *SendPhotoParams) (*models.Message, error) + func (b *Bot) SendPoll(ctx context.Context, params *SendPollParams) (*models.Message, error) + func (b *Bot) SendSticker(ctx context.Context, params *SendStickerParams) (*models.Message, error) + func (b *Bot) SendVenue(ctx context.Context, params *SendVenueParams) (*models.Message, error) + func (b *Bot) SendVideo(ctx context.Context, params *SendVideoParams) (*models.Message, error) + func (b *Bot) SendVideoNote(ctx context.Context, params *SendVideoNoteParams) (*models.Message, error) + func (b *Bot) SendVoice(ctx context.Context, params *SendVoiceParams) (*models.Message, error) + func (b *Bot) SetChatAdministratorCustomTitle(ctx context.Context, params *SetChatAdministratorCustomTitleParams) (bool, error) + func (b *Bot) SetChatDescription(ctx context.Context, params *SetChatDescriptionParams) (bool, error) + func (b *Bot) SetChatMenuButton(ctx context.Context, params *SetChatMenuButtonParams) (bool, error) + func (b *Bot) SetChatPermissions(ctx context.Context, params *SetChatPermissionsParams) (bool, error) + func (b *Bot) SetChatPhoto(ctx context.Context, params *SetChatPhotoParams) (bool, error) + func (b *Bot) SetChatStickerSet(ctx context.Context, params *SetChatStickerSetParams) (bool, error) + func (b *Bot) SetChatTitle(ctx context.Context, params *SetChatTitleParams) (bool, error) + func (b *Bot) SetCustomEmojiStickerSetThumbnail(ctx context.Context, params *SetCustomEmojiStickerSetThumbnailParams) (bool, error) + func (b *Bot) SetGameScore(ctx context.Context, params *SetGameScoreParams) (*models.Message, error) + func (b *Bot) SetMessageReaction(ctx context.Context, params *SetMessageReactionParams) (bool, error) + func (b *Bot) SetMyCommands(ctx context.Context, params *SetMyCommandsParams) (bool, error) + func (b *Bot) SetMyDefaultAdministratorRights(ctx context.Context, params *SetMyDefaultAdministratorRightsParams) (bool, error) + func (b *Bot) SetMyDescription(ctx context.Context, params *SetMyDescriptionParams) (bool, error) + func (b *Bot) SetMyName(ctx context.Context, params *SetMyNameParams) (bool, error) + func (b *Bot) SetMyShortDescription(ctx context.Context, params *SetMyShortDescriptionParams) (bool, error) + func (b *Bot) SetPassportDataErrors(ctx context.Context, params *SetPassportDataErrorsParams) (bool, error) + func (b *Bot) SetStickerEmojiList(ctx context.Context, params *SetStickerEmojiListParams) (bool, error) + func (b *Bot) SetStickerKeywords(ctx context.Context, params *SetStickerKeywordsParams) (bool, error) + func (b *Bot) SetStickerMaskPosition(ctx context.Context, params *SetStickerMaskPositionParams) (bool, error) + func (b *Bot) SetStickerPositionInSet(ctx context.Context, params *SetStickerPositionInSetParams) (bool, error) + func (b *Bot) SetStickerSetThumbnail(ctx context.Context, params *SetStickerSetThumbnailParams) (bool, error) + func (b *Bot) SetStickerSetTitle(ctx context.Context, params *SetStickerSetTitleParams) (bool, error) + func (b *Bot) SetWebhook(ctx context.Context, params *SetWebhookParams) (bool, error) + func (b *Bot) Start(ctx context.Context) + func (b *Bot) StartWebhook(ctx context.Context) + func (b *Bot) StopMessageLiveLocation(ctx context.Context, params *StopMessageLiveLocationParams) (*models.Message, error) + func (b *Bot) StopPoll(ctx context.Context, params *StopPollParams) (*models.Poll, error) + func (b *Bot) UnbanChatMember(ctx context.Context, params *UnbanChatMemberParams) (bool, error) + func (b *Bot) UnbanChatSenderChat(ctx context.Context, params *UnbanChatSenderChatParams) (bool, error) + func (b *Bot) UnhideGeneralForumTopic(ctx context.Context, params *UnhideGeneralForumTopicParams) (bool, error) + func (b *Bot) UnpinAllChatMessages(ctx context.Context, params *UnpinAllChatMessagesParams) (bool, error) + func (b *Bot) UnpinAllForumTopicMessages(ctx context.Context, params *UnpinAllForumTopicMessagesParams) (bool, error) + func (b *Bot) UnpinAllGeneralForumTopicMessages(ctx context.Context, params *UnpinAllGeneralForumTopicMessagesParams) (bool, error) + func (b *Bot) UnpinChatMessage(ctx context.Context, params *UnpinChatMessageParams) (bool, error) + func (b *Bot) UnregisterHandler(id string) + func (b *Bot) UploadStickerFile(ctx context.Context, params *UploadStickerFileParams) (*models.File, error) + func (b *Bot) WebhookHandler() http.HandlerFunc + type CloseForumTopicParams struct + ChatID any + MessageThreadID int + type CloseGeneralForumTopicParams struct + ChatID any + type CopyMessageParams struct + Caption string + CaptionEntities []models.MessageEntity + ChatID any + DisableNotification bool + FromChatID string + MessageID int + MessageThreadID int + ParseMode models.ParseMode + ProtectContent bool + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + type CopyMessagesParams struct + ChatID any + DisableNotification bool + FromChatID string + MessageIDs []int + MessageThreadID int + ProtectContent bool + RemoveCaption bool + type CreateChatInviteLinkParams struct + ChatID any + CreatesJoinRequest bool + ExpireDate int + MemberLimit int + Name string + type CreateForumTopicParams struct + ChatID any + IconColor int + IconCustomEmojiID string + Name string + type CreateInvoiceLinkParams struct + Currency string + Description string + IsFlexible bool + MaxTipAmount int + NeedEmail bool + NeedName bool + NeedPhoneNumber bool + NeedShippingAddress bool + Payload string + PhotoHeight int + PhotoSize int + PhotoURL string + PhotoWidth int + Prices []models.LabeledPrice + ProviderData string + ProviderToken string + SendEmailToProvider bool + SendPhoneNumberToProvider bool + SuggestedTipAmounts []int + Title string + type CreateNewStickerSetParams struct + Name string + NeedsRepainting bool + Sticker models.InputFile + StickerType string + Title string + UserID int64 + type DebugHandler func(format string, args ...any) + type DeclineChatJoinRequestParams struct + ChatID any + UserID int64 + type DeleteChatPhotoParams struct + ChatID any + type DeleteChatStickerSetParams struct + ChatID any + StickerSetName string + type DeleteForumTopicParams struct + ChatID any + MessageThreadID int + type DeleteMessageParams struct + ChatID any + MessageID int + type DeleteMessagesParams struct + ChatID any + MessageIDs []int + type DeleteMyCommandsParams struct + LanguageCode string + Scope models.BotCommandScope + type DeleteStickerFromSetParams struct + Sticker string + type DeleteStickerSetParams struct + Name string + type DeleteWebhookParams struct + DropPendingUpdates bool + type EditChatInviteLinkParams struct + ChatID any + CreatesJoinRequest bool + ExpireDate int + InviteLink string + MemberLimit int + Name string + type EditForumTopicParams struct + ChatID any + IconCustomEmojiID string + MessageThreadID int + Name string + type EditGeneralForumTopicParams struct + ChatID any + Name string + type EditMessageCaptionParams struct + Caption string + CaptionEntities []models.MessageEntity + ChatID any + DisableWebPagePreview bool + InlineMessageID string + MessageID int + ParseMode models.ParseMode + ReplyMarkup models.ReplyMarkup + type EditMessageLiveLocationParams struct + ChatID any + Heading int + HorizontalAccuracy float64 + InlineMessageID string + Latitude float64 + Longitude float64 + MessageID int + ProximityAlertRadius int + ReplyMarkup models.ReplyMarkup + type EditMessageMediaParams struct + ChatID any + InlineMessageID string + Media models.InputMedia + MessageID int + ReplyMarkup models.ReplyMarkup + type EditMessageReplyMarkupParams struct + ChatID any + InlineMessageID string + MessageID int + ReplyMarkup models.ReplyMarkup + type EditMessageTextParams struct + ChatID any + Entities []models.MessageEntity + InlineMessageID string + LinkPreviewOptions *models.LinkPreviewOptions + MessageID int + ParseMode models.ParseMode + ReplyMarkup models.ReplyMarkup + Text string + type ErrorsHandler func(err error) + type ExportChatInviteLinkParams struct + ChatID any + type ForwardMessageParams struct + ChatID any + DisableNotification bool + FromChatID string + MessageID int + MessageThreadID int + ProtectContent bool + type ForwardMessagesParams struct + ChatID any + DisableNotification bool + FromChatID string + MessageIDs []int + MessageThreadID int + ProtectContent bool + type GetChatAdministratorsParams struct + ChatID any + type GetChatMemberCountParams struct + ChatID any + type GetChatMemberParams struct + ChatID any + UserID int64 + type GetChatMenuButtonParams struct + ChatID any + type GetChatParams struct + ChatID any + type GetCustomEmojiStickersParams struct + CustomEmojiIDs []string + type GetFileParams struct + FileID string + type GetGameHighScoresParams struct + ChatID int + InlineMessageID int + MessageID int + UserID int64 + type GetMyCommandsParams struct + LanguageCode string + Scope models.BotCommandScope + type GetMyDefaultAdministratorRightsParams struct + ForChannels bool + type GetMyDescriptionParams struct + LanguageCode string + type GetMyNameParams struct + LanguageCode string + type GetMyShortDescriptionParams struct + LanguageCode string + type GetStickerSetParams struct + Name string + type GetUserChatBoostsParams struct + ChatID any + UserID int + type GetUserProfilePhotosParams struct + Limit int + Offset int + UserID int64 + type HandlerFunc func(ctx context.Context, bot *Bot, update *models.Update) + type HandlerType int + const HandlerTypeCallbackQueryData + const HandlerTypeMessageText + type HideGeneralForumTopicParams struct + ChatID any + type HttpClient interface + Do func(*http.Request) (*http.Response, error) + type LeaveChatParams struct + ChatID any + type MatchFunc func(update *models.Update) bool + type MatchType int + const MatchTypeContains + const MatchTypeExact + const MatchTypePrefix + type Middleware func(next HandlerFunc) HandlerFunc + type MigrateError struct + Message string + MigrateToChatID int + func (e *MigrateError) Error() string + type Option func(b *Bot) + func WithAllowedUpdates(params AllowedUpdates) Option + func WithCallbackQueryDataHandler(pattern string, matchType MatchType, handler HandlerFunc) Option + func WithCheckInitTimeout(timeout time.Duration) Option + func WithDebug() Option + func WithDebugHandler(handler DebugHandler) Option + func WithDefaultHandler(handler HandlerFunc) Option + func WithErrorsHandler(handler ErrorsHandler) Option + func WithHTTPClient(pollTimeout time.Duration, client HttpClient) Option + func WithMessageTextHandler(pattern string, matchType MatchType, handler HandlerFunc) Option + func WithMiddlewares(middlewares ...Middleware) Option + func WithServerURL(serverURL string) Option + func WithSkipGetMe() Option + func WithUpdatesChannelCap(cap int) Option + type PinChatMessageParams struct + ChatID any + DisableNotification bool + MessageID int + type PromoteChatMemberParams struct + CanChangeInfo bool + CanDeleteMessages bool + CanDeleteStories bool + CanEditMessages bool + CanEditStories bool + CanInviteUsers bool + CanManageChat bool + CanManageTopics bool + CanManageVideoChats bool + CanPinMessages bool + CanPostMessages bool + CanPostStories bool + CanPromoteMembers bool + CanRestrictMembers bool + ChatID any + IsAnonymous bool + UserID int64 + type ReopenForumTopicParams struct + ChatID any + MessageThreadID int + type ReopenGeneralForumTopicParams struct + ChatID any + type ReplaceStickerInSetParams struct + Name string + OldSticker string + Sticker models.InputSticker + UserID int64 + type RestrictChatMemberParams struct + ChatID any + Permissions *models.ChatPermissions + UntilDate int + UseIndependentChatPermissions bool + UserID int64 + type RevokeChatInviteLinkParams struct + ChatID any + InviteLink string + type SendAnimationParams struct + Animation models.InputFile + BusinessConnectionID string + Caption string + CaptionEntities []models.MessageEntity + ChatID any + DisableNotification bool + Duration int + HasSpoiler bool + Height int + MessageThreadID int + ParseMode models.ParseMode + ProtectContent bool + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + Thumbnail models.InputFile + Width int + type SendAudioParams struct + Audio models.InputFile + BusinessConnectionID string + Caption string + CaptionEntities []models.MessageEntity + ChatID any + DisableNotification bool + Duration int + MessageThreadID int + ParseMode models.ParseMode + Performer string + ProtectContent bool + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + Thumbnail models.InputFile + Title string + type SendChatActionParams struct + Action models.ChatAction + BusinessConnectionID string + ChatID any + MessageThreadID int + type SendContactParams struct + BusinessConnectionID string + ChatID any + DisableNotification bool + FirstName string + LastName string + MessageThreadID int + PhoneNumber string + ProtectContent bool + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + VCard string + type SendDiceParams struct + BusinessConnectionID string + ChatID any + DisableNotification bool + Emoji string + MessageThreadID int + ProtectContent bool + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + type SendDocumentParams struct + BusinessConnectionID string + Caption string + CaptionEntities []models.MessageEntity + ChatID any + DisableContentTypeDetection bool + DisableNotification bool + Document models.InputFile + MessageThreadID int + ParseMode models.ParseMode + ProtectContent bool + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + Thumbnail models.InputFile + type SendGameParams struct + BusinessConnectionID string + ChatID any + DisableNotification bool + GameShorName string + MessageThreadID int + ProtectContent bool + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + type SendInvoiceParams struct + ChatID any + Currency string + Description string + DisableNotification bool + IsFlexible bool + MaxTipAmount int + MessageThreadID int + NeedEmail bool + NeedName bool + NeedPhoneNumber bool + NeedShippingAddress bool + Payload string + PhotoHeight int + PhotoSize int + PhotoURL string + PhotoWidth int + Prices []models.LabeledPrice + ProtectContent bool + ProviderData string + ProviderToken string + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + SendEmailToProvider bool + SendPhoneNumberToProvider bool + StartParameter string + SuggestedTipAmounts []int + Title string + type SendLocationParams struct + BusinessConnectionID string + ChatID any + DisableNotification bool + Heading int + HorizontalAccuracy float64 + Latitude float64 + LivePeriod int + Longitude float64 + MessageThreadID int + ProtectContent bool + ProximityAlertRadius int + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + type SendMediaGroupParams struct + BusinessConnectionID string + ChatID any + DisableNotification bool + Media []models.InputMedia + MessageThreadID int + ProtectContent bool + ReplyParameters *models.ReplyParameters + type SendMessageParams struct + BusinessConnectionID string + ChatID any + DisableNotification bool + Entities []models.MessageEntity + LinkPreviewOptions *models.LinkPreviewOptions + MessageThreadID int + ParseMode models.ParseMode + ProtectContent bool + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + Text string + type SendPhotoParams struct + BusinessConnectionID string + Caption string + CaptionEntities []models.MessageEntity + ChatID any + DisableNotification bool + HasSpoiler bool + MessageThreadID int + ParseMode models.ParseMode + Photo models.InputFile + ProtectContent bool + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + type SendPollParams struct + AllowsMultipleAnswers bool + BusinessConnectionID string + ChatID any + CloseDate int + CorrectOptionID int + DisableNotification bool + Explanation string + ExplanationEntities []models.MessageEntity + ExplanationParseMode string + IsAnonymous *bool + IsClosed bool + MessageThreadID int + OpenPeriod int + Options []string + ProtectContent bool + Question string + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + Type string + type SendStickerParams struct + BusinessConnectionID string + ChatID any + DisableNotification bool + Emoji string + MessageThreadID int + ProtectContent bool + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + Sticker models.InputFile + type SendVenueParams struct + Address string + BusinessConnectionID string + ChatID any + DisableNotification bool + FoursquareID string + FoursquareType string + GooglePlaceID string + GooglePlaceType string + Latitude float64 + Longitude float64 + MessageThreadID int + ProtectContent bool + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + Title string + type SendVideoNoteParams struct + BusinessConnectionID string + ChatID any + DisableNotification bool + Duration int + Length int + MessageThreadID int + ProtectContent bool + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + Thumbnail models.InputFile + VideoNote models.InputFile + type SendVideoParams struct + BusinessConnectionID string + Caption string + CaptionEntities []models.MessageEntity + ChatID any + DisableNotification bool + Duration int + HasSpoiler bool + Height int + MessageThreadID int + ParseMode models.ParseMode + ProtectContent bool + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + SupportsStreaming bool + Thumbnail models.InputFile + Video models.InputFile + Width int + type SendVoiceParams struct + BusinessConnectionID string + Caption string + CaptionEntities []models.MessageEntity + ChatID any + DisableNotification bool + Duration int + MessageThreadID int + ParseMode models.ParseMode + ProtectContent bool + ReplyMarkup models.ReplyMarkup + ReplyParameters *models.ReplyParameters + Voice models.InputFile + type SetChatAdministratorCustomTitleParams struct + ChatID any + CustomTitle string + UserID int64 + type SetChatDescriptionParams struct + ChatID any + Description string + type SetChatMenuButtonParams struct + ChatID any + MenuButton models.InputMenuButton + type SetChatPermissionsParams struct + ChatID any + Permissions models.ChatPermissions + UseIndependentChatPermissions bool + type SetChatPhotoParams struct + ChatID any + Photo models.InputFile + type SetChatStickerSetParams struct + ChatID any + StickerSetName string + type SetChatTitleParams struct + ChatID any + Title string + type SetCustomEmojiStickerSetThumbnailParams struct + CustomEmojiID string + Name string + type SetGameScoreParams struct + ChatID int + DisableEditMessage bool + Force bool + InlineMessageID int + MessageID int + Score int + UserID int64 + type SetMessageReactionParams struct + ChatID any + IsBig *bool + MessageID int + Reaction []models.ReactionType + type SetMyCommandsParams struct + Commands []models.BotCommand + LanguageCode string + Scope models.BotCommandScope + type SetMyDefaultAdministratorRightsParams struct + ForChannels bool + Rights *models.ChatAdministratorRights + type SetMyDescriptionParams struct + Description string + LanguageCode string + type SetMyNameParams struct + LanguageCode string + Name string + type SetMyShortDescriptionParams struct + LanguageCode string + ShortDescription string + type SetPassportDataErrorsParams struct + Errors []models.PassportElementError + UserID int64 + type SetStickerEmojiListParams struct + EmojiList []string + Sticker string + type SetStickerKeywordsParams struct + Keywords []string + Sticker string + type SetStickerMaskPositionParams struct + MaskPosition models.MaskPosition + Sticker string + type SetStickerPositionInSetParams struct + Position int + Sticker string + type SetStickerSetThumbnailParams struct + Format string + Name string + Thumbnail models.InputFile + UserID int64 + type SetStickerSetTitleParams struct + Name string + Title string + type SetWebhookParams struct + AllowedUpdates []string + Certificate models.InputFile + DropPendingUpdates bool + IPAddress string + MaxConnections int + SecretToken string + URL string + type StopMessageLiveLocationParams struct + ChatID any + InlineMessageID string + MessageID int + ReplyMarkup models.ReplyMarkup + type StopPollParams struct + ChatID any + MessageID int + ReplyMarkup models.ReplyMarkup + type TooManyRequestsError struct + Message string + RetryAfter int + func (e *TooManyRequestsError) Error() string + type UnbanChatMemberParams struct + ChatID any + OnlyIfBanned bool + UserID int64 + type UnbanChatSenderChatParams struct + ChatID any + SenderChatID int + type UnhideGeneralForumTopicParams struct + ChatID any + type UnpinAllChatMessagesParams struct + ChatID any + type UnpinAllForumTopicMessagesParams struct + ChatID any + MessageThreadID int + type UnpinAllGeneralForumTopicMessagesParams struct + ChatID any + type UnpinChatMessageParams struct + ChatID any + MessageID int + type UploadStickerFileParams struct + PngSticker models.InputFile + UserID int64