1 2 3 4 5 6 7 8 9 10 11
use crate::Client; use crate::errors::Result; use crate::raw::functions; impl Client { /// Deletes the account's drafts in every chat. pub async fn clear_all_drafts(&self) -> Result<()> { self.invoke(&functions::messages::ClearAllDrafts {}).await?; Ok(()) } }