Layer 220
Type

Available Constructors

In Gogram, this type is represented as tg.Update interface. Use any of the following constructors:

UpdateMessageId Sent message with random_id client identifier was assigned an identifier. UpdateNewMessage New message in a private chat or in a basic group. UpdateDeleteMessages Messages were deleted. UpdateChatParticipants Composition of chat participants changed. UpdateChatUserTyping The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid UpdateUserTyping The user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 secon UpdateUserName Changes the user's first name, last name and username. UpdateNewEncryptedMessage New encrypted message. UpdateUserStatus Contact status update. UpdateNewAuthorization A new session logged into the current user's account through an unknown device. UpdateEncryptedChatTyping Interlocutor is typing a message in an encrypted chat. Update period is 6 second. If upon this time UpdateEncryption Change of state in an encrypted chat. UpdateChatParticipantDelete A member has left the group. UpdateEncryptedMessagesRead Communication history in an encrypted chat was marked as read. UpdateChatParticipantAdd New group member. UpdateNotifySettings Changes in notification settings. UpdateDcOptions Changes in the data center configuration options. UpdateServiceNotification A service message for the user. UpdateUserPhone A user's phone number was changed UpdateReadHistoryInbox Incoming messages were read UpdatePrivacy Privacy rules were changed UpdateReadMessagesContents Contents of messages in the common message box were read (emitted specifically for messages like voi UpdateReadHistoryOutbox Outgoing messages were read UpdateChannelTooLong There are new updates in the specified channel, the client must fetch them. If the difference is too UpdateChannel Channel/supergroup ( channel and/or channel Full ) information was updated. UpdateWebPage An instant view webpage preview was generated UpdateDeleteChannelMessages Some messages in a supergroup/channel were deleted UpdateReadChannelInbox Incoming messages in a channel/supergroup were read UpdateNewChannelMessage A new message was sent in a channel/supergroup UpdateNewStickerSet A new stickerset was installed UpdateChannelMessageViews The view counter of a message in a channel has changed UpdateChatParticipantAdmin Admin permissions of a user in a basic group were changed UpdateStickerSetsOrder The order of stickersets was changed UpdateStickerSets Installed stickersets have changed, the client should refetch them as described in the docs. UpdateSavedGifs The saved gif list has changed, the client should refetch it using messages. get Saved Gifs UpdateBotInlineQuery An incoming inline query UpdateBotInlineSend The result of an inline query that was chosen by a user and sent to their chat partner. Please see o UpdateEditChannelMessage A message was edited in a channel/supergroup UpdateEditMessage A message was edited UpdateBotCallbackQuery A callback button was pressed, and the button data was sent to the bot that created the button UpdateInlineBotCallbackQuery This notification is received by bots when a button is pressed UpdateReadChannelOutbox Outgoing messages in a channel/supergroup were read UpdateReadFeaturedStickers Some featured stickers were marked as read UpdateConfig The server-side configuration has changed; the client should re-fetch the config using help. get Confi UpdateDraftMessage Notifies a change of a message draft. UpdatePtsChanged Common message box sequence PTS has changed, state has to be refetched using updates. get State UpdateChannelWebPage A webpage preview of a link in a channel/supergroup message was generated UpdateRecentStickers The recent sticker list was updated UpdateDialogPinned A dialog was pinned/unpinned UpdatePinnedDialogs Pinned dialogs were updated UpdateBotWebhookJson A new incoming event; for bots only UpdateBotShippingQuery This object contains information about an incoming shipping query. UpdateBotWebhookJsonQuery A new incoming query; for bots only UpdateBotPrecheckoutQuery This object contains information about an incoming pre-checkout query. UpdatePhoneCall An incoming phone call UpdateLangPackTooLong A language pack has changed, the client should manually fetch the changed strings using langpack. get UpdateLangPack Language pack updated UpdateFavedStickers The list of favorited stickers was changed, the client should call messages. get Faved Stickers to refe UpdateChannelAvailableMessages The history of a channel/supergroup was hidden. UpdateChannelReadMessagesContents The specified channel/supergroup messages were read (emitted specifically for messages like voice me UpdateContactsReset All contacts were deleted UpdateMessagePoll The results of a poll have changed UpdateDialogUnreadMark The manual unread mark of a chat was changed UpdateChatDefaultBannedRights Default banned rights in a normal chat were updated UpdateFolderPeers The peer list of a peer folder was updated UpdatePeerSettings Settings of a certain peer have changed UpdatePeerLocated List of peers near you was updated UpdateNewScheduledMessage A message was added to the schedule queue of a chat UpdateGeoLiveViewed Live geoposition message was viewed UpdateTheme A cloud theme was updated UpdateDeleteScheduledMessages Some scheduled messages were deleted (or sent) from the schedule queue of a chat UpdateLoginToken A login token (for login via QR code) was accepted. UpdateMessagePollVote A specific peer has voted in a poll UpdateDialogFilter A new folder was added UpdateDialogFilterOrder New folder order UpdateDialogFilters Clients should update folder info UpdatePhoneCallSignalingData Incoming phone call signaling payload UpdateChannelMessageForwards The forward counter of a message in a channel has changed UpdateReadChannelDiscussionInbox Incoming comments in a discussion thread were marked as read UpdateReadChannelDiscussionOutbox Outgoing comments in a discussion thread were marked as read UpdatePinnedMessages Some messages were pinned in a chat UpdatePeerBlocked We blocked a peer, see here for more info on blocklists. UpdateChannelUserTyping A user is typing in a supergroup, channel or message thread UpdateChat Chat ( chat and/or chat Full ) information was updated. UpdatePinnedChannelMessages Messages were pinned/unpinned in a channel/supergroup UpdateGroupCallParticipants The participant list of a certain group call has changed UpdateGroupCall A new groupcall was started UpdatePeerHistoryTtl The Time-To-Live for messages sent by the current user in a specific chat has changed UpdateChatParticipant A user has joined or left a specific chat UpdateChannelParticipant A participant has left, joined, was banned or admined in a channel or supergroup. UpdateGroupCallConnection New Web RTC parameters UpdateBotCommands The command set of a certain bot in a certain chat has changed. UpdateBotStopped A bot was stopped or re-started. UpdateBotChatInviteRequester Someone has requested to join a chat or channel (bots only, users will receive an update Pending Join R UpdatePendingJoinRequests Someone has requested to join a chat or channel UpdateAttachMenuBots The list of installed attachment menu entries has changed, use messages. get Attach Menu Bots to fetch UpdateMessageReactions New message reactions are available UpdateWebViewResultSent Indicates to a bot that a webview was closed and an inline message was sent on behalf of the user us UpdateBotMenuButton The menu button behavior for the specified bot has changed UpdateSavedRingtones The list of saved notification sounds has changed, use account. get Saved Ringtones to fetch the new li UpdateReadFeaturedEmojiStickers Some featured custom emoji stickers were marked as read UpdateTranscribedAudio A pending voice message transcription initiated with messages. transcribe Audio was updated. UpdateUserEmojiStatus The emoji status of a certain user has changed UpdateRecentEmojiStatuses The list of recent emoji statuses has changed UpdateRecentReactions The list of recent message reactions has changed UpdateMoveStickerSetToTop A stickerset was just moved to top, see here for more info UpdateMessageExtendedMedia You bought a paid media: this update contains the revealed media. UpdateAutoSaveSettings Media autosave settings have changed and must be refetched using account. get Auto Save Settings. UpdateUser User ( user and/or user Full ) information was updated. UpdateReadStories Stories of a specific peer were marked as read. UpdateStoriesStealthMode Indicates that stories stealth mode was activated. UpdateStoryId A story was successfully uploaded. UpdateStory A new story was posted. UpdateSentStoryReaction Indicates we reacted to a story. UpdateBotMessageReaction Bots only: a user has changed their reactions on a message with public reactions. UpdateBotMessageReactions Bots only: the number of reactions on a message with anonymous reactions has changed. UpdateChannelViewForumAsMessages Users may also choose to display messages from all topics as if they were sent to a normal group, us UpdatePeerWallpaper The wallpaper of a given peer has changed. UpdateBotChatBoost A channel/supergroup boost has changed (bots only) UpdateSavedDialogPinned A saved message dialog was pinned/unpinned UpdatePinnedSavedDialogs Pinned saved dialogs were updated UpdateSavedReactionTags The list of reaction tag names assigned by the user has changed and should be refetched using mess UpdateSmsJob A new SMS job was received UpdateNewQuickReply A new quick reply shortcut was created. UpdateDeleteQuickReplyMessages One or more messages in a quick reply shortcut were deleted. UpdateDeleteQuickReply A quick reply shortcut was deleted. This will not emit update Delete Quick Reply Messages updates, eve UpdateQuickReplyMessage A new message was added to a quick reply shortcut. UpdateQuickReplies Info about or the order of quick reply shortcuts was changed. UpdateBotBusinessConnect Connecting or disconnecting a business bot or changing the connection settings will emit an update Bo UpdateBotNewBusinessMessage A message was received via a connected business chat. UpdateBotDeleteBusinessMessage A message was deleted in a connected business chat. UpdateNewStoryReaction Represents a new reaction to a story. UpdateBotEditBusinessMessage A message was edited in a connected business chat. UpdateStarsBalance The current account's Telegram Stars balance has changed. UpdateStarsRevenueStatus The Telegram Star balance of a channel/bot we own has changed. UpdateBusinessBotCallbackQuery A callback button sent via a business connection was pressed, and the button data was sent to the bo UpdateBotPurchasedPaidMedia Bots only: a user has purchased a paid media. UpdatePaidReactionPrivacy Contains the current default paid reaction privacy, see here for more info. UpdateSentPhoneCode A paid login SMS code was successfully sent. UpdateGroupCallChainBlocks Contains updates to the blockchain of a conference call, see here for more info. UpdateReadMonoForumInbox Incoming messages in a monoforum topic were read UpdateMonoForumNoPaidException An admin has (un)exempted this monoforum topic from payment to send messages using account. toggle N UpdateReadMonoForumOutbox Outgoing messages in a monoforum were read. UpdateGroupCallMessage No description UpdateGroupCallEncryptedMessage No description UpdatePinnedForumTopics No description UpdatePinnedForumTopic No description UpdateStarGiftAuctionUserState No description UpdateDeleteGroupCallMessages No description UpdateStarGiftAuctionState No description

Gogram Example

// Update is an interface type
// You can use any of the following constructors:
var _ tg.Update = &tg.UpdateMessageId{}
var _ tg.Update = &tg.UpdateNewMessage{}
var _ tg.Update = &tg.UpdateDeleteMessages{}
var _ tg.Update = &tg.UpdateChatParticipants{}
var _ tg.Update = &tg.UpdateChatUserTyping{}
// ... and 145 more constructors