mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Add InlineQueryResultPhoto
This commit is contained in:
parent
cc534cb95b
commit
387e3ae8e9
1 changed files with 19 additions and 0 deletions
19
src/core/types/inline_query_result_photo.rs
Normal file
19
src/core/types/inline_query_result_photo.rs
Normal file
|
@ -0,0 +1,19 @@
|
|||
use super::inline_keyboard_markup::InlineKeyboardMarkup;
|
||||
use super::input_message_content::InputMessageContent;
|
||||
|
||||
#[derive(Debug, Deserialize, Clone, PartialEq)]
|
||||
pub struct InlineQueryResultCachedPhoto {
|
||||
#[serde(rename = "type")]
|
||||
pub query_type: String,
|
||||
pub id: String,
|
||||
pub photo_url: String,
|
||||
pub thumb_url: String,
|
||||
pub photo_width: Option<i32>,
|
||||
pub photo_height: Option<i32>,
|
||||
pub title: Option<String>,
|
||||
pub description: Option<String>,
|
||||
pub caption: Option<String>,
|
||||
pub parse_mode: Option<String>,
|
||||
pub reply_markup: Option<InlineKeyboardMarkup>,
|
||||
pub input_message_content: Option<InputMessageContent>,
|
||||
}
|
Loading…
Reference in a new issue