feat: restore ability to open website from an inline query message

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
Macintxsh 2025-06-09 00:01:29 +03:00
parent c1f803503e
commit c66b52a29b
Signed by: mctaylors
GPG key ID: 4EEF4F949A266EE2

View file

@ -13,6 +13,7 @@ from telegram.constants import ParseMode
from telegram.ext import ContextTypes
import html_parser
from config import app
from extensions import humanize_tags_from_json, format_rating, get_json
@ -102,9 +103,16 @@ async def answer_query(
" ".join(
[
html_parser.code(f"#{query}"),
html_parser.hyperlink(
" ".join(
[
html_parser.bold(f"{characters} ({copyrights})"),
"drawn by",
html_parser.bold(artists),
]
),
f"{app.protocol}://{app.hostname}/posts/{query}",
),
rating,
]
),