account.GetNotifySettings

class pyrogram.raw.functions.account.GetNotifySettings

Gets current notification settings for a given user/group, from all users/all groups.

Details:
  • Layer: 223

  • ID: 12B3AD31

Parameters:

peer (InputNotifyPeer) – Notification source

Returns:

PeerNotifySettings

TL Schema

account.getNotifySettings#12b3ad31
peer:InputNotifyPeer

= PeerNotifySettings

Parameter Tree

GetNotifySettings
└── peerInputNotifyPeer
├── InputNotifyPeer
│ └── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
└── top_msg_idint

Example

await app.invoke(
    GetNotifySettings(
        peer=InputNotifyPeer(peer=await app.resolve_peer(chat_id)),
    )
)