BotCommandScopePeerUser

class pyrogram.raw.types.BotCommandScopePeerUser

The specified bot commands will be valid only for a specific user in the specified group or supergroup.

Constructor of BotCommandScope.

Details:
  • Layer: 227

  • ID: A1321F3

Parameters:

TL Schema

botCommandScopePeerUser#a1321f3
peer:InputPeer
user_id:InputUser

= BotCommandScope

Parameter Tree

BotCommandScopePeerUser
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── 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
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
└── user_id → InputUser
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_id → long
│ └── access_hash → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── user_id → long

Example

BotCommandScopePeerUser(
    peer=await app.resolve_peer(chat_id),
    user_id=await app.resolve_user(chat_id),
)