I want to make sweepstakes via WhatsApp. To participate, the person would send a message with the name to the number that I will announce and it will receive the confirmation response and the token number.
I wanted the bot to take the phone number and name, save it to a MySQL database, and return the answer to it. However, the token number would be the id of the row in the table where its data was saved in MySQL. How could this be done?