Merge pull request #24 from jqs7/master

variable declaration fix for webhook example
bot-api-6.1
Syfaro 2015-09-14 07:42:19 -05:00
commit 7c48fa5dbb
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ func main() {
log.Printf("Authorized on account %s", bot.Self.UserName)
_, err := bot.SetWebhook(tgbotapi.NewWebhookWithCert("https://www.google.com:8443/"+bot.Token, "cert.pem"))
_, err = bot.SetWebhook(tgbotapi.NewWebhookWithCert("https://www.google.com:8443/"+bot.Token, "cert.pem"))
if err != nil {
log.Fatal(err)
}