This commit is contained in:
@@ -46,6 +46,9 @@ async def save_group(update: Update, context: ContextTypes.DEFAULT_TYPE):
|
||||
group = Group(name=name, link=link)
|
||||
session.add(group)
|
||||
await session.commit()
|
||||
from db import log_action
|
||||
user_id = update.effective_user.id if update.effective_user else None
|
||||
log_action(user_id, "add_group", f"name={name}, link={link}")
|
||||
if update.message:
|
||||
await update.message.reply_text(f'Группа "{name}" добавлена.')
|
||||
return ConversationHandler.END
|
||||
|
||||
Reference in New Issue
Block a user