Skip to content

feat(telegram): use send_audio for audio MIME types#170

Merged
jamiepine merged 3 commits intospacedriveapp:mainfrom
Marenz:feat/telegram-send-audio
Feb 23, 2026
Merged

feat(telegram): use send_audio for audio MIME types#170
jamiepine merged 3 commits intospacedriveapp:mainfrom
Marenz:feat/telegram-send-audio

Conversation

@Marenz
Copy link
Collaborator

@Marenz Marenz commented Feb 23, 2026

Audio files sent via OutboundResponse::File were dispatched as send_document, which Telegram renders as a generic file attachment with no inline playback.

When mime_type starts with audio/, use send_audio instead — this gives the recipient an inline audio player in the chat. All other file types continue through send_document unchanged.

Both paths preserve the existing HTML caption / plain caption retry logic.

Depends on #174.

@Marenz Marenz force-pushed the feat/telegram-send-audio branch from 24e49f9 to e5e7357 Compare February 23, 2026 17:21
Audio files sent via OutboundResponse::File were dispatched as
send_document, which Telegram renders as a generic file download with
no inline playback.

Check the mime_type field: if it starts with 'audio/', use send_audio
instead. This gives the user an inline audio player in the chat.
Non-audio files continue to use send_document as before.
@Marenz Marenz force-pushed the feat/telegram-send-audio branch from e5e7357 to 57647a2 Compare February 23, 2026 17:34
@jamiepine jamiepine merged commit 94db204 into spacedriveapp:main Feb 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants