revert: replace View original with Open in App
This reverts commit 1d40f6ae5d
.
This commit is contained in:
parent
1d40f6ae5d
commit
40b9ca48c9
1 changed files with 12 additions and 9 deletions
|
@ -53,8 +53,6 @@ async def answer_query(
|
||||||
"Show information",
|
"Show information",
|
||||||
url=helpers.create_deep_linked_url(context.bot.username, str(query)),
|
url=helpers.create_deep_linked_url(context.bot.username, str(query)),
|
||||||
),
|
),
|
||||||
InlineKeyboardButton(f"Open in {config.app.name}",
|
|
||||||
url=f"{config.app.protocol}://{config.app.hostname}/posts/{query}"),
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -92,6 +90,8 @@ async def answer_query(
|
||||||
await update.inline_query.answer(results)
|
await update.inline_query.answer(results)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
keyboard[0].append(InlineKeyboardButton("View original", url=data["file_url"]))
|
||||||
|
|
||||||
results = [
|
results = [
|
||||||
InlineQueryResultArticle(
|
InlineQueryResultArticle(
|
||||||
id=str(uuid4()),
|
id=str(uuid4()),
|
||||||
|
@ -102,6 +102,7 @@ async def answer_query(
|
||||||
" ".join(
|
" ".join(
|
||||||
[
|
[
|
||||||
HtmlFormat.code(f"#{query}"),
|
HtmlFormat.code(f"#{query}"),
|
||||||
|
HtmlFormat.hyperlink(
|
||||||
" ".join(
|
" ".join(
|
||||||
[
|
[
|
||||||
HtmlFormat.bold(f"{characters} ({copyrights})"),
|
HtmlFormat.bold(f"{characters} ({copyrights})"),
|
||||||
|
@ -109,6 +110,8 @@ async def answer_query(
|
||||||
HtmlFormat.bold(artists),
|
HtmlFormat.bold(artists),
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
f"{config.app.protocol}://{config.app.hostname}/posts/{query}",
|
||||||
|
),
|
||||||
rating,
|
rating,
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue