Interface ChatNotificationSettings

Contains information about notification settings for a chat or a forum topic.

interface ChatNotificationSettings {
    @type: "chatNotificationSettings";
    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_disable_mention_notifications?: boolean;
    use_default_disable_pinned_message_notifications?: boolean;
    use_default_mute_for?: boolean;
    use_default_mute_stories?: boolean;
    use_default_show_preview?: boolean;
    use_default_show_story_sender?: boolean;
    use_default_sound?: boolean;
    use_default_story_sound?: boolean;
}

Properties

@type: "chatNotificationSettings"
disable_mention_notifications?: boolean

If true, notifications for messages with mentions will be created as for an ordinary unread message.

disable_pinned_message_notifications?: boolean

If true, 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 for the chat.

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 for messages; 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_disable_mention_notifications?: boolean

If true, the value for the relevant type of chat or the forum chat is used instead of disable_mention_notifications.

use_default_disable_pinned_message_notifications?: boolean

If true, the value for the relevant type of chat or the forum chat is used instead of disable_pinned_message_notifications.

use_default_mute_for?: boolean

If true, the value for the relevant type of chat or the forum chat is used instead of mute_for.

use_default_mute_stories?: boolean

If true, the value for the relevant type of chat is used instead of mute_stories.

use_default_show_preview?: boolean

If true, the value for the relevant type of chat or the forum chat is used instead of show_preview.

use_default_show_story_sender?: boolean

If true, the value for the relevant type of chat is used instead of show_story_sender.

use_default_sound?: boolean

If true, the value for the relevant type of chat or the forum chat is used instead of sound_id.

use_default_story_sound?: boolean

If true, the value for the relevant type of chat is used instead of story_sound_id.