Layer 224
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 UpdateUserName Changes the user's first name, last name and username. UpdateChatParticipants Composition of chat participants changed. UpdateChatUserTyping The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid UpdateNewAuthorization A new session logged into the current user's account through an unknown device. UpdateUserStatus Contact status update. UpdateEncryption Change of state in an encrypted chat. UpdateEncryptedChatTyping Interlocutor is typing a message in an encrypted chat. Update period is 6 second. If upon this time UpdateServiceNotification A service message for the user. UpdateNewEncryptedMessage New encrypted message. UpdateChatParticipantDelete A member has left the group. UpdateEncryptedMessagesRead Communication history in an encrypted chat was marked as read. UpdateNotifySettings Changes in notification settings. UpdateChatParticipantAdd New group member. UpdatePrivacy Privacy rules were changed UpdateDcOptions Changes in the data center configuration options. UpdateUserPhone A user's phone number was changed UpdateReadHistoryOutbox Outgoing messages were read UpdateReadMessagesContents Contents of messages in the common message box were read (emitted specifically for messages like voi UpdateReadHistoryInbox Incoming messages were read UpdateWebPage An instant view webpage preview was generated 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 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 UpdateChatParticipantAdmin Admin permissions of a user in a basic group were changed UpdateNewStickerSet A new stickerset was installed UpdateChannelMessageViews The view counter of a message in a channel has changed UpdateStickerSets Installed stickersets have changed, the client should refetch them as described in the docs. UpdateStickerSetsOrder The order of stickersets was changed 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 UpdateBotInlineQuery An incoming inline query UpdateBotCallbackQuery A callback button was pressed, and the button data was sent to the bot that created the button UpdateEditChannelMessage A message was edited in a channel/supergroup UpdateEditMessage A message was edited UpdateDraftMessage Notifies a change of a message draft. UpdateInlineBotCallbackQuery This notification is received by bots when a button is pressed UpdateReadFeaturedStickers Some featured stickers were marked as read UpdateReadChannelOutbox Outgoing messages in a channel/supergroup were read UpdateConfig The server-side configuration has changed; the client should re-fetch the config using help. get Confi UpdateRecentStickers The recent sticker list was updated 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 UpdateDialogPinned A dialog was pinned/unpinned UpdatePinnedDialogs Pinned dialogs were updated UpdateBotWebhookJsonQuery A new incoming query; for bots only UpdateBotWebhookJson A new incoming event; for bots only UpdateBotShippingQuery This object contains information about an incoming shipping query. UpdatePhoneCall An incoming phone call UpdateBotPrecheckoutQuery This object contains information about an incoming pre-checkout query. UpdateLangPack Language pack updated UpdateLangPackTooLong A language pack has changed, the client should manually fetch the changed strings using langpack. get UpdateContactsReset All contacts were deleted UpdateFavedStickers The list of favorited stickers was changed, the client should call messages. get Faved Stickers to refe UpdateDialogUnreadMark The manual unread mark of a chat was changed UpdateMessagePoll The results of a poll have changed UpdateChannelAvailableMessages The history of a channel/supergroup was hidden. UpdateChannelReadMessagesContents The specified channel/supergroup messages were read (emitted specifically for messages like voice me UpdateFolderPeers The peer list of a peer folder was updated UpdateChatDefaultBannedRights Default banned rights in a normal chat were updated UpdatePeerSettings Settings of a certain peer have changed UpdateTheme A cloud theme was updated UpdatePeerLocated List of peers near you was updated UpdateDeleteScheduledMessages Some scheduled messages were deleted (or sent) from the schedule queue of a chat UpdateNewScheduledMessage A message was added to the schedule queue of a chat UpdateGeoLiveViewed Live geoposition message was viewed UpdateLoginToken A login token (for login via QR code) was accepted. UpdateDialogFilter A new folder was added UpdatePhoneCallSignalingData Incoming phone call signaling payload UpdateDialogFilterOrder New folder order UpdateMessagePollVote A specific peer has voted in a poll UpdateDialogFilters Clients should update folder info UpdateReadChannelDiscussionOutbox Outgoing comments in a discussion thread were marked as read UpdateChannelMessageForwards The forward counter of a message in a channel has changed UpdatePeerBlocked We blocked a peer, see here for more info on blocklists. UpdateReadChannelDiscussionInbox Incoming comments in a discussion thread were marked as read UpdateChannelUserTyping A user is typing in a supergroup, channel or message thread UpdatePinnedChannelMessages Messages were pinned/unpinned in a channel/supergroup UpdatePinnedMessages Some messages were pinned in a chat UpdateChat Chat ( chat and/or chat Full ) information was updated. UpdateGroupCall A new groupcall was started UpdateGroupCallParticipants The participant list of a certain group call has changed UpdatePeerHistoryTtl The Time-To-Live for messages sent by the current user in a specific chat has changed UpdateChannelParticipant A participant has left, joined, was banned or admined in a channel or supergroup. UpdateChatParticipant A user has joined or left a specific chat UpdateBotStopped A bot was stopped or re-started. UpdateMessageReactions New message reactions are available 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. UpdateAttachMenuBots The list of installed attachment menu entries has changed, use messages. get Attach Menu Bots to fetch UpdateGroupCallConnection New Web RTC parameters UpdatePendingJoinRequests Someone has requested to join a chat or channel 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 UpdateRecentReactions The list of recent message reactions has changed UpdateRecentEmojiStatuses The list of recent emoji statuses 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. UpdateStoryId A story was successfully uploaded. UpdateReadStories Stories of a specific peer were marked as read. UpdateStory A new story was posted. UpdateSentStoryReaction Indicates we reacted to a story. UpdateStoriesStealthMode Indicates that stories stealth mode was activated. 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 UpdateBotMessageReaction Bots only: a user has changed their reactions on a message with public reactions. UpdatePeerWallpaper The wallpaper of a given peer has changed. UpdateSavedDialogPinned A saved message dialog was pinned/unpinned 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 UpdateSmsJob A new SMS job was received UpdateQuickReplies Info about or the order of quick reply shortcuts was changed. UpdateNewQuickReply A new quick reply shortcut was created. 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. UpdateBotNewBusinessMessage A message was received via a connected business chat. UpdateBotBusinessConnect Connecting or disconnecting a business bot or changing the connection settings will emit an update Bo UpdateDeleteQuickReplyMessages One or more messages in a quick reply shortcut were deleted. UpdateBusinessBotCallbackQuery A callback button sent via a business connection was pressed, and the button data was sent to the bo UpdateBotEditBusinessMessage A message was edited in a connected business chat. 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. UpdateStarsRevenueStatus The Telegram Star balance of a channel/bot we own has changed. 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 UpdateReadMonoForumOutbox Outgoing messages in a monoforum were read. UpdateGroupCallMessage Group call message sent UpdateBotPurchasedPaidMedia Bots only: a user has purchased a paid media. UpdateGroupCallEncryptedMessage Encrypted message in group call UpdateMonoForumNoPaidException An admin has (un)exempted this monoforum topic from payment to send messages using account. toggle N UpdatePinnedForumTopic Forum topic pinned status changed UpdateDeleteGroupCallMessages Messages deleted from group call UpdateEmojiGameInfo Emoji game information updated UpdateStarGiftAuctionState Star gift auction state updated UpdateStarGiftAuctionUserState User's star gift auction state changed UpdateTranscribeAudio Audio transcription result UpdateBotSubscriptionExpire Bot subscription has expired UpdatePinnedForumTopics Pinned forum topics reordered UpdateStarGiftCraftFail Star gift crafting failed

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.UpdateUserName{}
// ... and 149 more constructors