account.UpdateNotifySettings

class pyrogram.raw.functions.account.UpdateNotifySettings

Edits notification settings from a given user/group, from all users/all groups.

Details:
  • Layer: 227

  • ID: 84BE5B93

Parameters:
Returns:

bool

TL Schema

account.updateNotifySettings#84be5b93
peer:InputNotifyPeer
settings:InputPeerNotifySettings

= Bool

Parameter Tree

UpdateNotifySettings
├── peer → InputNotifyPeer
│ ├── InputNotifyPeer
│ │ └── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── InputNotifyUsers
│ ├── InputNotifyChats
│ ├── InputNotifyBroadcasts
│ └── InputNotifyForumTopic
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ └── top_msg_id → int
└── settings → InputPeerNotifySettings
├── show_previews → Bool (optional)
├── silent → Bool (optional)
├── mute_until → int (optional)
├── sound → NotificationSound (optional)
│ ├── NotificationSoundNone
│ │ ├── title → string
│ │ └── data → string
│ └── id → long
├── stories_muted → Bool (optional)
├── stories_hide_sender → Bool (optional)
└── stories_sound → NotificationSound (optional)
│ ├── title → string
│ └── data → string
└── id → long

Example

await app.invoke(
    UpdateNotifySettings(
        peer=InputNotifyPeer(peer=await app.resolve_peer(chat_id)),
        settings=InputPeerNotifySettings(
            show_previews=None,
            silent=None,
            mute_until=None,
            sound=None,
            stories_muted=None,
            stories_hide_sender=None,
            stories_sound=None
        ),
    )
)