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
peer | InputPhoneCall |
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.ReceivedCallRequest( peer=types.InputPhoneCall( id=-12398745604826, access_hash=-12398745604826 ) )) print(result)