Connecting a new bot through the API is not possible, as each messenger has its own characteristics. To add a bot, please use your personal cabinet.
How to determine bot (channel) status
Each channel connected to the Shop2bot platform has two statuses:
Bot status is used to manually stop and start the bot. Possible options:
1 - Bot created
3 - Stopped manually
5 - Launched
The status of the bot can be obtained by querying /bot/bots/:id/ in the field status
Adapter status reflects the connection status of the HighTouch platform and messenger servers for running bots (which have bot status 1).
Adapter status reflects the real state of the channel (bot). You can find it out by running the query/bot/bot/:id/status/. The possible statuses are listed in the documentation for this request.
If the bot is stopped manually, the status of the adapter is meaningless, because the HighTouch platform closes all connections to messenger servers. The possible statuses are listed in the documentation for this request.