Link Search Menu Expand Document

danog\MadelineProto\Settings\RPC

Back to index

Author: Daniil Gentili daniil@daniil.it

RPC settings.

Method list:

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

Methods:

getRpcTimeout()

Get RPC timeout.

setRpcTimeout(int $rpcTimeout)

Set RPC timeout.

Parameters:

  • $rpcTimeout: int RPC timeout.

getFloodTimeout()

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

setFloodTimeout(int $floodTimeout)

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()

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

setLimitCallQueue(int $limitCallQueue)

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()

Get encode payload with GZIP if bigger than.

setGzipEncodeIfGt(int $gzipEncodeIfGt)

Set encode payload with GZIP if bigger than.

Parameters:

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

Generated by danog/phpdoc