Skip to content

Any way to filter invisible characters in chat download #1154

Description

@mrsilva

Describe the bug

tdl saves invisible control characters embedded in filenames

To Reproduce

When running chat export, it will create a json with the following invisible control characters in the middle of filenames:
�
�
�
�

In plain ASCII the characters are:
PAD
HTJ
SOS
SGCI

Command I ran:
tdl chat export -c https://t.me/URL -f "Media.Name endsWith '.rar' || Media.Name endsWith '.zip'" -o "C:\tdl\out.json"

Expected behavior

No invisible characters in the middle of the filename

Version

Latest

Which OS are you running tdl on?

Windows

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions