telegraph icon indicating copy to clipboard operation
telegraph copied to clipboard

How to set multiple webhook handler

Open MdBayzidAman opened this issue 1 year ago • 3 comments

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.

MdBayzidAman avatar Feb 23 '24 13:02 MdBayzidAman

Also interested in this 👀

DavePodosyan avatar Feb 23 '24 20:02 DavePodosyan

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

MdBayzidAman avatar Feb 24 '24 09:02 MdBayzidAman

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

fabio-ivona avatar Feb 27 '24 22:02 fabio-ivona

@MdBayzidAman

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

ivankuraev avatar Jun 01 '24 07:06 ivankuraev

@ivankuraev Yes! Thank you.

MdBayzidAman avatar Jun 01 '24 18:06 MdBayzidAman