Layer 228
AccountPrivacyRulesObj
Privacy rules
constructor
account.privacyRules#50a04e45 rules:Vector<PrivacyRule> chats:Vector<Chat> users:Vector<User> = account.PrivacyRules;
Parameters
| Name | Type | Description |
|---|---|---|
| Rules | Vector<PrivacyRule> | Privacy rules |
| Chats | Vector<Chat> | Chats to which the rules apply |
| Users | Vector<User> | Users to which the rules apply |
Returns
account.PrivacyRulesGogram Example
// Creating AccountPrivacyRulesObj constructor obj := &tg.AccountPrivacyRulesObj{ Rules: []tg.PrivacyRule{&tg.PrivacyValueAllowAll{}}, Chats: []tg.Chat{&tg.ChatObj{}}, Users: []tg.User{&tg.UserObj{}}, }