InputBusinessBotRecipients
- class pyrogram.raw.base.InputBusinessBotRecipients
Specifies the private chats that a connected business bot » may interact with.
- Constructors:
This base type has 1 constructor available.
Specifies the private chats that a connected business bot » may interact with.
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_chats →
true (optional)├── new_chats →
true (optional)├── contacts →
true (optional)├── non_contacts →
true (optional)├── exclude_selected →
true (optional)├── users →
Vector < InputUser > (optional)│ ├──
InputUserEmpty│ ├──
InputUserSelf│ ├──
InputUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ └──
InputUserFromMessage│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── user_id →
long└── exclude_users →
Vector < InputUser > (optional)├──
InputUserEmpty├──
InputUserSelf├──
InputUser│ ├── user_id →
long│ └── access_hash →
long├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ ├──
InputPeerUser│ ├──
InputPeerChannel│ ├──
InputPeerUserFromMessage├── msg_id →
int└── user_id →
longExample
InputBusinessBotRecipients(
existing_chats=None,
new_chats=None,
contacts=None,
non_contacts=None,
exclude_selected=None,
users=[
await app.resolve_user(chat_id)
],
exclude_users=[
await app.resolve_user(chat_id)
],
)