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: 223

  • ID: 3FD863D1

Parameters:

peer (InputPeer) – The chat

TL Schema

botCommandScopePeerAdmins#3fd863d1
peer:InputPeer

= BotCommandScope

Parameter Tree

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

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