From 44f71f096fe9e90fffca098ad9b37d54d025bbd0 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 24 Jun 2018 16:53:07 +0200 Subject: [PATCH] Better docs for phone_code argument --- pyrogram/client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 91bdc1a6..2312d6dd 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -93,8 +93,8 @@ class Client(Methods, BaseClient): entering it manually. Only applicable for new sessions. phone_code (``str`` | ``callable``, *optional*): - Pass the phone code as string (for test numbers only), or pass a callback function - which must return the correct phone code as string (e.g., "12345"). + Pass the phone code as string (for test numbers only), or pass a callback function which accepts + a single positional argument *(phone_number)* and must return the correct phone code (e.g., "12345"). Only applicable for new sessions. password (``str``, *optional*):