Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>PeerNotifySettings_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class PeerNotifySettings_
import { PeerNotifySettings_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Notification settings.

Constructors

new
PeerNotifySettings_(params?: { show_previews?: boolean; silent?: boolean; mute_until?: number; ios_sound?: enums.NotificationSound; android_sound?: enums.NotificationSound; other_sound?: enums.NotificationSound; stories_muted?: boolean; stories_hide_sender?: boolean; stories_ios_sound?: enums.NotificationSound; stories_android_sound?: enums.NotificationSound; stories_other_sound?: enums.NotificationSound; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
android_sound: enums.NotificationSound

Notification sound for the official android application

optional
ios_sound: enums.NotificationSound

Notification sound for the official iOS application

optional
mute_until: number

Mute all notifications until this date

optional
other_sound: enums.NotificationSound

Notification sound for other applications

optional
show_previews: boolean

(Ternary value) If set, indicates whether or not to display previews of messages in notifications; otherwise the default behavior should be used.

optional
silent: boolean

(Ternary value) If set, indicates whether to mute or unmute the peer; otherwise the default behavior should be used.

optional
stories_android_sound: enums.NotificationSound

Sound for story notifications on the official Android application

optional
stories_hide_sender: boolean

Whether the sender name should be displayed in story notifications.

optional
stories_ios_sound: enums.NotificationSound

Sound for story notifications on the official iOS application

optional
stories_muted: boolean

Whether story notifications should be disabled.

optional
stories_other_sound: enums.NotificationSound

Sound for story notifications on other applications

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc