Inherits Function.
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 | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject (TlObject &&)=default | |
| TlObject & | operator= (TlObject &&)=default |
| virtual | ~TlObject ()=default |
Static Public Attributes | |
| static const std::int32_t | ID = -335898703 |
| Identifier uniquely determining a type of the object. | |
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 | ( | 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>.
| [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. |
|
finalvirtual |