Skip to content

Commit

Permalink
Bot API 7.8 (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 authored Aug 8, 2024
1 parent 6a73cd8 commit bc163ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/api_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,

#[builder(setter(into))]
pub chat_id: ChatId,

Expand All @@ -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<String>,

#[builder(setter(into))]
pub chat_id: ChatId,

Expand Down
4 changes: 4 additions & 0 deletions src/objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool>,

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

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Builder)]
Expand Down

0 comments on commit bc163ba

Please sign in to comment.