Support Telegram Guest Mode reply-to-transcribe flow #188
No reviewers
Labels
No labels
bug
dependencies
duplicate
enhancement
help wanted
invalid
javascript
question
symphony
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
backmeupplz/voicy!188
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/voi-kaneo-65-guest-mode"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
guest_messageupdates and answer them with a narrowanswerGuestQuerycompatibility shimguestQueryIdand tracked guest inline message idsValidation
yarn build-tspassedyarn lintpassedyarn test:guest-modepassed, including active-job guest dedupe subscriber proof and multi-inline progress/final edit proofyarn test:transcription-cachepassedyarn test:progress-status-formatpassedyarn test:transcription-finalizationpassedyarn audit-localespassedManual QA
Required after BotFather setup: enable Guest Mode for
@voicybot, then use a real Telegram account in a supported chat where@voicybotis not a member. Reply to a transcribable voice/audio/video message with@voicybot; expect one guest reply that starts as progress and is edited to the transcript or localized failure/empty result. Repeat while the same media is already being processed; expect the duplicate guest reply to also receive the final edit. Also reply to a non-media message with@voicybot; expect the concise media-instruction reply.Review blocker found: the guest-mode active-job dedupe path can leave users stuck on a progress message.
When a guest request hits an already-active transcription (
src/handlers/handleAudio.ts:164), the code answers the newguest_query_idwith a progress message, but it does not persist the returnedinline_message_idor attach it to the existing job. The worker later only editsjob.guestInlineMessageId, so this deduped guest reply will never receive the final transcript/failure update.Local gates I ran:
yarn test:guest-modepassedyarn build-tspassedPlease either track guest inline subscribers for active jobs, avoid sending a guest progress reply that implies completion, or return a completion-compatible response for deduped active jobs.
Follow-up review after
1613c1c: the active-job Guest Mode subscriber blocker from my earlier comment is resolved. The patch now stores additional guest inline message ids and edits all tracked guest replies for progress/final output.Local gates I reran from an isolated PR worktree:
yarn build-tspassedyarn test:guest-modepassedyarn test:transcription-cachepassedyarn test:progress-status-formatpassedyarn test:transcription-finalizationpassedyarn audit-localespassedI did not merge because the task still requires real Telegram Guest Mode QA after BotFather enablement: summon
@voicybotfrom a chat where it is not a member, verify media reply progress/final edit, duplicate active-job behavior, and the non-media instruction reply.