resend_phone_number_code()¶
- Client.resend_phone_number_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
SentCodeobject returned bysend_phone_number_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:
raises ~pyrogram.errors.BadRequest: In case the arguments are invalid.