K
K
Konstantin Tolmachev2021-08-12 11:53:45
Bitrix24
Konstantin Tolmachev, 2021-08-12 11:53:45

Bitrix24. Chat bot open lines. With keyboard display. Is it possible?

Good afternoon colleagues.
The question of such a plan. The task was to make a chat bot for open lines with a keyboard.

According to the documentation, everything seems to be fine. There is a description of how to generate a keyboard. But in the same telegram, the keyboard is not displayed. There are no messages indicating an error either.

From this comes the question, who managed to make a keyboard in a bot for open lines? Is it even possible?

Here's an example of the code I'm using.

$result   = Api::call('imbot.message.add', array(
            "BOT_ID" => $_ENV['BOT_ID'],
            "DIALOG_ID" => $data['DIALOG_ID'],
            "MESSAGE" => "Здравствуйте, ".$user['NAME'] . ".[br] Добро пожаловать в чат открытых линий компании ________",
            "KEYBOARD" =>  [ Array(
                "TEXT" => "Bitrix24",
                "LINK" => "http://bitrix24.com",
                "BG_COLOR" => "#29619b",
                "TEXT_COLOR" => "#fff",
                "DISPLAY" => "LINE",
            )],
        ));

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sheckspir, 2021-11-07
@sheckspir

I broke down and asked this question in support of their answer:

The keyboard will be displayed only when using the online chat connector, it is not possible to display the keyboard in Telegram. Please check a similar request for an online chat dialog. Is the data correct, is the keyboard displayed in the chat for the user? Dialable
keyboards of open lines are an internal functionality of Bitrix, therefore it works only with internal connectors, unfortunately, the API of third-party messengers does not allow transferring them, therefore they are displayed only in the chat on the Bitrix side .
A request for development has been created
Based on the information from this request, an application has been created for the development department.
Implementation deadlines are set by the development department and depend on the current work plan. It is currently not possible to name a timeframe for a decision.
"Ability to use keyboards in messengers of open lines"
Application number: 142861

As far as I can see there is only one option. This is writing a telegram chat bot that will work on the one hand with the Telegram API, on the other hand, will integrate with Bitrix
https://dev.1c-bitrix.ru/rest_help/imconnector/cas...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question