BotCommandScopePeerAdmins

class pyrogram.raw.types.BotCommandScopePeerAdmins

The specified bot commands will be valid for all admins of the specified group or supergroup.

Constructor of BotCommandScope.

Details:
  • Layer: 227

  • ID: 3FD863D1

Parameters:

peer (InputPeer) – The chat

TL Schema

botCommandScopePeerAdmins#3fd863d1
peer:InputPeer

= BotCommandScope

Parameter Tree

BotCommandScopePeerAdmins
└── 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

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