Загрузка...

You can an opinion, the normal structure for the Aiogram bot took

Thread in Python created by K1p1k Jun 3, 2025. 166 views

  1. K1p1k
    K1p1k Topic starter Jun 3, 2025 23 Jul 1, 2022
    Code
    │   main.py
    │ Новый текстовый документ.txt

    ├───bot
    │ │ config.py
    │ │ filters.py
    │ │ middlewares.py
    │ │
    │ ├───button
    │ │ admin.py
    │ │ user.py
    │ │ __init__.py
    │ │
    │ ├───core
    │ │ custom_aiogram.py
    │ │ loader.py
    │ │ routers.py
    │ │
    │ ├───handlers
    │ │ admin_menu.py
    │ │ admin_settings.py
    │ │ user_menu.py
    │ │ user_profile.py
    │ │ user_upload.py
    │ │ __init__.py
    │ │
    │ └───utils
    │ format.py

    └───database
    models.py
    Save.py
    texts.json
     
  2. matBast0s
    matBast0s Jun 3, 2025 Продам звёздочки дёшево lolz.live/threads/8865074/ 4326 Sep 10, 2023
    1. matBast0s
      oihuhu8, так тоже можно
    2. View the next comments (2)
  3. Kalipso
    Kalipso Jun 3, 2025 531 Apr 12, 2022
    если бот небольшой и для личного пользования, то нахуй тебе структура. А если нет, то структура норм
     
  4. George_a_fish
    Code
    /src
    /handlers
    /keyboards
    /filters
    /middlewares
    /utils
    /repositories
    /infra
    /database
    db.sqlite
    config.py
    __main__.py
    .env
    requirements.txt
    Я бы посоветовал к такому приглядеться
     
    1. K1p1k Topic starter
      George_a_fish, По мне очень много вложеностей будет
    2. George_a_fish
      K1p1k, не думаю, у тебя максим два уровня в папке ж будет
Loading...
Top