TDLib
Loading...
Searching...
No Matches
td::td_api::messageSendOptions Class Referencefinal

Inherits td::td_api::Object.

Public Member Functions

 messageSendOptions ()
 
 messageSendOptions (bool disable_notification_, bool from_background_, bool protect_content_, bool update_order_of_installed_sticker_sets_, object_ptr< MessageSchedulingState > &&scheduling_state_, int32 sending_id_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::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
 

Public Attributes

bool disable_notification_
 Pass true to disable notification for the message.
 
bool from_background_
 Pass true if the message is sent from the background.
 
bool protect_content_
 Pass true if the content of the message must be protected from forwarding and saving; for bots only.
 
bool update_order_of_installed_sticker_sets_
 Pass true if the user explicitly chosen a sticker or a custom emoji from an installed sticker set; applicable only to sendMessage and sendMessageAlbum.
 
object_ptr< MessageSchedulingStatescheduling_state_
 Message scheduling state; pass null to send message immediately. Messages sent to a secret chat, live location messages and self-destructing messages can't be scheduled.
 
int32 sending_id_
 Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates.
 

Static Public Attributes

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

Detailed Description

Options to be used when a message is sent.

Constructor & Destructor Documentation

◆ messageSendOptions() [1/2]

td::td_api::messageSendOptions::messageSendOptions ( )

Options to be used when a message is sent.

◆ messageSendOptions() [2/2]

td::td_api::messageSendOptions::messageSendOptions ( bool  disable_notification_,
bool  from_background_,
bool  protect_content_,
bool  update_order_of_installed_sticker_sets_,
object_ptr< MessageSchedulingState > &&  scheduling_state_,
int32  sending_id_ 
)

Options to be used when a message is sent.

Parameters
[in]disable_notification_Pass true to disable notification for the message.
[in]from_background_Pass true if the message is sent from the background.
[in]protect_content_Pass true if the content of the message must be protected from forwarding and saving; for bots only.
[in]update_order_of_installed_sticker_sets_Pass true if the user explicitly chosen a sticker or a custom emoji from an installed sticker set; applicable only to sendMessage and sendMessageAlbum.
[in]scheduling_state_Message scheduling state; pass null to send message immediately. Messages sent to a secret chat, live location messages and self-destructing messages can't be scheduled.
[in]sending_id_Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::messageSendOptions::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::messageSendOptions::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 td::TlObject.


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