|
|
|
@ -524,6 +524,27 @@ func (info WebhookInfo) IsSet() bool { |
|
|
|
|
return info.URL != "" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// InputMediaPhoto contains a photo for displaying as part of a media group.
|
|
|
|
|
type InputMediaPhoto struct { |
|
|
|
|
Type string `json:"type"` |
|
|
|
|
Media string `json:"media"` |
|
|
|
|
Caption string `json:"caption"` |
|
|
|
|
ParseMode string `json:"parse_mode"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// InputMediaVideo contains a video for displaying as part of a media group.
|
|
|
|
|
type InputMediaVideo struct { |
|
|
|
|
Type string `json:"type"` |
|
|
|
|
Media string `json:"media"` |
|
|
|
|
// thumb intentionally missing as it is not currently compatible
|
|
|
|
|
Caption string `json:"caption"` |
|
|
|
|
ParseMode string `json:"parse_mode"` |
|
|
|
|
Width int `json:"width"` |
|
|
|
|
Height int `json:"height"` |
|
|
|
|
Duration int `json:"duration"` |
|
|
|
|
SupportsStreaming bool `json:"supports_streaming"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// InlineQuery is a Query from Telegram for an inline request.
|
|
|
|
|
type InlineQuery struct { |
|
|
|
|
ID string `json:"id"` |
|
|
|
|