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

https://github.com/nbelzer/serverless-telegram

Tryout of lambda functions with Serverless and Telegram.
https://github.com/nbelzer/serverless-telegram

lambda serverless telegram-bot

Last synced: 2 months ago
JSON representation

Tryout of lambda functions with Serverless and Telegram.

Awesome Lists containing this project

README

          

# Serverless Tryout

This is a try-out project using the [serverless](https://serverless.com) framework to create a serverless python application on AWS.

## Deploy
You need to [install serverless](https://serverless.com/framework/docs/getting-started/) locally.

Before you can deploy the code to AWS you need to set up your AWS profile locally so that it can be used by serverless. See [this](https://serverless.com/framework/docs/providers/aws/guide/credentials/) for more information.

In the `serverless.yml` file you can change the parameters according to the profile you set and the region you would like to deploy your serverless function.

You should set up the `serverless.env.yml` file to contain the following:
```yaml
TELEGRAM_TOKEN:
SENTRY_DSN: https://
```

Once set up you can deploy the function to AWS by running:
```bash
serverless deploy
```

## Acknowledgements
- [serverless/examples](https://github.com/serverless/examples/tree/master/aws-python-telegram-bot) for the telegram bot example.