serverless-telegram-bot
serverless-telegram-bot copied to clipboard
Serverless Telegram Bot written on Python 3 and deployed to AWS Lambda using Serverless framework
Serverless Telegram bot on AWS Lambda
Intro
This is a simple template of echo Telegram chatbot written in Python 3 and deployed to AWS Lambda using Serverless framework. You can find the tutorial of how to deploy it here
Requirements
- Python 3
- Node.js v6.5.0 or later
- AWS account with Admin rights
Deploying
Install Serverless framework:
npm install -g serverless
Export credentials:
export AWS_ACCESS_KEY_ID=<Access key ID>
export AWS_SECRET_ACCESS_KEY=<Secret access key>
export TELEGRAM_TOKEN=<Your Telegram Token>
Install pip requirements:
pip install -r requirements.txt -t vendored
Deploy to AWS:
serverless deploy
P.S.
If you need more complex solution, take a look on this example: https://github.com/Andrii-D/telegram-stepfunctions-bot/