variable declaration fix for webhook example

bot-api-6.1
Jqs7 2015-09-14 13:54:45 +08:00
parent 236ac39b34
commit c72afc396b
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) 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 { if err != nil {
log.Fatal(err) log.Fatal(err)
} }