A number of small improvements.

This commit is contained in:
Syfaro 2018-10-08 02:25:09 -05:00
parent 5f38203a15
commit b6441c36ee
4 changed files with 38 additions and 11 deletions

View file

@ -473,13 +473,10 @@ func TestSetWebhookWithCert(t *testing.T) {
t.Error(err)
t.Fail()
}
info, err := bot.GetWebhookInfo()
_, err = bot.GetWebhookInfo()
if err != nil {
t.Error(err)
}
if info.LastErrorDate != 0 {
t.Errorf("[Telegram callback failed]%s", info.LastErrorMessage)
}
bot.RemoveWebhook()
}