MadelineProtoDocs/docs/API_docs/constructors/peerSettings.md

1.2 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 Report spam?
add_contact Bool Optional Can add as a contact?
block_contact Bool Optional Block contact
share_contact Bool Optional Share contact
need_contacts_exception Bool Optional Contact exception
report_geo Bool Optional Geotype

Type: PeerSettings

Example:

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

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}