ChatNotificationSettings
public struct ChatNotificationSettings : Codable, Equatable, FunctionResult
Contains information about notification settings for a chat
-
If true, mute_for is ignored and the value for the relevant type of chat is used instead
Declaration
Swift
public let useDefaultMuteFor: Bool
-
Time left before notifications will be unmuted, in seconds
Declaration
Swift
public let muteFor: Int32
-
If true, sound is ignored and the value for the relevant type of chat is used instead
Declaration
Swift
public let useDefaultSound: Bool
-
The name of an audio file to be used for notification sounds; only applies to iOS applications
Declaration
Swift
public let sound: String
-
If true, show_preview is ignored and the value for the relevant type of chat is used instead
Declaration
Swift
public let useDefaultShowPreview: Bool
-
True, if message content should be displayed in notifications
Declaration
Swift
public let showPreview: Bool
-
If true, disable_pinned_message_notifications is ignored and the value for the relevant type of chat is used instead
Declaration
Swift
public let useDefaultDisablePinnedMessageNotifications: Bool
-
If true, notifications for incoming pinned messages will be created as for an ordinary unread message
Declaration
Swift
public let disablePinnedMessageNotifications: Bool
-
If true, disable_mention_notifications is ignored and the value for the relevant type of chat is used instead
Declaration
Swift
public let useDefaultDisableMentionNotifications: Bool
-
If true, notifications for messages with mentions will be created as for an ordinary unread message
Declaration
Swift
public let disableMentionNotifications: Bool
-
init(useDefaultMuteFor:muteFor:useDefaultSound:sound:useDefaultShowPreview:showPreview:useDefaultDisablePinnedMessageNotifications:disablePinnedMessageNotifications:useDefaultDisableMentionNotifications:disableMentionNotifications:)
Contains information about notification settings for a chat
Declaration
Swift
public init(useDefaultMuteFor: Bool, muteFor: Int32, useDefaultSound: Bool, sound: String, useDefaultShowPreview: Bool, showPreview: Bool, useDefaultDisablePinnedMessageNotifications: Bool, disablePinnedMessageNotifications: Bool, useDefaultDisableMentionNotifications: Bool, disableMentionNotifications: Bool)
Parameters
useDefaultMuteFor
If true, mute_for is ignored and the value for the relevant type of chat is used instead
muteFor
Time left before notifications will be unmuted, in seconds
useDefaultSound
If true, sound is ignored and the value for the relevant type of chat is used instead
sound
The name of an audio file to be used for notification sounds; only applies to iOS applications
useDefaultShowPreview
If true, show_preview is ignored and the value for the relevant type of chat is used instead
showPreview
True, if message content should be displayed in notifications
useDefaultDisablePinnedMessageNotifications
If true, disable_pinned_message_notifications is ignored and the value for the relevant type of chat is used instead
disablePinnedMessageNotifications
If true, notifications for incoming pinned messages will be created as for an ordinary unread message
useDefaultDisableMentionNotifications
If true, disable_mention_notifications is ignored and the value for the relevant type of chat is used instead
disableMentionNotifications
If true, notifications for messages with mentions will be created as for an ordinary unread message