Raw.PeerNotifySettings
Notification settings.
peerNotifySettings#99622c0c flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int ios_sound:flags.3?NotificationSound android_sound:flags.4?NotificationSound other_sound:flags.5?NotificationSound stories_muted:flags.6?Bool stories_hide_sender:flags.7?Bool stories_ios_sound:flags.8?NotificationSound stories_android_sound:flags.9?NotificationSound stories_other_sound:flags.10?NotificationSound = PeerNotifySettings;
export namespace Raw {
export class PeerNotifySettings {
constructor(params: {
showPreviews?: boolean;
silent?: boolean;
muteUntil?: number;
iosSound?: Raw.TypeNotificationSound;
androidSound?: Raw.TypeNotificationSound;
otherSound?: Raw.TypeNotificationSound;
storiesMuted?: boolean;
storiesHideSender?: boolean;
storiesIosSound?: Raw.TypeNotificationSound;
storiesAndroidSound?: Raw.TypeNotificationSound;
storiesOtherSound?: Raw.TypeNotificationSound;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x99622c0c
Property
showPreviews
: boolean or undefined(ternary value) if set, indicates whether or not to display previews of messages in notifications; otherwise the default behavior should be used.
silent
: boolean or undefined(ternary value) if set, indicates whether to mute or unmute the peer; otherwise the default behavior should be used.
muteUntil
: number or undefinedMute all notifications until this date
iosSound
: Raw.TypeNotificationSound or undefinedNotification sound for the official ios application
androidSound
: Raw.TypeNotificationSound or undefinedNotification sound for the official android application
otherSound
: Raw.TypeNotificationSound or undefinedNotification sound for other applications
storiesMuted
: boolean or undefinedWhether story notifications should be disabled.
storiesHideSender
: boolean or undefinedWhether the sender name should be displayed in story notifications.
storiesIosSound
: Raw.TypeNotificationSound or undefinedSound for story notifications on the official ios application
storiesAndroidSound
: Raw.TypeNotificationSound or undefinedSound for story notifications on the official android application
storiesOtherSound
: Raw.TypeNotificationSound or undefinedSound for story notifications on other applications