From bcaecd1585babc3789449f2d09e60a7c1029564b Mon Sep 17 00:00:00 2001 From: Desiders Date: Mon, 15 Jan 2024 18:22:21 +0300 Subject: [PATCH] Change type --- .../teloxide-core/src/types/inline_query_result_audio.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/teloxide-core/src/types/inline_query_result_audio.rs b/crates/teloxide-core/src/types/inline_query_result_audio.rs index 7fa9e988..89a3a77f 100644 --- a/crates/teloxide-core/src/types/inline_query_result_audio.rs +++ b/crates/teloxide-core/src/types/inline_query_result_audio.rs @@ -1,6 +1,6 @@ use serde::{Deserialize, Serialize}; -use crate::types::{InlineKeyboardMarkup, InputMessageContent, MessageEntity, ParseMode}; +use crate::types::{InlineKeyboardMarkup, InputMessageContent, MessageEntity, ParseMode, Seconds}; /// Represents a link to an MP3 audio file. By default, this audio file will be /// sent by the user. @@ -40,7 +40,7 @@ pub struct InlineQueryResultAudio { pub performer: Option, /// Audio duration in seconds. - pub audio_duration: Option, + pub audio_duration: Option, /// [Inline keyboard] attached to the message. /// @@ -123,10 +123,7 @@ impl InlineQueryResultAudio { self } - pub fn audio_duration(mut self, val: S) -> Self - where - S: Into, - { + pub fn audio_duration(mut self, val: Seconds) -> Self { self.audio_duration = Some(val.into()); self }