MadelineProtoDocs/old_docs/API_docs_v71/constructors/messageActionPhoneCall.md
Daniil Gentili e5a1324684 docufix
2018-04-04 23:19:57 +00:00

1.0 KiB

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

Constructor: messageActionPhoneCall

Back to constructors index

Attributes:

Name Type Required
call_id long Yes
reason PhoneCallDiscardReason Optional
duration int Optional

Type: MessageAction

Example:

$messageActionPhoneCall = ['_' => 'messageActionPhoneCall', 'call_id' => long, 'reason' => PhoneCallDiscardReason, 'duration' => int];

PWRTelegram json-encoded version:

{"_": "messageActionPhoneCall", "call_id": long, "reason": PhoneCallDiscardReason, "duration": int}

Or, if you're into Lua:

messageActionPhoneCall={_='messageActionPhoneCall', call_id=long, reason=PhoneCallDiscardReason, duration=int}