Skip to content

miniproto.invoke.MethodFloodWaitCache.remember

miniproto.invoke.MethodFloodWaitCache.remember

Section titled “miniproto.invoke.MethodFloodWaitCache.remember”
remember(request: object, error: FloodWait) -> bool

Record a cacheable Telegram method flood wait without shortening it.

Parameters:

  • request (object) – Request whose innermost Telegram method identifies the wait.
  • error (FloodWait) – Classified flood-wait RPC error to reconstruct for future calls.

Returns:

  • boolTrue when the error has a cacheable generic or premium wait name;
  • bool – otherwise False without modifying the cache.