mirror of
https://github.com/SantaSpeen/RoyaltyIT-tg-bot.git
synced 2025-07-03 00:06:07 +00:00
Add mute message
This commit is contained in:
parent
03f76ddd1d
commit
f7d232c20b
@ -128,6 +128,9 @@ async def mute(msg: types.Message):
|
||||
c += int(word[:len(word) - 1])
|
||||
tools.set_mute(user_id, c)
|
||||
await tools.set_user_permissions(user_id, msg.chat.id, mute_perm)
|
||||
await msg.reply(
|
||||
f"""<a href="tg://user?id={user_id}">Пользователь</a> будет молчать до <code>{c}</code>""" +
|
||||
"секунды по UnixTime.", parse_mode=ParseMode.HTML)
|
||||
except Exception as e:
|
||||
await msg.reply(f"Exception: <code>{e}</code>", parse_mode=ParseMode.HTML)
|
||||
else:
|
||||
@ -182,7 +185,7 @@ async def set_hello_message(msg: types.Message):
|
||||
hello = err = None
|
||||
|
||||
if mode in ("default", "standart"):
|
||||
hello = config.standart_start_message
|
||||
hello = config.standard_start_message
|
||||
elif mode == "new":
|
||||
if len(splt) > 2:
|
||||
hello = " ".join(splt[2:])
|
||||
|
Loading…
x
Reference in New Issue
Block a user