mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +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:
|
||||
telegram_bot.send_message(config["Telegram"]["main_group"],
|
||||
strings.safely_format_string(strings.WIKI.PAGE_LOCKED,
|
||||
key=key,
|
||||
user=fl_g.user.username),
|
||||
words={
|
||||
"key": key,
|
||||
"user": fl_g.user.username
|
||||
}),
|
||||
parse_mode="HTML",
|
||||
disable_web_page_preview=True,
|
||||
disable_notification=True)
|
||||
else:
|
||||
telegram_bot.send_message(config["Telegram"]["main_group"],
|
||||
strings.safely_format_string(strings.WIKI.PAGE_UNLOCKED,
|
||||
key=key,
|
||||
user=fl_g.user.username),
|
||||
words={
|
||||
"key": key,
|
||||
"user": fl_g.user.username
|
||||
}),
|
||||
parse_mode="HTML",
|
||||
disable_web_page_preview=True,
|
||||
disable_notification=True)
|
||||
|
|
Loading…
Reference in a new issue