go-telegram / bot

Telegram Bot API Go framework
MIT License
502 stars 46 forks source link

http.ListenAndServeTLS webhook example #70

Closed Dmitriy147 closed 3 months ago

Dmitriy147 commented 3 months ago

Has anybody working example of webhook with cert? Unfortunately, all my attempts to run such bot were unsuccessfully!

negasus commented 3 months ago

The library provides a handler function and has nothing to do with creating a server. I guess you can test your code without the library with an empty handler. And when everything works, substitute the handler from the library.

Personally, I don't use webhooks. But usually I would use a proxy server in front of the application