Files
TeleDiffusionBot/bot/handlers/initialize/all_messages.py
2023-02-14 13:56:43 +02:00

9 lines
283 B
Python

from aiogram.types import Message
from bot.db.pull_db import pull
async def sync_db_filter(message: Message):
await pull()
await message.reply(f'🔄️ Bot database synchronised because of restart. '
f'If you tried to run a command, run it again')