MadelineProtoDocs/docs/PHP/danog/MadelineProto/Settings/RPC.md

3.4 KiB

title: danog\MadelineProto\Settings\RPC: RPC settings. description:

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
  • getLimitIncoming(): int
  • setLimitIncoming(int $limitIncoming): self
  • getLimitOutgoing(): int
  • setLimitOutgoing(int $limitOutgoing): self
  • getLimitCallQueue(): int
  • setLimitCallQueue(int $limitCallQueue): self
  • getGzipEncodeIfGt(): int
  • setGzipEncodeIfGt(int $gzipEncodeIfGt): self
  • hasChanged(): bool

Methods:

getRpcTimeout(): int

Get RPC timeout.


Generated by danog/phpdoc

setRpcTimeout(int $rpcTimeout): self

Set RPC timeout.

Parameters:

  • $rpcTimeout: int RPC timeout.

Generated by danog/phpdoc

getFloodTimeout(): int

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


Generated by danog/phpdoc

setFloodTimeout(int $floodTimeout): self

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

Parameters:

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

Generated by danog/phpdoc

getLimitIncoming(): int

Get maximum number of messages to be stored in the incoming queue.


Generated by danog/phpdoc

setLimitIncoming(int $limitIncoming): self

Set maximum number of messages to be stored in the incoming queue.

Parameters:

  • $limitIncoming: int Maximum number of messages to be stored in the incoming queue

Generated by danog/phpdoc

getLimitOutgoing(): int

Get maximum number of messages to be stored in the outgoing queue.


Generated by danog/phpdoc

setLimitOutgoing(int $limitOutgoing): self

Set maximum number of messages to be stored in the outgoing queue.

Parameters:

  • $limitOutgoing: int Maximum number of messages to be stored in the outgoing queue

Generated by danog/phpdoc

getLimitCallQueue(): int

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


Generated by danog/phpdoc

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

Generated by danog/phpdoc

getGzipEncodeIfGt(): int

Get encode payload with GZIP if bigger than.


Generated by danog/phpdoc

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

hasChanged(): bool

Get whether this setting was changed, also applies changes.


Generated by danog/phpdoc


Generated by danog/phpdoc