mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-28 00:56:19 +00:00
10 lines
234 B
Python
10 lines
234 B
Python
"""This example shows how to get the full dialogs list (as user)."""
|
|
|
|
from pyrogram import Client
|
|
|
|
app = Client("my_account")
|
|
|
|
with app:
|
|
for dialog in app.iter_dialogs():
|
|
print(dialog.chat.title or dialog.chat.first_name)
|