Skip to content

Serverless Telegram Bot written on Python 3 and deployed to AWS Lambda using Serverless framework

Notifications You must be signed in to change notification settings

Andrii-D/serverless-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Python 3
  2. Node.js v6.5.0 or later
  3. 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/

About

Serverless Telegram Bot written on Python 3 and deployed to AWS Lambda using Serverless framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages