Views: 1339
Last Modified: 27.04.2023
Application for extending smiley and giphy options
Embedding code: IM_SMILES_SELECTOR
Can contain custom sources for images or smileys.
Parameters
Parameter |
Required |
Description |
context |
No |
Chat type to embed the app (ALL by default). Supports the multiple selection via ; of the following values:
- USER – all user chats, excluding bots;
- CHAT – all group chats, except lines and crm;
- LINES – chat type lines (open channels);
- CRM – only chats created within CRM;
- ALL – all chats.
|
role |
Нет |
Роль пользователя, для которой доступно это приложение (по умолчанию USER). Поддерживает следующие значения:
- USER – приложение доступно для всех пользователей;
- ADMIN – приложение доступно только для администраторов портала.
|
extranet |
No |
Application is available for extranet users (N by default). Supports the following values:
- N – application is unavailable for extranet users;
- Y – application is available for extranet users.
|
|
This embedding has a current opening context, passed via current chat's dialogId.
const context = BX24.placement.info().options;
Application is rendered within a pop up window with selector of smileys and giphy (without option to alter size).
Call example:
CRest::call(
'placement.bind',
[
'PLACEMENT' => 'IM_TEXTAREA',
'HANDLER' => 'https://example.com/apps/immarket/handlers/smiles_selector.php',
'LANG_ALL' => [
'en' => [
'TITLE' => 'Application for extending smiley and giphy options',
],
],
'OPTIONS' => [
'context' => 'USER;LINES',
'role' => 'USER',
'extranet' => 'Y',
]
]
);