Link Search Menu Expand Document

Constructor: peerNotifySettings

Back to constructors index

Notification settings.

Attributes:

NameTypeRequiredDescription
show_previewsBoolOptional(Ternary value) If set, indicates whether or not to display previews of messages in notifications; otherwise the default behavior should be used.
silentBoolOptional(Ternary value) If set, indicates whether to mute or unmute the peer; otherwise the default behavior should be used.
mute_untilintOptionalMute all notifications until this date
ios_soundNotificationSoundOptionalNotification sound for the official iOS application
android_soundNotificationSoundOptionalNotification sound for the official android application
other_soundNotificationSoundOptionalNotification sound for other applications
stories_mutedBoolOptionalWhether story notifications should be disabled.
stories_hide_senderBoolOptionalWhether the sender name should be displayed in story notifications.
stories_ios_soundNotificationSoundOptionalSound for story notifications on the official iOS application
stories_android_soundNotificationSoundOptionalSound for story notifications on the official Android application
stories_other_soundNotificationSoundOptionalSound for story notifications on other applications

Type: PeerNotifySettings

Example:

$peerNotifySettings = ['_' => 'peerNotifySettings', 'show_previews' => Bool, 'silent' => Bool, 'mute_until' => int, 'ios_sound' => NotificationSound, 'android_sound' => NotificationSound, 'other_sound' => NotificationSound, 'stories_muted' => Bool, 'stories_hide_sender' => Bool, 'stories_ios_sound' => NotificationSound, 'stories_android_sound' => NotificationSound, 'stories_other_sound' => NotificationSound];