inline_query + _result_article

This commit is contained in:
RustemB 2019-09-17 21:58:45 +05:00
parent afbb004fe4
commit af62a72afd
2 changed files with 26 additions and 0 deletions

View 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,
}

View 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>,
}