TDLib
Loading...
Searching...
No Matches
businessAwayMessageSettings Class Referencefinal

Inherits Object.

Description

Describes settings for messages that are automatically sent by a Telegram Business account when it is away.

Public Member Functions

 businessAwayMessageSettings ()
 businessAwayMessageSettings (int32 shortcut_id_, object_ptr< businessRecipients > &&recipients_, object_ptr< BusinessAwayMessageSchedule > &&schedule_, bool offline_only_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

bool offline_only_
 True, if the messages must not be sent if the account was online in the last 10 minutes.
object_ptr< businessRecipients > recipients_
 Chosen recipients of the away messages.
object_ptr< BusinessAwayMessageSchedule > schedule_
 Settings used to check whether the current user is away.
int32 shortcut_id_
 Unique quick reply shortcut identifier for the away messages.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ businessAwayMessageSettings() [1/2]

businessAwayMessageSettings ( )

Describes settings for messages that are automatically sent by a Telegram Business account when it is away.

◆ businessAwayMessageSettings() [2/2]

businessAwayMessageSettings ( int32 shortcut_id_,
object_ptr< businessRecipients > && recipients_,
object_ptr< BusinessAwayMessageSchedule > && schedule_,
bool offline_only_ )

Describes settings for messages that are automatically sent by a Telegram Business account when it is away.

Parameters
[in]shortcut_id_Unique quick reply shortcut identifier for the away messages.
[in]recipients_Chosen recipients of the away messages.
[in]schedule_Settings used to check whether the current user is away.
[in]offline_only_True, if the messages must not be sent if the account was online in the last 10 minutes.

Member Function 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: