Inherits Function.
Toggles whether notifications for new gifts received by a channel chat are sent to the current user; requires can_post_messages administrator right in the chat.
Returns object_ptr<Ok>.
Public Fields | |
| int53 | chat_id_ |
| Identifier of the channel chat. | |
| bool | are_enabled_ |
| Pass true to enable notifications about new gifts owned by the channel chat; pass false to disable the notifications. | |
Public Types | |
| using | ReturnType = object_ptr< ok > |
| Typedef for the type returned by the function. | |
Public Instance Methods | |
| toggleChatGiftNotifications () | |
| toggleChatGiftNotifications (int53 chat_id_, bool are_enabled_) | |
| 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 = -2069429154 |
| Identifier uniquely determining a type of the object. | |
Default constructor for a function, which toggles whether notifications for new gifts received by a channel chat are sent to the current user; requires can_post_messages administrator right in the chat.
Returns object_ptr<Ok>.
| toggleChatGiftNotifications | ( | int53 | chat_id_, |
| bool | are_enabled_ | ||
| ) |
Creates a function, which toggles whether notifications for new gifts received by a channel chat are sent to the current user; requires can_post_messages administrator right in the chat.
Returns object_ptr<Ok>.
| [in] | chat_id_ | Identifier of the channel chat. |
| [in] | are_enabled_ | Pass true to enable notifications about new gifts owned by the channel chat; pass false to disable the notifications. |
|
finalvirtual |