- clone this repo
- install dependecies
pnpm install
- create
config.json
with structure taken fromconfig/example.json
, put your credentials 🤪 - change ./src/bot-logic.ts to meet your desired bot's logic
- run the bot
pnpm tsx src/local-run.ts
It uses long-pooling to fetch messages from Telegram bot's queue (messages are kept for 24 hours) and uses MessageHandler
to process message updates.