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_previews → Bool (optional)
├── silent → Bool (optional)
├── mute_until → int (optional)
├── ios_sound → NotificationSound (optional)
│ ├── NotificationSoundNone
│ │ ├── title → string
│ │ └── data → string
│ └── id → long
├── android_sound → NotificationSound (optional)
│ ├── NotificationSoundNone
│ │ ├── title → string
│ │ └── data → string
│ └── id → long
├── other_sound → NotificationSound (optional)
│ ├── NotificationSoundNone
│ │ ├── title → string
│ │ └── data → string
│ └── id → long
├── stories_muted → Bool (optional)
├── stories_hide_sender → Bool (optional)
├── stories_ios_sound → NotificationSound (optional)
│ ├── NotificationSoundNone
│ │ ├── title → string
│ │ └── data → string
│ └── id → long
├── stories_android_sound → NotificationSound (optional)
│ ├── NotificationSoundNone
│ │ ├── title → string
│ │ └── data → string
│ └── id → long
└── stories_other_sound → NotificationSound (optional)
│ ├── title → string
│ └── data → string
└── id → long

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(),
)