MTPyroger/examples/dialogs.py

10 lines
234 B
Python
Raw Permalink Normal View History

2019-01-07 09:33:09 +00:00
"""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)