Installation — Telegram
Telegram requires a supergroup with Topics enabled.
Prerequisites
Section titled “Prerequisites”- Bun >= 1.1 (or Docker)
- A Telegram account
Step A — Create a bot
Section titled “Step A — Create a bot”- Open @BotFather and send
/newbot - Follow the prompts to choose a name and username
- Copy the token BotFather gives you
Step B — Create the supergroup and enable Topics
Section titled “Step B — Create the supergroup and enable Topics”- Create a new Telegram group (or use an existing one)
- Open Group Info → Edit → Group Type → make it a Supergroup
- In Group Info → Edit, enable Topics
Step C — Add the bot and grant admin rights
Section titled “Step C — Add the bot and grant admin rights”- In the group, go to Add Members and search for your bot’s username
- Give the bot admin rights with at least:
- Manage topics — create and close forum topics
- Pin messages — pin the ride summary in each topic
- Send messages
Step D — Get the group chat ID
Section titled “Step D — Get the group chat ID”Send any message in the group, then open:
https://api.telegram.org/bot<YOUR_TOKEN>/getUpdatesFind "chat": { "id": -100XXXXXXXXX } — that negative number is your TELEGRAM_GROUP_CHAT_ID.
Step E — Configure and run
Section titled “Step E — Configure and run”cp .env.example .env# Fill in ADAPTER=telegram and your Telegram valuesbun installbun run startSee Configuration for all available variables.
Verify
Section titled “Verify”Send /newride in the group. The bot will guide you step by step.