methods

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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 The format of the added sticker must match the format of the other stickers in the set Emoji sticker sets can have up to 200 stickers Animated and video sticker sets can have up to 50 stickers Static 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) 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

type ApproveChatJoinRequest struct {
	ChatID any   `json:"chat_id"`
	UserID int64 `json:"user_id"`
}

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 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) Files

func (entity *BanChatMember) Files() map[string]rawTypes.InputFile

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) Files

func (entity *Close) Files() map[string]rawTypes.InputFile

func (Close) MethodName

func (Close) MethodName() string

func (Close) ParseResult

func (Close) ParseResult(response []byte) (*rawTypes.Result, error)

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 CopyMessage

type CopyMessage struct {
	AllowSendingWithoutReply bool                  `json:"allow_sending_without_reply,omitempty"`
	Caption                  string                `json:"caption,omitempty"`
	CaptionEntities          []types.MessageEntity `json:"caption_entities,omitempty"`
	ChatID                   any                   `json:"chat_id"`
	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"`
	ReplyToMessageID         int64                 `json:"reply_to_message_id,omitempty"`
}

CopyMessage Use this method to copy messages of any kind Service 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) Files

func (entity *CopyMessage) Files() map[string]rawTypes.InputFile

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 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 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 struct {
	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"`
	SendEmailToProvider       bool                 `json:"send_email_to_provider,omitempty"`
	SendPhoneNumberToProvider bool                 `json:"send_phone_number_to_provider,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"`
	StickerFormat   string               `json:"sticker_format"`
	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

type DeclineChatJoinRequest struct {
	ChatID any   `json:"chat_id"`
	UserID int64 `json:"user_id"`
}

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 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

type DeleteMessage struct {
	ChatID    any   `json:"chat_id"`
	MessageID int64 `json:"message_id"`
}

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 permission in a supergroup or a channel, it can delete any message there.Returns True on success.

func (*DeleteMessage) Files

func (entity *DeleteMessage) Files() map[string]rawTypes.InputFile

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 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) 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 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) Files

func (entity *DeleteWebhook) Files() map[string]rawTypes.InputFile

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 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 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 can_manage_topics administrator rights, unless it is the creator of the topic Returns True on success.

func (*EditForumTopic) Files

func (entity *EditForumTopic) Files() map[string]rawTypes.InputFile

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

type EditGeneralForumTopic struct {
	ChatID any    `json:"chat_id"`
	Name   string `json:"name"`
}

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 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 {
	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"`
}

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.

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 EditMessageLiveLocation

type EditMessageLiveLocation struct {
	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"`
	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 {
	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 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.

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 {
	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.

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 {
	ChatID                any                         `json:"chat_id,omitempty"`
	DisableWebPagePreview bool                        `json:"disable_web_page_preview,omitempty"`
	Entities              []types.MessageEntity       `json:"entities,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"`
	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.

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 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"`
	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"`
}

ForwardMessage Use this method to forward messages of any kind Service messages can't be forwarded On success, the sent Message is returned.

func (*ForwardMessage) Files

func (entity *ForwardMessage) Files() map[string]rawTypes.InputFile

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 GetChat

type GetChat struct {
	ChatID any `json:"chat_id"`
}

GetChat Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.) Returns a Chat object on success.

func (*GetChat) Files

func (entity *GetChat) Files() map[string]rawTypes.InputFile

func (GetChat) MarshalJSON

func (entity GetChat) MarshalJSON() ([]byte, error)

func (GetChat) MethodName

func (GetChat) MethodName() string

func (GetChat) ParseResult

func (GetChat) ParseResult(response []byte) (*rawTypes.Result, error)

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

type GetChatMember struct {
	ChatID any   `json:"chat_id"`
	UserID int64 `json:"user_id"`
}

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) Files

func (entity *GetChatMember) Files() map[string]rawTypes.InputFile

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) Files

func (entity *GetFile) Files() map[string]rawTypes.InputFile

func (GetFile) MethodName

func (GetFile) MethodName() string

func (GetFile) ParseResult

func (GetFile) ParseResult(response []byte) (*rawTypes.Result, error)

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) Files

func (entity *GetMe) Files() map[string]rawTypes.InputFile

func (GetMe) MethodName

func (GetMe) MethodName() string

func (GetMe) ParseResult

func (GetMe) ParseResult(response []byte) (*rawTypes.Result, error)

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) Files

func (entity *GetMyCommands) Files() map[string]rawTypes.InputFile

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 (GetMyDefaultAdministratorRights) MethodName

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) Files

func (entity *GetMyName) Files() map[string]rawTypes.InputFile

func (GetMyName) MethodName

func (GetMyName) MethodName() string

func (GetMyName) ParseResult

func (GetMyName) ParseResult(response []byte) (*rawTypes.Result, error)

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 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) Files

func (entity *GetStickerSet) Files() map[string]rawTypes.InputFile

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) Files

func (entity *GetUpdates) Files() map[string]rawTypes.InputFile

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 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) Files

func (entity *GetWebhookInfo) Files() map[string]rawTypes.InputFile

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 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) Files

func (entity *LeaveChat) Files() map[string]rawTypes.InputFile

func (LeaveChat) MarshalJSON

func (entity LeaveChat) MarshalJSON() ([]byte, error)

func (LeaveChat) MethodName

func (LeaveChat) MethodName() string

func (LeaveChat) ParseResult

func (LeaveChat) ParseResult(response []byte) (*rawTypes.Result, error)

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) Files

func (entity *LogOut) Files() map[string]rawTypes.InputFile

func (LogOut) MethodName

func (LogOut) MethodName() string

func (LogOut) ParseResult

func (LogOut) ParseResult(response []byte) (*rawTypes.Result, error)

func (*LogOut) ProgressCallable

func (entity *LogOut) ProgressCallable() rawTypes.ProgressCallable

type PinChatMessage

type PinChatMessage struct {
	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 If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel Returns True on success.

func (*PinChatMessage) Files

func (entity *PinChatMessage) Files() map[string]rawTypes.InputFile

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 PromoteChatMember

type PromoteChatMember struct {
	CanChangeInfo       bool  `json:"can_change_info,omitempty"`
	CanDeleteMessages   bool  `json:"can_delete_messages,omitempty"`
	CanEditMessages     bool  `json:"can_edit_messages,omitempty"`
	CanInviteUsers      bool  `json:"can_invite_users,omitempty"`
	CanManageChat       bool  `json:"can_manage_chat,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"`
	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 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 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 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 SendAnimation

type SendAnimation struct {
	AllowSendingWithoutReply bool                      `json:"allow_sending_without_reply,omitempty"`
	Animation                rawTypes.InputFile        `json:"animation,omitempty"`
	Caption                  string                    `json:"caption,omitempty"`
	CaptionEntities          []types.MessageEntity     `json:"caption_entities,omitempty"`
	ChatID                   any                       `json:"chat_id"`
	DisableNotification      bool                      `json:"disable_notification,omitempty"`
	Duration                 int                       `json:"duration,omitempty"`
	HasSpoiler               bool                      `json:"has_spoiler,omitempty"`
	Height                   int                       `json:"height,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"`
	ReplyToMessageID         int64                     `json:"reply_to_message_id,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) Files

func (entity *SendAnimation) Files() map[string]rawTypes.InputFile

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 {
	AllowSendingWithoutReply bool                      `json:"allow_sending_without_reply,omitempty"`
	Audio                    rawTypes.InputFile        `json:"audio,omitempty"`
	Caption                  string                    `json:"caption,omitempty"`
	CaptionEntities          []types.MessageEntity     `json:"caption_entities,omitempty"`
	ChatID                   any                       `json:"chat_id"`
	DisableNotification      bool                      `json:"disable_notification,omitempty"`
	Duration                 int                       `json:"duration,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"`
	ReplyToMessageID         int64                     `json:"reply_to_message_id,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) Files

func (entity *SendAudio) Files() map[string]rawTypes.InputFile

func (SendAudio) MarshalJSON

func (entity SendAudio) MarshalJSON() ([]byte, error)

func (SendAudio) MethodName

func (SendAudio) MethodName() string

func (SendAudio) ParseResult

func (SendAudio) ParseResult(response []byte) (*rawTypes.Result, error)

func (*SendAudio) ProgressCallable

func (entity *SendAudio) ProgressCallable() rawTypes.ProgressCallable

type SendChatAction

type SendChatAction struct {
	Action          string `json:"action"`
	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) Files

func (entity *SendChatAction) Files() map[string]rawTypes.InputFile

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 SendContact

type SendContact struct {
	AllowSendingWithoutReply bool   `json:"allow_sending_without_reply,omitempty"`
	ChatID                   any    `json:"chat_id"`
	DisableNotification      bool   `json:"disable_notification,omitempty"`
	FirstName                string `json:"first_name"`
	LastName                 string `json:"last_name,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"`
	ReplyToMessageID         int64  `json:"reply_to_message_id,omitempty"`
	Vcard                    string `json:"vcard,omitempty"`
}

SendContact Use this method to send phone contacts On success, the sent Message is returned.

func (*SendContact) Files

func (entity *SendContact) Files() map[string]rawTypes.InputFile

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 {
	AllowSendingWithoutReply bool   `json:"allow_sending_without_reply,omitempty"`
	ChatID                   any    `json:"chat_id"`
	DisableNotification      bool   `json:"disable_notification,omitempty"`
	Emoji                    string `json:"emoji,omitempty"`
	MessageThreadID          int64  `json:"message_thread_id,omitempty"`
	ProtectContent           bool   `json:"protect_content,omitempty"`
	ReplyMarkup              any    `json:"reply_markup,omitempty"`
	ReplyToMessageID         int64  `json:"reply_to_message_id,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) Files

func (entity *SendDice) Files() map[string]rawTypes.InputFile

func (SendDice) MarshalJSON

func (entity SendDice) MarshalJSON() ([]byte, error)

func (SendDice) MethodName

func (SendDice) MethodName() string

func (SendDice) ParseResult

func (SendDice) ParseResult(response []byte) (*rawTypes.Result, error)

func (*SendDice) ProgressCallable

func (entity *SendDice) ProgressCallable() rawTypes.ProgressCallable

type SendDocument

type SendDocument struct {
	AllowSendingWithoutReply    bool                      `json:"allow_sending_without_reply,omitempty"`
	Caption                     string                    `json:"caption,omitempty"`
	CaptionEntities             []types.MessageEntity     `json:"caption_entities,omitempty"`
	ChatID                      any                       `json:"chat_id"`
	DisableContentTypeDetection bool                      `json:"disable_content_type_detection,omitempty"`
	DisableNotification         bool                      `json:"disable_notification,omitempty"`
	Document                    rawTypes.InputFile        `json:"document,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"`
	ReplyToMessageID            int64                     `json:"reply_to_message_id,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) Files

func (entity *SendDocument) Files() map[string]rawTypes.InputFile

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 {
	AllowSendingWithoutReply bool                        `json:"allow_sending_without_reply,omitempty"`
	ChatID                   int64                       `json:"chat_id"`
	DisableNotification      bool                        `json:"disable_notification,omitempty"`
	GameShortName            string                      `json:"game_short_name"`
	MessageThreadID          int64                       `json:"message_thread_id,omitempty"`
	ProtectContent           bool                        `json:"protect_content,omitempty"`
	ReplyMarkup              *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	ReplyToMessageID         int64                       `json:"reply_to_message_id,omitempty"`
}

SendGame Use this method to send a game On success, the sent Message is returned.

func (*SendGame) Files

func (entity *SendGame) Files() map[string]rawTypes.InputFile

func (SendGame) MethodName

func (SendGame) MethodName() string

func (SendGame) ParseResult

func (SendGame) ParseResult(response []byte) (*rawTypes.Result, error)

func (*SendGame) ProgressCallable

func (entity *SendGame) ProgressCallable() rawTypes.ProgressCallable

type SendInvoice

type SendInvoice struct {
	AllowSendingWithoutReply  bool                        `json:"allow_sending_without_reply,omitempty"`
	ChatID                    any                         `json:"chat_id"`
	Currency                  string                      `json:"currency"`
	Description               string                      `json:"description"`
	DisableNotification       bool                        `json:"disable_notification,omitempty"`
	IsFlexible                bool                        `json:"is_flexible,omitempty"`
	MaxTipAmount              int                         `json:"max_tip_amount,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"`
	ReplyMarkup               *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
	ReplyToMessageID          int64                       `json:"reply_to_message_id,omitempty"`
	SendEmailToProvider       bool                        `json:"send_email_to_provider,omitempty"`
	SendPhoneNumberToProvider bool                        `json:"send_phone_number_to_provider,omitempty"`
	StartParameter            string                      `json:"start_parameter,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) Files

func (entity *SendInvoice) Files() map[string]rawTypes.InputFile

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 {
	AllowSendingWithoutReply bool    `json:"allow_sending_without_reply,omitempty"`
	ChatID                   any     `json:"chat_id"`
	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"`
	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"`
	ReplyToMessageID         int64   `json:"reply_to_message_id,omitempty"`
}

SendLocation Use this method to send point on the map On success, the sent Message is returned.

func (*SendLocation) Files

func (entity *SendLocation) Files() map[string]rawTypes.InputFile

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 {
	AllowSendingWithoutReply bool                      `json:"allow_sending_without_reply,omitempty"`
	ChatID                   any                       `json:"chat_id"`
	DisableNotification      bool                      `json:"disable_notification,omitempty"`
	Media                    []types.InputMedia        `json:"media,omitempty"`
	MessageThreadID          int64                     `json:"message_thread_id,omitempty"`
	ProtectContent           bool                      `json:"protect_content,omitempty"`
	ReplyToMessageID         int64                     `json:"reply_to_message_id,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 Messages that were sent is returned.

func (*SendMediaGroup) Files

func (entity *SendMediaGroup) Files() map[string]rawTypes.InputFile

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 {
	AllowSendingWithoutReply bool                  `json:"allow_sending_without_reply,omitempty"`
	ChatID                   any                   `json:"chat_id"`
	DisableNotification      bool                  `json:"disable_notification,omitempty"`
	DisableWebPagePreview    bool                  `json:"disable_web_page_preview,omitempty"`
	Entities                 []types.MessageEntity `json:"entities,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"`
	ReplyToMessageID         int64                 `json:"reply_to_message_id,omitempty"`
	Text                     string                `json:"text"`
}

SendMessage Use this method to send text messages On success, the sent Message is returned.

func (*SendMessage) Files

func (entity *SendMessage) Files() map[string]rawTypes.InputFile

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 SendPhoto

type SendPhoto struct {
	AllowSendingWithoutReply bool                      `json:"allow_sending_without_reply,omitempty"`
	Caption                  string                    `json:"caption,omitempty"`
	CaptionEntities          []types.MessageEntity     `json:"caption_entities,omitempty"`
	ChatID                   any                       `json:"chat_id"`
	DisableNotification      bool                      `json:"disable_notification,omitempty"`
	HasSpoiler               bool                      `json:"has_spoiler,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"`
	ReplyToMessageID         int64                     `json:"reply_to_message_id,omitempty"`
	Progress                 rawTypes.ProgressCallable `json:"-"`
}

SendPhoto Use this method to send photos On success, the sent Message is returned.

func (*SendPhoto) Files

func (entity *SendPhoto) Files() map[string]rawTypes.InputFile

func (SendPhoto) MarshalJSON

func (entity SendPhoto) MarshalJSON() ([]byte, error)

func (SendPhoto) MethodName

func (SendPhoto) MethodName() string

func (SendPhoto) ParseResult

func (SendPhoto) ParseResult(response []byte) (*rawTypes.Result, error)

func (*SendPhoto) ProgressCallable

func (entity *SendPhoto) ProgressCallable() rawTypes.ProgressCallable

type SendPoll

type SendPoll struct {
	AllowSendingWithoutReply bool                  `json:"allow_sending_without_reply,omitempty"`
	AllowsMultipleAnswers    bool                  `json:"allows_multiple_answers,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"`
	MessageThreadID          int64                 `json:"message_thread_id,omitempty"`
	OpenPeriod               int                   `json:"open_period,omitempty"`
	Options                  []string              `json:"options,omitempty"`
	ProtectContent           bool                  `json:"protect_content,omitempty"`
	Question                 string                `json:"question"`
	ReplyMarkup              any                   `json:"reply_markup,omitempty"`
	ReplyToMessageID         int64                 `json:"reply_to_message_id,omitempty"`
	Type                     string                `json:"type,omitempty"`
}

SendPoll Use this method to send a native poll On success, the sent Message is returned.

func (*SendPoll) Files

func (entity *SendPoll) Files() map[string]rawTypes.InputFile

func (SendPoll) MarshalJSON

func (entity SendPoll) MarshalJSON() ([]byte, error)

func (SendPoll) MethodName

func (SendPoll) MethodName() string

func (SendPoll) ParseResult

func (SendPoll) ParseResult(response []byte) (*rawTypes.Result, error)

func (*SendPoll) ProgressCallable

func (entity *SendPoll) ProgressCallable() rawTypes.ProgressCallable

type SendSticker

type SendSticker struct {
	AllowSendingWithoutReply bool                      `json:"allow_sending_without_reply,omitempty"`
	ChatID                   any                       `json:"chat_id"`
	DisableNotification      bool                      `json:"disable_notification,omitempty"`
	Emoji                    string                    `json:"emoji,omitempty"`
	MessageThreadID          int64                     `json:"message_thread_id,omitempty"`
	ProtectContent           bool                      `json:"protect_content,omitempty"`
	ReplyMarkup              any                       `json:"reply_markup,omitempty"`
	ReplyToMessageID         int64                     `json:"reply_to_message_id,omitempty"`
	Sticker                  rawTypes.InputFile        `json:"sticker,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) Files

func (entity *SendSticker) Files() map[string]rawTypes.InputFile

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"`
	AllowSendingWithoutReply bool    `json:"allow_sending_without_reply,omitempty"`
	ChatID                   any     `json:"chat_id"`
	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"`
	MessageThreadID          int64   `json:"message_thread_id,omitempty"`
	ProtectContent           bool    `json:"protect_content,omitempty"`
	ReplyMarkup              any     `json:"reply_markup,omitempty"`
	ReplyToMessageID         int64   `json:"reply_to_message_id,omitempty"`
	Title                    string  `json:"title"`
}

SendVenue Use this method to send information about a venue On success, the sent Message is returned.

func (*SendVenue) Files

func (entity *SendVenue) Files() map[string]rawTypes.InputFile

func (SendVenue) MarshalJSON

func (entity SendVenue) MarshalJSON() ([]byte, error)

func (SendVenue) MethodName

func (SendVenue) MethodName() string

func (SendVenue) ParseResult

func (SendVenue) ParseResult(response []byte) (*rawTypes.Result, error)

func (*SendVenue) ProgressCallable

func (entity *SendVenue) ProgressCallable() rawTypes.ProgressCallable

type SendVideo

type SendVideo struct {
	AllowSendingWithoutReply bool                      `json:"allow_sending_without_reply,omitempty"`
	Caption                  string                    `json:"caption,omitempty"`
	CaptionEntities          []types.MessageEntity     `json:"caption_entities,omitempty"`
	ChatID                   any                       `json:"chat_id"`
	DisableNotification      bool                      `json:"disable_notification,omitempty"`
	Duration                 int                       `json:"duration,omitempty"`
	HasSpoiler               bool                      `json:"has_spoiler,omitempty"`
	Height                   int                       `json:"height,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"`
	ReplyToMessageID         int64                     `json:"reply_to_message_id,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) Files

func (entity *SendVideo) Files() map[string]rawTypes.InputFile

func (SendVideo) MarshalJSON

func (entity SendVideo) MarshalJSON() ([]byte, error)

func (SendVideo) MethodName

func (SendVideo) MethodName() string

func (SendVideo) ParseResult

func (SendVideo) ParseResult(response []byte) (*rawTypes.Result, error)

func (*SendVideo) ProgressCallable

func (entity *SendVideo) ProgressCallable() rawTypes.ProgressCallable

type SendVideoNote

type SendVideoNote struct {
	AllowSendingWithoutReply bool                      `json:"allow_sending_without_reply,omitempty"`
	ChatID                   any                       `json:"chat_id"`
	DisableNotification      bool                      `json:"disable_notification,omitempty"`
	Duration                 int                       `json:"duration,omitempty"`
	Length                   int                       `json:"length,omitempty"`
	MessageThreadID          int64                     `json:"message_thread_id,omitempty"`
	ProtectContent           bool                      `json:"protect_content,omitempty"`
	ReplyMarkup              any                       `json:"reply_markup,omitempty"`
	ReplyToMessageID         int64                     `json:"reply_to_message_id,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) Files

func (entity *SendVideoNote) Files() map[string]rawTypes.InputFile

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 {
	AllowSendingWithoutReply bool                      `json:"allow_sending_without_reply,omitempty"`
	Caption                  string                    `json:"caption,omitempty"`
	CaptionEntities          []types.MessageEntity     `json:"caption_entities,omitempty"`
	ChatID                   any                       `json:"chat_id"`
	DisableNotification      bool                      `json:"disable_notification,omitempty"`
	Duration                 int                       `json:"duration,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"`
	ReplyToMessageID         int64                     `json:"reply_to_message_id,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 (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) Files

func (entity *SendVoice) Files() map[string]rawTypes.InputFile

func (SendVoice) MarshalJSON

func (entity SendVoice) MarshalJSON() ([]byte, error)

func (SendVoice) MethodName

func (SendVoice) MethodName() string

func (SendVoice) ParseResult

func (SendVoice) ParseResult(response []byte) (*rawTypes.Result, error)

func (*SendVoice) ProgressCallable

func (entity *SendVoice) 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 (SetChatAdministratorCustomTitle) MarshalJSON

func (entity SetChatAdministratorCustomTitle) MarshalJSON() ([]byte, error)

func (SetChatAdministratorCustomTitle) MethodName

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) 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) Files

func (entity *SetChatPhoto) Files() map[string]rawTypes.InputFile

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

type SetChatTitle struct {
	ChatID any    `json:"chat_id"`
	Title  string `json:"title"`
}

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) Files

func (entity *SetChatTitle) Files() map[string]rawTypes.InputFile

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 (SetCustomEmojiStickerSetThumbnail) MethodName

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) Files

func (entity *SetGameScore) Files() map[string]rawTypes.InputFile

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 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) Files

func (entity *SetMyCommands) Files() map[string]rawTypes.InputFile

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 (SetMyDefaultAdministratorRights) MethodName

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) Files

func (entity *SetMyName) Files() map[string]rawTypes.InputFile

func (SetMyName) MethodName

func (SetMyName) MethodName() string

func (SetMyName) ParseResult

func (SetMyName) ParseResult(response []byte) (*rawTypes.Result, error)

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) 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 {
	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) 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

type SetStickerSetTitle struct {
	Name  string `json:"name"`
	Title string `json:"title"`
}

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 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, we will 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) Files

func (entity *SetWebhook) Files() map[string]rawTypes.InputFile

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 {
	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 {
	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) Files

func (entity *StopPoll) Files() map[string]rawTypes.InputFile

func (StopPoll) MarshalJSON

func (entity StopPoll) MarshalJSON() ([]byte, error)

func (StopPoll) MethodName

func (StopPoll) MethodName() string

func (StopPoll) ParseResult

func (StopPoll) ParseResult(response []byte) (*rawTypes.Result, error)

func (*StopPoll) ProgressCallable

func (entity *StopPoll) 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 If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel 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 (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 UnpinChatMessage

type UnpinChatMessage struct {
	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 If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel 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 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 and addStickerToSet 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL