fixes-logs-imports

This commit is contained in:
2023-09-18 10:50:48 +03:00
parent cf4f13ae9b
commit 95071ec301
14 changed files with 98 additions and 61 deletions

View File

@@ -8,6 +8,9 @@ from aiogram.filters import CommandStart, Command
from aiogram.types import Message, ChatJoinRequest, CallbackQuery
from config import BOT_TOKEN, ADMIN_ID
from handlers.routing import handle_routing
from handlers.callback_unlink import handle_unlink
from handlers.callback_vouch import handle_button
from handlers.handle_join_request import handle_join_request
from state import State
logger = logging.getLogger(__name__)
@@ -28,7 +31,7 @@ async def process_callback(callback_query: CallbackQuery):
if data.startswith("vouch"):
await handle_button(cbq)
elif data.startswith("unlink"):
await handle_unlink(cbq)
await handle_unlink(cbq, state)
@router.chat_join_request()