Layer 220
constructor
inputPeerNotifySettings#cacb6ae2 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?NotificationSound stories_muted:flags.6?Bool stories_hide_sender:flags.7?Bool stories_sound:flags.8?NotificationSound = InputPeerNotifySettings;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
ShowPreviews flags.0?Bool If the text of the message shall be displayed in notification
Silent flags.1?Bool Peer was muted?
MuteUntil flags.2?int Date until which all notifications shall be switched off
Sound flags.3?NotificationSound Identifier of an audio file to play for notifications.
StoriesMuted flags.6?Bool Whether story notifications should be disabled.
StoriesHideSender flags.7?Bool Whether the sender name should be displayed in story notifications.
StoriesSound flags.8?NotificationSound Identifier of an audio file to play for story notifications.

Gogram Example

// Creating InputPeerNotifySettings constructor
obj := &tg.InputPeerNotifySettings{

    // Optional fields:
    // ShowPreviews: true,
    // Silent: true,
    // MuteUntil: 0,
    // Sound: &tg.NotificationSound{},
    // ... more optional fields
}