Layer 220
MessageActionPhoneCall
A phone call
constructor
messageActionPhoneCall#80e11a7f flags:# video:flags.2?true call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Video | flags.2?true | Is this a video call? |
| CallId | long | Call ID |
| Reason | flags.0?PhoneCallDiscardReason | If the call has ended, the reason why it ended |
| Duration | flags.1?int | Duration of the call in seconds |
Returns
MessageActionGogram Example
// Creating MessageActionPhoneCall constructor obj := &tg.MessageActionPhoneCall{ CallId: int64(0), // Optional fields: // Video: true, // Reason: &tg.PhoneCallDiscardReason{}, // Duration: 0, }