success message

This commit is contained in:
Kseninia Mikhaylova 2024-07-19 12:05:58 +03:00
parent ac2040eee9
commit ddfb7994c8
1 changed files with 2 additions and 1 deletions

View File

@ -335,7 +335,8 @@ class TgBot:
element.text = update.message.text
await element.asave()
await update.effective_message.reply_markdown_v2('Изображение сохранено' if update.message.photo else 'Текст сохранен')
empty_fields = await tmc_element.field.filter(text=None, file_id=None).acount()
if empty_fields > 0:
context.chat_data["step"] = "add_tmc"