kimjson / kaist-food-bot

Telegram bot which pushes new posts of ARA(KAIST community site) Food board every 11 am.

Home Page:https://t.me/kaist_food_bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serverless Telegram Bot

Telegram bot which pushes new posts of ARA(KAIST community site) Food board every 11 am.

Usage

What do I need?

  • A AWS key configured locally, see here.
  • NodeJS. I tested with v10.16.1.
  • 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!
$ npm run deploy # development stage
$ npm run deploy:production # production stage

# 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 :)

About

Telegram bot which pushes new posts of ARA(KAIST community site) Food board every 11 am.

https://t.me/kaist_food_bot

License:MIT License


Languages

Language:Python 100.0%