Answer the question
In order to leave comments, you need to log in
How to bypass telegram restrictions on global group search?
as you can see, there are only 10 groups at the output. but I just don't believe that there can be only 10 groups according to such a publicized key. and so not only on this key.
async def collectGroups(client: TelegramClient, query: str):
results = await client(functions.contacts.SearchRequest(
q=query,
limit=100,
))
return results
async def boundCollectGroups(limit: asyncio.BoundedSemaphore, client: TelegramClient, query: str):
async with limit:
return await collectGroups(client=client, query=query)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question