get_personal_channels()

async Client.get_personal_channels()

Get all your public channels.

Usable by Users Bots
Parameters:

for_community_peer (int | str, optional) – Unique identifier (int) or username (str) of the community to get channels for.

Returns:

List of Chat – On success, a list of personal channels is returned.

Example

# Get all your personal channels
await app.get_personal_channels()