2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-03 15:55:37 +00:00

Docs revamp. Part 3

This commit is contained in:
Dan
2019-05-12 19:26:55 +02:00
parent f7cdc7ac3c
commit eadda551c6
25 changed files with 235 additions and 109 deletions

View File

@@ -60,7 +60,7 @@ log = logging.getLogger(__name__)
class Client(Methods, BaseClient):
"""This class represents a Client, the main mean for interacting with Telegram.
"""This class represents a Client, the main means for interacting with Telegram.
It exposes bot-like methods for an easy access to the API as well as a simple way to
invoke every single Telegram API method available.
@@ -438,7 +438,7 @@ class Client(Methods, BaseClient):
self.stop()
def run(self):
"""Use this method as a convenience shortcut to automatically start the Client and idle the main script.
"""Use this method to start the Client and automatically idle the main script.
This is a convenience method that literally just calls :meth:`start` and :meth:`idle`. It makes running a client
less verbose, but is not suitable in case you want to run more than one client in a single main script,