InputNotifyPeer

class pyrogram.raw.base.InputNotifyPeer

Object defines the set of users and/or groups that generate notifications.

Constructors:

This base type has 5 constructors available.

InputNotifyBroadcasts

All channels

InputNotifyChats

Notifications generated by all groups.

InputNotifyForumTopic

Notifications generated by a topic in a forum.

InputNotifyPeer

Notifications generated by a certain user or group.

InputNotifyUsers

Notifications generated by all users.

TL Schema

inputNotifyPeer#b8bc5b0c
peer:InputPeer

= InputNotifyPeer

Parameter Tree

InputNotifyPeer
└── peerInputPeer
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_idlong
├── InputPeerUser
│ ├── user_idlong
│ └── access_hashlong
│ ├── channel_idlong
│ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

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