PeerSettings

class pyrogram.raw.base.PeerSettings

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

Constructors:

This base type has 1 constructor available.

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.

TL Schema

peerSettings#f47741f7
flags:#
report_spam:flags.0?true
add_contact:flags.1?true
block_contact:flags.2?true
share_contact:flags.3?true
need_contacts_exception:flags.4?true
report_geo:flags.5?true
autoarchived:flags.7?true
invite_members:flags.8?true
request_chat_broadcast:flags.10?true
business_bot_paused:flags.11?true
business_bot_can_reply:flags.12?true
geo_distance:flags.6?int
request_chat_title:flags.9?string
request_chat_date:flags.9?int
business_bot_id:flags.13?long
business_bot_manage_url:flags.13?string
charge_paid_message_stars:flags.14?long
registration_month:flags.15?string
phone_country:flags.16?string
name_change_date:flags.17?int
photo_change_date:flags.18?int

= PeerSettings

Parameter Tree

PeerSettings
├── report_spamtrue (optional)
├── add_contacttrue (optional)
├── block_contacttrue (optional)
├── share_contacttrue (optional)
├── need_contacts_exceptiontrue (optional)
├── report_geotrue (optional)
├── autoarchivedtrue (optional)
├── invite_memberstrue (optional)
├── request_chat_broadcasttrue (optional)
├── business_bot_pausedtrue (optional)
├── business_bot_can_replytrue (optional)
├── geo_distanceint (optional)
├── request_chat_titlestring (optional)
├── request_chat_dateint (optional)
├── business_bot_idlong (optional)
├── business_bot_manage_urlstring (optional)
├── charge_paid_message_starslong (optional)
├── registration_monthstring (optional)
├── phone_countrystring (optional)
├── name_change_dateint (optional)
└── photo_change_dateint (optional)

Example

PeerSettings(
    report_spam=None,
    add_contact=None,
    block_contact=None,
    share_contact=None,
    need_contacts_exception=None,
    report_geo=None,
    autoarchived=None,
    invite_members=None,
    request_chat_broadcast=None,
    business_bot_paused=None,
    business_bot_can_reply=None,
    geo_distance=0,
    request_chat_title="text",
    request_chat_date=0,
    business_bot_id=0,
    business_bot_manage_url="text",
    charge_paid_message_stars=0,
    registration_month="text",
    phone_country="text",
    name_change_date=0,
    photo_change_date=0,
)