public static class TdApi.NewChatPrivacySettings extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
allowNewChatsFromUnknownUsers
True, if non-contacts users are able to write first to the current user.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
| Constructor and Description |
|---|
NewChatPrivacySettings()
Contains privacy settings for new chats with non-contacts.
|
NewChatPrivacySettings(boolean allowNewChatsFromUnknownUsers)
Contains privacy settings for new chats with non-contacts.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic boolean allowNewChatsFromUnknownUsers
public static final int CONSTRUCTOR
public NewChatPrivacySettings()
public NewChatPrivacySettings(boolean allowNewChatsFromUnknownUsers)
allowNewChatsFromUnknownUsers - True, if non-contacts users are able to write first to the current user. Telegram Premium subscribers are able to write first regardless of this setting.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object