Layer 220
PhoneCallDiscarded
Indicates a discarded phone call
constructor
phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true video:flags.6?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| NeedRating | flags.2?true | Whether the server required the user to rate the call |
| NeedDebug | flags.3?true | Whether the server required the client to send the libtgvoip call debug data |
| Video | flags.6?true | Whether the call was a video call |
| Id | long | Call ID |
| Reason | flags.0?PhoneCallDiscardReason | Why was the phone call discarded |
| Duration | flags.1?int | Duration of the phone call in seconds |
Returns
PhoneCallGogram Example
// Creating PhoneCallDiscarded constructor obj := &tg.PhoneCallDiscarded{ Id: int64(0), // Optional fields: // NeedRating: true, // NeedDebug: true, // Video: true, // Reason: &tg.PhoneCallDiscardReason{}, // ... more optional fields }