ScopeNotificationSettings

public struct ScopeNotificationSettings : Codable, Equatable, FunctionResult

Contains information about notification settings for several chats

  • Time left before notifications will be unmuted, in seconds

    Declaration

    Swift

    public let muteFor: Int32
  • The name of an audio file to be used for notification sounds; only applies to iOS applications

    Declaration

    Swift

    public let sound: String
  • True, if message content should be displayed in notifications

    Declaration

    Swift

    public let showPreview: Bool
  • True, if notifications for incoming pinned messages will be created as for an ordinary unread message

    Declaration

    Swift

    public let disablePinnedMessageNotifications: Bool
  • True, if notifications for messages with mentions will be created as for an ordinary unread message

    Declaration

    Swift

    public let disableMentionNotifications: Bool
  • Contains information about notification settings for several chats

    Declaration

    Swift

    public init(muteFor: Int32, sound: String, showPreview: Bool, disablePinnedMessageNotifications: Bool, disableMentionNotifications: Bool)

    Parameters

    muteFor

    Time left before notifications will be unmuted, in seconds

    sound

    The name of an audio file to be used for notification sounds; only applies to iOS applications

    showPreview

    True, if message content should be displayed in notifications

    disablePinnedMessageNotifications

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

    disableMentionNotifications

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