You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The requests library is not async and therefore blocking. This means that if 2 users run a command that uses requests, at the same time, it will take longer for the bot to respond to the second user than the first.
However, aiohttp is not blocking, which means that if 2 users execute the same command using the aiohttp library instead of requests, the bot will respond to both users at approximately the same time.
Therefore, I highly recommend switching from the requests library to aiohttp, or any other async library.
The text was updated successfully, but these errors were encountered:
The requests library is not async and therefore blocking. This means that if 2 users run a command that uses requests, at the same time, it will take longer for the bot to respond to the second user than the first.
However, aiohttp is not blocking, which means that if 2 users execute the same command using the aiohttp library instead of requests, the bot will respond to both users at approximately the same time.
Therefore, I highly recommend switching from the requests library to aiohttp, or any other async library.
The text was updated successfully, but these errors were encountered: