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:
parent
1142227b42
commit
757d3cdd5d
1 changed files with 8 additions and 4 deletions
12
webserver.py
12
webserver.py
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue