From bc163ba44b17cc32b28a8be1dd95c6234e6765db Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Thu, 8 Aug 2024 19:33:07 +0300 Subject: [PATCH] Bot API 7.8 (#186) --- src/api_params.rs | 8 ++++++++ src/objects.rs | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/src/api_params.rs b/src/api_params.rs index 07e80cd..01b7839 100644 --- a/src/api_params.rs +++ b/src/api_params.rs @@ -1617,6 +1617,10 @@ pub struct SetChatDescriptionParams { #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Builder)] pub struct PinChatMessageParams { + #[serde(skip_serializing_if = "Option::is_none")] + #[builder(setter(into, strip_option), default)] + pub business_connection_id: Option, + #[builder(setter(into))] pub chat_id: ChatId, @@ -1629,6 +1633,10 @@ pub struct PinChatMessageParams { #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Builder)] pub struct UnpinChatMessageParams { + #[serde(skip_serializing_if = "Option::is_none")] + #[builder(setter(into, strip_option), default)] + pub business_connection_id: Option, + #[builder(setter(into))] pub chat_id: ChatId, diff --git a/src/objects.rs b/src/objects.rs index 83d3678..7869e57 100644 --- a/src/objects.rs +++ b/src/objects.rs @@ -487,6 +487,10 @@ pub struct User { #[serde(skip_serializing_if = "Option::is_none")] #[builder(setter(into, strip_option), default)] pub can_connect_to_business: Option, + + #[serde(skip_serializing_if = "Option::is_none")] + #[builder(setter(into, strip_option), default)] + pub has_main_web_app: Option, } #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Builder)]