Fix inlineQueryResultArticle.
GitOrigin-RevId: c86d62c96820e10c332a649d0f8a4df8845ef0db
This commit is contained in:
parent
b456895f5b
commit
1701045b17
@ -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_);
|
||||
|
Reference in New Issue
Block a user