AWS-telegram-echo-bot
This is a simple echo bot on Telegram. (NodeJS)
Required
- Node.js
v6.5.0
or later - Telegram account
- AWS account
Get Started
- Install serverless via npm
$ npm install -g serverless$ npm install
- Create a bot from Telegram, sending this message to @BotFather
$ /newbot
- Put the token received into a file called
handle.js
.
const token = "YOUR_API_TOKEN";
- Deploy it!
$ serverless deploy
- 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 🤖