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

Inherits Function.

Description

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

Returns object_ptr<BusinessMessage>.

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 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

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

Static Public Attributes

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

Constructor & Destructor Documentation

◆ sendBusinessMessage() [1/2]

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]

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