3namespace Bitrix\MessageService\Providers\Edna\WhatsApp;
5use Bitrix\MessageService\Providers\Constants\InternalOption;
34 if (!in_array(
$type, [InternalOption::EMOJI_DECODE, InternalOption::EMOJI_ENCODE],
true))
39 return \Bitrix\Main\Text\Emoji::$type(
$text);
44 if (is_string($textSection))
54 if (isset($headerSection[
'text']))
59 return $headerSection;
64 if (isset($footerSection[
'text']))
69 return $footerSection;
99 if (isset($keyboardSection[
'rows']) && is_array($keyboardSection[
'rows']))
101 foreach ($keyboardSection[
'rows'] as $rowIndex => $row)
103 if (isset($row[
'buttons']) && is_array($row[
'buttons']))
105 foreach ($row[
'buttons'] as $buttonIndex => $button)
107 if (isset($button[
'text']))
109 $keyboardSection[
'rows'][$rowIndex][
'buttons'][$buttonIndex][
'text'] =
117 return $keyboardSection;
convertFooterSection(?array $footerSection, string $type)
convertHeaderSection(?array $headerSection, string $type)
convertEmojiInTemplate(array $messageTemplate, string $type)
convertTextSection(?string $textSection, string $type)
convertKeyboardSection(?array $keyboardSection, string $type)
convertEmoji(string $text, string $type)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)