MadelineProto/docs/API_docs/constructors/phoneCallDiscarded.md

47 lines
1.1 KiB
Markdown
Raw Normal View History

---
title: phoneCallDiscarded
description: phoneCallDiscarded attributes, type and example
---
## Constructor: phoneCallDiscarded
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
|need\_rating|[Bool](../types/Bool.md) | Optional|
|need\_debug|[Bool](../types/Bool.md) | Optional|
|id|[long](../types/long.md) | Yes|
|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Optional|
|duration|[int](../types/int.md) | Optional|
### Type: [PhoneCall](../types/PhoneCall.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$phoneCallDiscarded = ['_' => 'phoneCallDiscarded', 'need_rating' => Bool, 'need_debug' => Bool, 'id' => long, 'reason' => PhoneCallDiscardReason, 'duration' => int];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "phoneCallDiscarded", "need_rating": Bool, "need_debug": Bool, "id": long, "reason": PhoneCallDiscardReason, "duration": int}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
phoneCallDiscarded={_='phoneCallDiscarded', need_rating=Bool, need_debug=Bool, id=long, reason=PhoneCallDiscardReason, duration=int}
```