feat: add PreferSecureProtocol in config.ini
This commit is contained in:
parent
b266a1a2df
commit
d4d460a2a0
4 changed files with 22 additions and 13 deletions
|
@ -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"]),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue