account.disablePeerConnectedBot #

Permanently disconnect a specific chat from all business bots » (equivalent to specifying it in recipients.exclude_users during initial configuration with account.updateConnectedBot »); to reconnect of a chat disconnected using this method the user must reconnect the entire bot by invoking account.updateConnectedBot ».

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.disablePeerConnectedBot#5e437ed9 peer:InputPeer = Bool;

Parameters #

NameTypeDescription
peerInputPeerThe chat to disconnect

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400BOT_ALREADY_DISABLEDThe connected business bot was already disabled for the specified peer.
400BOT_NOT_CONNECTED_YETNo business bot is connected to the currently logged in user.
400PEER_ID_INVALIDThe provided peer id is invalid.

Connected business bots #

Users can connect Telegram bots that will process and answer messages on their behalf. This allows them to seamlessly integrate any existing tools and workflows, or add AI assistants that manage their chats.

account.updateConnectedBot #

Connect a business bot » to the current account, or to change the current connection settings.

Telegram Business #

Users can turn their Telegram account into a business account, gaining access to business features such as opening hours, location, quick replies, automated messages, custom start pages, chatbot support, and more.