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)
- Host: GitHub
- URL: https://github.com/ohld/python-zeit-serverless-telegram-bot
- Owner: ohld
- License: apache-2.0
- Created: 2019-10-15T13:02:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-17T20:45:47.000Z (over 5 years ago)
- Last Synced: 2025-04-12T13:50:24.482Z (9 months ago)
- Language: Python
- Homepage: https://python-zeit-serverless-telegram-bot.okhlopkov.now.sh
- Size: 34.2 KB
- Stars: 7
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)