Layer 227
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

Bool

Gogram 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.