Fixed sending a final message in /import
This commit is contained in:
parent
ae88fccf13
commit
c7675c231f
@ -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()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user