R
R
Ribachok2022-04-06 18:18:46
Bots
Ribachok, 2022-04-06 18:18:46

How to get all groups in which the bot is a member?

How can I get a list of all the groups the pyrogram bot is a member of?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2022-04-06
@shurshur

If this is a bot, and not a user, then no way. The Bot API does not have this functionality. You can only track the additions / deletions of the bot from the very beginning of its existence.
For a userbot, there is an example right in the documentation: https://docs.pyrogram.org/start/examples/get_dialogs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question