MadelineProtoDocs/docs/API_docs/constructors/peerSettings.md
2020-09-12 12:47:38 +02:00

1.6 KiB

title description image
peerSettings Peer settings https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: peerSettings

Back to constructors index

Peer settings

Attributes:

Name Type Required Description
report_spam Bool Optional Whether we can still report the user for spam
add_contact Bool Optional Whether we can add the user as contact
block_contact Bool Optional Whether we can block the user
share_contact Bool Optional Whether we can share the user's contact
need_contacts_exception Bool Optional Whether a special exception for contacts is needed
report_geo Bool Optional Whether we can report a geogroup is irrelevant for this location
autoarchived Bool Optional
geo_distance int Optional

Type: PeerSettings

Example:

$peerSettings = ['_' => 'peerSettings', 'report_spam' => Bool, 'add_contact' => Bool, 'block_contact' => Bool, 'share_contact' => Bool, 'need_contacts_exception' => Bool, 'report_geo' => Bool, 'autoarchived' => Bool, 'geo_distance' => int];

Or, if you're into Lua:

peerSettings={_='peerSettings', report_spam=Bool, add_contact=Bool, block_contact=Bool, share_contact=Bool, need_contacts_exception=Bool, report_geo=Bool, autoarchived=Bool, geo_distance=int}