Layer 227
Updates
Abstract type representing one of 7 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.Updates interface.
Use any of the following constructors:
UpdateShort
Shortened constructor containing info on one update not requiring auxiliary data
UpdateShortChatMessage
Shortened constructor containing info on one new incoming text message from a chat
UpdateShortMessage
Info about a message sent to (received from) another user
UpdateShortSentMessage
Shortened constructor containing info on one outgoing message to a contact (the destination chat has
Updates
Full constructor of updates
UpdatesCombined
Constructor for a group of updates.
UpdatesTooLong
The number of queued updates in the common message box is too large to be delivered passively throug
Gogram Example
// Updates is an interface type // You can use any of the following constructors: var _ tg.Updates = &tg.UpdateShort{} var _ tg.Updates = &tg.UpdateShortChatMessage{} var _ tg.Updates = &tg.UpdateShortMessage{} var _ tg.Updates = &tg.UpdateShortSentMessage{} var _ tg.Updates = &tg.Updates{} // ... and 2 more constructors