MTPyroger/docs/source/api/client.rst

17 lines
322 B
ReStructuredText
Raw Normal View History

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