Trait tbot::contexts::fields::Message

source ·
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§

ID of the message.

The author of the message.

The timestamp of the message.

The chat to which the message was sent.