@bot.message_handler(commands=['start'])
def start(m):
cid = m.chat.id
secret = id_generator()
hashedpw = hashlib.md5( secret ).hexdigest()
cur.execute("INSERT into `users` (username, password) VALUES (str(cid), str(hashedpw)")
bot.send_message(m.chat.id, "Your secret token is " + secret)
Can someone may help me in fixing this problem? To be honest I have no idea what the problem could be.