MadelineProtoDocs/old_docs/API_docs_v91/constructors/messageActionPhoneCall.md
2019-12-27 17:48:04 +01:00

986 B

title description image
messageActionPhoneCall A phone call https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: messageActionPhoneCall

Back to constructors index

A phone call

Attributes:

Name Type Required Description
call_id long Yes Call ID
reason PhoneCallDiscardReason Optional If the call has ended, the reason why it ended
duration int Optional Duration of the call in seconds

Type: MessageAction

Example:

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

Or, if you're into Lua:

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