Skip to content

Incorrect file exported when saving multiple audio tracks with identical names #2093

@kil0ba

Description

@kil0ba

Checklist

[x] I am reporting an issue in existing functionality that does not work as intended

[x] I've searched for existing [GitHub issues](https://github.com/telegrammessenger/Telegram-iOS/issues)

Description

When receiving multiple different audio files in a chat that share the exact same name/title, the app fails to distinguish between them when saving to the Files app. It seems the app caches the first played/downloaded track and keeps exporting that specific file, regardless of which unique message is selected for "Save to Files".

Expected Behavior:
The app should export the specific audio file from the selected message, even if other messages in the chat have files with identical names

Actual Behavior:
The app consistently saves the very first audio track I listened to in that bot session, ignoring the actual content I try to save.

Steps to Reproduce

1. Open a chat with multiple different audio files with the exact same name (I did that in bot @msspeechbot with mp3 option)

2. Download to the files the first audio file

3. Attempt to save this file to the Files app . It saves correctly

4.  Go to a different message in the same chat with a different audio track (but identical name)

5.  Attempt to save this second track to the Files app

6. The file saved is actually the content of the first track, not the one currently selected

Device: iPhone

iOS version: 26.3.1

App version: 12.6.1

upd: fixed the layout of the report

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions