This commit is contained in:
Pavel_Duron 2022-11-09 22:57:49 +10:00
parent 5c8cd68b6f
commit ceb43511ef
2 changed files with 2 additions and 3 deletions

2
bot.py
View File

@ -49,7 +49,7 @@ async def dick(message: types.Message):
@dp.message_handler(commands=["id"])
async def ident(message: types.Message):
lisq = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name)
tert.adding()
await tert.adding()
await bot.send_message(message.chat.id, f'{message.from_user.id} + {message.from_user.full_name}')

View File

@ -2,7 +2,6 @@ from sqlalchemy import create_engine, MetaData, Table, Integer, String, \
Column, DateTime, ForeignKey, Numeric
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
import bot
engine = create_engine('sqlite:///dick3.db')
Session = sessionmaker(bind=engine)
@ -26,7 +25,7 @@ class user(Base):
class tert:
def adding():
async def adding():
session.add(lisq)
session.commit()