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

Bool

Possible 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