Merge remote-tracking branch 'pr0head/master' into develop
This commit is contained in:
commit
4ec899a62e
5 changed files with 67 additions and 14 deletions
|
@ -127,13 +127,14 @@ func TestNewInlineQueryResultDocument(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestNewInlineQueryResultLocation(t *testing.T) {
|
||||
result := tgbotapi.NewInlineQueryResultLocation("id", "name", 40, 50)
|
||||
result := tgbotapi.NewInlineQueryResultLocation("id", "name", 40, 50, 86400)
|
||||
|
||||
if result.Type != "location" ||
|
||||
result.ID != "id" ||
|
||||
result.Title != "name" ||
|
||||
result.Latitude != 40 ||
|
||||
result.Longitude != 50 {
|
||||
result.Longitude != 50 ||
|
||||
result.LivePeriod != 86400 {
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue