bots.EditAccessSettings

class pyrogram.raw.functions.bots.EditAccessSettings

Telegram API function.

Details:
  • Layer: 225

  • ID: 31813CD8

Parameters:
  • bot (InputUser) – N/A

  • restricted (bool, optional) – N/A

  • add_users (List of InputUser, optional) – N/A

Returns:

bool

TL Schema

bots.editAccessSettings#31813cd8
flags:#
restricted:flags.0?true
bot:InputUser
add_users:flags.1?Vector<InputUser>

= Bool

Parameter Tree

EditAccessSettings
├── restrictedtrue (optional)
├── botInputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ └── InputUserFromMessage
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
└── add_usersVector < InputUser > (optional)
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── user_idlong

Example

await app.invoke(
    EditAccessSettings(
        restricted=None,
        bot=await app.resolve_user(chat_id),
        add_users=[
                await app.resolve_user(chat_id)
            ],
    )
)