feat: add voice message transcription support - #110
Open
kky wants to merge 12 commits into
Open
Conversation
Supports local whisper.cpp and OpenAI Whisper API backends. Channels dynamically import transcribe() — no channel-specific dependencies.
Downloads and transcribes Telegram voice messages using the transcription skill if installed. Falls back gracefully with a helpful message when the skill is not present.
…for optional transcription import Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… add type annotations The transcription skill merge resolved package.json conflicts with --theirs, which dropped grammy. Updated the add-transcription SKILL.md to warn against this pattern. Also added explicit `any` type annotations to telegram.ts callbacks to fix strict-mode TS errors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/add-transcriptionskill is installedimport('../transcription.js')— no compile-time dependency on the transcription moduleHow it works
message:voicehandler downloads the audio file via Telegram Bot API (ctx.getFile()+ file URL)transcribe()fromsrc/transcription.ts(installed via/add-transcription)MODULE_NOT_FOUND), delivers a placeholder message suggesting the user run/add-transcription@ts-ignoreon the dynamic import since the module is optionalTests
How it was tested