2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-23 18:37:26 +00:00
pyrogram/docs/source/api/client.rst

20 lines
339 B
ReStructuredText
Raw Normal View History

2019-05-12 19:26:55 +02:00
Pyrogram Client
===============
2019-05-23 18:59:29 +02:00
This is the Client class. It exposes high-level methods for an easy access to the API.
2019-05-16 21:28:34 +02:00
.. code-block:: python
:emphasize-lines: 1-3
from pyrogram import Client
app = Client("my_account")
with app:
app.send_message("me", "Hi!")
2019-05-12 19:26:55 +02:00
2019-06-10 17:41:55 +02:00
Details
-------
2019-05-12 19:26:55 +02:00
.. autoclass:: pyrogram.Client()