Open hardskulls opened 1 year ago
Hey @hardskulls !
If you use ngrok, for example it gives you https://ee84-20-20-20.eu.ngrok.io
,
just use
webhook, err := tgbotapi.NewWebhook("https://ee84-20-20-20.eu.ngrok.io/" + bot.Token)
When I use
webhook, err := tgbotapi.NewWebhook(host + ":" + port + "/" + bot.Token) updates := bot.ListenForWebhook("/" + bot.Token)
(took it from docs) it doesn't work at all, (tested locally with
ngrok
andlocaltunnel
, ngrok doesn't even get anything) , but when I use this (currently onheroku
):webhook, err := tgbotapi.NewWebhook(host + bot.Token) updates := bot.ListenForWebhook("/" + bot.Token)
it works just fine.
Is it a bug, or did I miss something in the docs?
after updates := bot.ListenForWebhook("/" + bot.Token)
need to go http.ListenAndServe("0.0.0.0:8443", nil)
yes?
When I use
(took it from docs) it doesn't work at all, (tested locally with
ngrok
andlocaltunnel
, ngrok doesn't even get anything) , but when I use this (currently onheroku
):it works just fine.
Is it a bug, or did I miss something in the docs?