InputPeerNotifySettings

class pyrogram.raw.types.InputPeerNotifySettings

Notification settings.

Constructor of InputPeerNotifySettings.

Details:
  • Layer: 223

  • ID: CACB6AE2

Parameters:
  • show_previews (bool, optional) – If the text of the message shall be displayed in notification

  • silent (bool, optional) – Peer was muted?

  • mute_until (int 32-bit, optional) – Date until which all notifications shall be switched off

  • sound (NotificationSound, optional) – Identifier of an audio file to play for notifications.

  • stories_muted (bool, optional) – Whether story notifications should be disabled.

  • stories_hide_sender (bool, optional) – Whether the sender name should be displayed in story notifications.

  • stories_sound (NotificationSound, optional) – Identifier of an audio file to play for story notifications.

TL Schema

inputPeerNotifySettings#cacb6ae2
flags:#
show_previews:flags.0?Bool
silent:flags.1?Bool
mute_until:flags.2?int
sound:flags.3?NotificationSound
stories_muted:flags.6?Bool
stories_hide_sender:flags.7?Bool
stories_sound:flags.8?NotificationSound

= InputPeerNotifySettings

Parameter Tree

InputPeerNotifySettings
├── show_previewsBool (optional)
├── silentBool (optional)
├── mute_untilint (optional)
├── soundNotificationSound (optional)
│ ├── NotificationSoundNone
│ │ ├── titlestring
│ │ └── datastring
│ └── idlong
├── stories_mutedBool (optional)
├── stories_hide_senderBool (optional)
└── stories_soundNotificationSound (optional)
│ ├── titlestring
│ └── datastring
└── idlong

Example

InputPeerNotifySettings(
)