mirror of
https://github.com/lukaszraczylo/go-telegram.git
synced 2026-07-17 09:34:26 +00:00
chore(api): regenerate from Telegram Bot API v10.1
This commit is contained in:
committed by
github-actions[bot]
parent
140ea13bde
commit
d9eafec201
+5
-5
@@ -1985,7 +1985,7 @@ type SendMessageDraftParams struct {
|
|||||||
ChatID int64 `json:"chat_id"`
|
ChatID int64 `json:"chat_id"`
|
||||||
// Unique identifier for the target message thread
|
// Unique identifier for the target message thread
|
||||||
MessageThreadID *int64 `json:"message_thread_id,omitempty"`
|
MessageThreadID *int64 `json:"message_thread_id,omitempty"`
|
||||||
// Unique identifier of the message draft; must be non-zero. Changes of drafts with the same identifier are animated.
|
// Unique identifier of the message draft; must be non-zero. Changes to drafts with the same identifier are animated.
|
||||||
DraftID int64 `json:"draft_id"`
|
DraftID int64 `json:"draft_id"`
|
||||||
// Text of the message to be sent, 0-4096 characters after entities parsing. Pass an empty text to show a “Thinking…” placeholder.
|
// Text of the message to be sent, 0-4096 characters after entities parsing. Pass an empty text to show a “Thinking…” placeholder.
|
||||||
Text string `json:"text,omitempty"`
|
Text string `json:"text,omitempty"`
|
||||||
@@ -2502,7 +2502,7 @@ func AnswerChatJoinRequestQuery(ctx context.Context, b *client.Bot, p *AnswerCha
|
|||||||
|
|
||||||
// SendChatJoinRequestWebAppParams is the parameter set for SendChatJoinRequestWebApp.
|
// SendChatJoinRequestWebAppParams is the parameter set for SendChatJoinRequestWebApp.
|
||||||
//
|
//
|
||||||
// Use this method to process a received chat join request query by showing a Mini App to the user before deciding the outcome. Returns True on success.
|
// Use this method to process a received chat join request query by showing a Mini App to the user before deciding the outcome. Call answerChatJoinRequestQuery to resolve the join request query based on the user interaction with the Mini App. Returns True on success.
|
||||||
type SendChatJoinRequestWebAppParams struct {
|
type SendChatJoinRequestWebAppParams struct {
|
||||||
// Unique identifier of the join request query
|
// Unique identifier of the join request query
|
||||||
ChatJoinRequestQueryID string `json:"chat_join_request_query_id"`
|
ChatJoinRequestQueryID string `json:"chat_join_request_query_id"`
|
||||||
@@ -2512,7 +2512,7 @@ type SendChatJoinRequestWebAppParams struct {
|
|||||||
|
|
||||||
// SendChatJoinRequestWebApp calls the sendChatJoinRequestWebApp Telegram Bot API method.
|
// SendChatJoinRequestWebApp calls the sendChatJoinRequestWebApp Telegram Bot API method.
|
||||||
//
|
//
|
||||||
// Use this method to process a received chat join request query by showing a Mini App to the user before deciding the outcome. Returns True on success.
|
// Use this method to process a received chat join request query by showing a Mini App to the user before deciding the outcome. Call answerChatJoinRequestQuery to resolve the join request query based on the user interaction with the Mini App. Returns True on success.
|
||||||
func SendChatJoinRequestWebApp(ctx context.Context, b *client.Bot, p *SendChatJoinRequestWebAppParams) (bool, error) {
|
func SendChatJoinRequestWebApp(ctx context.Context, b *client.Bot, p *SendChatJoinRequestWebAppParams) (bool, error) {
|
||||||
return client.Call[*SendChatJoinRequestWebAppParams, bool](ctx, b, "sendChatJoinRequestWebApp", p)
|
return client.Call[*SendChatJoinRequestWebAppParams, bool](ctx, b, "sendChatJoinRequestWebApp", p)
|
||||||
}
|
}
|
||||||
@@ -4112,7 +4112,7 @@ type EditMessageMediaParams struct {
|
|||||||
MessageID *int64 `json:"message_id,omitempty"`
|
MessageID *int64 `json:"message_id,omitempty"`
|
||||||
// Required if chat_id and message_id are not specified. Identifier of the inline message.
|
// Required if chat_id and message_id are not specified. Identifier of the inline message.
|
||||||
InlineMessageID string `json:"inline_message_id,omitempty"`
|
InlineMessageID string `json:"inline_message_id,omitempty"`
|
||||||
// A JSON-serialized object for a new media content of the message
|
// A JSON-serialized object for the new media content of the message
|
||||||
Media InputMedia `json:"media"`
|
Media InputMedia `json:"media"`
|
||||||
// A JSON-serialized object for a new inline keyboard
|
// A JSON-serialized object for a new inline keyboard
|
||||||
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
||||||
@@ -4835,7 +4835,7 @@ func DeleteStickerSet(ctx context.Context, b *client.Bot, p *DeleteStickerSetPar
|
|||||||
//
|
//
|
||||||
// Use this method to send rich messages. If the message contains a block with a media element, then the bot must have the right to send the media to the chat. On success, the sent Message is returned.
|
// Use this method to send rich messages. If the message contains a block with a media element, then the bot must have the right to send the media to the chat. On success, the sent Message is returned.
|
||||||
type SendRichMessageParams struct {
|
type SendRichMessageParams struct {
|
||||||
// Unique identifier of the business connection on behalf of which the message will be sent
|
// Unique identifier of the business connection on behalf of which the message will be sent. Bot can send rich messages on behalf of a business account only if the corresponding user can send rich messages.
|
||||||
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
||||||
// Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username
|
// Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username
|
||||||
ChatID ChatID `json:"chat_id"`
|
ChatID ChatID `json:"chat_id"`
|
||||||
|
|||||||
+18
-18
@@ -2231,9 +2231,9 @@ type SuggestedPostDeclined struct {
|
|||||||
type SuggestedPostPaid struct {
|
type SuggestedPostPaid struct {
|
||||||
// Optional. Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
|
// Optional. Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
|
||||||
SuggestedPostMessage *Message `json:"suggested_post_message,omitempty"`
|
SuggestedPostMessage *Message `json:"suggested_post_message,omitempty"`
|
||||||
// Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins.
|
// Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for TON grams.
|
||||||
Currency SuggestedPostPaidCurrency `json:"currency"`
|
Currency SuggestedPostPaidCurrency `json:"currency"`
|
||||||
// Optional. The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only
|
// Optional. The amount of the currency that was received by the channel in nanograms; for payments in TON grams only
|
||||||
Amount *int64 `json:"amount,omitempty"`
|
Amount *int64 `json:"amount,omitempty"`
|
||||||
// Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only
|
// Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only
|
||||||
StarAmount *StarAmount `json:"star_amount,omitempty"`
|
StarAmount *StarAmount `json:"star_amount,omitempty"`
|
||||||
@@ -2331,9 +2331,9 @@ type LinkPreviewOptions struct {
|
|||||||
|
|
||||||
// Describes the price of a suggested post.
|
// Describes the price of a suggested post.
|
||||||
type SuggestedPostPrice struct {
|
type SuggestedPostPrice struct {
|
||||||
// Currency in which the post will be paid. Currently, must be one of “XTR” for Telegram Stars or “TON” for toncoins.
|
// Currency in which the post will be paid. Currently, must be one of “XTR” for Telegram Stars or “TON” for TON grams.
|
||||||
Currency SuggestedPostPaidCurrency `json:"currency"`
|
Currency SuggestedPostPaidCurrency `json:"currency"`
|
||||||
// The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanotoncoins. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanotoncoins must be between 10000000 and 10000000000000.
|
// The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanograms. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanograms must be between 10000000 and 10000000000000.
|
||||||
Amount int64 `json:"amount"`
|
Amount int64 `json:"amount"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3067,7 +3067,7 @@ type ChatJoinRequest struct {
|
|||||||
Bio string `json:"bio,omitempty"`
|
Bio string `json:"bio,omitempty"`
|
||||||
// Optional. Chat invite link that was used by the user to send the join request
|
// Optional. Chat invite link that was used by the user to send the join request
|
||||||
InviteLink *ChatInviteLink `json:"invite_link,omitempty"`
|
InviteLink *ChatInviteLink `json:"invite_link,omitempty"`
|
||||||
// Optional. Identifier of the join request query. If present, then the bot must call sendChatJoinRequestWebApp or directly call answerChatJoinRequestQuery within 10 seconds.
|
// Optional. Identifier of the join request query; for bots assigned to process join request only. If present, then the bot must call sendChatJoinRequestWebApp or directly call answerChatJoinRequestQuery within 10 seconds.
|
||||||
QueryID string `json:"query_id,omitempty"`
|
QueryID string `json:"query_id,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3847,9 +3847,9 @@ type UniqueGiftInfo struct {
|
|||||||
Gift UniqueGift `json:"gift"`
|
Gift UniqueGift `json:"gift"`
|
||||||
// Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, “resale” for gifts bought from other users, “gifted_upgrade” for upgrades purchased after the gift was sent, or “offer” for gifts bought or sold through gift purchase offers.
|
// Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, “resale” for gifts bought from other users, “gifted_upgrade” for upgrades purchased after the gift was sent, or “offer” for gifts bought or sold through gift purchase offers.
|
||||||
Origin UniqueGiftInfoOrigin `json:"origin"`
|
Origin UniqueGiftInfoOrigin `json:"origin"`
|
||||||
// Optional. For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins.
|
// Optional. For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of “XTR” for Telegram Stars or “TON” for TON grams.
|
||||||
LastResaleCurrency SuggestedPostPaidCurrency `json:"last_resale_currency,omitempty"`
|
LastResaleCurrency SuggestedPostPaidCurrency `json:"last_resale_currency,omitempty"`
|
||||||
// Optional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanotoncoins
|
// Optional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanograms
|
||||||
LastResaleAmount *int64 `json:"last_resale_amount,omitempty"`
|
LastResaleAmount *int64 `json:"last_resale_amount,omitempty"`
|
||||||
// Optional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts
|
// Optional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts
|
||||||
OwnedGiftID string `json:"owned_gift_id,omitempty"`
|
OwnedGiftID string `json:"owned_gift_id,omitempty"`
|
||||||
@@ -4730,7 +4730,7 @@ func (*InputMediaVideo) isInputMedia() {}
|
|||||||
|
|
||||||
// Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
|
// Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
|
||||||
type InputMediaAnimation struct {
|
type InputMediaAnimation struct {
|
||||||
// Type of the result, must be animation
|
// Type of the media, must be animation
|
||||||
Type InputMediaType `json:"type"`
|
Type InputMediaType `json:"type"`
|
||||||
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
||||||
Media string `json:"media"`
|
Media string `json:"media"`
|
||||||
@@ -4772,7 +4772,7 @@ func (v *InputMediaAnimation) MarshalJSON() ([]byte, error) {
|
|||||||
|
|
||||||
// Represents an audio file to be treated as music to be sent.
|
// Represents an audio file to be treated as music to be sent.
|
||||||
type InputMediaAudio struct {
|
type InputMediaAudio struct {
|
||||||
// Type of the result, must be audio
|
// Type of the media, must be audio
|
||||||
Type InputMediaType `json:"type"`
|
Type InputMediaType `json:"type"`
|
||||||
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
||||||
Media string `json:"media"`
|
Media string `json:"media"`
|
||||||
@@ -4810,7 +4810,7 @@ func (v *InputMediaAudio) MarshalJSON() ([]byte, error) {
|
|||||||
|
|
||||||
// Represents a general file to be sent.
|
// Represents a general file to be sent.
|
||||||
type InputMediaDocument struct {
|
type InputMediaDocument struct {
|
||||||
// Type of the result, must be document
|
// Type of the media, must be document
|
||||||
Type InputMediaType `json:"type"`
|
Type InputMediaType `json:"type"`
|
||||||
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
||||||
Media string `json:"media"`
|
Media string `json:"media"`
|
||||||
@@ -4844,7 +4844,7 @@ func (v *InputMediaDocument) MarshalJSON() ([]byte, error) {
|
|||||||
|
|
||||||
// Represents an HTTP link to be sent.
|
// Represents an HTTP link to be sent.
|
||||||
type InputMediaLink struct {
|
type InputMediaLink struct {
|
||||||
// Type of the result, must be link
|
// Type of the media, must be link
|
||||||
Type InputPollOptionMediaType `json:"type"`
|
Type InputPollOptionMediaType `json:"type"`
|
||||||
// HTTP URL of the link
|
// HTTP URL of the link
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
@@ -4868,7 +4868,7 @@ func (v *InputMediaLink) MarshalJSON() ([]byte, error) {
|
|||||||
|
|
||||||
// Represents a live photo to be sent.
|
// Represents a live photo to be sent.
|
||||||
type InputMediaLivePhoto struct {
|
type InputMediaLivePhoto struct {
|
||||||
// Type of the result, must be live_photo
|
// Type of the media, must be live_photo
|
||||||
Type InputMediaType `json:"type"`
|
Type InputMediaType `json:"type"`
|
||||||
// Video of the live photo to send. Pass a file_id to send a file that exists on the Telegram servers (recommended) or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files ». Sending live photos by a URL is currently unsupported.
|
// Video of the live photo to send. Pass a file_id to send a file that exists on the Telegram servers (recommended) or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files ». Sending live photos by a URL is currently unsupported.
|
||||||
Media string `json:"media"`
|
Media string `json:"media"`
|
||||||
@@ -4904,7 +4904,7 @@ func (v *InputMediaLivePhoto) MarshalJSON() ([]byte, error) {
|
|||||||
|
|
||||||
// Represents a location to be sent.
|
// Represents a location to be sent.
|
||||||
type InputMediaLocation struct {
|
type InputMediaLocation struct {
|
||||||
// Type of the result, must be location
|
// Type of the media, must be location
|
||||||
Type InputPollOptionMediaType `json:"type"`
|
Type InputPollOptionMediaType `json:"type"`
|
||||||
// Latitude of the location
|
// Latitude of the location
|
||||||
Latitude float64 `json:"latitude"`
|
Latitude float64 `json:"latitude"`
|
||||||
@@ -4932,7 +4932,7 @@ func (v *InputMediaLocation) MarshalJSON() ([]byte, error) {
|
|||||||
|
|
||||||
// Represents a photo to be sent.
|
// Represents a photo to be sent.
|
||||||
type InputMediaPhoto struct {
|
type InputMediaPhoto struct {
|
||||||
// Type of the result, must be photo
|
// Type of the media, must be photo
|
||||||
Type InputMediaType `json:"type"`
|
Type InputMediaType `json:"type"`
|
||||||
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
||||||
Media string `json:"media"`
|
Media string `json:"media"`
|
||||||
@@ -4966,7 +4966,7 @@ func (v *InputMediaPhoto) MarshalJSON() ([]byte, error) {
|
|||||||
|
|
||||||
// Represents a sticker file to be sent.
|
// Represents a sticker file to be sent.
|
||||||
type InputMediaSticker struct {
|
type InputMediaSticker struct {
|
||||||
// Type of the result, must be sticker
|
// Type of the media, must be sticker
|
||||||
Type InputPollOptionMediaType `json:"type"`
|
Type InputPollOptionMediaType `json:"type"`
|
||||||
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a .WEBP sticker from the Internet, or pass “attach://<file_attach_name>” to upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a .WEBP sticker from the Internet, or pass “attach://<file_attach_name>” to upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
||||||
Media string `json:"media"`
|
Media string `json:"media"`
|
||||||
@@ -4992,7 +4992,7 @@ func (v *InputMediaSticker) MarshalJSON() ([]byte, error) {
|
|||||||
|
|
||||||
// Represents a venue to be sent.
|
// Represents a venue to be sent.
|
||||||
type InputMediaVenue struct {
|
type InputMediaVenue struct {
|
||||||
// Type of the result, must be venue
|
// Type of the media, must be venue
|
||||||
Type InputPollOptionMediaType `json:"type"`
|
Type InputPollOptionMediaType `json:"type"`
|
||||||
// Latitude of the location
|
// Latitude of the location
|
||||||
Latitude float64 `json:"latitude"`
|
Latitude float64 `json:"latitude"`
|
||||||
@@ -5030,7 +5030,7 @@ func (v *InputMediaVenue) MarshalJSON() ([]byte, error) {
|
|||||||
|
|
||||||
// Represents a video to be sent.
|
// Represents a video to be sent.
|
||||||
type InputMediaVideo struct {
|
type InputMediaVideo struct {
|
||||||
// Type of the result, must be video
|
// Type of the media, must be video
|
||||||
Type InputMediaType `json:"type"`
|
Type InputMediaType `json:"type"`
|
||||||
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
||||||
Media string `json:"media"`
|
Media string `json:"media"`
|
||||||
@@ -6716,7 +6716,7 @@ func (v *RichBlockAudio) MarshalJSON() ([]byte, error) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// A block with a photo, corresponding to the HTML tag <photo>.
|
// A block with a photo, corresponding to the HTML tag <img>.
|
||||||
type RichBlockPhoto struct {
|
type RichBlockPhoto struct {
|
||||||
// Type of the block, always “photo”
|
// Type of the block, always “photo”
|
||||||
Type RichBlockType `json:"type"`
|
Type RichBlockType `json:"type"`
|
||||||
|
|||||||
+23
-23
@@ -1687,7 +1687,7 @@ func SendChatJoinRequestWebApp(ctx context.Context, b *client.Bot, p *SendChatJo
|
|||||||
|
|
||||||
SendChatJoinRequestWebApp calls the sendChatJoinRequestWebApp Telegram Bot API method.
|
SendChatJoinRequestWebApp calls the sendChatJoinRequestWebApp Telegram Bot API method.
|
||||||
|
|
||||||
Use this method to process a received chat join request query by showing a Mini App to the user before deciding the outcome. Returns True on success.
|
Use this method to process a received chat join request query by showing a Mini App to the user before deciding the outcome. Call answerChatJoinRequestQuery to resolve the join request query based on the user interaction with the Mini App. Returns True on success.
|
||||||
|
|
||||||
<a name="SendGift"></a>
|
<a name="SendGift"></a>
|
||||||
## func [SendGift](<https://github.com/lukaszraczylo/go-telegram/blob/main/api/methods.gen.go#L3451>)
|
## func [SendGift](<https://github.com/lukaszraczylo/go-telegram/blob/main/api/methods.gen.go#L3451>)
|
||||||
@@ -3931,7 +3931,7 @@ type ChatJoinRequest struct {
|
|||||||
Bio string `json:"bio,omitempty"`
|
Bio string `json:"bio,omitempty"`
|
||||||
// Optional. Chat invite link that was used by the user to send the join request
|
// Optional. Chat invite link that was used by the user to send the join request
|
||||||
InviteLink *ChatInviteLink `json:"invite_link,omitempty"`
|
InviteLink *ChatInviteLink `json:"invite_link,omitempty"`
|
||||||
// Optional. Identifier of the join request query. If present, then the bot must call sendChatJoinRequestWebApp or directly call answerChatJoinRequestQuery within 10 seconds.
|
// Optional. Identifier of the join request query; for bots assigned to process join request only. If present, then the bot must call sendChatJoinRequestWebApp or directly call answerChatJoinRequestQuery within 10 seconds.
|
||||||
QueryID string `json:"query_id,omitempty"`
|
QueryID string `json:"query_id,omitempty"`
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -5309,7 +5309,7 @@ type EditMessageMediaParams struct {
|
|||||||
MessageID *int64 `json:"message_id,omitempty"`
|
MessageID *int64 `json:"message_id,omitempty"`
|
||||||
// Required if chat_id and message_id are not specified. Identifier of the inline message.
|
// Required if chat_id and message_id are not specified. Identifier of the inline message.
|
||||||
InlineMessageID string `json:"inline_message_id,omitempty"`
|
InlineMessageID string `json:"inline_message_id,omitempty"`
|
||||||
// A JSON-serialized object for a new media content of the message
|
// A JSON-serialized object for the new media content of the message
|
||||||
Media InputMedia `json:"media"`
|
Media InputMedia `json:"media"`
|
||||||
// A JSON-serialized object for a new inline keyboard
|
// A JSON-serialized object for a new inline keyboard
|
||||||
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
||||||
@@ -7874,7 +7874,7 @@ Represents an animation file \(GIF or H.264/MPEG\-4 AVC video without sound\) to
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
type InputMediaAnimation struct {
|
type InputMediaAnimation struct {
|
||||||
// Type of the result, must be animation
|
// Type of the media, must be animation
|
||||||
Type InputMediaType `json:"type"`
|
Type InputMediaType `json:"type"`
|
||||||
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
||||||
Media string `json:"media"`
|
Media string `json:"media"`
|
||||||
@@ -7915,7 +7915,7 @@ Represents an audio file to be treated as music to be sent.
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
type InputMediaAudio struct {
|
type InputMediaAudio struct {
|
||||||
// Type of the result, must be audio
|
// Type of the media, must be audio
|
||||||
Type InputMediaType `json:"type"`
|
Type InputMediaType `json:"type"`
|
||||||
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
||||||
Media string `json:"media"`
|
Media string `json:"media"`
|
||||||
@@ -7952,7 +7952,7 @@ Represents a general file to be sent.
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
type InputMediaDocument struct {
|
type InputMediaDocument struct {
|
||||||
// Type of the result, must be document
|
// Type of the media, must be document
|
||||||
Type InputMediaType `json:"type"`
|
Type InputMediaType `json:"type"`
|
||||||
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
||||||
Media string `json:"media"`
|
Media string `json:"media"`
|
||||||
@@ -7985,7 +7985,7 @@ Represents an HTTP link to be sent.
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
type InputMediaLink struct {
|
type InputMediaLink struct {
|
||||||
// Type of the result, must be link
|
// Type of the media, must be link
|
||||||
Type InputPollOptionMediaType `json:"type"`
|
Type InputPollOptionMediaType `json:"type"`
|
||||||
// HTTP URL of the link
|
// HTTP URL of the link
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
@@ -8008,7 +8008,7 @@ Represents a live photo to be sent.
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
type InputMediaLivePhoto struct {
|
type InputMediaLivePhoto struct {
|
||||||
// Type of the result, must be live_photo
|
// Type of the media, must be live_photo
|
||||||
Type InputMediaType `json:"type"`
|
Type InputMediaType `json:"type"`
|
||||||
// Video of the live photo to send. Pass a file_id to send a file that exists on the Telegram servers (recommended) or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files ». Sending live photos by a URL is currently unsupported.
|
// Video of the live photo to send. Pass a file_id to send a file that exists on the Telegram servers (recommended) or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files ». Sending live photos by a URL is currently unsupported.
|
||||||
Media string `json:"media"`
|
Media string `json:"media"`
|
||||||
@@ -8043,7 +8043,7 @@ Represents a location to be sent.
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
type InputMediaLocation struct {
|
type InputMediaLocation struct {
|
||||||
// Type of the result, must be location
|
// Type of the media, must be location
|
||||||
Type InputPollOptionMediaType `json:"type"`
|
Type InputPollOptionMediaType `json:"type"`
|
||||||
// Latitude of the location
|
// Latitude of the location
|
||||||
Latitude float64 `json:"latitude"`
|
Latitude float64 `json:"latitude"`
|
||||||
@@ -8070,7 +8070,7 @@ Represents a photo to be sent.
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
type InputMediaPhoto struct {
|
type InputMediaPhoto struct {
|
||||||
// Type of the result, must be photo
|
// Type of the media, must be photo
|
||||||
Type InputMediaType `json:"type"`
|
Type InputMediaType `json:"type"`
|
||||||
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
||||||
Media string `json:"media"`
|
Media string `json:"media"`
|
||||||
@@ -8103,7 +8103,7 @@ Represents a sticker file to be sent.
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
type InputMediaSticker struct {
|
type InputMediaSticker struct {
|
||||||
// Type of the result, must be sticker
|
// Type of the media, must be sticker
|
||||||
Type InputPollOptionMediaType `json:"type"`
|
Type InputPollOptionMediaType `json:"type"`
|
||||||
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a .WEBP sticker from the Internet, or pass “attach://<file_attach_name>” to upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a .WEBP sticker from the Internet, or pass “attach://<file_attach_name>” to upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
||||||
Media string `json:"media"`
|
Media string `json:"media"`
|
||||||
@@ -8150,7 +8150,7 @@ Represents a venue to be sent.
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
type InputMediaVenue struct {
|
type InputMediaVenue struct {
|
||||||
// Type of the result, must be venue
|
// Type of the media, must be venue
|
||||||
Type InputPollOptionMediaType `json:"type"`
|
Type InputPollOptionMediaType `json:"type"`
|
||||||
// Latitude of the location
|
// Latitude of the location
|
||||||
Latitude float64 `json:"latitude"`
|
Latitude float64 `json:"latitude"`
|
||||||
@@ -8187,7 +8187,7 @@ Represents a video to be sent.
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
type InputMediaVideo struct {
|
type InputMediaVideo struct {
|
||||||
// Type of the result, must be video
|
// Type of the media, must be video
|
||||||
Type InputMediaType `json:"type"`
|
Type InputMediaType `json:"type"`
|
||||||
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
// File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
|
||||||
Media string `json:"media"`
|
Media string `json:"media"`
|
||||||
@@ -12622,7 +12622,7 @@ MarshalJSON encodes RichBlockParagraph with the discriminator field "type" force
|
|||||||
<a name="RichBlockPhoto"></a>
|
<a name="RichBlockPhoto"></a>
|
||||||
## type [RichBlockPhoto](<https://github.com/lukaszraczylo/go-telegram/blob/main/api/types.gen.go#L6720-L6729>)
|
## type [RichBlockPhoto](<https://github.com/lukaszraczylo/go-telegram/blob/main/api/types.gen.go#L6720-L6729>)
|
||||||
|
|
||||||
A block with a photo, corresponding to the HTML tag \<photo\>.
|
A block with a photo, corresponding to the HTML tag \<img\>.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
type RichBlockPhoto struct {
|
type RichBlockPhoto struct {
|
||||||
@@ -13869,7 +13869,7 @@ type SendChatActionParams struct {
|
|||||||
|
|
||||||
SendChatJoinRequestWebAppParams is the parameter set for SendChatJoinRequestWebApp.
|
SendChatJoinRequestWebAppParams is the parameter set for SendChatJoinRequestWebApp.
|
||||||
|
|
||||||
Use this method to process a received chat join request query by showing a Mini App to the user before deciding the outcome. Returns True on success.
|
Use this method to process a received chat join request query by showing a Mini App to the user before deciding the outcome. Call answerChatJoinRequestQuery to resolve the join request query based on the user interaction with the Mini App. Returns True on success.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
type SendChatJoinRequestWebAppParams struct {
|
type SendChatJoinRequestWebAppParams struct {
|
||||||
@@ -14384,7 +14384,7 @@ type SendMessageDraftParams struct {
|
|||||||
ChatID int64 `json:"chat_id"`
|
ChatID int64 `json:"chat_id"`
|
||||||
// Unique identifier for the target message thread
|
// Unique identifier for the target message thread
|
||||||
MessageThreadID *int64 `json:"message_thread_id,omitempty"`
|
MessageThreadID *int64 `json:"message_thread_id,omitempty"`
|
||||||
// Unique identifier of the message draft; must be non-zero. Changes of drafts with the same identifier are animated.
|
// Unique identifier of the message draft; must be non-zero. Changes to drafts with the same identifier are animated.
|
||||||
DraftID int64 `json:"draft_id"`
|
DraftID int64 `json:"draft_id"`
|
||||||
// Text of the message to be sent, 0-4096 characters after entities parsing. Pass an empty text to show a “Thinking…” placeholder.
|
// Text of the message to be sent, 0-4096 characters after entities parsing. Pass an empty text to show a “Thinking…” placeholder.
|
||||||
Text string `json:"text,omitempty"`
|
Text string `json:"text,omitempty"`
|
||||||
@@ -14692,7 +14692,7 @@ Use this method to send rich messages. If the message contains a block with a me
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
type SendRichMessageParams struct {
|
type SendRichMessageParams struct {
|
||||||
// Unique identifier of the business connection on behalf of which the message will be sent
|
// Unique identifier of the business connection on behalf of which the message will be sent. Bot can send rich messages on behalf of a business account only if the corresponding user can send rich messages.
|
||||||
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
||||||
// Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username
|
// Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username
|
||||||
ChatID ChatID `json:"chat_id"`
|
ChatID ChatID `json:"chat_id"`
|
||||||
@@ -16511,9 +16511,9 @@ Describes a service message about a successful payment for a suggested post.
|
|||||||
type SuggestedPostPaid struct {
|
type SuggestedPostPaid struct {
|
||||||
// Optional. Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
|
// Optional. Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
|
||||||
SuggestedPostMessage *Message `json:"suggested_post_message,omitempty"`
|
SuggestedPostMessage *Message `json:"suggested_post_message,omitempty"`
|
||||||
// Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins.
|
// Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for TON grams.
|
||||||
Currency SuggestedPostPaidCurrency `json:"currency"`
|
Currency SuggestedPostPaidCurrency `json:"currency"`
|
||||||
// Optional. The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only
|
// Optional. The amount of the currency that was received by the channel in nanograms; for payments in TON grams only
|
||||||
Amount *int64 `json:"amount,omitempty"`
|
Amount *int64 `json:"amount,omitempty"`
|
||||||
// Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only
|
// Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only
|
||||||
StarAmount *StarAmount `json:"star_amount,omitempty"`
|
StarAmount *StarAmount `json:"star_amount,omitempty"`
|
||||||
@@ -16559,9 +16559,9 @@ Describes the price of a suggested post.
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
type SuggestedPostPrice struct {
|
type SuggestedPostPrice struct {
|
||||||
// Currency in which the post will be paid. Currently, must be one of “XTR” for Telegram Stars or “TON” for toncoins.
|
// Currency in which the post will be paid. Currently, must be one of “XTR” for Telegram Stars or “TON” for TON grams.
|
||||||
Currency SuggestedPostPaidCurrency `json:"currency"`
|
Currency SuggestedPostPaidCurrency `json:"currency"`
|
||||||
// The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanotoncoins. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanotoncoins must be between 10000000 and 10000000000000.
|
// The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanograms. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanograms must be between 10000000 and 10000000000000.
|
||||||
Amount int64 `json:"amount"`
|
Amount int64 `json:"amount"`
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -17090,9 +17090,9 @@ type UniqueGiftInfo struct {
|
|||||||
Gift UniqueGift `json:"gift"`
|
Gift UniqueGift `json:"gift"`
|
||||||
// Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, “resale” for gifts bought from other users, “gifted_upgrade” for upgrades purchased after the gift was sent, or “offer” for gifts bought or sold through gift purchase offers.
|
// Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, “resale” for gifts bought from other users, “gifted_upgrade” for upgrades purchased after the gift was sent, or “offer” for gifts bought or sold through gift purchase offers.
|
||||||
Origin UniqueGiftInfoOrigin `json:"origin"`
|
Origin UniqueGiftInfoOrigin `json:"origin"`
|
||||||
// Optional. For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins.
|
// Optional. For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of “XTR” for Telegram Stars or “TON” for TON grams.
|
||||||
LastResaleCurrency SuggestedPostPaidCurrency `json:"last_resale_currency,omitempty"`
|
LastResaleCurrency SuggestedPostPaidCurrency `json:"last_resale_currency,omitempty"`
|
||||||
// Optional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanotoncoins
|
// Optional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanograms
|
||||||
LastResaleAmount *int64 `json:"last_resale_amount,omitempty"`
|
LastResaleAmount *int64 `json:"last_resale_amount,omitempty"`
|
||||||
// Optional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts
|
// Optional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts
|
||||||
OwnedGiftID string `json:"owned_gift_id,omitempty"`
|
OwnedGiftID string `json:"owned_gift_id,omitempty"`
|
||||||
|
|||||||
+22
-22
@@ -5910,7 +5910,7 @@
|
|||||||
"name": "string"
|
"name": "string"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"doc": "Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins.",
|
"doc": "Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for TON grams.",
|
||||||
"enum_values": [
|
"enum_values": [
|
||||||
"XTR",
|
"XTR",
|
||||||
"TON"
|
"TON"
|
||||||
@@ -5923,7 +5923,7 @@
|
|||||||
"kind": "primitive",
|
"kind": "primitive",
|
||||||
"name": "int64"
|
"name": "int64"
|
||||||
},
|
},
|
||||||
"doc": "Optional. The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only"
|
"doc": "Optional. The amount of the currency that was received by the channel in nanograms; for payments in TON grams only"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "StarAmount",
|
"name": "StarAmount",
|
||||||
@@ -6304,7 +6304,7 @@
|
|||||||
"name": "string"
|
"name": "string"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"doc": "Currency in which the post will be paid. Currently, must be one of “XTR” for Telegram Stars or “TON” for toncoins.",
|
"doc": "Currency in which the post will be paid. Currently, must be one of “XTR” for Telegram Stars or “TON” for TON grams.",
|
||||||
"enum_values": [
|
"enum_values": [
|
||||||
"XTR",
|
"XTR",
|
||||||
"TON"
|
"TON"
|
||||||
@@ -6318,7 +6318,7 @@
|
|||||||
"name": "int64"
|
"name": "int64"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"doc": "The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanotoncoins. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanotoncoins must be between 10000000 and 10000000000000."
|
"doc": "The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanograms. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanograms must be between 10000000 and 10000000000000."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -8401,7 +8401,7 @@
|
|||||||
"kind": "primitive",
|
"kind": "primitive",
|
||||||
"name": "string"
|
"name": "string"
|
||||||
},
|
},
|
||||||
"doc": "Optional. Identifier of the join request query. If present, then the bot must call sendChatJoinRequestWebApp or directly call answerChatJoinRequestQuery within 10 seconds."
|
"doc": "Optional. Identifier of the join request query; for bots assigned to process join request only. If present, then the bot must call sendChatJoinRequestWebApp or directly call answerChatJoinRequestQuery within 10 seconds."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -10098,7 +10098,7 @@
|
|||||||
"kind": "primitive",
|
"kind": "primitive",
|
||||||
"name": "string"
|
"name": "string"
|
||||||
},
|
},
|
||||||
"doc": "Optional. For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins.",
|
"doc": "Optional. For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of “XTR” for Telegram Stars or “TON” for TON grams.",
|
||||||
"enum_values": [
|
"enum_values": [
|
||||||
"XTR",
|
"XTR",
|
||||||
"TON"
|
"TON"
|
||||||
@@ -10111,7 +10111,7 @@
|
|||||||
"kind": "primitive",
|
"kind": "primitive",
|
||||||
"name": "int64"
|
"name": "int64"
|
||||||
},
|
},
|
||||||
"doc": "Optional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanotoncoins"
|
"doc": "Optional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanograms"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "OwnedGiftID",
|
"name": "OwnedGiftID",
|
||||||
@@ -11543,7 +11543,7 @@
|
|||||||
"name": "string"
|
"name": "string"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"doc": "Type of the result, must be animation",
|
"doc": "Type of the media, must be animation",
|
||||||
"enum_values": [
|
"enum_values": [
|
||||||
"animation"
|
"animation"
|
||||||
]
|
]
|
||||||
@@ -11661,7 +11661,7 @@
|
|||||||
"name": "string"
|
"name": "string"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"doc": "Type of the result, must be audio",
|
"doc": "Type of the media, must be audio",
|
||||||
"enum_values": [
|
"enum_values": [
|
||||||
"audio"
|
"audio"
|
||||||
]
|
]
|
||||||
@@ -11761,7 +11761,7 @@
|
|||||||
"name": "string"
|
"name": "string"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"doc": "Type of the result, must be document",
|
"doc": "Type of the media, must be document",
|
||||||
"enum_values": [
|
"enum_values": [
|
||||||
"document"
|
"document"
|
||||||
]
|
]
|
||||||
@@ -11843,7 +11843,7 @@
|
|||||||
"name": "string"
|
"name": "string"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"doc": "Type of the result, must be link",
|
"doc": "Type of the media, must be link",
|
||||||
"enum_values": [
|
"enum_values": [
|
||||||
"link"
|
"link"
|
||||||
]
|
]
|
||||||
@@ -11872,7 +11872,7 @@
|
|||||||
"name": "string"
|
"name": "string"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"doc": "Type of the result, must be live_photo",
|
"doc": "Type of the media, must be live_photo",
|
||||||
"enum_values": [
|
"enum_values": [
|
||||||
"live_photo"
|
"live_photo"
|
||||||
]
|
]
|
||||||
@@ -11964,7 +11964,7 @@
|
|||||||
"name": "string"
|
"name": "string"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"doc": "Type of the result, must be location",
|
"doc": "Type of the media, must be location",
|
||||||
"enum_values": [
|
"enum_values": [
|
||||||
"location"
|
"location"
|
||||||
]
|
]
|
||||||
@@ -12012,7 +12012,7 @@
|
|||||||
"name": "string"
|
"name": "string"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"doc": "Type of the result, must be photo",
|
"doc": "Type of the media, must be photo",
|
||||||
"enum_values": [
|
"enum_values": [
|
||||||
"photo"
|
"photo"
|
||||||
]
|
]
|
||||||
@@ -12094,7 +12094,7 @@
|
|||||||
"name": "string"
|
"name": "string"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"doc": "Type of the result, must be sticker",
|
"doc": "Type of the media, must be sticker",
|
||||||
"enum_values": [
|
"enum_values": [
|
||||||
"sticker"
|
"sticker"
|
||||||
]
|
]
|
||||||
@@ -12132,7 +12132,7 @@
|
|||||||
"name": "string"
|
"name": "string"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"doc": "Type of the result, must be venue",
|
"doc": "Type of the media, must be venue",
|
||||||
"enum_values": [
|
"enum_values": [
|
||||||
"venue"
|
"venue"
|
||||||
]
|
]
|
||||||
@@ -12227,7 +12227,7 @@
|
|||||||
"name": "string"
|
"name": "string"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"doc": "Type of the result, must be video",
|
"doc": "Type of the media, must be video",
|
||||||
"enum_values": [
|
"enum_values": [
|
||||||
"video"
|
"video"
|
||||||
]
|
]
|
||||||
@@ -14879,7 +14879,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "RichBlockPhoto",
|
"name": "RichBlockPhoto",
|
||||||
"doc": "A block with a photo, corresponding to the HTML tag <photo>.",
|
"doc": "A block with a photo, corresponding to the HTML tag <img>.",
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"name": "Type",
|
"name": "Type",
|
||||||
@@ -23857,7 +23857,7 @@
|
|||||||
"name": "int64"
|
"name": "int64"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"doc": "Unique identifier of the message draft; must be non-zero. Changes of drafts with the same identifier are animated."
|
"doc": "Unique identifier of the message draft; must be non-zero. Changes to drafts with the same identifier are animated."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Text",
|
"name": "Text",
|
||||||
@@ -25053,7 +25053,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sendChatJoinRequestWebApp",
|
"name": "sendChatJoinRequestWebApp",
|
||||||
"doc": "Use this method to process a received chat join request query by showing a Mini App to the user before deciding the outcome. Returns True on success.",
|
"doc": "Use this method to process a received chat join request query by showing a Mini App to the user before deciding the outcome. Call answerChatJoinRequestQuery to resolve the join request query based on the user interaction with the Mini App. Returns True on success.",
|
||||||
"params": [
|
"params": [
|
||||||
{
|
{
|
||||||
"name": "ChatJoinRequestQueryID",
|
"name": "ChatJoinRequestQueryID",
|
||||||
@@ -28263,7 +28263,7 @@
|
|||||||
"name": "InputMedia"
|
"name": "InputMedia"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"doc": "A JSON-serialized object for a new media content of the message"
|
"doc": "A JSON-serialized object for the new media content of the message"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ReplyMarkup",
|
"name": "ReplyMarkup",
|
||||||
@@ -29549,7 +29549,7 @@
|
|||||||
"kind": "primitive",
|
"kind": "primitive",
|
||||||
"name": "string"
|
"name": "string"
|
||||||
},
|
},
|
||||||
"doc": "Unique identifier of the business connection on behalf of which the message will be sent"
|
"doc": "Unique identifier of the business connection on behalf of which the message will be sent. Bot can send rich messages on behalf of a business account only if the corresponding user can send rich messages."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ChatID",
|
"name": "ChatID",
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
snapshot_2026-06-11.html
|
snapshot_2026-07-13.html
|
||||||
+21882
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user