mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
19 lines
No EOL
364 B
ReStructuredText
19 lines
No EOL
364 B
ReStructuredText
get_dialogs
|
|
===========
|
|
|
|
This example shows how to get the full dialogs list (as user).
|
|
|
|
.. code-block:: python
|
|
|
|
from pyrogram import Client
|
|
|
|
app = Client("my_account")
|
|
|
|
|
|
async def main():
|
|
async with app:
|
|
async for dialog in app.get_dialogs():
|
|
print(dialog.chat.title or dialog.chat.first_name)
|
|
|
|
|
|
app.run(main()) |