UpdateNotifySettings

class pyrogram.raw.types.UpdateNotifySettings

Changes in notification settings.

Constructor of Update.

Details:
  • Layer: 227

  • ID: BEC268EF

Parameters:

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)
│ ├── 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

UpdateNotifySettings(
    peer=NotifyPeer(peer=PeerUser(user_id=0)),
    notify_settings=PeerNotifySettings(),
)