PeerNotifySettings

class pyrogram.raw.types.PeerNotifySettings

Notification settings.

Constructor of PeerNotifySettings.

Details:
  • Layer: 223

  • ID: 99622C0C

Parameters:
  • show_previews (bool, optional) – (Ternary value) If set, indicates whether or not to display previews of messages in notifications; otherwise the default behavior should be used.

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

  • mute_until (int 32-bit, optional) – Mute all notifications until this date

  • ios_sound (NotificationSound, optional) – Notification sound for the official iOS application

  • android_sound (NotificationSound, optional) – Notification sound for the official android application

  • other_sound (NotificationSound, optional) – Notification sound for other applications

  • 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_ios_sound (NotificationSound, optional) – Sound for story notifications on the official iOS application

  • stories_android_sound (NotificationSound, optional) – Sound for story notifications on the official Android application

  • stories_other_sound (NotificationSound, optional) – Sound for story notifications on other applications

Functions:

This object can be returned by 1 function.

account.GetNotifySettings

Gets current notification settings for a given user/group, from all users/all groups.

TL Schema

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

Parameter Tree

PeerNotifySettings
├── show_previewsBool (optional)
├── silentBool (optional)
├── mute_untilint (optional)
├── ios_soundNotificationSound (optional)
│ ├── NotificationSoundNone
│ │ ├── titlestring
│ │ └── datastring
│ └── idlong
├── android_soundNotificationSound (optional)
│ ├── NotificationSoundNone
│ │ ├── titlestring
│ │ └── datastring
│ └── idlong
├── other_soundNotificationSound (optional)
│ ├── NotificationSoundNone
│ │ ├── titlestring
│ │ └── datastring
│ └── idlong
├── stories_mutedBool (optional)
├── stories_hide_senderBool (optional)
├── stories_ios_soundNotificationSound (optional)
│ ├── NotificationSoundNone
│ │ ├── titlestring
│ │ └── datastring
│ └── idlong
├── stories_android_soundNotificationSound (optional)
│ ├── NotificationSoundNone
│ │ ├── titlestring
│ │ └── datastring
│ └── idlong
└── stories_other_soundNotificationSound (optional)
│ ├── titlestring
│ └── datastring
└── idlong

Example

PeerNotifySettings(
)