File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments