Serverless Telegram Bot

A basic serverless Telegram bot using Google Cloud Functions.

This bot runs with Python 3.7 and python-telegram-bot.

See https://seminar.io/2018/09/03/building-serverless-telegram-bot/ for more details about this bot.

Deploy

$ gcloud beta functions deploy webhook --set-env-vars "TELEGRAM_TOKEN=000:yyy" --runtime python37 --trigger-http

Testing

$ pip install -r requirements-test.txt
$ python test_main.py