pub trait Message: Context {
fn message_id(&self) -> Id;
fn from(&self) -> Option<&From>;
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.