Answer the question
In order to leave comments, you need to log in
Why doesn't the bot 'serve' new users after two active users?
There is a tg bot to which the user sends 2 variables, the bot writes them to the database and after pressing the 'START' button creates a new one on the method, passing the data entered by the user
if message.text == 'START':
var1 = 10
var2 = 'asdasdads'
thr = Thread(target = generate(var1, var2))
def generate(a,b):
#вычисления
Answer the question
In order to leave comments, you need to log in
Let me suggest that you use RQ or something similar to handle long-running requests.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question