MadelineProto/docs/TD_docs/constructors/notificationSettings.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00: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}