Skip to main content

InputPeer

This is a boxed type (a TL class): the Go interface tg.InputPeerClass, 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.InputPeerChannel: // inputPeerChannel
case *tg.InputPeerChannelFromMessage: // inputPeerChannelFromMessage
case *tg.InputPeerChat: // inputPeerChat
case *tg.InputPeerEmpty: // inputPeerEmpty
case *tg.InputPeerSelf: // inputPeerSelf
case *tg.InputPeerUser: // inputPeerUser
case *tg.InputPeerUserFromMessage: // inputPeerUserFromMessage
}

Constructors

ConstructorTL name
InputPeerChannelinputPeerChannel
InputPeerChannelFromMessageinputPeerChannelFromMessage
InputPeerChatinputPeerChat
InputPeerEmptyinputPeerEmpty
InputPeerSelfinputPeerSelf
InputPeerUserinputPeerUser
InputPeerUserFromMessageinputPeerUserFromMessage

References