Documentation
¶
Index ¶
- type AddStickerToSet
- type AnswerCallbackQuery
- type AnswerInlineQuery
- func (entity *AnswerInlineQuery) Files() map[string]rawTypes.InputFile
- func (entity AnswerInlineQuery) MarshalJSON() ([]byte, error)
- func (AnswerInlineQuery) MethodName() string
- func (AnswerInlineQuery) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *AnswerInlineQuery) ProgressCallable() rawTypes.ProgressCallable
- type AnswerPreCheckoutQuery
- type AnswerShippingQuery
- type AnswerWebAppQuery
- type ApproveChatJoinRequest
- func (entity *ApproveChatJoinRequest) Files() map[string]rawTypes.InputFile
- func (entity ApproveChatJoinRequest) MarshalJSON() ([]byte, error)
- func (ApproveChatJoinRequest) MethodName() string
- func (ApproveChatJoinRequest) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *ApproveChatJoinRequest) ProgressCallable() rawTypes.ProgressCallable
- type ApproveSuggestedPost
- type BanChatMember
- func (entity *BanChatMember) Files() map[string]rawTypes.InputFile
- func (entity BanChatMember) MarshalJSON() ([]byte, error)
- func (BanChatMember) MethodName() string
- func (BanChatMember) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *BanChatMember) ProgressCallable() rawTypes.ProgressCallable
- type BanChatSenderChat
- func (entity *BanChatSenderChat) Files() map[string]rawTypes.InputFile
- func (entity BanChatSenderChat) MarshalJSON() ([]byte, error)
- func (BanChatSenderChat) MethodName() string
- func (BanChatSenderChat) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *BanChatSenderChat) ProgressCallable() rawTypes.ProgressCallable
- type Close
- type CloseForumTopic
- func (entity *CloseForumTopic) Files() map[string]rawTypes.InputFile
- func (entity CloseForumTopic) MarshalJSON() ([]byte, error)
- func (CloseForumTopic) MethodName() string
- func (CloseForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *CloseForumTopic) ProgressCallable() rawTypes.ProgressCallable
- type CloseGeneralForumTopic
- func (entity *CloseGeneralForumTopic) Files() map[string]rawTypes.InputFile
- func (entity CloseGeneralForumTopic) MarshalJSON() ([]byte, error)
- func (CloseGeneralForumTopic) MethodName() string
- func (CloseGeneralForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *CloseGeneralForumTopic) ProgressCallable() rawTypes.ProgressCallable
- type ConvertGiftToStars
- type CopyMessage
- func (entity *CopyMessage) Files() map[string]rawTypes.InputFile
- func (entity CopyMessage) MarshalJSON() ([]byte, error)
- func (CopyMessage) MethodName() string
- func (CopyMessage) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *CopyMessage) ProgressCallable() rawTypes.ProgressCallable
- type CopyMessages
- func (entity *CopyMessages) Files() map[string]rawTypes.InputFile
- func (entity CopyMessages) MarshalJSON() ([]byte, error)
- func (CopyMessages) MethodName() string
- func (CopyMessages) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *CopyMessages) ProgressCallable() rawTypes.ProgressCallable
- type CreateChatInviteLink
- func (entity *CreateChatInviteLink) Files() map[string]rawTypes.InputFile
- func (entity CreateChatInviteLink) MarshalJSON() ([]byte, error)
- func (CreateChatInviteLink) MethodName() string
- func (CreateChatInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *CreateChatInviteLink) ProgressCallable() rawTypes.ProgressCallable
- type CreateChatSubscriptionInviteLink
- func (entity *CreateChatSubscriptionInviteLink) Files() map[string]rawTypes.InputFile
- func (entity CreateChatSubscriptionInviteLink) MarshalJSON() ([]byte, error)
- func (CreateChatSubscriptionInviteLink) MethodName() string
- func (CreateChatSubscriptionInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *CreateChatSubscriptionInviteLink) ProgressCallable() rawTypes.ProgressCallable
- type CreateForumTopic
- func (entity *CreateForumTopic) Files() map[string]rawTypes.InputFile
- func (entity CreateForumTopic) MarshalJSON() ([]byte, error)
- func (CreateForumTopic) MethodName() string
- func (CreateForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *CreateForumTopic) ProgressCallable() rawTypes.ProgressCallable
- type CreateInvoiceLink
- type CreateNewStickerSet
- type DeclineChatJoinRequest
- func (entity *DeclineChatJoinRequest) Files() map[string]rawTypes.InputFile
- func (entity DeclineChatJoinRequest) MarshalJSON() ([]byte, error)
- func (DeclineChatJoinRequest) MethodName() string
- func (DeclineChatJoinRequest) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *DeclineChatJoinRequest) ProgressCallable() rawTypes.ProgressCallable
- type DeclineSuggestedPost
- type DeleteBusinessMessages
- type DeleteChatPhoto
- func (entity *DeleteChatPhoto) Files() map[string]rawTypes.InputFile
- func (entity DeleteChatPhoto) MarshalJSON() ([]byte, error)
- func (DeleteChatPhoto) MethodName() string
- func (DeleteChatPhoto) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *DeleteChatPhoto) ProgressCallable() rawTypes.ProgressCallable
- type DeleteChatStickerSet
- func (entity *DeleteChatStickerSet) Files() map[string]rawTypes.InputFile
- func (entity DeleteChatStickerSet) MarshalJSON() ([]byte, error)
- func (DeleteChatStickerSet) MethodName() string
- func (DeleteChatStickerSet) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *DeleteChatStickerSet) ProgressCallable() rawTypes.ProgressCallable
- type DeleteForumTopic
- func (entity *DeleteForumTopic) Files() map[string]rawTypes.InputFile
- func (entity DeleteForumTopic) MarshalJSON() ([]byte, error)
- func (DeleteForumTopic) MethodName() string
- func (DeleteForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *DeleteForumTopic) ProgressCallable() rawTypes.ProgressCallable
- type DeleteMessage
- func (entity *DeleteMessage) Files() map[string]rawTypes.InputFile
- func (entity DeleteMessage) MarshalJSON() ([]byte, error)
- func (DeleteMessage) MethodName() string
- func (DeleteMessage) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *DeleteMessage) ProgressCallable() rawTypes.ProgressCallable
- type DeleteMessages
- func (entity *DeleteMessages) Files() map[string]rawTypes.InputFile
- func (entity DeleteMessages) MarshalJSON() ([]byte, error)
- func (DeleteMessages) MethodName() string
- func (DeleteMessages) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *DeleteMessages) ProgressCallable() rawTypes.ProgressCallable
- type DeleteMyCommands
- func (entity *DeleteMyCommands) Files() map[string]rawTypes.InputFile
- func (entity DeleteMyCommands) MarshalJSON() ([]byte, error)
- func (DeleteMyCommands) MethodName() string
- func (DeleteMyCommands) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *DeleteMyCommands) ProgressCallable() rawTypes.ProgressCallable
- type DeleteStickerFromSet
- type DeleteStickerSet
- type DeleteStory
- type DeleteWebhook
- type EditChatInviteLink
- func (entity *EditChatInviteLink) Files() map[string]rawTypes.InputFile
- func (entity EditChatInviteLink) MarshalJSON() ([]byte, error)
- func (EditChatInviteLink) MethodName() string
- func (EditChatInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *EditChatInviteLink) ProgressCallable() rawTypes.ProgressCallable
- type EditChatSubscriptionInviteLink
- func (entity *EditChatSubscriptionInviteLink) Files() map[string]rawTypes.InputFile
- func (entity EditChatSubscriptionInviteLink) MarshalJSON() ([]byte, error)
- func (EditChatSubscriptionInviteLink) MethodName() string
- func (EditChatSubscriptionInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *EditChatSubscriptionInviteLink) ProgressCallable() rawTypes.ProgressCallable
- type EditForumTopic
- func (entity *EditForumTopic) Files() map[string]rawTypes.InputFile
- func (entity EditForumTopic) MarshalJSON() ([]byte, error)
- func (EditForumTopic) MethodName() string
- func (EditForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *EditForumTopic) ProgressCallable() rawTypes.ProgressCallable
- type EditGeneralForumTopic
- func (entity *EditGeneralForumTopic) Files() map[string]rawTypes.InputFile
- func (entity EditGeneralForumTopic) MarshalJSON() ([]byte, error)
- func (EditGeneralForumTopic) MethodName() string
- func (EditGeneralForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *EditGeneralForumTopic) ProgressCallable() rawTypes.ProgressCallable
- type EditMessageCaption
- func (entity *EditMessageCaption) Files() map[string]rawTypes.InputFile
- func (entity EditMessageCaption) MarshalJSON() ([]byte, error)
- func (EditMessageCaption) MethodName() string
- func (EditMessageCaption) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *EditMessageCaption) ProgressCallable() rawTypes.ProgressCallable
- type EditMessageChecklist
- func (entity *EditMessageChecklist) Files() map[string]rawTypes.InputFile
- func (entity EditMessageChecklist) MarshalJSON() ([]byte, error)
- func (EditMessageChecklist) MethodName() string
- func (EditMessageChecklist) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *EditMessageChecklist) ProgressCallable() rawTypes.ProgressCallable
- type EditMessageLiveLocation
- func (entity *EditMessageLiveLocation) Files() map[string]rawTypes.InputFile
- func (entity EditMessageLiveLocation) MarshalJSON() ([]byte, error)
- func (EditMessageLiveLocation) MethodName() string
- func (EditMessageLiveLocation) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *EditMessageLiveLocation) ProgressCallable() rawTypes.ProgressCallable
- type EditMessageMedia
- func (entity *EditMessageMedia) Files() map[string]rawTypes.InputFile
- func (entity EditMessageMedia) MarshalJSON() ([]byte, error)
- func (EditMessageMedia) MethodName() string
- func (EditMessageMedia) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *EditMessageMedia) ProgressCallable() rawTypes.ProgressCallable
- type EditMessageReplyMarkup
- func (entity *EditMessageReplyMarkup) Files() map[string]rawTypes.InputFile
- func (entity EditMessageReplyMarkup) MarshalJSON() ([]byte, error)
- func (EditMessageReplyMarkup) MethodName() string
- func (EditMessageReplyMarkup) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *EditMessageReplyMarkup) ProgressCallable() rawTypes.ProgressCallable
- type EditMessageText
- func (entity *EditMessageText) Files() map[string]rawTypes.InputFile
- func (entity EditMessageText) MarshalJSON() ([]byte, error)
- func (EditMessageText) MethodName() string
- func (EditMessageText) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *EditMessageText) ProgressCallable() rawTypes.ProgressCallable
- type EditStory
- type EditUserStarSubscription
- func (entity *EditUserStarSubscription) Files() map[string]rawTypes.InputFile
- func (EditUserStarSubscription) MethodName() string
- func (EditUserStarSubscription) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *EditUserStarSubscription) ProgressCallable() rawTypes.ProgressCallable
- type ExportChatInviteLink
- func (entity *ExportChatInviteLink) Files() map[string]rawTypes.InputFile
- func (entity ExportChatInviteLink) MarshalJSON() ([]byte, error)
- func (ExportChatInviteLink) MethodName() string
- func (ExportChatInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *ExportChatInviteLink) ProgressCallable() rawTypes.ProgressCallable
- type ForwardMessage
- func (entity *ForwardMessage) Files() map[string]rawTypes.InputFile
- func (entity ForwardMessage) MarshalJSON() ([]byte, error)
- func (ForwardMessage) MethodName() string
- func (ForwardMessage) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *ForwardMessage) ProgressCallable() rawTypes.ProgressCallable
- type ForwardMessages
- func (entity *ForwardMessages) Files() map[string]rawTypes.InputFile
- func (entity ForwardMessages) MarshalJSON() ([]byte, error)
- func (ForwardMessages) MethodName() string
- func (ForwardMessages) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *ForwardMessages) ProgressCallable() rawTypes.ProgressCallable
- type GetAvailableGifts
- type GetBusinessAccountGifts
- type GetBusinessAccountStarBalance
- func (entity *GetBusinessAccountStarBalance) Files() map[string]rawTypes.InputFile
- func (GetBusinessAccountStarBalance) MethodName() string
- func (GetBusinessAccountStarBalance) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *GetBusinessAccountStarBalance) ProgressCallable() rawTypes.ProgressCallable
- type GetBusinessConnection
- type GetChat
- type GetChatAdministrators
- func (entity *GetChatAdministrators) Files() map[string]rawTypes.InputFile
- func (entity GetChatAdministrators) MarshalJSON() ([]byte, error)
- func (GetChatAdministrators) MethodName() string
- func (GetChatAdministrators) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *GetChatAdministrators) ProgressCallable() rawTypes.ProgressCallable
- type GetChatMember
- func (entity *GetChatMember) Files() map[string]rawTypes.InputFile
- func (entity GetChatMember) MarshalJSON() ([]byte, error)
- func (GetChatMember) MethodName() string
- func (GetChatMember) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *GetChatMember) ProgressCallable() rawTypes.ProgressCallable
- type GetChatMemberCount
- func (entity *GetChatMemberCount) Files() map[string]rawTypes.InputFile
- func (entity GetChatMemberCount) MarshalJSON() ([]byte, error)
- func (GetChatMemberCount) MethodName() string
- func (GetChatMemberCount) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *GetChatMemberCount) ProgressCallable() rawTypes.ProgressCallable
- type GetChatMenuButton
- type GetCustomEmojiStickers
- type GetFile
- type GetForumTopicIconStickers
- func (entity *GetForumTopicIconStickers) Files() map[string]rawTypes.InputFile
- func (GetForumTopicIconStickers) MethodName() string
- func (GetForumTopicIconStickers) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *GetForumTopicIconStickers) ProgressCallable() rawTypes.ProgressCallable
- type GetGameHighScores
- type GetMe
- type GetMyCommands
- func (entity *GetMyCommands) Files() map[string]rawTypes.InputFile
- func (entity GetMyCommands) MarshalJSON() ([]byte, error)
- func (GetMyCommands) MethodName() string
- func (GetMyCommands) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *GetMyCommands) ProgressCallable() rawTypes.ProgressCallable
- type GetMyDefaultAdministratorRights
- func (entity *GetMyDefaultAdministratorRights) Files() map[string]rawTypes.InputFile
- func (GetMyDefaultAdministratorRights) MethodName() string
- func (GetMyDefaultAdministratorRights) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *GetMyDefaultAdministratorRights) ProgressCallable() rawTypes.ProgressCallable
- type GetMyDescription
- type GetMyName
- type GetMyShortDescription
- type GetMyStarBalance
- type GetStarTransactions
- type GetStickerSet
- type GetUpdates
- type GetUserChatBoosts
- func (entity *GetUserChatBoosts) Files() map[string]rawTypes.InputFile
- func (entity GetUserChatBoosts) MarshalJSON() ([]byte, error)
- func (GetUserChatBoosts) MethodName() string
- func (GetUserChatBoosts) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *GetUserChatBoosts) ProgressCallable() rawTypes.ProgressCallable
- type GetUserProfilePhotos
- type GetWebhookInfo
- type GiftPremiumSubscription
- type HideGeneralForumTopic
- func (entity *HideGeneralForumTopic) Files() map[string]rawTypes.InputFile
- func (entity HideGeneralForumTopic) MarshalJSON() ([]byte, error)
- func (HideGeneralForumTopic) MethodName() string
- func (HideGeneralForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *HideGeneralForumTopic) ProgressCallable() rawTypes.ProgressCallable
- type LeaveChat
- type LogOut
- type PinChatMessage
- func (entity *PinChatMessage) Files() map[string]rawTypes.InputFile
- func (entity PinChatMessage) MarshalJSON() ([]byte, error)
- func (PinChatMessage) MethodName() string
- func (PinChatMessage) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *PinChatMessage) ProgressCallable() rawTypes.ProgressCallable
- type PostStory
- type PromoteChatMember
- func (entity *PromoteChatMember) Files() map[string]rawTypes.InputFile
- func (entity PromoteChatMember) MarshalJSON() ([]byte, error)
- func (PromoteChatMember) MethodName() string
- func (PromoteChatMember) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *PromoteChatMember) ProgressCallable() rawTypes.ProgressCallable
- type ReadBusinessMessage
- type RefundStarPayment
- type RemoveBusinessAccountProfilePhoto
- func (entity *RemoveBusinessAccountProfilePhoto) Files() map[string]rawTypes.InputFile
- func (RemoveBusinessAccountProfilePhoto) MethodName() string
- func (RemoveBusinessAccountProfilePhoto) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *RemoveBusinessAccountProfilePhoto) ProgressCallable() rawTypes.ProgressCallable
- type RemoveChatVerification
- func (entity *RemoveChatVerification) Files() map[string]rawTypes.InputFile
- func (entity RemoveChatVerification) MarshalJSON() ([]byte, error)
- func (RemoveChatVerification) MethodName() string
- func (RemoveChatVerification) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *RemoveChatVerification) ProgressCallable() rawTypes.ProgressCallable
- type RemoveUserVerification
- type ReopenForumTopic
- func (entity *ReopenForumTopic) Files() map[string]rawTypes.InputFile
- func (entity ReopenForumTopic) MarshalJSON() ([]byte, error)
- func (ReopenForumTopic) MethodName() string
- func (ReopenForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *ReopenForumTopic) ProgressCallable() rawTypes.ProgressCallable
- type ReopenGeneralForumTopic
- func (entity *ReopenGeneralForumTopic) Files() map[string]rawTypes.InputFile
- func (entity ReopenGeneralForumTopic) MarshalJSON() ([]byte, error)
- func (ReopenGeneralForumTopic) MethodName() string
- func (ReopenGeneralForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *ReopenGeneralForumTopic) ProgressCallable() rawTypes.ProgressCallable
- type ReplaceStickerInSet
- type RestrictChatMember
- func (entity *RestrictChatMember) Files() map[string]rawTypes.InputFile
- func (entity RestrictChatMember) MarshalJSON() ([]byte, error)
- func (RestrictChatMember) MethodName() string
- func (RestrictChatMember) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *RestrictChatMember) ProgressCallable() rawTypes.ProgressCallable
- type RevokeChatInviteLink
- func (entity *RevokeChatInviteLink) Files() map[string]rawTypes.InputFile
- func (entity RevokeChatInviteLink) MarshalJSON() ([]byte, error)
- func (RevokeChatInviteLink) MethodName() string
- func (RevokeChatInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *RevokeChatInviteLink) ProgressCallable() rawTypes.ProgressCallable
- type SavePreparedInlineMessage
- func (entity *SavePreparedInlineMessage) Files() map[string]rawTypes.InputFile
- func (SavePreparedInlineMessage) MethodName() string
- func (SavePreparedInlineMessage) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SavePreparedInlineMessage) ProgressCallable() rawTypes.ProgressCallable
- type SendAnimation
- func (entity *SendAnimation) Files() map[string]rawTypes.InputFile
- func (entity SendAnimation) MarshalJSON() ([]byte, error)
- func (SendAnimation) MethodName() string
- func (SendAnimation) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SendAnimation) ProgressCallable() rawTypes.ProgressCallable
- type SendAudio
- type SendChatAction
- func (entity *SendChatAction) Files() map[string]rawTypes.InputFile
- func (entity SendChatAction) MarshalJSON() ([]byte, error)
- func (SendChatAction) MethodName() string
- func (SendChatAction) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SendChatAction) ProgressCallable() rawTypes.ProgressCallable
- type SendChecklist
- func (entity *SendChecklist) Files() map[string]rawTypes.InputFile
- func (entity SendChecklist) MarshalJSON() ([]byte, error)
- func (SendChecklist) MethodName() string
- func (SendChecklist) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SendChecklist) ProgressCallable() rawTypes.ProgressCallable
- type SendContact
- func (entity *SendContact) Files() map[string]rawTypes.InputFile
- func (entity SendContact) MarshalJSON() ([]byte, error)
- func (SendContact) MethodName() string
- func (SendContact) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SendContact) ProgressCallable() rawTypes.ProgressCallable
- type SendDice
- type SendDocument
- func (entity *SendDocument) Files() map[string]rawTypes.InputFile
- func (entity SendDocument) MarshalJSON() ([]byte, error)
- func (SendDocument) MethodName() string
- func (SendDocument) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SendDocument) ProgressCallable() rawTypes.ProgressCallable
- type SendGame
- type SendGift
- type SendInvoice
- func (entity *SendInvoice) Files() map[string]rawTypes.InputFile
- func (entity SendInvoice) MarshalJSON() ([]byte, error)
- func (SendInvoice) MethodName() string
- func (SendInvoice) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SendInvoice) ProgressCallable() rawTypes.ProgressCallable
- type SendLocation
- func (entity *SendLocation) Files() map[string]rawTypes.InputFile
- func (entity SendLocation) MarshalJSON() ([]byte, error)
- func (SendLocation) MethodName() string
- func (SendLocation) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SendLocation) ProgressCallable() rawTypes.ProgressCallable
- type SendMediaGroup
- func (entity *SendMediaGroup) Files() map[string]rawTypes.InputFile
- func (entity SendMediaGroup) MarshalJSON() ([]byte, error)
- func (SendMediaGroup) MethodName() string
- func (SendMediaGroup) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SendMediaGroup) ProgressCallable() rawTypes.ProgressCallable
- type SendMessage
- func (entity *SendMessage) Files() map[string]rawTypes.InputFile
- func (entity SendMessage) MarshalJSON() ([]byte, error)
- func (SendMessage) MethodName() string
- func (SendMessage) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SendMessage) ProgressCallable() rawTypes.ProgressCallable
- type SendPaidMedia
- func (entity *SendPaidMedia) Files() map[string]rawTypes.InputFile
- func (entity SendPaidMedia) MarshalJSON() ([]byte, error)
- func (SendPaidMedia) MethodName() string
- func (SendPaidMedia) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SendPaidMedia) ProgressCallable() rawTypes.ProgressCallable
- type SendPhoto
- type SendPoll
- type SendSticker
- func (entity *SendSticker) Files() map[string]rawTypes.InputFile
- func (entity SendSticker) MarshalJSON() ([]byte, error)
- func (SendSticker) MethodName() string
- func (SendSticker) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SendSticker) ProgressCallable() rawTypes.ProgressCallable
- type SendVenue
- type SendVideo
- type SendVideoNote
- func (entity *SendVideoNote) Files() map[string]rawTypes.InputFile
- func (entity SendVideoNote) MarshalJSON() ([]byte, error)
- func (SendVideoNote) MethodName() string
- func (SendVideoNote) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SendVideoNote) ProgressCallable() rawTypes.ProgressCallable
- type SendVoice
- type SetBusinessAccountBio
- type SetBusinessAccountGiftSettings
- func (entity *SetBusinessAccountGiftSettings) Files() map[string]rawTypes.InputFile
- func (SetBusinessAccountGiftSettings) MethodName() string
- func (SetBusinessAccountGiftSettings) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetBusinessAccountGiftSettings) ProgressCallable() rawTypes.ProgressCallable
- type SetBusinessAccountName
- type SetBusinessAccountProfilePhoto
- func (entity *SetBusinessAccountProfilePhoto) Files() map[string]rawTypes.InputFile
- func (SetBusinessAccountProfilePhoto) MethodName() string
- func (SetBusinessAccountProfilePhoto) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetBusinessAccountProfilePhoto) ProgressCallable() rawTypes.ProgressCallable
- type SetBusinessAccountUsername
- func (entity *SetBusinessAccountUsername) Files() map[string]rawTypes.InputFile
- func (SetBusinessAccountUsername) MethodName() string
- func (SetBusinessAccountUsername) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetBusinessAccountUsername) ProgressCallable() rawTypes.ProgressCallable
- type SetChatAdministratorCustomTitle
- func (entity *SetChatAdministratorCustomTitle) Files() map[string]rawTypes.InputFile
- func (entity SetChatAdministratorCustomTitle) MarshalJSON() ([]byte, error)
- func (SetChatAdministratorCustomTitle) MethodName() string
- func (SetChatAdministratorCustomTitle) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetChatAdministratorCustomTitle) ProgressCallable() rawTypes.ProgressCallable
- type SetChatDescription
- func (entity *SetChatDescription) Files() map[string]rawTypes.InputFile
- func (entity SetChatDescription) MarshalJSON() ([]byte, error)
- func (SetChatDescription) MethodName() string
- func (SetChatDescription) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetChatDescription) ProgressCallable() rawTypes.ProgressCallable
- type SetChatMenuButton
- func (entity *SetChatMenuButton) Files() map[string]rawTypes.InputFile
- func (entity SetChatMenuButton) MarshalJSON() ([]byte, error)
- func (SetChatMenuButton) MethodName() string
- func (SetChatMenuButton) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetChatMenuButton) ProgressCallable() rawTypes.ProgressCallable
- type SetChatPermissions
- func (entity *SetChatPermissions) Files() map[string]rawTypes.InputFile
- func (entity SetChatPermissions) MarshalJSON() ([]byte, error)
- func (SetChatPermissions) MethodName() string
- func (SetChatPermissions) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetChatPermissions) ProgressCallable() rawTypes.ProgressCallable
- type SetChatPhoto
- func (entity *SetChatPhoto) Files() map[string]rawTypes.InputFile
- func (entity SetChatPhoto) MarshalJSON() ([]byte, error)
- func (SetChatPhoto) MethodName() string
- func (SetChatPhoto) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetChatPhoto) ProgressCallable() rawTypes.ProgressCallable
- type SetChatStickerSet
- func (entity *SetChatStickerSet) Files() map[string]rawTypes.InputFile
- func (entity SetChatStickerSet) MarshalJSON() ([]byte, error)
- func (SetChatStickerSet) MethodName() string
- func (SetChatStickerSet) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetChatStickerSet) ProgressCallable() rawTypes.ProgressCallable
- type SetChatTitle
- func (entity *SetChatTitle) Files() map[string]rawTypes.InputFile
- func (entity SetChatTitle) MarshalJSON() ([]byte, error)
- func (SetChatTitle) MethodName() string
- func (SetChatTitle) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetChatTitle) ProgressCallable() rawTypes.ProgressCallable
- type SetCustomEmojiStickerSetThumbnail
- func (entity *SetCustomEmojiStickerSetThumbnail) Files() map[string]rawTypes.InputFile
- func (SetCustomEmojiStickerSetThumbnail) MethodName() string
- func (SetCustomEmojiStickerSetThumbnail) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetCustomEmojiStickerSetThumbnail) ProgressCallable() rawTypes.ProgressCallable
- type SetGameScore
- type SetMessageReaction
- func (entity *SetMessageReaction) Files() map[string]rawTypes.InputFile
- func (entity SetMessageReaction) MarshalJSON() ([]byte, error)
- func (SetMessageReaction) MethodName() string
- func (SetMessageReaction) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetMessageReaction) ProgressCallable() rawTypes.ProgressCallable
- type SetMyCommands
- func (entity *SetMyCommands) Files() map[string]rawTypes.InputFile
- func (entity SetMyCommands) MarshalJSON() ([]byte, error)
- func (SetMyCommands) MethodName() string
- func (SetMyCommands) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetMyCommands) ProgressCallable() rawTypes.ProgressCallable
- type SetMyDefaultAdministratorRights
- func (entity *SetMyDefaultAdministratorRights) Files() map[string]rawTypes.InputFile
- func (entity SetMyDefaultAdministratorRights) MarshalJSON() ([]byte, error)
- func (SetMyDefaultAdministratorRights) MethodName() string
- func (SetMyDefaultAdministratorRights) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetMyDefaultAdministratorRights) ProgressCallable() rawTypes.ProgressCallable
- type SetMyDescription
- type SetMyName
- type SetMyShortDescription
- type SetPassportDataErrors
- type SetStickerEmojiList
- type SetStickerKeywords
- type SetStickerMaskPosition
- func (entity *SetStickerMaskPosition) Files() map[string]rawTypes.InputFile
- func (entity SetStickerMaskPosition) MarshalJSON() ([]byte, error)
- func (SetStickerMaskPosition) MethodName() string
- func (SetStickerMaskPosition) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetStickerMaskPosition) ProgressCallable() rawTypes.ProgressCallable
- type SetStickerPositionInSet
- type SetStickerSetThumbnail
- func (entity *SetStickerSetThumbnail) Files() map[string]rawTypes.InputFile
- func (entity SetStickerSetThumbnail) MarshalJSON() ([]byte, error)
- func (SetStickerSetThumbnail) MethodName() string
- func (SetStickerSetThumbnail) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetStickerSetThumbnail) ProgressCallable() rawTypes.ProgressCallable
- type SetStickerSetTitle
- type SetUserEmojiStatus
- type SetWebhook
- func (entity *SetWebhook) Files() map[string]rawTypes.InputFile
- func (entity SetWebhook) MarshalJSON() ([]byte, error)
- func (SetWebhook) MethodName() string
- func (SetWebhook) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *SetWebhook) ProgressCallable() rawTypes.ProgressCallable
- type StopMessageLiveLocation
- func (entity *StopMessageLiveLocation) Files() map[string]rawTypes.InputFile
- func (entity StopMessageLiveLocation) MarshalJSON() ([]byte, error)
- func (StopMessageLiveLocation) MethodName() string
- func (StopMessageLiveLocation) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *StopMessageLiveLocation) ProgressCallable() rawTypes.ProgressCallable
- type StopPoll
- type TransferBusinessAccountStars
- func (entity *TransferBusinessAccountStars) Files() map[string]rawTypes.InputFile
- func (TransferBusinessAccountStars) MethodName() string
- func (TransferBusinessAccountStars) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *TransferBusinessAccountStars) ProgressCallable() rawTypes.ProgressCallable
- type TransferGift
- type UnbanChatMember
- func (entity *UnbanChatMember) Files() map[string]rawTypes.InputFile
- func (entity UnbanChatMember) MarshalJSON() ([]byte, error)
- func (UnbanChatMember) MethodName() string
- func (UnbanChatMember) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *UnbanChatMember) ProgressCallable() rawTypes.ProgressCallable
- type UnbanChatSenderChat
- func (entity *UnbanChatSenderChat) Files() map[string]rawTypes.InputFile
- func (entity UnbanChatSenderChat) MarshalJSON() ([]byte, error)
- func (UnbanChatSenderChat) MethodName() string
- func (UnbanChatSenderChat) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *UnbanChatSenderChat) ProgressCallable() rawTypes.ProgressCallable
- type UnhideGeneralForumTopic
- func (entity *UnhideGeneralForumTopic) Files() map[string]rawTypes.InputFile
- func (entity UnhideGeneralForumTopic) MarshalJSON() ([]byte, error)
- func (UnhideGeneralForumTopic) MethodName() string
- func (UnhideGeneralForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *UnhideGeneralForumTopic) ProgressCallable() rawTypes.ProgressCallable
- type UnpinAllChatMessages
- func (entity *UnpinAllChatMessages) Files() map[string]rawTypes.InputFile
- func (entity UnpinAllChatMessages) MarshalJSON() ([]byte, error)
- func (UnpinAllChatMessages) MethodName() string
- func (UnpinAllChatMessages) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *UnpinAllChatMessages) ProgressCallable() rawTypes.ProgressCallable
- type UnpinAllForumTopicMessages
- func (entity *UnpinAllForumTopicMessages) Files() map[string]rawTypes.InputFile
- func (entity UnpinAllForumTopicMessages) MarshalJSON() ([]byte, error)
- func (UnpinAllForumTopicMessages) MethodName() string
- func (UnpinAllForumTopicMessages) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *UnpinAllForumTopicMessages) ProgressCallable() rawTypes.ProgressCallable
- type UnpinAllGeneralForumTopicMessages
- func (entity *UnpinAllGeneralForumTopicMessages) Files() map[string]rawTypes.InputFile
- func (entity UnpinAllGeneralForumTopicMessages) MarshalJSON() ([]byte, error)
- func (UnpinAllGeneralForumTopicMessages) MethodName() string
- func (UnpinAllGeneralForumTopicMessages) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *UnpinAllGeneralForumTopicMessages) ProgressCallable() rawTypes.ProgressCallable
- type UnpinChatMessage
- func (entity *UnpinChatMessage) Files() map[string]rawTypes.InputFile
- func (entity UnpinChatMessage) MarshalJSON() ([]byte, error)
- func (UnpinChatMessage) MethodName() string
- func (UnpinChatMessage) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *UnpinChatMessage) ProgressCallable() rawTypes.ProgressCallable
- type UpgradeGift
- type UploadStickerFile
- type VerifyChat
- func (entity *VerifyChat) Files() map[string]rawTypes.InputFile
- func (entity VerifyChat) MarshalJSON() ([]byte, error)
- func (VerifyChat) MethodName() string
- func (VerifyChat) ParseResult(response []byte) (*rawTypes.Result, error)
- func (entity *VerifyChat) ProgressCallable() rawTypes.ProgressCallable
- type VerifyUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddStickerToSet ¶
type AddStickerToSet struct { Name string `json:"name"` Sticker types.InputSticker `json:"sticker"` UserID int64 `json:"user_id"` }
AddStickerToSet Use this method to add a new sticker to a set created by the bot Emoji sticker sets can have up to 200 stickers Other sticker sets can have up to 120 stickers Returns True on success.
func (*AddStickerToSet) Files ¶
func (entity *AddStickerToSet) Files() map[string]rawTypes.InputFile
func (AddStickerToSet) MethodName ¶
func (AddStickerToSet) MethodName() string
func (AddStickerToSet) ParseResult ¶
func (AddStickerToSet) ParseResult(response []byte) (*rawTypes.Result, error)
func (*AddStickerToSet) ProgressCallable ¶
func (entity *AddStickerToSet) ProgressCallable() rawTypes.ProgressCallable
type AnswerCallbackQuery ¶
type AnswerCallbackQuery struct { CacheTime int `json:"cache_time,omitempty"` CallbackQueryID string `json:"callback_query_id"` ShowAlert bool `json:"show_alert,omitempty"` Text string `json:"text,omitempty"` URL string `json:"url,omitempty"` }
AnswerCallbackQuery Use this method to send answers to callback queries sent from inline keyboards The answer will be displayed to the user as a notification at the top of the chat screen or as an alert On success, True is returned.
func (*AnswerCallbackQuery) Files ¶
func (entity *AnswerCallbackQuery) Files() map[string]rawTypes.InputFile
func (AnswerCallbackQuery) MethodName ¶
func (AnswerCallbackQuery) MethodName() string
func (AnswerCallbackQuery) ParseResult ¶
func (AnswerCallbackQuery) ParseResult(response []byte) (*rawTypes.Result, error)
func (*AnswerCallbackQuery) ProgressCallable ¶
func (entity *AnswerCallbackQuery) ProgressCallable() rawTypes.ProgressCallable
type AnswerInlineQuery ¶
type AnswerInlineQuery struct { Button *types.InlineQueryResultsButton `json:"button,omitempty"` CacheTime int `json:"cache_time,omitempty"` InlineQueryID string `json:"inline_query_id"` IsPersonal bool `json:"is_personal,omitempty"` NextOffset string `json:"next_offset,omitempty"` Results []types.InlineQueryResult `json:"results,omitempty"` }
AnswerInlineQuery Use this method to send answers to an inline query On success, True is returned.No more than 50 results per query are allowed.
func (*AnswerInlineQuery) Files ¶
func (entity *AnswerInlineQuery) Files() map[string]rawTypes.InputFile
func (AnswerInlineQuery) MarshalJSON ¶ added in v1.8.0
func (entity AnswerInlineQuery) MarshalJSON() ([]byte, error)
func (AnswerInlineQuery) MethodName ¶
func (AnswerInlineQuery) MethodName() string
func (AnswerInlineQuery) ParseResult ¶
func (AnswerInlineQuery) ParseResult(response []byte) (*rawTypes.Result, error)
func (*AnswerInlineQuery) ProgressCallable ¶
func (entity *AnswerInlineQuery) ProgressCallable() rawTypes.ProgressCallable
type AnswerPreCheckoutQuery ¶
type AnswerPreCheckoutQuery struct { ErrorMessage string `json:"error_message,omitempty"` Ok bool `json:"ok"` PreCheckoutQueryID string `json:"pre_checkout_query_id"` }
AnswerPreCheckoutQuery Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query Use this method to respond to such pre-checkout queries On success, True is returned Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent.
func (*AnswerPreCheckoutQuery) Files ¶
func (entity *AnswerPreCheckoutQuery) Files() map[string]rawTypes.InputFile
func (AnswerPreCheckoutQuery) MethodName ¶
func (AnswerPreCheckoutQuery) MethodName() string
func (AnswerPreCheckoutQuery) ParseResult ¶
func (AnswerPreCheckoutQuery) ParseResult(response []byte) (*rawTypes.Result, error)
func (*AnswerPreCheckoutQuery) ProgressCallable ¶
func (entity *AnswerPreCheckoutQuery) ProgressCallable() rawTypes.ProgressCallable
type AnswerShippingQuery ¶
type AnswerShippingQuery struct { ErrorMessage string `json:"error_message,omitempty"` Ok bool `json:"ok"` ShippingOptions []types.ShippingOption `json:"shipping_options,omitempty"` ShippingQueryID string `json:"shipping_query_id"` }
AnswerShippingQuery If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot Use this method to reply to shipping queries On success, True is returned.
func (*AnswerShippingQuery) Files ¶
func (entity *AnswerShippingQuery) Files() map[string]rawTypes.InputFile
func (AnswerShippingQuery) MethodName ¶
func (AnswerShippingQuery) MethodName() string
func (AnswerShippingQuery) ParseResult ¶
func (AnswerShippingQuery) ParseResult(response []byte) (*rawTypes.Result, error)
func (*AnswerShippingQuery) ProgressCallable ¶
func (entity *AnswerShippingQuery) ProgressCallable() rawTypes.ProgressCallable
type AnswerWebAppQuery ¶
type AnswerWebAppQuery struct { Result types.InlineQueryResult `json:"result"` WebAppQueryID string `json:"web_app_query_id"` }
AnswerWebAppQuery Use this method to set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated On success, a SentWebAppMessage object is returned.
func (*AnswerWebAppQuery) Files ¶
func (entity *AnswerWebAppQuery) Files() map[string]rawTypes.InputFile
func (AnswerWebAppQuery) MethodName ¶
func (AnswerWebAppQuery) MethodName() string
func (AnswerWebAppQuery) ParseResult ¶
func (AnswerWebAppQuery) ParseResult(response []byte) (*rawTypes.Result, error)
func (*AnswerWebAppQuery) ProgressCallable ¶
func (entity *AnswerWebAppQuery) ProgressCallable() rawTypes.ProgressCallable
type ApproveChatJoinRequest ¶
ApproveChatJoinRequest Use this method to approve a chat join request The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right Returns True on success.
func (*ApproveChatJoinRequest) Files ¶
func (entity *ApproveChatJoinRequest) Files() map[string]rawTypes.InputFile
func (ApproveChatJoinRequest) MarshalJSON ¶
func (entity ApproveChatJoinRequest) MarshalJSON() ([]byte, error)
func (ApproveChatJoinRequest) MethodName ¶
func (ApproveChatJoinRequest) MethodName() string
func (ApproveChatJoinRequest) ParseResult ¶
func (ApproveChatJoinRequest) ParseResult(response []byte) (*rawTypes.Result, error)
func (*ApproveChatJoinRequest) ProgressCallable ¶
func (entity *ApproveChatJoinRequest) ProgressCallable() rawTypes.ProgressCallable
type ApproveSuggestedPost ¶ added in v1.9.9
type ApproveSuggestedPost struct { ChatID int64 `json:"chat_id"` MessageID int64 `json:"message_id"` SendDate int64 `json:"send_date,omitempty"` }
ApproveSuggestedPost Use this method to approve a suggested post in a direct messages chat The bot must have the 'can_post_messages' administrator right in the corresponding channel chat Returns True on success.
func (*ApproveSuggestedPost) Files ¶ added in v1.9.9
func (entity *ApproveSuggestedPost) Files() map[string]rawTypes.InputFile
func (ApproveSuggestedPost) MethodName ¶ added in v1.9.9
func (ApproveSuggestedPost) MethodName() string
func (ApproveSuggestedPost) ParseResult ¶ added in v1.9.9
func (ApproveSuggestedPost) ParseResult(response []byte) (*rawTypes.Result, error)
func (*ApproveSuggestedPost) ProgressCallable ¶ added in v1.9.9
func (entity *ApproveSuggestedPost) ProgressCallable() rawTypes.ProgressCallable
type BanChatMember ¶
type BanChatMember struct { ChatID any `json:"chat_id"` RevokeMessages bool `json:"revoke_messages,omitempty"` UntilDate int64 `json:"until_date,omitempty"` UserID int64 `json:"user_id"` }
BanChatMember Use this method to ban a user in a group, a supergroup or a channel In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless unbanned first The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights Returns True on success.
func (BanChatMember) MarshalJSON ¶
func (entity BanChatMember) MarshalJSON() ([]byte, error)
func (BanChatMember) MethodName ¶
func (BanChatMember) MethodName() string
func (BanChatMember) ParseResult ¶
func (BanChatMember) ParseResult(response []byte) (*rawTypes.Result, error)
func (*BanChatMember) ProgressCallable ¶
func (entity *BanChatMember) ProgressCallable() rawTypes.ProgressCallable
type BanChatSenderChat ¶
type BanChatSenderChat struct { ChatID any `json:"chat_id"` SenderChatID int64 `json:"sender_chat_id"` }
BanChatSenderChat Use this method to ban a channel chat in a supergroup or a channel Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights Returns True on success.
func (*BanChatSenderChat) Files ¶
func (entity *BanChatSenderChat) Files() map[string]rawTypes.InputFile
func (BanChatSenderChat) MarshalJSON ¶
func (entity BanChatSenderChat) MarshalJSON() ([]byte, error)
func (BanChatSenderChat) MethodName ¶
func (BanChatSenderChat) MethodName() string
func (BanChatSenderChat) ParseResult ¶
func (BanChatSenderChat) ParseResult(response []byte) (*rawTypes.Result, error)
func (*BanChatSenderChat) ProgressCallable ¶
func (entity *BanChatSenderChat) ProgressCallable() rawTypes.ProgressCallable
type Close ¶
type Close struct{}
Close Use this method to close the bot instance before moving it from one local server to another You need to delete the webhook before calling this method to ensure that the bot isn't launched again after server restart The method will return error 429 in the first 10 minutes after the bot is launched Returns True on success Requires no parameters.
func (Close) MethodName ¶
func (*Close) ProgressCallable ¶
func (entity *Close) ProgressCallable() rawTypes.ProgressCallable
type CloseForumTopic ¶
type CloseForumTopic struct { ChatID any `json:"chat_id"` MessageThreadID int64 `json:"message_thread_id"` }
CloseForumTopic Use this method to close an open topic in a forum supergroup chat The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights, unless it is the creator of the topic Returns True on success.
func (*CloseForumTopic) Files ¶
func (entity *CloseForumTopic) Files() map[string]rawTypes.InputFile
func (CloseForumTopic) MarshalJSON ¶
func (entity CloseForumTopic) MarshalJSON() ([]byte, error)
func (CloseForumTopic) MethodName ¶
func (CloseForumTopic) MethodName() string
func (CloseForumTopic) ParseResult ¶
func (CloseForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
func (*CloseForumTopic) ProgressCallable ¶
func (entity *CloseForumTopic) ProgressCallable() rawTypes.ProgressCallable
type CloseGeneralForumTopic ¶
type CloseGeneralForumTopic struct {
ChatID any `json:"chat_id"`
}
CloseGeneralForumTopic Use this method to close an open 'General' topic in a forum supergroup chat The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights Returns True on success.
func (*CloseGeneralForumTopic) Files ¶
func (entity *CloseGeneralForumTopic) Files() map[string]rawTypes.InputFile
func (CloseGeneralForumTopic) MarshalJSON ¶
func (entity CloseGeneralForumTopic) MarshalJSON() ([]byte, error)
func (CloseGeneralForumTopic) MethodName ¶
func (CloseGeneralForumTopic) MethodName() string
func (CloseGeneralForumTopic) ParseResult ¶
func (CloseGeneralForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
func (*CloseGeneralForumTopic) ProgressCallable ¶
func (entity *CloseGeneralForumTopic) ProgressCallable() rawTypes.ProgressCallable
type ConvertGiftToStars ¶ added in v1.9.6
type ConvertGiftToStars struct { BusinessConnectionID string `json:"business_connection_id"` OwnedGiftID string `json:"owned_gift_id"` }
ConvertGiftToStars Converts a given regular gift to Telegram Stars Requires the can_convert_gifts_to_stars business bot right Returns True on success.
func (*ConvertGiftToStars) Files ¶ added in v1.9.6
func (entity *ConvertGiftToStars) Files() map[string]rawTypes.InputFile
func (ConvertGiftToStars) MethodName ¶ added in v1.9.6
func (ConvertGiftToStars) MethodName() string
func (ConvertGiftToStars) ParseResult ¶ added in v1.9.6
func (ConvertGiftToStars) ParseResult(response []byte) (*rawTypes.Result, error)
func (*ConvertGiftToStars) ProgressCallable ¶ added in v1.9.6
func (entity *ConvertGiftToStars) ProgressCallable() rawTypes.ProgressCallable
type CopyMessage ¶
type CopyMessage struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` Caption string `json:"caption,omitempty"` CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"` ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` FromChatID int64 `json:"from_chat_id"` MessageID int64 `json:"message_id"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ParseMode string `json:"parse_mode,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` VideoStartTimestamp int64 `json:"video_start_timestamp,omitempty"` }
CopyMessage Use this method to copy messages of any kind Service messages, paid media messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied A quiz poll can be copied only if the value of the field correct_option_id is known to the bot The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message Returns the MessageId of the sent message on success.
func (CopyMessage) MarshalJSON ¶
func (entity CopyMessage) MarshalJSON() ([]byte, error)
func (CopyMessage) MethodName ¶
func (CopyMessage) MethodName() string
func (CopyMessage) ParseResult ¶
func (CopyMessage) ParseResult(response []byte) (*rawTypes.Result, error)
func (*CopyMessage) ProgressCallable ¶
func (entity *CopyMessage) ProgressCallable() rawTypes.ProgressCallable
type CopyMessages ¶ added in v1.6.3
type CopyMessages struct { ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` FromChatID int64 `json:"from_chat_id"` MessageIDs []int64 `json:"message_ids,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` RemoveCaption bool `json:"remove_caption,omitempty"` }
CopyMessages Use this method to copy messages of any kind If some of the specified messages can't be found or copied, they are skipped Service messages, paid media messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied A quiz poll can be copied only if the value of the field correct_option_id is known to the bot The method is analogous to the method forwardMessages, but the copied messages don't have a link to the original message Album grouping is kept for copied messages On success, an array of MessageId of the sent messages is returned.
func (*CopyMessages) Files ¶ added in v1.6.3
func (entity *CopyMessages) Files() map[string]rawTypes.InputFile
func (CopyMessages) MarshalJSON ¶ added in v1.6.3
func (entity CopyMessages) MarshalJSON() ([]byte, error)
func (CopyMessages) MethodName ¶ added in v1.6.3
func (CopyMessages) MethodName() string
func (CopyMessages) ParseResult ¶ added in v1.6.3
func (CopyMessages) ParseResult(response []byte) (*rawTypes.Result, error)
func (*CopyMessages) ProgressCallable ¶ added in v1.6.3
func (entity *CopyMessages) ProgressCallable() rawTypes.ProgressCallable
type CreateChatInviteLink ¶
type CreateChatInviteLink struct { ChatID any `json:"chat_id"` CreatesJoinRequest bool `json:"creates_join_request,omitempty"` ExpireDate int64 `json:"expire_date,omitempty"` MemberLimit int `json:"member_limit,omitempty"` Name string `json:"name,omitempty"` }
CreateChatInviteLink Use this method to create an additional invite link for a chat The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights The link can be revoked using the method revokeChatInviteLink Returns the new invite link as ChatInviteLink object.
func (*CreateChatInviteLink) Files ¶
func (entity *CreateChatInviteLink) Files() map[string]rawTypes.InputFile
func (CreateChatInviteLink) MarshalJSON ¶
func (entity CreateChatInviteLink) MarshalJSON() ([]byte, error)
func (CreateChatInviteLink) MethodName ¶
func (CreateChatInviteLink) MethodName() string
func (CreateChatInviteLink) ParseResult ¶
func (CreateChatInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
func (*CreateChatInviteLink) ProgressCallable ¶
func (entity *CreateChatInviteLink) ProgressCallable() rawTypes.ProgressCallable
type CreateChatSubscriptionInviteLink ¶ added in v1.7.9
type CreateChatSubscriptionInviteLink struct { ChatID any `json:"chat_id"` Name string `json:"name,omitempty"` SubscriptionPeriod int `json:"subscription_period"` SubscriptionPrice int `json:"subscription_price"` }
CreateChatSubscriptionInviteLink Use this method to create a subscription invite link for a channel chat The bot must have the can_invite_users administrator rights The link can be edited using the method editChatSubscriptionInviteLink or revoked using the method revokeChatInviteLink Returns the new invite link as a ChatInviteLink object.
func (*CreateChatSubscriptionInviteLink) Files ¶ added in v1.7.9
func (entity *CreateChatSubscriptionInviteLink) Files() map[string]rawTypes.InputFile
func (CreateChatSubscriptionInviteLink) MarshalJSON ¶ added in v1.7.9
func (entity CreateChatSubscriptionInviteLink) MarshalJSON() ([]byte, error)
func (CreateChatSubscriptionInviteLink) MethodName ¶ added in v1.7.9
func (CreateChatSubscriptionInviteLink) MethodName() string
func (CreateChatSubscriptionInviteLink) ParseResult ¶ added in v1.7.9
func (CreateChatSubscriptionInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
func (*CreateChatSubscriptionInviteLink) ProgressCallable ¶ added in v1.7.9
func (entity *CreateChatSubscriptionInviteLink) ProgressCallable() rawTypes.ProgressCallable
type CreateForumTopic ¶
type CreateForumTopic struct { ChatID any `json:"chat_id"` IconColor int `json:"icon_color,omitempty"` IconCustomEmojiID string `json:"icon_custom_emoji_id,omitempty"` Name string `json:"name"` }
CreateForumTopic Use this method to create a topic in a forum supergroup chat The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights Returns information about the created topic as a ForumTopic object.
func (*CreateForumTopic) Files ¶
func (entity *CreateForumTopic) Files() map[string]rawTypes.InputFile
func (CreateForumTopic) MarshalJSON ¶
func (entity CreateForumTopic) MarshalJSON() ([]byte, error)
func (CreateForumTopic) MethodName ¶
func (CreateForumTopic) MethodName() string
func (CreateForumTopic) ParseResult ¶
func (CreateForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
func (*CreateForumTopic) ProgressCallable ¶
func (entity *CreateForumTopic) ProgressCallable() rawTypes.ProgressCallable
type CreateInvoiceLink ¶
type CreateInvoiceLink struct { BusinessConnectionID string `json:"business_connection_id,omitempty"` Currency string `json:"currency"` Description string `json:"description"` IsFlexible bool `json:"is_flexible,omitempty"` MaxTipAmount int `json:"max_tip_amount,omitempty"` NeedEmail bool `json:"need_email,omitempty"` NeedName bool `json:"need_name,omitempty"` NeedPhoneNumber bool `json:"need_phone_number,omitempty"` NeedShippingAddress bool `json:"need_shipping_address,omitempty"` Payload string `json:"payload"` PhotoHeight int `json:"photo_height,omitempty"` PhotoSize int `json:"photo_size,omitempty"` PhotoURL string `json:"photo_url,omitempty"` PhotoWidth int64 `json:"photo_width,omitempty"` Prices []types.LabeledPrice `json:"prices,omitempty"` ProviderData string `json:"provider_data,omitempty"` ProviderToken string `json:"provider_token,omitempty"` SendEmailToProvider bool `json:"send_email_to_provider,omitempty"` SendPhoneNumberToProvider bool `json:"send_phone_number_to_provider,omitempty"` SubscriptionPeriod int `json:"subscription_period,omitempty"` SuggestedTipAmounts []int `json:"suggested_tip_amounts,omitempty"` Title string `json:"title"` }
CreateInvoiceLink Use this method to create a link for an invoice Returns the created invoice link as String on success.
func (*CreateInvoiceLink) Files ¶
func (entity *CreateInvoiceLink) Files() map[string]rawTypes.InputFile
func (CreateInvoiceLink) MethodName ¶
func (CreateInvoiceLink) MethodName() string
func (CreateInvoiceLink) ParseResult ¶
func (CreateInvoiceLink) ParseResult(response []byte) (*rawTypes.Result, error)
func (*CreateInvoiceLink) ProgressCallable ¶
func (entity *CreateInvoiceLink) ProgressCallable() rawTypes.ProgressCallable
type CreateNewStickerSet ¶
type CreateNewStickerSet struct { Name string `json:"name"` NeedsRepainting bool `json:"needs_repainting,omitempty"` StickerType string `json:"sticker_type,omitempty"` Stickers []types.InputSticker `json:"stickers,omitempty"` Title string `json:"title"` UserID int64 `json:"user_id"` }
CreateNewStickerSet Use this method to create a new sticker set owned by a user The bot will be able to edit the sticker set thus created Returns True on success.
func (*CreateNewStickerSet) Files ¶
func (entity *CreateNewStickerSet) Files() map[string]rawTypes.InputFile
func (CreateNewStickerSet) MethodName ¶
func (CreateNewStickerSet) MethodName() string
func (CreateNewStickerSet) ParseResult ¶
func (CreateNewStickerSet) ParseResult(response []byte) (*rawTypes.Result, error)
func (*CreateNewStickerSet) ProgressCallable ¶
func (entity *CreateNewStickerSet) ProgressCallable() rawTypes.ProgressCallable
type DeclineChatJoinRequest ¶
DeclineChatJoinRequest Use this method to decline a chat join request The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right Returns True on success.
func (*DeclineChatJoinRequest) Files ¶
func (entity *DeclineChatJoinRequest) Files() map[string]rawTypes.InputFile
func (DeclineChatJoinRequest) MarshalJSON ¶
func (entity DeclineChatJoinRequest) MarshalJSON() ([]byte, error)
func (DeclineChatJoinRequest) MethodName ¶
func (DeclineChatJoinRequest) MethodName() string
func (DeclineChatJoinRequest) ParseResult ¶
func (DeclineChatJoinRequest) ParseResult(response []byte) (*rawTypes.Result, error)
func (*DeclineChatJoinRequest) ProgressCallable ¶
func (entity *DeclineChatJoinRequest) ProgressCallable() rawTypes.ProgressCallable
type DeclineSuggestedPost ¶ added in v1.9.9
type DeclineSuggestedPost struct { ChatID int64 `json:"chat_id"` Comment string `json:"comment,omitempty"` MessageID int64 `json:"message_id"` }
DeclineSuggestedPost Use this method to decline a suggested post in a direct messages chat The bot must have the 'can_manage_direct_messages' administrator right in the corresponding channel chat Returns True on success.
func (*DeclineSuggestedPost) Files ¶ added in v1.9.9
func (entity *DeclineSuggestedPost) Files() map[string]rawTypes.InputFile
func (DeclineSuggestedPost) MethodName ¶ added in v1.9.9
func (DeclineSuggestedPost) MethodName() string
func (DeclineSuggestedPost) ParseResult ¶ added in v1.9.9
func (DeclineSuggestedPost) ParseResult(response []byte) (*rawTypes.Result, error)
func (*DeclineSuggestedPost) ProgressCallable ¶ added in v1.9.9
func (entity *DeclineSuggestedPost) ProgressCallable() rawTypes.ProgressCallable
type DeleteBusinessMessages ¶ added in v1.9.6
type DeleteBusinessMessages struct { BusinessConnectionID string `json:"business_connection_id"` MessageIDs []int64 `json:"message_ids,omitempty"` }
DeleteBusinessMessages Delete messages on behalf of a business account Requires the can_delete_sent_messages business bot right to delete messages sent by the bot itself, or the can_delete_all_messages business bot right to delete any message Returns True on success.
func (*DeleteBusinessMessages) Files ¶ added in v1.9.6
func (entity *DeleteBusinessMessages) Files() map[string]rawTypes.InputFile
func (DeleteBusinessMessages) MethodName ¶ added in v1.9.6
func (DeleteBusinessMessages) MethodName() string
func (DeleteBusinessMessages) ParseResult ¶ added in v1.9.6
func (DeleteBusinessMessages) ParseResult(response []byte) (*rawTypes.Result, error)
func (*DeleteBusinessMessages) ProgressCallable ¶ added in v1.9.6
func (entity *DeleteBusinessMessages) ProgressCallable() rawTypes.ProgressCallable
type DeleteChatPhoto ¶
type DeleteChatPhoto struct {
ChatID any `json:"chat_id"`
}
DeleteChatPhoto Use this method to delete a chat photo Photos can't be changed for private chats The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights Returns True on success.
func (*DeleteChatPhoto) Files ¶
func (entity *DeleteChatPhoto) Files() map[string]rawTypes.InputFile
func (DeleteChatPhoto) MarshalJSON ¶
func (entity DeleteChatPhoto) MarshalJSON() ([]byte, error)
func (DeleteChatPhoto) MethodName ¶
func (DeleteChatPhoto) MethodName() string
func (DeleteChatPhoto) ParseResult ¶
func (DeleteChatPhoto) ParseResult(response []byte) (*rawTypes.Result, error)
func (*DeleteChatPhoto) ProgressCallable ¶
func (entity *DeleteChatPhoto) ProgressCallable() rawTypes.ProgressCallable
type DeleteChatStickerSet ¶
type DeleteChatStickerSet struct {
ChatID any `json:"chat_id"`
}
DeleteChatStickerSet Use this method to delete a group sticker set from a supergroup The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method Returns True on success.
func (*DeleteChatStickerSet) Files ¶
func (entity *DeleteChatStickerSet) Files() map[string]rawTypes.InputFile
func (DeleteChatStickerSet) MarshalJSON ¶
func (entity DeleteChatStickerSet) MarshalJSON() ([]byte, error)
func (DeleteChatStickerSet) MethodName ¶
func (DeleteChatStickerSet) MethodName() string
func (DeleteChatStickerSet) ParseResult ¶
func (DeleteChatStickerSet) ParseResult(response []byte) (*rawTypes.Result, error)
func (*DeleteChatStickerSet) ProgressCallable ¶
func (entity *DeleteChatStickerSet) ProgressCallable() rawTypes.ProgressCallable
type DeleteForumTopic ¶
type DeleteForumTopic struct { ChatID any `json:"chat_id"` MessageThreadID int64 `json:"message_thread_id"` }
DeleteForumTopic Use this method to delete a forum topic along with all its messages in a forum supergroup chat The bot must be an administrator in the chat for this to work and must have the can_delete_messages administrator rights Returns True on success.
func (*DeleteForumTopic) Files ¶
func (entity *DeleteForumTopic) Files() map[string]rawTypes.InputFile
func (DeleteForumTopic) MarshalJSON ¶
func (entity DeleteForumTopic) MarshalJSON() ([]byte, error)
func (DeleteForumTopic) MethodName ¶
func (DeleteForumTopic) MethodName() string
func (DeleteForumTopic) ParseResult ¶
func (DeleteForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
func (*DeleteForumTopic) ProgressCallable ¶
func (entity *DeleteForumTopic) ProgressCallable() rawTypes.ProgressCallable
type DeleteMessage ¶
DeleteMessage Use this method to delete a message, including service messages, with the following limitations:- A message can only be deleted if it was sent less than 48 hours ago.- Service messages about a supergroup, channel, or forum topic creation can't be deleted.- A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.- Bots can delete outgoing messages in private chats, groups, and supergroups.- Bots can delete incoming messages in private chats.- Bots granted can_post_messages permissions can delete outgoing messages in channels.- If the bot is an administrator of a group, it can delete any message there.- If the bot has can_delete_messages administrator right in a supergroup or a channel, it can delete any message there.- If the bot has can_manage_direct_messages administrator right in a channel, it can delete any message in the corresponding direct messages chat.Returns True on success.
func (DeleteMessage) MarshalJSON ¶
func (entity DeleteMessage) MarshalJSON() ([]byte, error)
func (DeleteMessage) MethodName ¶
func (DeleteMessage) MethodName() string
func (DeleteMessage) ParseResult ¶
func (DeleteMessage) ParseResult(response []byte) (*rawTypes.Result, error)
func (*DeleteMessage) ProgressCallable ¶
func (entity *DeleteMessage) ProgressCallable() rawTypes.ProgressCallable
type DeleteMessages ¶ added in v1.6.3
type DeleteMessages struct { ChatID any `json:"chat_id"` MessageIDs []int64 `json:"message_ids,omitempty"` }
DeleteMessages Use this method to delete multiple messages simultaneously If some of the specified messages can't be found, they are skipped Returns True on success.
func (*DeleteMessages) Files ¶ added in v1.6.3
func (entity *DeleteMessages) Files() map[string]rawTypes.InputFile
func (DeleteMessages) MarshalJSON ¶ added in v1.6.3
func (entity DeleteMessages) MarshalJSON() ([]byte, error)
func (DeleteMessages) MethodName ¶ added in v1.6.3
func (DeleteMessages) MethodName() string
func (DeleteMessages) ParseResult ¶ added in v1.6.3
func (DeleteMessages) ParseResult(response []byte) (*rawTypes.Result, error)
func (*DeleteMessages) ProgressCallable ¶ added in v1.6.3
func (entity *DeleteMessages) ProgressCallable() rawTypes.ProgressCallable
type DeleteMyCommands ¶
type DeleteMyCommands struct { LanguageCode string `json:"language_code,omitempty"` Scope *types.BotCommandScope `json:"scope,omitempty"` }
DeleteMyCommands Use this method to delete the list of the bot's commands for the given scope and user language After deletion, higher level commands will be shown to affected users Returns True on success.
func (*DeleteMyCommands) Files ¶
func (entity *DeleteMyCommands) Files() map[string]rawTypes.InputFile
func (DeleteMyCommands) MarshalJSON ¶ added in v1.8.0
func (entity DeleteMyCommands) MarshalJSON() ([]byte, error)
func (DeleteMyCommands) MethodName ¶
func (DeleteMyCommands) MethodName() string
func (DeleteMyCommands) ParseResult ¶
func (DeleteMyCommands) ParseResult(response []byte) (*rawTypes.Result, error)
func (*DeleteMyCommands) ProgressCallable ¶
func (entity *DeleteMyCommands) ProgressCallable() rawTypes.ProgressCallable
type DeleteStickerFromSet ¶
type DeleteStickerFromSet struct {
Sticker string `json:"sticker"`
}
DeleteStickerFromSet Use this method to delete a sticker from a set created by the bot Returns True on success.
func (*DeleteStickerFromSet) Files ¶
func (entity *DeleteStickerFromSet) Files() map[string]rawTypes.InputFile
func (DeleteStickerFromSet) MethodName ¶
func (DeleteStickerFromSet) MethodName() string
func (DeleteStickerFromSet) ParseResult ¶
func (DeleteStickerFromSet) ParseResult(response []byte) (*rawTypes.Result, error)
func (*DeleteStickerFromSet) ProgressCallable ¶
func (entity *DeleteStickerFromSet) ProgressCallable() rawTypes.ProgressCallable
type DeleteStickerSet ¶
type DeleteStickerSet struct {
Name string `json:"name"`
}
DeleteStickerSet Use this method to delete a sticker set that was created by the bot Returns True on success.
func (*DeleteStickerSet) Files ¶
func (entity *DeleteStickerSet) Files() map[string]rawTypes.InputFile
func (DeleteStickerSet) MethodName ¶
func (DeleteStickerSet) MethodName() string
func (DeleteStickerSet) ParseResult ¶
func (DeleteStickerSet) ParseResult(response []byte) (*rawTypes.Result, error)
func (*DeleteStickerSet) ProgressCallable ¶
func (entity *DeleteStickerSet) ProgressCallable() rawTypes.ProgressCallable
type DeleteStory ¶ added in v1.9.6
type DeleteStory struct { BusinessConnectionID string `json:"business_connection_id"` StoryID int64 `json:"story_id"` }
DeleteStory Deletes a story previously posted by the bot on behalf of a managed business account Requires the can_manage_stories business bot right Returns True on success.
func (*DeleteStory) Files ¶ added in v1.9.6
func (entity *DeleteStory) Files() map[string]rawTypes.InputFile
func (DeleteStory) MethodName ¶ added in v1.9.6
func (DeleteStory) MethodName() string
func (DeleteStory) ParseResult ¶ added in v1.9.6
func (DeleteStory) ParseResult(response []byte) (*rawTypes.Result, error)
func (*DeleteStory) ProgressCallable ¶ added in v1.9.6
func (entity *DeleteStory) ProgressCallable() rawTypes.ProgressCallable
type DeleteWebhook ¶
type DeleteWebhook struct {
DropPendingUpdates bool `json:"drop_pending_updates,omitempty"`
}
DeleteWebhook Use this method to remove webhook integration if you decide to switch back to getUpdates Returns True on success.
func (DeleteWebhook) MethodName ¶
func (DeleteWebhook) MethodName() string
func (DeleteWebhook) ParseResult ¶
func (DeleteWebhook) ParseResult(response []byte) (*rawTypes.Result, error)
func (*DeleteWebhook) ProgressCallable ¶
func (entity *DeleteWebhook) ProgressCallable() rawTypes.ProgressCallable
type EditChatInviteLink ¶
type EditChatInviteLink struct { ChatID any `json:"chat_id"` CreatesJoinRequest bool `json:"creates_join_request,omitempty"` ExpireDate int64 `json:"expire_date,omitempty"` InviteLink string `json:"invite_link"` MemberLimit int `json:"member_limit,omitempty"` Name string `json:"name,omitempty"` }
EditChatInviteLink Use this method to edit a non-primary invite link created by the bot The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights Returns the edited invite link as a ChatInviteLink object.
func (*EditChatInviteLink) Files ¶
func (entity *EditChatInviteLink) Files() map[string]rawTypes.InputFile
func (EditChatInviteLink) MarshalJSON ¶
func (entity EditChatInviteLink) MarshalJSON() ([]byte, error)
func (EditChatInviteLink) MethodName ¶
func (EditChatInviteLink) MethodName() string
func (EditChatInviteLink) ParseResult ¶
func (EditChatInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
func (*EditChatInviteLink) ProgressCallable ¶
func (entity *EditChatInviteLink) ProgressCallable() rawTypes.ProgressCallable
type EditChatSubscriptionInviteLink ¶ added in v1.7.9
type EditChatSubscriptionInviteLink struct { ChatID any `json:"chat_id"` InviteLink string `json:"invite_link"` Name string `json:"name,omitempty"` }
EditChatSubscriptionInviteLink Use this method to edit a subscription invite link created by the bot The bot must have the can_invite_users administrator rights Returns the edited invite link as a ChatInviteLink object.
func (*EditChatSubscriptionInviteLink) Files ¶ added in v1.7.9
func (entity *EditChatSubscriptionInviteLink) Files() map[string]rawTypes.InputFile
func (EditChatSubscriptionInviteLink) MarshalJSON ¶ added in v1.7.9
func (entity EditChatSubscriptionInviteLink) MarshalJSON() ([]byte, error)
func (EditChatSubscriptionInviteLink) MethodName ¶ added in v1.7.9
func (EditChatSubscriptionInviteLink) MethodName() string
func (EditChatSubscriptionInviteLink) ParseResult ¶ added in v1.7.9
func (EditChatSubscriptionInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
func (*EditChatSubscriptionInviteLink) ProgressCallable ¶ added in v1.7.9
func (entity *EditChatSubscriptionInviteLink) ProgressCallable() rawTypes.ProgressCallable
type EditForumTopic ¶
type EditForumTopic struct { ChatID any `json:"chat_id"` IconCustomEmojiID string `json:"icon_custom_emoji_id,omitempty"` MessageThreadID int64 `json:"message_thread_id"` Name string `json:"name,omitempty"` }
EditForumTopic Use this method to edit name and icon of a topic in a forum supergroup chat The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights, unless it is the creator of the topic Returns True on success.
func (EditForumTopic) MarshalJSON ¶
func (entity EditForumTopic) MarshalJSON() ([]byte, error)
func (EditForumTopic) MethodName ¶
func (EditForumTopic) MethodName() string
func (EditForumTopic) ParseResult ¶
func (EditForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
func (*EditForumTopic) ProgressCallable ¶
func (entity *EditForumTopic) ProgressCallable() rawTypes.ProgressCallable
type EditGeneralForumTopic ¶
EditGeneralForumTopic Use this method to edit the name of the 'General' topic in a forum supergroup chat The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights Returns True on success.
func (*EditGeneralForumTopic) Files ¶
func (entity *EditGeneralForumTopic) Files() map[string]rawTypes.InputFile
func (EditGeneralForumTopic) MarshalJSON ¶
func (entity EditGeneralForumTopic) MarshalJSON() ([]byte, error)
func (EditGeneralForumTopic) MethodName ¶
func (EditGeneralForumTopic) MethodName() string
func (EditGeneralForumTopic) ParseResult ¶
func (EditGeneralForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
func (*EditGeneralForumTopic) ProgressCallable ¶
func (entity *EditGeneralForumTopic) ProgressCallable() rawTypes.ProgressCallable
type EditMessageCaption ¶
type EditMessageCaption struct { BusinessConnectionID string `json:"business_connection_id,omitempty"` Caption string `json:"caption,omitempty"` CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"` ChatID any `json:"chat_id,omitempty"` InlineMessageID string `json:"inline_message_id,omitempty"` MessageID int64 `json:"message_id,omitempty"` ParseMode string `json:"parse_mode,omitempty"` ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"` ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"` }
EditMessageCaption Use this method to edit captions of messages On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
func (*EditMessageCaption) Files ¶
func (entity *EditMessageCaption) Files() map[string]rawTypes.InputFile
func (EditMessageCaption) MarshalJSON ¶
func (entity EditMessageCaption) MarshalJSON() ([]byte, error)
func (EditMessageCaption) MethodName ¶
func (EditMessageCaption) MethodName() string
func (EditMessageCaption) ParseResult ¶
func (EditMessageCaption) ParseResult(response []byte) (*rawTypes.Result, error)
func (*EditMessageCaption) ProgressCallable ¶
func (entity *EditMessageCaption) ProgressCallable() rawTypes.ProgressCallable
type EditMessageChecklist ¶ added in v1.9.8
type EditMessageChecklist struct { BusinessConnectionID string `json:"business_connection_id"` ChatID int64 `json:"chat_id"` Checklist types.InputChecklist `json:"checklist"` MessageID int64 `json:"message_id"` ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"` }
EditMessageChecklist Use this method to edit a checklist on behalf of a connected business account On success, the edited Message is returned.
func (*EditMessageChecklist) Files ¶ added in v1.9.8
func (entity *EditMessageChecklist) Files() map[string]rawTypes.InputFile
func (EditMessageChecklist) MarshalJSON ¶ added in v1.9.8
func (entity EditMessageChecklist) MarshalJSON() ([]byte, error)
func (EditMessageChecklist) MethodName ¶ added in v1.9.8
func (EditMessageChecklist) MethodName() string
func (EditMessageChecklist) ParseResult ¶ added in v1.9.8
func (EditMessageChecklist) ParseResult(response []byte) (*rawTypes.Result, error)
func (*EditMessageChecklist) ProgressCallable ¶ added in v1.9.8
func (entity *EditMessageChecklist) ProgressCallable() rawTypes.ProgressCallable
type EditMessageLiveLocation ¶
type EditMessageLiveLocation struct { BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id,omitempty"` Heading int `json:"heading,omitempty"` HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty"` InlineMessageID string `json:"inline_message_id,omitempty"` Latitude float64 `json:"latitude"` LivePeriod int `json:"live_period,omitempty"` Longitude float64 `json:"longitude"` MessageID int64 `json:"message_id,omitempty"` ProximityAlertRadius int `json:"proximity_alert_radius,omitempty"` ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"` }
EditMessageLiveLocation Use this method to edit live location messages A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
func (*EditMessageLiveLocation) Files ¶
func (entity *EditMessageLiveLocation) Files() map[string]rawTypes.InputFile
func (EditMessageLiveLocation) MarshalJSON ¶
func (entity EditMessageLiveLocation) MarshalJSON() ([]byte, error)
func (EditMessageLiveLocation) MethodName ¶
func (EditMessageLiveLocation) MethodName() string
func (EditMessageLiveLocation) ParseResult ¶
func (EditMessageLiveLocation) ParseResult(response []byte) (*rawTypes.Result, error)
func (*EditMessageLiveLocation) ProgressCallable ¶
func (entity *EditMessageLiveLocation) ProgressCallable() rawTypes.ProgressCallable
type EditMessageMedia ¶
type EditMessageMedia struct { BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id,omitempty"` InlineMessageID string `json:"inline_message_id,omitempty"` Media types.InputMedia `json:"media"` MessageID int64 `json:"message_id,omitempty"` ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"` Progress rawTypes.ProgressCallable `json:"-"` }
EditMessageMedia Use this method to edit animation, audio, document, photo, or video messages, or to add media to text messages If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
func (*EditMessageMedia) Files ¶
func (entity *EditMessageMedia) Files() map[string]rawTypes.InputFile
func (EditMessageMedia) MarshalJSON ¶
func (entity EditMessageMedia) MarshalJSON() ([]byte, error)
func (EditMessageMedia) MethodName ¶
func (EditMessageMedia) MethodName() string
func (EditMessageMedia) ParseResult ¶
func (EditMessageMedia) ParseResult(response []byte) (*rawTypes.Result, error)
func (*EditMessageMedia) ProgressCallable ¶
func (entity *EditMessageMedia) ProgressCallable() rawTypes.ProgressCallable
type EditMessageReplyMarkup ¶
type EditMessageReplyMarkup struct { BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id,omitempty"` InlineMessageID string `json:"inline_message_id,omitempty"` MessageID int64 `json:"message_id,omitempty"` ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"` }
EditMessageReplyMarkup Use this method to edit only the reply markup of messages On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
func (*EditMessageReplyMarkup) Files ¶
func (entity *EditMessageReplyMarkup) Files() map[string]rawTypes.InputFile
func (EditMessageReplyMarkup) MarshalJSON ¶
func (entity EditMessageReplyMarkup) MarshalJSON() ([]byte, error)
func (EditMessageReplyMarkup) MethodName ¶
func (EditMessageReplyMarkup) MethodName() string
func (EditMessageReplyMarkup) ParseResult ¶
func (EditMessageReplyMarkup) ParseResult(response []byte) (*rawTypes.Result, error)
func (*EditMessageReplyMarkup) ProgressCallable ¶
func (entity *EditMessageReplyMarkup) ProgressCallable() rawTypes.ProgressCallable
type EditMessageText ¶
type EditMessageText struct { BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id,omitempty"` Entities []types.MessageEntity `json:"entities,omitempty"` InlineMessageID string `json:"inline_message_id,omitempty"` LinkPreviewOptions *types.LinkPreviewOptions `json:"link_preview_options,omitempty"` MessageID int64 `json:"message_id,omitempty"` ParseMode string `json:"parse_mode,omitempty"` ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"` Text string `json:"text"` }
EditMessageText Use this method to edit text and game messages On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
func (*EditMessageText) Files ¶
func (entity *EditMessageText) Files() map[string]rawTypes.InputFile
func (EditMessageText) MarshalJSON ¶
func (entity EditMessageText) MarshalJSON() ([]byte, error)
func (EditMessageText) MethodName ¶
func (EditMessageText) MethodName() string
func (EditMessageText) ParseResult ¶
func (EditMessageText) ParseResult(response []byte) (*rawTypes.Result, error)
func (*EditMessageText) ProgressCallable ¶
func (entity *EditMessageText) ProgressCallable() rawTypes.ProgressCallable
type EditStory ¶ added in v1.9.6
type EditStory struct { Areas []types.StoryArea `json:"areas,omitempty"` BusinessConnectionID string `json:"business_connection_id"` Caption string `json:"caption,omitempty"` CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"` Content types.InputStoryContent `json:"content"` ParseMode string `json:"parse_mode,omitempty"` StoryID int64 `json:"story_id"` }
EditStory Edits a story previously posted by the bot on behalf of a managed business account Requires the can_manage_stories business bot right Returns Story on success.
func (EditStory) MethodName ¶ added in v1.9.6
func (EditStory) ParseResult ¶ added in v1.9.6
func (*EditStory) ProgressCallable ¶ added in v1.9.6
func (entity *EditStory) ProgressCallable() rawTypes.ProgressCallable
type EditUserStarSubscription ¶ added in v1.8.8
type EditUserStarSubscription struct { IsCanceled bool `json:"is_canceled"` TelegramPaymentChargeID string `json:"telegram_payment_charge_id"` UserID int64 `json:"user_id"` }
EditUserStarSubscription Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars Returns True on success.
func (*EditUserStarSubscription) Files ¶ added in v1.8.8
func (entity *EditUserStarSubscription) Files() map[string]rawTypes.InputFile
func (EditUserStarSubscription) MethodName ¶ added in v1.8.8
func (EditUserStarSubscription) MethodName() string
func (EditUserStarSubscription) ParseResult ¶ added in v1.8.8
func (EditUserStarSubscription) ParseResult(response []byte) (*rawTypes.Result, error)
func (*EditUserStarSubscription) ProgressCallable ¶ added in v1.8.8
func (entity *EditUserStarSubscription) ProgressCallable() rawTypes.ProgressCallable
type ExportChatInviteLink ¶
type ExportChatInviteLink struct {
ChatID any `json:"chat_id"`
}
ExportChatInviteLink Use this method to generate a new primary invite link for a chat; any previously generated primary link is revoked The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights Returns the new invite link as String on success.
func (*ExportChatInviteLink) Files ¶
func (entity *ExportChatInviteLink) Files() map[string]rawTypes.InputFile
func (ExportChatInviteLink) MarshalJSON ¶
func (entity ExportChatInviteLink) MarshalJSON() ([]byte, error)
func (ExportChatInviteLink) MethodName ¶
func (ExportChatInviteLink) MethodName() string
func (ExportChatInviteLink) ParseResult ¶
func (ExportChatInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
func (*ExportChatInviteLink) ProgressCallable ¶
func (entity *ExportChatInviteLink) ProgressCallable() rawTypes.ProgressCallable
type ForwardMessage ¶
type ForwardMessage struct { ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` FromChatID int64 `json:"from_chat_id"` MessageID int64 `json:"message_id"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` VideoStartTimestamp int64 `json:"video_start_timestamp,omitempty"` }
ForwardMessage Use this method to forward messages of any kind Service messages and messages with protected content can't be forwarded On success, the sent Message is returned.
func (ForwardMessage) MarshalJSON ¶
func (entity ForwardMessage) MarshalJSON() ([]byte, error)
func (ForwardMessage) MethodName ¶
func (ForwardMessage) MethodName() string
func (ForwardMessage) ParseResult ¶
func (ForwardMessage) ParseResult(response []byte) (*rawTypes.Result, error)
func (*ForwardMessage) ProgressCallable ¶
func (entity *ForwardMessage) ProgressCallable() rawTypes.ProgressCallable
type ForwardMessages ¶ added in v1.6.3
type ForwardMessages struct { ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` FromChatID int64 `json:"from_chat_id"` MessageIDs []int64 `json:"message_ids,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` }
ForwardMessages Use this method to forward multiple messages of any kind If some of the specified messages can't be found or forwarded, they are skipped Service messages and messages with protected content can't be forwarded Album grouping is kept for forwarded messages On success, an array of MessageId of the sent messages is returned.
func (*ForwardMessages) Files ¶ added in v1.6.3
func (entity *ForwardMessages) Files() map[string]rawTypes.InputFile
func (ForwardMessages) MarshalJSON ¶ added in v1.6.3
func (entity ForwardMessages) MarshalJSON() ([]byte, error)
func (ForwardMessages) MethodName ¶ added in v1.6.3
func (ForwardMessages) MethodName() string
func (ForwardMessages) ParseResult ¶ added in v1.6.3
func (ForwardMessages) ParseResult(response []byte) (*rawTypes.Result, error)
func (*ForwardMessages) ProgressCallable ¶ added in v1.6.3
func (entity *ForwardMessages) ProgressCallable() rawTypes.ProgressCallable
type GetAvailableGifts ¶ added in v1.8.8
type GetAvailableGifts struct{}
GetAvailableGifts Returns the list of gifts that can be sent by the bot to users and channel chats Requires no parameters Returns a Gifts object.
func (*GetAvailableGifts) Files ¶ added in v1.8.8
func (entity *GetAvailableGifts) Files() map[string]rawTypes.InputFile
func (GetAvailableGifts) MethodName ¶ added in v1.8.8
func (GetAvailableGifts) MethodName() string
func (GetAvailableGifts) ParseResult ¶ added in v1.8.8
func (GetAvailableGifts) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetAvailableGifts) ProgressCallable ¶ added in v1.8.8
func (entity *GetAvailableGifts) ProgressCallable() rawTypes.ProgressCallable
type GetBusinessAccountGifts ¶ added in v1.9.6
type GetBusinessAccountGifts struct { BusinessConnectionID string `json:"business_connection_id"` ExcludeLimited bool `json:"exclude_limited,omitempty"` ExcludeSaved bool `json:"exclude_saved,omitempty"` ExcludeUnique bool `json:"exclude_unique,omitempty"` ExcludeUnlimited bool `json:"exclude_unlimited,omitempty"` ExcludeUnsaved bool `json:"exclude_unsaved,omitempty"` Limit int `json:"limit,omitempty"` Offset string `json:"offset,omitempty"` SortByPrice bool `json:"sort_by_price,omitempty"` }
GetBusinessAccountGifts Returns the gifts received and owned by a managed business account Requires the can_view_gifts_and_stars business bot right Returns OwnedGifts on success.
func (*GetBusinessAccountGifts) Files ¶ added in v1.9.6
func (entity *GetBusinessAccountGifts) Files() map[string]rawTypes.InputFile
func (GetBusinessAccountGifts) MethodName ¶ added in v1.9.6
func (GetBusinessAccountGifts) MethodName() string
func (GetBusinessAccountGifts) ParseResult ¶ added in v1.9.6
func (GetBusinessAccountGifts) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetBusinessAccountGifts) ProgressCallable ¶ added in v1.9.6
func (entity *GetBusinessAccountGifts) ProgressCallable() rawTypes.ProgressCallable
type GetBusinessAccountStarBalance ¶ added in v1.9.6
type GetBusinessAccountStarBalance struct {
BusinessConnectionID string `json:"business_connection_id"`
}
GetBusinessAccountStarBalance Returns the amount of Telegram Stars owned by a managed business account Requires the can_view_gifts_and_stars business bot right Returns StarAmount on success.
func (*GetBusinessAccountStarBalance) Files ¶ added in v1.9.6
func (entity *GetBusinessAccountStarBalance) Files() map[string]rawTypes.InputFile
func (GetBusinessAccountStarBalance) MethodName ¶ added in v1.9.6
func (GetBusinessAccountStarBalance) MethodName() string
func (GetBusinessAccountStarBalance) ParseResult ¶ added in v1.9.6
func (GetBusinessAccountStarBalance) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetBusinessAccountStarBalance) ProgressCallable ¶ added in v1.9.6
func (entity *GetBusinessAccountStarBalance) ProgressCallable() rawTypes.ProgressCallable
type GetBusinessConnection ¶ added in v1.6.7
type GetBusinessConnection struct {
BusinessConnectionID string `json:"business_connection_id"`
}
GetBusinessConnection Use this method to get information about the connection of the bot with a business account Returns a BusinessConnection object on success.
func (*GetBusinessConnection) Files ¶ added in v1.6.7
func (entity *GetBusinessConnection) Files() map[string]rawTypes.InputFile
func (GetBusinessConnection) MethodName ¶ added in v1.6.7
func (GetBusinessConnection) MethodName() string
func (GetBusinessConnection) ParseResult ¶ added in v1.6.7
func (GetBusinessConnection) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetBusinessConnection) ProgressCallable ¶ added in v1.6.7
func (entity *GetBusinessConnection) ProgressCallable() rawTypes.ProgressCallable
type GetChat ¶
type GetChat struct {
ChatID any `json:"chat_id"`
}
GetChat Use this method to get up-to-date information about the chat Returns a ChatFullInfo object on success.
func (GetChat) MarshalJSON ¶
func (GetChat) MethodName ¶
func (*GetChat) ProgressCallable ¶
func (entity *GetChat) ProgressCallable() rawTypes.ProgressCallable
type GetChatAdministrators ¶
type GetChatAdministrators struct {
ChatID any `json:"chat_id"`
}
GetChatAdministrators Use this method to get a list of administrators in a chat, which aren't bots Returns an Array of ChatMember objects.
func (*GetChatAdministrators) Files ¶
func (entity *GetChatAdministrators) Files() map[string]rawTypes.InputFile
func (GetChatAdministrators) MarshalJSON ¶
func (entity GetChatAdministrators) MarshalJSON() ([]byte, error)
func (GetChatAdministrators) MethodName ¶
func (GetChatAdministrators) MethodName() string
func (GetChatAdministrators) ParseResult ¶
func (GetChatAdministrators) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetChatAdministrators) ProgressCallable ¶
func (entity *GetChatAdministrators) ProgressCallable() rawTypes.ProgressCallable
type GetChatMember ¶
GetChatMember Use this method to get information about a member of a chat The method is only guaranteed to work for other users if the bot is an administrator in the chat Returns a ChatMember object on success.
func (GetChatMember) MarshalJSON ¶
func (entity GetChatMember) MarshalJSON() ([]byte, error)
func (GetChatMember) MethodName ¶
func (GetChatMember) MethodName() string
func (GetChatMember) ParseResult ¶
func (GetChatMember) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetChatMember) ProgressCallable ¶
func (entity *GetChatMember) ProgressCallable() rawTypes.ProgressCallable
type GetChatMemberCount ¶
type GetChatMemberCount struct {
ChatID any `json:"chat_id"`
}
GetChatMemberCount Use this method to get the number of members in a chat Returns Int on success.
func (*GetChatMemberCount) Files ¶
func (entity *GetChatMemberCount) Files() map[string]rawTypes.InputFile
func (GetChatMemberCount) MarshalJSON ¶
func (entity GetChatMemberCount) MarshalJSON() ([]byte, error)
func (GetChatMemberCount) MethodName ¶
func (GetChatMemberCount) MethodName() string
func (GetChatMemberCount) ParseResult ¶
func (GetChatMemberCount) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetChatMemberCount) ProgressCallable ¶
func (entity *GetChatMemberCount) ProgressCallable() rawTypes.ProgressCallable
type GetChatMenuButton ¶
type GetChatMenuButton struct {
ChatID int64 `json:"chat_id,omitempty"`
}
GetChatMenuButton Use this method to get the current value of the bot's menu button in a private chat, or the default menu button Returns MenuButton on success.
func (*GetChatMenuButton) Files ¶
func (entity *GetChatMenuButton) Files() map[string]rawTypes.InputFile
func (GetChatMenuButton) MethodName ¶
func (GetChatMenuButton) MethodName() string
func (GetChatMenuButton) ParseResult ¶
func (GetChatMenuButton) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetChatMenuButton) ProgressCallable ¶
func (entity *GetChatMenuButton) ProgressCallable() rawTypes.ProgressCallable
type GetCustomEmojiStickers ¶
type GetCustomEmojiStickers struct {
CustomEmojiIDs []string `json:"custom_emoji_ids,omitempty"`
}
GetCustomEmojiStickers Use this method to get information about custom emoji stickers by their identifiers Returns an Array of Sticker objects.
func (*GetCustomEmojiStickers) Files ¶
func (entity *GetCustomEmojiStickers) Files() map[string]rawTypes.InputFile
func (GetCustomEmojiStickers) MethodName ¶
func (GetCustomEmojiStickers) MethodName() string
func (GetCustomEmojiStickers) ParseResult ¶
func (GetCustomEmojiStickers) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetCustomEmojiStickers) ProgressCallable ¶
func (entity *GetCustomEmojiStickers) ProgressCallable() rawTypes.ProgressCallable
type GetFile ¶
type GetFile struct {
FileID string `json:"file_id"`
}
GetFile Use this method to get basic information about a file and prepare it for downloading For the moment, bots can download files of up to 20MB in size On success, a File object is returned The file can then be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>, where <file_path> is taken from the response It is guaranteed that the link will be valid for at least 1 hour When the link expires, a new one can be requested by calling getFile again. Note: This function may not preserve the original file name and MIME type You should save the file's MIME type and name (if available) when the File object is received.
func (GetFile) MethodName ¶
func (*GetFile) ProgressCallable ¶
func (entity *GetFile) ProgressCallable() rawTypes.ProgressCallable
type GetForumTopicIconStickers ¶
type GetForumTopicIconStickers struct{}
GetForumTopicIconStickers Use this method to get custom emoji stickers, which can be used as a forum topic icon by any user Requires no parameters Returns an Array of Sticker objects.
func (*GetForumTopicIconStickers) Files ¶
func (entity *GetForumTopicIconStickers) Files() map[string]rawTypes.InputFile
func (GetForumTopicIconStickers) MethodName ¶
func (GetForumTopicIconStickers) MethodName() string
func (GetForumTopicIconStickers) ParseResult ¶
func (GetForumTopicIconStickers) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetForumTopicIconStickers) ProgressCallable ¶
func (entity *GetForumTopicIconStickers) ProgressCallable() rawTypes.ProgressCallable
type GetGameHighScores ¶
type GetGameHighScores struct { ChatID int64 `json:"chat_id,omitempty"` InlineMessageID string `json:"inline_message_id,omitempty"` MessageID int64 `json:"message_id,omitempty"` UserID int64 `json:"user_id"` }
GetGameHighScores Use this method to get data for high score tables Will return the score of the specified user and several of their neighbors in a game Returns an Array of GameHighScore objects.
func (*GetGameHighScores) Files ¶
func (entity *GetGameHighScores) Files() map[string]rawTypes.InputFile
func (GetGameHighScores) MethodName ¶
func (GetGameHighScores) MethodName() string
func (GetGameHighScores) ParseResult ¶
func (GetGameHighScores) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetGameHighScores) ProgressCallable ¶
func (entity *GetGameHighScores) ProgressCallable() rawTypes.ProgressCallable
type GetMe ¶
type GetMe struct{}
GetMe A simple method for testing your bot's authentication token Requires no parameters Returns basic information about the bot in form of a User object.
func (GetMe) MethodName ¶
func (*GetMe) ProgressCallable ¶
func (entity *GetMe) ProgressCallable() rawTypes.ProgressCallable
type GetMyCommands ¶
type GetMyCommands struct { LanguageCode string `json:"language_code,omitempty"` Scope *types.BotCommandScope `json:"scope,omitempty"` }
GetMyCommands Use this method to get the current list of the bot's commands for the given scope and user language Returns an Array of BotCommand objects If commands aren't set, an empty list is returned.
func (GetMyCommands) MarshalJSON ¶ added in v1.8.0
func (entity GetMyCommands) MarshalJSON() ([]byte, error)
func (GetMyCommands) MethodName ¶
func (GetMyCommands) MethodName() string
func (GetMyCommands) ParseResult ¶
func (GetMyCommands) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetMyCommands) ProgressCallable ¶
func (entity *GetMyCommands) ProgressCallable() rawTypes.ProgressCallable
type GetMyDefaultAdministratorRights ¶
type GetMyDefaultAdministratorRights struct {
ForChannels bool `json:"for_channels,omitempty"`
}
GetMyDefaultAdministratorRights Use this method to get the current default administrator rights of the bot Returns ChatAdministratorRights on success.
func (*GetMyDefaultAdministratorRights) Files ¶
func (entity *GetMyDefaultAdministratorRights) Files() map[string]rawTypes.InputFile
func (GetMyDefaultAdministratorRights) MethodName ¶
func (GetMyDefaultAdministratorRights) MethodName() string
func (GetMyDefaultAdministratorRights) ParseResult ¶
func (GetMyDefaultAdministratorRights) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetMyDefaultAdministratorRights) ProgressCallable ¶
func (entity *GetMyDefaultAdministratorRights) ProgressCallable() rawTypes.ProgressCallable
type GetMyDescription ¶
type GetMyDescription struct {
LanguageCode string `json:"language_code,omitempty"`
}
GetMyDescription Use this method to get the current bot description for the given user language Returns BotDescription on success.
func (*GetMyDescription) Files ¶
func (entity *GetMyDescription) Files() map[string]rawTypes.InputFile
func (GetMyDescription) MethodName ¶
func (GetMyDescription) MethodName() string
func (GetMyDescription) ParseResult ¶
func (GetMyDescription) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetMyDescription) ProgressCallable ¶
func (entity *GetMyDescription) ProgressCallable() rawTypes.ProgressCallable
type GetMyName ¶
type GetMyName struct {
LanguageCode string `json:"language_code,omitempty"`
}
GetMyName Use this method to get the current bot name for the given user language Returns BotName on success.
func (GetMyName) MethodName ¶
func (GetMyName) ParseResult ¶
func (*GetMyName) ProgressCallable ¶
func (entity *GetMyName) ProgressCallable() rawTypes.ProgressCallable
type GetMyShortDescription ¶
type GetMyShortDescription struct {
LanguageCode string `json:"language_code,omitempty"`
}
GetMyShortDescription Use this method to get the current bot short description for the given user language Returns BotShortDescription on success.
func (*GetMyShortDescription) Files ¶
func (entity *GetMyShortDescription) Files() map[string]rawTypes.InputFile
func (GetMyShortDescription) MethodName ¶
func (GetMyShortDescription) MethodName() string
func (GetMyShortDescription) ParseResult ¶
func (GetMyShortDescription) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetMyShortDescription) ProgressCallable ¶
func (entity *GetMyShortDescription) ProgressCallable() rawTypes.ProgressCallable
type GetMyStarBalance ¶ added in v1.9.8
type GetMyStarBalance struct{}
GetMyStarBalance A method to get the current Telegram Stars balance of the bot Requires no parameters On success, returns a StarAmount object.
func (*GetMyStarBalance) Files ¶ added in v1.9.8
func (entity *GetMyStarBalance) Files() map[string]rawTypes.InputFile
func (GetMyStarBalance) MethodName ¶ added in v1.9.8
func (GetMyStarBalance) MethodName() string
func (GetMyStarBalance) ParseResult ¶ added in v1.9.8
func (GetMyStarBalance) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetMyStarBalance) ProgressCallable ¶ added in v1.9.8
func (entity *GetMyStarBalance) ProgressCallable() rawTypes.ProgressCallable
type GetStarTransactions ¶ added in v1.7.1
type GetStarTransactions struct { Limit int `json:"limit,omitempty"` Offset int `json:"offset,omitempty"` }
GetStarTransactions Returns the bot's Telegram Star transactions in chronological order On success, returns a StarTransactions object.
func (*GetStarTransactions) Files ¶ added in v1.7.1
func (entity *GetStarTransactions) Files() map[string]rawTypes.InputFile
func (GetStarTransactions) MethodName ¶ added in v1.7.1
func (GetStarTransactions) MethodName() string
func (GetStarTransactions) ParseResult ¶ added in v1.7.1
func (GetStarTransactions) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetStarTransactions) ProgressCallable ¶ added in v1.7.1
func (entity *GetStarTransactions) ProgressCallable() rawTypes.ProgressCallable
type GetStickerSet ¶
type GetStickerSet struct {
Name string `json:"name"`
}
GetStickerSet Use this method to get a sticker set On success, a StickerSet object is returned.
func (GetStickerSet) MethodName ¶
func (GetStickerSet) MethodName() string
func (GetStickerSet) ParseResult ¶
func (GetStickerSet) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetStickerSet) ProgressCallable ¶
func (entity *GetStickerSet) ProgressCallable() rawTypes.ProgressCallable
type GetUpdates ¶
type GetUpdates struct { AllowedUpdates []string `json:"allowed_updates,omitempty"` Limit int `json:"limit,omitempty"` Offset int `json:"offset,omitempty"` Timeout int `json:"timeout,omitempty"` }
GetUpdates Use this method to receive incoming updates using long polling (wiki) Returns an Array of Update objects.
func (GetUpdates) MethodName ¶
func (GetUpdates) MethodName() string
func (GetUpdates) ParseResult ¶
func (GetUpdates) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetUpdates) ProgressCallable ¶
func (entity *GetUpdates) ProgressCallable() rawTypes.ProgressCallable
type GetUserChatBoosts ¶ added in v1.6.3
GetUserChatBoosts Use this method to get the list of boosts added to a chat by a user Requires administrator rights in the chat Returns a UserChatBoosts object.
func (*GetUserChatBoosts) Files ¶ added in v1.6.3
func (entity *GetUserChatBoosts) Files() map[string]rawTypes.InputFile
func (GetUserChatBoosts) MarshalJSON ¶ added in v1.6.3
func (entity GetUserChatBoosts) MarshalJSON() ([]byte, error)
func (GetUserChatBoosts) MethodName ¶ added in v1.6.3
func (GetUserChatBoosts) MethodName() string
func (GetUserChatBoosts) ParseResult ¶ added in v1.6.3
func (GetUserChatBoosts) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetUserChatBoosts) ProgressCallable ¶ added in v1.6.3
func (entity *GetUserChatBoosts) ProgressCallable() rawTypes.ProgressCallable
type GetUserProfilePhotos ¶
type GetUserProfilePhotos struct { Limit int `json:"limit,omitempty"` Offset int `json:"offset,omitempty"` UserID int64 `json:"user_id"` }
GetUserProfilePhotos Use this method to get a list of profile pictures for a user Returns a UserProfilePhotos object.
func (*GetUserProfilePhotos) Files ¶
func (entity *GetUserProfilePhotos) Files() map[string]rawTypes.InputFile
func (GetUserProfilePhotos) MethodName ¶
func (GetUserProfilePhotos) MethodName() string
func (GetUserProfilePhotos) ParseResult ¶
func (GetUserProfilePhotos) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetUserProfilePhotos) ProgressCallable ¶
func (entity *GetUserProfilePhotos) ProgressCallable() rawTypes.ProgressCallable
type GetWebhookInfo ¶
type GetWebhookInfo struct{}
GetWebhookInfo Use this method to get current webhook status Requires no parameters On success, returns a WebhookInfo object If the bot is using getUpdates, will return an object with the url field empty.
func (GetWebhookInfo) MethodName ¶
func (GetWebhookInfo) MethodName() string
func (GetWebhookInfo) ParseResult ¶
func (GetWebhookInfo) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GetWebhookInfo) ProgressCallable ¶
func (entity *GetWebhookInfo) ProgressCallable() rawTypes.ProgressCallable
type GiftPremiumSubscription ¶ added in v1.9.6
type GiftPremiumSubscription struct { MonthCount int `json:"month_count"` StarCount int `json:"star_count"` Text string `json:"text,omitempty"` TextEntities []types.MessageEntity `json:"text_entities,omitempty"` TextParseMode string `json:"text_parse_mode,omitempty"` UserID int64 `json:"user_id"` }
GiftPremiumSubscription Gifts a Telegram Premium subscription to the given user Returns True on success.
func (*GiftPremiumSubscription) Files ¶ added in v1.9.6
func (entity *GiftPremiumSubscription) Files() map[string]rawTypes.InputFile
func (GiftPremiumSubscription) MethodName ¶ added in v1.9.6
func (GiftPremiumSubscription) MethodName() string
func (GiftPremiumSubscription) ParseResult ¶ added in v1.9.6
func (GiftPremiumSubscription) ParseResult(response []byte) (*rawTypes.Result, error)
func (*GiftPremiumSubscription) ProgressCallable ¶ added in v1.9.6
func (entity *GiftPremiumSubscription) ProgressCallable() rawTypes.ProgressCallable
type HideGeneralForumTopic ¶
type HideGeneralForumTopic struct {
ChatID any `json:"chat_id"`
}
HideGeneralForumTopic Use this method to hide the 'General' topic in a forum supergroup chat The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights The topic will be automatically closed if it was open Returns True on success.
func (*HideGeneralForumTopic) Files ¶
func (entity *HideGeneralForumTopic) Files() map[string]rawTypes.InputFile
func (HideGeneralForumTopic) MarshalJSON ¶
func (entity HideGeneralForumTopic) MarshalJSON() ([]byte, error)
func (HideGeneralForumTopic) MethodName ¶
func (HideGeneralForumTopic) MethodName() string
func (HideGeneralForumTopic) ParseResult ¶
func (HideGeneralForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
func (*HideGeneralForumTopic) ProgressCallable ¶
func (entity *HideGeneralForumTopic) ProgressCallable() rawTypes.ProgressCallable
type LeaveChat ¶
type LeaveChat struct {
ChatID any `json:"chat_id"`
}
LeaveChat Use this method for your bot to leave a group, supergroup or channel Returns True on success.
func (LeaveChat) MarshalJSON ¶
func (LeaveChat) MethodName ¶
func (LeaveChat) ParseResult ¶
func (*LeaveChat) ProgressCallable ¶
func (entity *LeaveChat) ProgressCallable() rawTypes.ProgressCallable
type LogOut ¶
type LogOut struct{}
LogOut Use this method to log out from the cloud Bot API server before launching the bot locally You must log out the bot before running it locally, otherwise there is no guarantee that the bot will receive updates After a successful call, you can immediately log in on a local server, but will not be able to log in back to the cloud Bot API server for 10 minutes Returns True on success Requires no parameters.
func (LogOut) MethodName ¶
func (*LogOut) ProgressCallable ¶
func (entity *LogOut) ProgressCallable() rawTypes.ProgressCallable
type PinChatMessage ¶
type PinChatMessage struct { BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id"` DisableNotification bool `json:"disable_notification,omitempty"` MessageID int64 `json:"message_id"` }
PinChatMessage Use this method to add a message to the list of pinned messages in a chat In private chats and channel direct messages chats, all non-service messages can be pinned Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to pin messages in groups and channels respectively Returns True on success.
func (PinChatMessage) MarshalJSON ¶
func (entity PinChatMessage) MarshalJSON() ([]byte, error)
func (PinChatMessage) MethodName ¶
func (PinChatMessage) MethodName() string
func (PinChatMessage) ParseResult ¶
func (PinChatMessage) ParseResult(response []byte) (*rawTypes.Result, error)
func (*PinChatMessage) ProgressCallable ¶
func (entity *PinChatMessage) ProgressCallable() rawTypes.ProgressCallable
type PostStory ¶ added in v1.9.6
type PostStory struct { ActivePeriod int `json:"active_period"` Areas []types.StoryArea `json:"areas,omitempty"` BusinessConnectionID string `json:"business_connection_id"` Caption string `json:"caption,omitempty"` CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"` Content types.InputStoryContent `json:"content"` ParseMode string `json:"parse_mode,omitempty"` PostToChatPage bool `json:"post_to_chat_page,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` }
PostStory Posts a story on behalf of a managed business account Requires the can_manage_stories business bot right Returns Story on success.
func (PostStory) MethodName ¶ added in v1.9.6
func (PostStory) ParseResult ¶ added in v1.9.6
func (*PostStory) ProgressCallable ¶ added in v1.9.6
func (entity *PostStory) ProgressCallable() rawTypes.ProgressCallable
type PromoteChatMember ¶
type PromoteChatMember struct { CanChangeInfo bool `json:"can_change_info,omitempty"` CanDeleteMessages bool `json:"can_delete_messages,omitempty"` CanDeleteStories bool `json:"can_delete_stories,omitempty"` CanEditMessages bool `json:"can_edit_messages,omitempty"` CanEditStories bool `json:"can_edit_stories,omitempty"` CanInviteUsers bool `json:"can_invite_users,omitempty"` CanManageChat bool `json:"can_manage_chat,omitempty"` CanManageDirectMessages bool `json:"can_manage_direct_messages,omitempty"` CanManageTopics bool `json:"can_manage_topics,omitempty"` CanManageVideoChats bool `json:"can_manage_video_chats,omitempty"` CanPinMessages bool `json:"can_pin_messages,omitempty"` CanPostMessages bool `json:"can_post_messages,omitempty"` CanPostStories bool `json:"can_post_stories,omitempty"` CanPromoteMembers bool `json:"can_promote_members,omitempty"` CanRestrictMembers bool `json:"can_restrict_members,omitempty"` ChatID any `json:"chat_id"` IsAnonymous bool `json:"is_anonymous,omitempty"` UserID int64 `json:"user_id"` }
PromoteChatMember Use this method to promote or demote a user in a supergroup or a channel The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights Pass False for all boolean parameters to demote a user Returns True on success.
func (*PromoteChatMember) Files ¶
func (entity *PromoteChatMember) Files() map[string]rawTypes.InputFile
func (PromoteChatMember) MarshalJSON ¶
func (entity PromoteChatMember) MarshalJSON() ([]byte, error)
func (PromoteChatMember) MethodName ¶
func (PromoteChatMember) MethodName() string
func (PromoteChatMember) ParseResult ¶
func (PromoteChatMember) ParseResult(response []byte) (*rawTypes.Result, error)
func (*PromoteChatMember) ProgressCallable ¶
func (entity *PromoteChatMember) ProgressCallable() rawTypes.ProgressCallable
type ReadBusinessMessage ¶ added in v1.9.6
type ReadBusinessMessage struct { BusinessConnectionID string `json:"business_connection_id"` ChatID int64 `json:"chat_id"` MessageID int64 `json:"message_id"` }
ReadBusinessMessage Marks incoming message as read on behalf of a business account Requires the can_read_messages business bot right Returns True on success.
func (*ReadBusinessMessage) Files ¶ added in v1.9.6
func (entity *ReadBusinessMessage) Files() map[string]rawTypes.InputFile
func (ReadBusinessMessage) MethodName ¶ added in v1.9.6
func (ReadBusinessMessage) MethodName() string
func (ReadBusinessMessage) ParseResult ¶ added in v1.9.6
func (ReadBusinessMessage) ParseResult(response []byte) (*rawTypes.Result, error)
func (*ReadBusinessMessage) ProgressCallable ¶ added in v1.9.6
func (entity *ReadBusinessMessage) ProgressCallable() rawTypes.ProgressCallable
type RefundStarPayment ¶ added in v1.6.9
type RefundStarPayment struct { TelegramPaymentChargeID string `json:"telegram_payment_charge_id"` UserID int64 `json:"user_id"` }
RefundStarPayment Refunds a successful payment in Telegram Stars Returns True on success.
func (*RefundStarPayment) Files ¶ added in v1.6.9
func (entity *RefundStarPayment) Files() map[string]rawTypes.InputFile
func (RefundStarPayment) MethodName ¶ added in v1.6.9
func (RefundStarPayment) MethodName() string
func (RefundStarPayment) ParseResult ¶ added in v1.6.9
func (RefundStarPayment) ParseResult(response []byte) (*rawTypes.Result, error)
func (*RefundStarPayment) ProgressCallable ¶ added in v1.6.9
func (entity *RefundStarPayment) ProgressCallable() rawTypes.ProgressCallable
type RemoveBusinessAccountProfilePhoto ¶ added in v1.9.6
type RemoveBusinessAccountProfilePhoto struct { BusinessConnectionID string `json:"business_connection_id"` IsPublic bool `json:"is_public,omitempty"` }
RemoveBusinessAccountProfilePhoto Removes the current profile photo of a managed business account Requires the can_edit_profile_photo business bot right Returns True on success.
func (*RemoveBusinessAccountProfilePhoto) Files ¶ added in v1.9.6
func (entity *RemoveBusinessAccountProfilePhoto) Files() map[string]rawTypes.InputFile
func (RemoveBusinessAccountProfilePhoto) MethodName ¶ added in v1.9.6
func (RemoveBusinessAccountProfilePhoto) MethodName() string
func (RemoveBusinessAccountProfilePhoto) ParseResult ¶ added in v1.9.6
func (RemoveBusinessAccountProfilePhoto) ParseResult(response []byte) (*rawTypes.Result, error)
func (*RemoveBusinessAccountProfilePhoto) ProgressCallable ¶ added in v1.9.6
func (entity *RemoveBusinessAccountProfilePhoto) ProgressCallable() rawTypes.ProgressCallable
type RemoveChatVerification ¶ added in v1.9.0
type RemoveChatVerification struct {
ChatID any `json:"chat_id"`
}
RemoveChatVerification Removes verification from a chat that is currently verified on behalf of the organization represented by the bot Returns True on success.
func (*RemoveChatVerification) Files ¶ added in v1.9.0
func (entity *RemoveChatVerification) Files() map[string]rawTypes.InputFile
func (RemoveChatVerification) MarshalJSON ¶ added in v1.9.0
func (entity RemoveChatVerification) MarshalJSON() ([]byte, error)
func (RemoveChatVerification) MethodName ¶ added in v1.9.0
func (RemoveChatVerification) MethodName() string
func (RemoveChatVerification) ParseResult ¶ added in v1.9.0
func (RemoveChatVerification) ParseResult(response []byte) (*rawTypes.Result, error)
func (*RemoveChatVerification) ProgressCallable ¶ added in v1.9.0
func (entity *RemoveChatVerification) ProgressCallable() rawTypes.ProgressCallable
type RemoveUserVerification ¶ added in v1.9.0
type RemoveUserVerification struct {
UserID int64 `json:"user_id"`
}
RemoveUserVerification Removes verification from a user who is currently verified on behalf of the organization represented by the bot Returns True on success.
func (*RemoveUserVerification) Files ¶ added in v1.9.0
func (entity *RemoveUserVerification) Files() map[string]rawTypes.InputFile
func (RemoveUserVerification) MethodName ¶ added in v1.9.0
func (RemoveUserVerification) MethodName() string
func (RemoveUserVerification) ParseResult ¶ added in v1.9.0
func (RemoveUserVerification) ParseResult(response []byte) (*rawTypes.Result, error)
func (*RemoveUserVerification) ProgressCallable ¶ added in v1.9.0
func (entity *RemoveUserVerification) ProgressCallable() rawTypes.ProgressCallable
type ReopenForumTopic ¶
type ReopenForumTopic struct { ChatID any `json:"chat_id"` MessageThreadID int64 `json:"message_thread_id"` }
ReopenForumTopic Use this method to reopen a closed topic in a forum supergroup chat The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights, unless it is the creator of the topic Returns True on success.
func (*ReopenForumTopic) Files ¶
func (entity *ReopenForumTopic) Files() map[string]rawTypes.InputFile
func (ReopenForumTopic) MarshalJSON ¶
func (entity ReopenForumTopic) MarshalJSON() ([]byte, error)
func (ReopenForumTopic) MethodName ¶
func (ReopenForumTopic) MethodName() string
func (ReopenForumTopic) ParseResult ¶
func (ReopenForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
func (*ReopenForumTopic) ProgressCallable ¶
func (entity *ReopenForumTopic) ProgressCallable() rawTypes.ProgressCallable
type ReopenGeneralForumTopic ¶
type ReopenGeneralForumTopic struct {
ChatID any `json:"chat_id"`
}
ReopenGeneralForumTopic Use this method to reopen a closed 'General' topic in a forum supergroup chat The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights The topic will be automatically unhidden if it was hidden Returns True on success.
func (*ReopenGeneralForumTopic) Files ¶
func (entity *ReopenGeneralForumTopic) Files() map[string]rawTypes.InputFile
func (ReopenGeneralForumTopic) MarshalJSON ¶
func (entity ReopenGeneralForumTopic) MarshalJSON() ([]byte, error)
func (ReopenGeneralForumTopic) MethodName ¶
func (ReopenGeneralForumTopic) MethodName() string
func (ReopenGeneralForumTopic) ParseResult ¶
func (ReopenGeneralForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
func (*ReopenGeneralForumTopic) ProgressCallable ¶
func (entity *ReopenGeneralForumTopic) ProgressCallable() rawTypes.ProgressCallable
type ReplaceStickerInSet ¶ added in v1.6.7
type ReplaceStickerInSet struct { Name string `json:"name"` OldSticker string `json:"old_sticker"` Sticker types.InputSticker `json:"sticker"` UserID int64 `json:"user_id"` }
ReplaceStickerInSet Use this method to replace an existing sticker in a sticker set with a new one The method is equivalent to calling deleteStickerFromSet, then addStickerToSet, then setStickerPositionInSet Returns True on success.
func (*ReplaceStickerInSet) Files ¶ added in v1.6.7
func (entity *ReplaceStickerInSet) Files() map[string]rawTypes.InputFile
func (ReplaceStickerInSet) MethodName ¶ added in v1.6.7
func (ReplaceStickerInSet) MethodName() string
func (ReplaceStickerInSet) ParseResult ¶ added in v1.6.7
func (ReplaceStickerInSet) ParseResult(response []byte) (*rawTypes.Result, error)
func (*ReplaceStickerInSet) ProgressCallable ¶ added in v1.6.7
func (entity *ReplaceStickerInSet) ProgressCallable() rawTypes.ProgressCallable
type RestrictChatMember ¶
type RestrictChatMember struct { ChatID any `json:"chat_id"` Permissions types.ChatPermissions `json:"permissions"` UntilDate int64 `json:"until_date,omitempty"` UseIndependentChatPermissions bool `json:"use_independent_chat_permissions,omitempty"` UserID int64 `json:"user_id"` }
RestrictChatMember Use this method to restrict a user in a supergroup The bot must be an administrator in the supergroup for this to work and must have the appropriate administrator rights Pass True for all permissions to lift restrictions from a user Returns True on success.
func (*RestrictChatMember) Files ¶
func (entity *RestrictChatMember) Files() map[string]rawTypes.InputFile
func (RestrictChatMember) MarshalJSON ¶
func (entity RestrictChatMember) MarshalJSON() ([]byte, error)
func (RestrictChatMember) MethodName ¶
func (RestrictChatMember) MethodName() string
func (RestrictChatMember) ParseResult ¶
func (RestrictChatMember) ParseResult(response []byte) (*rawTypes.Result, error)
func (*RestrictChatMember) ProgressCallable ¶
func (entity *RestrictChatMember) ProgressCallable() rawTypes.ProgressCallable
type RevokeChatInviteLink ¶
type RevokeChatInviteLink struct { ChatID any `json:"chat_id"` InviteLink string `json:"invite_link"` }
RevokeChatInviteLink Use this method to revoke an invite link created by the bot If the primary link is revoked, a new link is automatically generated The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights Returns the revoked invite link as ChatInviteLink object.
func (*RevokeChatInviteLink) Files ¶
func (entity *RevokeChatInviteLink) Files() map[string]rawTypes.InputFile
func (RevokeChatInviteLink) MarshalJSON ¶
func (entity RevokeChatInviteLink) MarshalJSON() ([]byte, error)
func (RevokeChatInviteLink) MethodName ¶
func (RevokeChatInviteLink) MethodName() string
func (RevokeChatInviteLink) ParseResult ¶
func (RevokeChatInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
func (*RevokeChatInviteLink) ProgressCallable ¶
func (entity *RevokeChatInviteLink) ProgressCallable() rawTypes.ProgressCallable
type SavePreparedInlineMessage ¶ added in v1.8.8
type SavePreparedInlineMessage struct { AllowBotChats bool `json:"allow_bot_chats,omitempty"` AllowChannelChats bool `json:"allow_channel_chats,omitempty"` AllowGroupChats bool `json:"allow_group_chats,omitempty"` AllowUserChats bool `json:"allow_user_chats,omitempty"` Result types.InlineQueryResult `json:"result"` UserID int64 `json:"user_id"` }
SavePreparedInlineMessage Stores a message that can be sent by a user of a Mini App Returns a PreparedInlineMessage object.
func (*SavePreparedInlineMessage) Files ¶ added in v1.8.8
func (entity *SavePreparedInlineMessage) Files() map[string]rawTypes.InputFile
func (SavePreparedInlineMessage) MethodName ¶ added in v1.8.8
func (SavePreparedInlineMessage) MethodName() string
func (SavePreparedInlineMessage) ParseResult ¶ added in v1.8.8
func (SavePreparedInlineMessage) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SavePreparedInlineMessage) ProgressCallable ¶ added in v1.8.8
func (entity *SavePreparedInlineMessage) ProgressCallable() rawTypes.ProgressCallable
type SendAnimation ¶
type SendAnimation struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` Animation rawTypes.InputFile `json:"animation,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` Caption string `json:"caption,omitempty"` CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"` ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` Duration int `json:"duration,omitempty"` HasSpoiler bool `json:"has_spoiler,omitempty"` Height int `json:"height,omitempty"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ParseMode string `json:"parse_mode,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` Thumbnail rawTypes.InputFile `json:"thumbnail,omitempty"` Width int64 `json:"width,omitempty"` Progress rawTypes.ProgressCallable `json:"-"` }
SendAnimation Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound) On success, the sent Message is returned Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future.
func (SendAnimation) MarshalJSON ¶
func (entity SendAnimation) MarshalJSON() ([]byte, error)
func (SendAnimation) MethodName ¶
func (SendAnimation) MethodName() string
func (SendAnimation) ParseResult ¶
func (SendAnimation) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SendAnimation) ProgressCallable ¶
func (entity *SendAnimation) ProgressCallable() rawTypes.ProgressCallable
type SendAudio ¶
type SendAudio struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` Audio rawTypes.InputFile `json:"audio,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` Caption string `json:"caption,omitempty"` CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"` ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` Duration int `json:"duration,omitempty"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ParseMode string `json:"parse_mode,omitempty"` Performer string `json:"performer,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` Thumbnail rawTypes.InputFile `json:"thumbnail,omitempty"` Title string `json:"title,omitempty"` Progress rawTypes.ProgressCallable `json:"-"` }
SendAudio Use this method to send audio files, if you want Telegram clients to display them in the music player Your audio must be in the .MP3 or .M4A format On success, the sent Message is returned Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future. For sending voice messages, use the sendVoice method instead.
func (SendAudio) MarshalJSON ¶
func (SendAudio) MethodName ¶
func (SendAudio) ParseResult ¶
func (*SendAudio) ProgressCallable ¶
func (entity *SendAudio) ProgressCallable() rawTypes.ProgressCallable
type SendChatAction ¶
type SendChatAction struct { Action string `json:"action"` BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id"` MessageThreadID int64 `json:"message_thread_id,omitempty"` }
SendChatAction Use this method when you need to tell the user that something is happening on the bot's side The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status) Returns True on success. We only recommend using this method when a response from the bot will take a noticeable amount of time to arrive.
func (SendChatAction) MarshalJSON ¶
func (entity SendChatAction) MarshalJSON() ([]byte, error)
func (SendChatAction) MethodName ¶
func (SendChatAction) MethodName() string
func (SendChatAction) ParseResult ¶
func (SendChatAction) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SendChatAction) ProgressCallable ¶
func (entity *SendChatAction) ProgressCallable() rawTypes.ProgressCallable
type SendChecklist ¶ added in v1.9.8
type SendChecklist struct { BusinessConnectionID string `json:"business_connection_id"` ChatID int64 `json:"chat_id"` Checklist types.InputChecklist `json:"checklist"` DisableNotification bool `json:"disable_notification,omitempty"` MessageEffectID string `json:"message_effect_id,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` }
SendChecklist Use this method to send a checklist on behalf of a connected business account On success, the sent Message is returned.
func (*SendChecklist) Files ¶ added in v1.9.8
func (entity *SendChecklist) Files() map[string]rawTypes.InputFile
func (SendChecklist) MarshalJSON ¶ added in v1.9.8
func (entity SendChecklist) MarshalJSON() ([]byte, error)
func (SendChecklist) MethodName ¶ added in v1.9.8
func (SendChecklist) MethodName() string
func (SendChecklist) ParseResult ¶ added in v1.9.8
func (SendChecklist) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SendChecklist) ProgressCallable ¶ added in v1.9.8
func (entity *SendChecklist) ProgressCallable() rawTypes.ProgressCallable
type SendContact ¶
type SendContact struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` FirstName string `json:"first_name"` LastName string `json:"last_name,omitempty"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` PhoneNumber string `json:"phone_number"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` Vcard string `json:"vcard,omitempty"` }
SendContact Use this method to send phone contacts On success, the sent Message is returned.
func (SendContact) MarshalJSON ¶
func (entity SendContact) MarshalJSON() ([]byte, error)
func (SendContact) MethodName ¶
func (SendContact) MethodName() string
func (SendContact) ParseResult ¶
func (SendContact) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SendContact) ProgressCallable ¶
func (entity *SendContact) ProgressCallable() rawTypes.ProgressCallable
type SendDice ¶
type SendDice struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` Emoji string `json:"emoji,omitempty"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` }
SendDice Use this method to send an animated emoji that will display a random value On success, the sent Message is returned.
func (SendDice) MarshalJSON ¶
func (SendDice) MethodName ¶
func (SendDice) ParseResult ¶
func (*SendDice) ProgressCallable ¶
func (entity *SendDice) ProgressCallable() rawTypes.ProgressCallable
type SendDocument ¶
type SendDocument struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` Caption string `json:"caption,omitempty"` CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"` ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableContentTypeDetection bool `json:"disable_content_type_detection,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` Document rawTypes.InputFile `json:"document,omitempty"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ParseMode string `json:"parse_mode,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` Thumbnail rawTypes.InputFile `json:"thumbnail,omitempty"` Progress rawTypes.ProgressCallable `json:"-"` }
SendDocument Use this method to send general files On success, the sent Message is returned Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.
func (SendDocument) MarshalJSON ¶
func (entity SendDocument) MarshalJSON() ([]byte, error)
func (SendDocument) MethodName ¶
func (SendDocument) MethodName() string
func (SendDocument) ParseResult ¶
func (SendDocument) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SendDocument) ProgressCallable ¶
func (entity *SendDocument) ProgressCallable() rawTypes.ProgressCallable
type SendGame ¶
type SendGame struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID int64 `json:"chat_id"` DisableNotification bool `json:"disable_notification,omitempty"` GameShortName string `json:"game_short_name"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` }
SendGame Use this method to send a game On success, the sent Message is returned.
func (SendGame) MarshalJSON ¶ added in v1.8.0
func (SendGame) MethodName ¶
func (SendGame) ParseResult ¶
func (*SendGame) ProgressCallable ¶
func (entity *SendGame) ProgressCallable() rawTypes.ProgressCallable
type SendGift ¶ added in v1.8.8
type SendGift struct { ChatID any `json:"chat_id,omitempty"` GiftID string `json:"gift_id"` PayForUpgrade bool `json:"pay_for_upgrade,omitempty"` Text string `json:"text,omitempty"` TextEntities []types.MessageEntity `json:"text_entities,omitempty"` TextParseMode string `json:"text_parse_mode,omitempty"` UserID int64 `json:"user_id,omitempty"` }
SendGift Sends a gift to the given user or channel chat The gift can't be converted to Telegram Stars by the receiver Returns True on success.
func (SendGift) MarshalJSON ¶ added in v1.9.2
func (SendGift) MethodName ¶ added in v1.8.8
func (SendGift) ParseResult ¶ added in v1.8.8
func (*SendGift) ProgressCallable ¶ added in v1.8.8
func (entity *SendGift) ProgressCallable() rawTypes.ProgressCallable
type SendInvoice ¶
type SendInvoice struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` ChatID any `json:"chat_id"` Currency string `json:"currency"` Description string `json:"description"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` IsFlexible bool `json:"is_flexible,omitempty"` MaxTipAmount int `json:"max_tip_amount,omitempty"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` NeedEmail bool `json:"need_email,omitempty"` NeedName bool `json:"need_name,omitempty"` NeedPhoneNumber bool `json:"need_phone_number,omitempty"` NeedShippingAddress bool `json:"need_shipping_address,omitempty"` Payload string `json:"payload"` PhotoHeight int `json:"photo_height,omitempty"` PhotoSize int `json:"photo_size,omitempty"` PhotoURL string `json:"photo_url,omitempty"` PhotoWidth int64 `json:"photo_width,omitempty"` Prices []types.LabeledPrice `json:"prices,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ProviderData string `json:"provider_data,omitempty"` ProviderToken string `json:"provider_token,omitempty"` ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` SendEmailToProvider bool `json:"send_email_to_provider,omitempty"` SendPhoneNumberToProvider bool `json:"send_phone_number_to_provider,omitempty"` StartParameter string `json:"start_parameter,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` SuggestedTipAmounts []int `json:"suggested_tip_amounts,omitempty"` Title string `json:"title"` }
SendInvoice Use this method to send invoices On success, the sent Message is returned.
func (SendInvoice) MarshalJSON ¶
func (entity SendInvoice) MarshalJSON() ([]byte, error)
func (SendInvoice) MethodName ¶
func (SendInvoice) MethodName() string
func (SendInvoice) ParseResult ¶
func (SendInvoice) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SendInvoice) ProgressCallable ¶
func (entity *SendInvoice) ProgressCallable() rawTypes.ProgressCallable
type SendLocation ¶
type SendLocation struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` Heading int `json:"heading,omitempty"` HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty"` Latitude float64 `json:"latitude"` LivePeriod int `json:"live_period,omitempty"` Longitude float64 `json:"longitude"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ProximityAlertRadius int `json:"proximity_alert_radius,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` }
SendLocation Use this method to send point on the map On success, the sent Message is returned.
func (SendLocation) MarshalJSON ¶
func (entity SendLocation) MarshalJSON() ([]byte, error)
func (SendLocation) MethodName ¶
func (SendLocation) MethodName() string
func (SendLocation) ParseResult ¶
func (SendLocation) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SendLocation) ProgressCallable ¶
func (entity *SendLocation) ProgressCallable() rawTypes.ProgressCallable
type SendMediaGroup ¶
type SendMediaGroup struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` Media []types.InputMedia `json:"media,omitempty"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` Progress rawTypes.ProgressCallable `json:"-"` }
SendMediaGroup Use this method to send a group of photos, videos, documents or audios as an album Documents and audio files can be only grouped in an album with messages of the same type On success, an array of Message objects that were sent is returned.
func (SendMediaGroup) MarshalJSON ¶
func (entity SendMediaGroup) MarshalJSON() ([]byte, error)
func (SendMediaGroup) MethodName ¶
func (SendMediaGroup) MethodName() string
func (SendMediaGroup) ParseResult ¶
func (SendMediaGroup) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SendMediaGroup) ProgressCallable ¶
func (entity *SendMediaGroup) ProgressCallable() rawTypes.ProgressCallable
type SendMessage ¶
type SendMessage struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` Entities []types.MessageEntity `json:"entities,omitempty"` LinkPreviewOptions *types.LinkPreviewOptions `json:"link_preview_options,omitempty"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ParseMode string `json:"parse_mode,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` Text string `json:"text"` }
SendMessage Use this method to send text messages On success, the sent Message is returned.
func (SendMessage) MarshalJSON ¶
func (entity SendMessage) MarshalJSON() ([]byte, error)
func (SendMessage) MethodName ¶
func (SendMessage) MethodName() string
func (SendMessage) ParseResult ¶
func (SendMessage) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SendMessage) ProgressCallable ¶
func (entity *SendMessage) ProgressCallable() rawTypes.ProgressCallable
type SendPaidMedia ¶ added in v1.7.4
type SendPaidMedia struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` Caption string `json:"caption,omitempty"` CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"` ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` Media []types.InputPaidMedia `json:"media,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ParseMode string `json:"parse_mode,omitempty"` Payload string `json:"payload,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"` StarCount int `json:"star_count"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` Progress rawTypes.ProgressCallable `json:"-"` }
SendPaidMedia Use this method to send paid media On success, the sent Message is returned.
func (*SendPaidMedia) Files ¶ added in v1.7.4
func (entity *SendPaidMedia) Files() map[string]rawTypes.InputFile
func (SendPaidMedia) MarshalJSON ¶ added in v1.7.4
func (entity SendPaidMedia) MarshalJSON() ([]byte, error)
func (SendPaidMedia) MethodName ¶ added in v1.7.4
func (SendPaidMedia) MethodName() string
func (SendPaidMedia) ParseResult ¶ added in v1.7.4
func (SendPaidMedia) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SendPaidMedia) ProgressCallable ¶ added in v1.7.4
func (entity *SendPaidMedia) ProgressCallable() rawTypes.ProgressCallable
type SendPhoto ¶
type SendPhoto struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` Caption string `json:"caption,omitempty"` CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"` ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` HasSpoiler bool `json:"has_spoiler,omitempty"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ParseMode string `json:"parse_mode,omitempty"` Photo rawTypes.InputFile `json:"photo,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` Progress rawTypes.ProgressCallable `json:"-"` }
SendPhoto Use this method to send photos On success, the sent Message is returned.
func (SendPhoto) MarshalJSON ¶
func (SendPhoto) MethodName ¶
func (SendPhoto) ParseResult ¶
func (*SendPhoto) ProgressCallable ¶
func (entity *SendPhoto) ProgressCallable() rawTypes.ProgressCallable
type SendPoll ¶
type SendPoll struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` AllowsMultipleAnswers bool `json:"allows_multiple_answers,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id"` CloseDate int64 `json:"close_date,omitempty"` CorrectOptionID int64 `json:"correct_option_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` Explanation string `json:"explanation,omitempty"` ExplanationEntities []types.MessageEntity `json:"explanation_entities,omitempty"` ExplanationParseMode string `json:"explanation_parse_mode,omitempty"` IsAnonymous bool `json:"is_anonymous,omitempty"` IsClosed bool `json:"is_closed,omitempty"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` OpenPeriod int `json:"open_period,omitempty"` Options []types.InputPollOption `json:"options,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` Question string `json:"question"` QuestionEntities []types.MessageEntity `json:"question_entities,omitempty"` QuestionParseMode string `json:"question_parse_mode,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` Type string `json:"type,omitempty"` }
SendPoll Use this method to send a native poll On success, the sent Message is returned.
func (SendPoll) MarshalJSON ¶
func (SendPoll) MethodName ¶
func (SendPoll) ParseResult ¶
func (*SendPoll) ProgressCallable ¶
func (entity *SendPoll) ProgressCallable() rawTypes.ProgressCallable
type SendSticker ¶
type SendSticker struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` Emoji string `json:"emoji,omitempty"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` Sticker rawTypes.InputFile `json:"sticker,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` Progress rawTypes.ProgressCallable `json:"-"` }
SendSticker Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers On success, the sent Message is returned.
func (SendSticker) MarshalJSON ¶
func (entity SendSticker) MarshalJSON() ([]byte, error)
func (SendSticker) MethodName ¶
func (SendSticker) MethodName() string
func (SendSticker) ParseResult ¶
func (SendSticker) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SendSticker) ProgressCallable ¶
func (entity *SendSticker) ProgressCallable() rawTypes.ProgressCallable
type SendVenue ¶
type SendVenue struct { Address string `json:"address"` AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` 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"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` Title string `json:"title"` }
SendVenue Use this method to send information about a venue On success, the sent Message is returned.
func (SendVenue) MarshalJSON ¶
func (SendVenue) MethodName ¶
func (SendVenue) ParseResult ¶
func (*SendVenue) ProgressCallable ¶
func (entity *SendVenue) ProgressCallable() rawTypes.ProgressCallable
type SendVideo ¶
type SendVideo struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` Caption string `json:"caption,omitempty"` CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"` ChatID any `json:"chat_id"` Cover rawTypes.InputFile `json:"cover,omitempty"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` Duration int `json:"duration,omitempty"` HasSpoiler bool `json:"has_spoiler,omitempty"` Height int `json:"height,omitempty"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ParseMode string `json:"parse_mode,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"` StartTimestamp int `json:"start_timestamp,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` SupportsStreaming bool `json:"supports_streaming,omitempty"` Thumbnail rawTypes.InputFile `json:"thumbnail,omitempty"` Video rawTypes.InputFile `json:"video,omitempty"` Width int64 `json:"width,omitempty"` Progress rawTypes.ProgressCallable `json:"-"` }
SendVideo Use this method to send video files, Telegram clients support MPEG4 videos (other formats may be sent as Document) On success, the sent Message is returned Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future.
func (SendVideo) MarshalJSON ¶
func (SendVideo) MethodName ¶
func (SendVideo) ParseResult ¶
func (*SendVideo) ProgressCallable ¶
func (entity *SendVideo) ProgressCallable() rawTypes.ProgressCallable
type SendVideoNote ¶
type SendVideoNote struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` Duration int `json:"duration,omitempty"` Length int `json:"length,omitempty"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` Thumbnail rawTypes.InputFile `json:"thumbnail,omitempty"` VideoNote rawTypes.InputFile `json:"video_note,omitempty"` Progress rawTypes.ProgressCallable `json:"-"` }
SendVideoNote As of v.4.0, Telegram clients support rounded square MPEG4 videos of up to 1 minute long Use this method to send video messages On success, the sent Message is returned.
func (SendVideoNote) MarshalJSON ¶
func (entity SendVideoNote) MarshalJSON() ([]byte, error)
func (SendVideoNote) MethodName ¶
func (SendVideoNote) MethodName() string
func (SendVideoNote) ParseResult ¶
func (SendVideoNote) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SendVideoNote) ProgressCallable ¶
func (entity *SendVideoNote) ProgressCallable() rawTypes.ProgressCallable
type SendVoice ¶
type SendVoice struct { AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"` BusinessConnectionID string `json:"business_connection_id,omitempty"` Caption string `json:"caption,omitempty"` CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"` ChatID any `json:"chat_id"` DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` Duration int `json:"duration,omitempty"` MessageEffectID string `json:"message_effect_id,omitempty"` MessageThreadID int64 `json:"message_thread_id,omitempty"` ParseMode string `json:"parse_mode,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` ReplyParameters *types.ReplyParameters `json:"reply_parameters,omitempty"` SuggestedPostParameters *types.SuggestedPostParameters `json:"suggested_post_parameters,omitempty"` Voice rawTypes.InputFile `json:"voice,omitempty"` Progress rawTypes.ProgressCallable `json:"-"` }
SendVoice Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message For this to work, your audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in .M4A format (other formats may be sent as Audio or Document) On success, the sent Message is returned Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.
func (SendVoice) MarshalJSON ¶
func (SendVoice) MethodName ¶
func (SendVoice) ParseResult ¶
func (*SendVoice) ProgressCallable ¶
func (entity *SendVoice) ProgressCallable() rawTypes.ProgressCallable
type SetBusinessAccountBio ¶ added in v1.9.6
type SetBusinessAccountBio struct { Bio string `json:"bio,omitempty"` BusinessConnectionID string `json:"business_connection_id"` }
SetBusinessAccountBio Changes the bio of a managed business account Requires the can_change_bio business bot right Returns True on success.
func (*SetBusinessAccountBio) Files ¶ added in v1.9.6
func (entity *SetBusinessAccountBio) Files() map[string]rawTypes.InputFile
func (SetBusinessAccountBio) MethodName ¶ added in v1.9.6
func (SetBusinessAccountBio) MethodName() string
func (SetBusinessAccountBio) ParseResult ¶ added in v1.9.6
func (SetBusinessAccountBio) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetBusinessAccountBio) ProgressCallable ¶ added in v1.9.6
func (entity *SetBusinessAccountBio) ProgressCallable() rawTypes.ProgressCallable
type SetBusinessAccountGiftSettings ¶ added in v1.9.6
type SetBusinessAccountGiftSettings struct { AcceptedGiftTypes types.AcceptedGiftTypes `json:"accepted_gift_types"` BusinessConnectionID string `json:"business_connection_id"` ShowGiftButton bool `json:"show_gift_button"` }
SetBusinessAccountGiftSettings Changes the privacy settings pertaining to incoming gifts in a managed business account Requires the can_change_gift_settings business bot right Returns True on success.
func (*SetBusinessAccountGiftSettings) Files ¶ added in v1.9.6
func (entity *SetBusinessAccountGiftSettings) Files() map[string]rawTypes.InputFile
func (SetBusinessAccountGiftSettings) MethodName ¶ added in v1.9.6
func (SetBusinessAccountGiftSettings) MethodName() string
func (SetBusinessAccountGiftSettings) ParseResult ¶ added in v1.9.6
func (SetBusinessAccountGiftSettings) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetBusinessAccountGiftSettings) ProgressCallable ¶ added in v1.9.6
func (entity *SetBusinessAccountGiftSettings) ProgressCallable() rawTypes.ProgressCallable
type SetBusinessAccountName ¶ added in v1.9.6
type SetBusinessAccountName struct { BusinessConnectionID string `json:"business_connection_id"` FirstName string `json:"first_name"` LastName string `json:"last_name,omitempty"` }
SetBusinessAccountName Changes the first and last name of a managed business account Requires the can_change_name business bot right Returns True on success.
func (*SetBusinessAccountName) Files ¶ added in v1.9.6
func (entity *SetBusinessAccountName) Files() map[string]rawTypes.InputFile
func (SetBusinessAccountName) MethodName ¶ added in v1.9.6
func (SetBusinessAccountName) MethodName() string
func (SetBusinessAccountName) ParseResult ¶ added in v1.9.6
func (SetBusinessAccountName) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetBusinessAccountName) ProgressCallable ¶ added in v1.9.6
func (entity *SetBusinessAccountName) ProgressCallable() rawTypes.ProgressCallable
type SetBusinessAccountProfilePhoto ¶ added in v1.9.6
type SetBusinessAccountProfilePhoto struct { BusinessConnectionID string `json:"business_connection_id"` IsPublic bool `json:"is_public,omitempty"` Photo types.InputProfilePhoto `json:"photo"` }
SetBusinessAccountProfilePhoto Changes the profile photo of a managed business account Requires the can_edit_profile_photo business bot right Returns True on success.
func (*SetBusinessAccountProfilePhoto) Files ¶ added in v1.9.6
func (entity *SetBusinessAccountProfilePhoto) Files() map[string]rawTypes.InputFile
func (SetBusinessAccountProfilePhoto) MethodName ¶ added in v1.9.6
func (SetBusinessAccountProfilePhoto) MethodName() string
func (SetBusinessAccountProfilePhoto) ParseResult ¶ added in v1.9.6
func (SetBusinessAccountProfilePhoto) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetBusinessAccountProfilePhoto) ProgressCallable ¶ added in v1.9.6
func (entity *SetBusinessAccountProfilePhoto) ProgressCallable() rawTypes.ProgressCallable
type SetBusinessAccountUsername ¶ added in v1.9.6
type SetBusinessAccountUsername struct { BusinessConnectionID string `json:"business_connection_id"` Username string `json:"username,omitempty"` }
SetBusinessAccountUsername Changes the username of a managed business account Requires the can_change_username business bot right Returns True on success.
func (*SetBusinessAccountUsername) Files ¶ added in v1.9.6
func (entity *SetBusinessAccountUsername) Files() map[string]rawTypes.InputFile
func (SetBusinessAccountUsername) MethodName ¶ added in v1.9.6
func (SetBusinessAccountUsername) MethodName() string
func (SetBusinessAccountUsername) ParseResult ¶ added in v1.9.6
func (SetBusinessAccountUsername) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetBusinessAccountUsername) ProgressCallable ¶ added in v1.9.6
func (entity *SetBusinessAccountUsername) ProgressCallable() rawTypes.ProgressCallable
type SetChatAdministratorCustomTitle ¶
type SetChatAdministratorCustomTitle struct { ChatID any `json:"chat_id"` CustomTitle string `json:"custom_title"` UserID int64 `json:"user_id"` }
SetChatAdministratorCustomTitle Use this method to set a custom title for an administrator in a supergroup promoted by the bot Returns True on success.
func (*SetChatAdministratorCustomTitle) Files ¶
func (entity *SetChatAdministratorCustomTitle) Files() map[string]rawTypes.InputFile
func (SetChatAdministratorCustomTitle) MarshalJSON ¶
func (entity SetChatAdministratorCustomTitle) MarshalJSON() ([]byte, error)
func (SetChatAdministratorCustomTitle) MethodName ¶
func (SetChatAdministratorCustomTitle) MethodName() string
func (SetChatAdministratorCustomTitle) ParseResult ¶
func (SetChatAdministratorCustomTitle) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetChatAdministratorCustomTitle) ProgressCallable ¶
func (entity *SetChatAdministratorCustomTitle) ProgressCallable() rawTypes.ProgressCallable
type SetChatDescription ¶
type SetChatDescription struct { ChatID any `json:"chat_id"` Description string `json:"description,omitempty"` }
SetChatDescription Use this method to change the description of a group, a supergroup or a channel The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights Returns True on success.
func (*SetChatDescription) Files ¶
func (entity *SetChatDescription) Files() map[string]rawTypes.InputFile
func (SetChatDescription) MarshalJSON ¶
func (entity SetChatDescription) MarshalJSON() ([]byte, error)
func (SetChatDescription) MethodName ¶
func (SetChatDescription) MethodName() string
func (SetChatDescription) ParseResult ¶
func (SetChatDescription) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetChatDescription) ProgressCallable ¶
func (entity *SetChatDescription) ProgressCallable() rawTypes.ProgressCallable
type SetChatMenuButton ¶
type SetChatMenuButton struct { ChatID int64 `json:"chat_id,omitempty"` MenuButton *types.MenuButton `json:"menu_button,omitempty"` }
SetChatMenuButton Use this method to change the bot's menu button in a private chat, or the default menu button Returns True on success.
func (*SetChatMenuButton) Files ¶
func (entity *SetChatMenuButton) Files() map[string]rawTypes.InputFile
func (SetChatMenuButton) MarshalJSON ¶ added in v1.8.0
func (entity SetChatMenuButton) MarshalJSON() ([]byte, error)
func (SetChatMenuButton) MethodName ¶
func (SetChatMenuButton) MethodName() string
func (SetChatMenuButton) ParseResult ¶
func (SetChatMenuButton) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetChatMenuButton) ProgressCallable ¶
func (entity *SetChatMenuButton) ProgressCallable() rawTypes.ProgressCallable
type SetChatPermissions ¶
type SetChatPermissions struct { ChatID any `json:"chat_id"` Permissions types.ChatPermissions `json:"permissions"` UseIndependentChatPermissions bool `json:"use_independent_chat_permissions,omitempty"` }
SetChatPermissions Use this method to set default chat permissions for all members The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members administrator rights Returns True on success.
func (*SetChatPermissions) Files ¶
func (entity *SetChatPermissions) Files() map[string]rawTypes.InputFile
func (SetChatPermissions) MarshalJSON ¶
func (entity SetChatPermissions) MarshalJSON() ([]byte, error)
func (SetChatPermissions) MethodName ¶
func (SetChatPermissions) MethodName() string
func (SetChatPermissions) ParseResult ¶
func (SetChatPermissions) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetChatPermissions) ProgressCallable ¶
func (entity *SetChatPermissions) ProgressCallable() rawTypes.ProgressCallable
type SetChatPhoto ¶
type SetChatPhoto struct { ChatID any `json:"chat_id"` Photo rawTypes.InputFile `json:"photo,omitempty"` Progress rawTypes.ProgressCallable `json:"-"` }
SetChatPhoto Use this method to set a new profile photo for the chat Photos can't be changed for private chats The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights Returns True on success.
func (SetChatPhoto) MarshalJSON ¶
func (entity SetChatPhoto) MarshalJSON() ([]byte, error)
func (SetChatPhoto) MethodName ¶
func (SetChatPhoto) MethodName() string
func (SetChatPhoto) ParseResult ¶
func (SetChatPhoto) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetChatPhoto) ProgressCallable ¶
func (entity *SetChatPhoto) ProgressCallable() rawTypes.ProgressCallable
type SetChatStickerSet ¶
type SetChatStickerSet struct { ChatID any `json:"chat_id"` StickerSetName string `json:"sticker_set_name"` }
SetChatStickerSet Use this method to set a new group sticker set for a supergroup The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method Returns True on success.
func (*SetChatStickerSet) Files ¶
func (entity *SetChatStickerSet) Files() map[string]rawTypes.InputFile
func (SetChatStickerSet) MarshalJSON ¶
func (entity SetChatStickerSet) MarshalJSON() ([]byte, error)
func (SetChatStickerSet) MethodName ¶
func (SetChatStickerSet) MethodName() string
func (SetChatStickerSet) ParseResult ¶
func (SetChatStickerSet) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetChatStickerSet) ProgressCallable ¶
func (entity *SetChatStickerSet) ProgressCallable() rawTypes.ProgressCallable
type SetChatTitle ¶
SetChatTitle Use this method to change the title of a chat Titles can't be changed for private chats The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights Returns True on success.
func (SetChatTitle) MarshalJSON ¶
func (entity SetChatTitle) MarshalJSON() ([]byte, error)
func (SetChatTitle) MethodName ¶
func (SetChatTitle) MethodName() string
func (SetChatTitle) ParseResult ¶
func (SetChatTitle) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetChatTitle) ProgressCallable ¶
func (entity *SetChatTitle) ProgressCallable() rawTypes.ProgressCallable
type SetCustomEmojiStickerSetThumbnail ¶
type SetCustomEmojiStickerSetThumbnail struct { CustomEmojiID string `json:"custom_emoji_id,omitempty"` Name string `json:"name"` }
SetCustomEmojiStickerSetThumbnail Use this method to set the thumbnail of a custom emoji sticker set Returns True on success.
func (*SetCustomEmojiStickerSetThumbnail) Files ¶
func (entity *SetCustomEmojiStickerSetThumbnail) Files() map[string]rawTypes.InputFile
func (SetCustomEmojiStickerSetThumbnail) MethodName ¶
func (SetCustomEmojiStickerSetThumbnail) MethodName() string
func (SetCustomEmojiStickerSetThumbnail) ParseResult ¶
func (SetCustomEmojiStickerSetThumbnail) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetCustomEmojiStickerSetThumbnail) ProgressCallable ¶
func (entity *SetCustomEmojiStickerSetThumbnail) ProgressCallable() rawTypes.ProgressCallable
type SetGameScore ¶
type SetGameScore struct { ChatID int64 `json:"chat_id,omitempty"` DisableEditMessage bool `json:"disable_edit_message,omitempty"` Force bool `json:"force,omitempty"` InlineMessageID string `json:"inline_message_id,omitempty"` MessageID int64 `json:"message_id,omitempty"` Score int `json:"score"` UserID int64 `json:"user_id"` }
SetGameScore Use this method to set the score of the specified user in a game message On success, if the message is not an inline message, the Message is returned, otherwise True is returned Returns an error, if the new score is not greater than the user's current score in the chat and force is False.
func (SetGameScore) MethodName ¶
func (SetGameScore) MethodName() string
func (SetGameScore) ParseResult ¶
func (SetGameScore) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetGameScore) ProgressCallable ¶
func (entity *SetGameScore) ProgressCallable() rawTypes.ProgressCallable
type SetMessageReaction ¶ added in v1.6.3
type SetMessageReaction struct { ChatID any `json:"chat_id"` IsBig bool `json:"is_big,omitempty"` MessageID int64 `json:"message_id"` Reaction []types.ReactionType `json:"reaction,omitempty"` }
SetMessageReaction Use this method to change the chosen reactions on a message Service messages of some types can't be reacted to Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel Bots can't use paid reactions Returns True on success.
func (*SetMessageReaction) Files ¶ added in v1.6.3
func (entity *SetMessageReaction) Files() map[string]rawTypes.InputFile
func (SetMessageReaction) MarshalJSON ¶ added in v1.6.3
func (entity SetMessageReaction) MarshalJSON() ([]byte, error)
func (SetMessageReaction) MethodName ¶ added in v1.6.3
func (SetMessageReaction) MethodName() string
func (SetMessageReaction) ParseResult ¶ added in v1.6.3
func (SetMessageReaction) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetMessageReaction) ProgressCallable ¶ added in v1.6.3
func (entity *SetMessageReaction) ProgressCallable() rawTypes.ProgressCallable
type SetMyCommands ¶
type SetMyCommands struct { Commands []types.BotCommand `json:"commands,omitempty"` LanguageCode string `json:"language_code,omitempty"` Scope *types.BotCommandScope `json:"scope,omitempty"` }
SetMyCommands Use this method to change the list of the bot's commands See this manual for more details about bot commands Returns True on success.
func (SetMyCommands) MarshalJSON ¶ added in v1.8.0
func (entity SetMyCommands) MarshalJSON() ([]byte, error)
func (SetMyCommands) MethodName ¶
func (SetMyCommands) MethodName() string
func (SetMyCommands) ParseResult ¶
func (SetMyCommands) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetMyCommands) ProgressCallable ¶
func (entity *SetMyCommands) ProgressCallable() rawTypes.ProgressCallable
type SetMyDefaultAdministratorRights ¶
type SetMyDefaultAdministratorRights struct { ForChannels bool `json:"for_channels,omitempty"` Rights *types.ChatAdministratorRights `json:"rights,omitempty"` }
SetMyDefaultAdministratorRights Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels These rights will be suggested to users, but they are free to modify the list before adding the bot Returns True on success.
func (*SetMyDefaultAdministratorRights) Files ¶
func (entity *SetMyDefaultAdministratorRights) Files() map[string]rawTypes.InputFile
func (SetMyDefaultAdministratorRights) MarshalJSON ¶ added in v1.8.0
func (entity SetMyDefaultAdministratorRights) MarshalJSON() ([]byte, error)
func (SetMyDefaultAdministratorRights) MethodName ¶
func (SetMyDefaultAdministratorRights) MethodName() string
func (SetMyDefaultAdministratorRights) ParseResult ¶
func (SetMyDefaultAdministratorRights) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetMyDefaultAdministratorRights) ProgressCallable ¶
func (entity *SetMyDefaultAdministratorRights) ProgressCallable() rawTypes.ProgressCallable
type SetMyDescription ¶
type SetMyDescription struct { Description string `json:"description,omitempty"` LanguageCode string `json:"language_code,omitempty"` }
SetMyDescription Use this method to change the bot's description, which is shown in the chat with the bot if the chat is empty Returns True on success.
func (*SetMyDescription) Files ¶
func (entity *SetMyDescription) Files() map[string]rawTypes.InputFile
func (SetMyDescription) MethodName ¶
func (SetMyDescription) MethodName() string
func (SetMyDescription) ParseResult ¶
func (SetMyDescription) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetMyDescription) ProgressCallable ¶
func (entity *SetMyDescription) ProgressCallable() rawTypes.ProgressCallable
type SetMyName ¶
type SetMyName struct { LanguageCode string `json:"language_code,omitempty"` Name string `json:"name,omitempty"` }
SetMyName Use this method to change the bot's name Returns True on success.
func (SetMyName) MethodName ¶
func (SetMyName) ParseResult ¶
func (*SetMyName) ProgressCallable ¶
func (entity *SetMyName) ProgressCallable() rawTypes.ProgressCallable
type SetMyShortDescription ¶
type SetMyShortDescription struct { LanguageCode string `json:"language_code,omitempty"` ShortDescription string `json:"short_description,omitempty"` }
SetMyShortDescription Use this method to change the bot's short description, which is shown on the bot's profile page and is sent together with the link when users share the bot Returns True on success.
func (*SetMyShortDescription) Files ¶
func (entity *SetMyShortDescription) Files() map[string]rawTypes.InputFile
func (SetMyShortDescription) MethodName ¶
func (SetMyShortDescription) MethodName() string
func (SetMyShortDescription) ParseResult ¶
func (SetMyShortDescription) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetMyShortDescription) ProgressCallable ¶
func (entity *SetMyShortDescription) ProgressCallable() rawTypes.ProgressCallable
type SetPassportDataErrors ¶
type SetPassportDataErrors struct { Errors []types.PassportElementError `json:"errors,omitempty"` UserID int64 `json:"user_id"` }
SetPassportDataErrors Informs a user that some of the Telegram Passport elements they provided contains errors The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change) Returns True on success. Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc Supply some details in the error message to make sure the user knows how to correct the issues.
func (*SetPassportDataErrors) Files ¶
func (entity *SetPassportDataErrors) Files() map[string]rawTypes.InputFile
func (SetPassportDataErrors) MethodName ¶
func (SetPassportDataErrors) MethodName() string
func (SetPassportDataErrors) ParseResult ¶
func (SetPassportDataErrors) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetPassportDataErrors) ProgressCallable ¶
func (entity *SetPassportDataErrors) ProgressCallable() rawTypes.ProgressCallable
type SetStickerEmojiList ¶
type SetStickerEmojiList struct { EmojiList []string `json:"emoji_list,omitempty"` Sticker string `json:"sticker"` }
SetStickerEmojiList Use this method to change the list of emoji assigned to a regular or custom emoji sticker The sticker must belong to a sticker set created by the bot Returns True on success.
func (*SetStickerEmojiList) Files ¶
func (entity *SetStickerEmojiList) Files() map[string]rawTypes.InputFile
func (SetStickerEmojiList) MethodName ¶
func (SetStickerEmojiList) MethodName() string
func (SetStickerEmojiList) ParseResult ¶
func (SetStickerEmojiList) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetStickerEmojiList) ProgressCallable ¶
func (entity *SetStickerEmojiList) ProgressCallable() rawTypes.ProgressCallable
type SetStickerKeywords ¶
type SetStickerKeywords struct { Keywords []string `json:"keywords,omitempty"` Sticker string `json:"sticker"` }
SetStickerKeywords Use this method to change search keywords assigned to a regular or custom emoji sticker The sticker must belong to a sticker set created by the bot Returns True on success.
func (*SetStickerKeywords) Files ¶
func (entity *SetStickerKeywords) Files() map[string]rawTypes.InputFile
func (SetStickerKeywords) MethodName ¶
func (SetStickerKeywords) MethodName() string
func (SetStickerKeywords) ParseResult ¶
func (SetStickerKeywords) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetStickerKeywords) ProgressCallable ¶
func (entity *SetStickerKeywords) ProgressCallable() rawTypes.ProgressCallable
type SetStickerMaskPosition ¶
type SetStickerMaskPosition struct { MaskPosition *types.MaskPosition `json:"mask_position,omitempty"` Sticker string `json:"sticker"` }
SetStickerMaskPosition Use this method to change the mask position of a mask sticker The sticker must belong to a sticker set that was created by the bot Returns True on success.
func (*SetStickerMaskPosition) Files ¶
func (entity *SetStickerMaskPosition) Files() map[string]rawTypes.InputFile
func (SetStickerMaskPosition) MarshalJSON ¶ added in v1.8.0
func (entity SetStickerMaskPosition) MarshalJSON() ([]byte, error)
func (SetStickerMaskPosition) MethodName ¶
func (SetStickerMaskPosition) MethodName() string
func (SetStickerMaskPosition) ParseResult ¶
func (SetStickerMaskPosition) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetStickerMaskPosition) ProgressCallable ¶
func (entity *SetStickerMaskPosition) ProgressCallable() rawTypes.ProgressCallable
type SetStickerPositionInSet ¶
type SetStickerPositionInSet struct { Position int `json:"position"` Sticker string `json:"sticker"` }
SetStickerPositionInSet Use this method to move a sticker in a set created by the bot to a specific position Returns True on success.
func (*SetStickerPositionInSet) Files ¶
func (entity *SetStickerPositionInSet) Files() map[string]rawTypes.InputFile
func (SetStickerPositionInSet) MethodName ¶
func (SetStickerPositionInSet) MethodName() string
func (SetStickerPositionInSet) ParseResult ¶
func (SetStickerPositionInSet) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetStickerPositionInSet) ProgressCallable ¶
func (entity *SetStickerPositionInSet) ProgressCallable() rawTypes.ProgressCallable
type SetStickerSetThumbnail ¶
type SetStickerSetThumbnail struct { Format string `json:"format"` Name string `json:"name"` Thumbnail rawTypes.InputFile `json:"thumbnail,omitempty"` UserID int64 `json:"user_id"` Progress rawTypes.ProgressCallable `json:"-"` }
SetStickerSetThumbnail Use this method to set the thumbnail of a regular or mask sticker set The format of the thumbnail file must match the format of the stickers in the set Returns True on success.
func (*SetStickerSetThumbnail) Files ¶
func (entity *SetStickerSetThumbnail) Files() map[string]rawTypes.InputFile
func (SetStickerSetThumbnail) MarshalJSON ¶ added in v1.8.0
func (entity SetStickerSetThumbnail) MarshalJSON() ([]byte, error)
func (SetStickerSetThumbnail) MethodName ¶
func (SetStickerSetThumbnail) MethodName() string
func (SetStickerSetThumbnail) ParseResult ¶
func (SetStickerSetThumbnail) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetStickerSetThumbnail) ProgressCallable ¶
func (entity *SetStickerSetThumbnail) ProgressCallable() rawTypes.ProgressCallable
type SetStickerSetTitle ¶
SetStickerSetTitle Use this method to set the title of a created sticker set Returns True on success.
func (*SetStickerSetTitle) Files ¶
func (entity *SetStickerSetTitle) Files() map[string]rawTypes.InputFile
func (SetStickerSetTitle) MethodName ¶
func (SetStickerSetTitle) MethodName() string
func (SetStickerSetTitle) ParseResult ¶
func (SetStickerSetTitle) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetStickerSetTitle) ProgressCallable ¶
func (entity *SetStickerSetTitle) ProgressCallable() rawTypes.ProgressCallable
type SetUserEmojiStatus ¶ added in v1.8.8
type SetUserEmojiStatus struct { EmojiStatusCustomEmojiID string `json:"emoji_status_custom_emoji_id,omitempty"` EmojiStatusExpirationDate int64 `json:"emoji_status_expiration_date,omitempty"` UserID int64 `json:"user_id"` }
SetUserEmojiStatus Changes the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method requestEmojiStatusAccess Returns True on success.
func (*SetUserEmojiStatus) Files ¶ added in v1.8.8
func (entity *SetUserEmojiStatus) Files() map[string]rawTypes.InputFile
func (SetUserEmojiStatus) MethodName ¶ added in v1.8.8
func (SetUserEmojiStatus) MethodName() string
func (SetUserEmojiStatus) ParseResult ¶ added in v1.8.8
func (SetUserEmojiStatus) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetUserEmojiStatus) ProgressCallable ¶ added in v1.8.8
func (entity *SetUserEmojiStatus) ProgressCallable() rawTypes.ProgressCallable
type SetWebhook ¶
type SetWebhook struct { AllowedUpdates []string `json:"allowed_updates,omitempty"` Certificate rawTypes.InputFile `json:"certificate,omitempty"` DropPendingUpdates bool `json:"drop_pending_updates,omitempty"` IPAddress string `json:"ip_address,omitempty"` MaxConnections int `json:"max_connections,omitempty"` SecretToken string `json:"secret_token,omitempty"` URL string `json:"url"` Progress rawTypes.ProgressCallable `json:"-"` }
SetWebhook Use this method to specify a URL and receive incoming updates via an outgoing webhook Whenever there is an update for the bot, we will send an HTTPS POST request to the specified URL, containing a JSON-serialized Update In case of an unsuccessful request (a request with response HTTP status code different from 2XY), we will repeat the request and give up after a reasonable amount of attempts Returns True on success. If you'd like to make sure that the webhook was set by you, you can specify secret data in the parameter secret_token If specified, the request will contain a header “X-Telegram-Bot-Api-Secret-Token” with the secret token as content.
func (SetWebhook) MarshalJSON ¶ added in v1.8.0
func (entity SetWebhook) MarshalJSON() ([]byte, error)
func (SetWebhook) MethodName ¶
func (SetWebhook) MethodName() string
func (SetWebhook) ParseResult ¶
func (SetWebhook) ParseResult(response []byte) (*rawTypes.Result, error)
func (*SetWebhook) ProgressCallable ¶
func (entity *SetWebhook) ProgressCallable() rawTypes.ProgressCallable
type StopMessageLiveLocation ¶
type StopMessageLiveLocation struct { BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id,omitempty"` InlineMessageID string `json:"inline_message_id,omitempty"` MessageID int64 `json:"message_id,omitempty"` ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"` }
StopMessageLiveLocation Use this method to stop updating a live location message before live_period expires On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned.
func (*StopMessageLiveLocation) Files ¶
func (entity *StopMessageLiveLocation) Files() map[string]rawTypes.InputFile
func (StopMessageLiveLocation) MarshalJSON ¶
func (entity StopMessageLiveLocation) MarshalJSON() ([]byte, error)
func (StopMessageLiveLocation) MethodName ¶
func (StopMessageLiveLocation) MethodName() string
func (StopMessageLiveLocation) ParseResult ¶
func (StopMessageLiveLocation) ParseResult(response []byte) (*rawTypes.Result, error)
func (*StopMessageLiveLocation) ProgressCallable ¶
func (entity *StopMessageLiveLocation) ProgressCallable() rawTypes.ProgressCallable
type StopPoll ¶
type StopPoll struct { BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id"` MessageID int64 `json:"message_id"` ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"` }
StopPoll Use this method to stop a poll which was sent by the bot On success, the stopped Poll is returned.
func (StopPoll) MarshalJSON ¶
func (StopPoll) MethodName ¶
func (StopPoll) ParseResult ¶
func (*StopPoll) ProgressCallable ¶
func (entity *StopPoll) ProgressCallable() rawTypes.ProgressCallable
type TransferBusinessAccountStars ¶ added in v1.9.6
type TransferBusinessAccountStars struct { BusinessConnectionID string `json:"business_connection_id"` StarCount int `json:"star_count"` }
TransferBusinessAccountStars Transfers Telegram Stars from the business account balance to the bot's balance Requires the can_transfer_stars business bot right Returns True on success.
func (*TransferBusinessAccountStars) Files ¶ added in v1.9.6
func (entity *TransferBusinessAccountStars) Files() map[string]rawTypes.InputFile
func (TransferBusinessAccountStars) MethodName ¶ added in v1.9.6
func (TransferBusinessAccountStars) MethodName() string
func (TransferBusinessAccountStars) ParseResult ¶ added in v1.9.6
func (TransferBusinessAccountStars) ParseResult(response []byte) (*rawTypes.Result, error)
func (*TransferBusinessAccountStars) ProgressCallable ¶ added in v1.9.6
func (entity *TransferBusinessAccountStars) ProgressCallable() rawTypes.ProgressCallable
type TransferGift ¶ added in v1.9.6
type TransferGift struct { BusinessConnectionID string `json:"business_connection_id"` NewOwnerChatID int64 `json:"new_owner_chat_id"` OwnedGiftID string `json:"owned_gift_id"` StarCount int `json:"star_count,omitempty"` }
TransferGift Transfers an owned unique gift to another user Requires the can_transfer_and_upgrade_gifts business bot right Requires can_transfer_stars business bot right if the transfer is paid Returns True on success.
func (*TransferGift) Files ¶ added in v1.9.6
func (entity *TransferGift) Files() map[string]rawTypes.InputFile
func (TransferGift) MethodName ¶ added in v1.9.6
func (TransferGift) MethodName() string
func (TransferGift) ParseResult ¶ added in v1.9.6
func (TransferGift) ParseResult(response []byte) (*rawTypes.Result, error)
func (*TransferGift) ProgressCallable ¶ added in v1.9.6
func (entity *TransferGift) ProgressCallable() rawTypes.ProgressCallable
type UnbanChatMember ¶
type UnbanChatMember struct { ChatID any `json:"chat_id"` OnlyIfBanned bool `json:"only_if_banned,omitempty"` UserID int64 `json:"user_id"` }
UnbanChatMember Use this method to unban a previously banned user in a supergroup or channel The user will not return to the group or channel automatically, but will be able to join via link, etc The bot must be an administrator for this to work By default, this method guarantees that after the call the user is not a member of the chat, but will be able to join it So if the user is a member of the chat they will also be removed from the chat If you don't want this, use the parameter only_if_banned Returns True on success.
func (*UnbanChatMember) Files ¶
func (entity *UnbanChatMember) Files() map[string]rawTypes.InputFile
func (UnbanChatMember) MarshalJSON ¶
func (entity UnbanChatMember) MarshalJSON() ([]byte, error)
func (UnbanChatMember) MethodName ¶
func (UnbanChatMember) MethodName() string
func (UnbanChatMember) ParseResult ¶
func (UnbanChatMember) ParseResult(response []byte) (*rawTypes.Result, error)
func (*UnbanChatMember) ProgressCallable ¶
func (entity *UnbanChatMember) ProgressCallable() rawTypes.ProgressCallable
type UnbanChatSenderChat ¶
type UnbanChatSenderChat struct { ChatID any `json:"chat_id"` SenderChatID int64 `json:"sender_chat_id"` }
UnbanChatSenderChat Use this method to unban a previously banned channel chat in a supergroup or channel The bot must be an administrator for this to work and must have the appropriate administrator rights Returns True on success.
func (*UnbanChatSenderChat) Files ¶
func (entity *UnbanChatSenderChat) Files() map[string]rawTypes.InputFile
func (UnbanChatSenderChat) MarshalJSON ¶
func (entity UnbanChatSenderChat) MarshalJSON() ([]byte, error)
func (UnbanChatSenderChat) MethodName ¶
func (UnbanChatSenderChat) MethodName() string
func (UnbanChatSenderChat) ParseResult ¶
func (UnbanChatSenderChat) ParseResult(response []byte) (*rawTypes.Result, error)
func (*UnbanChatSenderChat) ProgressCallable ¶
func (entity *UnbanChatSenderChat) ProgressCallable() rawTypes.ProgressCallable
type UnhideGeneralForumTopic ¶
type UnhideGeneralForumTopic struct {
ChatID any `json:"chat_id"`
}
UnhideGeneralForumTopic Use this method to unhide the 'General' topic in a forum supergroup chat The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights Returns True on success.
func (*UnhideGeneralForumTopic) Files ¶
func (entity *UnhideGeneralForumTopic) Files() map[string]rawTypes.InputFile
func (UnhideGeneralForumTopic) MarshalJSON ¶
func (entity UnhideGeneralForumTopic) MarshalJSON() ([]byte, error)
func (UnhideGeneralForumTopic) MethodName ¶
func (UnhideGeneralForumTopic) MethodName() string
func (UnhideGeneralForumTopic) ParseResult ¶
func (UnhideGeneralForumTopic) ParseResult(response []byte) (*rawTypes.Result, error)
func (*UnhideGeneralForumTopic) ProgressCallable ¶
func (entity *UnhideGeneralForumTopic) ProgressCallable() rawTypes.ProgressCallable
type UnpinAllChatMessages ¶
type UnpinAllChatMessages struct {
ChatID any `json:"chat_id"`
}
UnpinAllChatMessages Use this method to clear the list of pinned messages in a chat In private chats and channel direct messages chats, no additional rights are required to unpin all pinned messages Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to unpin all pinned messages in groups and channels respectively Returns True on success.
func (*UnpinAllChatMessages) Files ¶
func (entity *UnpinAllChatMessages) Files() map[string]rawTypes.InputFile
func (UnpinAllChatMessages) MarshalJSON ¶
func (entity UnpinAllChatMessages) MarshalJSON() ([]byte, error)
func (UnpinAllChatMessages) MethodName ¶
func (UnpinAllChatMessages) MethodName() string
func (UnpinAllChatMessages) ParseResult ¶
func (UnpinAllChatMessages) ParseResult(response []byte) (*rawTypes.Result, error)
func (*UnpinAllChatMessages) ProgressCallable ¶
func (entity *UnpinAllChatMessages) ProgressCallable() rawTypes.ProgressCallable
type UnpinAllForumTopicMessages ¶
type UnpinAllForumTopicMessages struct { ChatID any `json:"chat_id"` MessageThreadID int64 `json:"message_thread_id"` }
UnpinAllForumTopicMessages Use this method to clear the list of pinned messages in a forum topic The bot must be an administrator in the chat for this to work and must have the can_pin_messages administrator right in the supergroup Returns True on success.
func (*UnpinAllForumTopicMessages) Files ¶
func (entity *UnpinAllForumTopicMessages) Files() map[string]rawTypes.InputFile
func (UnpinAllForumTopicMessages) MarshalJSON ¶
func (entity UnpinAllForumTopicMessages) MarshalJSON() ([]byte, error)
func (UnpinAllForumTopicMessages) MethodName ¶
func (UnpinAllForumTopicMessages) MethodName() string
func (UnpinAllForumTopicMessages) ParseResult ¶
func (UnpinAllForumTopicMessages) ParseResult(response []byte) (*rawTypes.Result, error)
func (*UnpinAllForumTopicMessages) ProgressCallable ¶
func (entity *UnpinAllForumTopicMessages) ProgressCallable() rawTypes.ProgressCallable
type UnpinAllGeneralForumTopicMessages ¶ added in v1.6.3
type UnpinAllGeneralForumTopicMessages struct {
ChatID any `json:"chat_id"`
}
UnpinAllGeneralForumTopicMessages Use this method to clear the list of pinned messages in a General forum topic The bot must be an administrator in the chat for this to work and must have the can_pin_messages administrator right in the supergroup Returns True on success.
func (*UnpinAllGeneralForumTopicMessages) Files ¶ added in v1.6.3
func (entity *UnpinAllGeneralForumTopicMessages) Files() map[string]rawTypes.InputFile
func (UnpinAllGeneralForumTopicMessages) MarshalJSON ¶ added in v1.6.3
func (entity UnpinAllGeneralForumTopicMessages) MarshalJSON() ([]byte, error)
func (UnpinAllGeneralForumTopicMessages) MethodName ¶ added in v1.6.3
func (UnpinAllGeneralForumTopicMessages) MethodName() string
func (UnpinAllGeneralForumTopicMessages) ParseResult ¶ added in v1.6.3
func (UnpinAllGeneralForumTopicMessages) ParseResult(response []byte) (*rawTypes.Result, error)
func (*UnpinAllGeneralForumTopicMessages) ProgressCallable ¶ added in v1.6.3
func (entity *UnpinAllGeneralForumTopicMessages) ProgressCallable() rawTypes.ProgressCallable
type UnpinChatMessage ¶
type UnpinChatMessage struct { BusinessConnectionID string `json:"business_connection_id,omitempty"` ChatID any `json:"chat_id"` MessageID int64 `json:"message_id,omitempty"` }
UnpinChatMessage Use this method to remove a message from the list of pinned messages in a chat In private chats and channel direct messages chats, all messages can be unpinned Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to unpin messages in groups and channels respectively Returns True on success.
func (*UnpinChatMessage) Files ¶
func (entity *UnpinChatMessage) Files() map[string]rawTypes.InputFile
func (UnpinChatMessage) MarshalJSON ¶
func (entity UnpinChatMessage) MarshalJSON() ([]byte, error)
func (UnpinChatMessage) MethodName ¶
func (UnpinChatMessage) MethodName() string
func (UnpinChatMessage) ParseResult ¶
func (UnpinChatMessage) ParseResult(response []byte) (*rawTypes.Result, error)
func (*UnpinChatMessage) ProgressCallable ¶
func (entity *UnpinChatMessage) ProgressCallable() rawTypes.ProgressCallable
type UpgradeGift ¶ added in v1.9.6
type UpgradeGift struct { BusinessConnectionID string `json:"business_connection_id"` KeepOriginalDetails bool `json:"keep_original_details,omitempty"` OwnedGiftID string `json:"owned_gift_id"` StarCount int `json:"star_count,omitempty"` }
UpgradeGift Upgrades a given regular gift to a unique gift Requires the can_transfer_and_upgrade_gifts business bot right Additionally requires the can_transfer_stars business bot right if the upgrade is paid Returns True on success.
func (*UpgradeGift) Files ¶ added in v1.9.6
func (entity *UpgradeGift) Files() map[string]rawTypes.InputFile
func (UpgradeGift) MethodName ¶ added in v1.9.6
func (UpgradeGift) MethodName() string
func (UpgradeGift) ParseResult ¶ added in v1.9.6
func (UpgradeGift) ParseResult(response []byte) (*rawTypes.Result, error)
func (*UpgradeGift) ProgressCallable ¶ added in v1.9.6
func (entity *UpgradeGift) ProgressCallable() rawTypes.ProgressCallable
type UploadStickerFile ¶
type UploadStickerFile struct { Sticker rawTypes.InputFile `json:"sticker,omitempty"` StickerFormat string `json:"sticker_format"` UserID int64 `json:"user_id"` Progress rawTypes.ProgressCallable `json:"-"` }
UploadStickerFile Use this method to upload a file with a sticker for later use in the createNewStickerSet, addStickerToSet, or replaceStickerInSet methods (the file can be used multiple times) Returns the uploaded File on success.
func (*UploadStickerFile) Files ¶
func (entity *UploadStickerFile) Files() map[string]rawTypes.InputFile
func (UploadStickerFile) MethodName ¶
func (UploadStickerFile) MethodName() string
func (UploadStickerFile) ParseResult ¶
func (UploadStickerFile) ParseResult(response []byte) (*rawTypes.Result, error)
func (*UploadStickerFile) ProgressCallable ¶
func (entity *UploadStickerFile) ProgressCallable() rawTypes.ProgressCallable
type VerifyChat ¶ added in v1.9.0
type VerifyChat struct { ChatID any `json:"chat_id"` CustomDescription string `json:"custom_description,omitempty"` }
VerifyChat Verifies a chat on behalf of the organization which is represented by the bot Returns True on success.
func (*VerifyChat) Files ¶ added in v1.9.0
func (entity *VerifyChat) Files() map[string]rawTypes.InputFile
func (VerifyChat) MarshalJSON ¶ added in v1.9.0
func (entity VerifyChat) MarshalJSON() ([]byte, error)
func (VerifyChat) MethodName ¶ added in v1.9.0
func (VerifyChat) MethodName() string
func (VerifyChat) ParseResult ¶ added in v1.9.0
func (VerifyChat) ParseResult(response []byte) (*rawTypes.Result, error)
func (*VerifyChat) ProgressCallable ¶ added in v1.9.0
func (entity *VerifyChat) ProgressCallable() rawTypes.ProgressCallable
type VerifyUser ¶ added in v1.9.0
type VerifyUser struct { CustomDescription string `json:"custom_description,omitempty"` UserID int64 `json:"user_id"` }
VerifyUser Verifies a user on behalf of the organization which is represented by the bot Returns True on success.
func (*VerifyUser) Files ¶ added in v1.9.0
func (entity *VerifyUser) Files() map[string]rawTypes.InputFile
func (VerifyUser) MethodName ¶ added in v1.9.0
func (VerifyUser) MethodName() string
func (VerifyUser) ParseResult ¶ added in v1.9.0
func (VerifyUser) ParseResult(response []byte) (*rawTypes.Result, error)
func (*VerifyUser) ProgressCallable ¶ added in v1.9.0
func (entity *VerifyUser) ProgressCallable() rawTypes.ProgressCallable
Source Files
¶
- add_sticker_to_set.go
- answer_callback_query.go
- answer_inline_query.go
- answer_pre_checkout_query.go
- answer_shipping_query.go
- answer_web_app_query.go
- approve_chat_join_request.go
- approve_suggested_post.go
- ban_chat_member.go
- ban_chat_sender_chat.go
- close.go
- close_forum_topic.go
- close_general_forum_topic.go
- convert_gift_to_stars.go
- copy_message.go
- copy_messages.go
- create_chat_invite_link.go
- create_chat_subscription_invite_link.go
- create_forum_topic.go
- create_invoice_link.go
- create_new_sticker_set.go
- decline_chat_join_request.go
- decline_suggested_post.go
- delete_business_messages.go
- delete_chat_photo.go
- delete_chat_sticker_set.go
- delete_forum_topic.go
- delete_message.go
- delete_messages.go
- delete_my_commands.go
- delete_sticker_from_set.go
- delete_sticker_set.go
- delete_story.go
- delete_webhook.go
- edit_chat_invite_link.go
- edit_chat_subscription_invite_link.go
- edit_forum_topic.go
- edit_general_forum_topic.go
- edit_message_caption.go
- edit_message_checklist.go
- edit_message_live_location.go
- edit_message_media.go
- edit_message_reply_markup.go
- edit_message_text.go
- edit_story.go
- edit_user_star_subscription.go
- export_chat_invite_link.go
- forward_message.go
- forward_messages.go
- get_available_gifts.go
- get_business_account_gifts.go
- get_business_account_star_balance.go
- get_business_connection.go
- get_chat.go
- get_chat_administrators.go
- get_chat_member.go
- get_chat_member_count.go
- get_chat_menu_button.go
- get_custom_emoji_stickers.go
- get_file.go
- get_forum_topic_icon_stickers.go
- get_game_high_scores.go
- get_me.go
- get_my_commands.go
- get_my_default_administrator_rights.go
- get_my_description.go
- get_my_name.go
- get_my_short_description.go
- get_my_star_balance.go
- get_star_transactions.go
- get_sticker_set.go
- get_updates.go
- get_user_chat_boosts.go
- get_user_profile_photos.go
- get_webhook_info.go
- gift_premium_subscription.go
- hide_general_forum_topic.go
- leave_chat.go
- log_out.go
- pin_chat_message.go
- post_story.go
- promote_chat_member.go
- read_business_message.go
- refund_star_payment.go
- remove_business_account_profile_photo.go
- remove_chat_verification.go
- remove_user_verification.go
- reopen_forum_topic.go
- reopen_general_forum_topic.go
- replace_sticker_in_set.go
- restrict_chat_member.go
- revoke_chat_invite_link.go
- save_prepared_inline_message.go
- send_animation.go
- send_audio.go
- send_chat_action.go
- send_checklist.go
- send_contact.go
- send_dice.go
- send_document.go
- send_game.go
- send_gift.go
- send_invoice.go
- send_location.go
- send_media_group.go
- send_message.go
- send_paid_media.go
- send_photo.go
- send_poll.go
- send_sticker.go
- send_venue.go
- send_video.go
- send_video_note.go
- send_voice.go
- set_business_account_bio.go
- set_business_account_gift_settings.go
- set_business_account_name.go
- set_business_account_profile_photo.go
- set_business_account_username.go
- set_chat_administrator_custom_title.go
- set_chat_description.go
- set_chat_menu_button.go
- set_chat_permissions.go
- set_chat_photo.go
- set_chat_sticker_set.go
- set_chat_title.go
- set_custom_emoji_sticker_set_thumbnail.go
- set_game_score.go
- set_message_reaction.go
- set_my_commands.go
- set_my_default_administrator_rights.go
- set_my_description.go
- set_my_name.go
- set_my_short_description.go
- set_passport_data_errors.go
- set_sticker_emoji_list.go
- set_sticker_keywords.go
- set_sticker_mask_position.go
- set_sticker_position_in_set.go
- set_sticker_set_thumbnail.go
- set_sticker_set_title.go
- set_user_emoji_status.go
- set_webhook.go
- stop_message_live_location.go
- stop_poll.go
- transfer_business_account_stars.go
- transfer_gift.go
- unban_chat_member.go
- unban_chat_sender_chat.go
- unhide_general_forum_topic.go
- unpin_all_chat_messages.go
- unpin_all_forum_topic_messages.go
- unpin_all_general_forum_topic_messages.go
- unpin_chat_message.go
- upgrade_gift.go
- upload_sticker_file.go
- verify_chat.go
- verify_user.go