botogram icon indicating copy to clipboard operation
botogram copied to clipboard

Support incoming webhooks

Open thesharp opened this issue 9 years ago • 1 comments

A feature request for a small built-in webserver to add routes for various incoming webhooks. A common use case scenario could be announcing GitHub commits/issues/PRs or travis-ci build resuts to the chat.

thesharp avatar Mar 19 '16 21:03 thesharp

I'm only worried the name webhooks will be easily confused with Telegram's ones. I'm thinking about referring it as the internal webserver, with an API like this:

bot.bind_webserver("127.0.0.1", 8000)

@bot.catch_http("/endpoint")
def catched_endpoint(request):
    pass

pietroalbini avatar Mar 19 '16 21:03 pietroalbini