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

Merge branch 'main' into stable

This commit is contained in:
jjki3d 2024-01-13 02:29:57 +04:00
commit 1dd4d4d7fd

View File

@ -36,7 +36,7 @@ async def reset_bot_text(bot: Bot, call: types.CallbackQuery, state):
async with state.proxy() as proxy: async with state.proxy() as proxy:
lang = proxy.get("lang", "none") lang = proxy.get("lang", "none")
if 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 bot.start_text = bot._meta.fields_map['start_text'].default
await bot.save(update_fields=["start_text"]) await bot.save(update_fields=["start_text"])
else: else: