Rename Sign In to Log In for more clarity

This commit is contained in:
Dan 2018-02-27 18:15:10 +01:00
parent 4b34e695cb
commit f7e3044939

View File

@ -2,17 +2,17 @@ Auto Authorization
==================
Manually writing phone number, phone code and password on the terminal every time you want to login can be tedious.
Pyrogram is able to automate both **Sign-In** and **Sign-Up** processes, all you need to do is pass the relevant
Pyrogram is able to automate both **Log In** and **Sign Up** processes, all you need to do is pass the relevant
parameters when creating a new Client.
.. note:: If you omit any of the optional parameter required for the authorization, Pyrogram will ask you to
manually write it. For instance, if you don't want to set a *last_name* when creating a new account you
have to explicitly pass an empty string ""; the default value (None) will trigger the input() call.
Sign-In
Log In
-------
To automate the **Sign-In** process, pass your *phone_number* and *password* (if you have one) in the Client parameters.
To automate the **Log In** process, pass your *phone_number* and *password* (if you have one) in the Client parameters.
If you want to retrieve the phone code programmatically, pass a callback function in the *phone_code* field — this
function must return the correct phone code as string (e.g., "12345") — otherwise, ignore this parameter, Pyrogram will
ask you to input the phone code manually.
@ -36,10 +36,10 @@ ask you to input the phone code manually.
client.start()
print(client.get_me())
Sign-Up
Sign Up
-------
To automate the **Sign-Up** process (i.e., automatically create a new Telegram account), simply fill **both**
To automate the **Sign Up** process (i.e., automatically create a new Telegram account), simply fill **both**
*first_name* and *last_name* fields alongside the other parameters; they will be used to automatically create a new
Telegram account in case the phone number you passed is not registered yet.