phone.requestCall
Start a telegram phone call, see here » for more info on the full flow.
Start a telegram phone call, see [here »](https://core.telegram.org/api/calls.md#one-to-one-calls) for more info on the full flow.
| Name | Type | Required | Description |
|---|---|---|---|
video | true | No | Whether to start a video call |
user_id | InputUser | Yes | Destination of the phone call |
random_id | int | Yes | Random ID to avoid resending the same object. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |
g_a_hash | bytes | Yes | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls.md) |
protocol | PhoneCallProtocol | Yes | Phone call settings |
Replies
phone.PhoneCall
MTProto RPC
- 400 · CALL_PROTOCOL_FLAGS_INVALID — Call protocol flags invalid.
- 400 · CALL_PROTOCOL_LAYER_INVALID — The specified protocol layer version range is invalid.
- 400 · INPUT_USER_DEACTIVATED — The specified user was deleted.
- 400 · PARTICIPANT_VERSION_OUTDATED — The other participant does not use an up to date telegram client with support for calls.
- 500 · RANDOM_ID_DUPLICATE — You provided a random ID that was already used.
- 400 · USER_ID_INVALID — The provided user ID is invalid.
- 403 · USER_IS_BLOCKED — You were blocked by this user.
- 403 · USER_PRIVACY_RESTRICTED — The user's privacy settings do not allow you to do this.