Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 366 Bytes

File metadata and controls

19 lines (11 loc) · 366 Bytes

get_dialogs

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

from hydrogram import Client

app = Client("my_account")


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


app.run(main())