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
- Python 3
- Node.js v6.5.0 or later
- AWS account with Admin rights
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
If you need more complex solution, take a look on this example: https://github.com/Andrii-D/telegram-stepfunctions-bot/