From cef553eeae08e2adabca4c7d90bc7406e3e890d3 Mon Sep 17 00:00:00 2001 From: Akshett Rai Jindal Date: Sat, 24 Aug 2024 13:16:46 +0530 Subject: [PATCH] Add serde default to `can_connect_to_business` in `Me` --- crates/teloxide-core/src/types/me.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/teloxide-core/src/types/me.rs b/crates/teloxide-core/src/types/me.rs index d0cb8287..f404d438 100644 --- a/crates/teloxide-core/src/types/me.rs +++ b/crates/teloxide-core/src/types/me.rs @@ -26,6 +26,7 @@ pub struct Me { /// `true`, if the bot can be connected to a Telegram Business account to /// receive its messages. + #[serde(default)] pub can_connect_to_business: bool, }