Skip to content

Commit

Permalink
fix: message_id is optional in ExternalReplyInfo (#166)
Browse files Browse the repository at this point in the history
* fix ExternalReplyInfo decoding

fixes #164 (comment)

* fix chat
  • Loading branch information
ayrat555 authored Apr 26, 2024
1 parent f3b6f90 commit e60f4f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1012,9 +1012,11 @@ pub struct ExternalReplyInfo {

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(setter(into, strip_option), default)]
pub chain: Option<Chat>,
pub chat: Option<Chat>,

pub message_id: i32,
#[serde(skip_serializing_if = "Option::is_none")]
#[builder(setter(into, strip_option), default)]
pub message_id: Option<i32>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(setter(into, strip_option), default)]
Expand Down

0 comments on commit e60f4f3

Please sign in to comment.