mirror of
https://github.com/djimboy/djimbo_template_aio3.git
synced 2026-07-25 09:44:29 +00:00
Update
This commit is contained in:
@@ -6,7 +6,7 @@ import sys
|
||||
import colorama
|
||||
from aiogram import Bot, Dispatcher
|
||||
|
||||
from tgbot.config import BOT_TOKEN, scheduler, get_admins
|
||||
from tgbot.data.config import BOT_TOKEN, scheduler, get_admins
|
||||
from tgbot.middlewares import register_all_middlwares
|
||||
from tgbot.routers import register_all_routers
|
||||
from tgbot.services.api_session import RequestsSession
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
from aiogram import Router, Bot
|
||||
from aiogram.types import FSInputFile, Message
|
||||
|
||||
from tgbot.config import PATH_DATABASE, PATH_LOGS
|
||||
from tgbot.data.config import PATH_DATABASE, PATH_LOGS
|
||||
from tgbot.data.config import PATH_DATABASE, PATH_LOGS
|
||||
from tgbot.keyboards.inline_misc import admin_inl
|
||||
from tgbot.keyboards.reply_misc import admin_rep
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# - *- coding: utf- 8 - *-
|
||||
import sqlite3
|
||||
|
||||
from tgbot.config import PATH_DATABASE
|
||||
from tgbot.data.config import PATH_DATABASE
|
||||
from tgbot.utils.const_functions import get_unix, get_date
|
||||
|
||||
|
||||
|
||||
@@ -5,12 +5,11 @@ from datetime import datetime
|
||||
|
||||
from aiogram import Bot, types
|
||||
from aiogram.types import InlineKeyboardButton, KeyboardButton
|
||||
from tgbot.data.config import get_admins
|
||||
|
||||
|
||||
######################################## AIOGRAM ########################################
|
||||
# Генерация реплай кнопки
|
||||
from tgbot.config import get_admins
|
||||
|
||||
|
||||
def rkb(text):
|
||||
return KeyboardButton(text=text)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
from aiogram import Bot
|
||||
from aiogram.types import BotCommand, BotCommandScopeChat, BotCommandScopeDefault
|
||||
|
||||
from tgbot.config import get_admins
|
||||
from tgbot.data.config import get_admins
|
||||
|
||||
# Команды для юзеров
|
||||
user_commands = [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
from aiogram.dispatcher.filters import BaseFilter
|
||||
from aiogram.types import Message
|
||||
|
||||
from tgbot.config import get_admins
|
||||
from tgbot.data.config import get_admins
|
||||
|
||||
|
||||
# Проверка на админа
|
||||
|
||||
@@ -3,7 +3,7 @@ import logging as bot_logger
|
||||
|
||||
import colorlog
|
||||
|
||||
from tgbot.config import PATH_LOGS
|
||||
from tgbot.data.config import PATH_LOGS
|
||||
|
||||
# Формат логгирования
|
||||
log_formatter_file = bot_logger.Formatter("%(levelname)s | %(asctime)s | %(filename)s:%(lineno)d | %(message)s")
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
from aiogram import Bot
|
||||
from aiogram.types import FSInputFile
|
||||
|
||||
from tgbot.config import get_admins, PATH_DATABASE
|
||||
from tgbot.data.config import get_admins, PATH_DATABASE
|
||||
from tgbot.utils.const_functions import get_date, send_admins
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user