Replies: 1 comment
-
OK, this was a bit of a tricky one. Some info, in case others run into this issue: I found out that PTB raises a When sending an image, this is passed to PTB as a file handle, created using The fix was to add a Suggestions for improving PTB:
|
Beta Was this translation helpful? Give feedback.
-
I'm using the rate limiter like this:
application = Application.builder().token(bot_token).rate_limiter(AIORateLimiter(group_max_rate=18)).build()
What is expected to happen after I get a
telegram.error.RetryAfter()
exception?If I try a second send attempt earlier than the RetryAfter period, should I get another RetryAfter() exception? It seems I'm getting a
telegram.error.NetworkError
ortelegram.error.TimedOut
instead. Is this expected?Beta Was this translation helpful? Give feedback.
All reactions