ReceivedCallRequest

Only users can use this request. See code examples.

---functions---
phone.receivedCall#17d54f61 peer:InputPhoneCall = Bool

Returns

Bool

This type has no instances available.

Parameters

peerInputPhoneCall

Known RPC errors

This request can cause 2 known errors:

CallAlreadyDeclinedErrorThe call was already declined.
CallPeerInvalidErrorThe 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.ReceivedCallRequest(
        peer=types.InputPhoneCall(
            id=-12398745604826,
            access_hash=-12398745604826
        )
    ))
    print(result)