Layer 224
method Users

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 - using Params struct
result, err := client.PaymentsToggleChatStarGiftNotifications(&tg.PaymentsToggleChatStarGiftNotificationsParams{
    Peer: &tg.InputPeerUser{UserID: int64(777000)},

    // Optional fields:
    // Enabled: true,
})
if err != nil {
    // handle error
}
// result is *tg.Bool

Possible Errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.