payments.toggleChatStarGiftNotifications
启用或禁用每次指定渠道收到礼物时接收通知,只能由具有 `post_messages` 管理员权限的管理员调用。
启用或禁用指定通道每次收到[礼物»](https://core.telegram.org/api/gifts.md)时接收通知,只能由具有`post_messages`[管理员权限](https://core.telegram.org/constructor/chatAdminRights.md)的管理员调用。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
enabled | true | 否 | 是否启用或禁用从通道接收 [messageActionStarGiftUnique](https://core.telegram.org/constructor/messageActionStarGiftUnique.md) 和 [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md)] 服务消息形式的通知。 |
peer | InputPeer | 是的 | 接收或不接收通知的通道。 |
回应
Bool
MTProto RPC
- 400 · PEER_ID_INVALID — 提供的对等 ID 无效。