account.UpdateConnectedBot
- class pyrogram.raw.functions.account.UpdateConnectedBot
Connect a business bot » to the current account, or to change the current connection settings.
- Details:
Layer:
223ID:
66A08C7E
- Parameters:
bot (
InputUser) – The bot to connect or disconnectrecipients (
InputBusinessBotRecipients) – Configuration for the business connectiondeleted (
bool, optional) – Whether to fully disconnect the bot from the current account.rights (
BusinessBotRights, optional) – Business bot rights.
- Returns:
TL Schema
account.updateConnectedBot#66a08c7e
flags:#
deleted:flags.1?true
rights:flags.0?BusinessBotRights
bot:InputUser
recipients:InputBusinessBotRecipients
= Updates
Parameter Tree
UpdateConnectedBot
├── deleted →
true (optional)├── rights →
BusinessBotRights (optional)│ └──
BusinessBotRights│ ├── reply →
true (optional)│ ├── read_messages →
true (optional)│ ├── delete_sent_messages →
true (optional)│ ├── delete_received_messages →
true (optional)│ ├── edit_name →
true (optional)│ ├── edit_bio →
true (optional)│ ├── edit_profile_photo →
true (optional)│ ├── edit_username →
true (optional)│ ├── view_gifts →
true (optional)│ ├── sell_gifts →
true (optional)│ ├── change_gift_settings →
true (optional)│ ├── transfer_and_upgrade_gifts →
true (optional)│ ├── transfer_stars →
true (optional)│ └── manage_stories →
true (optional)├── bot →
InputUser│ ├──
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└── recipients →
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
await app.invoke(
UpdateConnectedBot(
deleted=None,
rights=BusinessBotRights(
reply=None,
read_messages=None,
delete_sent_messages=None,
delete_received_messages=None,
edit_name=None,
edit_bio=None,
edit_profile_photo=None,
edit_username=None,
view_gifts=None,
sell_gifts=None,
change_gift_settings=None,
transfer_and_upgrade_gifts=None,
transfer_stars=None,
manage_stories=None
),
bot=await app.resolve_user(chat_id),
recipients=InputBusinessBotRecipients(
existing_chats=None,
new_chats=None,
contacts=None,
non_contacts=None,
exclude_selected=None,
users=None,
exclude_users=None
),
)
)