Fix backwards compatibility for Live Location.
This commit is contained in:
parent
4ec899a62e
commit
72f87b43e3
4 changed files with 14 additions and 17 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue