miniproto.invoke.should_sleep_for_flood_wait
miniproto.invoke.should_sleep_for_flood_wait
Section titled “miniproto.invoke.should_sleep_for_flood_wait”should_sleep_for_flood_wait(error: FloodWait, threshold: int | None) -> boolReturn whether a flood wait is short enough for automatic sleeping.
A None threshold disables automatic waiting; otherwise the wait must not
exceed the configured threshold in seconds.
Parameters: