MadelineProtoDocs/docs/API_docs/constructors/phoneCall.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

2.2 KiB

title description image
phoneCall Phone call https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: phoneCall

Back to constructors index

Phone call

Attributes:

Name Type Required Description
p2p_allowed Bool Optional P2p allowed?
id long Yes ID
access_hash long Yes Access hash
date int Yes Date
admin_id int Yes Admin ID
participant_id int Yes Participant ID
g_a_or_b bytes Yes G a or b
key_fingerprint long Yes Key fingerprint
protocol PhoneCallProtocol Yes Protocol
connection PhoneConnection Yes Connection
alternative_connections Array of PhoneConnection Yes Alternative connections
start_date int Yes Start date

Type: PhoneCall

Example:

$phoneCall = ['_' => 'phoneCall', 'p2p_allowed' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'g_a_or_b' => 'bytes', 'key_fingerprint' => long, 'protocol' => PhoneCallProtocol, 'connection' => PhoneConnection, 'alternative_connections' => [PhoneConnection, PhoneConnection], 'start_date' => int];

PWRTelegram json-encoded version:

{"_": "phoneCall", "p2p_allowed": Bool, "id": long, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": {"_": "bytes", "bytes":"base64 encoded bytes"}, "key_fingerprint": long, "protocol": PhoneCallProtocol, "connection": PhoneConnection, "alternative_connections": [PhoneConnection], "start_date": int}

Or, if you're into Lua:

phoneCall={_='phoneCall', p2p_allowed=Bool, id=long, access_hash=long, date=int, admin_id=int, participant_id=int, g_a_or_b='bytes', key_fingerprint=long, protocol=PhoneCallProtocol, connection=PhoneConnection, alternative_connections={PhoneConnection}, start_date=int}