add ability to respond to inline queries with stickers
(cherry picked from commit 87891c10fe
)
This commit is contained in:
parent
bd27dae566
commit
1930c25aa6
2 changed files with 21 additions and 0 deletions
10
helpers.go
10
helpers.go
|
@ -578,6 +578,16 @@ func NewInlineQueryResultCachedVideo(id, videoID, title string) InlineQueryResul
|
|||
}
|
||||
}
|
||||
|
||||
// NewInlineQueryResultCachedSticker create a new inline query with cached sticker.
|
||||
func NewInlineQueryResultCachedSticker(id, stickerID, title string) InlineQueryResultCachedSticker {
|
||||
return InlineQueryResultCachedSticker{
|
||||
Type: "sticker",
|
||||
ID: id,
|
||||
StickerID: stickerID,
|
||||
Title: title,
|
||||
}
|
||||
}
|
||||
|
||||
// NewInlineQueryResultAudio creates a new inline query audio.
|
||||
func NewInlineQueryResultAudio(id, url, title string) InlineQueryResultAudio {
|
||||
return InlineQueryResultAudio{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue