Add inline query result audio types documentation
parent
11023a093f
commit
45369759f1
117
types.go
117
types.go
|
@ -1162,37 +1162,108 @@ type InlineQueryResultCachedVideo struct {
|
||||||
|
|
||||||
// InlineQueryResultCachedSticker is an inline query response with cached sticker.
|
// InlineQueryResultCachedSticker is an inline query response with cached sticker.
|
||||||
type InlineQueryResultCachedSticker struct {
|
type InlineQueryResultCachedSticker struct {
|
||||||
Type string `json:"type"` // required
|
// Type of the result, must be sticker
|
||||||
ID string `json:"id"` // required
|
//
|
||||||
StickerID string `json:"sticker_file_id"` // required
|
// required
|
||||||
Title string `json:"title"` // required
|
Type string `json:"type"`
|
||||||
ParseMode string `json:"parse_mode"`
|
// ID unique identifier for this result, 1-64 bytes
|
||||||
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
//
|
||||||
InputMessageContent interface{} `json:"input_message_content,omitempty"`
|
// required
|
||||||
|
ID string `json:"id"`
|
||||||
|
// StickerID a valid file identifier of the sticker
|
||||||
|
//
|
||||||
|
// required
|
||||||
|
StickerID string `json:"sticker_file_id"`
|
||||||
|
// Title is a title
|
||||||
|
Title string `json:"title"`
|
||||||
|
// 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"`
|
||||||
|
// ReplyMarkup inline keyboard attached to the message
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
||||||
|
// InputMessageContent content of the message to be sent instead of the sticker
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
InputMessageContent interface{} `json:"input_message_content,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// InlineQueryResultAudio is an inline query response audio.
|
// InlineQueryResultAudio is an inline query response audio.
|
||||||
type InlineQueryResultAudio struct {
|
type InlineQueryResultAudio struct {
|
||||||
Type string `json:"type"` // required
|
// Type of the result, must be audio
|
||||||
ID string `json:"id"` // required
|
//
|
||||||
URL string `json:"audio_url"` // required
|
// required
|
||||||
Title string `json:"title"` // required
|
Type string `json:"type"`
|
||||||
Caption string `json:"caption"`
|
// ID unique identifier for this result, 1-64 bytes
|
||||||
Performer string `json:"performer"`
|
//
|
||||||
Duration int `json:"audio_duration"`
|
// required
|
||||||
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
ID string `json:"id"`
|
||||||
InputMessageContent interface{} `json:"input_message_content,omitempty"`
|
// URL a valid url for the audio file
|
||||||
|
//
|
||||||
|
// required
|
||||||
|
URL string `json:"audio_url"`
|
||||||
|
// Title is a title
|
||||||
|
//
|
||||||
|
// required
|
||||||
|
Title string `json:"title"`
|
||||||
|
// Caption 0-1024 characters after entities parsing
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
Caption string `json:"caption"`
|
||||||
|
// Performer is a performer
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
Performer string `json:"performer"`
|
||||||
|
// Duration audio duration in seconds
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
Duration int `json:"audio_duration"`
|
||||||
|
// ReplyMarkup inline keyboard attached to the message
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
||||||
|
// InputMessageContent content of the message to be sent instead of the audio
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
InputMessageContent interface{} `json:"input_message_content,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// InlineQueryResultCachedAudio is an inline query response with cached audio.
|
// InlineQueryResultCachedAudio is an inline query response with cached audio.
|
||||||
type InlineQueryResultCachedAudio struct {
|
type InlineQueryResultCachedAudio struct {
|
||||||
Type string `json:"type"` // required
|
// Type of the result, must be audio
|
||||||
ID string `json:"id"` // required
|
//
|
||||||
AudioID string `json:"audio_file_id"` // required
|
// required
|
||||||
Caption string `json:"caption"`
|
Type string `json:"type"`
|
||||||
ParseMode string `json:"parse_mode"`
|
// ID unique identifier for this result, 1-64 bytes
|
||||||
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
//
|
||||||
InputMessageContent interface{} `json:"input_message_content,omitempty"`
|
// required
|
||||||
|
ID string `json:"id"`
|
||||||
|
// AudioID a valid file identifier for the audio file
|
||||||
|
//
|
||||||
|
// required
|
||||||
|
AudioID string `json:"audio_file_id"`
|
||||||
|
// Caption 0-1024 characters after entities parsing
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
Caption string `json:"caption"`
|
||||||
|
// 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"`
|
||||||
|
// ReplyMarkup inline keyboard attached to the message
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
||||||
|
// InputMessageContent content of the message to be sent instead of the audio
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
InputMessageContent interface{} `json:"input_message_content,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// InlineQueryResultVoice is an inline query response voice.
|
// InlineQueryResultVoice is an inline query response voice.
|
||||||
|
|
Loading…
Reference in New Issue