Expand description

Represents a filter for message search results

Variants

Animation(SearchMessagesFilterAnimation)

Returns only animation messages

Audio(SearchMessagesFilterAudio)

Returns only audio messages

ChatPhoto(SearchMessagesFilterChatPhoto)

Returns only messages containing chat photos

Document(SearchMessagesFilterDocument)

Returns only document messages

Empty(SearchMessagesFilterEmpty)

Returns all found messages, no filter is applied

FailedToSend(SearchMessagesFilterFailedToSend)

Returns only failed to send messages. This filter can be used only if the message database is used

Mention(SearchMessagesFilterMention)

Returns only messages with mentions of the current user, or messages that are replies to their messages

Photo(SearchMessagesFilterPhoto)

Returns only photo messages

PhotoAndVideo(SearchMessagesFilterPhotoAndVideo)

Returns only photo and video messages

Pinned(SearchMessagesFilterPinned)

Returns only pinned messages

UnreadMention(SearchMessagesFilterUnreadMention)

Returns only messages with unread mentions of the current user, or messages that are replies to their messages. When using this filter the results can’t be additionally filtered by a query, a message thread or by the sending user

Url(SearchMessagesFilterUrl)

Returns only messages containing URLs

Video(SearchMessagesFilterVideo)

Returns only video messages

VideoNote(SearchMessagesFilterVideoNote)

Returns only video note messages

VoiceAndVideoNote(SearchMessagesFilterVoiceAndVideoNote)

Returns only voice and video note messages

VoiceNote(SearchMessagesFilterVoiceNote)

Returns only voice note messages

Implementations

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Return td type to json string

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.