1
0

Added SendLocation test

This commit is contained in:
Maxim Lebedev 2018-02-15 03:52:51 +05:00
parent 54d77702a0
commit 193b690c8b
No known key found for this signature in database
GPG Key ID: F8978F46FF0FFA4F

View File

@ -167,6 +167,17 @@ func TestSendMediaGroup(t *testing.T) {
}
}
func TestSendLocation(t *testing.T) {
resp, err := bot.SendLocation(NewLocation(chatID, 36.724510, 139.268181))
if err != nil {
t.Error(err.Error())
}
log.D(resp)
if resp == nil {
t.Error("unexpected result: message is nil")
}
}
func TestSendChatAction(t *testing.T) {
ok, err := bot.SendChatAction(chatID, ActionTyping)
if err != nil {