python_bot/bot.py

27 lines
426 B
Python
Raw Normal View History

2022-12-05 17:22:23 +10:00
from create_bot import dp
2022-10-18 19:17:36 +10:00
import logging
2022-12-05 17:22:23 +10:00
from aiogram import executor
2022-12-06 20:25:52 +10:00
from handlers import pipisa, time_new_year, start_help, coding
2022-10-18 19:17:36 +10:00
logging.basicConfig(level=logging.DEBUG)
2022-11-12 20:36:08 +10:00
2022-12-05 17:22:23 +10:00
pipisa.register_handlers_pipisa(dp)
time_new_year.register_handlers_time(dp)
start_help.register_handlers_StartHelp(dp)
2022-12-06 20:25:52 +10:00
coding.register_handlers_alarm(dp)
2022-11-12 20:36:08 +10:00
2022-12-05 17:22:23 +10:00
2022-10-18 19:17:36 +10:00
if __name__ == '__main__':
executor.start_polling(dp, skip_updates=True)
2022-12-04 15:45:15 +10:00
2022-10-18 19:17:36 +10:00