2019-05-12 17:26:55 +00:00
|
|
|
Pyrogram Client
|
|
|
|
===============
|
|
|
|
|
2019-05-16 19:28:34 +00:00
|
|
|
This class exposes high-level methods for an easy access to the API.
|
|
|
|
|
|
|
|
.. 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 17:26:55 +00:00
|
|
|
|
|
|
|
.. autoclass:: pyrogram.Client()
|