This commit is contained in:
djimbo
2022-08-15 09:06:26 +03:00
parent a70c1a8dfa
commit d09604dd4b
8 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import sys
import colorama import colorama
from aiogram import Bot, Dispatcher 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.middlewares import register_all_middlwares
from tgbot.routers import register_all_routers from tgbot.routers import register_all_routers
from tgbot.services.api_session import RequestsSession from tgbot.services.api_session import RequestsSession
+1 -1
View File
@@ -2,7 +2,7 @@
from aiogram import Router, Bot from aiogram import Router, Bot
from aiogram.types import FSInputFile, Message 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.data.config import PATH_DATABASE, PATH_LOGS
from tgbot.keyboards.inline_misc import admin_inl from tgbot.keyboards.inline_misc import admin_inl
from tgbot.keyboards.reply_misc import admin_rep from tgbot.keyboards.reply_misc import admin_rep
+1 -1
View File
@@ -1,7 +1,7 @@
# - *- coding: utf- 8 - *- # - *- coding: utf- 8 - *-
import sqlite3 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 from tgbot.utils.const_functions import get_unix, get_date
+2 -3
View File
@@ -5,12 +5,11 @@ from datetime import datetime
from aiogram import Bot, types from aiogram import Bot, types
from aiogram.types import InlineKeyboardButton, KeyboardButton from aiogram.types import InlineKeyboardButton, KeyboardButton
from tgbot.data.config import get_admins
######################################## AIOGRAM ######################################## ######################################## AIOGRAM ########################################
# Генерация реплай кнопки # Генерация реплай кнопки
from tgbot.config import get_admins
def rkb(text): def rkb(text):
return KeyboardButton(text=text) return KeyboardButton(text=text)
+1 -1
View File
@@ -2,7 +2,7 @@
from aiogram import Bot from aiogram import Bot
from aiogram.types import BotCommand, BotCommandScopeChat, BotCommandScopeDefault from aiogram.types import BotCommand, BotCommandScopeChat, BotCommandScopeDefault
from tgbot.config import get_admins from tgbot.data.config import get_admins
# Команды для юзеров # Команды для юзеров
user_commands = [ user_commands = [
+1 -1
View File
@@ -2,7 +2,7 @@
from aiogram.dispatcher.filters import BaseFilter from aiogram.dispatcher.filters import BaseFilter
from aiogram.types import Message from aiogram.types import Message
from tgbot.config import get_admins from tgbot.data.config import get_admins
# Проверка на админа # Проверка на админа
+1 -1
View File
@@ -3,7 +3,7 @@ import logging as bot_logger
import colorlog 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") log_formatter_file = bot_logger.Formatter("%(levelname)s | %(asctime)s | %(filename)s:%(lineno)d | %(message)s")
+1 -1
View File
@@ -2,7 +2,7 @@
from aiogram import Bot from aiogram import Bot
from aiogram.types import FSInputFile 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 from tgbot.utils.const_functions import get_date, send_admins