tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::sendBusinessMessage Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::sendBusinessMessage:
td::td_api::Function td::TlObject

Public Types

using ReturnType = object_ptr< businessMessage >
 Typedef for the type returned by the function.
 

Public Member Functions

 sendBusinessMessage ()
 
 sendBusinessMessage (string const &business_connection_id_, int53 chat_id_, object_ptr< InputMessageReplyTo > &&reply_to_, bool disable_notification_, bool protect_content_, int64 effect_id_, object_ptr< ReplyMarkup > &&reply_markup_, object_ptr< InputMessageContent > &&input_message_content_)
 
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

string business_connection_id_
 Unique identifier of business connection on behalf of which to send the request.
 
int53 chat_id_
 Target chat.
 
object_ptr< InputMessageReplyToreply_to_
 Information about the message to be replied; pass null if none.
 
bool disable_notification_
 Pass true to disable notification for the message.
 
bool protect_content_
 Pass true if the content of the message must be protected from forwarding and saving.
 
int64 effect_id_
 Identifier of the effect to apply to the message.
 
object_ptr< ReplyMarkupreply_markup_
 Markup for replying to the message; pass null if none.
 
object_ptr< InputMessageContentinput_message_content_
 The content of the message to be sent.
 

Static Public Attributes

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

Detailed Description

Sends a message on behalf of a business account; for bots only. Returns the message after it was sent.

Returns object_ptr<BusinessMessage>.

Definition at line 125495 of file td_api.h.

Member Typedef Documentation

◆ ReturnType

Typedef for the type returned by the function.

Definition at line 125549 of file td_api.h.

Constructor & Destructor Documentation

◆ sendBusinessMessage() [1/2]

td::td_api::sendBusinessMessage::sendBusinessMessage ( )

Default constructor for a function, which sends a message on behalf of a business account; for bots only. Returns the message after it was sent.

Returns object_ptr<BusinessMessage>.

◆ sendBusinessMessage() [2/2]

td::td_api::sendBusinessMessage::sendBusinessMessage ( string const &  business_connection_id_,
int53  chat_id_,
object_ptr< InputMessageReplyTo > &&  reply_to_,
bool  disable_notification_,
bool  protect_content_,
int64  effect_id_,
object_ptr< ReplyMarkup > &&  reply_markup_,
object_ptr< InputMessageContent > &&  input_message_content_ 
)

Creates a function, which sends a message on behalf of a business account; for bots only. Returns the message after it was sent.

Returns object_ptr<BusinessMessage>.

Parameters
[in]business_connection_id_Unique identifier of business connection on behalf of which to send the request.
[in]chat_id_Target chat.
[in]reply_to_Information about the message to be replied; pass null if none.
[in]disable_notification_Pass true to disable notification for the message.
[in]protect_content_Pass true if the content of the message must be protected from forwarding and saving.
[in]effect_id_Identifier of the effect to apply to the message.
[in]reply_markup_Markup for replying to the message; pass null if none.
[in]input_message_content_The content of the message to be sent.

Member Function Documentation

◆ store()

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

Member Data Documentation

◆ business_connection_id_

string td::td_api::sendBusinessMessage::business_connection_id_

Unique identifier of business connection on behalf of which to send the request.

Definition at line 125506 of file td_api.h.

◆ chat_id_

int53 td::td_api::sendBusinessMessage::chat_id_

Target chat.

Definition at line 125508 of file td_api.h.

◆ disable_notification_

bool td::td_api::sendBusinessMessage::disable_notification_

Pass true to disable notification for the message.

Definition at line 125512 of file td_api.h.

◆ effect_id_

int64 td::td_api::sendBusinessMessage::effect_id_

Identifier of the effect to apply to the message.

Definition at line 125516 of file td_api.h.

◆ ID

const std::int32_t td::td_api::sendBusinessMessage::ID = 159888387
static

Identifier uniquely determining a type of the object.

Definition at line 125546 of file td_api.h.

◆ input_message_content_

object_ptr<InputMessageContent> td::td_api::sendBusinessMessage::input_message_content_

The content of the message to be sent.

Definition at line 125520 of file td_api.h.

◆ protect_content_

bool td::td_api::sendBusinessMessage::protect_content_

Pass true if the content of the message must be protected from forwarding and saving.

Definition at line 125514 of file td_api.h.

◆ reply_markup_

object_ptr<ReplyMarkup> td::td_api::sendBusinessMessage::reply_markup_

Markup for replying to the message; pass null if none.

Definition at line 125518 of file td_api.h.

◆ reply_to_

object_ptr<InputMessageReplyTo> td::td_api::sendBusinessMessage::reply_to_

Information about the message to be replied; pass null if none.

Definition at line 125510 of file td_api.h.


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