From 25666a301cc678bdca853d7b2c7ff1d9fffa7887 Mon Sep 17 00:00:00 2001 From: Andrey Brusnik Date: Tue, 30 Jul 2024 17:30:16 +0400 Subject: [PATCH] Use `CountryCode` instead of `String` in `Giveaway` struct --- crates/teloxide-core/src/types/giveaway.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/teloxide-core/src/types/giveaway.rs b/crates/teloxide-core/src/types/giveaway.rs index 6865bf2a..91306106 100644 --- a/crates/teloxide-core/src/types/giveaway.rs +++ b/crates/teloxide-core/src/types/giveaway.rs @@ -1,7 +1,7 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; -use crate::types::Chat; +use crate::types::{Chat, CountryCode}; /// This object represents a message about a scheduled giveaway. #[serde_with::skip_serializing_none] @@ -37,7 +37,7 @@ pub struct Giveaway { /// empty, then all users can participate in the giveaway. Users with a /// phone number that was bought on Fragment can always participate in /// giveaways. - pub country_codes: Option>, + pub country_codes: Option>, /// The number of months the Telegram Premium subscription won from the /// giveaway will be active for