get_dialogs

This example shows how to get the full dialogs list (as user).

import asyncio
from pyrogram import Client


async def main():
    app = Client("my_account")

    async with app:
        async for dialog in app.get_dialogs():
            print(dialog.chat.title or dialog.chat.first_name)


asyncio.run(main())