PhoneCall
This is a boxed type (a TL class): the Go interface tg.PhoneCallClass, implemented by
the constructors below. A value of this type is one of them — switch on the concrete
type to handle it.
switch v := value.(type) {
case *tg.PhoneCall: // phoneCall
case *tg.PhoneCallAccepted: // phoneCallAccepted
case *tg.PhoneCallDiscarded: // phoneCallDiscarded
case *tg.PhoneCallEmpty: // phoneCallEmpty
case *tg.PhoneCallRequested: // phoneCallRequested
case *tg.PhoneCallWaiting: // phoneCallWaiting
}
Constructors
| Constructor | TL name |
|---|---|
PhoneCall | phoneCall |
PhoneCallAccepted | phoneCallAccepted |
PhoneCallDiscarded | phoneCallDiscarded |
PhoneCallEmpty | phoneCallEmpty |
PhoneCallRequested | phoneCallRequested |
PhoneCallWaiting | phoneCallWaiting |