pub struct Audio { /* private fields */ }
Expand description
Represents an InlineQueryResultAudio
/InlineQueryResultCachedAudio
.
Implementations§
source§impl Audio
impl Audio
sourcepub const fn with_cached(id: Id) -> Self
pub const fn with_cached(id: Id) -> Self
Constructs a cached Audio
result.
sourcepub const fn with_fresh(audio: Fresh) -> Self
pub const fn with_fresh(audio: Fresh) -> Self
Constructs a fresh Audio
result.
Configures the caption of the audio.
sourcepub fn input_message_content(
self,
content: impl Into<InputMessageContent>
) -> Self
pub fn input_message_content(
self,
content: impl Into<InputMessageContent>
) -> Self
Configures the content shown after sending the message.