Replies: 2 comments 6 replies
-
I too wanted to ask a similar question. In my case, I was able to use the stateless mode in a Phoenix project but I'm also interested in the statefull mode. My use case is to collect information sequentially and hence I need to keep state somewhere. More, the Telegram API doesn't allow to attach this state in It's a great library BTW 🎉 |
Beta Was this translation helpful? Give feedback.
-
Hi @prtngn. The current webhook library interface is designed to start an HTTP server and setup a webhook The Telegram.Webhook operating mode starts an HTTP server (cowboy) that will receive the webook notification requests from the telegram server. The app is meant to be served over HTTP, a reverse proxy should be plance in front of it, facing the public network (public IP address) over HTTPS. Refer to the Telegram.Webhook module docs for more info. The library takes care to setup Plug.Cowboy with a Telegram.Webhook.Router. Personally I've not planned an integration with phoenix to serve the webhook endpoint there. |
Beta Was this translation helpful? Give feedback.
-
Hi. How I can use bot in Webhook mode with phoenix project?
Beta Was this translation helpful? Give feedback.
All reactions