all repos — telegram-bot-api @ d0fa8e929e4d1416b1db97b1d0c004816ca4e5df

Golang bindings for the Telegram Bot API

Fix missing ParseMode in InlineQueryResultVideo

ParseMode for this type actually exists, but was missed in the original repo.
https://core.telegram.org/bots/api#inlinequeryresultvideo
bobra bobradbnn@yandex.ru
Wed, 15 May 2024 02:57:25 +0200
commit

d0fa8e929e4d1416b1db97b1d0c004816ca4e5df

parent

f8ef3a5696e6f18dd08e8ce7aa0d818833fc9edb

1 files changed, 8 insertions(+), 2 deletions(-)

jump to
M types.gotypes.go

@@ -4406,9 +4406,15 @@ // Caption of the video to be sent, 0-1024 characters after entities parsing

// // optional Caption string `json:"caption,omitempty"` - // Width video width + // ParseMode mode for parsing entities in the video caption. + // See formatting options for more details + // (https://core.telegram.org/bots/api#formatting-options). // // optional + ParseMode string `json:"parse_mode,omitempty"` + // Width video width + // + // optional Width int `json:"video_width,omitempty"` // Height video height //

@@ -4448,7 +4454,7 @@ // Caption 0-1024 characters after entities parsing

// // optional Caption string `json:"caption,omitempty"` - // ParseMode mode for parsing entities in the video caption. + // ParseMode mode for parsing entities in the voice caption. // See formatting options for more details // (https://core.telegram.org/bots/api#formatting-options). //