|
import asyncio
|
|
import logging
|
|
|
|
|
|
from aiogram import Bot, Dispatcher
|
|
from aiogram.fsm.storage.memory import MemoryStorage
|
|
|
|
|
|
|
|
from handlers import common
|
|
|
|
async def main():
|
|
dp = Dispatcher(storage=MemoryStorage())
|
|
bot = Bot(token="6660643950:AAGobeUXFsTVh9Gj1IukfyERhjSQF_-AUEk")
|
|
await bot.delete_webhook(drop_pending_updates=True)
|
|
|
|
dp.include_routers(common.router)
|
|
await dp.start_polling(bot)
|
|
|
|
if __name__ == "__main__":
|
|
logging.basicConfig(level=logging.INFO)
|
|
try:
|
|
asyncio.run(main())
|
|
except (KeyboardInterrupt, SystemExit):
|
|
logging.info("Bot stopped!")
|
|
|