Enum rust_tdlib::types::Update[][src]

pub enum Update {
Show variants TestUseUpdate(TestUseUpdate), ActiveNotifications(UpdateActiveNotifications), AnimationSearchParameters(UpdateAnimationSearchParameters), AuthorizationState(UpdateAuthorizationState), BasicGroup(UpdateBasicGroup), BasicGroupFullInfo(UpdateBasicGroupFullInfo), Call(UpdateCall), ChatActionBar(UpdateChatActionBar), ChatDefaultDisableNotification(UpdateChatDefaultDisableNotification), ChatDraftMessage(UpdateChatDraftMessage), ChatFilters(UpdateChatFilters), ChatHasScheduledMessages(UpdateChatHasScheduledMessages), ChatIsBlocked(UpdateChatIsBlocked), ChatIsMarkedAsUnread(UpdateChatIsMarkedAsUnread), ChatLastMessage(UpdateChatLastMessage), ChatNotificationSettings(UpdateChatNotificationSettings), ChatOnlineMemberCount(UpdateChatOnlineMemberCount), ChatPermissions(UpdateChatPermissions), ChatPhoto(UpdateChatPhoto), ChatPosition(UpdateChatPosition), ChatReadInbox(UpdateChatReadInbox), ChatReadOutbox(UpdateChatReadOutbox), ChatReplyMarkup(UpdateChatReplyMarkup), ChatTitle(UpdateChatTitle), ChatUnreadMentionCount(UpdateChatUnreadMentionCount), ConnectionState(UpdateConnectionState), DeleteMessages(UpdateDeleteMessages), DiceEmojis(UpdateDiceEmojis), FavoriteStickers(UpdateFavoriteStickers), File(UpdateFile), FileGenerationStart(UpdateFileGenerationStart), FileGenerationStop(UpdateFileGenerationStop), 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(UpdateNewChat), 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), UserChatAction(UpdateUserChatAction), UserFullInfo(UpdateUserFullInfo), UserPrivacySettingRules(UpdateUserPrivacySettingRules), UserStatus(UpdateUserStatus), UsersNearby(UpdateUsersNearby), // some variants omitted
}
Expand description

Contains notifications about data changes

Variants

TestUseUpdate(TestUseUpdate)
Expand description

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)
Expand description

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

AnimationSearchParameters(UpdateAnimationSearchParameters)
Expand description

The parameters of animation search through GetOption(“animation_search_bot_username”) bot has changed

AuthorizationState(UpdateAuthorizationState)
Expand description

The user authorization state has changed

BasicGroup(UpdateBasicGroup)
Expand description

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)
Expand description

Some data from basicGroupFullInfo has been changed

Expand description

New call was created or information about a call was updated

ChatActionBar(UpdateChatActionBar)
Expand description

The chat action bar was changed

ChatDefaultDisableNotification(UpdateChatDefaultDisableNotification)
Expand description

The value of the default disable_notification parameter, used when a message is sent to the chat, was changed

ChatDraftMessage(UpdateChatDraftMessage)
Expand description

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

ChatFilters(UpdateChatFilters)
Expand description

The list of chat filters or a chat filter has changed

ChatHasScheduledMessages(UpdateChatHasScheduledMessages)
Expand description

A chat’s has_scheduled_messages field has changed

ChatIsBlocked(UpdateChatIsBlocked)
Expand description

A chat was blocked or unblocked

ChatIsMarkedAsUnread(UpdateChatIsMarkedAsUnread)
Expand description

A chat was marked as unread or was read

ChatLastMessage(UpdateChatLastMessage)
Expand description

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)
Expand description

Notification settings for a chat were changed

ChatOnlineMemberCount(UpdateChatOnlineMemberCount)
Expand description

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

ChatPermissions(UpdateChatPermissions)
Expand description

Chat permissions was changed

ChatPhoto(UpdateChatPhoto)
Expand description

A chat photo was changed

ChatPosition(UpdateChatPosition)
Expand description

The position of a chat in a chat list has changed. Instead of this update updateChatLastMessage or updateChatDraftMessage might be sent

ChatReadInbox(UpdateChatReadInbox)
Expand description

Incoming messages were read or number of unread messages has been changed

ChatReadOutbox(UpdateChatReadOutbox)
Expand description

Outgoing messages were read

ChatReplyMarkup(UpdateChatReplyMarkup)
Expand description

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)
Expand description

The title of a chat was changed

ChatUnreadMentionCount(UpdateChatUnreadMentionCount)
Expand description

The chat unread_mention_count has changed

ConnectionState(UpdateConnectionState)
Expand description

The connection state has changed. This update must be used only to show a human-readable description of the connection state

DeleteMessages(UpdateDeleteMessages)
Expand description

Some messages were deleted

DiceEmojis(UpdateDiceEmojis)
Expand description

The list of supported dice emojis has changed

FavoriteStickers(UpdateFavoriteStickers)
Expand description

The list of favorite stickers was updated

Expand description

Information about a file was updated

FileGenerationStart(UpdateFileGenerationStart)
Expand description

The file generation process needs to be started by the application

FileGenerationStop(UpdateFileGenerationStop)
Expand description

File generation is no longer needed

HavePendingNotifications(UpdateHavePendingNotifications)
Expand description

Describes whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications

InstalledStickerSets(UpdateInstalledStickerSets)
Expand description

The list of installed sticker sets was updated

LanguagePackStrings(UpdateLanguagePackStrings)
Expand description

Some language pack strings have been updated

MessageContent(UpdateMessageContent)
Expand description

The message content has changed

MessageContentOpened(UpdateMessageContentOpened)
Expand description

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)
Expand description

A message was edited. Changes in the message content will come in a separate updateMessageContent

MessageInteractionInfo(UpdateMessageInteractionInfo)
Expand description

The information about interactions with a message has changed

MessageIsPinned(UpdateMessageIsPinned)
Expand description

The message pinned state was changed

MessageLiveLocationViewed(UpdateMessageLiveLocationViewed)
Expand description

A message with a live location was viewed. When the update is received, the application is supposed to update the live location

MessageMentionRead(UpdateMessageMentionRead)
Expand description

A message with an unread mention was read

MessageSendAcknowledged(UpdateMessageSendAcknowledged)
Expand description

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)
Expand description

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)
Expand description

A message has been successfully sent

NewCallSignalingData(UpdateNewCallSignalingData)
Expand description

New call signaling data arrived

NewCallbackQuery(UpdateNewCallbackQuery)
Expand description

A new incoming callback query; for bots only

NewChat(UpdateNewChat)
Expand description

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

NewChosenInlineResult(UpdateNewChosenInlineResult)
Expand description

The user has chosen a result of an inline query; for bots only

NewCustomEvent(UpdateNewCustomEvent)
Expand description

A new incoming event; for bots only

NewCustomQuery(UpdateNewCustomQuery)
Expand description

A new incoming query; for bots only

NewInlineCallbackQuery(UpdateNewInlineCallbackQuery)
Expand description

A new incoming callback query from a message sent via a bot; for bots only

NewInlineQuery(UpdateNewInlineQuery)
Expand description

A new incoming inline query; for bots only

NewMessage(UpdateNewMessage)
Expand description

A new message was received; can also be an outgoing message

NewPreCheckoutQuery(UpdateNewPreCheckoutQuery)
Expand description

A new incoming pre-checkout query; for bots only. Contains full information about a checkout

NewShippingQuery(UpdateNewShippingQuery)
Expand description

A new incoming shipping query; for bots only. Only for invoices with flexible price

Notification(UpdateNotification)
Expand description

A notification was changed

NotificationGroup(UpdateNotificationGroup)
Expand description

A list of active notifications in a notification group has changed

Option(UpdateOption)
Expand description

An option changed its value

Expand description

A poll was updated; for bots only

PollAnswer(UpdatePollAnswer)
Expand description

A user changed the answer to a poll; for bots only

RecentStickers(UpdateRecentStickers)
Expand description

The list of recently used stickers was updated

SavedAnimations(UpdateSavedAnimations)
Expand description

The list of saved animations was updated

ScopeNotificationSettings(UpdateScopeNotificationSettings)
Expand description

Notification settings for some type of chats were updated

SecretChat(UpdateSecretChat)
Expand description

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)
Expand description

The selected background has changed

ServiceNotification(UpdateServiceNotification)
Expand description

Service notification from the server. Upon receiving this the application must show a popup with the content of the notification

StickerSet(UpdateStickerSet)
Expand description

A sticker set has changed

SuggestedActions(UpdateSuggestedActions)
Expand description

The list of suggested to the user actions has changed

Supergroup(UpdateSupergroup)
Expand description

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)
Expand description

Some data from supergroupFullInfo has been changed

TermsOfService(UpdateTermsOfService)
Expand description

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)
Expand description

The list of trending sticker sets was updated or some of them were viewed

UnreadChatCount(UpdateUnreadChatCount)
Expand description

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)
Expand description

Number of unread messages in a chat list has changed. This update is sent only if the message database is used

Expand description

Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the application

UserChatAction(UpdateUserChatAction)
Expand description

User activity in the chat has changed

UserFullInfo(UpdateUserFullInfo)
Expand description

Some data from userFullInfo has been changed

UserPrivacySettingRules(UpdateUserPrivacySettingRules)
Expand description

Some privacy setting rules have been changed

UserStatus(UpdateUserStatus)
Expand description

The user went online or offline

UsersNearby(UpdateUsersNearby)
Expand description

The list of users nearby has changed. The update is guaranteed to be sent only 60 seconds after a successful searchChatsNearby request

Implementations

impl Update[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

Trait Implementations

impl AsRef<Update> for Update[src]

fn as_ref(&self) -> &Update[src]

Performs the conversion.

impl Clone for Update[src]

fn clone(&self) -> Update[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Update[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for Update[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl<'de> Deserialize<'de> for Update[src]

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Update[src]

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
    __S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl RefUnwindSafe for Update

impl Send for Update

impl Sync for Update

impl Unpin for Update

impl UnwindSafe for Update

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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]

Performs the conversion.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]