[−][src]Enum rust_tdlib::types::Update
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
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 client
BasicGroupFullInfo(UpdateBasicGroupFullInfo)
Some data from basicGroupFullInfo has been changed
Call(UpdateCall)
New call was created or information about a call was updated
ChatActionBar(UpdateChatActionBar)
The chat action bar was changed
ChatChatList(UpdateChatChatList)
The list to which the chat belongs was changed. This update is guaranteed to be sent only when chat.order == 0 and the current or the new chat list is null
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 shouldn't be applied
ChatHasScheduledMessages(UpdateChatHasScheduledMessages)
A chat's has_scheduled_messages field has changed
ChatIsMarkedAsUnread(UpdateChatIsMarkedAsUnread)
A chat was marked as unread or was read
ChatIsPinned(UpdateChatIsPinned)
A chat was pinned or unpinned
ChatIsSponsored(UpdateChatIsSponsored)
A chat's is_sponsored field has changed
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
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
ChatOrder(UpdateChatOrder)
The order of the chat in the chat list has changed. Instead of this update updateChatLastMessage, updateChatIsPinned, updateChatDraftMessage, or updateChatIsSponsored might be sent
ChatPermissions(UpdateChatPermissions)
Chat permissions was changed
ChatPhoto(UpdateChatPhoto)
A chat photo was changed
ChatPinnedMessage(UpdateChatPinnedMessage)
The chat pinned message was changed
ChatReadInbox(UpdateChatReadInbox)
Incoming messages were read or 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
ChatTitle(UpdateChatTitle)
The title of a chat was changed
ChatUnreadMentionCount(UpdateChatUnreadMentionCount)
The chat unread_mention_count has changed
ConnectionState(UpdateConnectionState)
The connection state has changed
DeleteMessages(UpdateDeleteMessages)
Some messages were deleted
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 client
FileGenerationStop(UpdateFileGenerationStop)
File generation is no longer needed
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
MessageLiveLocationViewed(UpdateMessageLiveLocationViewed)
A message with a live location was viewed. When the update is received, the client 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
MessageViews(UpdateMessageViews)
The view count of the message has changed
NewCallbackQuery(UpdateNewCallbackQuery)
A new incoming callback query; for bots only
NewChat(UpdateNewChat)
A new chat has been loaded/created. This update is guaranteed to come before the chat identifier is returned to the client. The chat field changes will be reported through separate updates
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 client
SelectedBackground(UpdateSelectedBackground)
The selected background has changed
ServiceNotification(UpdateServiceNotification)
Service notification from the server. Upon receiving this the client must show a popup with the content of the notification
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 client
SupergroupFullInfo(UpdateSupergroupFullInfo)
Some data from 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 should 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 client
UserChatAction(UpdateUserChatAction)
User activity in the chat has changed
UserFullInfo(UpdateUserFullInfo)
Some data from userFullInfo has been changed
UserPrivacySettingRules(UpdateUserPrivacySettingRules)
Some privacy setting rules have been changed
UserStatus(UpdateUserStatus)
The user went online or offline
UsersNearby(UpdateUsersNearby)
List of users nearby has changed. The update is sent only 60 seconds after a successful searchChatsNearby request
Implementations
impl Update
[src]
Trait Implementations
impl AsRef<Update> for Update
[src]
impl Clone for Update
[src]
impl Debug for Update
[src]
impl Default for Update
[src]
impl<'de> Deserialize<'de> for Update
[src]
pub fn deserialize<D>(deserializer: D) -> Result<Update, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for Update
[src]
impl Serialize for Update
[src]
Auto Trait Implementations
impl RefUnwindSafe for Update
[src]
impl Send for Update
[src]
impl Sync for Update
[src]
impl Unpin for Update
[src]
impl UnwindSafe for Update
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,