Layer 220
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:
UpdateShortChatMessage
Shortened constructor containing info on one new incoming text message from a chat
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
UpdatesCombined
Constructor for a group of updates.
Updates
Full constructor 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.UpdateShortChatMessage{} var _ tg.Updates = &tg.UpdatesTooLong{} var _ tg.Updates = &tg.UpdateShortMessage{} var _ tg.Updates = &tg.UpdateShort{} var _ tg.Updates = &tg.UpdatesCombined{} // ... and 2 more constructors