Answer the question
In order to leave comments, you need to log in
Mistake. Threads, and something strange with def.. What to do?
Here is the code:
def onblock(heid):
print(heid)
heid1 = call.message.chat.id # это равно heidi1 = 927183720
t = threading.Thread(target = onblock, args = str(call.message.chat.id))
t.start()
Answer the question
In order to leave comments, you need to log in
args is expecting a tuple and you are passing a string.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question