get_inactive_channels()¶
- async Client.get_inactive_channels()¶
Get the list of inactive channels and supergroups.
Telegram returns inactive channels you are a member of, which can be left when reaching channel join limits.
Usable by Users Bots- Returns:
List of
Chat– On success, a list of inactive chats is returned.
Example
# Get inactive channels inactive = await app.get_inactive_channels() for chat in inactive: print(chat.title)