List of all members | Public Fields | Public Types | Public Instance Methods | Static Public Attributes
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 Fields

int53 chat_id_
 Chat identifier.
 
int53 topic_id_
 Identifier of the topic.
 
bool can_send_unpaid_messages_
 Pass true to allow unpaid messages; pass false to disallow unpaid messages.
 
bool refund_payments_
 Pass true to refund the user previously paid messages.
 

Public Types

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

Public Instance Methods

 toggleDirectMessagesChatTopicCanSendUnpaidMessages ()
 
 toggleDirectMessagesChatTopicCanSendUnpaidMessages (int53 chat_id_, int53 topic_id_, bool can_send_unpaid_messages_, bool refund_payments_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from 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
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ toggleDirectMessagesChatTopicCanSendUnpaidMessages() [1/2]

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.

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