help.chat-api.com

Bot subscription/unsubscription mechanism

Bot subscription

By default, all new subscribers are "subscribed to the bot". The script will run when the subscriber sends messages.

To check if a user is subscribed to a bot, go to the "Chats" section and open a dialog with the desired user. To the right of the dialog is the subscriber's card, where all information about the subscriber is stored. The values of all variables are also stored there.

 

Unsubscribe from a bot

Any subscriber can unsubscribe from the bot. This is necessary, for example, if your manager wants to continue the dialog with the subscriber himself.

If the user is unsubscribed from the bot, when the user sends any messages to the chat, the bot will not respond.

You can unsubscribe from the bot using the Operation block or manually in the Chat-API builder.

How to unsubscribe from the bot using the Operation block you can read in our article.

Manual subscription/unsubscription setup

To manually unsubscribe a subscriber from the bot, go to "Chats". To the right of the selected dialog box is the subscriber card.

To unsubscribe from the bot, click ( stop ) in the subscriber card. After this bot will not respond to messages from the subscriber.

 

To return the subscription to the bot, click (run) in the subscriber's card. The bot will start working and responding to the subscriber's messages again.

 

Was this article helpful?

Your opinion will be used to improve the content of the article

The Most Multifunctional API Provider

Chat API has been operating since 2015 and is one of the first and largest providers in Eastern Europe.

Here are some curious and important figures:

  • We have tremendous expertise in docker container management at scale with an SLA of 99.5+%;
  • Chat API involves in its work more than 200 servers, with the ability to quickly connect another 100;
  • 3200 cores and 25 terabytes of RAM;
  • 200+ methods and features that keep adding;
  • Highload system, Up Time servers 99.9%;
  • Support 24\7;
Get access to the API