if row > str(50):
bot.send_message(message.chat.id, text='True')
elif row < str(50):
bot.send_message(message.chat.id, text=f'False')
import sqlite3
con = sqlite3.connect("//connect")
cur = con.cursor()
row = cur.execute("SELECT balance FROM users WHERE user_id ='message.from_user.id'")
if row > str(50):
bot.send_message(message.chat.id, text='True')
elif row < str(50):
bot.send_message(message.chat.id, text='False')