Layer 220
constructor
reactionsNotifySettings#56e34970 flags:# messages_notify_from:flags.0?ReactionNotificationsFrom stories_notify_from:flags.1?ReactionNotificationsFrom sound:NotificationSound show_previews:Bool = ReactionsNotifySettings;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
MessagesNotifyFrom flags.0?ReactionNotificationsFrom Message reaction notification settings, if not set completely disables notifications/updates about message reactions.
StoriesNotifyFrom flags.1?ReactionNotificationsFrom Story reaction notification settings, if not set completely disables notifications/updates about reactions to stories.
Sound NotificationSound Notification sound for reactions
ShowPreviews Bool If false, push notifications about message/story reactions will only be of type REACT_HIDDEN / REACT_STORY_HIDDEN, without any information about the reacted-to story or the reaction itself.

Gogram Example

// Creating ReactionsNotifySettings constructor
obj := &tg.ReactionsNotifySettings{
    Sound: &tg.NotificationSound{},
    ShowPreviews: true,

    // Optional fields:
    // MessagesNotifyFrom: &tg.ReactionNotificationsFrom{},
    // StoriesNotifyFrom: &tg.ReactionNotificationsFrom{},
}