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