danog\MadelineProto\RPCError\FloodWaitError
Author: Daniil Gentili daniil@daniil.it
Represents a FLOODWAIT RPC error returned by telegram.
Properties
$rpc
:string
RPC error$tlTrace
:string
TL trace.
Method list:
__construct(mixed $message = NULL, mixed $code = 0, mixed $caller = '', ?\Exception $previous = NULL)
getWaitTime(): int
wait(): void
localizeMessage(mixed $method, int $code, string $error): string
getLocalization(): string
setLocalization(string $localization): void
getMessage(): string
getCode()
getFile(): string
getLine(): int
getTrace(): array
getPrevious(): ?Throwable
getTraceAsString(): string
updateTLTrace(array $trace): void
getTLTrace(): string
setTLTrace(string $tlTrace): void
prettifyTL(string $init = '', array $trace = NULL): void
Methods:
__construct(mixed $message = NULL, mixed $code = 0, mixed $caller = '', ?\Exception $previous = NULL)
Parameters:
$message
:mixed
$code
:mixed
$caller
:mixed
$previous
:?\Exception
See also:
\Exception
getWaitTime(): int
Returns the required waiting period in seconds before repeating the RPC call.
wait(): void
Waits for the required waiting period.
localizeMessage(mixed $method, int $code, string $error): string
Parameters:
$method
:mixed
$code
:int
$error
:string
getLocalization(): string
Get localized error name.
setLocalization(string $localization): void
Set localized error name.
Parameters:
$localization
:string
getMessage(): string
getCode()
getFile(): string
getLine(): int
getTrace(): array
getPrevious(): ?Throwable
See also:
Throwable
getTraceAsString(): string
updateTLTrace(array $trace): void
Update TL trace.
Parameters:
$trace
:array
getTLTrace(): string
Get TL trace.
setTLTrace(string $tlTrace): void
Set TL trace.
Parameters:
$tlTrace
:string
TL trace
prettifyTL(string $init = '', array $trace = NULL): void
Generate async trace.
Parameters:
$init
:string
Method name$trace
:array
Async trace
Generated by danog/phpdoc