Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 492 Bytes

readme.md

File metadata and controls

11 lines (8 loc) · 492 Bytes

Running telegram bot locally

  • clone this repo
  • install dependecies pnpm install
  • create config.json with structure taken from config/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

How does it work?

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.