mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Change type
This commit is contained in:
parent
d7f530bd6b
commit
bcaecd1585
1 changed files with 3 additions and 6 deletions
|
@ -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<String>,
|
||||
|
||||
/// Audio duration in seconds.
|
||||
pub audio_duration: Option<String>,
|
||||
pub audio_duration: Option<Seconds>,
|
||||
|
||||
/// [Inline keyboard] attached to the message.
|
||||
///
|
||||
|
@ -123,10 +123,7 @@ impl InlineQueryResultAudio {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn audio_duration<S>(mut self, val: S) -> Self
|
||||
where
|
||||
S: Into<String>,
|
||||
{
|
||||
pub fn audio_duration(mut self, val: Seconds) -> Self {
|
||||
self.audio_duration = Some(val.into());
|
||||
self
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue