f3rnandomoreno / spring-ai-telegram-task-manager

A telegram task manager chatbot using openAI API
0 stars 0 forks source link

verify user in the chatbot #4

Closed f3rnandomoreno closed 2 weeks ago

f3rnandomoreno commented 2 weeks ago

need to create a new table if not exists, users. This table has the email, user_id, the user_name, first_name and last_name in the table. If the user has not been verified we ask for the email. If the email is in the list of the emails allowed, then we save the userId in the users table to allow that user . Then always that we receive a message we check that the userId is in the database of users.

The verified emails are harcoded in a List.