зачал бд, удалил лишнее

This commit is contained in:
Pavel_Duron 2022-11-07 17:10:21 +10:00
parent 54bcef5df9
commit 331ad2e399

9
bot.py
View File

@ -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()