mirror of
https://github.com/lukaszraczylo/go-telegram.git
synced 2026-06-18 03:44:03 +00:00
chore(api): regenerate from Telegram Bot API v10.1
This commit is contained in:
committed by
github-actions[bot]
parent
140ea13bde
commit
ca84e51d85
+1
-1
@@ -1985,7 +1985,7 @@ type SendMessageDraftParams struct {
|
||||
ChatID int64 `json:"chat_id"`
|
||||
// Unique identifier for the target message thread
|
||||
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"`
|
||||
// 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"`
|
||||
|
||||
+10
-10
@@ -4730,7 +4730,7 @@ func (*InputMediaVideo) isInputMedia() {}
|
||||
|
||||
// Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
|
||||
type InputMediaAnimation struct {
|
||||
// Type of the result, must be animation
|
||||
// Type of the media, must be animation
|
||||
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 »
|
||||
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.
|
||||
type InputMediaAudio struct {
|
||||
// Type of the result, must be audio
|
||||
// Type of the media, must be audio
|
||||
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 »
|
||||
Media string `json:"media"`
|
||||
@@ -4810,7 +4810,7 @@ func (v *InputMediaAudio) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Represents a general file to be sent.
|
||||
type InputMediaDocument struct {
|
||||
// Type of the result, must be document
|
||||
// Type of the media, must be document
|
||||
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 »
|
||||
Media string `json:"media"`
|
||||
@@ -4844,7 +4844,7 @@ func (v *InputMediaDocument) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Represents an HTTP link to be sent.
|
||||
type InputMediaLink struct {
|
||||
// Type of the result, must be link
|
||||
// Type of the media, must be link
|
||||
Type InputPollOptionMediaType `json:"type"`
|
||||
// HTTP URL of the link
|
||||
URL string `json:"url"`
|
||||
@@ -4868,7 +4868,7 @@ func (v *InputMediaLink) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Represents a live photo to be sent.
|
||||
type InputMediaLivePhoto struct {
|
||||
// Type of the result, must be live_photo
|
||||
// Type of the media, must be live_photo
|
||||
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.
|
||||
Media string `json:"media"`
|
||||
@@ -4904,7 +4904,7 @@ func (v *InputMediaLivePhoto) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Represents a location to be sent.
|
||||
type InputMediaLocation struct {
|
||||
// Type of the result, must be location
|
||||
// Type of the media, must be location
|
||||
Type InputPollOptionMediaType `json:"type"`
|
||||
// Latitude of the location
|
||||
Latitude float64 `json:"latitude"`
|
||||
@@ -4932,7 +4932,7 @@ func (v *InputMediaLocation) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Represents a photo to be sent.
|
||||
type InputMediaPhoto struct {
|
||||
// Type of the result, must be photo
|
||||
// Type of the media, must be photo
|
||||
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 »
|
||||
Media string `json:"media"`
|
||||
@@ -4966,7 +4966,7 @@ func (v *InputMediaPhoto) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Represents a sticker file to be sent.
|
||||
type InputMediaSticker struct {
|
||||
// Type of the result, must be sticker
|
||||
// Type of the media, must be sticker
|
||||
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 »
|
||||
Media string `json:"media"`
|
||||
@@ -4992,7 +4992,7 @@ func (v *InputMediaSticker) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Represents a venue to be sent.
|
||||
type InputMediaVenue struct {
|
||||
// Type of the result, must be venue
|
||||
// Type of the media, must be venue
|
||||
Type InputPollOptionMediaType `json:"type"`
|
||||
// Latitude of the location
|
||||
Latitude float64 `json:"latitude"`
|
||||
@@ -5030,7 +5030,7 @@ func (v *InputMediaVenue) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Represents a video to be sent.
|
||||
type InputMediaVideo struct {
|
||||
// Type of the result, must be video
|
||||
// Type of the media, must be video
|
||||
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 »
|
||||
Media string `json:"media"`
|
||||
|
||||
+11
-11
@@ -7874,7 +7874,7 @@ Represents an animation file \(GIF or H.264/MPEG\-4 AVC video without sound\) to
|
||||
|
||||
```go
|
||||
type InputMediaAnimation struct {
|
||||
// Type of the result, must be animation
|
||||
// Type of the media, must be animation
|
||||
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 »
|
||||
Media string `json:"media"`
|
||||
@@ -7915,7 +7915,7 @@ Represents an audio file to be treated as music to be sent.
|
||||
|
||||
```go
|
||||
type InputMediaAudio struct {
|
||||
// Type of the result, must be audio
|
||||
// Type of the media, must be audio
|
||||
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 »
|
||||
Media string `json:"media"`
|
||||
@@ -7952,7 +7952,7 @@ Represents a general file to be sent.
|
||||
|
||||
```go
|
||||
type InputMediaDocument struct {
|
||||
// Type of the result, must be document
|
||||
// Type of the media, must be document
|
||||
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 »
|
||||
Media string `json:"media"`
|
||||
@@ -7985,7 +7985,7 @@ Represents an HTTP link to be sent.
|
||||
|
||||
```go
|
||||
type InputMediaLink struct {
|
||||
// Type of the result, must be link
|
||||
// Type of the media, must be link
|
||||
Type InputPollOptionMediaType `json:"type"`
|
||||
// HTTP URL of the link
|
||||
URL string `json:"url"`
|
||||
@@ -8008,7 +8008,7 @@ Represents a live photo to be sent.
|
||||
|
||||
```go
|
||||
type InputMediaLivePhoto struct {
|
||||
// Type of the result, must be live_photo
|
||||
// Type of the media, must be live_photo
|
||||
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.
|
||||
Media string `json:"media"`
|
||||
@@ -8043,7 +8043,7 @@ Represents a location to be sent.
|
||||
|
||||
```go
|
||||
type InputMediaLocation struct {
|
||||
// Type of the result, must be location
|
||||
// Type of the media, must be location
|
||||
Type InputPollOptionMediaType `json:"type"`
|
||||
// Latitude of the location
|
||||
Latitude float64 `json:"latitude"`
|
||||
@@ -8070,7 +8070,7 @@ Represents a photo to be sent.
|
||||
|
||||
```go
|
||||
type InputMediaPhoto struct {
|
||||
// Type of the result, must be photo
|
||||
// Type of the media, must be photo
|
||||
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 »
|
||||
Media string `json:"media"`
|
||||
@@ -8103,7 +8103,7 @@ Represents a sticker file to be sent.
|
||||
|
||||
```go
|
||||
type InputMediaSticker struct {
|
||||
// Type of the result, must be sticker
|
||||
// Type of the media, must be sticker
|
||||
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 »
|
||||
Media string `json:"media"`
|
||||
@@ -8150,7 +8150,7 @@ Represents a venue to be sent.
|
||||
|
||||
```go
|
||||
type InputMediaVenue struct {
|
||||
// Type of the result, must be venue
|
||||
// Type of the media, must be venue
|
||||
Type InputPollOptionMediaType `json:"type"`
|
||||
// Latitude of the location
|
||||
Latitude float64 `json:"latitude"`
|
||||
@@ -8187,7 +8187,7 @@ Represents a video to be sent.
|
||||
|
||||
```go
|
||||
type InputMediaVideo struct {
|
||||
// Type of the result, must be video
|
||||
// Type of the media, must be video
|
||||
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 »
|
||||
Media string `json:"media"`
|
||||
@@ -14384,7 +14384,7 @@ type SendMessageDraftParams struct {
|
||||
ChatID int64 `json:"chat_id"`
|
||||
// Unique identifier for the target message thread
|
||||
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"`
|
||||
// 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"`
|
||||
|
||||
+11
-11
@@ -11543,7 +11543,7 @@
|
||||
"name": "string"
|
||||
},
|
||||
"required": true,
|
||||
"doc": "Type of the result, must be animation",
|
||||
"doc": "Type of the media, must be animation",
|
||||
"enum_values": [
|
||||
"animation"
|
||||
]
|
||||
@@ -11661,7 +11661,7 @@
|
||||
"name": "string"
|
||||
},
|
||||
"required": true,
|
||||
"doc": "Type of the result, must be audio",
|
||||
"doc": "Type of the media, must be audio",
|
||||
"enum_values": [
|
||||
"audio"
|
||||
]
|
||||
@@ -11761,7 +11761,7 @@
|
||||
"name": "string"
|
||||
},
|
||||
"required": true,
|
||||
"doc": "Type of the result, must be document",
|
||||
"doc": "Type of the media, must be document",
|
||||
"enum_values": [
|
||||
"document"
|
||||
]
|
||||
@@ -11843,7 +11843,7 @@
|
||||
"name": "string"
|
||||
},
|
||||
"required": true,
|
||||
"doc": "Type of the result, must be link",
|
||||
"doc": "Type of the media, must be link",
|
||||
"enum_values": [
|
||||
"link"
|
||||
]
|
||||
@@ -11872,7 +11872,7 @@
|
||||
"name": "string"
|
||||
},
|
||||
"required": true,
|
||||
"doc": "Type of the result, must be live_photo",
|
||||
"doc": "Type of the media, must be live_photo",
|
||||
"enum_values": [
|
||||
"live_photo"
|
||||
]
|
||||
@@ -11964,7 +11964,7 @@
|
||||
"name": "string"
|
||||
},
|
||||
"required": true,
|
||||
"doc": "Type of the result, must be location",
|
||||
"doc": "Type of the media, must be location",
|
||||
"enum_values": [
|
||||
"location"
|
||||
]
|
||||
@@ -12012,7 +12012,7 @@
|
||||
"name": "string"
|
||||
},
|
||||
"required": true,
|
||||
"doc": "Type of the result, must be photo",
|
||||
"doc": "Type of the media, must be photo",
|
||||
"enum_values": [
|
||||
"photo"
|
||||
]
|
||||
@@ -12094,7 +12094,7 @@
|
||||
"name": "string"
|
||||
},
|
||||
"required": true,
|
||||
"doc": "Type of the result, must be sticker",
|
||||
"doc": "Type of the media, must be sticker",
|
||||
"enum_values": [
|
||||
"sticker"
|
||||
]
|
||||
@@ -12132,7 +12132,7 @@
|
||||
"name": "string"
|
||||
},
|
||||
"required": true,
|
||||
"doc": "Type of the result, must be venue",
|
||||
"doc": "Type of the media, must be venue",
|
||||
"enum_values": [
|
||||
"venue"
|
||||
]
|
||||
@@ -12227,7 +12227,7 @@
|
||||
"name": "string"
|
||||
},
|
||||
"required": true,
|
||||
"doc": "Type of the result, must be video",
|
||||
"doc": "Type of the media, must be video",
|
||||
"enum_values": [
|
||||
"video"
|
||||
]
|
||||
@@ -23857,7 +23857,7 @@
|
||||
"name": "int64"
|
||||
},
|
||||
"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",
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
snapshot_2026-06-11.html
|
||||
snapshot_2026-06-15.html
|
||||
+21866
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user