Oh man, long polling can be a nightmare if you don’t handle timeouts properly. I’ve been there.
One tip: use `asyncio.wait_for` with `aiohttp` to set timeouts for your python http request to send request with long poll. It’s way cleaner than handling timeouts manually.
Also, if you’re dealing with rate limits, `ratelimit` is a great library to handle that.
One tip: use `asyncio.wait_for` with `aiohttp` to set timeouts for your python http request to send request with long poll. It’s way cleaner than handling timeouts manually.
Also, if you’re dealing with rate limits, `ratelimit` is a great library to handle that.
