Files
archived-starters/examples/telegram-bot
Faraz Patankar 9e840b465a 🚂 add telegram bot starter example (#59)
* add telegram bot starter example

* fix deploy button and mark bot token as required

* update README
2021-03-04 13:37:42 -08:00
..
2021-03-04 13:37:42 -08:00
2021-03-04 13:37:42 -08:00
2021-03-04 13:37:42 -08:00
2021-03-04 13:37:42 -08:00
2021-03-04 13:37:42 -08:00

Telegram bot example

This example starts a Telegram bot on an ExpressJS server.

Deploy on Railway

Features

  • Telegraf (library to interact with the Telegram bot API)
  • Express
  • TypeScript

💁‍♀️ How to use

  • Install dependencies yarn
  • Connect to your Railway project railway init
  • Start the development server railway run yarn dev

📝 Notes

The server started launches a Telegram bot with a couple of basic commands. The code is located at src/index.js.