Add missing #[serde(flatten)] to the MessageId

This commit is contained in:
Сырцев Вадим Игоревич 2024-07-20 22:22:55 +03:00 committed by Andrey Brusnik
parent 5c88b0b724
commit ddb991712f
No known key found for this signature in database
GPG key ID: D33232F28CFF442C
3 changed files with 3 additions and 0 deletions

View file

@ -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,
}

View file

@ -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>,

View file

@ -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