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 ».

 Method schema is available as of layer 177. Switch »

Parameters

Name Type Description
peer InputPeer The chat to disconnect

Result

Bool

Possible errors

Code Type Description
400 BOT_ALREADY_DISABLED The connected business bot was already disabled for the specified peer.
400 BOT_NOT_CONNECTED_YET No business bot is connected to the currently logged in user.
400 PEER_ID_INVALID The provided peer id is invalid.

Related pages

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.

account.updateConnectedBot

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