@@ -1268,26 +1268,76 @@ type InlineQueryResultCachedAudio struct {
12681268
12691269// InlineQueryResultVoice is an inline query response voice.
12701270type InlineQueryResultVoice struct {
1271- Type string `json:"type"` // required
1272- ID string `json:"id"` // required
1273- URL string `json:"voice_url"` // required
1274- Title string `json:"title"` // required
1275- Caption string `json:"caption"`
1276- Duration int `json:"voice_duration"`
1277- ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
1278- InputMessageContent interface {} `json:"input_message_content,omitempty"`
1271+ // Type of the result, must be voice
1272+ //
1273+ // required
1274+ Type string `json:"type"`
1275+ // ID unique identifier for this result, 1-64 bytes
1276+ //
1277+ // required
1278+ ID string `json:"id"`
1279+ // URL a valid URL for the voice recording
1280+ //
1281+ // required
1282+ URL string `json:"voice_url"`
1283+ // Title recording title
1284+ //
1285+ // required
1286+ Title string `json:"title"`
1287+ // Caption 0-1024 characters after entities parsing
1288+ //
1289+ // optional
1290+ Caption string `json:"caption"`
1291+ // Duration recording duration in seconds
1292+ //
1293+ // optional
1294+ Duration int `json:"voice_duration"`
1295+ // ReplyMarkup inline keyboard attached to the message
1296+ //
1297+ // optional
1298+ ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
1299+ // InputMessageContent content of the message to be sent instead of the voice recording
1300+ //
1301+ // optional
1302+ InputMessageContent interface {} `json:"input_message_content,omitempty"`
12791303}
12801304
12811305// InlineQueryResultCachedVoice is an inline query response with cached voice.
12821306type InlineQueryResultCachedVoice struct {
1283- Type string `json:"type"` // required
1284- ID string `json:"id"` // required
1285- VoiceID string `json:"voice_file_id"` // required
1286- Title string `json:"title"` // required
1287- Caption string `json:"caption"`
1288- ParseMode string `json:"parse_mode"`
1289- ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
1290- InputMessageContent interface {} `json:"input_message_content,omitempty"`
1307+ // Type of the result, must be voice
1308+ //
1309+ // required
1310+ Type string `json:"type"`
1311+ // ID unique identifier for this result, 1-64 bytes
1312+ //
1313+ // required
1314+ ID string `json:"id"`
1315+ // VoiceID a valid file identifier for the voice message
1316+ //
1317+ // required
1318+ VoiceID string `json:"voice_file_id"`
1319+ // Title voice message title
1320+ //
1321+ // required
1322+ Title string `json:"title"`
1323+ // Caption 0-1024 characters after entities parsing
1324+ //
1325+ // optional
1326+ Caption string `json:"caption"`
1327+ // ParseMode mode for parsing entities in the video caption.
1328+ // See formatting options for more details
1329+ // (https://core.telegram.org/bots/api#formatting-options).
1330+ //
1331+ // optional
1332+ ParseMode string `json:"parse_mode"`
1333+ // ReplyMarkup inline keyboard attached to the message
1334+ //
1335+ // optional
1336+ ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
1337+ // InputMessageContent content of the message to be sent instead of the voice message
1338+ //
1339+ // optional
1340+ InputMessageContent interface {} `json:"input_message_content,omitempty"`
12911341}
12921342
12931343// InlineQueryResultDocument is an inline query response document.
0 commit comments