List of all members | Public Fields | Public Instance Methods | Static Public Attributes
newChatPrivacySettings Class Referencefinal

Inherits Object.

Description

Contains privacy settings for new chats with non-contacts.

Public Fields

bool allow_new_chats_from_unknown_users_
 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 Instance Methods

 newChatPrivacySettings ()
 
 newChatPrivacySettings (bool allow_new_chats_from_unknown_users_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

static const std::int32_t ID = 1528154694
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ newChatPrivacySettings() [1/2]

Contains privacy settings for new chats with non-contacts.

◆ newChatPrivacySettings() [2/2]

newChatPrivacySettings ( bool  allow_new_chats_from_unknown_users_)
explicit

Contains privacy settings for new chats with non-contacts.

Parameters
[in]allow_new_chats_from_unknown_users_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.

Method Documentation

◆ store()

void store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: