ConfirmCallRequest
Only users can use this request. See code examples.
---functions--- phone.confirmCall#2efe1722 peer:InputPhoneCall g_a:bytes key_fingerprint:long protocol:PhoneCallProtocol = phone.PhoneCall
Returns
phone.PhoneCall |
This type can only be an instance of:
PhoneCall |
Parameters
peer | InputPhoneCall | |
g_a | bytes | |
key_fingerprint | long | |
protocol | PhoneCallProtocol |
Known RPC errors
This request can cause 2 known errors:
CallAlreadyDeclinedError | The call was already declined. |
CallPeerInvalidError | The provided call peer object 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.phone.ConfirmCallRequest( peer=types.InputPhoneCall( id=-12398745604826, access_hash=-12398745604826 ), g_a=b'arbitrary\x7f data \xfa here', key_fingerprint=-12398745604826, protocol=types.PhoneCallProtocol( min_layer=42, max_layer=42, library_versions=['some string here'], udp_p2p=True, udp_reflector=True ) )) print(result.stringify())