Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pabluk/serverless-telegram-bot

A basic serverless Telegram bot using Google Cloud Functions
https://github.com/pabluk/serverless-telegram-bot

bot google-cloud-functions python serverless telegram telegram-bot

Last synced: about 6 hours ago
JSON representation

A basic serverless Telegram bot using Google Cloud Functions

Awesome Lists containing this project

README

        

# Serverless Telegram Bot

A basic serverless [Telegram bot](https://core.telegram.org/bots) using [Google Cloud Functions](https://cloud.google.com/functions/).

This bot runs with Python 3.7 and [python-telegram-bot](https://python-telegram-bot.org/).

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
```