← 返回首页
serverless-examples/aws-python-telegram-bot at master · localstack/serverless-examples · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Latest commit

 

History

History
 
 
 master
Top

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
View all files

README.md

Serverless Telegram Bot

This example demonstrates how to setup an echo Telegram Bot using the Serverless Framework ⚡🤖

Usage

What do I need?

  • A AWS key configured locally, see here.
  • NodeJS. I tested with v8.9.0.
  • A Telegram account.

Installing

# Install the Serverless Framework $ npm install serverless -g # Install the necessary plugins $ npm install # Get a bot from Telegram, sending this message to @BotFather $ /newbot # Put the token received into a file called serverless.env.yml, like this $ cat serverless.env.yml TELEGRAM_TOKEN: <your_token> # Deploy it! $ serverless deploy # With the URL returned in the output, configure the Webhook $ curl -X POST https://<your_url>.amazonaws.com/dev/set_webhook

Now, just start a conversation with the bot :)

Footer

© 2026 GitHub, Inc.