mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Add missing #[serde(flatten)] to the MessageId
This commit is contained in:
parent
5c88b0b724
commit
ddb991712f
3 changed files with 3 additions and 0 deletions
|
@ -9,5 +9,6 @@ pub struct InaccessibleMessage {
|
|||
/// Chat the message belonged to
|
||||
pub chat: Chat,
|
||||
/// Unique message identifier inside the chat
|
||||
#[serde(flatten)]
|
||||
pub message_id: MessageId,
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@ pub enum MessageOrigin {
|
|||
/// Channel chat to which the message was originally sent
|
||||
chat: Chat,
|
||||
/// Unique message identifier inside the chat
|
||||
#[serde(flatten)]
|
||||
message_id: MessageId,
|
||||
/// Signature of the original post author
|
||||
author_signature: Option<String>,
|
||||
|
|
|
@ -8,6 +8,7 @@ use crate::types::{MessageId, Recipient};
|
|||
pub struct ReplyParameters {
|
||||
/// Identifier of the message that will be replied to in the current chat,
|
||||
/// or in the chat _chat\_id_ if it is specified
|
||||
#[serde(flatten)]
|
||||
pub message_id: MessageId,
|
||||
/// If the message to be replied to is from a different chat, unique
|
||||
/// identifier for the chat or username of the channel (in the format
|
||||
|
|
Loading…
Reference in a new issue