collapse_community()

async Client.collapse_community()

Collapse or expand a community folder in the user’s dialogs list.

Usable by Users Bots
Parameters:
  • community_id (int | str) – Target community identifier.

  • collapsed (bool, optional) – Pass True to collapse, False to expand. Defaults to True.

Returns:

Updates – On success, updates are returned.

Example

await app.collapse_community(community_id, True)