From e60f4f3af60e9637292e1573ffd712855cadc5e9 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Fri, 26 Apr 2024 12:02:41 +0300 Subject: [PATCH] fix: `message_id` is optional in `ExternalReplyInfo` (#166) * fix ExternalReplyInfo decoding fixes https://github.com/ayrat555/frankenstein/issues/164#issuecomment-2078813442 * fix chat --- src/objects.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/objects.rs b/src/objects.rs index beb360a..17d7f5c 100644 --- a/src/objects.rs +++ b/src/objects.rs @@ -1012,9 +1012,11 @@ pub struct ExternalReplyInfo { #[serde(skip_serializing_if = "Option::is_none")] #[builder(setter(into, strip_option), default)] - pub chain: Option, + pub chat: Option, - pub message_id: i32, + #[serde(skip_serializing_if = "Option::is_none")] + #[builder(setter(into, strip_option), default)] + pub message_id: Option, #[serde(skip_serializing_if = "Option::is_none")] #[builder(setter(into, strip_option), default)]