all repos — telegram-bot-api @ 60c16b67734cf469e708c8b12722cc4c2bc5486e

Golang bindings for the Telegram Bot API

Fix setting webhook in README.
Syfaro syfaro@huefox.com
Sun, 02 Jan 2022 21:48:12 -0500
commit

60c16b67734cf469e708c8b12722cc4c2bc5486e

parent

fde58e56ae1e2629ee6b4a77a7feb0ddf38340ee

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M README.mdREADME.md

@@ -85,9 +85,9 @@ bot.Debug = true

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