2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-02 07:15:23 +00:00

Update examples

This commit is contained in:
Dan
2019-05-10 17:15:46 +02:00
parent d48f18bea5
commit f16ed40532
8 changed files with 23 additions and 27 deletions

9
examples/get_dialogs.py Normal file
View File

@@ -0,0 +1,9 @@
"""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)