зачал бд, удалил лишнее
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
54bcef5df9
commit
331ad2e399
9
bot.py
9
bot.py
@ -8,7 +8,6 @@ from aiogram.types import ReplyKeyboardRemove, ReplyKeyboardMarkup, KeyboardButt
|
|||||||
import sql
|
import sql
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
API_TOKEN = '5724991559:AAEuLvpLsgP6LHRGMSyFtQLlR5qPQUO4b_w'
|
API_TOKEN = '5724991559:AAEuLvpLsgP6LHRGMSyFtQLlR5qPQUO4b_w'
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
@ -46,10 +45,10 @@ async def dick(message: types.Message):
|
|||||||
await bot.send_message(message.chat.id, (numb))
|
await bot.send_message(message.chat.id, (numb))
|
||||||
|
|
||||||
@dp.message_handler(commands=["id"])
|
@dp.message_handler(commands=["id"])
|
||||||
async def id(message: types.Message):
|
async def ident(message: types.Message):
|
||||||
await sql.db_start()
|
#await sql.add_user()
|
||||||
await bot.send_message(message.chat.id, f'ваш id {message.from_user.id}')
|
await bot.send_message(message.chat.id, f'{message.from_user.id}')
|
||||||
await sql.db.close()
|
#await sql.db.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user