Layer 220
PaymentsToggleChatStarGiftNotifications
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.
method
Users
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Enabled | flags.0?true | Whether to enable or disable reception of notifications in the form of message Action Star Gift Unique and message Action Star Gift service messages from the channel. |
| Peer | InputPeer | The channel for which to receive or not receive notifications. |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// PaymentsToggleChatStarGiftNotifications - using Params struct result, err := client.PaymentsToggleChatStarGiftNotifications(&tg.PaymentsToggleChatStarGiftNotificationsParams{ Peer: &tg.InputPeerUser{UserID: int64(123456789)}, // Optional fields: // Enabled: true, }) if err != nil { // handle error } // result is *tg.Bool