mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Add missing InlineQueryResult*
structs
This commit is contained in:
parent
3b6b147b69
commit
35b7a2c6cf
9 changed files with 140 additions and 0 deletions
16
src/core/types/inline_query_result_audio.rs
Normal file
16
src/core/types/inline_query_result_audio.rs
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
use super::inline_keyboard_markup::InlineKeyboardMarkup;
|
||||||
|
use super::input_message_content::InputMessageContent;
|
||||||
|
use crate::core::types::parse_mode::ParseMode;
|
||||||
|
|
||||||
|
#[derive(Debug, Serialize, Clone, PartialEq)]
|
||||||
|
pub struct InlineQueryResultAudio {
|
||||||
|
pub id: String,
|
||||||
|
pub audio_url: String,
|
||||||
|
pub title: String,
|
||||||
|
pub caption: Option<String>,
|
||||||
|
pub parse_mode: Option<ParseMode>,
|
||||||
|
pub performer: Option<String>,
|
||||||
|
pub audio_duration: Option<String>,
|
||||||
|
pub reply_markup: Option<InlineKeyboardMarkup>,
|
||||||
|
pub input_message_content: Option<InputMessageContent>,
|
||||||
|
}
|
13
src/core/types/inline_query_result_cached_gif.rs
Normal file
13
src/core/types/inline_query_result_cached_gif.rs
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
use super::inline_keyboard_markup::InlineKeyboardMarkup;
|
||||||
|
use super::input_message_content::InputMessageContent;
|
||||||
|
|
||||||
|
#[derive(Debug, Deserialize, Clone, PartialEq)]
|
||||||
|
pub struct InlineQueryResultCachedGif {
|
||||||
|
pub id: String,
|
||||||
|
pub gif_file_id: String,
|
||||||
|
pub title: Option<String>,
|
||||||
|
pub caption: Option<String>,
|
||||||
|
pub parse_mode: Option<String>,
|
||||||
|
pub reply_markup: Option<InlineKeyboardMarkup>,
|
||||||
|
pub input_message_content: Option<InputMessageContent>,
|
||||||
|
}
|
15
src/core/types/inline_query_result_cached_photo.rs
Normal file
15
src/core/types/inline_query_result_cached_photo.rs
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
use super::inline_keyboard_markup::InlineKeyboardMarkup;
|
||||||
|
use super::input_message_content::InputMessageContent;
|
||||||
|
use crate::core::types::parse_mode::ParseMode;
|
||||||
|
|
||||||
|
#[derive(Debug, Serialize, Clone, PartialEq)]
|
||||||
|
pub struct InlineQueryResultCachedPhoto {
|
||||||
|
pub id: String,
|
||||||
|
pub photo_file_id: String,
|
||||||
|
pub title: Option<String>,
|
||||||
|
pub description: Option<String>,
|
||||||
|
pub caption: Option<String>,
|
||||||
|
pub parse_mode: Option<ParseMode>,
|
||||||
|
pub reply_markup: Option<InlineKeyboardMarkup>,
|
||||||
|
pub input_message_content: Option<InputMessageContent>,
|
||||||
|
}
|
17
src/core/types/inline_query_result_contact.rs
Normal file
17
src/core/types/inline_query_result_contact.rs
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
use super::inline_keyboard_markup::InlineKeyboardMarkup;
|
||||||
|
use super::input_message_content::InputMessageContent;
|
||||||
|
use crate::core::types::parse_mode::ParseMode;
|
||||||
|
|
||||||
|
#[derive(Debug, Serialize, Clone, PartialEq)]
|
||||||
|
pub struct InlineQueryResultContact {
|
||||||
|
pub id: String,
|
||||||
|
pub phone_number: String,
|
||||||
|
pub first_name: String,
|
||||||
|
pub last_name: Option<String>,
|
||||||
|
pub vcard: Option<String>,
|
||||||
|
pub reply_markup: Option<InlineKeyboardMarkup>,
|
||||||
|
pub input_message_content: Option<InputMessageContent>,
|
||||||
|
pub thumb_url: Option<String>,
|
||||||
|
pub thumb_width: Option<i32>,
|
||||||
|
pub thumb_height: Option<i32>,
|
||||||
|
}
|
18
src/core/types/inline_query_result_document.rs
Normal file
18
src/core/types/inline_query_result_document.rs
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
use super::inline_keyboard_markup::InlineKeyboardMarkup;
|
||||||
|
use super::input_message_content::InputMessageContent;
|
||||||
|
|
||||||
|
#[derive(Debug, Serialize, Clone, PartialEq)]
|
||||||
|
pub struct InlineQueryResultDocument {
|
||||||
|
pub id: String,
|
||||||
|
pub title: String,
|
||||||
|
pub caption: Option<String>,
|
||||||
|
pub parse_mode: Option<String>,
|
||||||
|
pub document_url: String,
|
||||||
|
pub mime_type: String,
|
||||||
|
pub description: Option<String>,
|
||||||
|
pub reply_markup: Option<InlineKeyboardMarkup>,
|
||||||
|
pub input_message_content: Option<InputMessageContent>,
|
||||||
|
pub thumb_url: Option<String>,
|
||||||
|
pub thumb_width: Option<i32>,
|
||||||
|
pub thumb_height: Option<i32>,
|
||||||
|
}
|
10
src/core/types/inline_query_result_game.rs
Normal file
10
src/core/types/inline_query_result_game.rs
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
use super::inline_keyboard_markup::InlineKeyboardMarkup;
|
||||||
|
use super::input_message_content::InputMessageContent;
|
||||||
|
use crate::core::types::parse_mode::ParseMode;
|
||||||
|
|
||||||
|
#[derive(Debug, Serialize, Clone, PartialEq)]
|
||||||
|
pub struct InlineQueryResultGame {
|
||||||
|
pub id: String,
|
||||||
|
pub game_short_name: String,
|
||||||
|
pub reply_markup: Option<InlineKeyboardMarkup>,
|
||||||
|
}
|
18
src/core/types/inline_query_result_location.rs
Normal file
18
src/core/types/inline_query_result_location.rs
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
use super::inline_keyboard_markup::InlineKeyboardMarkup;
|
||||||
|
use super::input_message_content::InputMessageContent;
|
||||||
|
use crate::core::types::parse_mode::ParseMode;
|
||||||
|
|
||||||
|
#[derive(Debug, Serialize, Clone, PartialEq)]
|
||||||
|
pub struct InlineQueryResultLocation {
|
||||||
|
pub id: String,
|
||||||
|
pub latitude: f64,
|
||||||
|
pub longitude: f64,
|
||||||
|
pub title: String,
|
||||||
|
pub live_period: i32,
|
||||||
|
pub reply_markup: InlineKeyboardMarkup,
|
||||||
|
pub input_message_content: InputMessageContent,
|
||||||
|
pub thumb_url: String,
|
||||||
|
pub thumb_width: i32,
|
||||||
|
pub thumb_height: i32,
|
||||||
|
|
||||||
|
}
|
19
src/core/types/inline_query_result_venue.rs
Normal file
19
src/core/types/inline_query_result_venue.rs
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
use super::inline_keyboard_markup::InlineKeyboardMarkup;
|
||||||
|
use super::input_message_content::InputMessageContent;
|
||||||
|
use crate::core::types::parse_mode::ParseMode;
|
||||||
|
|
||||||
|
#[derive(Debug, Serialize, Clone, PartialEq)]
|
||||||
|
pub struct InlineQueryResultVenue {
|
||||||
|
pub id: String,
|
||||||
|
pub latitude: f64,
|
||||||
|
pub longitude: f64,
|
||||||
|
pub title: String,
|
||||||
|
pub address: String,
|
||||||
|
pub foursquare_id: Option<String>,
|
||||||
|
pub foursquare_type: Option<String>,
|
||||||
|
pub reply_markup: Option<InlineKeyboardMarkup>,
|
||||||
|
pub input_message_content: Option<InputMessageContent>,
|
||||||
|
pub thumb_url: Option<String>,
|
||||||
|
pub thumb_width: Option<i32>,
|
||||||
|
pub thumb_height: Option<i32>,
|
||||||
|
}
|
14
src/core/types/inline_query_result_voice.rs
Normal file
14
src/core/types/inline_query_result_voice.rs
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
use super::inline_keyboard_markup::InlineKeyboardMarkup;
|
||||||
|
use super::input_message_content::InputMessageContent;
|
||||||
|
|
||||||
|
#[derive(Debug, Deserialize, Clone, PartialEq)]
|
||||||
|
pub struct InlineQueryResultVoice {
|
||||||
|
pub id: String,
|
||||||
|
pub voice_url: String,
|
||||||
|
pub title: String,
|
||||||
|
pub caption: Option<String>,
|
||||||
|
pub parse_mode: Option<String>,
|
||||||
|
pub voice_duration: Option<i32>,
|
||||||
|
pub reply_markup: Option<InlineKeyboardMarkup>,
|
||||||
|
pub input_message_content: Option<InputMessageContent>,
|
||||||
|
}
|
Loading…
Reference in a new issue