From cc542b6eae6b781e5cee5ad38b9df78b6a40a2bf Mon Sep 17 00:00:00 2001 From: RustemB Date: Tue, 17 Sep 2019 22:15:19 +0500 Subject: [PATCH] commentd --- src/core/types/inline_query.rs | 7 ++++++- src/core/types/inline_query_result_article.rs | 15 ++++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/core/types/inline_query.rs b/src/core/types/inline_query.rs index b06256d6..2b6ef480 100644 --- a/src/core/types/inline_query.rs +++ b/src/core/types/inline_query.rs @@ -2,9 +2,14 @@ use crate::core::types::{User, Location}; #[derive(Debug, Serialize, Deserialize, Hash, PartialEq, Eq, Clone)] pub struct InlineQuery { - pub id: i64, + /// Unique identifier for this query + pub id: String, + /// Sender pub from: User, + /// Optional. Sender location, only for bots that request user location pub location: Option, + /// Text of the query (up to 512 characters) pub query: String, + /// Offset of the results to be returned, can be controlled by the bot pub offset: String, } diff --git a/src/core/types/inline_query_result_article.rs b/src/core/types/inline_query_result_article.rs index fd7ba834..787a4201 100644 --- a/src/core/types/inline_query_result_article.rs +++ b/src/core/types/inline_query_result_article.rs @@ -2,15 +2,24 @@ use crate::core::types::{InputMessageContent, InlineKeyboardMarkup}; #[derive(Debug, Deserialize, PartialEq, Clone)] pub struct InlineQueryResultArticle { - pub r#type: String, + /// Unique identifier for this result, 1-64 Bytes pub id: String, + /// Title of the result pub title: String, + /// Content of the message to be sent pub input_message_content: InputMessageContent, + /// Optional. Inline keyboard attached to the message pub reply_markup: Option, + /// Optional. URL of the result pub url: Option, + /// Optional. Pass True, if you don't want the URL to be shown in the message pub hide_url: Option, + /// Optional. Short description of the result pub description: Option, + /// Optional. Url of the thumbnail for the result pub thumb_url: Option, - pub thumb_width: Option, - pub thumb_height: Option, + /// Optional. Thumbnail width + pub thumb_width: Option, + /// Optional. Thumbnail height + pub thumb_height: Option, }