feat: add PreferSecureProtocol in config.ini

This commit is contained in:
Macintxsh 2025-05-21 05:06:45 +03:00
parent b266a1a2df
commit d4d460a2a0
Signed by: mctaylors
GPG key ID: 4EEF4F949A266EE2
4 changed files with 22 additions and 13 deletions

View file

@ -67,7 +67,8 @@ async def answer_query(update: Update, query: str, data) -> None:
keyboard = [
[
InlineKeyboardButton(
f"Open in {app.name}", url=f"http://{app.hostname}/posts/{query}"
f"Open in {app.name}",
url=f"{app.protocol}://{app.hostname}/posts/{query}",
),
InlineKeyboardButton("View original", url=data["file_url"]),
]