Skip to main content

Updates

This is a boxed type (a TL class): the Go interface tg.UpdatesClass, 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.UpdateShort: // updateShort
case *tg.UpdateShortChatMessage: // updateShortChatMessage
case *tg.UpdateShortMessage: // updateShortMessage
case *tg.UpdateShortSentMessage: // updateShortSentMessage
case *tg.Updates: // updates
case *tg.UpdatesCombined: // updatesCombined
case *tg.UpdatesTooLong: // updatesTooLong
}

Constructors

ConstructorTL name
UpdateShortupdateShort
UpdateShortChatMessageupdateShortChatMessage
UpdateShortMessageupdateShortMessage
UpdateShortSentMessageupdateShortSentMessage
Updatesupdates
UpdatesCombinedupdatesCombined
UpdatesTooLongupdatesTooLong

Returned by

References