Fix backwards compatibility for Live Location.

This commit is contained in:
Syfaro 2017-12-29 13:00:02 -06:00
parent 4ec899a62e
commit 72f87b43e3
4 changed files with 14 additions and 17 deletions

View file

@ -266,7 +266,7 @@ func TestSendWithContact(t *testing.T) {
func TestSendWithLocation(t *testing.T) {
bot, _ := getBot(t)
_, err := bot.Send(tgbotapi.NewLocation(ChatID, 40, 40, 86400))
_, err := bot.Send(tgbotapi.NewLocation(ChatID, 40, 40))
if err != nil {
t.Error(err)