1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Disable webpage preview

This commit is contained in:
Steffo 2019-02-03 19:58:53 +01:00
parent 9de4513290
commit b5814bbeef

View file

@ -322,6 +322,7 @@ def page_wiki_lock(key: str):
key=key, key=key,
user=fl_g.user.username), user=fl_g.user.username),
parse_mode="HTML", parse_mode="HTML",
disable_web_page_preview=True,
disable_notification=True) disable_notification=True)
else: else:
telegram_bot.send_message(config["Telegram"]["main_group"], telegram_bot.send_message(config["Telegram"]["main_group"],
@ -329,6 +330,7 @@ def page_wiki_lock(key: str):
key=key, key=key,
user=fl_g.user.username), user=fl_g.user.username),
parse_mode="HTML", parse_mode="HTML",
disable_web_page_preview=True,
disable_notification=True) disable_notification=True)
except Exception: except Exception:
pass pass