Interface ScopeNotificationSettings

Contains information about notification settings for several chats.

interface ScopeNotificationSettings {
    @type: "scopeNotificationSettings";
    disable_mention_notifications?: boolean;
    disable_pinned_message_notifications?: boolean;
    mute_for: number;
    mute_stories?: boolean;
    show_preview?: boolean;
    show_story_sender?: boolean;
    sound_id: string;
    story_sound_id: string;
    use_default_mute_stories?: boolean;
}

Properties

@type: "scopeNotificationSettings"
disable_mention_notifications?: boolean

True, if notifications for messages with mentions will be created as for an ordinary unread message.

disable_pinned_message_notifications?: boolean

True, if notifications for incoming pinned messages will be created as for an ordinary unread message.

mute_for: number

Time left before notifications will be unmuted, in seconds.

mute_stories?: boolean

True, if story notifications are disabled.

show_preview?: boolean

True, if message content must be displayed in notifications.

show_story_sender?: boolean

True, if the sender of stories must be displayed in notifications.

sound_id: string

Identifier of the notification sound to be played; 0 if sound is disabled.

story_sound_id: string

Identifier of the notification sound to be played for stories; 0 if sound is disabled.

use_default_mute_stories?: boolean

If true, story notifications are received only for the first 5 chats from topChatCategoryUsers regardless of the value of mute_stories.