pub struct Photo { /* private fields */ }
Expand description
Represents an InlineQueryResultPhoto
/InlineQueryResultCachedPhoto
.
Implementations§
source§impl Photo
impl Photo
sourcepub const fn with_cached(id: Id) -> Self
pub const fn with_cached(id: Id) -> Self
Constructs a cached Photo
result.
sourcepub const fn with_fresh(photo: Fresh) -> Self
pub const fn with_fresh(photo: Fresh) -> Self
Constructs a fresh Photo
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 photo.
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.