1
0
mirror of https://github.com/civsocit/olgram.git synced 2025-05-24 16:43:25 +00:00

oh you are idiot

This commit is contained in:
er8dd 2024-03-17 14:25:07 +04:00
parent d0b570baa9
commit 1c12730a4e

View File

@ -223,7 +223,7 @@ async def handle_operator_message(message: types.Message, super_chat_id: int, bo
else: else:
await banned_user.delete() await banned_user.delete()
return SendMessage(chat_id=message.chat.id, text=_("Пользователь разбанен")) return SendMessage(chat_id=message.chat.id, text=_("Пользователь разбанен"))
if message.text.startswith("/tag "): if message.text and message.text.startswith("/tag "):
tag = message.text.replace("/tag ", "")[:20].strip() tag = message.text.replace("/tag ", "")[:20].strip()
if tag: if tag:
await _redis.set(_tag_uid(bot.pk, chat_id), tag, pexpire=ServerSettings.redis_timeout_ms()) await _redis.set(_tag_uid(bot.pk, chat_id), tag, pexpire=ServerSettings.redis_timeout_ms())