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

Receiving message history from several chats at once #2827

Open
MorozovStVl opened this issue Mar 22, 2024 · 3 comments
Open

Receiving message history from several chats at once #2827

MorozovStVl opened this issue Mar 22, 2024 · 3 comments

Comments

@MorozovStVl
Copy link

Good evening

I'm making a single feed that should contain messages from different chats (sorted by time). Is there a way to do this without making multiple GetChatHistory() requests to each chat?
Tried to use SearchMessages(), but it returns an empty list if you don't specify a query string.

Help me please

@levlam
Copy link
Contributor

levlam commented Mar 23, 2024

There is no. You must call getChatHistory for all chats in question and merge the results manually.

@MorozovStVl
Copy link
Author

Maybe the searchGlobal() function will help me?
https://core.telegram.org/method/messages.searchGlobal

As far as I understand, this is a “pure” Telegram API and it is not in TdLib.
Right?

@levlam
Copy link
Contributor

levlam commented Apr 6, 2024

Yes, and it will not help.

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