MadelineProtoDocs/docs/API_docs/constructors/phoneCall.md
2018-04-19 17:56:40 +00:00

1.9 KiB

title description image
phoneCall phoneCall attributes, type and example https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: phoneCall

Back to constructors index

Attributes:

Name Type Required
id long Yes
access_hash long Yes
date int Yes
admin_id int Yes
participant_id int Yes
g_a_or_b bytes Yes
key_fingerprint long Yes
protocol PhoneCallProtocol Yes
connection PhoneConnection Yes
alternative_connections Array of PhoneConnection Yes
start_date int Yes

Type: PhoneCall

Example:

$phoneCall = ['_' => 'phoneCall', '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", "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', 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}