pub struct SearchMessages {
pub query: String,
pub offset_date: i32,
pub offset_chat_id: i64,
pub offset_message_id: i64,
pub limit: i32,
}
Expand description
Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id)). For optimal performance the number of returned messages is chosen by the library
Fields§
§query: String
Query to search for
offset_date: i32
The date of the message starting from which the results should be fetched. Use 0 or any date in the future to get results from the last message
offset_chat_id: i64
The chat identifier of the last found message, or 0 for the first request
offset_message_id: i64
The message identifier of the last found message, or 0 for the first request
limit: i32
The 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
Trait Implementations§
Source§impl Clone for SearchMessages
impl Clone for SearchMessages
Source§fn clone(&self) -> SearchMessages
fn clone(&self) -> SearchMessages
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 SearchMessages
impl Debug for SearchMessages
Source§impl<'de> Deserialize<'de> for SearchMessages
impl<'de> Deserialize<'de> for SearchMessages
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 SearchMessages
impl Method for SearchMessages
Auto Trait Implementations§
impl Freeze for SearchMessages
impl RefUnwindSafe for SearchMessages
impl Send for SearchMessages
impl Sync for SearchMessages
impl Unpin for SearchMessages
impl UnwindSafe for SearchMessages
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