From 9665a3b47b27b72318b1c696ced6fa4935dfa5bf Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Thu, 1 Oct 2026 22:15:17 +0700 Subject: [PATCH] docs: describe the shipped miti99bot wheel integration --- renderer/docs/miti99bot-integration.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/renderer/docs/miti99bot-integration.md b/renderer/docs/miti99bot-integration.md index 69ed73b..7c13497 100644 --- a/renderer/docs/miti99bot-integration.md +++ b/renderer/docs/miti99bot-integration.md @@ -1,15 +1,16 @@ # miti99bot Integration -Future bot integration should keep winner handling explicit. +miti99bot's `/wheelofnames` renders its wheel with this service, configured +by `WHEELOFNAMES_API_URL` (pointing at `/api/gif`) and +`WHEELOFNAMES_API_TOKEN`. Winner handling stays explicit: -## Recommended Flow - -1. Bot parses `/wheelofnamesbeta` options. -2. Bot chooses `winnerIndex` locally. -3. Bot calls `POST /api/gif`. -4. Bot sends response bytes with Telegram `sendAnimation`. -5. Bot caption uses local winner as source of truth. -6. If the service fails, bot falls back to existing local GIF renderer. +1. The bot parses the comma-separated options. +2. It chooses `winnerIndex` itself. +3. It calls `POST /api/gif`. +4. It sends the response bytes with Telegram `sendAnimation`. +5. Its caption uses its own winner as the source of truth. +6. If the service is not configured or fails, it replies with the winner as + text. ## Request