Add inline query result audio types documentation
parent
11023a093f
commit
45369759f1
93
types.go
93
types.go
|
@ -1162,36 +1162,107 @@ 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"`
|
||||||
|
// ID unique identifier for this result, 1-64 bytes
|
||||||
|
//
|
||||||
|
// 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"`
|
ParseMode string `json:"parse_mode"`
|
||||||
|
// ReplyMarkup inline keyboard attached to the message
|
||||||
|
//
|
||||||
|
// optional
|
||||||
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
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"`
|
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"`
|
||||||
|
// ID unique identifier for this result, 1-64 bytes
|
||||||
|
//
|
||||||
|
// required
|
||||||
|
ID string `json:"id"`
|
||||||
|
// 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"`
|
Caption string `json:"caption"`
|
||||||
|
// Performer is a performer
|
||||||
|
//
|
||||||
|
// optional
|
||||||
Performer string `json:"performer"`
|
Performer string `json:"performer"`
|
||||||
|
// Duration audio duration in seconds
|
||||||
|
//
|
||||||
|
// optional
|
||||||
Duration int `json:"audio_duration"`
|
Duration int `json:"audio_duration"`
|
||||||
|
// ReplyMarkup inline keyboard attached to the message
|
||||||
|
//
|
||||||
|
// optional
|
||||||
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
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"`
|
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
|
||||||
|
Type string `json:"type"`
|
||||||
|
// ID unique identifier for this result, 1-64 bytes
|
||||||
|
//
|
||||||
|
// 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"`
|
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"`
|
ParseMode string `json:"parse_mode"`
|
||||||
|
// ReplyMarkup inline keyboard attached to the message
|
||||||
|
//
|
||||||
|
// optional
|
||||||
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
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"`
|
InputMessageContent interface{} `json:"input_message_content,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue