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.
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_spam →
true (optional)├── add_contact →
true (optional)├── block_contact →
true (optional)├── share_contact →
true (optional)├── need_contacts_exception →
true (optional)├── report_geo →
true (optional)├── autoarchived →
true (optional)├── invite_members →
true (optional)├── request_chat_broadcast →
true (optional)├── business_bot_paused →
true (optional)├── business_bot_can_reply →
true (optional)├── geo_distance →
int (optional)├── request_chat_title →
string (optional)├── request_chat_date →
int (optional)├── business_bot_id →
long (optional)├── business_bot_manage_url →
string (optional)├── charge_paid_message_stars →
long (optional)├── registration_month →
string (optional)├── phone_country →
string (optional)├── name_change_date →
int (optional)└── photo_change_date →
int (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,
)