MadelineProtoDocs/old_docs/API_docs_v103/constructors/messageActionPhoneCall.md

42 lines
1.0 KiB
Markdown
Raw Normal View History

2019-08-15 20:25:16 +02:00
---
title: messageActionPhoneCall
description: Message action phone call
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messageActionPhoneCall
[Back to constructors index](index.md)
Message action phone call
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|video|[Bool](../types/Bool.md) | Optional|Video call?|
|call\_id|[long](../types/long.md) | Yes|Call ID|
|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Optional|Reason|
|duration|[int](../types/int.md) | Optional|Duration|
### Type: [MessageAction](../types/MessageAction.md)
### Example:
```php
$messageActionPhoneCall = ['_' => 'messageActionPhoneCall', 'video' => Bool, 'call_id' => long, 'reason' => PhoneCallDiscardReason, 'duration' => int];
```
Or, if you're into Lua:
```lua
messageActionPhoneCall={_='messageActionPhoneCall', video=Bool, call_id=long, reason=PhoneCallDiscardReason, duration=int}
```