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

Is there a way to get > 100 results with global search and SearchPostsRequest? #4447

Closed
1 task done
theluxury opened this issue Aug 30, 2024 · 1 comment
Closed
1 task done
Labels
enhancement Nice to have things that are not a bug

Comments

@theluxury
Copy link

Describe your suggested feature

Hi, I'm looking for a way to search globally for > 100 messages. Using SearchPostsRequest I can find the most recent 100 messages containing some hashtag, but I haven't been able to get more results than that. I've tried both offset_rate and offset_id, but neither one seem to work. Is there a way to do this?

Checklist

  • I have searched for this issue before posting it and there isn't a duplicate.
@theluxury theluxury added the enhancement Nice to have things that are not a bug label Aug 30, 2024
@Lonami
Copy link
Member

Lonami commented Aug 31, 2024

I have no plans to make a friendly method for this. But just like GetHistory has to deal with offsets, I'd expect this request to do so, too. See https://core.telegram.org/api/offsets.

If you're using all offsets as intended, and it still doesn't work, there's a chance it just doesn't work on the server.

You could use tdesktop's debugmode to know how they do it.

@Lonami Lonami closed this as completed Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Nice to have things that are not a bug
Projects
None yet
Development

No branches or pull requests

2 participants