Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Outline

AWS-telegram-echo-bot

This is a simple echo bot on Telegram. (NodeJS)

Required

  • Node.js 24.x or later
  • Telegram account
  • AWS account

Get Started

  1. Install serverless via npm
$ npm install -g serverless
  1. Create a bot from Telegram, sending this message to @BotFather
$ /newbot
  1. Put the token received into the TELEGRAM_BOT_TOKEN environment variable in serverless.yml.
provider:
  environment:
    TELEGRAM_BOT_TOKEN: YOUR_API_TOKEN_HERE
  1. Deploy it!
$ serverless deploy
  1. Configure webhook
curl --request POST --url https://api.telegram.org/bot{token}/setWebhook --header 'content-type: application/json' --data '{"url": "{end-poinnt}"}'

Say hello to your bot 🤖

Morty Proxy This is a proxified and sanitized view of the page, visit original site.