Fixed sending a final message in /import

This commit is contained in:
StNicolay 2023-01-03 21:07:37 +03:00
parent ae88fccf13
commit c7675c231f

View File

@ -650,11 +650,12 @@ async def _import3(
failed.append(account.name) failed.append(account.name)
if failed: if failed:
mes_text = "Не удалось добавить:\n" + "\n".join(failed) await send_deleteable_message(
bot, mes.chat.id, "Не удалось добавить:\n" + "\n".join(failed)
)
else: else:
mes_text = "Успех" await send_tmp_message(bot, mes.chat.id, "Успех")
await send_tmp_message(bot, mes.chat.id, mes_text, 10)
del text, mes, accounts del text, mes, accounts
gc.collect() gc.collect()