python-botogram / botogram

Just focus on your bots.
https://botogram.dev
MIT License
123 stars 27 forks source link

Support incoming webhooks #38

Open thesharp opened 8 years ago

thesharp commented 8 years ago

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.

pietroalbini commented 8 years ago

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