A number of small improvements.
This commit is contained in:
parent
5f38203a15
commit
b6441c36ee
4 changed files with 38 additions and 11 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue