first commit

This commit is contained in:
2024-10-29 16:09:13 +03:00
commit 8bdd4be9b0
42 changed files with 2605 additions and 0 deletions

21
bot.0.1/telegram_bot.py Executable file
View 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()