An open API service indexing awesome lists of open source software.

https://github.com/ohld/python-zeit-serverless-telegram-bot

Example of Python Serverless Telegram bot to be used with Zeit.co (Now.sh)
https://github.com/ohld/python-zeit-serverless-telegram-bot

Last synced: 7 months ago
JSON representation

Example of Python Serverless Telegram bot to be used with Zeit.co (Now.sh)

Awesome Lists containing this project

README

          

# python-zeit-serverless-telegram-bot
Example of Python Serverless Telegram bot to be used with Zeit.co (Now.sh)

# Step-by-step

## Add env variable to now sh

``` bash
now secrets add telegram-token
```

## Register webhook
``` bash
curl "https://api.telegram.org/bot/setWebhook?url=https://your-now-sh-project.now.sh/api"
```

N.B. DON'T PUT BACKSLASH ATTHE END!

# Literature
* https://dev.to/jolvera/deploy-a-python-serverless-function-on-zeit-now-22cf
* https://seminar.io/2018/09/03/building-serverless-telegram-bot/

------
Author: [@ohld](https://github.com/ohld)