title | description | tags | |||
---|---|---|---|---|---|
Telegram Bot |
An ExpressJS server with a Telegram bot |
|
This example starts a Telegram bot on an ExpressJS server.
- Telegraf (library to interact with the Telegram bot API)
- Express
- TypeScript
- Install dependencies
yarn
- Connect to your Railway project
railway link
- Start the development server
railway run yarn dev
The server started launches a Telegram bot with a couple of basic commands. The code is located at src/index.js
.