UpdatePeerSettings
- class pyrogram.raw.types.UpdatePeerSettings
Settings of a certain peer have changed
Constructor of
Update.- Details:
Layer:
223ID:
6A7E7366
- Parameters:
peer (
Peer) – The peersettings (
PeerSettings) – Associated peer settings
TL Schema
updatePeerSettings#6a7e7366
peer:Peer
settings:PeerSettings
= Update
Parameter Tree
UpdatePeerSettings
├── peer →
Peer│ ├──
PeerUser│ │ └── user_id →
long│ ├──
PeerChat│ │ └── chat_id →
long│ └──
PeerChannel│ └── channel_id →
long└── settings →
PeerSettings└──
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
UpdatePeerSettings(
peer=PeerUser(user_id=0),
settings=PeerSettings(),
)