mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
9 lines
234 B
Python
9 lines
234 B
Python
"""This example shows how to get the full dialogs list of a 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)
|