@@ -147,7 +147,7 @@ class Client(Methods, BaseClient):
147147 plugins_dir (``str``, *optional*):
148148 Define a custom directory for your plugins. The plugins directory is the location in your
149149 filesystem where Pyrogram will automatically load your update handlers.
150- Defaults to "./plugins". Set to None to completely disable plugins.
150+ Defaults to None ( plugins disabled) .
151151 """
152152
153153 def __init__ (self ,
@@ -218,7 +218,8 @@ def start(self):
218218 Requires no parameters.
219219
220220 Raises:
221- :class:`Error <pyrogram.Error>`
221+ :class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
222+ ``ConnectionError`` in case you try to start an already started Client.
222223 """
223224 if self .is_started :
224225 raise ConnectionError ("Client has already been started" )
@@ -296,6 +297,9 @@ def start(self):
296297 def stop (self ):
297298 """Use this method to manually stop the Client.
298299 Requires no parameters.
300+
301+ Raises:
302+ ``ConnectionError`` in case you try to stop an already stopped Client.
299303 """
300304 if not self .is_started :
301305 raise ConnectionError ("Client is already stopped" )
@@ -355,7 +359,7 @@ def run(self):
355359 Requires no parameters.
356360
357361 Raises:
358- :class:`Error <pyrogram.Error>`
362+ :class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
359363 """
360364 self .start ()
361365 self .idle ()
@@ -887,7 +891,7 @@ def send(self, data: Object, retries: int = Session.MAX_RETRIES, timeout: float
887891
888892 Args:
889893 data (``Object``):
890- The API Scheme function filled with proper arguments.
894+ The API Schema function filled with proper arguments.
891895
892896 retries (``int``):
893897 Number of retries.
@@ -896,7 +900,7 @@ def send(self, data: Object, retries: int = Session.MAX_RETRIES, timeout: float
896900 Timeout in seconds.
897901
898902 Raises:
899- :class:`Error <pyrogram.Error>`
903+ :class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
900904 """
901905 if not self .is_started :
902906 raise ConnectionError ("Client has not been started" )
@@ -1085,7 +1089,8 @@ def resolve_peer(self, peer_id: int or str):
10851089 On success, the resolved peer id is returned in form of an InputPeer object.
10861090
10871091 Raises:
1088- :class:`Error <pyrogram.Error>`
1092+ :class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
1093+ ``KeyError`` in case the peer doesn't exist in the internal database.
10891094 """
10901095 if type (peer_id ) is str :
10911096 if peer_id in ("self" , "me" ):
0 commit comments