def proverka():
vid_foot = f'SELECT * FROM USERS WHERE ("vid") VALUES (?)', ("Печать на футболках", )
connection = sqlite3.connect("basa35.db")
cursor = connection.cursor()
cursor.execute(vid_foot)
result = cursor.fetchall()
return result
@bot.message_handler(content_types=['text'])
def test2(message):
true = proverka()
if not true:
bot.send_message(message.chat.id, 'не футболка')
vid_foot = f"SELECT * FROM USERS WHERE vid = 'Печать на футболках'"