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
|
/// Chat the message belonged to
|
||||||
pub chat: Chat,
|
pub chat: Chat,
|
||||||
/// Unique message identifier inside the chat
|
/// Unique message identifier inside the chat
|
||||||
|
#[serde(flatten)]
|
||||||
pub message_id: MessageId,
|
pub message_id: MessageId,
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,7 @@ pub enum MessageOrigin {
|
||||||
/// Channel chat to which the message was originally sent
|
/// Channel chat to which the message was originally sent
|
||||||
chat: Chat,
|
chat: Chat,
|
||||||
/// Unique message identifier inside the chat
|
/// Unique message identifier inside the chat
|
||||||
|
#[serde(flatten)]
|
||||||
message_id: MessageId,
|
message_id: MessageId,
|
||||||
/// Signature of the original post author
|
/// Signature of the original post author
|
||||||
author_signature: Option<String>,
|
author_signature: Option<String>,
|
||||||
|
|
|
@ -8,6 +8,7 @@ use crate::types::{MessageId, Recipient};
|
||||||
pub struct ReplyParameters {
|
pub struct ReplyParameters {
|
||||||
/// Identifier of the message that will be replied to in the current chat,
|
/// Identifier of the message that will be replied to in the current chat,
|
||||||
/// or in the chat _chat\_id_ if it is specified
|
/// or in the chat _chat\_id_ if it is specified
|
||||||
|
#[serde(flatten)]
|
||||||
pub message_id: MessageId,
|
pub message_id: MessageId,
|
||||||
/// If the message to be replied to is from a different chat, unique
|
/// 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
|
/// identifier for the chat or username of the channel (in the format
|
||||||
|
|
Loading…
Reference in a new issue