Layer 224
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:
UpdatesTooLong
Too many updates, it is necessary to execute updates. get Difference.
UpdateShortMessage
Info about a message sent to (received from) another user
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
Updates
Full constructor of updates
UpdatesCombined
Constructor for a group of updates.
UpdateShortSentMessage
Shortened constructor containing info on one outgoing message to a contact (the destination chat has
Gogram Example
// Updates is an interface type // You can use any of the following constructors: var _ tg.Updates = &tg.UpdatesTooLong{} var _ tg.Updates = &tg.UpdateShortMessage{} var _ tg.Updates = &tg.UpdateShort{} var _ tg.Updates = &tg.UpdateShortChatMessage{} var _ tg.Updates = &tg.Updates{} // ... and 2 more constructors