Link Search Menu Expand Document

danog\MadelineProto\RPCError\FloodWaitError

Back to index

Author: Daniil Gentili daniil@daniil.it

Represents a FLOODWAIT 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