BotCommandScopePeer

class pyrogram.raw.types.BotCommandScopePeer

The specified bot commands will be valid only in a specific dialog.

Constructor of BotCommandScope.

Details:
  • Layer: 227

  • ID: DB9D897D

Parameters:

peer (InputPeer) – The dialog

TL Schema

botCommandScopePeer#db9d897d
peer:InputPeer

= BotCommandScope

Parameter Tree

BotCommandScopePeer
└── peer → 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

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