pub trait Message: Context {
// Required methods
fn message_id(&self) -> Id;
fn from(&self) -> Option<&User>;
fn date(&self) -> i64;
fn chat(&self) -> &Chat;
}
Expand description
A general trait for all message contexts.
Required Methods§
Sourcefn message_id(&self) -> Id
fn message_id(&self) -> Id
ID of the message.