Skip to content

Commit

Permalink
Fix inlineQueryResultArticle.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: c86d62c96820e10c332a649d0f8a4df8845ef0db
  • Loading branch information
levlam committed Mar 19, 2018
1 parent b456895 commit 1701045
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions td/telegram/InlineQueriesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,12 @@ void InlineQueriesManager::answer_inline_query(int64 inline_query_id, bool is_pe
auto article = move_tl_object_as<td_api::inputInlineQueryResultArticle>(input_result);
type = "article";
id = std::move(article->id_);
content_url = std::move(article->url_);
content_type = "text/html";
if (!article->hide_url_) {
url = content_url;
if (!article->url_.empty()) {
content_url = std::move(article->url_);
content_type = "text/html";
if (!article->hide_url_) {
url = content_url;
}
}
title = std::move(article->title_);
description = std::move(article->description_);
Expand Down

0 comments on commit 1701045

Please sign in to comment.