send_code()#

Client.send_code()#

Send the confirmation code to the given phone number.

Usable by Users Bots
Parameters:

phone_number (str) – Phone number in international format (includes the country prefix).

Returns:

SentCode – On success, an object containing information on the sent confirmation code is returned.

Raises:

BadRequest – In case the phone number is invalid.