Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Minimum:
Make a database, table users( column : id primary key, column : user_id text ) or every time you start the bot, execute an sql query to create such a table called the create table if not exist construct .
When connecting to a sqlite database, if it doesn't exist, Python will create it.
In the service that will listen to the bot, create a connection object to the sqlite database and call a request to add a user.
If you can’t google a similar example, then learn the basics of working with sqlite from python, everything is done quite primitively there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question