How do you get a usernam who joined the cat?
-
I need to get a user name on the database that joined my cat. PyTelegramBotApi, MySQL database To get username, use a message from_user.username. I'm doing this on the database file.
self.cursor.execute("INSERT INTO `users` (`username` ) VALUES (?,?)", (message.from_user.username))
It doesn't work.
-
You're telling me to put one value in it, and you wrote two playhulders.
"INSERT INTO
users
(sighs)username
VALUES (??"