mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-31 06:16:06 +00:00
Update examples
This commit is contained in:
9
examples/dialogs.py
Normal file
9
examples/dialogs.py
Normal file
@@ -0,0 +1,9 @@
|
||||
"""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)
|
Reference in New Issue
Block a user