Skip to main content

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

ConstructorTL name
PhoneCallphoneCall
PhoneCallAcceptedphoneCallAccepted
PhoneCallDiscardedphoneCallDiscarded
PhoneCallEmptyphoneCallEmpty
PhoneCallRequestedphoneCallRequested
PhoneCallWaitingphoneCallWaiting

References