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