pub struct GetChatMessageCount {
pub chat_id: i64,
pub filter: SearchMessagesFilter,
pub return_local: bool,
}
Expand description
Returns approximate number of messages of the specified type in the chat
Fields§
§chat_id: i64
Identifier of the chat in which to count messages
filter: SearchMessagesFilter
Filter for message content; searchMessagesFilterEmpty is unsupported in this function
return_local: bool
If true, returns count that is available locally without sending network requests, returning -1 if the number of messages is unknown
Trait Implementations§
Source§impl Clone for GetChatMessageCount
impl Clone for GetChatMessageCount
Source§fn clone(&self) -> GetChatMessageCount
fn clone(&self) -> GetChatMessageCount
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 GetChatMessageCount
impl Debug for GetChatMessageCount
Source§impl<'de> Deserialize<'de> for GetChatMessageCount
impl<'de> Deserialize<'de> for GetChatMessageCount
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 GetChatMessageCount
impl Method for GetChatMessageCount
Auto Trait Implementations§
impl Freeze for GetChatMessageCount
impl RefUnwindSafe for GetChatMessageCount
impl Send for GetChatMessageCount
impl Sync for GetChatMessageCount
impl Unpin for GetChatMessageCount
impl UnwindSafe for GetChatMessageCount
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