Layer 227
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
payments.toggleChatStarGiftNotifications#60eaefa1 flags:# enabled:flags.0?true peer:InputPeer = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| 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
BoolGogram Example
// PaymentsToggleChatStarGiftNotifications - positional arguments result, err := client.PaymentsToggleChatStarGiftNotifications(nil, &tg.InputPeerUser{UserID: int64(777000)}) if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |