pub struct Video { /* private fields */ }Expand description
Represents an InlineQueryResultVideo/InlineQueryResultCachedVideo.
Implementations§
source§impl Video
impl Video
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 Video result.
sourcepub fn with_fresh(title: impl Into<String>, video: Fresh) -> Self
pub fn with_fresh(title: impl Into<String>, video: Fresh) -> Self
Constructs a fresh Video result.
sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Configures the description of the result.
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.