0
@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)
有人可以幫我解決這個問題嗎? 說實話,我不知道這個問題會是什麼。您在SQL語法中有錯誤;檢查對應於您的MariaDB服務器版本的手冊,在第1行的''附近使用正確的語法
哪個教程您使用的? –