@@ -261,7 +261,7 @@ def proxy(self, value):
261261 self ._proxy .update (value )
262262
263263 def start (self ):
264- """Use this method to start the Client.
264+ """Start the Client.
265265
266266 Raises:
267267 RPCError: In case of a Telegram RPC error.
@@ -354,7 +354,7 @@ def start(self):
354354 return self
355355
356356 def stop (self ):
357- """Use this method to stop the Client.
357+ """Stop the Client.
358358
359359 Raises:
360360 ConnectionError: In case you try to stop an already stopped Client.
@@ -396,7 +396,7 @@ def stop(self):
396396 return self
397397
398398 def restart (self ):
399- """Use this method to restart the Client.
399+ """Restart the Client.
400400
401401 Raises:
402402 ConnectionError: In case you try to restart a stopped Client.
@@ -405,7 +405,7 @@ def restart(self):
405405 self .start ()
406406
407407 def idle (self , stop_signals : tuple = (SIGINT , SIGTERM , SIGABRT )):
408- """Use this method to block the main script execution until a signal (e.g.: from CTRL+C) is received.
408+ """Block the main script execution until a signal (e.g.: from CTRL+C) is received.
409409 Once the signal is received, the client will automatically stop and the main script will continue its execution.
410410
411411 This is used after starting one or more clients and is useful for event-driven applications only, that are,
@@ -438,7 +438,7 @@ def signal_handler(*args):
438438 self .stop ()
439439
440440 def run (self ):
441- """Use this method to start the Client and automatically idle the main script.
441+ """Start the Client and automatically idle the main script.
442442
443443 This is a convenience method that literally just calls :meth:`start` and :meth:`idle`. It makes running a client
444444 less verbose, but is not suitable in case you want to run more than one client in a single main script,
@@ -451,7 +451,7 @@ def run(self):
451451 self .idle ()
452452
453453 def add_handler (self , handler : Handler , group : int = 0 ):
454- """Use this method to register an update handler.
454+ """Register an update handler.
455455
456456 You can register multiple handlers, but at most one handler within a group
457457 will be used for a single update. To handle the same update more than once, register
@@ -475,7 +475,7 @@ def add_handler(self, handler: Handler, group: int = 0):
475475 return handler , group
476476
477477 def remove_handler (self , handler : Handler , group : int = 0 ):
478- """Use this method to remove a previously-registered update handler.
478+ """Remove a previously-registered update handler.
479479
480480 Make sure to provide the right group that the handler was added in. You can use
481481 the return value of the :meth:`add_handler` method, a tuple of (handler, group), and
@@ -494,7 +494,7 @@ def remove_handler(self, handler: Handler, group: int = 0):
494494 self .dispatcher .remove_handler (handler , group )
495495
496496 def stop_transmission (self ):
497- """Use this method to stop downloading or uploading a file.
497+ """Stop downloading or uploading a file.
498498 Must be called inside a progress callback function.
499499 """
500500 raise Client .StopTransmission
@@ -1036,7 +1036,7 @@ def updates_worker(self):
10361036 log .debug ("{} stopped" .format (name ))
10371037
10381038 def send (self , data : Object , retries : int = Session .MAX_RETRIES , timeout : float = Session .WAIT_TIMEOUT ):
1039- """Use this method to send raw Telegram queries.
1039+ """Send raw Telegram queries.
10401040
10411041 This method makes it possible to manually call every single Telegram API method in a low-level manner.
10421042 Available functions are listed in the :obj:`functions <pyrogram.api.functions>` package and may accept compound
@@ -1341,7 +1341,7 @@ def get_initial_dialogs(self):
13411341 self .get_initial_dialogs_chunk ()
13421342
13431343 def resolve_peer (self , peer_id : Union [int , str ]):
1344- """Use this method to get the InputPeer of a known peer id.
1344+ """Get the InputPeer of a known peer id.
13451345 Useful whenever an InputPeer type is required.
13461346
13471347 .. note::
@@ -1423,7 +1423,7 @@ def save_file(
14231423 progress : callable = None ,
14241424 progress_args : tuple = ()
14251425 ):
1426- """Use this method to upload a file onto Telegram servers, without actually sending the message to anyone.
1426+ """Upload a file onto Telegram servers, without actually sending the message to anyone.
14271427 Useful whenever an InputFile type is required.
14281428
14291429 .. note::
0 commit comments