payments.toggleChatStarGiftNotifications
Enables or disables the reception of notifications every time a gift » is received by the specified channel, can only be invoked by admins with `post_messages` admin rights.
Enables or disables the reception of notifications every time a [gift »](https://core.telegram.org/api/gifts.md) is received by the specified channel, can only be invoked by admins with `post_messages` [admin rights](https://core.telegram.org/constructor/chatAdminRights.md).
| Name | Type | Required | Description |
|---|---|---|---|
enabled | true | No | Whether to enable or disable reception of notifications in the form of [messageActionStarGiftUnique](https://core.telegram.org/constructor/messageActionStarGiftUnique.md) and [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md) service messages from the channel. |
peer | InputPeer | Yes | The channel for which to receive or not receive notifications. |
Replies
Bool
MTProto RPC
- 400 · PEER_ID_INVALID — The provided peer id is invalid.