Repository navigation
Conversation
The widget uploads a recorded voice message as record.mp3, so operators got it in the topic as an audio file (sendAudio). It is now sent with sendVoice; with voice_record.convert_command set (e.g. ffmpeg to OGG/Opus) a converted copy is uploaded, otherwise the MP3 itself. A refused sendVoice falls back to sendAudio. The chat file is not changed.
mysubcult
added a commit
to mysubcult/telegram
that referenced
this pull request
Nov 5, 2026
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.
Problem. A voice message recorded in the chat widget is uploaded as
record.mp3, so the operator gets it in the Telegram topic throughsendAudio— as a music file with a player and a file name, not as a voice message.Change.
record.mp3,audio/mpeg) are sent withsendVoice(Bot API accepts OGG/Opus, MP3 and M4A there).voice_record.convert_command({file_orig},{file_dest}) makes an OGG/Opus copy first, so the message looks like one recorded in Telegram. Example insettings.ini.default.php:ffmpeg -nostdin -loglevel error -y -i {file_orig} -c:a libopus -b:a 64k -ac 1 -application voip {file_dest}. Empty by default — the MP3 is sent as it is.sendVoice, the recording is sent withsendAudioas before.voice_record.send_as_voice => falsekeeps the old behaviour.How to check.
record.mp3in the topic. After: a voice message (withconvert_commandset — waveform, speed, transcription like a native one).🤖 Generated with Claude Code