A
A
Alex Fedorov2021-05-06 19:18:05
Python
Alex Fedorov, 2021-05-06 19:18:05

How to make a multi-threading bot?

Hey! How can you make a telegram so that the bot does not break when it is used by a large number of people? And then I test the bot at home on two phones, the first user who started / start the bot does everything right, then the second person does / start the program starts to blunt. Give advice on how to fix it

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
rPman, 2021-05-06
@rPman

everything that concerns users to store by linking them to each and store data not in memory but on disk (in the database)

Y
Yupiter7575, 2021-05-06
@yupiter7575

asyncio

S
soremix, 2021-05-06
@SoreMix

Libraries are used, or samopis? All libs have multithread support. If the program "begins to be stupid" when the / start button is pressed, the problem is clearly in the code itself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question