Skip to content

Commit 628ddd4

Browse files
committed
Update Client's docstrings
1 parent 67a35f8 commit 628ddd4

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

pyrogram/client/client.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ class Client(Methods, BaseClient):
139139
Only applicable for new sessions.
140140
141141
first_name (``str``, *optional*):
142-
Pass a First Name to avoid entering it manually. It will be used to automatically
143-
create a new Telegram account in case the phone number you passed is not registered yet.
142+
Pass a First Name as string to avoid entering it manually. Or pass a callback function which accepts no
143+
arguments and must return the correct name as string (e.g., "Dan"). It will be used to automatically create
144+
a new Telegram account in case the phone number you passed is not registered yet.
144145
Only applicable for new sessions.
145146
146147
last_name (``str``, *optional*):
@@ -158,7 +159,8 @@ class Client(Methods, BaseClient):
158159
Path of the configuration file. Defaults to ./config.ini
159160
160161
plugins (``dict``, *optional*):
161-
TODO: doctrings
162+
Your Smart Plugins settings as dict, e.g.: *dict(root="plugins")*.
163+
This is an alternative way to setup plugins if you don't want to use the *config.ini* file.
162164
163165
no_updates (``bool``, *optional*):
164166
Pass True to completely disable incoming updates for the current session.

0 commit comments

Comments
 (0)