Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Search Files Dropdown #6

Open
Tharic99 opened this issue Dec 31, 2024 · 3 comments
Open

Feature Request - Search Files Dropdown #6

Tharic99 opened this issue Dec 31, 2024 · 3 comments

Comments

@Tharic99
Copy link

In the Search Files Dropdown that appears when you have selected a Telegram channel, is it possible to add a file type of "All" in addition to the Media, Photo, Video, Audio and Files options that currently displays?

A use case example here is a JPG or PNG image displays under Media and Photo, but a compressed image like zip or 7zip displays under Files. However, having an "All" option would line up the JPG/PNG Media/Photo file with the compressed image zip/7zip file that displays under Files.

This way everything can be downloaded (both Media/Photo and Files) without having to do it twice, once for each drop-down.

@jarvis2f
Copy link
Owner

jarvis2f commented Jan 1, 2025

There seems to be no way to do this now, because the search file directly uses the method provided by tdlib:

searchChatMessages

Filter field used for file type filtering, no filtering for all file types is available.

@Tharic99
Copy link
Author

Tharic99 commented Jan 2, 2025

Could you send a NULL?

https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1search_chat_messages.html#a7afa6154c3257c83be5fdcc89c747b21

"Additional filter for messages to search; pass null to search for all messages."

@jarvis2f
Copy link
Owner

jarvis2f commented Jan 2, 2025

If NULL is passed, it will return all messages, including text messages, without the ability to return only messages that contain files.

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

No branches or pull requests

2 participants