Link Search Menu Expand Document

danog\MadelineProto\RPCError\RateLimitError

Back to index

Author: Daniil Gentili daniil@daniil.it

Represents a rate limiting RPC error returned by telegram.

Properties

  • $waitTime: int
  • $rpc: string RPC error.
  • $description: string Human-readable description of RPC error.
  • $tlTrace: string TL trace.

Method list:

Methods:

getWaitTime(): int

Returns the required waiting period in seconds before repeating the RPC call.

wait(?\Amp\Cancellation $cancellation = NULL): void

Waits for the required waiting period.

Parameters:

  • $cancellation: ?\Amp\Cancellation

See also:

  • \Amp\Cancellation

getLocalization(): string

Get localized error name.

getMessage(): string

getCode()

getFile(): string

getLine(): int

getTrace(): array

getPrevious(): ?Throwable

See also:

  • Throwable

getTraceAsString(): string

getTLTrace(): string

Get TL trace.


Generated by danog/phpdoc