PeerNotifySettings

class pyrogram.raw.base.PeerNotifySettings

Notification settings.

Constructors:

This base type has 1 constructor available.

PeerNotifySettings

Notification settings.

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(
    show_previews=None,
    silent=None,
    mute_until=0,
    ios_sound=NotificationSoundDefault(),
    android_sound=NotificationSoundDefault(),
    other_sound=NotificationSoundDefault(),
    stories_muted=None,
    stories_hide_sender=None,
    stories_ios_sound=NotificationSoundDefault(),
    stories_android_sound=NotificationSoundDefault(),
    stories_other_sound=NotificationSoundDefault(),
)