Expand description
A struct containing a message’s and its chat’s IDs.
Fields§
§chat_id: Id
The ID of the message’s chat.
message_id: Id
The ID of the message.
Implementations§
source§impl MessageId
impl MessageId
sourcepub fn from_context<C>(context: &C) -> Selfwhere
C: Message,
pub fn from_context<C>(context: &C) -> Selfwhere
C: Message,
Constructs a MessageId
from the provided context.
sourcepub const fn from_message(message: &Message) -> Self
pub const fn from_message(message: &Message) -> Self
Constructs a MessageId
from the provided message.
Trait Implementations§
source§impl<'de> Deserialize<'de> for MessageId
impl<'de> Deserialize<'de> for MessageId
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more