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

Inherits Object.

Description

Contains information about a Telegram Business account.

Public Member Functions

 businessInfo ()
 businessInfo (object_ptr< businessLocation > &&location_, object_ptr< businessOpeningHours > &&opening_hours_, object_ptr< businessOpeningHours > &&local_opening_hours_, int32 next_open_in_, int32 next_close_in_, object_ptr< businessGreetingMessageSettings > &&greeting_message_settings_, object_ptr< businessAwayMessageSettings > &&away_message_settings_, object_ptr< businessStartPage > &&start_page_)
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

object_ptr< businessAwayMessageSettings > away_message_settings_
 The away message; may be null if none or the Business account is not of the current user.
object_ptr< businessGreetingMessageSettings > greeting_message_settings_
 The greeting message; may be null if none or the Business account is not of the current user.
object_ptr< businessOpeningHours > local_opening_hours_
 Opening hours of the business in the local time; may be null if none. The hours are guaranteed to be valid and have already been split by week days. Local time zone identifier will be empty. An updateUserFullInfo update is not triggered when value of this field changes.
object_ptr< businessLocation > location_
 Location of the business; may be null if none.
int32 next_close_in_
 Time left before the business will close the next time, in seconds; 0 if unknown. An updateUserFullInfo update is not triggered when value of this field changes.
int32 next_open_in_
 Time left before the business will open the next time, in seconds; 0 if unknown. An updateUserFullInfo update is not triggered when value of this field changes.
object_ptr< businessOpeningHours > opening_hours_
 Opening hours of the business; may be null if none. The hours are guaranteed to be valid and have already been split by week days.
object_ptr< businessStartPage > start_page_
 Information about start page of the account; may be null if none.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ businessInfo() [1/2]

businessInfo ( )

Contains information about a Telegram Business account.

◆ businessInfo() [2/2]

businessInfo ( object_ptr< businessLocation > && location_,
object_ptr< businessOpeningHours > && opening_hours_,
object_ptr< businessOpeningHours > && local_opening_hours_,
int32 next_open_in_,
int32 next_close_in_,
object_ptr< businessGreetingMessageSettings > && greeting_message_settings_,
object_ptr< businessAwayMessageSettings > && away_message_settings_,
object_ptr< businessStartPage > && start_page_ )

Contains information about a Telegram Business account.

Parameters
[in]location_Location of the business; may be null if none.
[in]opening_hours_Opening hours of the business; may be null if none. The hours are guaranteed to be valid and have already been split by week days.
[in]local_opening_hours_Opening hours of the business in the local time; may be null if none. The hours are guaranteed to be valid and have already been split by week days. Local time zone identifier will be empty. An updateUserFullInfo update is not triggered when value of this field changes.
[in]next_open_in_Time left before the business will open the next time, in seconds; 0 if unknown. An updateUserFullInfo update is not triggered when value of this field changes.
[in]next_close_in_Time left before the business will close the next time, in seconds; 0 if unknown. An updateUserFullInfo update is not triggered when value of this field changes.
[in]greeting_message_settings_The greeting message; may be null if none or the Business account is not of the current user.
[in]away_message_settings_The away message; may be null if none or the Business account is not of the current user.
[in]start_page_Information about start page of the account; may be null if none.

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: