InputBusinessBotRecipients

class pyrogram.raw.types.InputBusinessBotRecipients

Specifies the private chats that a connected business bot » may interact with.

Constructor of InputBusinessBotRecipients.

Details:
  • Layer: 223

  • ID: C4E5921E

Parameters:
  • existing_chats (bool, optional) – Selects all existing private chats.

  • new_chats (bool, optional) – Selects all new private chats.

  • contacts (bool, optional) – Selects all private chats with contacts.

  • non_contacts (bool, optional) – Selects all private chats with non-contacts.

  • exclude_selected (bool, optional) – If set, then all private chats except the ones selected by existing_chats, new_chats, contacts, non_contacts and users are chosen. Note that if this flag is set, any values passed in exclude_users will be merged and moved into users by the server.

  • users (List of InputUser, optional) – Explicitly selected private chats.

  • exclude_users (List of InputUser, optional) – Identifiers of private chats that are always excluded.

TL Schema

inputBusinessBotRecipients#c4e5921e
flags:#
existing_chats:flags.0?true
new_chats:flags.1?true
contacts:flags.2?true
non_contacts:flags.3?true
exclude_selected:flags.5?true
users:flags.4?Vector<InputUser>
exclude_users:flags.6?Vector<InputUser>

= InputBusinessBotRecipients

Parameter Tree

InputBusinessBotRecipients
├── existing_chatstrue (optional)
├── new_chatstrue (optional)
├── contactstrue (optional)
├── non_contactstrue (optional)
├── exclude_selectedtrue (optional)
├── usersVector < InputUser > (optional)
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ └── InputUserFromMessage
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
└── exclude_usersVector < InputUser > (optional)
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── user_idlong

Example

InputBusinessBotRecipients(
)