mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
3.6 KiB
3.6 KiB
title | description | nav_exclude | image |
---|---|---|---|
peerSettings | List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat action bar », see here » for more info. | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: peerSettings
List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat action bar », see here » for more info.
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 as irrelevant for this location |
autoarchived | Bool | Optional | Whether this peer was automatically archived according to privacy settings and can be unarchived |
invite_members | Bool | Optional | If set, this is a recently created group chat to which new members can be invited |
request_chat_broadcast | Bool | Optional | This 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). |
business_bot_paused | Bool | Optional | |
business_bot_can_reply | Bool | Optional | |
geo_distance | int | Optional | Distance in meters between us and this peer |
request_chat_title | string | Optional | If 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_date | int | Optional | If 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. |
business_bot_id | long | Optional | |
business_bot_manage_url | string | 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, 'invite_members' => Bool, 'request_chat_broadcast' => Bool, 'business_bot_paused' => Bool, 'business_bot_can_reply' => Bool, 'geo_distance' => int, 'request_chat_title' => 'string', 'request_chat_date' => int, 'business_bot_id' => long, 'business_bot_manage_url' => 'string'];