Add NewInlineQueryResultPhotoWithThumb for #54.
This commit is contained in:
parent
1daed40422
commit
4f996f7f27
3 changed files with 22 additions and 1 deletions
|
@ -70,6 +70,17 @@ func TestNewInlineQueryResultPhoto(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestNewInlineQueryResultPhotoWithThumb(t *testing.T) {
|
||||
result := tgbotapi.NewInlineQueryResultPhotoWithThumb("id", "google.com", "thumb.com")
|
||||
|
||||
if result.Type != "photo" ||
|
||||
result.ID != "id" ||
|
||||
result.URL != "google.com" ||
|
||||
result.ThumbURL != "thumb.com" {
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
||||
func TestNewInlineQueryResultVideo(t *testing.T) {
|
||||
result := tgbotapi.NewInlineQueryResultVideo("id", "google.com")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue