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
useDefaultMuteForIf true, mute_for is ignored and the value for the relevant type of chat is used instead
muteForTime left before notifications will be unmuted, in seconds
useDefaultSoundIf true, sound is ignored and the value for the relevant type of chat is used instead
soundThe name of an audio file to be used for notification sounds; only applies to iOS applications
useDefaultShowPreviewIf true, show_preview is ignored and the value for the relevant type of chat is used instead
showPreviewTrue, if message content should be displayed in notifications
useDefaultDisablePinnedMessageNotificationsIf true, disable_pinned_message_notifications is ignored and the value for the relevant type of chat is used instead
disablePinnedMessageNotificationsIf true, notifications for incoming pinned messages will be created as for an ordinary unread message
useDefaultDisableMentionNotificationsIf true, disable_mention_notifications is ignored and the value for the relevant type of chat is used instead
disableMentionNotificationsIf true, notifications for messages with mentions will be created as for an ordinary unread message
View on GitHub
Install in Dash
ChatNotificationSettings Structure Reference