AWS | Telegram Echo Bot

This is a simple echo bot on Telegram.


Peter Chu

Clone This Example

Step #1 - npm install serverless -g
Step #2 - serverless install -u -n  aws-node-telegram-echo-bot


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


  • Node.js v6.5.0 or later
  • Telegram account
  • AWS account

Get Started

  1. Install serverless via npm
$ npm install -g serverless
$ npm install
  1. Create a bot from Telegram, sending this message to @BotFather
$ /newbot
  1. Put the token received into a file called handle.js.
const token = "YOUR_API_TOKEN";
  1. Deploy it!
$ serverless deploy
  1. Configure webhook
curl --request POST --url{token}/setWebhook --header 'content-type: application/json' --data '{"url": "{end-poinnt}"}'

Say hello to your bot 🤖

view on Github

Latest commit b2f54ec on Sep 24, 2017

New to serverless?

To get started, pop open your terminal & run:

npm install serverless -g