MTPyroger/docs/source/api/client.rst

20 lines
339 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
2019-06-10 15:41:55 +00:00
Details
-------
2019-05-12 17:26:55 +00:00
.. autoclass:: pyrogram.Client()