resend_code()#

Client.resend_code()#

Re-send the confirmation code using a different type.

The type of the code to be re-sent is specified in the next_type attribute of the SentCode object returned by send_code().

Usable by Users Bots
Parameters:
  • phone_number (str) – Phone number in international format (includes the country prefix).

  • phone_code_hash (str) – Confirmation code identifier.

Returns:

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

Raises:

BadRequest – In case the arguments are invalid.