Add NewInlineQueryResultPhotoWithThumb for #54.
This commit is contained in:
parent
1daed40422
commit
4f996f7f27
3 changed files with 22 additions and 1 deletions
10
helpers.go
10
helpers.go
|
@ -381,6 +381,16 @@ func NewInlineQueryResultPhoto(id, url string) InlineQueryResultPhoto {
|
|||
}
|
||||
}
|
||||
|
||||
// NewInlineQueryResultPhotoWithThumb creates a new inline query photo.
|
||||
func NewInlineQueryResultPhotoWithThumb(id, url, thumb string) InlineQueryResultPhoto {
|
||||
return InlineQueryResultPhoto{
|
||||
Type: "photo",
|
||||
ID: id,
|
||||
URL: url,
|
||||
ThumbURL: thumb,
|
||||
}
|
||||
}
|
||||
|
||||
// NewInlineQueryResultVideo creates a new inline query video.
|
||||
func NewInlineQueryResultVideo(id, url string) InlineQueryResultVideo {
|
||||
return InlineQueryResultVideo{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue