mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-18 05:30:15 +00:00
20 lines
339 B
ReStructuredText
20 lines
339 B
ReStructuredText
Pyrogram Client
|
|
===============
|
|
|
|
This is the Client class. It 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!")
|
|
|
|
Details
|
|
-------
|
|
|
|
.. autoclass:: pyrogram.Client()
|