mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
inline_query + _result_article
This commit is contained in:
parent
afbb004fe4
commit
af62a72afd
2 changed files with 26 additions and 0 deletions
10
src/core/types/inline_query.rs
Normal file
10
src/core/types/inline_query.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
use crate::core::types::{User, Location};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Hash, PartialEq, Eq, Clone)]
|
||||
pub struct InlineQuery {
|
||||
pub id: i64,
|
||||
pub from: User,
|
||||
pub location: Option<Location>,
|
||||
pub query: String,
|
||||
pub offset: String,
|
||||
}
|
16
src/core/types/inline_query_result_article.rs
Normal file
16
src/core/types/inline_query_result_article.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup};
|
||||
|
||||
#[derive(Debug, Deserialize, PartialEq, Clone)]
|
||||
pub struct InlineQueryResultArticle {
|
||||
pub r#type: String,
|
||||
pub id: String,
|
||||
pub title: String,
|
||||
pub input_message_content: InputMessageContent,
|
||||
pub reply_markup: Option<InlineKeyboardMarkup>,
|
||||
pub url: Option<String>,
|
||||
pub hide_url: Option<bool>,
|
||||
pub description: Option<String>,
|
||||
pub thumb_url: Option<String>,
|
||||
pub thumb_width: Option<u64>,
|
||||
pub thumb_height: Option<u64>,
|
||||
}
|
Loading…
Reference in a new issue