pyrofork/docs/source/start/examples/get_dialogs.rst
wulan17 8353e5a2a2
Pyrofork: Full rebrand
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-02-06 04:41:59 +07:00

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 pyrofork 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())