account.UpdateNotifySettings

class pyrogram.raw.functions.account.UpdateNotifySettings

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

Details:
  • Layer: 223

  • ID: 84BE5B93

Parameters:
Returns:

bool

TL Schema

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

= Bool

Parameter Tree

UpdateNotifySettings
├── peerInputNotifyPeer
│ ├── InputNotifyPeer
│ │ └── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── InputNotifyUsers
│ ├── InputNotifyChats
│ ├── InputNotifyBroadcasts
│ └── InputNotifyForumTopic
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ └── top_msg_idint
└── settingsInputPeerNotifySettings
├── show_previewsBool (optional)
├── silentBool (optional)
├── mute_untilint (optional)
├── soundNotificationSound (optional)
│ ├── NotificationSoundNone
│ │ ├── titlestring
│ │ └── datastring
│ └── idlong
├── stories_mutedBool (optional)
├── stories_hide_senderBool (optional)
└── stories_soundNotificationSound (optional)
│ ├── titlestring
│ └── datastring
└── idlong

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