defstudio / telegraph

Telegraph is a Laravel package for fluently interacting with Telegram Bots
MIT License
674 stars 116 forks source link

How to set multiple webhook handler #532

Closed MdBayzidAman closed 4 months ago

MdBayzidAman commented 7 months ago

Hello 👋, With Telegraph here has features to add multiple bots, but how can I handle webhooks for multiple bots? I can set only one webhook handler in config.

DavePodosyan commented 7 months ago

Also interested in this 👀

MdBayzidAman commented 7 months ago

It will be awesome if we can handle multiple bots in a single application.

fabio-ivona commented 7 months ago

When your handler differs for each bots you could override the handler to detect the bot and calling a dedicated handler for it

I think I'll write something about it in documentation soon, thanks for pointing this out

ivankuraev commented 4 months ago

@MdBayzidAman

If it's still relevant to you https://github.com/defstudio/telegraph/discussions/552#discussioncomment-8788767

MdBayzidAman commented 4 months ago

@ivankuraev Yes! Thank you.