Question: How to use handlers with webhooks? #2874
-
Hi there. I'm trying to use webhooks with the command handler for a better code structure. I also want to use other features like Do you have any code snippets on how is it possible to use handlers with webhooks? Is it possible? I want to use webhooks with my Flask web app. I don't want to start a separate thread, but want to keep the bot working by handling requests. But I don't think I'd like to rewrite the whole handler's logic because of this. Thank you for your response! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi. Webhooks have little to do with handler - it's just a different way of fetching the updates that are sent to your bot and doesn't really have an effect on how |
Beta Was this translation helpful? Give feedback.
Hi. Webhooks have little to do with handler - it's just a different way of fetching the updates that are sent to your bot and doesn't really have an effect on how
Dispatcher
(whos responsible for managing the handlers) works. Please have a look at the wiki page on webhooks.