MadelineProto/docs/TD_docs/constructors/notificationSettings.md
2017-07-23 16:33:46 +02:00

1.1 KiB

title description
notificationSettings Contains information about notification settings for chat or chats

Constructor: notificationSettings

Back to constructors index

Contains information about notification settings for chat or chats

Attributes:

Name Type Required Description
mute_for int Yes Time left before notifications will be unmuted
sound string Yes Audio file name for notifications, iPhone apps only
show_preview Bool Yes Display message text/media in notification

Type: NotificationSettings

Example:

$notificationSettings = ['_' => 'notificationSettings', 'mute_for' => int, 'sound' => 'string', 'show_preview' => Bool];

PWRTelegram json-encoded version:

{"_": "notificationSettings", "mute_for": int, "sound": "string", "show_preview": Bool}

Or, if you're into Lua:

notificationSettings={_='notificationSettings', mute_for=int, sound='string', show_preview=Bool}