account.ChangePhone#

class pyrogram.raw.functions.account.ChangePhone#

Change the phone number of the current account.

Details:
  • Layer: 158

  • ID: 70C32EDB

Parameters:
  • phone_number (str) – New phone number.

  • phone_code_hash (str) – Phone code hash received when calling account.sendChangePhoneCode.

  • phone_code (str) – Phone code received when calling account.sendChangePhoneCode.

Returns:

User