pub struct SearchSecretMessages {
pub chat_id: i64,
pub query: String,
pub from_search_id: i64,
pub limit: i32,
pub filter: SearchMessagesFilter,
}
Expand description
Searches for messages in secret chats. Returns the results in reverse chronological order. For optimal performance the number of returned messages is chosen by the library
Fields§
§chat_id: i64
Identifier of the chat in which to search. Specify 0 to search in all secret chats
query: String
Query to search for. If empty, searchChatMessages should be used instead
from_search_id: i64
The identifier from the result of a previous request, use 0 to get results from the last message
limit: i32
Maximum number of messages to be returned; up to 100. Fewer messages may be returned than specified by the limit, even if the end of the message history has not been reached
filter: SearchMessagesFilter
A filter for the content of messages in the search results
Trait Implementations§
Source§impl Clone for SearchSecretMessages
impl Clone for SearchSecretMessages
Source§fn clone(&self) -> SearchSecretMessages
fn clone(&self) -> SearchSecretMessages
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SearchSecretMessages
impl Debug for SearchSecretMessages
Source§impl<'de> Deserialize<'de> for SearchSecretMessages
impl<'de> Deserialize<'de> for SearchSecretMessages
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for SearchSecretMessages
impl Method for SearchSecretMessages
Auto Trait Implementations§
impl Freeze for SearchSecretMessages
impl RefUnwindSafe for SearchSecretMessages
impl Send for SearchSecretMessages
impl Sync for SearchSecretMessages
impl Unpin for SearchSecretMessages
impl UnwindSafe for SearchSecretMessages
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more