CancelCodeRequest

Only users can use this request. See code examples.

---functions---
auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool

Returns

Bool

This type has no instances available.

Parameters

phone_numberstring
phone_code_hashstring

Known RPC errors

This request can cause 1 known error:

PhoneNumberInvalidErrorThe phone number is invalid.

You can import these from telethon.errors.

Example

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.auth.CancelCodeRequest(
        phone_number='some string here',
        phone_code_hash='some string here'
    ))
    print(result)