cancel_code()¶
- async Client.cancel_code()¶
Cancel the login verification code.
Usable by Users Bots- Parameters:
phone_number (
str) – Phone number where the code was sent.phone_code_hash (
str) – Phone code hash from send_code.
- Returns:
bool– On success, True is returned.
Example
await app.cancel_code("+1234567890", code_hash)