2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Better docs for phone_code argument

This commit is contained in:
Dan 2018-06-24 16:53:07 +02:00
parent 47043380fb
commit 44f71f096f

View File

@ -93,8 +93,8 @@ class Client(Methods, BaseClient):
entering it manually. Only applicable for new sessions. entering it manually. Only applicable for new sessions.
phone_code (``str`` | ``callable``, *optional*): phone_code (``str`` | ``callable``, *optional*):
Pass the phone code as string (for test numbers only), or pass a callback function Pass the phone code as string (for test numbers only), or pass a callback function which accepts
which must return the correct phone code as string (e.g., "12345"). a single positional argument *(phone_number)* and must return the correct phone code (e.g., "12345").
Only applicable for new sessions. Only applicable for new sessions.
password (``str``, *optional*): password (``str``, *optional*):