Link Search Menu Expand Document

Constructor: peerSettings

Back to constructors index

List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat bar

Attributes:

NameTypeRequiredDescription
report_spamBoolOptionalWhether we can still report the user for spam
add_contactBoolOptionalWhether we can add the user as contact
block_contactBoolOptionalWhether we can block the user
share_contactBoolOptionalWhether we can share the user’s contact
need_contacts_exceptionBoolOptionalWhether a special exception for contacts is needed
report_geoBoolOptionalWhether we can report a geogroup as irrelevant for this location
autoarchivedBoolOptionalWhether this peer was automatically archived according to privacy settings and can be unarchived
invite_membersBoolOptionalIf set, this is a recently created group chat to which new members can be invited
request_chat_broadcastBoolOptionalThis flag is set if request_chat_title and request_chat_date fields are set and the join request » is related to a channel (otherwise if only the request fields are set, the join request » is related to a chat).
geo_distanceintOptionalDistance in meters between us and this peer
request_chat_titlestringOptionalIf set, this is a private chat with an administrator of a chat or channel to which the user sent a join request, and this field contains the chat/channel’s title.
request_chat_dateintOptionalIf set, this is a private chat with an administrator of a chat or channel to which the user sent a join request, and this field contains the timestamp when the join request » was sent.

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, 'invite_members' => Bool, 'request_chat_broadcast' => Bool, 'geo_distance' => int, 'request_chat_title' => 'string', 'request_chat_date' => int];