For the complete documentation index, see llms.txt. This page is also available as Markdown.

Help bot

In Bots.Business chat we have many generic questions. This bot can answer for them.

Bot is Inline bot - it can used for searching in help.bots.business

Also bot use Master command - *.

Code description

Bot receive all messages from chat with Master command.

So we do not need any notifications about new chat members and etc:

Do you have big case for command execution? You can use return.

Bot have keywords for searching in user's messages. Bot show answer and url on keywoard in message:

Also admin can write anything and do not need any help. So we have key - answerToAdmin:

Sometimes we need exact searhing:

Message can be in aNyCAse. We need it only in lowercase:

We use functions in the code. So code more simple:

Functions create your code more simple. It is good for it rewriting and improvement.

Perform searching. And if we get answer - send message:

In this command - we have only one Bot.sendMessage function!

It is good - code more simple.

Last updated