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