pub struct Voice { /* private fields */ }
Expand description
Represents an InlineQueryResultVoice
/InlineQueryResultCachedVoice
.
Implementations§
source§impl Voice
impl Voice
sourcepub fn with_cached(title: impl Into<String>, id: Id) -> Self
pub fn with_cached(title: impl Into<String>, id: Id) -> Self
Constructs a cached Voice
result.
sourcepub fn with_fresh(title: impl Into<String>, voice: Fresh) -> Self
pub fn with_fresh(title: impl Into<String>, voice: Fresh) -> Self
Constructs a fresh Voice
result.
Configures the caption of the voice.
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.