From 331ad2e399ddf86e27d614a16fa645a0668457f0 Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Mon, 7 Nov 2022 17:10:21 +1000 Subject: [PATCH] =?UTF-8?q?=D0=B7=D0=B0=D1=87=D0=B0=D0=BB=20=D0=B1=D0=B4,?= =?UTF-8?q?=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=20=D0=BB=D0=B8=D1=88?= =?UTF-8?q?=D0=BD=D0=B5=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bot.py b/bot.py index 145ba46..67dc6ed 100644 --- a/bot.py +++ b/bot.py @@ -8,7 +8,6 @@ from aiogram.types import ReplyKeyboardRemove, ReplyKeyboardMarkup, KeyboardButt import sql - API_TOKEN = '5724991559:AAEuLvpLsgP6LHRGMSyFtQLlR5qPQUO4b_w' logging.basicConfig(level=logging.DEBUG) @@ -46,10 +45,10 @@ async def dick(message: types.Message): await bot.send_message(message.chat.id, (numb)) @dp.message_handler(commands=["id"]) -async def id(message: types.Message): - await sql.db_start() - await bot.send_message(message.chat.id, f'ваш id {message.from_user.id}') - await sql.db.close() +async def ident(message: types.Message): + #await sql.add_user() + await bot.send_message(message.chat.id, f'{message.from_user.id}') + #await sql.db.close()