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

multi-lang fix

This commit is contained in:
jjki3d 2024-01-13 02:29:36 +04:00
parent a5e6fbce34
commit 82b68d1d9f

View File

@ -36,7 +36,7 @@ async def reset_bot_text(bot: Bot, call: types.CallbackQuery, state):
async with state.proxy() as proxy:
lang = proxy.get("lang", "none")
if lang == "none":
await BotSecondMessage.filter(bot=bot).delete()
await BotStartMessage.filter(bot=bot).delete()
bot.start_text = bot._meta.fields_map['start_text'].default
await bot.save(update_fields=["start_text"])
else: