Link Search Menu Expand Document

danog\MadelineProto\Settings\Peer

Back to index

Author: Daniil Gentili daniil@daniil.it

Peer database settings.

Method list:

  • getFullInfoCacheTime()
  • setFullInfoCacheTime(int $fullInfoCacheTime)
  • getFullFetch()
  • setFullFetch(bool $fullFetch)
  • getCacheAllPeersOnStartup()
  • setCacheAllPeersOnStartup(bool $cacheAllPeersOnStartup)

Methods:

getFullInfoCacheTime()

Get cache time for full peer information (seconds).

setFullInfoCacheTime(int $fullInfoCacheTime)

Set cache time for full peer information (seconds).

Parameters:

  • $fullInfoCacheTime: int Cache time for full peer information (seconds).

getFullFetch()

Get should madeline fetch the full member list of every group it meets?

setFullFetch(bool $fullFetch)

Set should madeline fetch the full member list of every group it meets?

Parameters:

  • $fullFetch: bool Should madeline fetch the full member list of every group it meets?

getCacheAllPeersOnStartup()

Get whether to cache all peers on startup for userbots.

setCacheAllPeersOnStartup(bool $cacheAllPeersOnStartup)

Set whether to cache all peers on startup for userbots.

Parameters:

  • $cacheAllPeersOnStartup: bool Whether to cache all peers on startup for userbots.

Generated by danog/phpdoc