first commit
This commit is contained in:
21
bot.0.1/telegram_bot.py
Executable file
21
bot.0.1/telegram_bot.py
Executable file
@@ -0,0 +1,21 @@
|
||||
from handlers import client, admin, other
|
||||
from aiogram import executor
|
||||
from create_bot import dp
|
||||
from data_base import sqlite_db
|
||||
|
||||
|
||||
async def on_startup(_):
|
||||
print("Бот вышел в онлайн")
|
||||
sqlite_db.sql_start()
|
||||
|
||||
admin.register_handlers_client(dp)
|
||||
client.register_handlers_client(dp)
|
||||
other.register_handlers_other(dp)
|
||||
|
||||
|
||||
def main():
|
||||
executor.start_polling(dp, skip_updates=True, on_startup=on_startup)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user