Documentation
¶
Index ¶
- Variables
- func IsTooManyRequests(err error) bool
- func ParseCommand(text string) (command string, args string, ok bool)
- type APIError
- type APIResponse
- type AcceptedGiftTypes
- type AddStickerToSetParams
- type AffiliateInfo
- type Animation
- type AnswerCallbackQueryParams
- type AnswerInlineQueryParams
- type AnswerPreCheckoutQueryParams
- type AnswerShippingQueryParams
- type AnswerWebAppQueryParams
- type ApproveChatJoinRequestParams
- type ApproveSuggestedPostParams
- type Audio
- type BackgroundFill
- type BackgroundFillFreeformGradient
- type BackgroundFillGradient
- type BackgroundFillSolid
- type BackgroundType
- type BackgroundTypeChatTheme
- type BackgroundTypeFill
- type BackgroundTypePattern
- type BackgroundTypeWallpaper
- type BanChatMemberParams
- type BanChatSenderChatParams
- type Birthdate
- type Bot
- func (bot *Bot) AddStickerToSet(ctx context.Context, params *AddStickerToSetParams) (bool, error)
- func (bot *Bot) AnswerCallbackQuery(ctx context.Context, params *AnswerCallbackQueryParams) (bool, error)
- func (bot *Bot) AnswerInlineQuery(ctx context.Context, params *AnswerInlineQueryParams) (bool, error)
- func (bot *Bot) AnswerPreCheckoutQuery(ctx context.Context, params *AnswerPreCheckoutQueryParams) (bool, error)
- func (bot *Bot) AnswerShippingQuery(ctx context.Context, params *AnswerShippingQueryParams) (bool, error)
- func (bot *Bot) AnswerWebAppQuery(ctx context.Context, params *AnswerWebAppQueryParams) (SentWebAppMessage, error)
- func (bot *Bot) ApproveChatJoinRequest(ctx context.Context, params *ApproveChatJoinRequestParams) (bool, error)
- func (bot *Bot) ApproveSuggestedPost(ctx context.Context, params *ApproveSuggestedPostParams) (bool, error)
- func (bot *Bot) BanChatMember(ctx context.Context, params *BanChatMemberParams) (bool, error)
- func (bot *Bot) BanChatSenderChat(ctx context.Context, params *BanChatSenderChatParams) (bool, error)
- func (bot *Bot) Call(ctx context.Context, method string, params any, result any) error
- func (bot *Bot) Close(ctx context.Context, params *CloseParams) (bool, error)
- func (bot *Bot) CloseForumTopic(ctx context.Context, params *CloseForumTopicParams) (bool, error)
- func (bot *Bot) CloseGeneralForumTopic(ctx context.Context, params *CloseGeneralForumTopicParams) (bool, error)
- func (bot *Bot) ConvertGiftToStars(ctx context.Context, params *ConvertGiftToStarsParams) (bool, error)
- func (bot *Bot) CopyMessage(ctx context.Context, params *CopyMessageParams) (MessageId, error)
- func (bot *Bot) CopyMessages(ctx context.Context, params *CopyMessagesParams) (MessageId, error)
- func (bot *Bot) CreateChatInviteLink(ctx context.Context, params *CreateChatInviteLinkParams) (ChatInviteLink, error)
- func (bot *Bot) CreateChatSubscriptionInviteLink(ctx context.Context, params *CreateChatSubscriptionInviteLinkParams) (ChatInviteLink, error)
- func (bot *Bot) CreateForumTopic(ctx context.Context, params *CreateForumTopicParams) (ForumTopic, error)
- func (bot *Bot) CreateInvoiceLink(ctx context.Context, params *CreateInvoiceLinkParams) (string, error)
- func (bot *Bot) CreateNewStickerSet(ctx context.Context, params *CreateNewStickerSetParams) (bool, error)
- func (bot *Bot) DeclineChatJoinRequest(ctx context.Context, params *DeclineChatJoinRequestParams) (bool, error)
- func (bot *Bot) DeclineSuggestedPost(ctx context.Context, params *DeclineSuggestedPostParams) (bool, error)
- func (bot *Bot) DeleteBusinessMessages(ctx context.Context, params *DeleteBusinessMessagesParams) (bool, error)
- func (bot *Bot) DeleteChatPhoto(ctx context.Context, params *DeleteChatPhotoParams) (bool, error)
- func (bot *Bot) DeleteChatStickerSet(ctx context.Context, params *DeleteChatStickerSetParams) (bool, error)
- func (bot *Bot) DeleteForumTopic(ctx context.Context, params *DeleteForumTopicParams) (bool, error)
- func (bot *Bot) DeleteMessage(ctx context.Context, params *DeleteMessageParams) (bool, error)
- func (bot *Bot) DeleteMessages(ctx context.Context, params *DeleteMessagesParams) (bool, error)
- func (bot *Bot) DeleteMyCommands(ctx context.Context, params *DeleteMyCommandsParams) (bool, error)
- func (bot *Bot) DeleteStickerFromSet(ctx context.Context, params *DeleteStickerFromSetParams) (bool, error)
- func (bot *Bot) DeleteStickerSet(ctx context.Context, params *DeleteStickerSetParams) (bool, error)
- func (bot *Bot) DeleteStory(ctx context.Context, params *DeleteStoryParams) (bool, error)
- func (bot *Bot) DeleteWebhook(ctx context.Context, params *DeleteWebhookParams) (bool, error)
- func (bot *Bot) Do(ctx context.Context, method string, params any) (json.RawMessage, error)
- func (bot *Bot) EditChatInviteLink(ctx context.Context, params *EditChatInviteLinkParams) (ChatInviteLink, error)
- func (bot *Bot) EditChatSubscriptionInviteLink(ctx context.Context, params *EditChatSubscriptionInviteLinkParams) (ChatInviteLink, error)
- func (bot *Bot) EditForumTopic(ctx context.Context, params *EditForumTopicParams) (bool, error)
- func (bot *Bot) EditGeneralForumTopic(ctx context.Context, params *EditGeneralForumTopicParams) (bool, error)
- func (bot *Bot) EditMessageCaption(ctx context.Context, params *EditMessageCaptionParams) (any, error)
- func (bot *Bot) EditMessageChecklist(ctx context.Context, params *EditMessageChecklistParams) (Message, error)
- func (bot *Bot) EditMessageLiveLocation(ctx context.Context, params *EditMessageLiveLocationParams) (any, error)
- func (bot *Bot) EditMessageMedia(ctx context.Context, params *EditMessageMediaParams) (any, error)
- func (bot *Bot) EditMessageReplyMarkup(ctx context.Context, params *EditMessageReplyMarkupParams) (any, error)
- func (bot *Bot) EditMessageText(ctx context.Context, params *EditMessageTextParams) (any, error)
- func (bot *Bot) EditStory(ctx context.Context, params *EditStoryParams) (Story, error)
- func (bot *Bot) EditUserStarSubscription(ctx context.Context, params *EditUserStarSubscriptionParams) (bool, error)
- func (bot *Bot) ExportChatInviteLink(ctx context.Context, params *ExportChatInviteLinkParams) (string, error)
- func (bot *Bot) ForwardMessage(ctx context.Context, params *ForwardMessageParams) (Message, error)
- func (bot *Bot) ForwardMessages(ctx context.Context, params *ForwardMessagesParams) (MessageId, error)
- func (bot *Bot) GetAvailableGifts(ctx context.Context, params *GetAvailableGiftsParams) (Gifts, error)
- func (bot *Bot) GetBusinessAccountGifts(ctx context.Context, params *GetBusinessAccountGiftsParams) (OwnedGifts, error)
- func (bot *Bot) GetBusinessAccountStarBalance(ctx context.Context, params *GetBusinessAccountStarBalanceParams) (StarAmount, error)
- func (bot *Bot) GetBusinessConnection(ctx context.Context, params *GetBusinessConnectionParams) (BusinessConnection, error)
- func (bot *Bot) GetChat(ctx context.Context, params *GetChatParams) (ChatFullInfo, error)
- func (bot *Bot) GetChatAdministrators(ctx context.Context, params *GetChatAdministratorsParams) ([]ChatMember, error)
- func (bot *Bot) GetChatGifts(ctx context.Context, params *GetChatGiftsParams) (OwnedGifts, error)
- func (bot *Bot) GetChatMember(ctx context.Context, params *GetChatMemberParams) (ChatMember, error)
- func (bot *Bot) GetChatMemberCount(ctx context.Context, params *GetChatMemberCountParams) (int64, error)
- func (bot *Bot) GetChatMenuButton(ctx context.Context, params *GetChatMenuButtonParams) (MenuButton, error)
- func (bot *Bot) GetCustomEmojiStickers(ctx context.Context, params *GetCustomEmojiStickersParams) ([]Sticker, error)
- func (bot *Bot) GetFile(ctx context.Context, params *GetFileParams) (File, error)
- func (bot *Bot) GetForumTopicIconStickers(ctx context.Context, params *GetForumTopicIconStickersParams) ([]Sticker, error)
- func (bot *Bot) GetGameHighScores(ctx context.Context, params *GetGameHighScoresParams) ([]GameHighScore, error)
- func (bot *Bot) GetMe(ctx context.Context, params *GetMeParams) (User, error)
- func (bot *Bot) GetMyCommands(ctx context.Context, params *GetMyCommandsParams) ([]BotCommand, error)
- func (bot *Bot) GetMyDefaultAdministratorRights(ctx context.Context, params *GetMyDefaultAdministratorRightsParams) (ChatAdministratorRights, error)
- func (bot *Bot) GetMyDescription(ctx context.Context, params *GetMyDescriptionParams) (BotDescription, error)
- func (bot *Bot) GetMyName(ctx context.Context, params *GetMyNameParams) (BotName, error)
- func (bot *Bot) GetMyShortDescription(ctx context.Context, params *GetMyShortDescriptionParams) (BotShortDescription, error)
- func (bot *Bot) GetMyStarBalance(ctx context.Context, params *GetMyStarBalanceParams) (StarAmount, error)
- func (bot *Bot) GetStarTransactions(ctx context.Context, params *GetStarTransactionsParams) (StarTransactions, error)
- func (bot *Bot) GetStickerSet(ctx context.Context, params *GetStickerSetParams) (StickerSet, error)
- func (bot *Bot) GetUpdates(ctx context.Context, params *GetUpdatesParams) ([]Update, error)
- func (bot *Bot) GetUserChatBoosts(ctx context.Context, params *GetUserChatBoostsParams) (UserChatBoosts, error)
- func (bot *Bot) GetUserGifts(ctx context.Context, params *GetUserGiftsParams) (OwnedGifts, error)
- func (bot *Bot) GetUserProfileAudios(ctx context.Context, params *GetUserProfileAudiosParams) (UserProfileAudios, error)
- func (bot *Bot) GetUserProfilePhotos(ctx context.Context, params *GetUserProfilePhotosParams) (UserProfilePhotos, error)
- func (bot *Bot) GetWebhookInfo(ctx context.Context, params *GetWebhookInfoParams) (WebhookInfo, error)
- func (bot *Bot) GiftPremiumSubscription(ctx context.Context, params *GiftPremiumSubscriptionParams) (bool, error)
- func (bot *Bot) HideGeneralForumTopic(ctx context.Context, params *HideGeneralForumTopicParams) (bool, error)
- func (bot *Bot) LeaveChat(ctx context.Context, params *LeaveChatParams) (bool, error)
- func (bot *Bot) LogOut(ctx context.Context, params *LogOutParams) (bool, error)
- func (bot *Bot) PinChatMessage(ctx context.Context, params *PinChatMessageParams) (bool, error)
- func (bot *Bot) PostStory(ctx context.Context, params *PostStoryParams) (Story, error)
- func (bot *Bot) PromoteChatMember(ctx context.Context, params *PromoteChatMemberParams) (bool, error)
- func (bot *Bot) ReadBusinessMessage(ctx context.Context, params *ReadBusinessMessageParams) (bool, error)
- func (bot *Bot) RefundStarPayment(ctx context.Context, params *RefundStarPaymentParams) (bool, error)
- func (bot *Bot) RemoveBusinessAccountProfilePhoto(ctx context.Context, params *RemoveBusinessAccountProfilePhotoParams) (bool, error)
- func (bot *Bot) RemoveChatVerification(ctx context.Context, params *RemoveChatVerificationParams) (bool, error)
- func (bot *Bot) RemoveMyProfilePhoto(ctx context.Context, params *RemoveMyProfilePhotoParams) (bool, error)
- func (bot *Bot) RemoveUserVerification(ctx context.Context, params *RemoveUserVerificationParams) (bool, error)
- func (bot *Bot) ReopenForumTopic(ctx context.Context, params *ReopenForumTopicParams) (bool, error)
- func (bot *Bot) ReopenGeneralForumTopic(ctx context.Context, params *ReopenGeneralForumTopicParams) (bool, error)
- func (bot *Bot) ReplaceStickerInSet(ctx context.Context, params *ReplaceStickerInSetParams) (bool, error)
- func (bot *Bot) RepostStory(ctx context.Context, params *RepostStoryParams) (Story, error)
- func (bot *Bot) RestrictChatMember(ctx context.Context, params *RestrictChatMemberParams) (bool, error)
- func (bot *Bot) RevokeChatInviteLink(ctx context.Context, params *RevokeChatInviteLinkParams) (ChatInviteLink, error)
- func (bot *Bot) SavePreparedInlineMessage(ctx context.Context, params *SavePreparedInlineMessageParams) (PreparedInlineMessage, error)
- func (bot *Bot) SendAnimation(ctx context.Context, params *SendAnimationParams) (Message, error)
- func (bot *Bot) SendAudio(ctx context.Context, params *SendAudioParams) (Message, error)
- func (bot *Bot) SendChatAction(ctx context.Context, params *SendChatActionParams) (bool, error)
- func (bot *Bot) SendChecklist(ctx context.Context, params *SendChecklistParams) (Message, error)
- func (bot *Bot) SendContact(ctx context.Context, params *SendContactParams) (Message, error)
- func (bot *Bot) SendDice(ctx context.Context, params *SendDiceParams) (Message, error)
- func (bot *Bot) SendDocument(ctx context.Context, params *SendDocumentParams) (Message, error)
- func (bot *Bot) SendGame(ctx context.Context, params *SendGameParams) (Message, error)
- func (bot *Bot) SendGift(ctx context.Context, params *SendGiftParams) (bool, error)
- func (bot *Bot) SendInvoice(ctx context.Context, params *SendInvoiceParams) (Message, error)
- func (bot *Bot) SendLocation(ctx context.Context, params *SendLocationParams) (Message, error)
- func (bot *Bot) SendMediaGroup(ctx context.Context, params *SendMediaGroupParams) (Message, error)
- func (bot *Bot) SendMessage(ctx context.Context, params *SendMessageParams) (Message, error)
- func (bot *Bot) SendMessageDraft(ctx context.Context, params *SendMessageDraftParams) (bool, error)
- func (bot *Bot) SendPaidMedia(ctx context.Context, params *SendPaidMediaParams) (Message, error)
- func (bot *Bot) SendPhoto(ctx context.Context, params *SendPhotoParams) (Message, error)
- func (bot *Bot) SendPoll(ctx context.Context, params *SendPollParams) (Message, error)
- func (bot *Bot) SendSticker(ctx context.Context, params *SendStickerParams) (Message, error)
- func (bot *Bot) SendVenue(ctx context.Context, params *SendVenueParams) (Message, error)
- func (bot *Bot) SendVideo(ctx context.Context, params *SendVideoParams) (Message, error)
- func (bot *Bot) SendVideoNote(ctx context.Context, params *SendVideoNoteParams) (Message, error)
- func (bot *Bot) SendVoice(ctx context.Context, params *SendVoiceParams) (Message, error)
- func (bot *Bot) SetBusinessAccountBio(ctx context.Context, params *SetBusinessAccountBioParams) (bool, error)
- func (bot *Bot) SetBusinessAccountGiftSettings(ctx context.Context, params *SetBusinessAccountGiftSettingsParams) (bool, error)
- func (bot *Bot) SetBusinessAccountName(ctx context.Context, params *SetBusinessAccountNameParams) (bool, error)
- func (bot *Bot) SetBusinessAccountProfilePhoto(ctx context.Context, params *SetBusinessAccountProfilePhotoParams) (bool, error)
- func (bot *Bot) SetBusinessAccountUsername(ctx context.Context, params *SetBusinessAccountUsernameParams) (bool, error)
- func (bot *Bot) SetChatAdministratorCustomTitle(ctx context.Context, params *SetChatAdministratorCustomTitleParams) (bool, error)
- func (bot *Bot) SetChatDescription(ctx context.Context, params *SetChatDescriptionParams) (bool, error)
- func (bot *Bot) SetChatMemberTag(ctx context.Context, params *SetChatMemberTagParams) (bool, error)
- func (bot *Bot) SetChatMenuButton(ctx context.Context, params *SetChatMenuButtonParams) (bool, error)
- func (bot *Bot) SetChatPermissions(ctx context.Context, params *SetChatPermissionsParams) (bool, error)
- func (bot *Bot) SetChatPhoto(ctx context.Context, params *SetChatPhotoParams) (bool, error)
- func (bot *Bot) SetChatStickerSet(ctx context.Context, params *SetChatStickerSetParams) (bool, error)
- func (bot *Bot) SetChatTitle(ctx context.Context, params *SetChatTitleParams) (bool, error)
- func (bot *Bot) SetCustomEmojiStickerSetThumbnail(ctx context.Context, params *SetCustomEmojiStickerSetThumbnailParams) (bool, error)
- func (bot *Bot) SetGameScore(ctx context.Context, params *SetGameScoreParams) (any, error)
- func (bot *Bot) SetMessageReaction(ctx context.Context, params *SetMessageReactionParams) (bool, error)
- func (bot *Bot) SetMyCommands(ctx context.Context, params *SetMyCommandsParams) (bool, error)
- func (bot *Bot) SetMyDefaultAdministratorRights(ctx context.Context, params *SetMyDefaultAdministratorRightsParams) (bool, error)
- func (bot *Bot) SetMyDescription(ctx context.Context, params *SetMyDescriptionParams) (bool, error)
- func (bot *Bot) SetMyName(ctx context.Context, params *SetMyNameParams) (bool, error)
- func (bot *Bot) SetMyProfilePhoto(ctx context.Context, params *SetMyProfilePhotoParams) (bool, error)
- func (bot *Bot) SetMyShortDescription(ctx context.Context, params *SetMyShortDescriptionParams) (bool, error)
- func (bot *Bot) SetPassportDataErrors(ctx context.Context, params *SetPassportDataErrorsParams) (bool, error)
- func (bot *Bot) SetStickerEmojiList(ctx context.Context, params *SetStickerEmojiListParams) (bool, error)
- func (bot *Bot) SetStickerKeywords(ctx context.Context, params *SetStickerKeywordsParams) (bool, error)
- func (bot *Bot) SetStickerMaskPosition(ctx context.Context, params *SetStickerMaskPositionParams) (bool, error)
- func (bot *Bot) SetStickerPositionInSet(ctx context.Context, params *SetStickerPositionInSetParams) (bool, error)
- func (bot *Bot) SetStickerSetThumbnail(ctx context.Context, params *SetStickerSetThumbnailParams) (bool, error)
- func (bot *Bot) SetStickerSetTitle(ctx context.Context, params *SetStickerSetTitleParams) (bool, error)
- func (bot *Bot) SetUserEmojiStatus(ctx context.Context, params *SetUserEmojiStatusParams) (bool, error)
- func (bot *Bot) SetWebhook(ctx context.Context, params *SetWebhookParams) (bool, error)
- func (bot *Bot) StartUpdatePoller(ctx context.Context, opts ...UpdatePollerOption) (*UpdatePoller, error)
- func (bot *Bot) StopMessageLiveLocation(ctx context.Context, params *StopMessageLiveLocationParams) (any, error)
- func (bot *Bot) StopPoll(ctx context.Context, params *StopPollParams) (Poll, error)
- func (bot *Bot) TransferBusinessAccountStars(ctx context.Context, params *TransferBusinessAccountStarsParams) (bool, error)
- func (bot *Bot) TransferGift(ctx context.Context, params *TransferGiftParams) (bool, error)
- func (bot *Bot) UnbanChatMember(ctx context.Context, params *UnbanChatMemberParams) (bool, error)
- func (bot *Bot) UnbanChatSenderChat(ctx context.Context, params *UnbanChatSenderChatParams) (bool, error)
- func (bot *Bot) UnhideGeneralForumTopic(ctx context.Context, params *UnhideGeneralForumTopicParams) (bool, error)
- func (bot *Bot) UnpinAllChatMessages(ctx context.Context, params *UnpinAllChatMessagesParams) (bool, error)
- func (bot *Bot) UnpinAllForumTopicMessages(ctx context.Context, params *UnpinAllForumTopicMessagesParams) (bool, error)
- func (bot *Bot) UnpinAllGeneralForumTopicMessages(ctx context.Context, params *UnpinAllGeneralForumTopicMessagesParams) (bool, error)
- func (bot *Bot) UnpinChatMessage(ctx context.Context, params *UnpinChatMessageParams) (bool, error)
- func (bot *Bot) UpgradeGift(ctx context.Context, params *UpgradeGiftParams) (bool, error)
- func (bot *Bot) UploadStickerFile(ctx context.Context, params *UploadStickerFileParams) (File, error)
- func (bot *Bot) VerifyChat(ctx context.Context, params *VerifyChatParams) (bool, error)
- func (bot *Bot) VerifyUser(ctx context.Context, params *VerifyUserParams) (bool, error)
- type BotCommand
- type BotCommandScope
- type BotCommandScopeAllChatAdministrators
- type BotCommandScopeAllGroupChats
- type BotCommandScopeAllPrivateChats
- type BotCommandScopeChat
- type BotCommandScopeChatAdministrators
- type BotCommandScopeChatMember
- type BotCommandScopeDefault
- type BotDescription
- type BotName
- type BotOption
- type BotShortDescription
- type BusinessBotRights
- type BusinessConnection
- type BusinessIntro
- type BusinessLocation
- type BusinessMessagesDeleted
- type BusinessOpeningHours
- type BusinessOpeningHoursInterval
- type CallbackGame
- type CallbackQuery
- type Chat
- type ChatAdministratorRights
- type ChatBackground
- type ChatBoost
- type ChatBoostAdded
- type ChatBoostRemoved
- type ChatBoostSource
- type ChatBoostSourceGiftCode
- type ChatBoostSourceGiveaway
- type ChatBoostSourcePremium
- type ChatBoostUpdated
- type ChatFullInfo
- type ChatInviteLink
- type ChatJoinRequest
- type ChatLocation
- type ChatMember
- type ChatMemberAdministrator
- type ChatMemberBanned
- type ChatMemberLeft
- type ChatMemberMember
- type ChatMemberOwner
- type ChatMemberRestricted
- type ChatMemberUpdated
- type ChatOwnerChanged
- type ChatOwnerLeft
- type ChatPermissions
- type ChatPhoto
- type ChatShared
- type Checklist
- type ChecklistTask
- type ChecklistTasksAdded
- type ChecklistTasksDone
- type ChosenInlineResult
- type CloseForumTopicParams
- type CloseGeneralForumTopicParams
- type CloseParams
- type Contact
- type ConvertGiftToStarsParams
- type CopyMessageParams
- type CopyMessagesParams
- type CopyTextButton
- type CreateChatInviteLinkParams
- type CreateChatSubscriptionInviteLinkParams
- type CreateForumTopicParams
- type CreateInvoiceLinkParams
- type CreateNewStickerSetParams
- type DeclineChatJoinRequestParams
- type DeclineSuggestedPostParams
- type DeleteBusinessMessagesParams
- type DeleteChatPhotoParams
- type DeleteChatStickerSetParams
- type DeleteForumTopicParams
- type DeleteMessageParams
- type DeleteMessagesParams
- type DeleteMyCommandsParams
- type DeleteStickerFromSetParams
- type DeleteStickerSetParams
- type DeleteStoryParams
- type DeleteWebhookParams
- type Dice
- type DirectMessagePriceChanged
- type DirectMessagesTopic
- type Document
- type EditChatInviteLinkParams
- type EditChatSubscriptionInviteLinkParams
- type EditForumTopicParams
- type EditGeneralForumTopicParams
- type EditMessageCaptionParams
- type EditMessageChecklistParams
- type EditMessageLiveLocationParams
- type EditMessageMediaParams
- type EditMessageReplyMarkupParams
- type EditMessageTextParams
- type EditStoryParams
- type EditUserStarSubscriptionParams
- type EncryptedCredentials
- type EncryptedPassportElement
- type ExportChatInviteLinkParams
- type ExternalReplyInfo
- type File
- type ForceReply
- type ForumTopic
- type ForumTopicClosed
- type ForumTopicCreated
- type ForumTopicEdited
- type ForumTopicReopened
- type ForwardMessageParams
- type ForwardMessagesParams
- type Game
- type GameHighScore
- type GeneralForumTopicHidden
- type GeneralForumTopicUnhidden
- type GetAvailableGiftsParams
- type GetBusinessAccountGiftsParams
- type GetBusinessAccountStarBalanceParams
- type GetBusinessConnectionParams
- type GetChatAdministratorsParams
- type GetChatGiftsParams
- type GetChatMemberCountParams
- type GetChatMemberParams
- type GetChatMenuButtonParams
- type GetChatParams
- type GetCustomEmojiStickersParams
- type GetFileParams
- type GetForumTopicIconStickersParams
- type GetGameHighScoresParams
- type GetMeParams
- type GetMyCommandsParams
- type GetMyDefaultAdministratorRightsParams
- type GetMyDescriptionParams
- type GetMyNameParams
- type GetMyShortDescriptionParams
- type GetMyStarBalanceParams
- type GetStarTransactionsParams
- type GetStickerSetParams
- type GetUpdatesParams
- type GetUserChatBoostsParams
- type GetUserGiftsParams
- type GetUserProfileAudiosParams
- type GetUserProfilePhotosParams
- type GetWebhookInfoParams
- type Gift
- type GiftBackground
- type GiftInfo
- type GiftPremiumSubscriptionParams
- type Gifts
- type Giveaway
- type GiveawayCompleted
- type GiveawayCreated
- type GiveawayWinners
- type HideGeneralForumTopicParams
- type InaccessibleMessage
- type InlineKeyboardButton
- type InlineKeyboardMarkup
- type InlineQuery
- type InlineQueryResult
- type InlineQueryResultArticle
- type InlineQueryResultAudio
- type InlineQueryResultCachedAudio
- type InlineQueryResultCachedDocument
- type InlineQueryResultCachedGif
- type InlineQueryResultCachedMpeg4Gif
- type InlineQueryResultCachedPhoto
- type InlineQueryResultCachedSticker
- type InlineQueryResultCachedVideo
- type InlineQueryResultCachedVoice
- type InlineQueryResultContact
- type InlineQueryResultDocument
- type InlineQueryResultGame
- type InlineQueryResultGif
- type InlineQueryResultLocation
- type InlineQueryResultMpeg4Gif
- type InlineQueryResultPhoto
- type InlineQueryResultVenue
- type InlineQueryResultVideo
- type InlineQueryResultVoice
- type InlineQueryResultsButton
- type InputChecklist
- type InputChecklistTask
- type InputContactMessageContent
- type InputFile
- type InputInvoiceMessageContent
- type InputLocationMessageContent
- type InputMedia
- type InputMediaAnimation
- type InputMediaAudio
- type InputMediaDocument
- type InputMediaPhoto
- type InputMediaVideo
- type InputMessageContent
- type InputPaidMedia
- type InputPaidMediaPhoto
- type InputPaidMediaVideo
- type InputPollOption
- type InputProfilePhoto
- type InputProfilePhotoAnimated
- type InputProfilePhotoStatic
- type InputSticker
- type InputStoryContent
- type InputStoryContentPhoto
- type InputStoryContentVideo
- type InputTextMessageContent
- type InputVenueMessageContent
- type Invoice
- type KeyboardButton
- type KeyboardButtonPollType
- type KeyboardButtonRequestChat
- type KeyboardButtonRequestUsers
- type LabeledPrice
- type LeaveChatParams
- type LinkPreviewOptions
- type Location
- type LocationAddress
- type LogOutParams
- type LoginUrl
- type MaskPosition
- type MaybeInaccessibleMessage
- type MenuButton
- type MenuButtonCommands
- type MenuButtonDefault
- type MenuButtonWebApp
- type Message
- type MessageAutoDeleteTimerChanged
- type MessageEntity
- type MessageId
- type MessageOrigin
- type MessageOriginChannel
- type MessageOriginChat
- type MessageOriginHiddenUser
- type MessageOriginUser
- type MessageReactionCountUpdated
- type MessageReactionUpdated
- type OrderInfo
- type OwnedGift
- type OwnedGiftRegular
- type OwnedGiftUnique
- type OwnedGifts
- type PaidMedia
- type PaidMediaInfo
- type PaidMediaPhoto
- type PaidMediaPreview
- type PaidMediaPurchased
- type PaidMediaVideo
- type PaidMessagePriceChanged
- type PassportData
- type PassportElementError
- type PassportElementErrorDataField
- type PassportElementErrorFile
- type PassportElementErrorFiles
- type PassportElementErrorFrontSide
- type PassportElementErrorReverseSide
- type PassportElementErrorSelfie
- type PassportElementErrorTranslationFile
- type PassportElementErrorTranslationFiles
- type PassportElementErrorUnspecified
- type PassportFile
- type PhotoSize
- type PinChatMessageParams
- type Poll
- type PollAnswer
- type PollOption
- type PostStoryParams
- type PreCheckoutQuery
- type PreparedInlineMessage
- type PromoteChatMemberParams
- type ProximityAlertTriggered
- type ReactionCount
- type ReactionType
- type ReactionTypeCustomEmoji
- type ReactionTypeEmoji
- type ReactionTypePaid
- type ReadBusinessMessageParams
- type RefundStarPaymentParams
- type RefundedPayment
- type RemoveBusinessAccountProfilePhotoParams
- type RemoveChatVerificationParams
- type RemoveMyProfilePhotoParams
- type RemoveUserVerificationParams
- type ReopenForumTopicParams
- type ReopenGeneralForumTopicParams
- type ReplaceStickerInSetParams
- type ReplyKeyboardMarkup
- type ReplyKeyboardRemove
- type ReplyParameters
- type RepostStoryParams
- type ResponseParameters
- type RestrictChatMemberParams
- type RevenueWithdrawalState
- type RevenueWithdrawalStateFailed
- type RevenueWithdrawalStatePending
- type RevenueWithdrawalStateSucceeded
- type RevokeChatInviteLinkParams
- type SavePreparedInlineMessageParams
- type SendAnimationParams
- type SendAudioParams
- type SendChatActionParams
- type SendChecklistParams
- type SendContactParams
- type SendDiceParams
- type SendDocumentParams
- type SendGameParams
- type SendGiftParams
- type SendInvoiceParams
- type SendLocationParams
- type SendMediaGroupParams
- type SendMessageDraftParams
- type SendMessageParams
- type SendPaidMediaParams
- type SendPhotoParams
- type SendPollParams
- type SendStickerParams
- type SendVenueParams
- type SendVideoNoteParams
- type SendVideoParams
- type SendVoiceParams
- type SentWebAppMessage
- type SetBusinessAccountBioParams
- type SetBusinessAccountGiftSettingsParams
- type SetBusinessAccountNameParams
- type SetBusinessAccountProfilePhotoParams
- type SetBusinessAccountUsernameParams
- type SetChatAdministratorCustomTitleParams
- type SetChatDescriptionParams
- type SetChatMemberTagParams
- type SetChatMenuButtonParams
- type SetChatPermissionsParams
- type SetChatPhotoParams
- type SetChatStickerSetParams
- type SetChatTitleParams
- type SetCustomEmojiStickerSetThumbnailParams
- type SetGameScoreParams
- type SetMessageReactionParams
- type SetMyCommandsParams
- type SetMyDefaultAdministratorRightsParams
- type SetMyDescriptionParams
- type SetMyNameParams
- type SetMyProfilePhotoParams
- type SetMyShortDescriptionParams
- type SetPassportDataErrorsParams
- type SetStickerEmojiListParams
- type SetStickerKeywordsParams
- type SetStickerMaskPositionParams
- type SetStickerPositionInSetParams
- type SetStickerSetThumbnailParams
- type SetStickerSetTitleParams
- type SetUserEmojiStatusParams
- type SetWebhookParams
- type SharedUser
- type ShippingAddress
- type ShippingOption
- type ShippingQuery
- type StarAmount
- type StarTransaction
- type StarTransactions
- type Sticker
- type StickerSet
- type StopMessageLiveLocationParams
- type StopPollParams
- type Story
- type StoryArea
- type StoryAreaPosition
- type StoryAreaType
- type StoryAreaTypeLink
- type StoryAreaTypeLocation
- type StoryAreaTypeSuggestedReaction
- type StoryAreaTypeUniqueGift
- type StoryAreaTypeWeather
- type SuccessfulPayment
- type SuggestedPostApprovalFailed
- type SuggestedPostApproved
- type SuggestedPostDeclined
- type SuggestedPostInfo
- type SuggestedPostPaid
- type SuggestedPostParameters
- type SuggestedPostPrice
- type SuggestedPostRefunded
- type SwitchInlineQueryChosenChat
- type TextQuote
- type TransactionPartner
- type TransactionPartnerAffiliateProgram
- type TransactionPartnerChat
- type TransactionPartnerFragment
- type TransactionPartnerOther
- type TransactionPartnerTelegramAds
- type TransactionPartnerTelegramApi
- type TransactionPartnerUser
- type TransferBusinessAccountStarsParams
- type TransferGiftParams
- type UnbanChatMemberParams
- type UnbanChatSenderChatParams
- type UnhideGeneralForumTopicParams
- type UniqueGift
- type UniqueGiftBackdrop
- type UniqueGiftBackdropColors
- type UniqueGiftColors
- type UniqueGiftInfo
- type UniqueGiftModel
- type UniqueGiftSymbol
- type UnpinAllChatMessagesParams
- type UnpinAllForumTopicMessagesParams
- type UnpinAllGeneralForumTopicMessagesParams
- type UnpinChatMessageParams
- type Update
- type UpdateDispatchError
- type UpdateFilter
- type UpdatePoller
- func (poller *UpdatePoller) Done() <-chan struct{}
- func (poller *UpdatePoller) Errors() <-chan error
- func (poller *UpdatePoller) Start(ctx context.Context)
- func (poller *UpdatePoller) Stop()
- func (poller *UpdatePoller) Subscribe(buffer int, filter UpdateFilter) <-chan Update
- func (poller *UpdatePoller) SubscribeHandle(buffer int, filter UpdateFilter) *UpdateSubscription
- func (poller *UpdatePoller) SubscribeTypes(buffer int, updateTypes ...UpdateType) <-chan Update
- func (poller *UpdatePoller) SubscribeTypesHandle(buffer int, updateTypes ...UpdateType) *UpdateSubscription
- func (poller *UpdatePoller) Updates() <-chan Update
- type UpdatePollerOption
- func WithPollerAllowedUpdates(updateTypes ...UpdateType) UpdatePollerOption
- func WithPollerBuffer(size int) UpdatePollerOption
- func WithPollerErrorBuffer(size int) UpdatePollerOption
- func WithPollerNonBlockingDispatch() UpdatePollerOption
- func WithPollerParams(params GetUpdatesParams) UpdatePollerOption
- func WithPollerRetryDelay(delay time.Duration) UpdatePollerOption
- type UpdateSubscription
- type UpdateType
- type UpgradeGiftParams
- type UploadStickerFileParams
- type User
- type UserChatBoosts
- type UserProfileAudios
- type UserProfilePhotos
- type UserRating
- type UsersShared
- type Venue
- type VerifyChatParams
- type VerifyUserParams
- type Video
- type VideoChatEnded
- type VideoChatParticipantsInvited
- type VideoChatScheduled
- type VideoChatStarted
- type VideoNote
- type VideoQuality
- type Voice
- type WebAppData
- type WebAppInfo
- type WebhookInfo
- type WriteAccessAllowed
Constants ¶
This section is empty.
Variables ¶
var AllUpdateTypes = []UpdateType{ UpdateTypeMessage, UpdateTypeEditedMessage, UpdateTypeChannelPost, UpdateTypeEditedChannelPost, UpdateTypeBusinessConnection, UpdateTypeBusinessMessage, UpdateTypeEditedBusinessMessage, UpdateTypeDeletedBusinessMessages, UpdateTypeMessageReaction, UpdateTypeMessageReactionCount, UpdateTypeInlineQuery, UpdateTypeChosenInlineResult, UpdateTypeCallbackQuery, UpdateTypeShippingQuery, UpdateTypePreCheckoutQuery, UpdateTypePurchasedPaidMedia, UpdateTypePoll, UpdateTypePollAnswer, UpdateTypeMyChatMember, UpdateTypeChatMember, UpdateTypeChatJoinRequest, UpdateTypeChatBoost, UpdateTypeRemovedChatBoost, }
AllUpdateTypes lists every currently supported Telegram update type.
Functions ¶
func IsTooManyRequests ¶
IsTooManyRequests reports whether an error is a Telegram 429 rate-limit error.
Types ¶
type APIResponse ¶
type APIResponse struct {
OK bool `json:"ok"`
Result json.RawMessage `json:"result,omitempty"`
ErrorCode int `json:"error_code,omitempty"`
Description string `json:"description,omitempty"`
Parameters *ResponseParameters `json:"parameters,omitempty"`
}
APIResponse is the Telegram Bot API response envelope.
type AcceptedGiftTypes ¶
type AcceptedGiftTypes struct {
UnlimitedGifts bool `json:"unlimited_gifts"`
LimitedGifts bool `json:"limited_gifts"`
UniqueGifts bool `json:"unique_gifts"`
PremiumSubscription bool `json:"premium_subscription"`
GiftsFromChannels bool `json:"gifts_from_channels"`
}
AcceptedGiftTypes maps to Telegram Bot API type "AcceptedGiftTypes".
type AddStickerToSetParams ¶
type AddStickerToSetParams struct {
UserID int64 `json:"user_id"`
Name string `json:"name"`
Sticker InputSticker `json:"sticker"`
}
AddStickerToSetParams contains params for Telegram method "addStickerToSet".
type AffiliateInfo ¶
type AffiliateInfo struct {
AffiliateUser *User `json:"affiliate_user"`
AffiliateChat *Chat `json:"affiliate_chat"`
CommissionPerMille int64 `json:"commission_per_mille"`
Amount int64 `json:"amount"`
NanostarAmount int64 `json:"nanostar_amount"`
}
AffiliateInfo maps to Telegram Bot API type "AffiliateInfo".
type Animation ¶
type Animation struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
Width int64 `json:"width"`
Height int64 `json:"height"`
Duration int64 `json:"duration"`
Thumbnail *PhotoSize `json:"thumbnail"`
FileName string `json:"file_name"`
MimeType string `json:"mime_type"`
FileSize int64 `json:"file_size"`
}
Animation maps to Telegram Bot API type "Animation".
type AnswerCallbackQueryParams ¶
type AnswerCallbackQueryParams struct {
CallbackQueryID string `json:"callback_query_id"`
Text string `json:"text,omitempty"`
ShowAlert bool `json:"show_alert,omitempty"`
URL string `json:"url,omitempty"`
CacheTime int64 `json:"cache_time,omitempty"`
}
AnswerCallbackQueryParams contains params for Telegram method "answerCallbackQuery".
type AnswerInlineQueryParams ¶
type AnswerInlineQueryParams struct {
InlineQueryID string `json:"inline_query_id"`
Results []InlineQueryResult `json:"results"`
CacheTime int64 `json:"cache_time,omitempty"`
IsPersonal bool `json:"is_personal,omitempty"`
NextOffset string `json:"next_offset,omitempty"`
Button InlineQueryResultsButton `json:"button,omitempty"`
}
AnswerInlineQueryParams contains params for Telegram method "answerInlineQuery".
type AnswerPreCheckoutQueryParams ¶
type AnswerPreCheckoutQueryParams struct {
PreCheckoutQueryID string `json:"pre_checkout_query_id"`
Ok bool `json:"ok"`
ErrorMessage string `json:"error_message,omitempty"`
}
AnswerPreCheckoutQueryParams contains params for Telegram method "answerPreCheckoutQuery".
type AnswerShippingQueryParams ¶
type AnswerShippingQueryParams struct {
ShippingQueryID string `json:"shipping_query_id"`
Ok bool `json:"ok"`
ShippingOptions []ShippingOption `json:"shipping_options,omitempty"`
ErrorMessage string `json:"error_message,omitempty"`
}
AnswerShippingQueryParams contains params for Telegram method "answerShippingQuery".
type AnswerWebAppQueryParams ¶
type AnswerWebAppQueryParams struct {
WebAppQueryID string `json:"web_app_query_id"`
Result InlineQueryResult `json:"result"`
}
AnswerWebAppQueryParams contains params for Telegram method "answerWebAppQuery".
type ApproveChatJoinRequestParams ¶
type ApproveChatJoinRequestParams struct {
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
}
ApproveChatJoinRequestParams contains params for Telegram method "approveChatJoinRequest".
type ApproveSuggestedPostParams ¶
type ApproveSuggestedPostParams struct {
ChatID int64 `json:"chat_id"`
MessageID int64 `json:"message_id"`
SendDate int64 `json:"send_date,omitempty"`
}
ApproveSuggestedPostParams contains params for Telegram method "approveSuggestedPost".
type Audio ¶
type Audio struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
Duration int64 `json:"duration"`
Performer string `json:"performer"`
Title string `json:"title"`
FileName string `json:"file_name"`
MimeType string `json:"mime_type"`
FileSize int64 `json:"file_size"`
Thumbnail *PhotoSize `json:"thumbnail"`
}
Audio maps to Telegram Bot API type "Audio".
type BackgroundFill ¶
type BackgroundFill interface {
// contains filtered or unexported methods
}
BackgroundFill is a union type in Telegram Bot API.
type BackgroundFillFreeformGradient ¶
type BackgroundFillFreeformGradient struct {
Type string `json:"type"`
Colors []int64 `json:"colors"`
}
BackgroundFillFreeformGradient maps to Telegram Bot API type "BackgroundFillFreeformGradient".
type BackgroundFillGradient ¶
type BackgroundFillGradient struct {
Type string `json:"type"`
TopColor int64 `json:"top_color"`
BottomColor int64 `json:"bottom_color"`
RotationAngle int64 `json:"rotation_angle"`
}
BackgroundFillGradient maps to Telegram Bot API type "BackgroundFillGradient".
type BackgroundFillSolid ¶
BackgroundFillSolid maps to Telegram Bot API type "BackgroundFillSolid".
type BackgroundType ¶
type BackgroundType interface {
// contains filtered or unexported methods
}
BackgroundType is a union type in Telegram Bot API.
type BackgroundTypeChatTheme ¶
type BackgroundTypeChatTheme struct {
Type string `json:"type"`
ThemeName string `json:"theme_name"`
}
BackgroundTypeChatTheme maps to Telegram Bot API type "BackgroundTypeChatTheme".
type BackgroundTypeFill ¶
type BackgroundTypeFill struct {
Type string `json:"type"`
Fill BackgroundFill `json:"fill"`
DarkThemeDimming int64 `json:"dark_theme_dimming"`
}
BackgroundTypeFill maps to Telegram Bot API type "BackgroundTypeFill".
func (*BackgroundTypeFill) UnmarshalJSON ¶
func (value *BackgroundTypeFill) UnmarshalJSON(data []byte) error
type BackgroundTypePattern ¶
type BackgroundTypePattern struct {
Type string `json:"type"`
Document *Document `json:"document"`
Fill BackgroundFill `json:"fill"`
Intensity int64 `json:"intensity"`
IsInverted bool `json:"is_inverted"`
IsMoving bool `json:"is_moving"`
}
BackgroundTypePattern maps to Telegram Bot API type "BackgroundTypePattern".
func (*BackgroundTypePattern) UnmarshalJSON ¶
func (value *BackgroundTypePattern) UnmarshalJSON(data []byte) error
type BackgroundTypeWallpaper ¶
type BackgroundTypeWallpaper struct {
Type string `json:"type"`
Document *Document `json:"document"`
DarkThemeDimming int64 `json:"dark_theme_dimming"`
IsBlurred bool `json:"is_blurred"`
IsMoving bool `json:"is_moving"`
}
BackgroundTypeWallpaper maps to Telegram Bot API type "BackgroundTypeWallpaper".
type BanChatMemberParams ¶
type BanChatMemberParams struct {
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
UntilDate int64 `json:"until_date,omitempty"`
RevokeMessages bool `json:"revoke_messages,omitempty"`
}
BanChatMemberParams contains params for Telegram method "banChatMember".
type BanChatSenderChatParams ¶
type BanChatSenderChatParams struct {
ChatID any `json:"chat_id"`
SenderChatID int64 `json:"sender_chat_id"`
}
BanChatSenderChatParams contains params for Telegram method "banChatSenderChat".
type Birthdate ¶
type Birthdate struct {
Day int64 `json:"day"`
Month int64 `json:"month"`
Year int64 `json:"year"`
}
Birthdate maps to Telegram Bot API type "Birthdate".
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot is a generic Telegram Bot API client used by API wrappers.
func (*Bot) AddStickerToSet ¶
AddStickerToSet calls Telegram method "addStickerToSet". Doc: https://core.telegram.org/bots/api#addstickertoset
func (*Bot) AnswerCallbackQuery ¶
func (bot *Bot) AnswerCallbackQuery(ctx context.Context, params *AnswerCallbackQueryParams) (bool, error)
AnswerCallbackQuery calls Telegram method "answerCallbackQuery". Doc: https://core.telegram.org/bots/api#answercallbackquery
func (*Bot) AnswerInlineQuery ¶
func (bot *Bot) AnswerInlineQuery(ctx context.Context, params *AnswerInlineQueryParams) (bool, error)
AnswerInlineQuery calls Telegram method "answerInlineQuery". Doc: https://core.telegram.org/bots/api#answerinlinequery
func (*Bot) AnswerPreCheckoutQuery ¶
func (bot *Bot) AnswerPreCheckoutQuery(ctx context.Context, params *AnswerPreCheckoutQueryParams) (bool, error)
AnswerPreCheckoutQuery calls Telegram method "answerPreCheckoutQuery". Doc: https://core.telegram.org/bots/api#answerprecheckoutquery
func (*Bot) AnswerShippingQuery ¶
func (bot *Bot) AnswerShippingQuery(ctx context.Context, params *AnswerShippingQueryParams) (bool, error)
AnswerShippingQuery calls Telegram method "answerShippingQuery". Doc: https://core.telegram.org/bots/api#answershippingquery
func (*Bot) AnswerWebAppQuery ¶
func (bot *Bot) AnswerWebAppQuery(ctx context.Context, params *AnswerWebAppQueryParams) (SentWebAppMessage, error)
AnswerWebAppQuery calls Telegram method "answerWebAppQuery". Doc: https://core.telegram.org/bots/api#answerwebappquery
func (*Bot) ApproveChatJoinRequest ¶
func (bot *Bot) ApproveChatJoinRequest(ctx context.Context, params *ApproveChatJoinRequestParams) (bool, error)
ApproveChatJoinRequest calls Telegram method "approveChatJoinRequest". Doc: https://core.telegram.org/bots/api#approvechatjoinrequest
func (*Bot) ApproveSuggestedPost ¶
func (bot *Bot) ApproveSuggestedPost(ctx context.Context, params *ApproveSuggestedPostParams) (bool, error)
ApproveSuggestedPost calls Telegram method "approveSuggestedPost". Doc: https://core.telegram.org/bots/api#approvesuggestedpost
func (*Bot) BanChatMember ¶
BanChatMember calls Telegram method "banChatMember". Doc: https://core.telegram.org/bots/api#banchatmember
func (*Bot) BanChatSenderChat ¶
func (bot *Bot) BanChatSenderChat(ctx context.Context, params *BanChatSenderChatParams) (bool, error)
BanChatSenderChat calls Telegram method "banChatSenderChat". Doc: https://core.telegram.org/bots/api#banchatsenderchat
func (*Bot) Close ¶
Close calls Telegram method "close". Doc: https://core.telegram.org/bots/api#close
func (*Bot) CloseForumTopic ¶
CloseForumTopic calls Telegram method "closeForumTopic". Doc: https://core.telegram.org/bots/api#closeforumtopic
func (*Bot) CloseGeneralForumTopic ¶
func (bot *Bot) CloseGeneralForumTopic(ctx context.Context, params *CloseGeneralForumTopicParams) (bool, error)
CloseGeneralForumTopic calls Telegram method "closeGeneralForumTopic". Doc: https://core.telegram.org/bots/api#closegeneralforumtopic
func (*Bot) ConvertGiftToStars ¶
func (bot *Bot) ConvertGiftToStars(ctx context.Context, params *ConvertGiftToStarsParams) (bool, error)
ConvertGiftToStars calls Telegram method "convertGiftToStars". Doc: https://core.telegram.org/bots/api#convertgifttostars
func (*Bot) CopyMessage ¶
CopyMessage calls Telegram method "copyMessage". Doc: https://core.telegram.org/bots/api#copymessage
func (*Bot) CopyMessages ¶
CopyMessages calls Telegram method "copyMessages". Doc: https://core.telegram.org/bots/api#copymessages
func (*Bot) CreateChatInviteLink ¶
func (bot *Bot) CreateChatInviteLink(ctx context.Context, params *CreateChatInviteLinkParams) (ChatInviteLink, error)
CreateChatInviteLink calls Telegram method "createChatInviteLink". Doc: https://core.telegram.org/bots/api#createchatinvitelink
func (*Bot) CreateChatSubscriptionInviteLink ¶
func (bot *Bot) CreateChatSubscriptionInviteLink(ctx context.Context, params *CreateChatSubscriptionInviteLinkParams) (ChatInviteLink, error)
CreateChatSubscriptionInviteLink calls Telegram method "createChatSubscriptionInviteLink". Doc: https://core.telegram.org/bots/api#createchatsubscriptioninvitelink
func (*Bot) CreateForumTopic ¶
func (bot *Bot) CreateForumTopic(ctx context.Context, params *CreateForumTopicParams) (ForumTopic, error)
CreateForumTopic calls Telegram method "createForumTopic". Doc: https://core.telegram.org/bots/api#createforumtopic
func (*Bot) CreateInvoiceLink ¶
func (bot *Bot) CreateInvoiceLink(ctx context.Context, params *CreateInvoiceLinkParams) (string, error)
CreateInvoiceLink calls Telegram method "createInvoiceLink". Doc: https://core.telegram.org/bots/api#createinvoicelink
func (*Bot) CreateNewStickerSet ¶
func (bot *Bot) CreateNewStickerSet(ctx context.Context, params *CreateNewStickerSetParams) (bool, error)
CreateNewStickerSet calls Telegram method "createNewStickerSet". Doc: https://core.telegram.org/bots/api#createnewstickerset
func (*Bot) DeclineChatJoinRequest ¶
func (bot *Bot) DeclineChatJoinRequest(ctx context.Context, params *DeclineChatJoinRequestParams) (bool, error)
DeclineChatJoinRequest calls Telegram method "declineChatJoinRequest". Doc: https://core.telegram.org/bots/api#declinechatjoinrequest
func (*Bot) DeclineSuggestedPost ¶
func (bot *Bot) DeclineSuggestedPost(ctx context.Context, params *DeclineSuggestedPostParams) (bool, error)
DeclineSuggestedPost calls Telegram method "declineSuggestedPost". Doc: https://core.telegram.org/bots/api#declinesuggestedpost
func (*Bot) DeleteBusinessMessages ¶
func (bot *Bot) DeleteBusinessMessages(ctx context.Context, params *DeleteBusinessMessagesParams) (bool, error)
DeleteBusinessMessages calls Telegram method "deleteBusinessMessages". Doc: https://core.telegram.org/bots/api#deletebusinessmessages
func (*Bot) DeleteChatPhoto ¶
DeleteChatPhoto calls Telegram method "deleteChatPhoto". Doc: https://core.telegram.org/bots/api#deletechatphoto
func (*Bot) DeleteChatStickerSet ¶
func (bot *Bot) DeleteChatStickerSet(ctx context.Context, params *DeleteChatStickerSetParams) (bool, error)
DeleteChatStickerSet calls Telegram method "deleteChatStickerSet". Doc: https://core.telegram.org/bots/api#deletechatstickerset
func (*Bot) DeleteForumTopic ¶
DeleteForumTopic calls Telegram method "deleteForumTopic". Doc: https://core.telegram.org/bots/api#deleteforumtopic
func (*Bot) DeleteMessage ¶
DeleteMessage calls Telegram method "deleteMessage". Doc: https://core.telegram.org/bots/api#deletemessage
func (*Bot) DeleteMessages ¶
DeleteMessages calls Telegram method "deleteMessages". Doc: https://core.telegram.org/bots/api#deletemessages
func (*Bot) DeleteMyCommands ¶
DeleteMyCommands calls Telegram method "deleteMyCommands". Doc: https://core.telegram.org/bots/api#deletemycommands
func (*Bot) DeleteStickerFromSet ¶
func (bot *Bot) DeleteStickerFromSet(ctx context.Context, params *DeleteStickerFromSetParams) (bool, error)
DeleteStickerFromSet calls Telegram method "deleteStickerFromSet". Doc: https://core.telegram.org/bots/api#deletestickerfromset
func (*Bot) DeleteStickerSet ¶
DeleteStickerSet calls Telegram method "deleteStickerSet". Doc: https://core.telegram.org/bots/api#deletestickerset
func (*Bot) DeleteStory ¶
DeleteStory calls Telegram method "deleteStory". Doc: https://core.telegram.org/bots/api#deletestory
func (*Bot) DeleteWebhook ¶
DeleteWebhook calls Telegram method "deleteWebhook". Doc: https://core.telegram.org/bots/api#deletewebhook
func (*Bot) EditChatInviteLink ¶
func (bot *Bot) EditChatInviteLink(ctx context.Context, params *EditChatInviteLinkParams) (ChatInviteLink, error)
EditChatInviteLink calls Telegram method "editChatInviteLink". Doc: https://core.telegram.org/bots/api#editchatinvitelink
func (*Bot) EditChatSubscriptionInviteLink ¶
func (bot *Bot) EditChatSubscriptionInviteLink(ctx context.Context, params *EditChatSubscriptionInviteLinkParams) (ChatInviteLink, error)
EditChatSubscriptionInviteLink calls Telegram method "editChatSubscriptionInviteLink". Doc: https://core.telegram.org/bots/api#editchatsubscriptioninvitelink
func (*Bot) EditForumTopic ¶
EditForumTopic calls Telegram method "editForumTopic". Doc: https://core.telegram.org/bots/api#editforumtopic
func (*Bot) EditGeneralForumTopic ¶
func (bot *Bot) EditGeneralForumTopic(ctx context.Context, params *EditGeneralForumTopicParams) (bool, error)
EditGeneralForumTopic calls Telegram method "editGeneralForumTopic". Doc: https://core.telegram.org/bots/api#editgeneralforumtopic
func (*Bot) EditMessageCaption ¶
func (bot *Bot) EditMessageCaption(ctx context.Context, params *EditMessageCaptionParams) (any, error)
EditMessageCaption calls Telegram method "editMessageCaption". Doc: https://core.telegram.org/bots/api#editmessagecaption
func (*Bot) EditMessageChecklist ¶
func (bot *Bot) EditMessageChecklist(ctx context.Context, params *EditMessageChecklistParams) (Message, error)
EditMessageChecklist calls Telegram method "editMessageChecklist". Doc: https://core.telegram.org/bots/api#editmessagechecklist
func (*Bot) EditMessageLiveLocation ¶
func (bot *Bot) EditMessageLiveLocation(ctx context.Context, params *EditMessageLiveLocationParams) (any, error)
EditMessageLiveLocation calls Telegram method "editMessageLiveLocation". Doc: https://core.telegram.org/bots/api#editmessagelivelocation
func (*Bot) EditMessageMedia ¶
EditMessageMedia calls Telegram method "editMessageMedia". Doc: https://core.telegram.org/bots/api#editmessagemedia
func (*Bot) EditMessageReplyMarkup ¶
func (bot *Bot) EditMessageReplyMarkup(ctx context.Context, params *EditMessageReplyMarkupParams) (any, error)
EditMessageReplyMarkup calls Telegram method "editMessageReplyMarkup". Doc: https://core.telegram.org/bots/api#editmessagereplymarkup
func (*Bot) EditMessageText ¶
EditMessageText calls Telegram method "editMessageText". Doc: https://core.telegram.org/bots/api#editmessagetext
func (*Bot) EditStory ¶
EditStory calls Telegram method "editStory". Doc: https://core.telegram.org/bots/api#editstory
func (*Bot) EditUserStarSubscription ¶
func (bot *Bot) EditUserStarSubscription(ctx context.Context, params *EditUserStarSubscriptionParams) (bool, error)
EditUserStarSubscription calls Telegram method "editUserStarSubscription". Doc: https://core.telegram.org/bots/api#edituserstarsubscription
func (*Bot) ExportChatInviteLink ¶
func (bot *Bot) ExportChatInviteLink(ctx context.Context, params *ExportChatInviteLinkParams) (string, error)
ExportChatInviteLink calls Telegram method "exportChatInviteLink". Doc: https://core.telegram.org/bots/api#exportchatinvitelink
func (*Bot) ForwardMessage ¶
ForwardMessage calls Telegram method "forwardMessage". Doc: https://core.telegram.org/bots/api#forwardmessage
func (*Bot) ForwardMessages ¶
func (bot *Bot) ForwardMessages(ctx context.Context, params *ForwardMessagesParams) (MessageId, error)
ForwardMessages calls Telegram method "forwardMessages". Doc: https://core.telegram.org/bots/api#forwardmessages
func (*Bot) GetAvailableGifts ¶
func (bot *Bot) GetAvailableGifts(ctx context.Context, params *GetAvailableGiftsParams) (Gifts, error)
GetAvailableGifts calls Telegram method "getAvailableGifts". Doc: https://core.telegram.org/bots/api#getavailablegifts
func (*Bot) GetBusinessAccountGifts ¶
func (bot *Bot) GetBusinessAccountGifts(ctx context.Context, params *GetBusinessAccountGiftsParams) (OwnedGifts, error)
GetBusinessAccountGifts calls Telegram method "getBusinessAccountGifts". Doc: https://core.telegram.org/bots/api#getbusinessaccountgifts
func (*Bot) GetBusinessAccountStarBalance ¶
func (bot *Bot) GetBusinessAccountStarBalance(ctx context.Context, params *GetBusinessAccountStarBalanceParams) (StarAmount, error)
GetBusinessAccountStarBalance calls Telegram method "getBusinessAccountStarBalance". Doc: https://core.telegram.org/bots/api#getbusinessaccountstarbalance
func (*Bot) GetBusinessConnection ¶
func (bot *Bot) GetBusinessConnection(ctx context.Context, params *GetBusinessConnectionParams) (BusinessConnection, error)
GetBusinessConnection calls Telegram method "getBusinessConnection". Doc: https://core.telegram.org/bots/api#getbusinessconnection
func (*Bot) GetChat ¶
func (bot *Bot) GetChat(ctx context.Context, params *GetChatParams) (ChatFullInfo, error)
GetChat calls Telegram method "getChat". Doc: https://core.telegram.org/bots/api#getchat
func (*Bot) GetChatAdministrators ¶
func (bot *Bot) GetChatAdministrators(ctx context.Context, params *GetChatAdministratorsParams) ([]ChatMember, error)
GetChatAdministrators calls Telegram method "getChatAdministrators". Doc: https://core.telegram.org/bots/api#getchatadministrators
func (*Bot) GetChatGifts ¶
func (bot *Bot) GetChatGifts(ctx context.Context, params *GetChatGiftsParams) (OwnedGifts, error)
GetChatGifts calls Telegram method "getChatGifts". Doc: https://core.telegram.org/bots/api#getchatgifts
func (*Bot) GetChatMember ¶
func (bot *Bot) GetChatMember(ctx context.Context, params *GetChatMemberParams) (ChatMember, error)
GetChatMember calls Telegram method "getChatMember". Doc: https://core.telegram.org/bots/api#getchatmember
func (*Bot) GetChatMemberCount ¶
func (bot *Bot) GetChatMemberCount(ctx context.Context, params *GetChatMemberCountParams) (int64, error)
GetChatMemberCount calls Telegram method "getChatMemberCount". Doc: https://core.telegram.org/bots/api#getchatmembercount
func (*Bot) GetChatMenuButton ¶
func (bot *Bot) GetChatMenuButton(ctx context.Context, params *GetChatMenuButtonParams) (MenuButton, error)
GetChatMenuButton calls Telegram method "getChatMenuButton". Doc: https://core.telegram.org/bots/api#getchatmenubutton
func (*Bot) GetCustomEmojiStickers ¶
func (bot *Bot) GetCustomEmojiStickers(ctx context.Context, params *GetCustomEmojiStickersParams) ([]Sticker, error)
GetCustomEmojiStickers calls Telegram method "getCustomEmojiStickers". Doc: https://core.telegram.org/bots/api#getcustomemojistickers
func (*Bot) GetFile ¶
GetFile calls Telegram method "getFile". Doc: https://core.telegram.org/bots/api#getfile
func (*Bot) GetForumTopicIconStickers ¶
func (bot *Bot) GetForumTopicIconStickers(ctx context.Context, params *GetForumTopicIconStickersParams) ([]Sticker, error)
GetForumTopicIconStickers calls Telegram method "getForumTopicIconStickers". Doc: https://core.telegram.org/bots/api#getforumtopiciconstickers
func (*Bot) GetGameHighScores ¶
func (bot *Bot) GetGameHighScores(ctx context.Context, params *GetGameHighScoresParams) ([]GameHighScore, error)
GetGameHighScores calls Telegram method "getGameHighScores". Doc: https://core.telegram.org/bots/api#getgamehighscores
func (*Bot) GetMe ¶
GetMe calls Telegram method "getMe". Doc: https://core.telegram.org/bots/api#getme
func (*Bot) GetMyCommands ¶
func (bot *Bot) GetMyCommands(ctx context.Context, params *GetMyCommandsParams) ([]BotCommand, error)
GetMyCommands calls Telegram method "getMyCommands". Doc: https://core.telegram.org/bots/api#getmycommands
func (*Bot) GetMyDefaultAdministratorRights ¶
func (bot *Bot) GetMyDefaultAdministratorRights(ctx context.Context, params *GetMyDefaultAdministratorRightsParams) (ChatAdministratorRights, error)
GetMyDefaultAdministratorRights calls Telegram method "getMyDefaultAdministratorRights". Doc: https://core.telegram.org/bots/api#getmydefaultadministratorrights
func (*Bot) GetMyDescription ¶
func (bot *Bot) GetMyDescription(ctx context.Context, params *GetMyDescriptionParams) (BotDescription, error)
GetMyDescription calls Telegram method "getMyDescription". Doc: https://core.telegram.org/bots/api#getmydescription
func (*Bot) GetMyName ¶
GetMyName calls Telegram method "getMyName". Doc: https://core.telegram.org/bots/api#getmyname
func (*Bot) GetMyShortDescription ¶
func (bot *Bot) GetMyShortDescription(ctx context.Context, params *GetMyShortDescriptionParams) (BotShortDescription, error)
GetMyShortDescription calls Telegram method "getMyShortDescription". Doc: https://core.telegram.org/bots/api#getmyshortdescription
func (*Bot) GetMyStarBalance ¶
func (bot *Bot) GetMyStarBalance(ctx context.Context, params *GetMyStarBalanceParams) (StarAmount, error)
GetMyStarBalance calls Telegram method "getMyStarBalance". Doc: https://core.telegram.org/bots/api#getmystarbalance
func (*Bot) GetStarTransactions ¶
func (bot *Bot) GetStarTransactions(ctx context.Context, params *GetStarTransactionsParams) (StarTransactions, error)
GetStarTransactions calls Telegram method "getStarTransactions". Doc: https://core.telegram.org/bots/api#getstartransactions
func (*Bot) GetStickerSet ¶
func (bot *Bot) GetStickerSet(ctx context.Context, params *GetStickerSetParams) (StickerSet, error)
GetStickerSet calls Telegram method "getStickerSet". Doc: https://core.telegram.org/bots/api#getstickerset
func (*Bot) GetUpdates ¶
GetUpdates calls Telegram method "getUpdates". Doc: https://core.telegram.org/bots/api#getupdates
func (*Bot) GetUserChatBoosts ¶
func (bot *Bot) GetUserChatBoosts(ctx context.Context, params *GetUserChatBoostsParams) (UserChatBoosts, error)
GetUserChatBoosts calls Telegram method "getUserChatBoosts". Doc: https://core.telegram.org/bots/api#getuserchatboosts
func (*Bot) GetUserGifts ¶
func (bot *Bot) GetUserGifts(ctx context.Context, params *GetUserGiftsParams) (OwnedGifts, error)
GetUserGifts calls Telegram method "getUserGifts". Doc: https://core.telegram.org/bots/api#getusergifts
func (*Bot) GetUserProfileAudios ¶
func (bot *Bot) GetUserProfileAudios(ctx context.Context, params *GetUserProfileAudiosParams) (UserProfileAudios, error)
GetUserProfileAudios calls Telegram method "getUserProfileAudios". Doc: https://core.telegram.org/bots/api#getuserprofileaudios
func (*Bot) GetUserProfilePhotos ¶
func (bot *Bot) GetUserProfilePhotos(ctx context.Context, params *GetUserProfilePhotosParams) (UserProfilePhotos, error)
GetUserProfilePhotos calls Telegram method "getUserProfilePhotos". Doc: https://core.telegram.org/bots/api#getuserprofilephotos
func (*Bot) GetWebhookInfo ¶
func (bot *Bot) GetWebhookInfo(ctx context.Context, params *GetWebhookInfoParams) (WebhookInfo, error)
GetWebhookInfo calls Telegram method "getWebhookInfo". Doc: https://core.telegram.org/bots/api#getwebhookinfo
func (*Bot) GiftPremiumSubscription ¶
func (bot *Bot) GiftPremiumSubscription(ctx context.Context, params *GiftPremiumSubscriptionParams) (bool, error)
GiftPremiumSubscription calls Telegram method "giftPremiumSubscription". Doc: https://core.telegram.org/bots/api#giftpremiumsubscription
func (*Bot) HideGeneralForumTopic ¶
func (bot *Bot) HideGeneralForumTopic(ctx context.Context, params *HideGeneralForumTopicParams) (bool, error)
HideGeneralForumTopic calls Telegram method "hideGeneralForumTopic". Doc: https://core.telegram.org/bots/api#hidegeneralforumtopic
func (*Bot) LeaveChat ¶
LeaveChat calls Telegram method "leaveChat". Doc: https://core.telegram.org/bots/api#leavechat
func (*Bot) LogOut ¶
LogOut calls Telegram method "logOut". Doc: https://core.telegram.org/bots/api#logout
func (*Bot) PinChatMessage ¶
PinChatMessage calls Telegram method "pinChatMessage". Doc: https://core.telegram.org/bots/api#pinchatmessage
func (*Bot) PostStory ¶
PostStory calls Telegram method "postStory". Doc: https://core.telegram.org/bots/api#poststory
func (*Bot) PromoteChatMember ¶
func (bot *Bot) PromoteChatMember(ctx context.Context, params *PromoteChatMemberParams) (bool, error)
PromoteChatMember calls Telegram method "promoteChatMember". Doc: https://core.telegram.org/bots/api#promotechatmember
func (*Bot) ReadBusinessMessage ¶
func (bot *Bot) ReadBusinessMessage(ctx context.Context, params *ReadBusinessMessageParams) (bool, error)
ReadBusinessMessage calls Telegram method "readBusinessMessage". Doc: https://core.telegram.org/bots/api#readbusinessmessage
func (*Bot) RefundStarPayment ¶
func (bot *Bot) RefundStarPayment(ctx context.Context, params *RefundStarPaymentParams) (bool, error)
RefundStarPayment calls Telegram method "refundStarPayment". Doc: https://core.telegram.org/bots/api#refundstarpayment
func (*Bot) RemoveBusinessAccountProfilePhoto ¶
func (bot *Bot) RemoveBusinessAccountProfilePhoto(ctx context.Context, params *RemoveBusinessAccountProfilePhotoParams) (bool, error)
RemoveBusinessAccountProfilePhoto calls Telegram method "removeBusinessAccountProfilePhoto". Doc: https://core.telegram.org/bots/api#removebusinessaccountprofilephoto
func (*Bot) RemoveChatVerification ¶
func (bot *Bot) RemoveChatVerification(ctx context.Context, params *RemoveChatVerificationParams) (bool, error)
RemoveChatVerification calls Telegram method "removeChatVerification". Doc: https://core.telegram.org/bots/api#removechatverification
func (*Bot) RemoveMyProfilePhoto ¶
func (bot *Bot) RemoveMyProfilePhoto(ctx context.Context, params *RemoveMyProfilePhotoParams) (bool, error)
RemoveMyProfilePhoto calls Telegram method "removeMyProfilePhoto". Doc: https://core.telegram.org/bots/api#removemyprofilephoto
func (*Bot) RemoveUserVerification ¶
func (bot *Bot) RemoveUserVerification(ctx context.Context, params *RemoveUserVerificationParams) (bool, error)
RemoveUserVerification calls Telegram method "removeUserVerification". Doc: https://core.telegram.org/bots/api#removeuserverification
func (*Bot) ReopenForumTopic ¶
ReopenForumTopic calls Telegram method "reopenForumTopic". Doc: https://core.telegram.org/bots/api#reopenforumtopic
func (*Bot) ReopenGeneralForumTopic ¶
func (bot *Bot) ReopenGeneralForumTopic(ctx context.Context, params *ReopenGeneralForumTopicParams) (bool, error)
ReopenGeneralForumTopic calls Telegram method "reopenGeneralForumTopic". Doc: https://core.telegram.org/bots/api#reopengeneralforumtopic
func (*Bot) ReplaceStickerInSet ¶
func (bot *Bot) ReplaceStickerInSet(ctx context.Context, params *ReplaceStickerInSetParams) (bool, error)
ReplaceStickerInSet calls Telegram method "replaceStickerInSet". Doc: https://core.telegram.org/bots/api#replacestickerinset
func (*Bot) RepostStory ¶
RepostStory calls Telegram method "repostStory". Doc: https://core.telegram.org/bots/api#repoststory
func (*Bot) RestrictChatMember ¶
func (bot *Bot) RestrictChatMember(ctx context.Context, params *RestrictChatMemberParams) (bool, error)
RestrictChatMember calls Telegram method "restrictChatMember". Doc: https://core.telegram.org/bots/api#restrictchatmember
func (*Bot) RevokeChatInviteLink ¶
func (bot *Bot) RevokeChatInviteLink(ctx context.Context, params *RevokeChatInviteLinkParams) (ChatInviteLink, error)
RevokeChatInviteLink calls Telegram method "revokeChatInviteLink". Doc: https://core.telegram.org/bots/api#revokechatinvitelink
func (*Bot) SavePreparedInlineMessage ¶
func (bot *Bot) SavePreparedInlineMessage(ctx context.Context, params *SavePreparedInlineMessageParams) (PreparedInlineMessage, error)
SavePreparedInlineMessage calls Telegram method "savePreparedInlineMessage". Doc: https://core.telegram.org/bots/api#savepreparedinlinemessage
func (*Bot) SendAnimation ¶
SendAnimation calls Telegram method "sendAnimation". Doc: https://core.telegram.org/bots/api#sendanimation
func (*Bot) SendAudio ¶
SendAudio calls Telegram method "sendAudio". Doc: https://core.telegram.org/bots/api#sendaudio
func (*Bot) SendChatAction ¶
SendChatAction calls Telegram method "sendChatAction". Doc: https://core.telegram.org/bots/api#sendchataction
func (*Bot) SendChecklist ¶
SendChecklist calls Telegram method "sendChecklist". Doc: https://core.telegram.org/bots/api#sendchecklist
func (*Bot) SendContact ¶
SendContact calls Telegram method "sendContact". Doc: https://core.telegram.org/bots/api#sendcontact
func (*Bot) SendDice ¶
SendDice calls Telegram method "sendDice". Doc: https://core.telegram.org/bots/api#senddice
func (*Bot) SendDocument ¶
SendDocument calls Telegram method "sendDocument". Doc: https://core.telegram.org/bots/api#senddocument
func (*Bot) SendGame ¶
SendGame calls Telegram method "sendGame". Doc: https://core.telegram.org/bots/api#sendgame
func (*Bot) SendGift ¶
SendGift calls Telegram method "sendGift". Doc: https://core.telegram.org/bots/api#sendgift
func (*Bot) SendInvoice ¶
SendInvoice calls Telegram method "sendInvoice". Doc: https://core.telegram.org/bots/api#sendinvoice
func (*Bot) SendLocation ¶
SendLocation calls Telegram method "sendLocation". Doc: https://core.telegram.org/bots/api#sendlocation
func (*Bot) SendMediaGroup ¶
SendMediaGroup calls Telegram method "sendMediaGroup". Doc: https://core.telegram.org/bots/api#sendmediagroup
func (*Bot) SendMessage ¶
SendMessage calls Telegram method "sendMessage". Doc: https://core.telegram.org/bots/api#sendmessage
func (*Bot) SendMessageDraft ¶
SendMessageDraft calls Telegram method "sendMessageDraft". Doc: https://core.telegram.org/bots/api#sendmessagedraft
func (*Bot) SendPaidMedia ¶
SendPaidMedia calls Telegram method "sendPaidMedia". Doc: https://core.telegram.org/bots/api#sendpaidmedia
func (*Bot) SendPhoto ¶
SendPhoto calls Telegram method "sendPhoto". Doc: https://core.telegram.org/bots/api#sendphoto
func (*Bot) SendPoll ¶
SendPoll calls Telegram method "sendPoll". Doc: https://core.telegram.org/bots/api#sendpoll
func (*Bot) SendSticker ¶
SendSticker calls Telegram method "sendSticker". Doc: https://core.telegram.org/bots/api#sendsticker
func (*Bot) SendVenue ¶
SendVenue calls Telegram method "sendVenue". Doc: https://core.telegram.org/bots/api#sendvenue
func (*Bot) SendVideo ¶
SendVideo calls Telegram method "sendVideo". Doc: https://core.telegram.org/bots/api#sendvideo
func (*Bot) SendVideoNote ¶
SendVideoNote calls Telegram method "sendVideoNote". Doc: https://core.telegram.org/bots/api#sendvideonote
func (*Bot) SendVoice ¶
SendVoice calls Telegram method "sendVoice". Doc: https://core.telegram.org/bots/api#sendvoice
func (*Bot) SetBusinessAccountBio ¶
func (bot *Bot) SetBusinessAccountBio(ctx context.Context, params *SetBusinessAccountBioParams) (bool, error)
SetBusinessAccountBio calls Telegram method "setBusinessAccountBio". Doc: https://core.telegram.org/bots/api#setbusinessaccountbio
func (*Bot) SetBusinessAccountGiftSettings ¶
func (bot *Bot) SetBusinessAccountGiftSettings(ctx context.Context, params *SetBusinessAccountGiftSettingsParams) (bool, error)
SetBusinessAccountGiftSettings calls Telegram method "setBusinessAccountGiftSettings". Doc: https://core.telegram.org/bots/api#setbusinessaccountgiftsettings
func (*Bot) SetBusinessAccountName ¶
func (bot *Bot) SetBusinessAccountName(ctx context.Context, params *SetBusinessAccountNameParams) (bool, error)
SetBusinessAccountName calls Telegram method "setBusinessAccountName". Doc: https://core.telegram.org/bots/api#setbusinessaccountname
func (*Bot) SetBusinessAccountProfilePhoto ¶
func (bot *Bot) SetBusinessAccountProfilePhoto(ctx context.Context, params *SetBusinessAccountProfilePhotoParams) (bool, error)
SetBusinessAccountProfilePhoto calls Telegram method "setBusinessAccountProfilePhoto". Doc: https://core.telegram.org/bots/api#setbusinessaccountprofilephoto
func (*Bot) SetBusinessAccountUsername ¶
func (bot *Bot) SetBusinessAccountUsername(ctx context.Context, params *SetBusinessAccountUsernameParams) (bool, error)
SetBusinessAccountUsername calls Telegram method "setBusinessAccountUsername". Doc: https://core.telegram.org/bots/api#setbusinessaccountusername
func (*Bot) SetChatAdministratorCustomTitle ¶
func (bot *Bot) SetChatAdministratorCustomTitle(ctx context.Context, params *SetChatAdministratorCustomTitleParams) (bool, error)
SetChatAdministratorCustomTitle calls Telegram method "setChatAdministratorCustomTitle". Doc: https://core.telegram.org/bots/api#setchatadministratorcustomtitle
func (*Bot) SetChatDescription ¶
func (bot *Bot) SetChatDescription(ctx context.Context, params *SetChatDescriptionParams) (bool, error)
SetChatDescription calls Telegram method "setChatDescription". Doc: https://core.telegram.org/bots/api#setchatdescription
func (*Bot) SetChatMemberTag ¶
SetChatMemberTag calls Telegram method "setChatMemberTag". Doc: https://core.telegram.org/bots/api#setchatmembertag
func (*Bot) SetChatMenuButton ¶
func (bot *Bot) SetChatMenuButton(ctx context.Context, params *SetChatMenuButtonParams) (bool, error)
SetChatMenuButton calls Telegram method "setChatMenuButton". Doc: https://core.telegram.org/bots/api#setchatmenubutton
func (*Bot) SetChatPermissions ¶
func (bot *Bot) SetChatPermissions(ctx context.Context, params *SetChatPermissionsParams) (bool, error)
SetChatPermissions calls Telegram method "setChatPermissions". Doc: https://core.telegram.org/bots/api#setchatpermissions
func (*Bot) SetChatPhoto ¶
SetChatPhoto calls Telegram method "setChatPhoto". Doc: https://core.telegram.org/bots/api#setchatphoto
func (*Bot) SetChatStickerSet ¶
func (bot *Bot) SetChatStickerSet(ctx context.Context, params *SetChatStickerSetParams) (bool, error)
SetChatStickerSet calls Telegram method "setChatStickerSet". Doc: https://core.telegram.org/bots/api#setchatstickerset
func (*Bot) SetChatTitle ¶
SetChatTitle calls Telegram method "setChatTitle". Doc: https://core.telegram.org/bots/api#setchattitle
func (*Bot) SetCustomEmojiStickerSetThumbnail ¶
func (bot *Bot) SetCustomEmojiStickerSetThumbnail(ctx context.Context, params *SetCustomEmojiStickerSetThumbnailParams) (bool, error)
SetCustomEmojiStickerSetThumbnail calls Telegram method "setCustomEmojiStickerSetThumbnail". Doc: https://core.telegram.org/bots/api#setcustomemojistickersetthumbnail
func (*Bot) SetGameScore ¶
SetGameScore calls Telegram method "setGameScore". Doc: https://core.telegram.org/bots/api#setgamescore
func (*Bot) SetMessageReaction ¶
func (bot *Bot) SetMessageReaction(ctx context.Context, params *SetMessageReactionParams) (bool, error)
SetMessageReaction calls Telegram method "setMessageReaction". Doc: https://core.telegram.org/bots/api#setmessagereaction
func (*Bot) SetMyCommands ¶
SetMyCommands calls Telegram method "setMyCommands". Doc: https://core.telegram.org/bots/api#setmycommands
func (*Bot) SetMyDefaultAdministratorRights ¶
func (bot *Bot) SetMyDefaultAdministratorRights(ctx context.Context, params *SetMyDefaultAdministratorRightsParams) (bool, error)
SetMyDefaultAdministratorRights calls Telegram method "setMyDefaultAdministratorRights". Doc: https://core.telegram.org/bots/api#setmydefaultadministratorrights
func (*Bot) SetMyDescription ¶
SetMyDescription calls Telegram method "setMyDescription". Doc: https://core.telegram.org/bots/api#setmydescription
func (*Bot) SetMyName ¶
SetMyName calls Telegram method "setMyName". Doc: https://core.telegram.org/bots/api#setmyname
func (*Bot) SetMyProfilePhoto ¶
func (bot *Bot) SetMyProfilePhoto(ctx context.Context, params *SetMyProfilePhotoParams) (bool, error)
SetMyProfilePhoto calls Telegram method "setMyProfilePhoto". Doc: https://core.telegram.org/bots/api#setmyprofilephoto
func (*Bot) SetMyShortDescription ¶
func (bot *Bot) SetMyShortDescription(ctx context.Context, params *SetMyShortDescriptionParams) (bool, error)
SetMyShortDescription calls Telegram method "setMyShortDescription". Doc: https://core.telegram.org/bots/api#setmyshortdescription
func (*Bot) SetPassportDataErrors ¶
func (bot *Bot) SetPassportDataErrors(ctx context.Context, params *SetPassportDataErrorsParams) (bool, error)
SetPassportDataErrors calls Telegram method "setPassportDataErrors". Doc: https://core.telegram.org/bots/api#setpassportdataerrors
func (*Bot) SetStickerEmojiList ¶
func (bot *Bot) SetStickerEmojiList(ctx context.Context, params *SetStickerEmojiListParams) (bool, error)
SetStickerEmojiList calls Telegram method "setStickerEmojiList". Doc: https://core.telegram.org/bots/api#setstickeremojilist
func (*Bot) SetStickerKeywords ¶
func (bot *Bot) SetStickerKeywords(ctx context.Context, params *SetStickerKeywordsParams) (bool, error)
SetStickerKeywords calls Telegram method "setStickerKeywords". Doc: https://core.telegram.org/bots/api#setstickerkeywords
func (*Bot) SetStickerMaskPosition ¶
func (bot *Bot) SetStickerMaskPosition(ctx context.Context, params *SetStickerMaskPositionParams) (bool, error)
SetStickerMaskPosition calls Telegram method "setStickerMaskPosition". Doc: https://core.telegram.org/bots/api#setstickermaskposition
func (*Bot) SetStickerPositionInSet ¶
func (bot *Bot) SetStickerPositionInSet(ctx context.Context, params *SetStickerPositionInSetParams) (bool, error)
SetStickerPositionInSet calls Telegram method "setStickerPositionInSet". Doc: https://core.telegram.org/bots/api#setstickerpositioninset
func (*Bot) SetStickerSetThumbnail ¶
func (bot *Bot) SetStickerSetThumbnail(ctx context.Context, params *SetStickerSetThumbnailParams) (bool, error)
SetStickerSetThumbnail calls Telegram method "setStickerSetThumbnail". Doc: https://core.telegram.org/bots/api#setstickersetthumbnail
func (*Bot) SetStickerSetTitle ¶
func (bot *Bot) SetStickerSetTitle(ctx context.Context, params *SetStickerSetTitleParams) (bool, error)
SetStickerSetTitle calls Telegram method "setStickerSetTitle". Doc: https://core.telegram.org/bots/api#setstickersettitle
func (*Bot) SetUserEmojiStatus ¶
func (bot *Bot) SetUserEmojiStatus(ctx context.Context, params *SetUserEmojiStatusParams) (bool, error)
SetUserEmojiStatus calls Telegram method "setUserEmojiStatus". Doc: https://core.telegram.org/bots/api#setuseremojistatus
func (*Bot) SetWebhook ¶
SetWebhook calls Telegram method "setWebhook". Doc: https://core.telegram.org/bots/api#setwebhook
func (*Bot) StartUpdatePoller ¶
func (bot *Bot) StartUpdatePoller(ctx context.Context, opts ...UpdatePollerOption) (*UpdatePoller, error)
StartUpdatePoller creates and starts an UpdatePoller.
func (*Bot) StopMessageLiveLocation ¶
func (bot *Bot) StopMessageLiveLocation(ctx context.Context, params *StopMessageLiveLocationParams) (any, error)
StopMessageLiveLocation calls Telegram method "stopMessageLiveLocation". Doc: https://core.telegram.org/bots/api#stopmessagelivelocation
func (*Bot) StopPoll ¶
StopPoll calls Telegram method "stopPoll". Doc: https://core.telegram.org/bots/api#stoppoll
func (*Bot) TransferBusinessAccountStars ¶
func (bot *Bot) TransferBusinessAccountStars(ctx context.Context, params *TransferBusinessAccountStarsParams) (bool, error)
TransferBusinessAccountStars calls Telegram method "transferBusinessAccountStars". Doc: https://core.telegram.org/bots/api#transferbusinessaccountstars
func (*Bot) TransferGift ¶
TransferGift calls Telegram method "transferGift". Doc: https://core.telegram.org/bots/api#transfergift
func (*Bot) UnbanChatMember ¶
UnbanChatMember calls Telegram method "unbanChatMember". Doc: https://core.telegram.org/bots/api#unbanchatmember
func (*Bot) UnbanChatSenderChat ¶
func (bot *Bot) UnbanChatSenderChat(ctx context.Context, params *UnbanChatSenderChatParams) (bool, error)
UnbanChatSenderChat calls Telegram method "unbanChatSenderChat". Doc: https://core.telegram.org/bots/api#unbanchatsenderchat
func (*Bot) UnhideGeneralForumTopic ¶
func (bot *Bot) UnhideGeneralForumTopic(ctx context.Context, params *UnhideGeneralForumTopicParams) (bool, error)
UnhideGeneralForumTopic calls Telegram method "unhideGeneralForumTopic". Doc: https://core.telegram.org/bots/api#unhidegeneralforumtopic
func (*Bot) UnpinAllChatMessages ¶
func (bot *Bot) UnpinAllChatMessages(ctx context.Context, params *UnpinAllChatMessagesParams) (bool, error)
UnpinAllChatMessages calls Telegram method "unpinAllChatMessages". Doc: https://core.telegram.org/bots/api#unpinallchatmessages
func (*Bot) UnpinAllForumTopicMessages ¶
func (bot *Bot) UnpinAllForumTopicMessages(ctx context.Context, params *UnpinAllForumTopicMessagesParams) (bool, error)
UnpinAllForumTopicMessages calls Telegram method "unpinAllForumTopicMessages". Doc: https://core.telegram.org/bots/api#unpinallforumtopicmessages
func (*Bot) UnpinAllGeneralForumTopicMessages ¶
func (bot *Bot) UnpinAllGeneralForumTopicMessages(ctx context.Context, params *UnpinAllGeneralForumTopicMessagesParams) (bool, error)
UnpinAllGeneralForumTopicMessages calls Telegram method "unpinAllGeneralForumTopicMessages". Doc: https://core.telegram.org/bots/api#unpinallgeneralforumtopicmessages
func (*Bot) UnpinChatMessage ¶
UnpinChatMessage calls Telegram method "unpinChatMessage". Doc: https://core.telegram.org/bots/api#unpinchatmessage
func (*Bot) UpgradeGift ¶
UpgradeGift calls Telegram method "upgradeGift". Doc: https://core.telegram.org/bots/api#upgradegift
func (*Bot) UploadStickerFile ¶
func (bot *Bot) UploadStickerFile(ctx context.Context, params *UploadStickerFileParams) (File, error)
UploadStickerFile calls Telegram method "uploadStickerFile". Doc: https://core.telegram.org/bots/api#uploadstickerfile
func (*Bot) VerifyChat ¶
VerifyChat calls Telegram method "verifyChat". Doc: https://core.telegram.org/bots/api#verifychat
func (*Bot) VerifyUser ¶
VerifyUser calls Telegram method "verifyUser". Doc: https://core.telegram.org/bots/api#verifyuser
type BotCommand ¶
BotCommand maps to Telegram Bot API type "BotCommand".
type BotCommandScope ¶
type BotCommandScope interface {
// contains filtered or unexported methods
}
BotCommandScope is a union type in Telegram Bot API.
type BotCommandScopeAllChatAdministrators ¶
type BotCommandScopeAllChatAdministrators struct {
Type string `json:"type"`
}
BotCommandScopeAllChatAdministrators maps to Telegram Bot API type "BotCommandScopeAllChatAdministrators".
type BotCommandScopeAllGroupChats ¶
type BotCommandScopeAllGroupChats struct {
Type string `json:"type"`
}
BotCommandScopeAllGroupChats maps to Telegram Bot API type "BotCommandScopeAllGroupChats".
type BotCommandScopeAllPrivateChats ¶
type BotCommandScopeAllPrivateChats struct {
Type string `json:"type"`
}
BotCommandScopeAllPrivateChats maps to Telegram Bot API type "BotCommandScopeAllPrivateChats".
type BotCommandScopeChat ¶
BotCommandScopeChat maps to Telegram Bot API type "BotCommandScopeChat".
type BotCommandScopeChatAdministrators ¶
type BotCommandScopeChatAdministrators struct {
Type string `json:"type"`
ChatID any `json:"chat_id"`
}
BotCommandScopeChatAdministrators maps to Telegram Bot API type "BotCommandScopeChatAdministrators".
type BotCommandScopeChatMember ¶
type BotCommandScopeChatMember struct {
Type string `json:"type"`
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
}
BotCommandScopeChatMember maps to Telegram Bot API type "BotCommandScopeChatMember".
type BotCommandScopeDefault ¶
type BotCommandScopeDefault struct {
Type string `json:"type"`
}
BotCommandScopeDefault maps to Telegram Bot API type "BotCommandScopeDefault".
type BotDescription ¶
type BotDescription struct {
Description string `json:"description"`
}
BotDescription maps to Telegram Bot API type "BotDescription".
type BotName ¶
type BotName struct {
Name string `json:"name"`
}
BotName maps to Telegram Bot API type "BotName".
type BotOption ¶
type BotOption func(*Bot)
BotOption configures a Bot client.
func WithAPIURL ¶
WithAPIURL overrides Telegram API base URL. Useful for local Bot API servers.
func WithHTTPClient ¶
WithHTTPClient overrides the HTTP client used by the Bot.
type BotShortDescription ¶
type BotShortDescription struct {
ShortDescription string `json:"short_description"`
}
BotShortDescription maps to Telegram Bot API type "BotShortDescription".
type BusinessBotRights ¶
type BusinessBotRights struct {
CanReply bool `json:"can_reply"`
CanReadMessages bool `json:"can_read_messages"`
CanDeleteSentMessages bool `json:"can_delete_sent_messages"`
CanDeleteAllMessages bool `json:"can_delete_all_messages"`
CanEditName bool `json:"can_edit_name"`
CanEditBio bool `json:"can_edit_bio"`
CanEditProfilePhoto bool `json:"can_edit_profile_photo"`
CanEditUsername bool `json:"can_edit_username"`
CanChangeGiftSettings bool `json:"can_change_gift_settings"`
CanViewGiftsAndStars bool `json:"can_view_gifts_and_stars"`
CanConvertGiftsToStars bool `json:"can_convert_gifts_to_stars"`
CanTransferAndUpgradeGifts bool `json:"can_transfer_and_upgrade_gifts"`
CanTransferStars bool `json:"can_transfer_stars"`
CanManageStories bool `json:"can_manage_stories"`
}
BusinessBotRights maps to Telegram Bot API type "BusinessBotRights".
type BusinessConnection ¶
type BusinessConnection struct {
ID string `json:"id"`
User *User `json:"user"`
UserChatID int64 `json:"user_chat_id"`
Date int64 `json:"date"`
Rights *BusinessBotRights `json:"rights"`
IsEnabled bool `json:"is_enabled"`
}
BusinessConnection maps to Telegram Bot API type "BusinessConnection".
type BusinessIntro ¶
type BusinessIntro struct {
Title string `json:"title"`
Message string `json:"message"`
Sticker *Sticker `json:"sticker"`
}
BusinessIntro maps to Telegram Bot API type "BusinessIntro".
type BusinessLocation ¶
type BusinessLocation struct {
Address string `json:"address"`
Location *Location `json:"location"`
}
BusinessLocation maps to Telegram Bot API type "BusinessLocation".
type BusinessMessagesDeleted ¶
type BusinessMessagesDeleted struct {
BusinessConnectionID string `json:"business_connection_id"`
Chat *Chat `json:"chat"`
MessageIds []int64 `json:"message_ids"`
}
BusinessMessagesDeleted maps to Telegram Bot API type "BusinessMessagesDeleted".
type BusinessOpeningHours ¶
type BusinessOpeningHours struct {
TimeZoneName string `json:"time_zone_name"`
OpeningHours []BusinessOpeningHoursInterval `json:"opening_hours"`
}
BusinessOpeningHours maps to Telegram Bot API type "BusinessOpeningHours".
type BusinessOpeningHoursInterval ¶
type BusinessOpeningHoursInterval struct {
OpeningMinute int64 `json:"opening_minute"`
ClosingMinute int64 `json:"closing_minute"`
}
BusinessOpeningHoursInterval maps to Telegram Bot API type "BusinessOpeningHoursInterval".
type CallbackGame ¶
type CallbackGame struct {
}
CallbackGame maps to Telegram Bot API type "CallbackGame".
type CallbackQuery ¶
type CallbackQuery struct {
ID string `json:"id"`
From *User `json:"from"`
Message MaybeInaccessibleMessage `json:"message"`
InlineMessageID string `json:"inline_message_id"`
ChatInstance string `json:"chat_instance"`
Data string `json:"data"`
GameShortName string `json:"game_short_name"`
}
CallbackQuery maps to Telegram Bot API type "CallbackQuery".
func (*CallbackQuery) UnmarshalJSON ¶
func (value *CallbackQuery) UnmarshalJSON(data []byte) error
type Chat ¶
type Chat struct {
ID int64 `json:"id"`
Type string `json:"type"`
Title string `json:"title"`
Username string `json:"username"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
IsForum bool `json:"is_forum"`
IsDirectMessages bool `json:"is_direct_messages"`
}
Chat maps to Telegram Bot API type "Chat".
type ChatAdministratorRights ¶
type ChatAdministratorRights struct {
IsAnonymous bool `json:"is_anonymous"`
CanManageChat bool `json:"can_manage_chat"`
CanDeleteMessages bool `json:"can_delete_messages"`
CanManageVideoChats bool `json:"can_manage_video_chats"`
CanRestrictMembers bool `json:"can_restrict_members"`
CanPromoteMembers bool `json:"can_promote_members"`
CanChangeInfo bool `json:"can_change_info"`
CanInviteUsers bool `json:"can_invite_users"`
CanPostStories bool `json:"can_post_stories"`
CanEditStories bool `json:"can_edit_stories"`
CanDeleteStories bool `json:"can_delete_stories"`
CanPostMessages bool `json:"can_post_messages"`
CanEditMessages bool `json:"can_edit_messages"`
CanPinMessages bool `json:"can_pin_messages"`
CanManageTopics bool `json:"can_manage_topics"`
CanManageDirectMessages bool `json:"can_manage_direct_messages"`
CanManageTags bool `json:"can_manage_tags"`
}
ChatAdministratorRights maps to Telegram Bot API type "ChatAdministratorRights".
type ChatBackground ¶
type ChatBackground struct {
Type BackgroundType `json:"type"`
}
ChatBackground maps to Telegram Bot API type "ChatBackground".
func (*ChatBackground) UnmarshalJSON ¶
func (value *ChatBackground) UnmarshalJSON(data []byte) error
type ChatBoost ¶
type ChatBoost struct {
BoostID string `json:"boost_id"`
AddDate int64 `json:"add_date"`
ExpirationDate int64 `json:"expiration_date"`
Source ChatBoostSource `json:"source"`
}
ChatBoost maps to Telegram Bot API type "ChatBoost".
func (*ChatBoost) UnmarshalJSON ¶
type ChatBoostAdded ¶
type ChatBoostAdded struct {
BoostCount int64 `json:"boost_count"`
}
ChatBoostAdded maps to Telegram Bot API type "ChatBoostAdded".
type ChatBoostRemoved ¶
type ChatBoostRemoved struct {
Chat *Chat `json:"chat"`
BoostID string `json:"boost_id"`
RemoveDate int64 `json:"remove_date"`
Source ChatBoostSource `json:"source"`
}
ChatBoostRemoved maps to Telegram Bot API type "ChatBoostRemoved".
func (*ChatBoostRemoved) UnmarshalJSON ¶
func (value *ChatBoostRemoved) UnmarshalJSON(data []byte) error
type ChatBoostSource ¶
type ChatBoostSource interface {
// contains filtered or unexported methods
}
ChatBoostSource is a union type in Telegram Bot API.
type ChatBoostSourceGiftCode ¶
ChatBoostSourceGiftCode maps to Telegram Bot API type "ChatBoostSourceGiftCode".
type ChatBoostSourceGiveaway ¶
type ChatBoostSourceGiveaway struct {
Source string `json:"source"`
GiveawayMessageID int64 `json:"giveaway_message_id"`
User *User `json:"user"`
PrizeStarCount int64 `json:"prize_star_count"`
IsUnclaimed bool `json:"is_unclaimed"`
}
ChatBoostSourceGiveaway maps to Telegram Bot API type "ChatBoostSourceGiveaway".
type ChatBoostSourcePremium ¶
ChatBoostSourcePremium maps to Telegram Bot API type "ChatBoostSourcePremium".
type ChatBoostUpdated ¶
ChatBoostUpdated maps to Telegram Bot API type "ChatBoostUpdated".
type ChatFullInfo ¶
type ChatFullInfo struct {
ID int64 `json:"id"`
Type string `json:"type"`
Title string `json:"title"`
Username string `json:"username"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
IsForum bool `json:"is_forum"`
IsDirectMessages bool `json:"is_direct_messages"`
AccentColorID int64 `json:"accent_color_id"`
MaxReactionCount int64 `json:"max_reaction_count"`
Photo *ChatPhoto `json:"photo"`
ActiveUsernames []string `json:"active_usernames"`
Birthdate *Birthdate `json:"birthdate"`
BusinessIntro *BusinessIntro `json:"business_intro"`
BusinessLocation *BusinessLocation `json:"business_location"`
BusinessOpeningHours *BusinessOpeningHours `json:"business_opening_hours"`
PersonalChat *Chat `json:"personal_chat"`
ParentChat *Chat `json:"parent_chat"`
AvailableReactions []ReactionType `json:"available_reactions"`
BackgroundCustomEmojiID string `json:"background_custom_emoji_id"`
ProfileAccentColorID int64 `json:"profile_accent_color_id"`
ProfileBackgroundCustomEmojiID string `json:"profile_background_custom_emoji_id"`
EmojiStatusCustomEmojiID string `json:"emoji_status_custom_emoji_id"`
EmojiStatusExpirationDate int64 `json:"emoji_status_expiration_date"`
Bio string `json:"bio"`
HasPrivateForwards bool `json:"has_private_forwards"`
HasRestrictedVoiceAndVideoMessages bool `json:"has_restricted_voice_and_video_messages"`
JoinToSendMessages bool `json:"join_to_send_messages"`
JoinByRequest bool `json:"join_by_request"`
Description string `json:"description"`
InviteLink string `json:"invite_link"`
PinnedMessage *Message `json:"pinned_message"`
Permissions *ChatPermissions `json:"permissions"`
AcceptedGiftTypes *AcceptedGiftTypes `json:"accepted_gift_types"`
CanSendPaidMedia bool `json:"can_send_paid_media"`
SlowModeDelay int64 `json:"slow_mode_delay"`
UnrestrictBoostCount int64 `json:"unrestrict_boost_count"`
MessageAutoDeleteTime int64 `json:"message_auto_delete_time"`
HasAggressiveAntiSpamEnabled bool `json:"has_aggressive_anti_spam_enabled"`
HasHiddenMembers bool `json:"has_hidden_members"`
HasProtectedContent bool `json:"has_protected_content"`
HasVisibleHistory bool `json:"has_visible_history"`
StickerSetName string `json:"sticker_set_name"`
CanSetStickerSet bool `json:"can_set_sticker_set"`
CustomEmojiStickerSetName string `json:"custom_emoji_sticker_set_name"`
LinkedChatID int64 `json:"linked_chat_id"`
Location *ChatLocation `json:"location"`
Rating *UserRating `json:"rating"`
FirstProfileAudio *Audio `json:"first_profile_audio"`
UniqueGiftColors *UniqueGiftColors `json:"unique_gift_colors"`
PaidMessageStarCount int64 `json:"paid_message_star_count"`
}
ChatFullInfo maps to Telegram Bot API type "ChatFullInfo".
func (*ChatFullInfo) UnmarshalJSON ¶
func (value *ChatFullInfo) UnmarshalJSON(data []byte) error
type ChatInviteLink ¶
type ChatInviteLink struct {
InviteLink string `json:"invite_link"`
Creator *User `json:"creator"`
CreatesJoinRequest bool `json:"creates_join_request"`
IsPrimary bool `json:"is_primary"`
IsRevoked bool `json:"is_revoked"`
Name string `json:"name"`
ExpireDate int64 `json:"expire_date"`
MemberLimit int64 `json:"member_limit"`
PendingJoinRequestCount int64 `json:"pending_join_request_count"`
SubscriptionPeriod int64 `json:"subscription_period"`
SubscriptionPrice int64 `json:"subscription_price"`
}
ChatInviteLink maps to Telegram Bot API type "ChatInviteLink".
type ChatJoinRequest ¶
type ChatJoinRequest struct {
Chat *Chat `json:"chat"`
From *User `json:"from"`
UserChatID int64 `json:"user_chat_id"`
Date int64 `json:"date"`
Bio string `json:"bio"`
InviteLink *ChatInviteLink `json:"invite_link"`
}
ChatJoinRequest maps to Telegram Bot API type "ChatJoinRequest".
type ChatLocation ¶
ChatLocation maps to Telegram Bot API type "ChatLocation".
type ChatMember ¶
type ChatMember interface {
// contains filtered or unexported methods
}
ChatMember is a union type in Telegram Bot API.
type ChatMemberAdministrator ¶
type ChatMemberAdministrator struct {
Status string `json:"status"`
User *User `json:"user"`
CanBeEdited bool `json:"can_be_edited"`
IsAnonymous bool `json:"is_anonymous"`
CanManageChat bool `json:"can_manage_chat"`
CanDeleteMessages bool `json:"can_delete_messages"`
CanManageVideoChats bool `json:"can_manage_video_chats"`
CanRestrictMembers bool `json:"can_restrict_members"`
CanPromoteMembers bool `json:"can_promote_members"`
CanChangeInfo bool `json:"can_change_info"`
CanInviteUsers bool `json:"can_invite_users"`
CanPostStories bool `json:"can_post_stories"`
CanEditStories bool `json:"can_edit_stories"`
CanDeleteStories bool `json:"can_delete_stories"`
CanPostMessages bool `json:"can_post_messages"`
CanEditMessages bool `json:"can_edit_messages"`
CanPinMessages bool `json:"can_pin_messages"`
CanManageTopics bool `json:"can_manage_topics"`
CanManageDirectMessages bool `json:"can_manage_direct_messages"`
CanManageTags bool `json:"can_manage_tags"`
CustomTitle string `json:"custom_title"`
}
ChatMemberAdministrator maps to Telegram Bot API type "ChatMemberAdministrator".
type ChatMemberBanned ¶
type ChatMemberBanned struct {
Status string `json:"status"`
User *User `json:"user"`
UntilDate int64 `json:"until_date"`
}
ChatMemberBanned maps to Telegram Bot API type "ChatMemberBanned".
type ChatMemberLeft ¶
ChatMemberLeft maps to Telegram Bot API type "ChatMemberLeft".
type ChatMemberMember ¶
type ChatMemberMember struct {
Status string `json:"status"`
Tag string `json:"tag"`
User *User `json:"user"`
UntilDate int64 `json:"until_date"`
}
ChatMemberMember maps to Telegram Bot API type "ChatMemberMember".
type ChatMemberOwner ¶
type ChatMemberOwner struct {
Status string `json:"status"`
User *User `json:"user"`
IsAnonymous bool `json:"is_anonymous"`
CustomTitle string `json:"custom_title"`
}
ChatMemberOwner maps to Telegram Bot API type "ChatMemberOwner".
type ChatMemberRestricted ¶
type ChatMemberRestricted struct {
Status string `json:"status"`
Tag string `json:"tag"`
User *User `json:"user"`
IsMember bool `json:"is_member"`
CanSendMessages bool `json:"can_send_messages"`
CanSendAudios bool `json:"can_send_audios"`
CanSendDocuments bool `json:"can_send_documents"`
CanSendPhotos bool `json:"can_send_photos"`
CanSendVideos bool `json:"can_send_videos"`
CanSendVideoNotes bool `json:"can_send_video_notes"`
CanSendVoiceNotes bool `json:"can_send_voice_notes"`
CanSendPolls bool `json:"can_send_polls"`
CanSendOtherMessages bool `json:"can_send_other_messages"`
CanAddWebPagePreviews bool `json:"can_add_web_page_previews"`
CanEditTag bool `json:"can_edit_tag"`
CanChangeInfo bool `json:"can_change_info"`
CanInviteUsers bool `json:"can_invite_users"`
CanPinMessages bool `json:"can_pin_messages"`
CanManageTopics bool `json:"can_manage_topics"`
UntilDate int64 `json:"until_date"`
}
ChatMemberRestricted maps to Telegram Bot API type "ChatMemberRestricted".
type ChatMemberUpdated ¶
type ChatMemberUpdated struct {
Chat *Chat `json:"chat"`
From *User `json:"from"`
Date int64 `json:"date"`
OldChatMember ChatMember `json:"old_chat_member"`
NewChatMember ChatMember `json:"new_chat_member"`
InviteLink *ChatInviteLink `json:"invite_link"`
ViaJoinRequest bool `json:"via_join_request"`
ViaChatFolderInviteLink bool `json:"via_chat_folder_invite_link"`
}
ChatMemberUpdated maps to Telegram Bot API type "ChatMemberUpdated".
func (*ChatMemberUpdated) UnmarshalJSON ¶
func (value *ChatMemberUpdated) UnmarshalJSON(data []byte) error
type ChatOwnerChanged ¶
type ChatOwnerChanged struct {
NewOwner *User `json:"new_owner"`
}
ChatOwnerChanged maps to Telegram Bot API type "ChatOwnerChanged".
type ChatOwnerLeft ¶
type ChatOwnerLeft struct {
NewOwner *User `json:"new_owner"`
}
ChatOwnerLeft maps to Telegram Bot API type "ChatOwnerLeft".
type ChatPermissions ¶
type ChatPermissions struct {
CanSendMessages bool `json:"can_send_messages"`
CanSendAudios bool `json:"can_send_audios"`
CanSendDocuments bool `json:"can_send_documents"`
CanSendPhotos bool `json:"can_send_photos"`
CanSendVideos bool `json:"can_send_videos"`
CanSendVideoNotes bool `json:"can_send_video_notes"`
CanSendVoiceNotes bool `json:"can_send_voice_notes"`
CanSendPolls bool `json:"can_send_polls"`
CanSendOtherMessages bool `json:"can_send_other_messages"`
CanAddWebPagePreviews bool `json:"can_add_web_page_previews"`
CanEditTag bool `json:"can_edit_tag"`
CanChangeInfo bool `json:"can_change_info"`
CanInviteUsers bool `json:"can_invite_users"`
CanPinMessages bool `json:"can_pin_messages"`
CanManageTopics bool `json:"can_manage_topics"`
}
ChatPermissions maps to Telegram Bot API type "ChatPermissions".
type ChatPhoto ¶
type ChatPhoto struct {
SmallFileID string `json:"small_file_id"`
SmallFileUniqueID string `json:"small_file_unique_id"`
BigFileID string `json:"big_file_id"`
BigFileUniqueID string `json:"big_file_unique_id"`
}
ChatPhoto maps to Telegram Bot API type "ChatPhoto".
type Checklist ¶
type Checklist struct {
Title string `json:"title"`
TitleEntities []MessageEntity `json:"title_entities"`
Tasks []ChecklistTask `json:"tasks"`
OthersCanAddTasks bool `json:"others_can_add_tasks"`
OthersCanMarkTasksAsDone bool `json:"others_can_mark_tasks_as_done"`
}
Checklist maps to Telegram Bot API type "Checklist".
type ChecklistTask ¶
type ChecklistTask struct {
ID int64 `json:"id"`
Text string `json:"text"`
TextEntities []MessageEntity `json:"text_entities"`
CompletedByUser *User `json:"completed_by_user"`
CompletedByChat *Chat `json:"completed_by_chat"`
CompletionDate int64 `json:"completion_date"`
}
ChecklistTask maps to Telegram Bot API type "ChecklistTask".
type ChecklistTasksAdded ¶
type ChecklistTasksAdded struct {
ChecklistMessage *Message `json:"checklist_message"`
Tasks []ChecklistTask `json:"tasks"`
}
ChecklistTasksAdded maps to Telegram Bot API type "ChecklistTasksAdded".
type ChecklistTasksDone ¶
type ChecklistTasksDone struct {
ChecklistMessage *Message `json:"checklist_message"`
MarkedAsDoneTaskIds []int64 `json:"marked_as_done_task_ids"`
MarkedAsNotDoneTaskIds []int64 `json:"marked_as_not_done_task_ids"`
}
ChecklistTasksDone maps to Telegram Bot API type "ChecklistTasksDone".
type ChosenInlineResult ¶
type ChosenInlineResult struct {
ResultID string `json:"result_id"`
From *User `json:"from"`
Location *Location `json:"location"`
InlineMessageID string `json:"inline_message_id"`
Query string `json:"query"`
}
ChosenInlineResult maps to Telegram Bot API type "ChosenInlineResult".
type CloseForumTopicParams ¶
type CloseForumTopicParams struct {
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id"`
}
CloseForumTopicParams contains params for Telegram method "closeForumTopic".
type CloseGeneralForumTopicParams ¶
type CloseGeneralForumTopicParams struct {
ChatID any `json:"chat_id"`
}
CloseGeneralForumTopicParams contains params for Telegram method "closeGeneralForumTopic".
type CloseParams ¶
type CloseParams struct {
}
CloseParams contains params for Telegram method "close".
type Contact ¶
type Contact struct {
PhoneNumber string `json:"phone_number"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
UserID int64 `json:"user_id"`
Vcard string `json:"vcard"`
}
Contact maps to Telegram Bot API type "Contact".
type ConvertGiftToStarsParams ¶
type ConvertGiftToStarsParams struct {
BusinessConnectionID string `json:"business_connection_id"`
OwnedGiftID string `json:"owned_gift_id"`
}
ConvertGiftToStarsParams contains params for Telegram method "convertGiftToStars".
type CopyMessageParams ¶
type CopyMessageParams struct {
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
FromChatID any `json:"from_chat_id"`
MessageID int64 `json:"message_id"`
VideoStartTimestamp int64 `json:"video_start_timestamp,omitempty"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
CopyMessageParams contains params for Telegram method "copyMessage".
type CopyMessagesParams ¶
type CopyMessagesParams struct {
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
FromChatID any `json:"from_chat_id"`
MessageIds []int64 `json:"message_ids"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
RemoveCaption bool `json:"remove_caption,omitempty"`
}
CopyMessagesParams contains params for Telegram method "copyMessages".
type CopyTextButton ¶
type CopyTextButton struct {
Text string `json:"text"`
}
CopyTextButton maps to Telegram Bot API type "CopyTextButton".
type CreateChatInviteLinkParams ¶
type CreateChatInviteLinkParams struct {
ChatID any `json:"chat_id"`
Name string `json:"name,omitempty"`
ExpireDate int64 `json:"expire_date,omitempty"`
MemberLimit int64 `json:"member_limit,omitempty"`
CreatesJoinRequest bool `json:"creates_join_request,omitempty"`
}
CreateChatInviteLinkParams contains params for Telegram method "createChatInviteLink".
type CreateChatSubscriptionInviteLinkParams ¶
type CreateChatSubscriptionInviteLinkParams struct {
ChatID any `json:"chat_id"`
Name string `json:"name,omitempty"`
SubscriptionPeriod int64 `json:"subscription_period"`
SubscriptionPrice int64 `json:"subscription_price"`
}
CreateChatSubscriptionInviteLinkParams contains params for Telegram method "createChatSubscriptionInviteLink".
type CreateForumTopicParams ¶
type CreateForumTopicParams struct {
ChatID any `json:"chat_id"`
Name string `json:"name"`
IconColor int64 `json:"icon_color,omitempty"`
IconCustomEmojiID string `json:"icon_custom_emoji_id,omitempty"`
}
CreateForumTopicParams contains params for Telegram method "createForumTopic".
type CreateInvoiceLinkParams ¶
type CreateInvoiceLinkParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
Title string `json:"title"`
Description string `json:"description"`
Payload string `json:"payload"`
ProviderToken string `json:"provider_token,omitempty"`
Currency string `json:"currency"`
Prices []LabeledPrice `json:"prices"`
SubscriptionPeriod int64 `json:"subscription_period,omitempty"`
MaxTipAmount int64 `json:"max_tip_amount,omitempty"`
SuggestedTipAmounts []int64 `json:"suggested_tip_amounts,omitempty"`
ProviderData string `json:"provider_data,omitempty"`
PhotoURL string `json:"photo_url,omitempty"`
PhotoSize int64 `json:"photo_size,omitempty"`
PhotoWidth int64 `json:"photo_width,omitempty"`
PhotoHeight int64 `json:"photo_height,omitempty"`
NeedName bool `json:"need_name,omitempty"`
NeedPhoneNumber bool `json:"need_phone_number,omitempty"`
NeedEmail bool `json:"need_email,omitempty"`
NeedShippingAddress bool `json:"need_shipping_address,omitempty"`
SendPhoneNumberToProvider bool `json:"send_phone_number_to_provider,omitempty"`
SendEmailToProvider bool `json:"send_email_to_provider,omitempty"`
IsFlexible bool `json:"is_flexible,omitempty"`
}
CreateInvoiceLinkParams contains params for Telegram method "createInvoiceLink".
type CreateNewStickerSetParams ¶
type CreateNewStickerSetParams struct {
UserID int64 `json:"user_id"`
Name string `json:"name"`
Title string `json:"title"`
Stickers []InputSticker `json:"stickers"`
StickerType string `json:"sticker_type,omitempty"`
NeedsRepainting bool `json:"needs_repainting,omitempty"`
}
CreateNewStickerSetParams contains params for Telegram method "createNewStickerSet".
type DeclineChatJoinRequestParams ¶
type DeclineChatJoinRequestParams struct {
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
}
DeclineChatJoinRequestParams contains params for Telegram method "declineChatJoinRequest".
type DeclineSuggestedPostParams ¶
type DeclineSuggestedPostParams struct {
ChatID int64 `json:"chat_id"`
MessageID int64 `json:"message_id"`
Comment string `json:"comment,omitempty"`
}
DeclineSuggestedPostParams contains params for Telegram method "declineSuggestedPost".
type DeleteBusinessMessagesParams ¶
type DeleteBusinessMessagesParams struct {
BusinessConnectionID string `json:"business_connection_id"`
MessageIds []int64 `json:"message_ids"`
}
DeleteBusinessMessagesParams contains params for Telegram method "deleteBusinessMessages".
type DeleteChatPhotoParams ¶
type DeleteChatPhotoParams struct {
ChatID any `json:"chat_id"`
}
DeleteChatPhotoParams contains params for Telegram method "deleteChatPhoto".
type DeleteChatStickerSetParams ¶
type DeleteChatStickerSetParams struct {
ChatID any `json:"chat_id"`
}
DeleteChatStickerSetParams contains params for Telegram method "deleteChatStickerSet".
type DeleteForumTopicParams ¶
type DeleteForumTopicParams struct {
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id"`
}
DeleteForumTopicParams contains params for Telegram method "deleteForumTopic".
type DeleteMessageParams ¶
DeleteMessageParams contains params for Telegram method "deleteMessage".
type DeleteMessagesParams ¶
type DeleteMessagesParams struct {
ChatID any `json:"chat_id"`
MessageIds []int64 `json:"message_ids"`
}
DeleteMessagesParams contains params for Telegram method "deleteMessages".
type DeleteMyCommandsParams ¶
type DeleteMyCommandsParams struct {
Scope BotCommandScope `json:"scope,omitempty"`
LanguageCode string `json:"language_code,omitempty"`
}
DeleteMyCommandsParams contains params for Telegram method "deleteMyCommands".
type DeleteStickerFromSetParams ¶
type DeleteStickerFromSetParams struct {
Sticker string `json:"sticker"`
}
DeleteStickerFromSetParams contains params for Telegram method "deleteStickerFromSet".
type DeleteStickerSetParams ¶
type DeleteStickerSetParams struct {
Name string `json:"name"`
}
DeleteStickerSetParams contains params for Telegram method "deleteStickerSet".
type DeleteStoryParams ¶
type DeleteStoryParams struct {
BusinessConnectionID string `json:"business_connection_id"`
StoryID int64 `json:"story_id"`
}
DeleteStoryParams contains params for Telegram method "deleteStory".
type DeleteWebhookParams ¶
type DeleteWebhookParams struct {
DropPendingUpdates bool `json:"drop_pending_updates,omitempty"`
}
DeleteWebhookParams contains params for Telegram method "deleteWebhook".
type DirectMessagePriceChanged ¶
type DirectMessagePriceChanged struct {
AreDirectMessagesEnabled bool `json:"are_direct_messages_enabled"`
DirectMessageStarCount int64 `json:"direct_message_star_count"`
}
DirectMessagePriceChanged maps to Telegram Bot API type "DirectMessagePriceChanged".
type DirectMessagesTopic ¶
DirectMessagesTopic maps to Telegram Bot API type "DirectMessagesTopic".
type Document ¶
type Document struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
Thumbnail *PhotoSize `json:"thumbnail"`
FileName string `json:"file_name"`
MimeType string `json:"mime_type"`
FileSize int64 `json:"file_size"`
}
Document maps to Telegram Bot API type "Document".
type EditChatInviteLinkParams ¶
type EditChatInviteLinkParams struct {
ChatID any `json:"chat_id"`
InviteLink string `json:"invite_link"`
Name string `json:"name,omitempty"`
ExpireDate int64 `json:"expire_date,omitempty"`
MemberLimit int64 `json:"member_limit,omitempty"`
CreatesJoinRequest bool `json:"creates_join_request,omitempty"`
}
EditChatInviteLinkParams contains params for Telegram method "editChatInviteLink".
type EditChatSubscriptionInviteLinkParams ¶
type EditChatSubscriptionInviteLinkParams struct {
ChatID any `json:"chat_id"`
InviteLink string `json:"invite_link"`
Name string `json:"name,omitempty"`
}
EditChatSubscriptionInviteLinkParams contains params for Telegram method "editChatSubscriptionInviteLink".
type EditForumTopicParams ¶
type EditForumTopicParams struct {
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id"`
Name string `json:"name,omitempty"`
IconCustomEmojiID string `json:"icon_custom_emoji_id,omitempty"`
}
EditForumTopicParams contains params for Telegram method "editForumTopic".
type EditGeneralForumTopicParams ¶
EditGeneralForumTopicParams contains params for Telegram method "editGeneralForumTopic".
type EditMessageCaptionParams ¶
type EditMessageCaptionParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id,omitempty"`
MessageID int64 `json:"message_id,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
EditMessageCaptionParams contains params for Telegram method "editMessageCaption".
type EditMessageChecklistParams ¶
type EditMessageChecklistParams struct {
BusinessConnectionID string `json:"business_connection_id"`
ChatID int64 `json:"chat_id"`
MessageID int64 `json:"message_id"`
Checklist InputChecklist `json:"checklist"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
EditMessageChecklistParams contains params for Telegram method "editMessageChecklist".
type EditMessageLiveLocationParams ¶
type EditMessageLiveLocationParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id,omitempty"`
MessageID int64 `json:"message_id,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
LivePeriod int64 `json:"live_period,omitempty"`
HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty"`
Heading int64 `json:"heading,omitempty"`
ProximityAlertRadius int64 `json:"proximity_alert_radius,omitempty"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
EditMessageLiveLocationParams contains params for Telegram method "editMessageLiveLocation".
type EditMessageMediaParams ¶
type EditMessageMediaParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id,omitempty"`
MessageID int64 `json:"message_id,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
Media InputMedia `json:"media"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
EditMessageMediaParams contains params for Telegram method "editMessageMedia".
type EditMessageReplyMarkupParams ¶
type EditMessageReplyMarkupParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id,omitempty"`
MessageID int64 `json:"message_id,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
EditMessageReplyMarkupParams contains params for Telegram method "editMessageReplyMarkup".
type EditMessageTextParams ¶
type EditMessageTextParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id,omitempty"`
MessageID int64 `json:"message_id,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
Text string `json:"text"`
ParseMode string `json:"parse_mode,omitempty"`
Entities []MessageEntity `json:"entities,omitempty"`
LinkPreviewOptions LinkPreviewOptions `json:"link_preview_options,omitempty"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
EditMessageTextParams contains params for Telegram method "editMessageText".
type EditStoryParams ¶
type EditStoryParams struct {
BusinessConnectionID string `json:"business_connection_id"`
StoryID int64 `json:"story_id"`
Content InputStoryContent `json:"content"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
Areas []StoryArea `json:"areas,omitempty"`
}
EditStoryParams contains params for Telegram method "editStory".
type EditUserStarSubscriptionParams ¶
type EditUserStarSubscriptionParams struct {
UserID int64 `json:"user_id"`
TelegramPaymentChargeID string `json:"telegram_payment_charge_id"`
IsCanceled bool `json:"is_canceled"`
}
EditUserStarSubscriptionParams contains params for Telegram method "editUserStarSubscription".
type EncryptedCredentials ¶
type EncryptedCredentials struct {
Data string `json:"data"`
Hash string `json:"hash"`
Secret string `json:"secret"`
}
EncryptedCredentials maps to Telegram Bot API type "EncryptedCredentials".
type EncryptedPassportElement ¶
type EncryptedPassportElement struct {
Type string `json:"type"`
Data string `json:"data"`
PhoneNumber string `json:"phone_number"`
Email string `json:"email"`
Files []PassportFile `json:"files"`
FrontSide *PassportFile `json:"front_side"`
ReverseSide *PassportFile `json:"reverse_side"`
Selfie *PassportFile `json:"selfie"`
Translation []PassportFile `json:"translation"`
Hash string `json:"hash"`
}
EncryptedPassportElement maps to Telegram Bot API type "EncryptedPassportElement".
type ExportChatInviteLinkParams ¶
type ExportChatInviteLinkParams struct {
ChatID any `json:"chat_id"`
}
ExportChatInviteLinkParams contains params for Telegram method "exportChatInviteLink".
type ExternalReplyInfo ¶
type ExternalReplyInfo struct {
Origin MessageOrigin `json:"origin"`
Chat *Chat `json:"chat"`
MessageID int64 `json:"message_id"`
LinkPreviewOptions *LinkPreviewOptions `json:"link_preview_options"`
Animation *Animation `json:"animation"`
Audio *Audio `json:"audio"`
Document *Document `json:"document"`
PaidMedia *PaidMediaInfo `json:"paid_media"`
Photo []PhotoSize `json:"photo"`
Sticker *Sticker `json:"sticker"`
Story *Story `json:"story"`
Video *Video `json:"video"`
VideoNote *VideoNote `json:"video_note"`
Voice *Voice `json:"voice"`
HasMediaSpoiler bool `json:"has_media_spoiler"`
Checklist *Checklist `json:"checklist"`
Contact *Contact `json:"contact"`
Dice *Dice `json:"dice"`
Game *Game `json:"game"`
Giveaway *Giveaway `json:"giveaway"`
GiveawayWinners *GiveawayWinners `json:"giveaway_winners"`
Invoice *Invoice `json:"invoice"`
Location *Location `json:"location"`
Poll *Poll `json:"poll"`
Venue *Venue `json:"venue"`
}
ExternalReplyInfo maps to Telegram Bot API type "ExternalReplyInfo".
func (*ExternalReplyInfo) UnmarshalJSON ¶
func (value *ExternalReplyInfo) UnmarshalJSON(data []byte) error
type File ¶
type File struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
FileSize int64 `json:"file_size"`
FilePath string `json:"file_path"`
}
File maps to Telegram Bot API type "File".
type ForceReply ¶
type ForceReply struct {
ForceReply bool `json:"force_reply"`
InputFieldPlaceholder string `json:"input_field_placeholder"`
Selective bool `json:"selective"`
}
ForceReply maps to Telegram Bot API type "ForceReply".
type ForumTopic ¶
type ForumTopic struct {
MessageThreadID int64 `json:"message_thread_id"`
Name string `json:"name"`
IconColor int64 `json:"icon_color"`
IconCustomEmojiID string `json:"icon_custom_emoji_id"`
IsNameImplicit bool `json:"is_name_implicit"`
}
ForumTopic maps to Telegram Bot API type "ForumTopic".
type ForumTopicClosed ¶
type ForumTopicClosed struct {
}
ForumTopicClosed maps to Telegram Bot API type "ForumTopicClosed".
type ForumTopicCreated ¶
type ForumTopicCreated struct {
Name string `json:"name"`
IconColor int64 `json:"icon_color"`
IconCustomEmojiID string `json:"icon_custom_emoji_id"`
IsNameImplicit bool `json:"is_name_implicit"`
}
ForumTopicCreated maps to Telegram Bot API type "ForumTopicCreated".
type ForumTopicEdited ¶
type ForumTopicEdited struct {
Name string `json:"name"`
IconCustomEmojiID string `json:"icon_custom_emoji_id"`
}
ForumTopicEdited maps to Telegram Bot API type "ForumTopicEdited".
type ForumTopicReopened ¶
type ForumTopicReopened struct {
}
ForumTopicReopened maps to Telegram Bot API type "ForumTopicReopened".
type ForwardMessageParams ¶
type ForwardMessageParams struct {
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
FromChatID any `json:"from_chat_id"`
VideoStartTimestamp int64 `json:"video_start_timestamp,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
MessageID int64 `json:"message_id"`
}
ForwardMessageParams contains params for Telegram method "forwardMessage".
type ForwardMessagesParams ¶
type ForwardMessagesParams struct {
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
FromChatID any `json:"from_chat_id"`
MessageIds []int64 `json:"message_ids"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
}
ForwardMessagesParams contains params for Telegram method "forwardMessages".
type Game ¶
type Game struct {
Title string `json:"title"`
Description string `json:"description"`
Photo []PhotoSize `json:"photo"`
Text string `json:"text"`
TextEntities []MessageEntity `json:"text_entities"`
Animation *Animation `json:"animation"`
}
Game maps to Telegram Bot API type "Game".
type GameHighScore ¶
type GameHighScore struct {
Position int64 `json:"position"`
User *User `json:"user"`
Score int64 `json:"score"`
}
GameHighScore maps to Telegram Bot API type "GameHighScore".
type GeneralForumTopicHidden ¶
type GeneralForumTopicHidden struct {
}
GeneralForumTopicHidden maps to Telegram Bot API type "GeneralForumTopicHidden".
type GeneralForumTopicUnhidden ¶
type GeneralForumTopicUnhidden struct {
}
GeneralForumTopicUnhidden maps to Telegram Bot API type "GeneralForumTopicUnhidden".
type GetAvailableGiftsParams ¶
type GetAvailableGiftsParams struct {
}
GetAvailableGiftsParams contains params for Telegram method "getAvailableGifts".
type GetBusinessAccountGiftsParams ¶
type GetBusinessAccountGiftsParams struct {
BusinessConnectionID string `json:"business_connection_id"`
ExcludeUnsaved bool `json:"exclude_unsaved,omitempty"`
ExcludeSaved bool `json:"exclude_saved,omitempty"`
ExcludeUnlimited bool `json:"exclude_unlimited,omitempty"`
ExcludeLimitedUpgradable bool `json:"exclude_limited_upgradable,omitempty"`
ExcludeLimitedNonUpgradable bool `json:"exclude_limited_non_upgradable,omitempty"`
ExcludeUnique bool `json:"exclude_unique,omitempty"`
ExcludeFromBlockchain bool `json:"exclude_from_blockchain,omitempty"`
SortByPrice bool `json:"sort_by_price,omitempty"`
Offset string `json:"offset,omitempty"`
Limit int64 `json:"limit,omitempty"`
}
GetBusinessAccountGiftsParams contains params for Telegram method "getBusinessAccountGifts".
type GetBusinessAccountStarBalanceParams ¶
type GetBusinessAccountStarBalanceParams struct {
BusinessConnectionID string `json:"business_connection_id"`
}
GetBusinessAccountStarBalanceParams contains params for Telegram method "getBusinessAccountStarBalance".
type GetBusinessConnectionParams ¶
type GetBusinessConnectionParams struct {
BusinessConnectionID string `json:"business_connection_id"`
}
GetBusinessConnectionParams contains params for Telegram method "getBusinessConnection".
type GetChatAdministratorsParams ¶
type GetChatAdministratorsParams struct {
ChatID any `json:"chat_id"`
}
GetChatAdministratorsParams contains params for Telegram method "getChatAdministrators".
type GetChatGiftsParams ¶
type GetChatGiftsParams struct {
ChatID any `json:"chat_id"`
ExcludeUnsaved bool `json:"exclude_unsaved,omitempty"`
ExcludeSaved bool `json:"exclude_saved,omitempty"`
ExcludeUnlimited bool `json:"exclude_unlimited,omitempty"`
ExcludeLimitedUpgradable bool `json:"exclude_limited_upgradable,omitempty"`
ExcludeLimitedNonUpgradable bool `json:"exclude_limited_non_upgradable,omitempty"`
ExcludeFromBlockchain bool `json:"exclude_from_blockchain,omitempty"`
ExcludeUnique bool `json:"exclude_unique,omitempty"`
SortByPrice bool `json:"sort_by_price,omitempty"`
Offset string `json:"offset,omitempty"`
Limit int64 `json:"limit,omitempty"`
}
GetChatGiftsParams contains params for Telegram method "getChatGifts".
type GetChatMemberCountParams ¶
type GetChatMemberCountParams struct {
ChatID any `json:"chat_id"`
}
GetChatMemberCountParams contains params for Telegram method "getChatMemberCount".
type GetChatMemberParams ¶
GetChatMemberParams contains params for Telegram method "getChatMember".
type GetChatMenuButtonParams ¶
type GetChatMenuButtonParams struct {
ChatID int64 `json:"chat_id,omitempty"`
}
GetChatMenuButtonParams contains params for Telegram method "getChatMenuButton".
type GetChatParams ¶
type GetChatParams struct {
ChatID any `json:"chat_id"`
}
GetChatParams contains params for Telegram method "getChat".
type GetCustomEmojiStickersParams ¶
type GetCustomEmojiStickersParams struct {
CustomEmojiIds []string `json:"custom_emoji_ids"`
}
GetCustomEmojiStickersParams contains params for Telegram method "getCustomEmojiStickers".
type GetFileParams ¶
type GetFileParams struct {
FileID string `json:"file_id"`
}
GetFileParams contains params for Telegram method "getFile".
type GetForumTopicIconStickersParams ¶
type GetForumTopicIconStickersParams struct {
}
GetForumTopicIconStickersParams contains params for Telegram method "getForumTopicIconStickers".
type GetGameHighScoresParams ¶
type GetGameHighScoresParams struct {
UserID int64 `json:"user_id"`
ChatID int64 `json:"chat_id,omitempty"`
MessageID int64 `json:"message_id,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
}
GetGameHighScoresParams contains params for Telegram method "getGameHighScores".
type GetMeParams ¶
type GetMeParams struct {
}
GetMeParams contains params for Telegram method "getMe".
type GetMyCommandsParams ¶
type GetMyCommandsParams struct {
Scope BotCommandScope `json:"scope,omitempty"`
LanguageCode string `json:"language_code,omitempty"`
}
GetMyCommandsParams contains params for Telegram method "getMyCommands".
type GetMyDefaultAdministratorRightsParams ¶
type GetMyDefaultAdministratorRightsParams struct {
ForChannels bool `json:"for_channels,omitempty"`
}
GetMyDefaultAdministratorRightsParams contains params for Telegram method "getMyDefaultAdministratorRights".
type GetMyDescriptionParams ¶
type GetMyDescriptionParams struct {
LanguageCode string `json:"language_code,omitempty"`
}
GetMyDescriptionParams contains params for Telegram method "getMyDescription".
type GetMyNameParams ¶
type GetMyNameParams struct {
LanguageCode string `json:"language_code,omitempty"`
}
GetMyNameParams contains params for Telegram method "getMyName".
type GetMyShortDescriptionParams ¶
type GetMyShortDescriptionParams struct {
LanguageCode string `json:"language_code,omitempty"`
}
GetMyShortDescriptionParams contains params for Telegram method "getMyShortDescription".
type GetMyStarBalanceParams ¶
type GetMyStarBalanceParams struct {
}
GetMyStarBalanceParams contains params for Telegram method "getMyStarBalance".
type GetStarTransactionsParams ¶
type GetStarTransactionsParams struct {
Offset int64 `json:"offset,omitempty"`
Limit int64 `json:"limit,omitempty"`
}
GetStarTransactionsParams contains params for Telegram method "getStarTransactions".
type GetStickerSetParams ¶
type GetStickerSetParams struct {
Name string `json:"name"`
}
GetStickerSetParams contains params for Telegram method "getStickerSet".
type GetUpdatesParams ¶
type GetUpdatesParams struct {
Offset int64 `json:"offset,omitempty"`
Limit int64 `json:"limit,omitempty"`
Timeout int64 `json:"timeout,omitempty"`
AllowedUpdates []string `json:"allowed_updates,omitempty"`
}
GetUpdatesParams contains params for Telegram method "getUpdates".
type GetUserChatBoostsParams ¶
GetUserChatBoostsParams contains params for Telegram method "getUserChatBoosts".
type GetUserGiftsParams ¶
type GetUserGiftsParams struct {
UserID int64 `json:"user_id"`
ExcludeUnlimited bool `json:"exclude_unlimited,omitempty"`
ExcludeLimitedUpgradable bool `json:"exclude_limited_upgradable,omitempty"`
ExcludeLimitedNonUpgradable bool `json:"exclude_limited_non_upgradable,omitempty"`
ExcludeFromBlockchain bool `json:"exclude_from_blockchain,omitempty"`
ExcludeUnique bool `json:"exclude_unique,omitempty"`
SortByPrice bool `json:"sort_by_price,omitempty"`
Offset string `json:"offset,omitempty"`
Limit int64 `json:"limit,omitempty"`
}
GetUserGiftsParams contains params for Telegram method "getUserGifts".
type GetUserProfileAudiosParams ¶
type GetUserProfileAudiosParams struct {
UserID int64 `json:"user_id"`
Offset int64 `json:"offset,omitempty"`
Limit int64 `json:"limit,omitempty"`
}
GetUserProfileAudiosParams contains params for Telegram method "getUserProfileAudios".
type GetUserProfilePhotosParams ¶
type GetUserProfilePhotosParams struct {
UserID int64 `json:"user_id"`
Offset int64 `json:"offset,omitempty"`
Limit int64 `json:"limit,omitempty"`
}
GetUserProfilePhotosParams contains params for Telegram method "getUserProfilePhotos".
type GetWebhookInfoParams ¶
type GetWebhookInfoParams struct {
}
GetWebhookInfoParams contains params for Telegram method "getWebhookInfo".
type Gift ¶
type Gift struct {
ID string `json:"id"`
Sticker *Sticker `json:"sticker"`
StarCount int64 `json:"star_count"`
UpgradeStarCount int64 `json:"upgrade_star_count"`
IsPremium bool `json:"is_premium"`
HasColors bool `json:"has_colors"`
TotalCount int64 `json:"total_count"`
RemainingCount int64 `json:"remaining_count"`
PersonalTotalCount int64 `json:"personal_total_count"`
PersonalRemainingCount int64 `json:"personal_remaining_count"`
Background *GiftBackground `json:"background"`
UniqueGiftVariantCount int64 `json:"unique_gift_variant_count"`
PublisherChat *Chat `json:"publisher_chat"`
}
Gift maps to Telegram Bot API type "Gift".
type GiftBackground ¶
type GiftBackground struct {
CenterColor int64 `json:"center_color"`
EdgeColor int64 `json:"edge_color"`
TextColor int64 `json:"text_color"`
}
GiftBackground maps to Telegram Bot API type "GiftBackground".
type GiftInfo ¶
type GiftInfo struct {
Gift *Gift `json:"gift"`
OwnedGiftID string `json:"owned_gift_id"`
ConvertStarCount int64 `json:"convert_star_count"`
PrepaidUpgradeStarCount int64 `json:"prepaid_upgrade_star_count"`
IsUpgradeSeparate bool `json:"is_upgrade_separate"`
CanBeUpgraded bool `json:"can_be_upgraded"`
Text string `json:"text"`
Entities []MessageEntity `json:"entities"`
IsPrivate bool `json:"is_private"`
UniqueGiftNumber int64 `json:"unique_gift_number"`
}
GiftInfo maps to Telegram Bot API type "GiftInfo".
type GiftPremiumSubscriptionParams ¶
type GiftPremiumSubscriptionParams struct {
UserID int64 `json:"user_id"`
MonthCount int64 `json:"month_count"`
StarCount int64 `json:"star_count"`
Text string `json:"text,omitempty"`
TextParseMode string `json:"text_parse_mode,omitempty"`
TextEntities []MessageEntity `json:"text_entities,omitempty"`
}
GiftPremiumSubscriptionParams contains params for Telegram method "giftPremiumSubscription".
type Gifts ¶
type Gifts struct {
Gifts []Gift `json:"gifts"`
}
Gifts maps to Telegram Bot API type "Gifts".
type Giveaway ¶
type Giveaway struct {
Chats []Chat `json:"chats"`
WinnersSelectionDate int64 `json:"winners_selection_date"`
WinnerCount int64 `json:"winner_count"`
OnlyNewMembers bool `json:"only_new_members"`
HasPublicWinners bool `json:"has_public_winners"`
PrizeDescription string `json:"prize_description"`
CountryCodes []string `json:"country_codes"`
PrizeStarCount int64 `json:"prize_star_count"`
PremiumSubscriptionMonthCount int64 `json:"premium_subscription_month_count"`
}
Giveaway maps to Telegram Bot API type "Giveaway".
type GiveawayCompleted ¶
type GiveawayCompleted struct {
WinnerCount int64 `json:"winner_count"`
UnclaimedPrizeCount int64 `json:"unclaimed_prize_count"`
GiveawayMessage *Message `json:"giveaway_message"`
IsStarGiveaway bool `json:"is_star_giveaway"`
}
GiveawayCompleted maps to Telegram Bot API type "GiveawayCompleted".
type GiveawayCreated ¶
type GiveawayCreated struct {
PrizeStarCount int64 `json:"prize_star_count"`
}
GiveawayCreated maps to Telegram Bot API type "GiveawayCreated".
type GiveawayWinners ¶
type GiveawayWinners struct {
Chat *Chat `json:"chat"`
GiveawayMessageID int64 `json:"giveaway_message_id"`
WinnersSelectionDate int64 `json:"winners_selection_date"`
WinnerCount int64 `json:"winner_count"`
Winners []User `json:"winners"`
AdditionalChatCount int64 `json:"additional_chat_count"`
PrizeStarCount int64 `json:"prize_star_count"`
PremiumSubscriptionMonthCount int64 `json:"premium_subscription_month_count"`
UnclaimedPrizeCount int64 `json:"unclaimed_prize_count"`
OnlyNewMembers bool `json:"only_new_members"`
WasRefunded bool `json:"was_refunded"`
PrizeDescription string `json:"prize_description"`
}
GiveawayWinners maps to Telegram Bot API type "GiveawayWinners".
type HideGeneralForumTopicParams ¶
type HideGeneralForumTopicParams struct {
ChatID any `json:"chat_id"`
}
HideGeneralForumTopicParams contains params for Telegram method "hideGeneralForumTopic".
type InaccessibleMessage ¶
type InaccessibleMessage struct {
Chat *Chat `json:"chat"`
MessageID int64 `json:"message_id"`
Date int64 `json:"date"`
}
InaccessibleMessage maps to Telegram Bot API type "InaccessibleMessage".
type InlineKeyboardButton ¶
type InlineKeyboardButton struct {
Text string `json:"text"`
IconCustomEmojiID string `json:"icon_custom_emoji_id"`
Style string `json:"style"`
URL string `json:"url"`
CallbackData string `json:"callback_data"`
WebApp *WebAppInfo `json:"web_app"`
LoginURL *LoginUrl `json:"login_url"`
SwitchInlineQuery string `json:"switch_inline_query"`
SwitchInlineQueryCurrentChat string `json:"switch_inline_query_current_chat"`
SwitchInlineQueryChosenChat *SwitchInlineQueryChosenChat `json:"switch_inline_query_chosen_chat"`
CopyText *CopyTextButton `json:"copy_text"`
CallbackGame *CallbackGame `json:"callback_game"`
Pay bool `json:"pay"`
}
InlineKeyboardButton maps to Telegram Bot API type "InlineKeyboardButton".
type InlineKeyboardMarkup ¶
type InlineKeyboardMarkup struct {
InlineKeyboard [][]InlineKeyboardButton `json:"inline_keyboard"`
}
InlineKeyboardMarkup maps to Telegram Bot API type "InlineKeyboardMarkup".
type InlineQuery ¶
type InlineQuery struct {
ID string `json:"id"`
From *User `json:"from"`
Query string `json:"query"`
Offset string `json:"offset"`
ChatType string `json:"chat_type"`
Location *Location `json:"location"`
}
InlineQuery maps to Telegram Bot API type "InlineQuery".
type InlineQueryResult ¶
type InlineQueryResult interface {
// contains filtered or unexported methods
}
InlineQueryResult is a union type in Telegram Bot API.
type InlineQueryResultArticle ¶
type InlineQueryResultArticle struct {
Type string `json:"type"`
ID string `json:"id"`
Title string `json:"title"`
InputMessageContent InputMessageContent `json:"input_message_content"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
URL string `json:"url"`
Description string `json:"description"`
ThumbnailURL string `json:"thumbnail_url"`
ThumbnailWidth int64 `json:"thumbnail_width"`
ThumbnailHeight int64 `json:"thumbnail_height"`
}
InlineQueryResultArticle maps to Telegram Bot API type "InlineQueryResultArticle".
func (*InlineQueryResultArticle) UnmarshalJSON ¶
func (value *InlineQueryResultArticle) UnmarshalJSON(data []byte) error
type InlineQueryResultAudio ¶
type InlineQueryResultAudio struct {
Type string `json:"type"`
ID string `json:"id"`
AudioURL string `json:"audio_url"`
Title string `json:"title"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
Performer string `json:"performer"`
AudioDuration int64 `json:"audio_duration"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
}
InlineQueryResultAudio maps to Telegram Bot API type "InlineQueryResultAudio".
func (*InlineQueryResultAudio) UnmarshalJSON ¶
func (value *InlineQueryResultAudio) UnmarshalJSON(data []byte) error
type InlineQueryResultCachedAudio ¶
type InlineQueryResultCachedAudio struct {
Type string `json:"type"`
ID string `json:"id"`
AudioFileID string `json:"audio_file_id"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
}
InlineQueryResultCachedAudio maps to Telegram Bot API type "InlineQueryResultCachedAudio".
func (*InlineQueryResultCachedAudio) UnmarshalJSON ¶
func (value *InlineQueryResultCachedAudio) UnmarshalJSON(data []byte) error
type InlineQueryResultCachedDocument ¶
type InlineQueryResultCachedDocument struct {
Type string `json:"type"`
ID string `json:"id"`
Title string `json:"title"`
DocumentFileID string `json:"document_file_id"`
Description string `json:"description"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
}
InlineQueryResultCachedDocument maps to Telegram Bot API type "InlineQueryResultCachedDocument".
func (*InlineQueryResultCachedDocument) UnmarshalJSON ¶
func (value *InlineQueryResultCachedDocument) UnmarshalJSON(data []byte) error
type InlineQueryResultCachedGif ¶
type InlineQueryResultCachedGif struct {
Type string `json:"type"`
ID string `json:"id"`
GifFileID string `json:"gif_file_id"`
Title string `json:"title"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
}
InlineQueryResultCachedGif maps to Telegram Bot API type "InlineQueryResultCachedGif".
func (*InlineQueryResultCachedGif) UnmarshalJSON ¶
func (value *InlineQueryResultCachedGif) UnmarshalJSON(data []byte) error
type InlineQueryResultCachedMpeg4Gif ¶
type InlineQueryResultCachedMpeg4Gif struct {
Type string `json:"type"`
ID string `json:"id"`
Mpeg4FileID string `json:"mpeg4_file_id"`
Title string `json:"title"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
}
InlineQueryResultCachedMpeg4Gif maps to Telegram Bot API type "InlineQueryResultCachedMpeg4Gif".
func (*InlineQueryResultCachedMpeg4Gif) UnmarshalJSON ¶
func (value *InlineQueryResultCachedMpeg4Gif) UnmarshalJSON(data []byte) error
type InlineQueryResultCachedPhoto ¶
type InlineQueryResultCachedPhoto struct {
Type string `json:"type"`
ID string `json:"id"`
PhotoFileID string `json:"photo_file_id"`
Title string `json:"title"`
Description string `json:"description"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
}
InlineQueryResultCachedPhoto maps to Telegram Bot API type "InlineQueryResultCachedPhoto".
func (*InlineQueryResultCachedPhoto) UnmarshalJSON ¶
func (value *InlineQueryResultCachedPhoto) UnmarshalJSON(data []byte) error
type InlineQueryResultCachedSticker ¶
type InlineQueryResultCachedSticker struct {
Type string `json:"type"`
ID string `json:"id"`
StickerFileID string `json:"sticker_file_id"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
}
InlineQueryResultCachedSticker maps to Telegram Bot API type "InlineQueryResultCachedSticker".
func (*InlineQueryResultCachedSticker) UnmarshalJSON ¶
func (value *InlineQueryResultCachedSticker) UnmarshalJSON(data []byte) error
type InlineQueryResultCachedVideo ¶
type InlineQueryResultCachedVideo struct {
Type string `json:"type"`
ID string `json:"id"`
VideoFileID string `json:"video_file_id"`
Title string `json:"title"`
Description string `json:"description"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
}
InlineQueryResultCachedVideo maps to Telegram Bot API type "InlineQueryResultCachedVideo".
func (*InlineQueryResultCachedVideo) UnmarshalJSON ¶
func (value *InlineQueryResultCachedVideo) UnmarshalJSON(data []byte) error
type InlineQueryResultCachedVoice ¶
type InlineQueryResultCachedVoice struct {
Type string `json:"type"`
ID string `json:"id"`
VoiceFileID string `json:"voice_file_id"`
Title string `json:"title"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
}
InlineQueryResultCachedVoice maps to Telegram Bot API type "InlineQueryResultCachedVoice".
func (*InlineQueryResultCachedVoice) UnmarshalJSON ¶
func (value *InlineQueryResultCachedVoice) UnmarshalJSON(data []byte) error
type InlineQueryResultContact ¶
type InlineQueryResultContact struct {
Type string `json:"type"`
ID string `json:"id"`
PhoneNumber string `json:"phone_number"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Vcard string `json:"vcard"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
ThumbnailURL string `json:"thumbnail_url"`
ThumbnailWidth int64 `json:"thumbnail_width"`
ThumbnailHeight int64 `json:"thumbnail_height"`
}
InlineQueryResultContact maps to Telegram Bot API type "InlineQueryResultContact".
func (*InlineQueryResultContact) UnmarshalJSON ¶
func (value *InlineQueryResultContact) UnmarshalJSON(data []byte) error
type InlineQueryResultDocument ¶
type InlineQueryResultDocument struct {
Type string `json:"type"`
ID string `json:"id"`
Title string `json:"title"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
DocumentURL string `json:"document_url"`
MimeType string `json:"mime_type"`
Description string `json:"description"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
ThumbnailURL string `json:"thumbnail_url"`
ThumbnailWidth int64 `json:"thumbnail_width"`
ThumbnailHeight int64 `json:"thumbnail_height"`
}
InlineQueryResultDocument maps to Telegram Bot API type "InlineQueryResultDocument".
func (*InlineQueryResultDocument) UnmarshalJSON ¶
func (value *InlineQueryResultDocument) UnmarshalJSON(data []byte) error
type InlineQueryResultGame ¶
type InlineQueryResultGame struct {
Type string `json:"type"`
ID string `json:"id"`
GameShortName string `json:"game_short_name"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
}
InlineQueryResultGame maps to Telegram Bot API type "InlineQueryResultGame".
type InlineQueryResultGif ¶
type InlineQueryResultGif struct {
Type string `json:"type"`
ID string `json:"id"`
GifURL string `json:"gif_url"`
GifWidth int64 `json:"gif_width"`
GifHeight int64 `json:"gif_height"`
GifDuration int64 `json:"gif_duration"`
ThumbnailURL string `json:"thumbnail_url"`
ThumbnailMimeType string `json:"thumbnail_mime_type"`
Title string `json:"title"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
}
InlineQueryResultGif maps to Telegram Bot API type "InlineQueryResultGif".
func (*InlineQueryResultGif) UnmarshalJSON ¶
func (value *InlineQueryResultGif) UnmarshalJSON(data []byte) error
type InlineQueryResultLocation ¶
type InlineQueryResultLocation struct {
Type string `json:"type"`
ID string `json:"id"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Title string `json:"title"`
HorizontalAccuracy float64 `json:"horizontal_accuracy"`
LivePeriod int64 `json:"live_period"`
Heading int64 `json:"heading"`
ProximityAlertRadius int64 `json:"proximity_alert_radius"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
ThumbnailURL string `json:"thumbnail_url"`
ThumbnailWidth int64 `json:"thumbnail_width"`
ThumbnailHeight int64 `json:"thumbnail_height"`
}
InlineQueryResultLocation maps to Telegram Bot API type "InlineQueryResultLocation".
func (*InlineQueryResultLocation) UnmarshalJSON ¶
func (value *InlineQueryResultLocation) UnmarshalJSON(data []byte) error
type InlineQueryResultMpeg4Gif ¶
type InlineQueryResultMpeg4Gif struct {
Type string `json:"type"`
ID string `json:"id"`
Mpeg4URL string `json:"mpeg4_url"`
Mpeg4Width int64 `json:"mpeg4_width"`
Mpeg4Height int64 `json:"mpeg4_height"`
Mpeg4Duration int64 `json:"mpeg4_duration"`
ThumbnailURL string `json:"thumbnail_url"`
ThumbnailMimeType string `json:"thumbnail_mime_type"`
Title string `json:"title"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
}
InlineQueryResultMpeg4Gif maps to Telegram Bot API type "InlineQueryResultMpeg4Gif".
func (*InlineQueryResultMpeg4Gif) UnmarshalJSON ¶
func (value *InlineQueryResultMpeg4Gif) UnmarshalJSON(data []byte) error
type InlineQueryResultPhoto ¶
type InlineQueryResultPhoto struct {
Type string `json:"type"`
ID string `json:"id"`
PhotoURL string `json:"photo_url"`
ThumbnailURL string `json:"thumbnail_url"`
PhotoWidth int64 `json:"photo_width"`
PhotoHeight int64 `json:"photo_height"`
Title string `json:"title"`
Description string `json:"description"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
}
InlineQueryResultPhoto maps to Telegram Bot API type "InlineQueryResultPhoto".
func (*InlineQueryResultPhoto) UnmarshalJSON ¶
func (value *InlineQueryResultPhoto) UnmarshalJSON(data []byte) error
type InlineQueryResultVenue ¶
type InlineQueryResultVenue struct {
Type string `json:"type"`
ID string `json:"id"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Title string `json:"title"`
Address string `json:"address"`
FoursquareID string `json:"foursquare_id"`
FoursquareType string `json:"foursquare_type"`
GooglePlaceID string `json:"google_place_id"`
GooglePlaceType string `json:"google_place_type"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
ThumbnailURL string `json:"thumbnail_url"`
ThumbnailWidth int64 `json:"thumbnail_width"`
ThumbnailHeight int64 `json:"thumbnail_height"`
}
InlineQueryResultVenue maps to Telegram Bot API type "InlineQueryResultVenue".
func (*InlineQueryResultVenue) UnmarshalJSON ¶
func (value *InlineQueryResultVenue) UnmarshalJSON(data []byte) error
type InlineQueryResultVideo ¶
type InlineQueryResultVideo struct {
Type string `json:"type"`
ID string `json:"id"`
VideoURL string `json:"video_url"`
MimeType string `json:"mime_type"`
ThumbnailURL string `json:"thumbnail_url"`
Title string `json:"title"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
VideoWidth int64 `json:"video_width"`
VideoHeight int64 `json:"video_height"`
VideoDuration int64 `json:"video_duration"`
Description string `json:"description"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
}
InlineQueryResultVideo maps to Telegram Bot API type "InlineQueryResultVideo".
func (*InlineQueryResultVideo) UnmarshalJSON ¶
func (value *InlineQueryResultVideo) UnmarshalJSON(data []byte) error
type InlineQueryResultVoice ¶
type InlineQueryResultVoice struct {
Type string `json:"type"`
ID string `json:"id"`
VoiceURL string `json:"voice_url"`
Title string `json:"title"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
VoiceDuration int64 `json:"voice_duration"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
InputMessageContent InputMessageContent `json:"input_message_content"`
}
InlineQueryResultVoice maps to Telegram Bot API type "InlineQueryResultVoice".
func (*InlineQueryResultVoice) UnmarshalJSON ¶
func (value *InlineQueryResultVoice) UnmarshalJSON(data []byte) error
type InlineQueryResultsButton ¶
type InlineQueryResultsButton struct {
Text string `json:"text"`
WebApp *WebAppInfo `json:"web_app"`
StartParameter string `json:"start_parameter"`
}
InlineQueryResultsButton maps to Telegram Bot API type "InlineQueryResultsButton".
type InputChecklist ¶
type InputChecklist struct {
Title string `json:"title"`
ParseMode string `json:"parse_mode"`
TitleEntities []MessageEntity `json:"title_entities"`
Tasks []InputChecklistTask `json:"tasks"`
OthersCanAddTasks bool `json:"others_can_add_tasks"`
OthersCanMarkTasksAsDone bool `json:"others_can_mark_tasks_as_done"`
}
InputChecklist maps to Telegram Bot API type "InputChecklist".
type InputChecklistTask ¶
type InputChecklistTask struct {
ID int64 `json:"id"`
Text string `json:"text"`
ParseMode string `json:"parse_mode"`
TextEntities []MessageEntity `json:"text_entities"`
}
InputChecklistTask maps to Telegram Bot API type "InputChecklistTask".
type InputContactMessageContent ¶
type InputContactMessageContent struct {
PhoneNumber string `json:"phone_number"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Vcard string `json:"vcard"`
}
InputContactMessageContent maps to Telegram Bot API type "InputContactMessageContent".
type InputFile ¶
InputFile represents Telegram file inputs: file_id, URL, local file path, or in-memory reader.
func FileFromID ¶
FileFromID creates an InputFile that references an existing Telegram file_id.
func FileFromPath ¶
FileFromPath creates an InputFile that uploads a local file path.
func FileFromReader ¶
FileFromReader creates an InputFile that uploads from a reader.
func FileFromURL ¶
FileFromURL creates an InputFile that references a public URL.
type InputInvoiceMessageContent ¶
type InputInvoiceMessageContent struct {
Title string `json:"title"`
Description string `json:"description"`
Payload string `json:"payload"`
ProviderToken string `json:"provider_token"`
Currency string `json:"currency"`
Prices []LabeledPrice `json:"prices"`
MaxTipAmount int64 `json:"max_tip_amount"`
SuggestedTipAmounts []int64 `json:"suggested_tip_amounts"`
ProviderData string `json:"provider_data"`
PhotoURL string `json:"photo_url"`
PhotoSize int64 `json:"photo_size"`
PhotoWidth int64 `json:"photo_width"`
PhotoHeight int64 `json:"photo_height"`
NeedName bool `json:"need_name"`
NeedPhoneNumber bool `json:"need_phone_number"`
NeedEmail bool `json:"need_email"`
NeedShippingAddress bool `json:"need_shipping_address"`
SendPhoneNumberToProvider bool `json:"send_phone_number_to_provider"`
SendEmailToProvider bool `json:"send_email_to_provider"`
IsFlexible bool `json:"is_flexible"`
}
InputInvoiceMessageContent maps to Telegram Bot API type "InputInvoiceMessageContent".
type InputLocationMessageContent ¶
type InputLocationMessageContent struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
HorizontalAccuracy float64 `json:"horizontal_accuracy"`
LivePeriod int64 `json:"live_period"`
Heading int64 `json:"heading"`
ProximityAlertRadius int64 `json:"proximity_alert_radius"`
}
InputLocationMessageContent maps to Telegram Bot API type "InputLocationMessageContent".
type InputMedia ¶
type InputMedia interface {
// contains filtered or unexported methods
}
InputMedia is a union type in Telegram Bot API.
type InputMediaAnimation ¶
type InputMediaAnimation struct {
Type string `json:"type"`
Media string `json:"media"`
Thumbnail string `json:"thumbnail"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
Width int64 `json:"width"`
Height int64 `json:"height"`
Duration int64 `json:"duration"`
HasSpoiler bool `json:"has_spoiler"`
}
InputMediaAnimation maps to Telegram Bot API type "InputMediaAnimation".
type InputMediaAudio ¶
type InputMediaAudio struct {
Type string `json:"type"`
Media string `json:"media"`
Thumbnail string `json:"thumbnail"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
Duration int64 `json:"duration"`
Performer string `json:"performer"`
Title string `json:"title"`
}
InputMediaAudio maps to Telegram Bot API type "InputMediaAudio".
type InputMediaDocument ¶
type InputMediaDocument struct {
Type string `json:"type"`
Media string `json:"media"`
Thumbnail string `json:"thumbnail"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
DisableContentTypeDetection bool `json:"disable_content_type_detection"`
}
InputMediaDocument maps to Telegram Bot API type "InputMediaDocument".
type InputMediaPhoto ¶
type InputMediaPhoto struct {
Type string `json:"type"`
Media string `json:"media"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
HasSpoiler bool `json:"has_spoiler"`
}
InputMediaPhoto maps to Telegram Bot API type "InputMediaPhoto".
type InputMediaVideo ¶
type InputMediaVideo struct {
Type string `json:"type"`
Media string `json:"media"`
Thumbnail string `json:"thumbnail"`
Cover string `json:"cover"`
StartTimestamp int64 `json:"start_timestamp"`
Caption string `json:"caption"`
ParseMode string `json:"parse_mode"`
CaptionEntities []MessageEntity `json:"caption_entities"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
Width int64 `json:"width"`
Height int64 `json:"height"`
Duration int64 `json:"duration"`
SupportsStreaming bool `json:"supports_streaming"`
HasSpoiler bool `json:"has_spoiler"`
}
InputMediaVideo maps to Telegram Bot API type "InputMediaVideo".
type InputMessageContent ¶
type InputMessageContent interface {
// contains filtered or unexported methods
}
InputMessageContent is a union type in Telegram Bot API.
type InputPaidMedia ¶
type InputPaidMedia interface {
// contains filtered or unexported methods
}
InputPaidMedia is a union type in Telegram Bot API.
type InputPaidMediaPhoto ¶
InputPaidMediaPhoto maps to Telegram Bot API type "InputPaidMediaPhoto".
type InputPaidMediaVideo ¶
type InputPaidMediaVideo struct {
Type string `json:"type"`
Media string `json:"media"`
Thumbnail string `json:"thumbnail"`
Cover string `json:"cover"`
StartTimestamp int64 `json:"start_timestamp"`
Width int64 `json:"width"`
Height int64 `json:"height"`
Duration int64 `json:"duration"`
SupportsStreaming bool `json:"supports_streaming"`
}
InputPaidMediaVideo maps to Telegram Bot API type "InputPaidMediaVideo".
type InputPollOption ¶
type InputPollOption struct {
Text string `json:"text"`
TextParseMode string `json:"text_parse_mode"`
TextEntities []MessageEntity `json:"text_entities"`
}
InputPollOption maps to Telegram Bot API type "InputPollOption".
type InputProfilePhoto ¶
type InputProfilePhoto interface {
// contains filtered or unexported methods
}
InputProfilePhoto is a union type in Telegram Bot API.
type InputProfilePhotoAnimated ¶
type InputProfilePhotoAnimated struct {
Type string `json:"type"`
Animation string `json:"animation"`
MainFrameTimestamp float64 `json:"main_frame_timestamp"`
}
InputProfilePhotoAnimated maps to Telegram Bot API type "InputProfilePhotoAnimated".
type InputProfilePhotoStatic ¶
InputProfilePhotoStatic maps to Telegram Bot API type "InputProfilePhotoStatic".
type InputSticker ¶
type InputSticker struct {
Sticker string `json:"sticker"`
Format string `json:"format"`
EmojiList []string `json:"emoji_list"`
MaskPosition *MaskPosition `json:"mask_position"`
Keywords []string `json:"keywords"`
}
InputSticker maps to Telegram Bot API type "InputSticker".
type InputStoryContent ¶
type InputStoryContent interface {
// contains filtered or unexported methods
}
InputStoryContent is a union type in Telegram Bot API.
type InputStoryContentPhoto ¶
InputStoryContentPhoto maps to Telegram Bot API type "InputStoryContentPhoto".
type InputStoryContentVideo ¶
type InputStoryContentVideo struct {
Type string `json:"type"`
Video string `json:"video"`
Duration float64 `json:"duration"`
CoverFrameTimestamp float64 `json:"cover_frame_timestamp"`
IsAnimation bool `json:"is_animation"`
}
InputStoryContentVideo maps to Telegram Bot API type "InputStoryContentVideo".
type InputTextMessageContent ¶
type InputTextMessageContent struct {
MessageText string `json:"message_text"`
ParseMode string `json:"parse_mode"`
Entities []MessageEntity `json:"entities"`
LinkPreviewOptions *LinkPreviewOptions `json:"link_preview_options"`
}
InputTextMessageContent maps to Telegram Bot API type "InputTextMessageContent".
type InputVenueMessageContent ¶
type InputVenueMessageContent struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Title string `json:"title"`
Address string `json:"address"`
FoursquareID string `json:"foursquare_id"`
FoursquareType string `json:"foursquare_type"`
GooglePlaceID string `json:"google_place_id"`
GooglePlaceType string `json:"google_place_type"`
}
InputVenueMessageContent maps to Telegram Bot API type "InputVenueMessageContent".
type Invoice ¶
type Invoice struct {
Title string `json:"title"`
Description string `json:"description"`
StartParameter string `json:"start_parameter"`
Currency string `json:"currency"`
TotalAmount int64 `json:"total_amount"`
}
Invoice maps to Telegram Bot API type "Invoice".
type KeyboardButton ¶
type KeyboardButton struct {
Text string `json:"text"`
IconCustomEmojiID string `json:"icon_custom_emoji_id"`
Style string `json:"style"`
RequestUsers *KeyboardButtonRequestUsers `json:"request_users"`
RequestChat *KeyboardButtonRequestChat `json:"request_chat"`
RequestContact bool `json:"request_contact"`
RequestLocation bool `json:"request_location"`
RequestPoll *KeyboardButtonPollType `json:"request_poll"`
WebApp *WebAppInfo `json:"web_app"`
}
KeyboardButton maps to Telegram Bot API type "KeyboardButton".
type KeyboardButtonPollType ¶
type KeyboardButtonPollType struct {
Type string `json:"type"`
}
KeyboardButtonPollType maps to Telegram Bot API type "KeyboardButtonPollType".
type KeyboardButtonRequestChat ¶
type KeyboardButtonRequestChat struct {
RequestID int64 `json:"request_id"`
ChatIsChannel bool `json:"chat_is_channel"`
ChatIsForum bool `json:"chat_is_forum"`
ChatHasUsername bool `json:"chat_has_username"`
ChatIsCreated bool `json:"chat_is_created"`
UserAdministratorRights *ChatAdministratorRights `json:"user_administrator_rights"`
BotAdministratorRights *ChatAdministratorRights `json:"bot_administrator_rights"`
BotIsMember bool `json:"bot_is_member"`
RequestTitle bool `json:"request_title"`
RequestUsername bool `json:"request_username"`
RequestPhoto bool `json:"request_photo"`
}
KeyboardButtonRequestChat maps to Telegram Bot API type "KeyboardButtonRequestChat".
type KeyboardButtonRequestUsers ¶
type KeyboardButtonRequestUsers struct {
RequestID int64 `json:"request_id"`
UserIsBot bool `json:"user_is_bot"`
UserIsPremium bool `json:"user_is_premium"`
MaxQuantity int64 `json:"max_quantity"`
RequestName bool `json:"request_name"`
RequestUsername bool `json:"request_username"`
RequestPhoto bool `json:"request_photo"`
}
KeyboardButtonRequestUsers maps to Telegram Bot API type "KeyboardButtonRequestUsers".
type LabeledPrice ¶
LabeledPrice maps to Telegram Bot API type "LabeledPrice".
type LeaveChatParams ¶
type LeaveChatParams struct {
ChatID any `json:"chat_id"`
}
LeaveChatParams contains params for Telegram method "leaveChat".
type LinkPreviewOptions ¶
type LinkPreviewOptions struct {
IsDisabled bool `json:"is_disabled"`
URL string `json:"url"`
PreferSmallMedia bool `json:"prefer_small_media"`
PreferLargeMedia bool `json:"prefer_large_media"`
ShowAboveText bool `json:"show_above_text"`
}
LinkPreviewOptions maps to Telegram Bot API type "LinkPreviewOptions".
type Location ¶
type Location struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
HorizontalAccuracy float64 `json:"horizontal_accuracy"`
LivePeriod int64 `json:"live_period"`
Heading int64 `json:"heading"`
ProximityAlertRadius int64 `json:"proximity_alert_radius"`
}
Location maps to Telegram Bot API type "Location".
type LocationAddress ¶
type LocationAddress struct {
CountryCode string `json:"country_code"`
State string `json:"state"`
City string `json:"city"`
Street string `json:"street"`
}
LocationAddress maps to Telegram Bot API type "LocationAddress".
type LogOutParams ¶
type LogOutParams struct {
}
LogOutParams contains params for Telegram method "logOut".
type LoginUrl ¶
type LoginUrl struct {
URL string `json:"url"`
ForwardText string `json:"forward_text"`
BotUsername string `json:"bot_username"`
RequestWriteAccess bool `json:"request_write_access"`
}
LoginUrl maps to Telegram Bot API type "LoginUrl".
type MaskPosition ¶
type MaskPosition struct {
Point string `json:"point"`
XShift float64 `json:"x_shift"`
YShift float64 `json:"y_shift"`
Scale float64 `json:"scale"`
}
MaskPosition maps to Telegram Bot API type "MaskPosition".
type MaybeInaccessibleMessage ¶
type MaybeInaccessibleMessage interface {
// contains filtered or unexported methods
}
MaybeInaccessibleMessage is a union type in Telegram Bot API.
type MenuButton ¶
type MenuButton interface {
// contains filtered or unexported methods
}
MenuButton is a union type in Telegram Bot API.
type MenuButtonCommands ¶
type MenuButtonCommands struct {
Type string `json:"type"`
}
MenuButtonCommands maps to Telegram Bot API type "MenuButtonCommands".
type MenuButtonDefault ¶
type MenuButtonDefault struct {
Type string `json:"type"`
}
MenuButtonDefault maps to Telegram Bot API type "MenuButtonDefault".
type MenuButtonWebApp ¶
type MenuButtonWebApp struct {
Type string `json:"type"`
Text string `json:"text"`
WebApp *WebAppInfo `json:"web_app"`
}
MenuButtonWebApp maps to Telegram Bot API type "MenuButtonWebApp".
type Message ¶
type Message struct {
MessageID int64 `json:"message_id"`
MessageThreadID int64 `json:"message_thread_id"`
DirectMessagesTopic *DirectMessagesTopic `json:"direct_messages_topic"`
From *User `json:"from"`
SenderChat *Chat `json:"sender_chat"`
SenderBoostCount int64 `json:"sender_boost_count"`
SenderBusinessBot *User `json:"sender_business_bot"`
SenderTag string `json:"sender_tag"`
Date int64 `json:"date"`
BusinessConnectionID string `json:"business_connection_id"`
Chat *Chat `json:"chat"`
ForwardOrigin MessageOrigin `json:"forward_origin"`
IsTopicMessage bool `json:"is_topic_message"`
IsAutomaticForward bool `json:"is_automatic_forward"`
ReplyToMessage *Message `json:"reply_to_message"`
ExternalReply *ExternalReplyInfo `json:"external_reply"`
Quote *TextQuote `json:"quote"`
ReplyToStory *Story `json:"reply_to_story"`
ReplyToChecklistTaskID int64 `json:"reply_to_checklist_task_id"`
ViaBot *User `json:"via_bot"`
EditDate int64 `json:"edit_date"`
HasProtectedContent bool `json:"has_protected_content"`
IsFromOffline bool `json:"is_from_offline"`
IsPaidPost bool `json:"is_paid_post"`
MediaGroupID string `json:"media_group_id"`
AuthorSignature string `json:"author_signature"`
PaidStarCount int64 `json:"paid_star_count"`
Text string `json:"text"`
Entities []MessageEntity `json:"entities"`
LinkPreviewOptions *LinkPreviewOptions `json:"link_preview_options"`
SuggestedPostInfo *SuggestedPostInfo `json:"suggested_post_info"`
EffectID string `json:"effect_id"`
Animation *Animation `json:"animation"`
Audio *Audio `json:"audio"`
Document *Document `json:"document"`
PaidMedia *PaidMediaInfo `json:"paid_media"`
Photo []PhotoSize `json:"photo"`
Sticker *Sticker `json:"sticker"`
Story *Story `json:"story"`
Video *Video `json:"video"`
VideoNote *VideoNote `json:"video_note"`
Voice *Voice `json:"voice"`
Caption string `json:"caption"`
CaptionEntities []MessageEntity `json:"caption_entities"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
HasMediaSpoiler bool `json:"has_media_spoiler"`
Checklist *Checklist `json:"checklist"`
Contact *Contact `json:"contact"`
Dice *Dice `json:"dice"`
Game *Game `json:"game"`
Poll *Poll `json:"poll"`
Venue *Venue `json:"venue"`
Location *Location `json:"location"`
NewChatMembers []User `json:"new_chat_members"`
LeftChatMember *User `json:"left_chat_member"`
ChatOwnerLeft *ChatOwnerLeft `json:"chat_owner_left"`
ChatOwnerChanged *ChatOwnerChanged `json:"chat_owner_changed"`
NewChatTitle string `json:"new_chat_title"`
NewChatPhoto []PhotoSize `json:"new_chat_photo"`
DeleteChatPhoto bool `json:"delete_chat_photo"`
GroupChatCreated bool `json:"group_chat_created"`
SupergroupChatCreated bool `json:"supergroup_chat_created"`
ChannelChatCreated bool `json:"channel_chat_created"`
MessageAutoDeleteTimerChanged *MessageAutoDeleteTimerChanged `json:"message_auto_delete_timer_changed"`
MigrateToChatID int64 `json:"migrate_to_chat_id"`
MigrateFromChatID int64 `json:"migrate_from_chat_id"`
PinnedMessage MaybeInaccessibleMessage `json:"pinned_message"`
Invoice *Invoice `json:"invoice"`
SuccessfulPayment *SuccessfulPayment `json:"successful_payment"`
RefundedPayment *RefundedPayment `json:"refunded_payment"`
Gift *GiftInfo `json:"gift"`
UniqueGift *UniqueGiftInfo `json:"unique_gift"`
GiftUpgradeSent *GiftInfo `json:"gift_upgrade_sent"`
ConnectedWebsite string `json:"connected_website"`
WriteAccessAllowed *WriteAccessAllowed `json:"write_access_allowed"`
PassportData *PassportData `json:"passport_data"`
ProximityAlertTriggered *ProximityAlertTriggered `json:"proximity_alert_triggered"`
BoostAdded *ChatBoostAdded `json:"boost_added"`
ChatBackgroundSet *ChatBackground `json:"chat_background_set"`
ChecklistTasksDone *ChecklistTasksDone `json:"checklist_tasks_done"`
ChecklistTasksAdded *ChecklistTasksAdded `json:"checklist_tasks_added"`
DirectMessagePriceChanged *DirectMessagePriceChanged `json:"direct_message_price_changed"`
ForumTopicCreated *ForumTopicCreated `json:"forum_topic_created"`
ForumTopicEdited *ForumTopicEdited `json:"forum_topic_edited"`
ForumTopicClosed *ForumTopicClosed `json:"forum_topic_closed"`
ForumTopicReopened *ForumTopicReopened `json:"forum_topic_reopened"`
GeneralForumTopicHidden *GeneralForumTopicHidden `json:"general_forum_topic_hidden"`
GiveawayCreated *GiveawayCreated `json:"giveaway_created"`
Giveaway *Giveaway `json:"giveaway"`
GiveawayWinners *GiveawayWinners `json:"giveaway_winners"`
GiveawayCompleted *GiveawayCompleted `json:"giveaway_completed"`
PaidMessagePriceChanged *PaidMessagePriceChanged `json:"paid_message_price_changed"`
SuggestedPostApproved *SuggestedPostApproved `json:"suggested_post_approved"`
SuggestedPostApprovalFailed *SuggestedPostApprovalFailed `json:"suggested_post_approval_failed"`
SuggestedPostDeclined *SuggestedPostDeclined `json:"suggested_post_declined"`
SuggestedPostPaid *SuggestedPostPaid `json:"suggested_post_paid"`
SuggestedPostRefunded *SuggestedPostRefunded `json:"suggested_post_refunded"`
VideoChatScheduled *VideoChatScheduled `json:"video_chat_scheduled"`
VideoChatStarted *VideoChatStarted `json:"video_chat_started"`
VideoChatEnded *VideoChatEnded `json:"video_chat_ended"`
VideoChatParticipantsInvited *VideoChatParticipantsInvited `json:"video_chat_participants_invited"`
WebAppData *WebAppData `json:"web_app_data"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
}
Message maps to Telegram Bot API type "Message".
func (*Message) UnmarshalJSON ¶
type MessageAutoDeleteTimerChanged ¶
type MessageAutoDeleteTimerChanged struct {
MessageAutoDeleteTime int64 `json:"message_auto_delete_time"`
}
MessageAutoDeleteTimerChanged maps to Telegram Bot API type "MessageAutoDeleteTimerChanged".
type MessageEntity ¶
type MessageEntity struct {
Type string `json:"type"`
Offset int64 `json:"offset"`
Length int64 `json:"length"`
URL string `json:"url"`
User *User `json:"user"`
Language string `json:"language"`
CustomEmojiID string `json:"custom_emoji_id"`
UnixTime int64 `json:"unix_time"`
DateTimeFormat string `json:"date_time_format"`
}
MessageEntity maps to Telegram Bot API type "MessageEntity".
type MessageId ¶
type MessageId struct {
MessageID int64 `json:"message_id"`
}
MessageId maps to Telegram Bot API type "MessageId".
type MessageOrigin ¶
type MessageOrigin interface {
// contains filtered or unexported methods
}
MessageOrigin is a union type in Telegram Bot API.
type MessageOriginChannel ¶
type MessageOriginChannel struct {
Type string `json:"type"`
Date int64 `json:"date"`
Chat *Chat `json:"chat"`
MessageID int64 `json:"message_id"`
AuthorSignature string `json:"author_signature"`
}
MessageOriginChannel maps to Telegram Bot API type "MessageOriginChannel".
type MessageOriginChat ¶
type MessageOriginChat struct {
Type string `json:"type"`
Date int64 `json:"date"`
SenderChat *Chat `json:"sender_chat"`
AuthorSignature string `json:"author_signature"`
}
MessageOriginChat maps to Telegram Bot API type "MessageOriginChat".
type MessageOriginHiddenUser ¶
type MessageOriginHiddenUser struct {
Type string `json:"type"`
Date int64 `json:"date"`
SenderUserName string `json:"sender_user_name"`
}
MessageOriginHiddenUser maps to Telegram Bot API type "MessageOriginHiddenUser".
type MessageOriginUser ¶
type MessageOriginUser struct {
Type string `json:"type"`
Date int64 `json:"date"`
SenderUser *User `json:"sender_user"`
}
MessageOriginUser maps to Telegram Bot API type "MessageOriginUser".
type MessageReactionCountUpdated ¶
type MessageReactionCountUpdated struct {
Chat *Chat `json:"chat"`
MessageID int64 `json:"message_id"`
Date int64 `json:"date"`
Reactions []ReactionCount `json:"reactions"`
}
MessageReactionCountUpdated maps to Telegram Bot API type "MessageReactionCountUpdated".
type MessageReactionUpdated ¶
type MessageReactionUpdated struct {
Chat *Chat `json:"chat"`
MessageID int64 `json:"message_id"`
User *User `json:"user"`
ActorChat *Chat `json:"actor_chat"`
Date int64 `json:"date"`
OldReaction []ReactionType `json:"old_reaction"`
NewReaction []ReactionType `json:"new_reaction"`
}
MessageReactionUpdated maps to Telegram Bot API type "MessageReactionUpdated".
func (*MessageReactionUpdated) UnmarshalJSON ¶
func (value *MessageReactionUpdated) UnmarshalJSON(data []byte) error
type OrderInfo ¶
type OrderInfo struct {
Name string `json:"name"`
PhoneNumber string `json:"phone_number"`
Email string `json:"email"`
ShippingAddress *ShippingAddress `json:"shipping_address"`
}
OrderInfo maps to Telegram Bot API type "OrderInfo".
type OwnedGift ¶
type OwnedGift interface {
// contains filtered or unexported methods
}
OwnedGift is a union type in Telegram Bot API.
type OwnedGiftRegular ¶
type OwnedGiftRegular struct {
Type string `json:"type"`
Gift *Gift `json:"gift"`
OwnedGiftID string `json:"owned_gift_id"`
SenderUser *User `json:"sender_user"`
SendDate int64 `json:"send_date"`
Text string `json:"text"`
Entities []MessageEntity `json:"entities"`
IsPrivate bool `json:"is_private"`
IsSaved bool `json:"is_saved"`
CanBeUpgraded bool `json:"can_be_upgraded"`
WasRefunded bool `json:"was_refunded"`
ConvertStarCount int64 `json:"convert_star_count"`
PrepaidUpgradeStarCount int64 `json:"prepaid_upgrade_star_count"`
IsUpgradeSeparate bool `json:"is_upgrade_separate"`
UniqueGiftNumber int64 `json:"unique_gift_number"`
}
OwnedGiftRegular maps to Telegram Bot API type "OwnedGiftRegular".
type OwnedGiftUnique ¶
type OwnedGiftUnique struct {
Type string `json:"type"`
Gift *UniqueGift `json:"gift"`
OwnedGiftID string `json:"owned_gift_id"`
SenderUser *User `json:"sender_user"`
SendDate int64 `json:"send_date"`
IsSaved bool `json:"is_saved"`
CanBeTransferred bool `json:"can_be_transferred"`
TransferStarCount int64 `json:"transfer_star_count"`
NextTransferDate int64 `json:"next_transfer_date"`
}
OwnedGiftUnique maps to Telegram Bot API type "OwnedGiftUnique".
type OwnedGifts ¶
type OwnedGifts struct {
TotalCount int64 `json:"total_count"`
Gifts []OwnedGift `json:"gifts"`
NextOffset string `json:"next_offset"`
}
OwnedGifts maps to Telegram Bot API type "OwnedGifts".
func (*OwnedGifts) UnmarshalJSON ¶
func (value *OwnedGifts) UnmarshalJSON(data []byte) error
type PaidMedia ¶
type PaidMedia interface {
// contains filtered or unexported methods
}
PaidMedia is a union type in Telegram Bot API.
type PaidMediaInfo ¶
type PaidMediaInfo struct {
StarCount int64 `json:"star_count"`
PaidMedia []PaidMedia `json:"paid_media"`
}
PaidMediaInfo maps to Telegram Bot API type "PaidMediaInfo".
func (*PaidMediaInfo) UnmarshalJSON ¶
func (value *PaidMediaInfo) UnmarshalJSON(data []byte) error
type PaidMediaPhoto ¶
PaidMediaPhoto maps to Telegram Bot API type "PaidMediaPhoto".
type PaidMediaPreview ¶
type PaidMediaPreview struct {
Type string `json:"type"`
Width int64 `json:"width"`
Height int64 `json:"height"`
Duration int64 `json:"duration"`
}
PaidMediaPreview maps to Telegram Bot API type "PaidMediaPreview".
type PaidMediaPurchased ¶
type PaidMediaPurchased struct {
From *User `json:"from"`
PaidMediaPayload string `json:"paid_media_payload"`
}
PaidMediaPurchased maps to Telegram Bot API type "PaidMediaPurchased".
type PaidMediaVideo ¶
PaidMediaVideo maps to Telegram Bot API type "PaidMediaVideo".
type PaidMessagePriceChanged ¶
type PaidMessagePriceChanged struct {
PaidMessageStarCount int64 `json:"paid_message_star_count"`
}
PaidMessagePriceChanged maps to Telegram Bot API type "PaidMessagePriceChanged".
type PassportData ¶
type PassportData struct {
Data []EncryptedPassportElement `json:"data"`
Credentials *EncryptedCredentials `json:"credentials"`
}
PassportData maps to Telegram Bot API type "PassportData".
type PassportElementError ¶
type PassportElementError interface {
// contains filtered or unexported methods
}
PassportElementError is a union type in Telegram Bot API.
type PassportElementErrorDataField ¶
type PassportElementErrorDataField struct {
Source string `json:"source"`
Type string `json:"type"`
FieldName string `json:"field_name"`
DataHash string `json:"data_hash"`
Message string `json:"message"`
}
PassportElementErrorDataField maps to Telegram Bot API type "PassportElementErrorDataField".
type PassportElementErrorFile ¶
type PassportElementErrorFile struct {
Source string `json:"source"`
Type string `json:"type"`
FileHash string `json:"file_hash"`
Message string `json:"message"`
}
PassportElementErrorFile maps to Telegram Bot API type "PassportElementErrorFile".
type PassportElementErrorFiles ¶
type PassportElementErrorFiles struct {
Source string `json:"source"`
Type string `json:"type"`
FileHashes []string `json:"file_hashes"`
Message string `json:"message"`
}
PassportElementErrorFiles maps to Telegram Bot API type "PassportElementErrorFiles".
type PassportElementErrorFrontSide ¶
type PassportElementErrorFrontSide struct {
Source string `json:"source"`
Type string `json:"type"`
FileHash string `json:"file_hash"`
Message string `json:"message"`
}
PassportElementErrorFrontSide maps to Telegram Bot API type "PassportElementErrorFrontSide".
type PassportElementErrorReverseSide ¶
type PassportElementErrorReverseSide struct {
Source string `json:"source"`
Type string `json:"type"`
FileHash string `json:"file_hash"`
Message string `json:"message"`
}
PassportElementErrorReverseSide maps to Telegram Bot API type "PassportElementErrorReverseSide".
type PassportElementErrorSelfie ¶
type PassportElementErrorSelfie struct {
Source string `json:"source"`
Type string `json:"type"`
FileHash string `json:"file_hash"`
Message string `json:"message"`
}
PassportElementErrorSelfie maps to Telegram Bot API type "PassportElementErrorSelfie".
type PassportElementErrorTranslationFile ¶
type PassportElementErrorTranslationFile struct {
Source string `json:"source"`
Type string `json:"type"`
FileHash string `json:"file_hash"`
Message string `json:"message"`
}
PassportElementErrorTranslationFile maps to Telegram Bot API type "PassportElementErrorTranslationFile".
type PassportElementErrorTranslationFiles ¶
type PassportElementErrorTranslationFiles struct {
Source string `json:"source"`
Type string `json:"type"`
FileHashes []string `json:"file_hashes"`
Message string `json:"message"`
}
PassportElementErrorTranslationFiles maps to Telegram Bot API type "PassportElementErrorTranslationFiles".
type PassportElementErrorUnspecified ¶
type PassportElementErrorUnspecified struct {
Source string `json:"source"`
Type string `json:"type"`
ElementHash string `json:"element_hash"`
Message string `json:"message"`
}
PassportElementErrorUnspecified maps to Telegram Bot API type "PassportElementErrorUnspecified".
type PassportFile ¶
type PassportFile struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
FileSize int64 `json:"file_size"`
FileDate int64 `json:"file_date"`
}
PassportFile maps to Telegram Bot API type "PassportFile".
type PhotoSize ¶
type PhotoSize struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
Width int64 `json:"width"`
Height int64 `json:"height"`
FileSize int64 `json:"file_size"`
}
PhotoSize maps to Telegram Bot API type "PhotoSize".
type PinChatMessageParams ¶
type PinChatMessageParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageID int64 `json:"message_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
}
PinChatMessageParams contains params for Telegram method "pinChatMessage".
type Poll ¶
type Poll struct {
ID string `json:"id"`
Question string `json:"question"`
QuestionEntities []MessageEntity `json:"question_entities"`
Options []PollOption `json:"options"`
TotalVoterCount int64 `json:"total_voter_count"`
IsClosed bool `json:"is_closed"`
IsAnonymous bool `json:"is_anonymous"`
Type string `json:"type"`
AllowsMultipleAnswers bool `json:"allows_multiple_answers"`
CorrectOptionID int64 `json:"correct_option_id"`
Explanation string `json:"explanation"`
ExplanationEntities []MessageEntity `json:"explanation_entities"`
OpenPeriod int64 `json:"open_period"`
CloseDate int64 `json:"close_date"`
}
Poll maps to Telegram Bot API type "Poll".
type PollAnswer ¶
type PollAnswer struct {
PollID string `json:"poll_id"`
VoterChat *Chat `json:"voter_chat"`
User *User `json:"user"`
OptionIds []int64 `json:"option_ids"`
}
PollAnswer maps to Telegram Bot API type "PollAnswer".
type PollOption ¶
type PollOption struct {
Text string `json:"text"`
TextEntities []MessageEntity `json:"text_entities"`
VoterCount int64 `json:"voter_count"`
}
PollOption maps to Telegram Bot API type "PollOption".
type PostStoryParams ¶
type PostStoryParams struct {
BusinessConnectionID string `json:"business_connection_id"`
Content InputStoryContent `json:"content"`
ActivePeriod int64 `json:"active_period"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
Areas []StoryArea `json:"areas,omitempty"`
PostToChatPage bool `json:"post_to_chat_page,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
}
PostStoryParams contains params for Telegram method "postStory".
type PreCheckoutQuery ¶
type PreCheckoutQuery struct {
ID string `json:"id"`
From *User `json:"from"`
Currency string `json:"currency"`
TotalAmount int64 `json:"total_amount"`
InvoicePayload string `json:"invoice_payload"`
ShippingOptionID string `json:"shipping_option_id"`
OrderInfo *OrderInfo `json:"order_info"`
}
PreCheckoutQuery maps to Telegram Bot API type "PreCheckoutQuery".
type PreparedInlineMessage ¶
type PreparedInlineMessage struct {
ID string `json:"id"`
ExpirationDate int64 `json:"expiration_date"`
}
PreparedInlineMessage maps to Telegram Bot API type "PreparedInlineMessage".
type PromoteChatMemberParams ¶
type PromoteChatMemberParams struct {
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
IsAnonymous bool `json:"is_anonymous,omitempty"`
CanManageChat bool `json:"can_manage_chat,omitempty"`
CanDeleteMessages bool `json:"can_delete_messages,omitempty"`
CanManageVideoChats bool `json:"can_manage_video_chats,omitempty"`
CanRestrictMembers bool `json:"can_restrict_members,omitempty"`
CanPromoteMembers bool `json:"can_promote_members,omitempty"`
CanChangeInfo bool `json:"can_change_info,omitempty"`
CanInviteUsers bool `json:"can_invite_users,omitempty"`
CanPostStories bool `json:"can_post_stories,omitempty"`
CanEditStories bool `json:"can_edit_stories,omitempty"`
CanDeleteStories bool `json:"can_delete_stories,omitempty"`
CanPostMessages bool `json:"can_post_messages,omitempty"`
CanEditMessages bool `json:"can_edit_messages,omitempty"`
CanPinMessages bool `json:"can_pin_messages,omitempty"`
CanManageTopics bool `json:"can_manage_topics,omitempty"`
CanManageDirectMessages bool `json:"can_manage_direct_messages,omitempty"`
CanManageTags bool `json:"can_manage_tags,omitempty"`
}
PromoteChatMemberParams contains params for Telegram method "promoteChatMember".
type ProximityAlertTriggered ¶
type ProximityAlertTriggered struct {
Traveler *User `json:"traveler"`
Watcher *User `json:"watcher"`
Distance int64 `json:"distance"`
}
ProximityAlertTriggered maps to Telegram Bot API type "ProximityAlertTriggered".
type ReactionCount ¶
type ReactionCount struct {
Type ReactionType `json:"type"`
TotalCount int64 `json:"total_count"`
}
ReactionCount maps to Telegram Bot API type "ReactionCount".
func (*ReactionCount) UnmarshalJSON ¶
func (value *ReactionCount) UnmarshalJSON(data []byte) error
type ReactionType ¶
type ReactionType interface {
// contains filtered or unexported methods
}
ReactionType is a union type in Telegram Bot API.
type ReactionTypeCustomEmoji ¶
type ReactionTypeCustomEmoji struct {
Type string `json:"type"`
CustomEmojiID string `json:"custom_emoji_id"`
}
ReactionTypeCustomEmoji maps to Telegram Bot API type "ReactionTypeCustomEmoji".
type ReactionTypeEmoji ¶
ReactionTypeEmoji maps to Telegram Bot API type "ReactionTypeEmoji".
type ReactionTypePaid ¶
type ReactionTypePaid struct {
Type string `json:"type"`
}
ReactionTypePaid maps to Telegram Bot API type "ReactionTypePaid".
type ReadBusinessMessageParams ¶
type ReadBusinessMessageParams struct {
BusinessConnectionID string `json:"business_connection_id"`
ChatID int64 `json:"chat_id"`
MessageID int64 `json:"message_id"`
}
ReadBusinessMessageParams contains params for Telegram method "readBusinessMessage".
type RefundStarPaymentParams ¶
type RefundStarPaymentParams struct {
UserID int64 `json:"user_id"`
TelegramPaymentChargeID string `json:"telegram_payment_charge_id"`
}
RefundStarPaymentParams contains params for Telegram method "refundStarPayment".
type RefundedPayment ¶
type RefundedPayment struct {
Currency string `json:"currency"`
TotalAmount int64 `json:"total_amount"`
InvoicePayload string `json:"invoice_payload"`
TelegramPaymentChargeID string `json:"telegram_payment_charge_id"`
ProviderPaymentChargeID string `json:"provider_payment_charge_id"`
}
RefundedPayment maps to Telegram Bot API type "RefundedPayment".
type RemoveBusinessAccountProfilePhotoParams ¶
type RemoveBusinessAccountProfilePhotoParams struct {
BusinessConnectionID string `json:"business_connection_id"`
IsPublic bool `json:"is_public,omitempty"`
}
RemoveBusinessAccountProfilePhotoParams contains params for Telegram method "removeBusinessAccountProfilePhoto".
type RemoveChatVerificationParams ¶
type RemoveChatVerificationParams struct {
ChatID any `json:"chat_id"`
}
RemoveChatVerificationParams contains params for Telegram method "removeChatVerification".
type RemoveMyProfilePhotoParams ¶
type RemoveMyProfilePhotoParams struct {
}
RemoveMyProfilePhotoParams contains params for Telegram method "removeMyProfilePhoto".
type RemoveUserVerificationParams ¶
type RemoveUserVerificationParams struct {
UserID int64 `json:"user_id"`
}
RemoveUserVerificationParams contains params for Telegram method "removeUserVerification".
type ReopenForumTopicParams ¶
type ReopenForumTopicParams struct {
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id"`
}
ReopenForumTopicParams contains params for Telegram method "reopenForumTopic".
type ReopenGeneralForumTopicParams ¶
type ReopenGeneralForumTopicParams struct {
ChatID any `json:"chat_id"`
}
ReopenGeneralForumTopicParams contains params for Telegram method "reopenGeneralForumTopic".
type ReplaceStickerInSetParams ¶
type ReplaceStickerInSetParams struct {
UserID int64 `json:"user_id"`
Name string `json:"name"`
OldSticker string `json:"old_sticker"`
Sticker InputSticker `json:"sticker"`
}
ReplaceStickerInSetParams contains params for Telegram method "replaceStickerInSet".
type ReplyKeyboardMarkup ¶
type ReplyKeyboardMarkup struct {
Keyboard [][]KeyboardButton `json:"keyboard"`
IsPersistent bool `json:"is_persistent"`
ResizeKeyboard bool `json:"resize_keyboard"`
OneTimeKeyboard bool `json:"one_time_keyboard"`
InputFieldPlaceholder string `json:"input_field_placeholder"`
Selective bool `json:"selective"`
}
ReplyKeyboardMarkup maps to Telegram Bot API type "ReplyKeyboardMarkup".
type ReplyKeyboardRemove ¶
type ReplyKeyboardRemove struct {
RemoveKeyboard bool `json:"remove_keyboard"`
Selective bool `json:"selective"`
}
ReplyKeyboardRemove maps to Telegram Bot API type "ReplyKeyboardRemove".
type ReplyParameters ¶
type ReplyParameters struct {
MessageID int64 `json:"message_id"`
ChatID any `json:"chat_id"`
AllowSendingWithoutReply bool `json:"allow_sending_without_reply"`
Quote string `json:"quote"`
QuoteParseMode string `json:"quote_parse_mode"`
QuoteEntities []MessageEntity `json:"quote_entities"`
QuotePosition int64 `json:"quote_position"`
ChecklistTaskID int64 `json:"checklist_task_id"`
}
ReplyParameters maps to Telegram Bot API type "ReplyParameters".
type RepostStoryParams ¶
type RepostStoryParams struct {
BusinessConnectionID string `json:"business_connection_id"`
FromChatID int64 `json:"from_chat_id"`
FromStoryID int64 `json:"from_story_id"`
ActivePeriod int64 `json:"active_period"`
PostToChatPage bool `json:"post_to_chat_page,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
}
RepostStoryParams contains params for Telegram method "repostStory".
type ResponseParameters ¶
type ResponseParameters struct {
MigrateToChatID int64 `json:"migrate_to_chat_id,omitempty"`
RetryAfter int `json:"retry_after,omitempty"`
}
ResponseParameters contains extra Telegram error hints.
type RestrictChatMemberParams ¶
type RestrictChatMemberParams struct {
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
Permissions ChatPermissions `json:"permissions"`
UseIndependentChatPermissions bool `json:"use_independent_chat_permissions,omitempty"`
UntilDate int64 `json:"until_date,omitempty"`
}
RestrictChatMemberParams contains params for Telegram method "restrictChatMember".
type RevenueWithdrawalState ¶
type RevenueWithdrawalState interface {
// contains filtered or unexported methods
}
RevenueWithdrawalState is a union type in Telegram Bot API.
type RevenueWithdrawalStateFailed ¶
type RevenueWithdrawalStateFailed struct {
Type string `json:"type"`
}
RevenueWithdrawalStateFailed maps to Telegram Bot API type "RevenueWithdrawalStateFailed".
type RevenueWithdrawalStatePending ¶
type RevenueWithdrawalStatePending struct {
Type string `json:"type"`
}
RevenueWithdrawalStatePending maps to Telegram Bot API type "RevenueWithdrawalStatePending".
type RevenueWithdrawalStateSucceeded ¶
type RevenueWithdrawalStateSucceeded struct {
Type string `json:"type"`
Date int64 `json:"date"`
URL string `json:"url"`
}
RevenueWithdrawalStateSucceeded maps to Telegram Bot API type "RevenueWithdrawalStateSucceeded".
type RevokeChatInviteLinkParams ¶
type RevokeChatInviteLinkParams struct {
ChatID any `json:"chat_id"`
InviteLink string `json:"invite_link"`
}
RevokeChatInviteLinkParams contains params for Telegram method "revokeChatInviteLink".
type SavePreparedInlineMessageParams ¶
type SavePreparedInlineMessageParams struct {
UserID int64 `json:"user_id"`
Result InlineQueryResult `json:"result"`
AllowUserChats bool `json:"allow_user_chats,omitempty"`
AllowBotChats bool `json:"allow_bot_chats,omitempty"`
AllowGroupChats bool `json:"allow_group_chats,omitempty"`
AllowChannelChats bool `json:"allow_channel_chats,omitempty"`
}
SavePreparedInlineMessageParams contains params for Telegram method "savePreparedInlineMessage".
type SendAnimationParams ¶
type SendAnimationParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Animation any `json:"animation"`
Duration int64 `json:"duration,omitempty"`
Width int64 `json:"width,omitempty"`
Height int64 `json:"height,omitempty"`
Thumbnail any `json:"thumbnail,omitempty"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
HasSpoiler bool `json:"has_spoiler,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
SendAnimationParams contains params for Telegram method "sendAnimation".
type SendAudioParams ¶
type SendAudioParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Audio any `json:"audio"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
Duration int64 `json:"duration,omitempty"`
Performer string `json:"performer,omitempty"`
Title string `json:"title,omitempty"`
Thumbnail any `json:"thumbnail,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
SendAudioParams contains params for Telegram method "sendAudio".
type SendChatActionParams ¶
type SendChatActionParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
Action string `json:"action"`
}
SendChatActionParams contains params for Telegram method "sendChatAction".
type SendChecklistParams ¶
type SendChecklistParams struct {
BusinessConnectionID string `json:"business_connection_id"`
ChatID int64 `json:"chat_id"`
Checklist InputChecklist `json:"checklist"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
SendChecklistParams contains params for Telegram method "sendChecklist".
type SendContactParams ¶
type SendContactParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
PhoneNumber string `json:"phone_number"`
FirstName string `json:"first_name"`
LastName string `json:"last_name,omitempty"`
Vcard string `json:"vcard,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
SendContactParams contains params for Telegram method "sendContact".
type SendDiceParams ¶
type SendDiceParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Emoji string `json:"emoji,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
SendDiceParams contains params for Telegram method "sendDice".
type SendDocumentParams ¶
type SendDocumentParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Document any `json:"document"`
Thumbnail any `json:"thumbnail,omitempty"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
DisableContentTypeDetection bool `json:"disable_content_type_detection,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
SendDocumentParams contains params for Telegram method "sendDocument".
type SendGameParams ¶
type SendGameParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID int64 `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
GameShortName string `json:"game_short_name"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
SendGameParams contains params for Telegram method "sendGame".
type SendGiftParams ¶
type SendGiftParams struct {
UserID int64 `json:"user_id,omitempty"`
ChatID any `json:"chat_id,omitempty"`
GiftID string `json:"gift_id"`
PayForUpgrade bool `json:"pay_for_upgrade,omitempty"`
Text string `json:"text,omitempty"`
TextParseMode string `json:"text_parse_mode,omitempty"`
TextEntities []MessageEntity `json:"text_entities,omitempty"`
}
SendGiftParams contains params for Telegram method "sendGift".
type SendInvoiceParams ¶
type SendInvoiceParams struct {
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Title string `json:"title"`
Description string `json:"description"`
Payload string `json:"payload"`
ProviderToken string `json:"provider_token,omitempty"`
Currency string `json:"currency"`
Prices []LabeledPrice `json:"prices"`
MaxTipAmount int64 `json:"max_tip_amount,omitempty"`
SuggestedTipAmounts []int64 `json:"suggested_tip_amounts,omitempty"`
StartParameter string `json:"start_parameter,omitempty"`
ProviderData string `json:"provider_data,omitempty"`
PhotoURL string `json:"photo_url,omitempty"`
PhotoSize int64 `json:"photo_size,omitempty"`
PhotoWidth int64 `json:"photo_width,omitempty"`
PhotoHeight int64 `json:"photo_height,omitempty"`
NeedName bool `json:"need_name,omitempty"`
NeedPhoneNumber bool `json:"need_phone_number,omitempty"`
NeedEmail bool `json:"need_email,omitempty"`
NeedShippingAddress bool `json:"need_shipping_address,omitempty"`
SendPhoneNumberToProvider bool `json:"send_phone_number_to_provider,omitempty"`
SendEmailToProvider bool `json:"send_email_to_provider,omitempty"`
IsFlexible bool `json:"is_flexible,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
SendInvoiceParams contains params for Telegram method "sendInvoice".
type SendLocationParams ¶
type SendLocationParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty"`
LivePeriod int64 `json:"live_period,omitempty"`
Heading int64 `json:"heading,omitempty"`
ProximityAlertRadius int64 `json:"proximity_alert_radius,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
SendLocationParams contains params for Telegram method "sendLocation".
type SendMediaGroupParams ¶
type SendMediaGroupParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Media []InputMedia `json:"media"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
}
SendMediaGroupParams contains params for Telegram method "sendMediaGroup".
type SendMessageDraftParams ¶
type SendMessageDraftParams struct {
ChatID int64 `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DraftID int64 `json:"draft_id"`
Text string `json:"text"`
ParseMode string `json:"parse_mode,omitempty"`
Entities []MessageEntity `json:"entities,omitempty"`
}
SendMessageDraftParams contains params for Telegram method "sendMessageDraft".
type SendMessageParams ¶
type SendMessageParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Text string `json:"text"`
ParseMode string `json:"parse_mode,omitempty"`
Entities []MessageEntity `json:"entities,omitempty"`
LinkPreviewOptions LinkPreviewOptions `json:"link_preview_options,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
SendMessageParams contains params for Telegram method "sendMessage".
type SendPaidMediaParams ¶
type SendPaidMediaParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
StarCount int64 `json:"star_count"`
Media []InputPaidMedia `json:"media"`
Payload string `json:"payload,omitempty"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
SendPaidMediaParams contains params for Telegram method "sendPaidMedia".
type SendPhotoParams ¶
type SendPhotoParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Photo any `json:"photo"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
HasSpoiler bool `json:"has_spoiler,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
SendPhotoParams contains params for Telegram method "sendPhoto".
type SendPollParams ¶
type SendPollParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
Question string `json:"question"`
QuestionParseMode string `json:"question_parse_mode,omitempty"`
QuestionEntities []MessageEntity `json:"question_entities,omitempty"`
Options []InputPollOption `json:"options"`
IsAnonymous bool `json:"is_anonymous,omitempty"`
Type string `json:"type,omitempty"`
AllowsMultipleAnswers bool `json:"allows_multiple_answers,omitempty"`
CorrectOptionID int64 `json:"correct_option_id,omitempty"`
Explanation string `json:"explanation,omitempty"`
ExplanationParseMode string `json:"explanation_parse_mode,omitempty"`
ExplanationEntities []MessageEntity `json:"explanation_entities,omitempty"`
OpenPeriod int64 `json:"open_period,omitempty"`
CloseDate int64 `json:"close_date,omitempty"`
IsClosed bool `json:"is_closed,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
SendPollParams contains params for Telegram method "sendPoll".
type SendStickerParams ¶
type SendStickerParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Sticker any `json:"sticker"`
Emoji string `json:"emoji,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
SendStickerParams contains params for Telegram method "sendSticker".
type SendVenueParams ¶
type SendVenueParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Title string `json:"title"`
Address string `json:"address"`
FoursquareID string `json:"foursquare_id,omitempty"`
FoursquareType string `json:"foursquare_type,omitempty"`
GooglePlaceID string `json:"google_place_id,omitempty"`
GooglePlaceType string `json:"google_place_type,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
SendVenueParams contains params for Telegram method "sendVenue".
type SendVideoNoteParams ¶
type SendVideoNoteParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
VideoNote any `json:"video_note"`
Duration int64 `json:"duration,omitempty"`
Length int64 `json:"length,omitempty"`
Thumbnail any `json:"thumbnail,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
SendVideoNoteParams contains params for Telegram method "sendVideoNote".
type SendVideoParams ¶
type SendVideoParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Video any `json:"video"`
Duration int64 `json:"duration,omitempty"`
Width int64 `json:"width,omitempty"`
Height int64 `json:"height,omitempty"`
Thumbnail any `json:"thumbnail,omitempty"`
Cover any `json:"cover,omitempty"`
StartTimestamp int64 `json:"start_timestamp,omitempty"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
HasSpoiler bool `json:"has_spoiler,omitempty"`
SupportsStreaming bool `json:"supports_streaming,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
SendVideoParams contains params for Telegram method "sendVideo".
type SendVoiceParams ¶
type SendVoiceParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Voice any `json:"voice"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
Duration int64 `json:"duration,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup any `json:"reply_markup,omitempty"`
}
SendVoiceParams contains params for Telegram method "sendVoice".
type SentWebAppMessage ¶
type SentWebAppMessage struct {
InlineMessageID string `json:"inline_message_id"`
}
SentWebAppMessage maps to Telegram Bot API type "SentWebAppMessage".
type SetBusinessAccountBioParams ¶
type SetBusinessAccountBioParams struct {
BusinessConnectionID string `json:"business_connection_id"`
Bio string `json:"bio,omitempty"`
}
SetBusinessAccountBioParams contains params for Telegram method "setBusinessAccountBio".
type SetBusinessAccountGiftSettingsParams ¶
type SetBusinessAccountGiftSettingsParams struct {
BusinessConnectionID string `json:"business_connection_id"`
ShowGiftButton bool `json:"show_gift_button"`
AcceptedGiftTypes AcceptedGiftTypes `json:"accepted_gift_types"`
}
SetBusinessAccountGiftSettingsParams contains params for Telegram method "setBusinessAccountGiftSettings".
type SetBusinessAccountNameParams ¶
type SetBusinessAccountNameParams struct {
BusinessConnectionID string `json:"business_connection_id"`
FirstName string `json:"first_name"`
LastName string `json:"last_name,omitempty"`
}
SetBusinessAccountNameParams contains params for Telegram method "setBusinessAccountName".
type SetBusinessAccountProfilePhotoParams ¶
type SetBusinessAccountProfilePhotoParams struct {
BusinessConnectionID string `json:"business_connection_id"`
Photo InputProfilePhoto `json:"photo"`
IsPublic bool `json:"is_public,omitempty"`
}
SetBusinessAccountProfilePhotoParams contains params for Telegram method "setBusinessAccountProfilePhoto".
type SetBusinessAccountUsernameParams ¶
type SetBusinessAccountUsernameParams struct {
BusinessConnectionID string `json:"business_connection_id"`
Username string `json:"username,omitempty"`
}
SetBusinessAccountUsernameParams contains params for Telegram method "setBusinessAccountUsername".
type SetChatAdministratorCustomTitleParams ¶
type SetChatAdministratorCustomTitleParams struct {
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
CustomTitle string `json:"custom_title"`
}
SetChatAdministratorCustomTitleParams contains params for Telegram method "setChatAdministratorCustomTitle".
type SetChatDescriptionParams ¶
type SetChatDescriptionParams struct {
ChatID any `json:"chat_id"`
Description string `json:"description,omitempty"`
}
SetChatDescriptionParams contains params for Telegram method "setChatDescription".
type SetChatMemberTagParams ¶
type SetChatMemberTagParams struct {
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
Tag string `json:"tag,omitempty"`
}
SetChatMemberTagParams contains params for Telegram method "setChatMemberTag".
type SetChatMenuButtonParams ¶
type SetChatMenuButtonParams struct {
ChatID int64 `json:"chat_id,omitempty"`
MenuButton MenuButton `json:"menu_button,omitempty"`
}
SetChatMenuButtonParams contains params for Telegram method "setChatMenuButton".
type SetChatPermissionsParams ¶
type SetChatPermissionsParams struct {
ChatID any `json:"chat_id"`
Permissions ChatPermissions `json:"permissions"`
UseIndependentChatPermissions bool `json:"use_independent_chat_permissions,omitempty"`
}
SetChatPermissionsParams contains params for Telegram method "setChatPermissions".
type SetChatPhotoParams ¶
SetChatPhotoParams contains params for Telegram method "setChatPhoto".
type SetChatStickerSetParams ¶
type SetChatStickerSetParams struct {
ChatID any `json:"chat_id"`
StickerSetName string `json:"sticker_set_name"`
}
SetChatStickerSetParams contains params for Telegram method "setChatStickerSet".
type SetChatTitleParams ¶
SetChatTitleParams contains params for Telegram method "setChatTitle".
type SetCustomEmojiStickerSetThumbnailParams ¶
type SetCustomEmojiStickerSetThumbnailParams struct {
Name string `json:"name"`
CustomEmojiID string `json:"custom_emoji_id,omitempty"`
}
SetCustomEmojiStickerSetThumbnailParams contains params for Telegram method "setCustomEmojiStickerSetThumbnail".
type SetGameScoreParams ¶
type SetGameScoreParams struct {
UserID int64 `json:"user_id"`
Score int64 `json:"score"`
Force bool `json:"force,omitempty"`
DisableEditMessage bool `json:"disable_edit_message,omitempty"`
ChatID int64 `json:"chat_id,omitempty"`
MessageID int64 `json:"message_id,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
}
SetGameScoreParams contains params for Telegram method "setGameScore".
type SetMessageReactionParams ¶
type SetMessageReactionParams struct {
ChatID any `json:"chat_id"`
MessageID int64 `json:"message_id"`
Reaction []ReactionType `json:"reaction,omitempty"`
IsBig bool `json:"is_big,omitempty"`
}
SetMessageReactionParams contains params for Telegram method "setMessageReaction".
type SetMyCommandsParams ¶
type SetMyCommandsParams struct {
Commands []BotCommand `json:"commands"`
Scope BotCommandScope `json:"scope,omitempty"`
LanguageCode string `json:"language_code,omitempty"`
}
SetMyCommandsParams contains params for Telegram method "setMyCommands".
type SetMyDefaultAdministratorRightsParams ¶
type SetMyDefaultAdministratorRightsParams struct {
Rights ChatAdministratorRights `json:"rights,omitempty"`
ForChannels bool `json:"for_channels,omitempty"`
}
SetMyDefaultAdministratorRightsParams contains params for Telegram method "setMyDefaultAdministratorRights".
type SetMyDescriptionParams ¶
type SetMyDescriptionParams struct {
Description string `json:"description,omitempty"`
LanguageCode string `json:"language_code,omitempty"`
}
SetMyDescriptionParams contains params for Telegram method "setMyDescription".
type SetMyNameParams ¶
type SetMyNameParams struct {
Name string `json:"name,omitempty"`
LanguageCode string `json:"language_code,omitempty"`
}
SetMyNameParams contains params for Telegram method "setMyName".
type SetMyProfilePhotoParams ¶
type SetMyProfilePhotoParams struct {
Photo InputProfilePhoto `json:"photo"`
}
SetMyProfilePhotoParams contains params for Telegram method "setMyProfilePhoto".
type SetMyShortDescriptionParams ¶
type SetMyShortDescriptionParams struct {
ShortDescription string `json:"short_description,omitempty"`
LanguageCode string `json:"language_code,omitempty"`
}
SetMyShortDescriptionParams contains params for Telegram method "setMyShortDescription".
type SetPassportDataErrorsParams ¶
type SetPassportDataErrorsParams struct {
UserID int64 `json:"user_id"`
Errors []PassportElementError `json:"errors"`
}
SetPassportDataErrorsParams contains params for Telegram method "setPassportDataErrors".
type SetStickerEmojiListParams ¶
type SetStickerEmojiListParams struct {
Sticker string `json:"sticker"`
EmojiList []string `json:"emoji_list"`
}
SetStickerEmojiListParams contains params for Telegram method "setStickerEmojiList".
type SetStickerKeywordsParams ¶
type SetStickerKeywordsParams struct {
Sticker string `json:"sticker"`
Keywords []string `json:"keywords,omitempty"`
}
SetStickerKeywordsParams contains params for Telegram method "setStickerKeywords".
type SetStickerMaskPositionParams ¶
type SetStickerMaskPositionParams struct {
Sticker string `json:"sticker"`
MaskPosition MaskPosition `json:"mask_position,omitempty"`
}
SetStickerMaskPositionParams contains params for Telegram method "setStickerMaskPosition".
type SetStickerPositionInSetParams ¶
type SetStickerPositionInSetParams struct {
Sticker string `json:"sticker"`
Position int64 `json:"position"`
}
SetStickerPositionInSetParams contains params for Telegram method "setStickerPositionInSet".
type SetStickerSetThumbnailParams ¶
type SetStickerSetThumbnailParams struct {
Name string `json:"name"`
UserID int64 `json:"user_id"`
Thumbnail any `json:"thumbnail,omitempty"`
Format string `json:"format"`
}
SetStickerSetThumbnailParams contains params for Telegram method "setStickerSetThumbnail".
type SetStickerSetTitleParams ¶
SetStickerSetTitleParams contains params for Telegram method "setStickerSetTitle".
type SetUserEmojiStatusParams ¶
type SetUserEmojiStatusParams struct {
UserID int64 `json:"user_id"`
EmojiStatusCustomEmojiID string `json:"emoji_status_custom_emoji_id,omitempty"`
EmojiStatusExpirationDate int64 `json:"emoji_status_expiration_date,omitempty"`
}
SetUserEmojiStatusParams contains params for Telegram method "setUserEmojiStatus".
type SetWebhookParams ¶
type SetWebhookParams struct {
URL string `json:"url"`
Certificate InputFile `json:"certificate,omitempty"`
IPAddress string `json:"ip_address,omitempty"`
MaxConnections int64 `json:"max_connections,omitempty"`
AllowedUpdates []string `json:"allowed_updates,omitempty"`
DropPendingUpdates bool `json:"drop_pending_updates,omitempty"`
SecretToken string `json:"secret_token,omitempty"`
}
SetWebhookParams contains params for Telegram method "setWebhook".
type ShippingAddress ¶
type ShippingAddress struct {
CountryCode string `json:"country_code"`
State string `json:"state"`
City string `json:"city"`
StreetLine1 string `json:"street_line1"`
StreetLine2 string `json:"street_line2"`
PostCode string `json:"post_code"`
}
ShippingAddress maps to Telegram Bot API type "ShippingAddress".
type ShippingOption ¶
type ShippingOption struct {
ID string `json:"id"`
Title string `json:"title"`
Prices []LabeledPrice `json:"prices"`
}
ShippingOption maps to Telegram Bot API type "ShippingOption".
type ShippingQuery ¶
type ShippingQuery struct {
ID string `json:"id"`
From *User `json:"from"`
InvoicePayload string `json:"invoice_payload"`
ShippingAddress *ShippingAddress `json:"shipping_address"`
}
ShippingQuery maps to Telegram Bot API type "ShippingQuery".
type StarAmount ¶
type StarAmount struct {
Amount int64 `json:"amount"`
NanostarAmount int64 `json:"nanostar_amount"`
}
StarAmount maps to Telegram Bot API type "StarAmount".
type StarTransaction ¶
type StarTransaction struct {
ID string `json:"id"`
Amount int64 `json:"amount"`
NanostarAmount int64 `json:"nanostar_amount"`
Date int64 `json:"date"`
Source TransactionPartner `json:"source"`
Receiver TransactionPartner `json:"receiver"`
}
StarTransaction maps to Telegram Bot API type "StarTransaction".
func (*StarTransaction) UnmarshalJSON ¶
func (value *StarTransaction) UnmarshalJSON(data []byte) error
type StarTransactions ¶
type StarTransactions struct {
Transactions []StarTransaction `json:"transactions"`
}
StarTransactions maps to Telegram Bot API type "StarTransactions".
type Sticker ¶
type Sticker struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
Type string `json:"type"`
Width int64 `json:"width"`
Height int64 `json:"height"`
IsAnimated bool `json:"is_animated"`
IsVideo bool `json:"is_video"`
Thumbnail *PhotoSize `json:"thumbnail"`
Emoji string `json:"emoji"`
SetName string `json:"set_name"`
PremiumAnimation *File `json:"premium_animation"`
MaskPosition *MaskPosition `json:"mask_position"`
CustomEmojiID string `json:"custom_emoji_id"`
NeedsRepainting bool `json:"needs_repainting"`
FileSize int64 `json:"file_size"`
}
Sticker maps to Telegram Bot API type "Sticker".
type StickerSet ¶
type StickerSet struct {
Name string `json:"name"`
Title string `json:"title"`
StickerType string `json:"sticker_type"`
Stickers []Sticker `json:"stickers"`
Thumbnail *PhotoSize `json:"thumbnail"`
}
StickerSet maps to Telegram Bot API type "StickerSet".
type StopMessageLiveLocationParams ¶
type StopMessageLiveLocationParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id,omitempty"`
MessageID int64 `json:"message_id,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
StopMessageLiveLocationParams contains params for Telegram method "stopMessageLiveLocation".
type StopPollParams ¶
type StopPollParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageID int64 `json:"message_id"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
StopPollParams contains params for Telegram method "stopPoll".
type StoryArea ¶
type StoryArea struct {
Position *StoryAreaPosition `json:"position"`
Type StoryAreaType `json:"type"`
}
StoryArea maps to Telegram Bot API type "StoryArea".
func (*StoryArea) UnmarshalJSON ¶
type StoryAreaPosition ¶
type StoryAreaPosition struct {
XPercentage float64 `json:"x_percentage"`
YPercentage float64 `json:"y_percentage"`
WidthPercentage float64 `json:"width_percentage"`
HeightPercentage float64 `json:"height_percentage"`
RotationAngle float64 `json:"rotation_angle"`
CornerRadiusPercentage float64 `json:"corner_radius_percentage"`
}
StoryAreaPosition maps to Telegram Bot API type "StoryAreaPosition".
type StoryAreaType ¶
type StoryAreaType interface {
// contains filtered or unexported methods
}
StoryAreaType is a union type in Telegram Bot API.
type StoryAreaTypeLink ¶
StoryAreaTypeLink maps to Telegram Bot API type "StoryAreaTypeLink".
type StoryAreaTypeLocation ¶
type StoryAreaTypeLocation struct {
Type string `json:"type"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Address *LocationAddress `json:"address"`
}
StoryAreaTypeLocation maps to Telegram Bot API type "StoryAreaTypeLocation".
type StoryAreaTypeSuggestedReaction ¶
type StoryAreaTypeSuggestedReaction struct {
Type string `json:"type"`
ReactionType ReactionType `json:"reaction_type"`
IsDark bool `json:"is_dark"`
IsFlipped bool `json:"is_flipped"`
}
StoryAreaTypeSuggestedReaction maps to Telegram Bot API type "StoryAreaTypeSuggestedReaction".
func (*StoryAreaTypeSuggestedReaction) UnmarshalJSON ¶
func (value *StoryAreaTypeSuggestedReaction) UnmarshalJSON(data []byte) error
type StoryAreaTypeUniqueGift ¶
StoryAreaTypeUniqueGift maps to Telegram Bot API type "StoryAreaTypeUniqueGift".
type StoryAreaTypeWeather ¶
type StoryAreaTypeWeather struct {
Type string `json:"type"`
Temperature float64 `json:"temperature"`
Emoji string `json:"emoji"`
BackgroundColor int64 `json:"background_color"`
}
StoryAreaTypeWeather maps to Telegram Bot API type "StoryAreaTypeWeather".
type SuccessfulPayment ¶
type SuccessfulPayment struct {
Currency string `json:"currency"`
TotalAmount int64 `json:"total_amount"`
InvoicePayload string `json:"invoice_payload"`
SubscriptionExpirationDate int64 `json:"subscription_expiration_date"`
IsRecurring bool `json:"is_recurring"`
IsFirstRecurring bool `json:"is_first_recurring"`
ShippingOptionID string `json:"shipping_option_id"`
OrderInfo *OrderInfo `json:"order_info"`
TelegramPaymentChargeID string `json:"telegram_payment_charge_id"`
ProviderPaymentChargeID string `json:"provider_payment_charge_id"`
}
SuccessfulPayment maps to Telegram Bot API type "SuccessfulPayment".
type SuggestedPostApprovalFailed ¶
type SuggestedPostApprovalFailed struct {
SuggestedPostMessage *Message `json:"suggested_post_message"`
Price *SuggestedPostPrice `json:"price"`
}
SuggestedPostApprovalFailed maps to Telegram Bot API type "SuggestedPostApprovalFailed".
type SuggestedPostApproved ¶
type SuggestedPostApproved struct {
SuggestedPostMessage *Message `json:"suggested_post_message"`
Price *SuggestedPostPrice `json:"price"`
SendDate int64 `json:"send_date"`
}
SuggestedPostApproved maps to Telegram Bot API type "SuggestedPostApproved".
type SuggestedPostDeclined ¶
type SuggestedPostDeclined struct {
SuggestedPostMessage *Message `json:"suggested_post_message"`
Comment string `json:"comment"`
}
SuggestedPostDeclined maps to Telegram Bot API type "SuggestedPostDeclined".
type SuggestedPostInfo ¶
type SuggestedPostInfo struct {
State string `json:"state"`
Price *SuggestedPostPrice `json:"price"`
SendDate int64 `json:"send_date"`
}
SuggestedPostInfo maps to Telegram Bot API type "SuggestedPostInfo".
type SuggestedPostPaid ¶
type SuggestedPostPaid struct {
SuggestedPostMessage *Message `json:"suggested_post_message"`
Currency string `json:"currency"`
Amount int64 `json:"amount"`
StarAmount *StarAmount `json:"star_amount"`
}
SuggestedPostPaid maps to Telegram Bot API type "SuggestedPostPaid".
type SuggestedPostParameters ¶
type SuggestedPostParameters struct {
Price *SuggestedPostPrice `json:"price"`
SendDate int64 `json:"send_date"`
}
SuggestedPostParameters maps to Telegram Bot API type "SuggestedPostParameters".
type SuggestedPostPrice ¶
SuggestedPostPrice maps to Telegram Bot API type "SuggestedPostPrice".
type SuggestedPostRefunded ¶
type SuggestedPostRefunded struct {
SuggestedPostMessage *Message `json:"suggested_post_message"`
Reason string `json:"reason"`
}
SuggestedPostRefunded maps to Telegram Bot API type "SuggestedPostRefunded".
type SwitchInlineQueryChosenChat ¶
type SwitchInlineQueryChosenChat struct {
Query string `json:"query"`
AllowUserChats bool `json:"allow_user_chats"`
AllowBotChats bool `json:"allow_bot_chats"`
AllowGroupChats bool `json:"allow_group_chats"`
AllowChannelChats bool `json:"allow_channel_chats"`
}
SwitchInlineQueryChosenChat maps to Telegram Bot API type "SwitchInlineQueryChosenChat".
type TextQuote ¶
type TextQuote struct {
Text string `json:"text"`
Entities []MessageEntity `json:"entities"`
Position int64 `json:"position"`
IsManual bool `json:"is_manual"`
}
TextQuote maps to Telegram Bot API type "TextQuote".
type TransactionPartner ¶
type TransactionPartner interface {
// contains filtered or unexported methods
}
TransactionPartner is a union type in Telegram Bot API.
type TransactionPartnerAffiliateProgram ¶
type TransactionPartnerAffiliateProgram struct {
Type string `json:"type"`
SponsorUser *User `json:"sponsor_user"`
CommissionPerMille int64 `json:"commission_per_mille"`
}
TransactionPartnerAffiliateProgram maps to Telegram Bot API type "TransactionPartnerAffiliateProgram".
type TransactionPartnerChat ¶
type TransactionPartnerChat struct {
Type string `json:"type"`
Chat *Chat `json:"chat"`
Gift *Gift `json:"gift"`
}
TransactionPartnerChat maps to Telegram Bot API type "TransactionPartnerChat".
type TransactionPartnerFragment ¶
type TransactionPartnerFragment struct {
Type string `json:"type"`
WithdrawalState RevenueWithdrawalState `json:"withdrawal_state"`
}
TransactionPartnerFragment maps to Telegram Bot API type "TransactionPartnerFragment".
func (*TransactionPartnerFragment) UnmarshalJSON ¶
func (value *TransactionPartnerFragment) UnmarshalJSON(data []byte) error
type TransactionPartnerOther ¶
type TransactionPartnerOther struct {
Type string `json:"type"`
}
TransactionPartnerOther maps to Telegram Bot API type "TransactionPartnerOther".
type TransactionPartnerTelegramAds ¶
type TransactionPartnerTelegramAds struct {
Type string `json:"type"`
}
TransactionPartnerTelegramAds maps to Telegram Bot API type "TransactionPartnerTelegramAds".
type TransactionPartnerTelegramApi ¶
type TransactionPartnerTelegramApi struct {
Type string `json:"type"`
RequestCount int64 `json:"request_count"`
}
TransactionPartnerTelegramApi maps to Telegram Bot API type "TransactionPartnerTelegramApi".
type TransactionPartnerUser ¶
type TransactionPartnerUser struct {
Type string `json:"type"`
TransactionType string `json:"transaction_type"`
User *User `json:"user"`
Affiliate *AffiliateInfo `json:"affiliate"`
InvoicePayload string `json:"invoice_payload"`
SubscriptionPeriod int64 `json:"subscription_period"`
PaidMedia []PaidMedia `json:"paid_media"`
PaidMediaPayload string `json:"paid_media_payload"`
Gift *Gift `json:"gift"`
PremiumSubscriptionDuration int64 `json:"premium_subscription_duration"`
}
TransactionPartnerUser maps to Telegram Bot API type "TransactionPartnerUser".
func (*TransactionPartnerUser) UnmarshalJSON ¶
func (value *TransactionPartnerUser) UnmarshalJSON(data []byte) error
type TransferBusinessAccountStarsParams ¶
type TransferBusinessAccountStarsParams struct {
BusinessConnectionID string `json:"business_connection_id"`
StarCount int64 `json:"star_count"`
}
TransferBusinessAccountStarsParams contains params for Telegram method "transferBusinessAccountStars".
type TransferGiftParams ¶
type TransferGiftParams struct {
BusinessConnectionID string `json:"business_connection_id"`
OwnedGiftID string `json:"owned_gift_id"`
NewOwnerChatID int64 `json:"new_owner_chat_id"`
StarCount int64 `json:"star_count,omitempty"`
}
TransferGiftParams contains params for Telegram method "transferGift".
type UnbanChatMemberParams ¶
type UnbanChatMemberParams struct {
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
OnlyIfBanned bool `json:"only_if_banned,omitempty"`
}
UnbanChatMemberParams contains params for Telegram method "unbanChatMember".
type UnbanChatSenderChatParams ¶
type UnbanChatSenderChatParams struct {
ChatID any `json:"chat_id"`
SenderChatID int64 `json:"sender_chat_id"`
}
UnbanChatSenderChatParams contains params for Telegram method "unbanChatSenderChat".
type UnhideGeneralForumTopicParams ¶
type UnhideGeneralForumTopicParams struct {
ChatID any `json:"chat_id"`
}
UnhideGeneralForumTopicParams contains params for Telegram method "unhideGeneralForumTopic".
type UniqueGift ¶
type UniqueGift struct {
GiftID string `json:"gift_id"`
BaseName string `json:"base_name"`
Name string `json:"name"`
Number int64 `json:"number"`
Model *UniqueGiftModel `json:"model"`
Symbol *UniqueGiftSymbol `json:"symbol"`
Backdrop *UniqueGiftBackdrop `json:"backdrop"`
IsPremium bool `json:"is_premium"`
IsBurned bool `json:"is_burned"`
IsFromBlockchain bool `json:"is_from_blockchain"`
Colors *UniqueGiftColors `json:"colors"`
PublisherChat *Chat `json:"publisher_chat"`
}
UniqueGift maps to Telegram Bot API type "UniqueGift".
type UniqueGiftBackdrop ¶
type UniqueGiftBackdrop struct {
Name string `json:"name"`
Colors *UniqueGiftBackdropColors `json:"colors"`
RarityPerMille int64 `json:"rarity_per_mille"`
}
UniqueGiftBackdrop maps to Telegram Bot API type "UniqueGiftBackdrop".
type UniqueGiftBackdropColors ¶
type UniqueGiftBackdropColors struct {
CenterColor int64 `json:"center_color"`
EdgeColor int64 `json:"edge_color"`
SymbolColor int64 `json:"symbol_color"`
TextColor int64 `json:"text_color"`
}
UniqueGiftBackdropColors maps to Telegram Bot API type "UniqueGiftBackdropColors".
type UniqueGiftColors ¶
type UniqueGiftColors struct {
ModelCustomEmojiID string `json:"model_custom_emoji_id"`
SymbolCustomEmojiID string `json:"symbol_custom_emoji_id"`
LightThemeMainColor int64 `json:"light_theme_main_color"`
LightThemeOtherColors []int64 `json:"light_theme_other_colors"`
DarkThemeMainColor int64 `json:"dark_theme_main_color"`
DarkThemeOtherColors []int64 `json:"dark_theme_other_colors"`
}
UniqueGiftColors maps to Telegram Bot API type "UniqueGiftColors".
type UniqueGiftInfo ¶
type UniqueGiftInfo struct {
Gift *UniqueGift `json:"gift"`
Origin string `json:"origin"`
LastResaleCurrency string `json:"last_resale_currency"`
LastResaleAmount int64 `json:"last_resale_amount"`
OwnedGiftID string `json:"owned_gift_id"`
TransferStarCount int64 `json:"transfer_star_count"`
NextTransferDate int64 `json:"next_transfer_date"`
}
UniqueGiftInfo maps to Telegram Bot API type "UniqueGiftInfo".
type UniqueGiftModel ¶
type UniqueGiftModel struct {
Name string `json:"name"`
Sticker *Sticker `json:"sticker"`
RarityPerMille int64 `json:"rarity_per_mille"`
Rarity string `json:"rarity"`
}
UniqueGiftModel maps to Telegram Bot API type "UniqueGiftModel".
type UniqueGiftSymbol ¶
type UniqueGiftSymbol struct {
Name string `json:"name"`
Sticker *Sticker `json:"sticker"`
RarityPerMille int64 `json:"rarity_per_mille"`
}
UniqueGiftSymbol maps to Telegram Bot API type "UniqueGiftSymbol".
type UnpinAllChatMessagesParams ¶
type UnpinAllChatMessagesParams struct {
ChatID any `json:"chat_id"`
}
UnpinAllChatMessagesParams contains params for Telegram method "unpinAllChatMessages".
type UnpinAllForumTopicMessagesParams ¶
type UnpinAllForumTopicMessagesParams struct {
ChatID any `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id"`
}
UnpinAllForumTopicMessagesParams contains params for Telegram method "unpinAllForumTopicMessages".
type UnpinAllGeneralForumTopicMessagesParams ¶
type UnpinAllGeneralForumTopicMessagesParams struct {
ChatID any `json:"chat_id"`
}
UnpinAllGeneralForumTopicMessagesParams contains params for Telegram method "unpinAllGeneralForumTopicMessages".
type UnpinChatMessageParams ¶
type UnpinChatMessageParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID any `json:"chat_id"`
MessageID int64 `json:"message_id,omitempty"`
}
UnpinChatMessageParams contains params for Telegram method "unpinChatMessage".
type Update ¶
type Update struct {
UpdateID int64 `json:"update_id"`
Message *Message `json:"message"`
EditedMessage *Message `json:"edited_message"`
ChannelPost *Message `json:"channel_post"`
EditedChannelPost *Message `json:"edited_channel_post"`
BusinessConnection *BusinessConnection `json:"business_connection"`
BusinessMessage *Message `json:"business_message"`
EditedBusinessMessage *Message `json:"edited_business_message"`
DeletedBusinessMessages *BusinessMessagesDeleted `json:"deleted_business_messages"`
MessageReaction *MessageReactionUpdated `json:"message_reaction"`
MessageReactionCount *MessageReactionCountUpdated `json:"message_reaction_count"`
InlineQuery *InlineQuery `json:"inline_query"`
ChosenInlineResult *ChosenInlineResult `json:"chosen_inline_result"`
CallbackQuery *CallbackQuery `json:"callback_query"`
ShippingQuery *ShippingQuery `json:"shipping_query"`
PreCheckoutQuery *PreCheckoutQuery `json:"pre_checkout_query"`
PurchasedPaidMedia *PaidMediaPurchased `json:"purchased_paid_media"`
Poll *Poll `json:"poll"`
PollAnswer *PollAnswer `json:"poll_answer"`
MyChatMember *ChatMemberUpdated `json:"my_chat_member"`
ChatMember *ChatMemberUpdated `json:"chat_member"`
ChatJoinRequest *ChatJoinRequest `json:"chat_join_request"`
ChatBoost *ChatBoostUpdated `json:"chat_boost"`
RemovedChatBoost *ChatBoostRemoved `json:"removed_chat_boost"`
}
Update maps to Telegram Bot API type "Update".
func (*Update) EffectiveMessage ¶
EffectiveMessage returns the first message-like payload for convenience helpers.
func (*Update) Type ¶
func (update *Update) Type() UpdateType
Type returns the concrete update type.
type UpdateDispatchError ¶
type UpdateDispatchError struct {
UpdateID int64
UpdateType UpdateType
Target string
SubscriberID uint64
}
UpdateDispatchError reports that a non-blocking poller dropped an update.
func (*UpdateDispatchError) Error ¶
func (err *UpdateDispatchError) Error() string
type UpdateFilter ¶
UpdateFilter matches updates for subscription fan-out.
type UpdatePoller ¶
type UpdatePoller struct {
// contains filtered or unexported fields
}
UpdatePoller runs getUpdates in the background and fans updates out to channels.
func NewUpdatePoller ¶
func NewUpdatePoller(bot *Bot, opts ...UpdatePollerOption) (*UpdatePoller, error)
NewUpdatePoller creates a long-polling helper on top of Bot.GetUpdates.
func (*UpdatePoller) Done ¶
func (poller *UpdatePoller) Done() <-chan struct{}
Done is closed when the poller exits.
func (*UpdatePoller) Errors ¶
func (poller *UpdatePoller) Errors() <-chan error
Errors returns polling errors. Errors are dropped when the channel buffer is full.
func (*UpdatePoller) Start ¶
func (poller *UpdatePoller) Start(ctx context.Context)
Start launches the background polling goroutine. Calling Start more than once is a no-op.
func (*UpdatePoller) Stop ¶
func (poller *UpdatePoller) Stop()
Stop cancels the background poller and waits for shutdown.
func (*UpdatePoller) Subscribe ¶
func (poller *UpdatePoller) Subscribe(buffer int, filter UpdateFilter) <-chan Update
Subscribe registers a filtered update channel.
func (*UpdatePoller) SubscribeHandle ¶
func (poller *UpdatePoller) SubscribeHandle(buffer int, filter UpdateFilter) *UpdateSubscription
SubscribeHandle registers a filtered update subscription with Unsubscribe support.
func (*UpdatePoller) SubscribeTypes ¶
func (poller *UpdatePoller) SubscribeTypes(buffer int, updateTypes ...UpdateType) <-chan Update
SubscribeTypes registers a channel that receives only the requested update types.
func (*UpdatePoller) SubscribeTypesHandle ¶
func (poller *UpdatePoller) SubscribeTypesHandle(buffer int, updateTypes ...UpdateType) *UpdateSubscription
SubscribeTypesHandle registers a typed update subscription with Unsubscribe support.
func (*UpdatePoller) Updates ¶
func (poller *UpdatePoller) Updates() <-chan Update
Updates returns the fan-out channel containing every update.
type UpdatePollerOption ¶
type UpdatePollerOption func(*UpdatePoller)
UpdatePollerOption configures an UpdatePoller.
func WithPollerAllowedUpdates ¶
func WithPollerAllowedUpdates(updateTypes ...UpdateType) UpdatePollerOption
WithPollerAllowedUpdates sets allowed_updates using typed update names.
func WithPollerBuffer ¶
func WithPollerBuffer(size int) UpdatePollerOption
WithPollerBuffer sets the buffer size for the all-updates channel.
func WithPollerErrorBuffer ¶
func WithPollerErrorBuffer(size int) UpdatePollerOption
WithPollerErrorBuffer sets the buffer size for the error channel.
func WithPollerNonBlockingDispatch ¶
func WithPollerNonBlockingDispatch() UpdatePollerOption
WithPollerNonBlockingDispatch enables non-blocking fan-out. Slow consumers drop updates instead of blocking the poller.
func WithPollerParams ¶
func WithPollerParams(params GetUpdatesParams) UpdatePollerOption
WithPollerParams overrides the base getUpdates parameters used by the poller.
func WithPollerRetryDelay ¶
func WithPollerRetryDelay(delay time.Duration) UpdatePollerOption
WithPollerRetryDelay sets the delay before retrying after getUpdates errors.
type UpdateSubscription ¶
type UpdateSubscription struct {
// contains filtered or unexported fields
}
UpdateSubscription is a cancellable subscription to poller updates.
func (*UpdateSubscription) ID ¶
func (subscription *UpdateSubscription) ID() uint64
ID returns the internal subscription identifier.
func (*UpdateSubscription) Unsubscribe ¶
func (subscription *UpdateSubscription) Unsubscribe()
Unsubscribe removes the subscription and closes its channel.
func (*UpdateSubscription) Updates ¶
func (subscription *UpdateSubscription) Updates() <-chan Update
Updates returns the subscription channel.
type UpdateType ¶
type UpdateType string
UpdateType is a discriminator for Telegram update payloads.
const ( UpdateTypeUnknown UpdateType = "" UpdateTypeMessage UpdateType = "message" UpdateTypeEditedMessage UpdateType = "edited_message" UpdateTypeChannelPost UpdateType = "channel_post" UpdateTypeEditedChannelPost UpdateType = "edited_channel_post" UpdateTypeBusinessConnection UpdateType = "business_connection" UpdateTypeBusinessMessage UpdateType = "business_message" UpdateTypeEditedBusinessMessage UpdateType = "edited_business_message" UpdateTypeDeletedBusinessMessages UpdateType = "deleted_business_messages" UpdateTypeMessageReaction UpdateType = "message_reaction" UpdateTypeMessageReactionCount UpdateType = "message_reaction_count" UpdateTypeInlineQuery UpdateType = "inline_query" UpdateTypeChosenInlineResult UpdateType = "chosen_inline_result" UpdateTypeCallbackQuery UpdateType = "callback_query" UpdateTypeShippingQuery UpdateType = "shipping_query" UpdateTypePreCheckoutQuery UpdateType = "pre_checkout_query" UpdateTypePurchasedPaidMedia UpdateType = "purchased_paid_media" UpdateTypePoll UpdateType = "poll" UpdateTypePollAnswer UpdateType = "poll_answer" UpdateTypeMyChatMember UpdateType = "my_chat_member" UpdateTypeChatMember UpdateType = "chat_member" UpdateTypeChatJoinRequest UpdateType = "chat_join_request" UpdateTypeChatBoost UpdateType = "chat_boost" UpdateTypeRemovedChatBoost UpdateType = "removed_chat_boost" )
type UpgradeGiftParams ¶
type UpgradeGiftParams struct {
BusinessConnectionID string `json:"business_connection_id"`
OwnedGiftID string `json:"owned_gift_id"`
KeepOriginalDetails bool `json:"keep_original_details,omitempty"`
StarCount int64 `json:"star_count,omitempty"`
}
UpgradeGiftParams contains params for Telegram method "upgradeGift".
type UploadStickerFileParams ¶
type UploadStickerFileParams struct {
UserID int64 `json:"user_id"`
Sticker InputFile `json:"sticker"`
StickerFormat string `json:"sticker_format"`
}
UploadStickerFileParams contains params for Telegram method "uploadStickerFile".
type User ¶
type User struct {
ID int64 `json:"id"`
IsBot bool `json:"is_bot"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Username string `json:"username"`
LanguageCode string `json:"language_code"`
IsPremium bool `json:"is_premium"`
AddedToAttachmentMenu bool `json:"added_to_attachment_menu"`
CanJoinGroups bool `json:"can_join_groups"`
CanReadAllGroupMessages bool `json:"can_read_all_group_messages"`
SupportsInlineQueries bool `json:"supports_inline_queries"`
CanConnectToBusiness bool `json:"can_connect_to_business"`
HasMainWebApp bool `json:"has_main_web_app"`
HasTopicsEnabled bool `json:"has_topics_enabled"`
AllowsUsersToCreateTopics bool `json:"allows_users_to_create_topics"`
}
User maps to Telegram Bot API type "User".
type UserChatBoosts ¶
type UserChatBoosts struct {
Boosts []ChatBoost `json:"boosts"`
}
UserChatBoosts maps to Telegram Bot API type "UserChatBoosts".
type UserProfileAudios ¶
type UserProfileAudios struct {
TotalCount int64 `json:"total_count"`
Audios []Audio `json:"audios"`
}
UserProfileAudios maps to Telegram Bot API type "UserProfileAudios".
type UserProfilePhotos ¶
type UserProfilePhotos struct {
TotalCount int64 `json:"total_count"`
Photos [][]PhotoSize `json:"photos"`
}
UserProfilePhotos maps to Telegram Bot API type "UserProfilePhotos".
type UserRating ¶
type UserRating struct {
Level int64 `json:"level"`
Rating int64 `json:"rating"`
CurrentLevelRating int64 `json:"current_level_rating"`
NextLevelRating int64 `json:"next_level_rating"`
}
UserRating maps to Telegram Bot API type "UserRating".
type UsersShared ¶
type UsersShared struct {
}
UsersShared maps to Telegram Bot API type "UsersShared".
type Venue ¶
type Venue struct {
Location *Location `json:"location"`
Title string `json:"title"`
Address string `json:"address"`
FoursquareID string `json:"foursquare_id"`
FoursquareType string `json:"foursquare_type"`
GooglePlaceID string `json:"google_place_id"`
GooglePlaceType string `json:"google_place_type"`
}
Venue maps to Telegram Bot API type "Venue".
type VerifyChatParams ¶
type VerifyChatParams struct {
ChatID any `json:"chat_id"`
CustomDescription string `json:"custom_description,omitempty"`
}
VerifyChatParams contains params for Telegram method "verifyChat".
type VerifyUserParams ¶
type VerifyUserParams struct {
UserID int64 `json:"user_id"`
CustomDescription string `json:"custom_description,omitempty"`
}
VerifyUserParams contains params for Telegram method "verifyUser".
type Video ¶
type Video struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
Width int64 `json:"width"`
Height int64 `json:"height"`
Duration int64 `json:"duration"`
Thumbnail *PhotoSize `json:"thumbnail"`
Cover []PhotoSize `json:"cover"`
StartTimestamp int64 `json:"start_timestamp"`
Qualities []VideoQuality `json:"qualities"`
FileName string `json:"file_name"`
MimeType string `json:"mime_type"`
FileSize int64 `json:"file_size"`
}
Video maps to Telegram Bot API type "Video".
type VideoChatEnded ¶
type VideoChatEnded struct {
Duration int64 `json:"duration"`
}
VideoChatEnded maps to Telegram Bot API type "VideoChatEnded".
type VideoChatParticipantsInvited ¶
type VideoChatParticipantsInvited struct {
Users []User `json:"users"`
}
VideoChatParticipantsInvited maps to Telegram Bot API type "VideoChatParticipantsInvited".
type VideoChatScheduled ¶
type VideoChatScheduled struct {
StartDate int64 `json:"start_date"`
}
VideoChatScheduled maps to Telegram Bot API type "VideoChatScheduled".
type VideoChatStarted ¶
type VideoChatStarted struct {
}
VideoChatStarted maps to Telegram Bot API type "VideoChatStarted".
type VideoNote ¶
type VideoNote struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
Length int64 `json:"length"`
Duration int64 `json:"duration"`
Thumbnail *PhotoSize `json:"thumbnail"`
FileSize int64 `json:"file_size"`
}
VideoNote maps to Telegram Bot API type "VideoNote".
type VideoQuality ¶
type VideoQuality struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
Width int64 `json:"width"`
Height int64 `json:"height"`
Codec string `json:"codec"`
FileSize int64 `json:"file_size"`
}
VideoQuality maps to Telegram Bot API type "VideoQuality".
type Voice ¶
type Voice struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
Duration int64 `json:"duration"`
MimeType string `json:"mime_type"`
FileSize int64 `json:"file_size"`
}
Voice maps to Telegram Bot API type "Voice".
type WebAppData ¶
WebAppData maps to Telegram Bot API type "WebAppData".
type WebAppInfo ¶
type WebAppInfo struct {
URL string `json:"url"`
}
WebAppInfo maps to Telegram Bot API type "WebAppInfo".
type WebhookInfo ¶
type WebhookInfo struct {
URL string `json:"url"`
HasCustomCertificate bool `json:"has_custom_certificate"`
PendingUpdateCount int64 `json:"pending_update_count"`
IPAddress string `json:"ip_address"`
LastErrorDate int64 `json:"last_error_date"`
LastErrorMessage string `json:"last_error_message"`
LastSynchronizationErrorDate int64 `json:"last_synchronization_error_date"`
MaxConnections int64 `json:"max_connections"`
AllowedUpdates []string `json:"allowed_updates"`
}
WebhookInfo maps to Telegram Bot API type "WebhookInfo".
type WriteAccessAllowed ¶
type WriteAccessAllowed struct {
FromRequest bool `json:"from_request"`
WebAppName string `json:"web_app_name"`
FromAttachmentMenu bool `json:"from_attachment_menu"`
}
WriteAccessAllowed maps to Telegram Bot API type "WriteAccessAllowed".
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
apigen
command
|
|
|
examples
|
|
|
async_updates
command
|
|
|
commands
command
|
|
|
ext_polling
command
|
|
|
quickstart
command
|
|
|
webhook
command
|
|