UpdateNotifySettings
- class pyrogram.raw.types.UpdateNotifySettings
Changes in notification settings.
Constructor of
Update.- Details:
Layer:
223ID:
BEC268EF
- Parameters:
peer (
NotifyPeer) – Notification sourcenotify_settings (
PeerNotifySettings) – New notification settings
TL Schema
updateNotifySettings#bec268ef
peer:NotifyPeer
notify_settings:PeerNotifySettings
= Update
Parameter Tree
UpdateNotifySettings
├── peer →
NotifyPeer│ ├──
NotifyPeer│ │ └── peer →
Peer│ │ ├──
PeerUser│ │ │ └── user_id →
long│ │ ├──
PeerChat│ │ │ └── chat_id →
long│ │ └──
PeerChannel│ │ └── channel_id →
long│ ├──
NotifyUsers│ ├──
NotifyChats│ ├──
NotifyBroadcasts│ └──
NotifyForumTopic│ ├── peer →
Peer│ │ ├──
PeerUser│ │ │ └── user_id →
long│ │ ├──
PeerChat│ │ │ └── chat_id →
long│ │ └──
PeerChannel│ │ └── channel_id →
long│ └── top_msg_id →
int└── notify_settings →
PeerNotifySettings├── show_previews →
Bool (optional)├── silent →
Bool (optional)├── mute_until →
int (optional)├── ios_sound →
NotificationSound (optional)│ ├──
NotificationSoundDefault│ ├──
NotificationSoundNone│ ├──
NotificationSoundLocal│ │ ├── title →
string│ │ └── data →
string│ └── id →
long├── android_sound →
NotificationSound (optional)│ ├──
NotificationSoundDefault│ ├──
NotificationSoundNone│ ├──
NotificationSoundLocal│ │ ├── title →
string│ │ └── data →
string│ └── id →
long├── other_sound →
NotificationSound (optional)│ ├──
NotificationSoundDefault│ ├──
NotificationSoundNone│ ├──
NotificationSoundLocal│ │ ├── title →
string│ │ └── data →
string│ └── id →
long├── stories_muted →
Bool (optional)├── stories_hide_sender →
Bool (optional)├── stories_ios_sound →
NotificationSound (optional)│ ├──
NotificationSoundDefault│ ├──
NotificationSoundNone│ ├──
NotificationSoundLocal│ │ ├── title →
string│ │ └── data →
string│ └── id →
long├── stories_android_sound →
NotificationSound (optional)│ ├──
NotificationSoundDefault│ ├──
NotificationSoundNone│ ├──
NotificationSoundLocal│ │ ├── title →
string│ │ └── data →
string│ └── id →
long└── stories_other_sound →
NotificationSound (optional)│ ├── title →
string│ └── data →
string└── id →
longExample
UpdateNotifySettings(
peer=NotifyPeer(peer=PeerUser(user_id=0)),
notify_settings=PeerNotifySettings(),
)