InputPeer

class pyrogram.raw.base.InputPeer

Peer

Constructors:

This base type has 7 constructors available.

InputPeerChannel

Defines a channel for further interaction.

InputPeerChannelFromMessage

Defines a min channel that was seen in a certain message of a certain chat.

InputPeerChat

Defines a chat for further interaction.

InputPeerEmpty

An empty constructor, no user or chat is defined.

InputPeerSelf

Defines the current user.

InputPeerUser

Defines a user for further interaction.

InputPeerUserFromMessage

Defines a min user that was seen in a certain message of a certain chat.

TL Schema


Parameter Tree

InputPeer
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_id → long
├── InputPeerUser
│ ├── user_id → long
│ └── access_hash → long
│ ├── channel_id → long
│ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── channel_id → long

Example