Enum rust_tdlib::types::Update
source · pub enum Update {
Show 93 variants
TestUseUpdate(TestUseUpdate),
ActiveNotifications(UpdateActiveNotifications),
AnimatedEmojiMessageClicked(UpdateAnimatedEmojiMessageClicked),
AnimationSearchParameters(UpdateAnimationSearchParameters),
AuthorizationState(UpdateAuthorizationState),
BasicGroup(UpdateBasicGroup),
BasicGroupFullInfo(UpdateBasicGroupFullInfo),
Call(UpdateCall),
ChatAction(UpdateChatAction),
ChatActionBar(UpdateChatActionBar),
ChatDefaultDisableNotification(UpdateChatDefaultDisableNotification),
ChatDraftMessage(UpdateChatDraftMessage),
ChatFilters(UpdateChatFilters),
ChatHasProtectedContent(UpdateChatHasProtectedContent),
ChatHasScheduledMessages(UpdateChatHasScheduledMessages),
ChatIsBlocked(UpdateChatIsBlocked),
ChatIsMarkedAsUnread(UpdateChatIsMarkedAsUnread),
ChatLastMessage(UpdateChatLastMessage),
ChatMember(UpdateChatMember),
ChatMessageSender(UpdateChatMessageSender),
ChatMessageTtl(UpdateChatMessageTtl),
ChatNotificationSettings(UpdateChatNotificationSettings),
ChatOnlineMemberCount(UpdateChatOnlineMemberCount),
ChatPendingJoinRequests(UpdateChatPendingJoinRequests),
ChatPermissions(UpdateChatPermissions),
ChatPhoto(UpdateChatPhoto),
ChatPosition(UpdateChatPosition),
ChatReadInbox(UpdateChatReadInbox),
ChatReadOutbox(UpdateChatReadOutbox),
ChatReplyMarkup(UpdateChatReplyMarkup),
ChatTheme(UpdateChatTheme),
ChatThemes(UpdateChatThemes),
ChatTitle(UpdateChatTitle),
ChatUnreadMentionCount(UpdateChatUnreadMentionCount),
ChatVideoChat(UpdateChatVideoChat),
ConnectionState(UpdateConnectionState),
DeleteMessages(UpdateDeleteMessages),
DiceEmojis(UpdateDiceEmojis),
FavoriteStickers(UpdateFavoriteStickers),
File(UpdateFile),
FileGenerationStart(UpdateFileGenerationStart),
FileGenerationStop(UpdateFileGenerationStop),
GroupCall(UpdateGroupCall),
GroupCallParticipant(UpdateGroupCallParticipant),
HavePendingNotifications(UpdateHavePendingNotifications),
InstalledStickerSets(UpdateInstalledStickerSets),
LanguagePackStrings(UpdateLanguagePackStrings),
MessageContent(UpdateMessageContent),
MessageContentOpened(UpdateMessageContentOpened),
MessageEdited(UpdateMessageEdited),
MessageInteractionInfo(UpdateMessageInteractionInfo),
MessageIsPinned(UpdateMessageIsPinned),
MessageLiveLocationViewed(UpdateMessageLiveLocationViewed),
MessageMentionRead(UpdateMessageMentionRead),
MessageSendAcknowledged(UpdateMessageSendAcknowledged),
MessageSendFailed(UpdateMessageSendFailed),
MessageSendSucceeded(UpdateMessageSendSucceeded),
NewCallSignalingData(UpdateNewCallSignalingData),
NewCallbackQuery(UpdateNewCallbackQuery),
NewChat(Box<UpdateNewChat>),
NewChatJoinRequest(UpdateNewChatJoinRequest),
NewChosenInlineResult(UpdateNewChosenInlineResult),
NewCustomEvent(UpdateNewCustomEvent),
NewCustomQuery(UpdateNewCustomQuery),
NewInlineCallbackQuery(UpdateNewInlineCallbackQuery),
NewInlineQuery(UpdateNewInlineQuery),
NewMessage(UpdateNewMessage),
NewPreCheckoutQuery(UpdateNewPreCheckoutQuery),
NewShippingQuery(UpdateNewShippingQuery),
Notification(UpdateNotification),
NotificationGroup(UpdateNotificationGroup),
Option(UpdateOption),
Poll(UpdatePoll),
PollAnswer(UpdatePollAnswer),
RecentStickers(UpdateRecentStickers),
SavedAnimations(UpdateSavedAnimations),
ScopeNotificationSettings(UpdateScopeNotificationSettings),
SecretChat(UpdateSecretChat),
SelectedBackground(UpdateSelectedBackground),
ServiceNotification(UpdateServiceNotification),
StickerSet(UpdateStickerSet),
SuggestedActions(UpdateSuggestedActions),
Supergroup(UpdateSupergroup),
SupergroupFullInfo(UpdateSupergroupFullInfo),
TermsOfService(UpdateTermsOfService),
TrendingStickerSets(UpdateTrendingStickerSets),
UnreadChatCount(UpdateUnreadChatCount),
UnreadMessageCount(UpdateUnreadMessageCount),
User(UpdateUser),
UserFullInfo(UpdateUserFullInfo),
UserPrivacySettingRules(UpdateUserPrivacySettingRules),
UserStatus(UpdateUserStatus),
UsersNearby(UpdateUsersNearby),
// some variants omitted
}
Expand description
Contains notifications about data changes
Variants§
TestUseUpdate(TestUseUpdate)
Does nothing and ensures that the Update object is used; for testing only. This is an offline method. Can be called before authorization
ActiveNotifications(UpdateActiveNotifications)
Contains active notifications that was shown on previous application launches. This update is sent only if the message database is used. In that case it comes once before any updateNotification and updateNotificationGroup update
AnimatedEmojiMessageClicked(UpdateAnimatedEmojiMessageClicked)
Some animated emoji message was clicked and a big animated sticker must be played if the message is visible on the screen. chatActionWatchingAnimations with the text of the message needs to be sent if the sticker is played
AnimationSearchParameters(UpdateAnimationSearchParameters)
The parameters of animation search through GetOption(“animation_search_bot_username”) bot has changed
AuthorizationState(UpdateAuthorizationState)
The user authorization state has changed
BasicGroup(UpdateBasicGroup)
Some data of a basic group has changed. This update is guaranteed to come before the basic group identifier is returned to the application
BasicGroupFullInfo(UpdateBasicGroupFullInfo)
Some data in basicGroupFullInfo has been changed
Call(UpdateCall)
New call was created or information about a call was updated
ChatAction(UpdateChatAction)
A message sender activity in the chat has changed
ChatActionBar(UpdateChatActionBar)
The chat action bar was changed
ChatDefaultDisableNotification(UpdateChatDefaultDisableNotification)
The value of the default disable_notification parameter, used when a message is sent to the chat, was changed
ChatDraftMessage(UpdateChatDraftMessage)
A chat draft has changed. Be aware that the update may come in the currently opened chat but with old content of the draft. If the user has changed the content of the draft, this update mustn’t be applied
ChatFilters(UpdateChatFilters)
The list of chat filters or a chat filter has changed
ChatHasProtectedContent(UpdateChatHasProtectedContent)
A chat content was allowed or restricted for saving
ChatHasScheduledMessages(UpdateChatHasScheduledMessages)
A chat’s has_scheduled_messages field has changed
ChatIsBlocked(UpdateChatIsBlocked)
A chat was blocked or unblocked
ChatIsMarkedAsUnread(UpdateChatIsMarkedAsUnread)
A chat was marked as unread or was read
ChatLastMessage(UpdateChatLastMessage)
The last message of a chat was changed. If last_message is null, then the last message in the chat became unknown. Some new unknown messages might be added to the chat in this case
ChatMember(UpdateChatMember)
User rights changed in a chat; for bots only
ChatMessageSender(UpdateChatMessageSender)
The message sender that is selected to send messages in a chat has changed
ChatMessageTtl(UpdateChatMessageTtl)
The message Time To Live setting for a chat was changed
ChatNotificationSettings(UpdateChatNotificationSettings)
Notification settings for a chat were changed
ChatOnlineMemberCount(UpdateChatOnlineMemberCount)
The number of online group members has changed. This update with non-zero count is sent only for currently opened chats. There is no guarantee that it will be sent just after the count has changed
ChatPendingJoinRequests(UpdateChatPendingJoinRequests)
The chat pending join requests were changed
ChatPermissions(UpdateChatPermissions)
Chat permissions was changed
ChatPhoto(UpdateChatPhoto)
A chat photo was changed
ChatPosition(UpdateChatPosition)
The position of a chat in a chat list has changed. Instead of this update updateChatLastMessage or updateChatDraftMessage might be sent
ChatReadInbox(UpdateChatReadInbox)
Incoming messages were read or the number of unread messages has been changed
ChatReadOutbox(UpdateChatReadOutbox)
Outgoing messages were read
ChatReplyMarkup(UpdateChatReplyMarkup)
The default chat reply markup was changed. Can occur because new messages with reply markup were received or because an old reply markup was hidden by the user
ChatTheme(UpdateChatTheme)
The chat theme was changed
ChatThemes(UpdateChatThemes)
The list of available chat themes has changed
ChatTitle(UpdateChatTitle)
The title of a chat was changed
ChatUnreadMentionCount(UpdateChatUnreadMentionCount)
The chat unread_mention_count has changed
ChatVideoChat(UpdateChatVideoChat)
A chat video chat state has changed
ConnectionState(UpdateConnectionState)
The connection state has changed. This update must be used only to show a human-readable description of the connection state
DeleteMessages(UpdateDeleteMessages)
Some messages were deleted
DiceEmojis(UpdateDiceEmojis)
The list of supported dice emojis has changed
FavoriteStickers(UpdateFavoriteStickers)
The list of favorite stickers was updated
File(UpdateFile)
Information about a file was updated
FileGenerationStart(UpdateFileGenerationStart)
The file generation process needs to be started by the application
FileGenerationStop(UpdateFileGenerationStop)
File generation is no longer needed
GroupCall(UpdateGroupCall)
Information about a group call was updated
GroupCallParticipant(UpdateGroupCallParticipant)
Information about a group call participant was changed. The updates are sent only after the group call is received through getGroupCall and only if the call is joined or being joined
HavePendingNotifications(UpdateHavePendingNotifications)
Describes whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications
InstalledStickerSets(UpdateInstalledStickerSets)
The list of installed sticker sets was updated
LanguagePackStrings(UpdateLanguagePackStrings)
Some language pack strings have been updated
MessageContent(UpdateMessageContent)
The message content has changed
MessageContentOpened(UpdateMessageContentOpened)
The message content was opened. Updates voice note messages to “listened”, video note messages to “viewed” and starts the TTL timer for self-destructing messages
MessageEdited(UpdateMessageEdited)
A message was edited. Changes in the message content will come in a separate updateMessageContent
MessageInteractionInfo(UpdateMessageInteractionInfo)
The information about interactions with a message has changed
MessageIsPinned(UpdateMessageIsPinned)
The message pinned state was changed
MessageLiveLocationViewed(UpdateMessageLiveLocationViewed)
A message with a live location was viewed. When the update is received, the application is supposed to update the live location
MessageMentionRead(UpdateMessageMentionRead)
A message with an unread mention was read
MessageSendAcknowledged(UpdateMessageSendAcknowledged)
A request to send a message has reached the Telegram server. This doesn’t mean that the message will be sent successfully or even that the send message request will be processed. This update will be sent only if the option “use_quick_ack” is set to true. This update may be sent multiple times for the same message
MessageSendFailed(UpdateMessageSendFailed)
A message failed to send. Be aware that some messages being sent can be irrecoverably deleted, in which case updateDeleteMessages will be received instead of this update
MessageSendSucceeded(UpdateMessageSendSucceeded)
A message has been successfully sent
NewCallSignalingData(UpdateNewCallSignalingData)
New call signaling data arrived
NewCallbackQuery(UpdateNewCallbackQuery)
A new incoming callback query; for bots only
NewChat(Box<UpdateNewChat>)
A new chat has been loaded/created. This update is guaranteed to come before the chat identifier is returned to the application. The chat field changes will be reported through separate updates
NewChatJoinRequest(UpdateNewChatJoinRequest)
A user sent a join request to a chat; for bots only
NewChosenInlineResult(UpdateNewChosenInlineResult)
The user has chosen a result of an inline query; for bots only
NewCustomEvent(UpdateNewCustomEvent)
A new incoming event; for bots only
NewCustomQuery(UpdateNewCustomQuery)
A new incoming query; for bots only
NewInlineCallbackQuery(UpdateNewInlineCallbackQuery)
A new incoming callback query from a message sent via a bot; for bots only
NewInlineQuery(UpdateNewInlineQuery)
A new incoming inline query; for bots only
NewMessage(UpdateNewMessage)
A new message was received; can also be an outgoing message
NewPreCheckoutQuery(UpdateNewPreCheckoutQuery)
A new incoming pre-checkout query; for bots only. Contains full information about a checkout
NewShippingQuery(UpdateNewShippingQuery)
A new incoming shipping query; for bots only. Only for invoices with flexible price
Notification(UpdateNotification)
A notification was changed
NotificationGroup(UpdateNotificationGroup)
A list of active notifications in a notification group has changed
Option(UpdateOption)
An option changed its value
Poll(UpdatePoll)
A poll was updated; for bots only
PollAnswer(UpdatePollAnswer)
A user changed the answer to a poll; for bots only
RecentStickers(UpdateRecentStickers)
The list of recently used stickers was updated
SavedAnimations(UpdateSavedAnimations)
The list of saved animations was updated
ScopeNotificationSettings(UpdateScopeNotificationSettings)
Notification settings for some type of chats were updated
SecretChat(UpdateSecretChat)
Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned to the application
SelectedBackground(UpdateSelectedBackground)
The selected background has changed
ServiceNotification(UpdateServiceNotification)
A service notification from the server was received. Upon receiving this the application must show a popup with the content of the notification
StickerSet(UpdateStickerSet)
A sticker set has changed
SuggestedActions(UpdateSuggestedActions)
The list of suggested to the user actions has changed
Supergroup(UpdateSupergroup)
Some data of a supergroup or a channel has changed. This update is guaranteed to come before the supergroup identifier is returned to the application
SupergroupFullInfo(UpdateSupergroupFullInfo)
Some data in supergroupFullInfo has been changed
TermsOfService(UpdateTermsOfService)
New terms of service must be accepted by the user. If the terms of service are declined, then the deleteAccount method must be called with the reason “Decline ToS update”
TrendingStickerSets(UpdateTrendingStickerSets)
The list of trending sticker sets was updated or some of them were viewed
UnreadChatCount(UpdateUnreadChatCount)
Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if the message database is used
UnreadMessageCount(UpdateUnreadMessageCount)
Number of unread messages in a chat list has changed. This update is sent only if the message database is used
User(UpdateUser)
Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the application
UserFullInfo(UpdateUserFullInfo)
Some data in userFullInfo has been changed
UserPrivacySettingRules(UpdateUserPrivacySettingRules)
Some privacy setting rules have been changed
UserStatus(UpdateUserStatus)
The user went online or offline
UsersNearby(UpdateUsersNearby)
The list of users nearby has changed. The update is guaranteed to be sent only 60 seconds after a successful searchChatsNearby request