Link Search Menu Expand Document

danog\MadelineProto\Settings\RPC

Back to index

Author: Daniil Gentili daniil@daniil.it

RPC settings.

Method list:

  • getRpcTimeout(): int
  • setRpcTimeout(int $rpcTimeout): self
  • getFloodTimeout(): int
  • setFloodTimeout(int $floodTimeout): self
  • getLimitCallQueue(): int
  • setLimitCallQueue(int $limitCallQueue): self
  • getGzipEncodeIfGt(): int
  • setGzipEncodeIfGt(int $gzipEncodeIfGt): self

Methods:

getRpcTimeout(): int

Get RPC timeout.

setRpcTimeout(int $rpcTimeout): self

Set RPC timeout.

Parameters:

  • $rpcTimeout: int RPC timeout.

getFloodTimeout(): int

Get flood timeout: if FLOODWAIT time is bigger than this, throw exception instead of waiting asynchronously.

setFloodTimeout(int $floodTimeout): self

Set flood timeout: if FLOODWAIT time is bigger than this, throw exception instead of waiting asynchronously.

Parameters:

  • $floodTimeout: int Flood timeout: if FLOODWAIT time is bigger than this, throw exception instead of waiting asynchronously

getLimitCallQueue(): int

Get maximum number of messages to consider when using call queues.

setLimitCallQueue(int $limitCallQueue): self

Set maximum number of messages to consider when using call queues.

Parameters:

  • $limitCallQueue: int Maximum number of messages to consider when using call queues

getGzipEncodeIfGt(): int

Get encode payload with GZIP if bigger than.

setGzipEncodeIfGt(int $gzipEncodeIfGt): self

Set encode payload with GZIP if bigger than.

Parameters:

  • $gzipEncodeIfGt: int Encode payload with GZIP if bigger than

Generated by danog/phpdoc