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

Inherits Function.

Description

Allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user.

Returns object_ptr<Ok>.

Public Types

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

Public Member Functions

void store (TlStorerToString &s, const char *field_name) const final
 toggleDirectMessagesChatTopicCanSendUnpaidMessages ()
 toggleDirectMessagesChatTopicCanSendUnpaidMessages (int53 chat_id_, int53 topic_id_, bool can_send_unpaid_messages_, bool refund_payments_)
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 can_send_unpaid_messages_
 Pass true to allow unpaid messages; pass false to disallow unpaid messages.
int53 chat_id_
 Chat identifier.
bool refund_payments_
 Pass true to refund the user previously paid messages.
int53 topic_id_
 Identifier of the topic.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ toggleDirectMessagesChatTopicCanSendUnpaidMessages() [1/2]

toggleDirectMessagesChatTopicCanSendUnpaidMessages ( )

Default constructor for a function, which allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user.

Returns object_ptr<Ok>.

◆ toggleDirectMessagesChatTopicCanSendUnpaidMessages() [2/2]

toggleDirectMessagesChatTopicCanSendUnpaidMessages ( int53 chat_id_,
int53 topic_id_,
bool can_send_unpaid_messages_,
bool refund_payments_ )

Creates a function, which allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user.

Returns object_ptr<Ok>.

Parameters
[in]chat_id_Chat identifier.
[in]topic_id_Identifier of the topic.
[in]can_send_unpaid_messages_Pass true to allow unpaid messages; pass false to disallow unpaid messages.
[in]refund_payments_Pass true to refund the user previously paid messages.

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: