写作:
@dp.message_handler(text = 'Проверка')
async def privet(message: types.Message):
cur.execute("SELECT id FROM podpiska WHERE dt == datetime.date.today().day AND oplata == 0")
result = cur.fetchall()
await bot.send_message(result)
分发:
File "C:\Users\Anna\Desktop\python\рр\bot.py", line 33, in privet
cur.execute("SELECT id FROM podpiska WHERE dt == datetime.date.today().day A
ND oplata == 0")
sqlite3.OperationalError: near "(": syntax error
1 个回答