From f4fc11a011d2cabbd4de907a0de3e1b92d566711 Mon Sep 17 00:00:00 2001 From: Akshett Rai Jindal Date: Sat, 24 Aug 2024 16:02:42 +0530 Subject: [PATCH] Change `id` type in `BusinessConnection` to `BusinessConnectionId` --- crates/teloxide-core/src/types/business_connection.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/teloxide-core/src/types/business_connection.rs b/crates/teloxide-core/src/types/business_connection.rs index 69ef1f9b..5b620d9b 100644 --- a/crates/teloxide-core/src/types/business_connection.rs +++ b/crates/teloxide-core/src/types/business_connection.rs @@ -1,13 +1,13 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; -use crate::types::{User, UserId}; +use crate::types::{BusinessConnectionId, User, UserId}; /// Describes the connection of the bot with a business account. #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BusinessConnection { /// Unique identifier of the business connection - pub id: String, + pub id: BusinessConnectionId, /// Business account user that created the business connection pub user: User,