@@ -66,14 +66,14 @@ class Client(Methods):
6666
6767 Parameters:
6868 name (``str``):
69- Pass a string of your choice to give a name to the client, e.g.: "my_account".
69+ A name for the client, e.g.: "my_account".
7070
7171 api_id (``int`` | ``str``, *optional*):
72- The *api_id* part of your Telegram API key, as integer.
73- E.g.: 12345.
72+ The *api_id* part of the Telegram API key, as integer or string .
73+ E.g.: 12345 or "12345" .
7474
7575 api_hash (``str``, *optional*):
76- The *api_hash* part of your Telegram API key, as string.
76+ The *api_hash* part of the Telegram API key, as string.
7777 E.g.: "0123456789abcdef0123456789abcdef".
7878
7979 app_version (``str``, *optional*):
@@ -99,15 +99,15 @@ class Client(Methods):
9999 proxy (``dict``, *optional*):
100100 The Proxy settings as dict.
101101 E.g.: *dict(scheme="socks5", hostname="11.22.33.44", port=1234, username="user", password="pass")*.
102- The *username* and *password* can be omitted if your proxy doesn't require authorization.
102+ The *username* and *password* can be omitted if the proxy doesn't require authorization.
103103
104104 test_mode (``bool``, *optional*):
105105 Enable or disable login to the test servers.
106106 Only applicable for new sessions and will be ignored in case previously created sessions are loaded.
107107 Defaults to False.
108108
109109 bot_token (``str``, *optional*):
110- Pass your Bot API token to create a bot session, e.g.: "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
110+ Pass the Bot API token to create a bot session, e.g.: "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
111111 Only applicable for new sessions.
112112
113113 session_string (``str``, *optional*):
@@ -122,28 +122,28 @@ class Client(Methods):
122122 Defaults to False.
123123
124124 phone_number (``str``, *optional*):
125- Pass your phone number as string (with your Country Code prefix included) to avoid entering it manually.
125+ Pass the phone number as string (with the Country Code prefix included) to avoid entering it manually.
126126 Only applicable for new sessions.
127127
128128 phone_code (``str``, *optional*):
129129 Pass the phone code as string (for test numbers only) to avoid entering it manually.
130130 Only applicable for new sessions.
131131
132132 password (``str``, *optional*):
133- Pass your Two-Step Verification password as string (if you have one ) to avoid entering it manually.
133+ Pass the Two-Step Verification password as string (if required ) to avoid entering it manually.
134134 Only applicable for new sessions.
135135
136136 workers (``int``, *optional*):
137137 Number of maximum concurrent workers for handling incoming updates.
138138 Defaults to ``min(32, os.cpu_count() + 4)``.
139139
140140 workdir (``str``, *optional*):
141- Define a custom working directory. The working directory is the location in your filesystem where Pyrogram
142- will store your session files.
141+ Define a custom working directory.
142+ The working directory is the location in the filesystem where Pyrogram will store the session files.
143143 Defaults to the parent directory of the main script.
144144
145145 plugins (``dict``, *optional*):
146- Your Smart Plugins settings as dict, e.g.: *dict(root="plugins")*.
146+ Smart Plugins settings as dict, e.g.: *dict(root="plugins")*.
147147
148148 parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
149149 Set the global parse mode of the client. By default, texts are parsed using both Markdown and HTML styles.
@@ -157,7 +157,7 @@ class Client(Methods):
157157
158158 takeout (``bool``, *optional*):
159159 Pass True to let the client use a takeout session instead of a normal one, implies *no_updates=True*.
160- Useful for exporting your Telegram data. Methods invoked inside a takeout session (such as get_history ,
160+ Useful for exporting Telegram data. Methods invoked inside a takeout session (such as get_chat_history ,
161161 download_media, ...) are less prone to throw FloodWait exceptions.
162162 Only available for users, bots will ignore this parameter.
163163 Defaults to False (normal session).
0 commit comments