1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
BotService.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Bot;
4
5use Bitrix\Im;
6use Bitrix\Im\V2\Common\ContextCustomer;
7use Bitrix\Im\V2\Message\Send\SendingConfig;
8
10{
11 use ContextCustomer;
12
13 private SendingConfig $sendingConfig;
14
18 public function __construct(?SendingConfig $sendingConfig = null)
19 {
20 if ($sendingConfig === null)
21 {
22 $sendingConfig = new SendingConfig();
23 }
24 $this->sendingConfig = $sendingConfig;
25 }
26
27 public function runMessageCommand(int $messageId, array $fields): void
28 {
29 $fields['COMMAND_CONTEXT'] = 'TEXTAREA';
31 if (!$result)
32 {
33 Im\Bot::onMessageAdd($messageId, $fields);
34 }
35 }
36}
if(! $messageFields||!isset($messageFields['message_id'])||!isset($messageFields['status'])||!CModule::IncludeModule("messageservice")) $messageId
Определения callback_ismscenter.php:26
static onCommandAdd($messageId, $messageFields)
Определения command.php:295
runMessageCommand(int $messageId, array $fields)
Определения BotService.php:27
__construct(?SendingConfig $sendingConfig=null)
Определения BotService.php:18
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
$fields
Определения yandex_run.php:501