MTPyroger/docs/source/api/client.rst

26 lines
630 B
ReStructuredText
Raw Normal View History

2019-05-12 17:26:55 +00:00
Pyrogram Client
===============
2019-06-27 21:16:21 +00:00
You have entered the API Reference section where you can find detailed information about Pyrogram's API. The main Client
class, all available methods and types, filters, handlers, decorators and bound-methods detailed descriptions can be
found starting from this page.
This page is about the Client class, which 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
2020-04-01 18:08:46 +00:00
-----
2019-06-10 15:41:55 +00:00
Details
-------
2019-05-12 17:26:55 +00:00
.. autoclass:: pyrogram.Client()