pub struct Dialog {
pub raw: Dialog,
pub peer: Peer,
pub last_message: Option<Message>,
}Expand description
An entry in the list of “chats”.
All conversations with history, even if the history has been cleared, as long as the dialog itself has not been deleted, are present as dialogs.
Bot accounts do not have dialogs per-se and thus cannot fetch them.
Dialogs of users continue to exist even if the user has deleted their account. The same is true for small group chats, but not of large group chats and channels.
Fields§
§raw: Dialog§peer: Peer§last_message: Option<Message>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dialog
impl !RefUnwindSafe for Dialog
impl Send for Dialog
impl Sync for Dialog
impl Unpin for Dialog
impl UnsafeUnpin for Dialog
impl !UnwindSafe for Dialog
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