1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Fix bug in page_wiki_lock

This commit is contained in:
Steffo 2019-02-17 21:57:01 +01:00
parent 1142227b42
commit 757d3cdd5d

View file

@ -316,16 +316,20 @@ def page_wiki_lock(key: str):
if wiki_page.locked: if wiki_page.locked:
telegram_bot.send_message(config["Telegram"]["main_group"], telegram_bot.send_message(config["Telegram"]["main_group"],
strings.safely_format_string(strings.WIKI.PAGE_LOCKED, strings.safely_format_string(strings.WIKI.PAGE_LOCKED,
key=key, words={
user=fl_g.user.username), "key": key,
"user": fl_g.user.username
}),
parse_mode="HTML", parse_mode="HTML",
disable_web_page_preview=True, 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"],
strings.safely_format_string(strings.WIKI.PAGE_UNLOCKED, strings.safely_format_string(strings.WIKI.PAGE_UNLOCKED,
key=key, words={
user=fl_g.user.username), "key": key,
"user": fl_g.user.username
}),
parse_mode="HTML", parse_mode="HTML",
disable_web_page_preview=True, disable_web_page_preview=True,
disable_notification=True) disable_notification=True)