|
static | register (array $fields) |
static | unRegister (array $bot) |
static | update (array $bot, array $updateFields) |
static | sendPullNotify ($botId, $messageType) |
static | sendPullOpenDialog (int $botId, int $userId=null) |
static | onMessageAdd ($messageId, $messageFields) |
static | onMessageUpdate ($messageId, $messageFields) |
static | onMessageDelete ($messageId, $messageFields) |
static | onJoinChat ($dialogId, $joinFields) |
static | onLeaveChat ($dialogId, $leaveFields) |
static | onContextGet (\Bitrix\Im\V2\Chat $chat, array $params) |
static | startWriting (array $bot, $dialogId, $userName='') |
static | setChatBackgroundId (array $bot, $dialogId, string $backgroundId) |
static | enableChatTextField (array $bot, $dialogId) |
static | disableChatTextField (array $bot, $dialogId) |
static | addMessage (array $bot, array $messageFields) |
static | updateMessage (array $bot, array $messageFields) |
static | deleteMessage (array $bot, $messageId) |
static | likeMessage (array $bot, $messageId, $action='AUTO') |
static | getDialogId ($messageFields) |
static | getDialogIdByChat (\Bitrix\Im\V2\Chat $chat) |
static | getCache ($botId) |
static | clearCache () |
static | getListCache ($type=self::LIST_ALL) |
static | getListForJs () |
static | getDefaultLanguage () |
static | deleteExpiredTokenAgent () |
static | setPlatformContext (string $context) |
См. определение в файле bot.php строка 15
◆ addAdditionalParams()
addAdditionalParams |
( |
array | $params | ) |
|
|
staticprotected |
◆ addMessage()
- Аргументы
-
array | $bot |
[
(int) BOT_ID
(string) MODULE_ID
(string) APP_ID
]
|
array | $messageFields |
[
(int) MESSAGE_ID
(int) FROM_USER_ID
(int) TO_USER_ID
(string|int) DIALOG_ID
(array) PARAMS
(array) ATTACH
(array) KEYBOARD
(array) MENU
(string) MESSAGE
(string) URL_PREVIEW - Y|N
(string) SYSTEM - Y|N
(string) SKIP_CONNECTOR - Y|N
(string) EDIT_FLAG - Y|N
]
|
- Возвращает
- bool
См. определение в файле bot.php строка 1101
◆ clearCache()
◆ deleteExpiredTokenAgent()
deleteExpiredTokenAgent |
( |
| ) |
|
|
static |
◆ deleteMessage()
deleteMessage |
( |
array | $bot, |
|
|
| $messageId ) |
|
static |
◆ disableChatTextField()
disableChatTextField |
( |
array | $bot, |
|
|
| $dialogId ) |
|
static |
◆ enableChatTextField()
enableChatTextField |
( |
array | $bot, |
|
|
| $dialogId ) |
|
static |
◆ getCache()
◆ getDefaultLanguage()
◆ getDialogId()
getDialogId |
( |
| $messageFields | ) |
|
|
static |
◆ getDialogIdByChat()
◆ getListCache()
getListCache |
( |
| $type = self::LIST_ALL | ) |
|
|
static |
◆ getListForJs()
◆ getPlatformContext()
◆ likeMessage()
likeMessage |
( |
array | $bot, |
|
|
| $messageId, |
|
|
| $action = 'AUTO' ) |
|
static |
◆ onContextGet()
◆ onJoinChat()
onJoinChat |
( |
| $dialogId, |
|
|
| $joinFields ) |
|
static |
◆ onLeaveChat()
onLeaveChat |
( |
| $dialogId, |
|
|
| $leaveFields ) |
|
static |
◆ onMessageAdd()
onMessageAdd |
( |
| $messageId, |
|
|
| $messageFields ) |
|
static |
◆ onMessageDelete()
onMessageDelete |
( |
| $messageId, |
|
|
| $messageFields ) |
|
static |
◆ onMessageUpdate()
onMessageUpdate |
( |
| $messageId, |
|
|
| $messageFields ) |
|
static |
◆ register()
register |
( |
array | $fields | ) |
|
|
static |
- Аргументы
-
- Возвращает
- int|bool
См. определение в файле bot.php строка 50
◆ resolvePlatformContext()
resolvePlatformContext |
( |
string | $context | ) |
|
|
staticprotected |
◆ sendPullNotify()
sendPullNotify |
( |
| $botId, |
|
|
| $messageType ) |
|
static |
- Аргументы
-
int | $botId | Bot Id. |
string | $messageType | Notify type - addBot|updateBot|deleteBot |
- Возвращает
- bool
См. определение в файле bot.php строка 523
◆ sendPullOpenDialog()
sendPullOpenDialog |
( |
int | $botId, |
|
|
int | $userId = null ) |
|
static |
- Аргументы
-
int | $botId | Bot Id. |
int | null | $userId | User Id. |
- Возвращает
- bool
См. определение в файле bot.php строка 579
◆ setChatBackgroundId()
setChatBackgroundId |
( |
array | $bot, |
|
|
| $dialogId, |
|
|
string | $backgroundId ) |
|
static |
◆ setPlatformContext()
setPlatformContext |
( |
string | $context | ) |
|
|
static |
◆ startWriting()
startWriting |
( |
array | $bot, |
|
|
| $dialogId, |
|
|
| $userName = '' ) |
|
static |
◆ unRegister()
- Аргументы
-
- Возвращает
- bool
См. определение в файле bot.php строка 264
◆ update()
- Аргументы
-
array | $bot | |
array | $updateFields | |
- Возвращает
- bool
См. определение в файле bot.php строка 337
◆ updateMessage()
updateMessage |
( |
array | $bot, |
|
|
array | $messageFields ) |
|
static |
- Аргументы
-
array | $bot |
[
(int) BOT_ID
(string) MODULE_ID
(string) APP_ID
]
|
array | $messageFields |
[
(int) MESSAGE_ID
(array) ATTACH
(array) KEYBOARD
(array) MENU
(string) MESSAGE
(string) URL_PREVIEW - Y|N
(string) SKIP_CONNECTOR - Y|N
(string) EDIT_FLAG - Y|N
]
|
- Возвращает
- bool
См. определение в файле bot.php строка 1267
◆ $platformContext
string $platformContext = null |
|
staticprotected |
◆ BACKGROUND_COLLAB
const BACKGROUND_COLLAB = 'collab' |
- См. также
- BackgroundId::Copilot
См. определение в файле bot.php строка 19
◆ BACKGROUND_COPILOT
const BACKGROUND_COPILOT = 'copilot' |
- См. также
- BackgroundId::MartaAI
См. определение в файле bot.php строка 18
◆ BACKGROUND_MARTA
const BACKGROUND_MARTA = 'martaAI' |
◆ BACKGROUND_NONE
const BACKGROUND_NONE = '' |
- См. также
- BackgroundId::Collab
См. определение в файле bot.php строка 20
◆ CACHE_PATH
const CACHE_PATH = '/bx/im/bot/old_cache_v1/' |
◆ CACHE_TTL
const CACHE_TTL = 31536000 |
◆ EXTERNAL_AUTH_ID
const EXTERNAL_AUTH_ID = 'bot' |
◆ INSTALL_TYPE_SILENT
const INSTALL_TYPE_SILENT = 'silent' |
◆ INSTALL_TYPE_SYSTEM
const INSTALL_TYPE_SYSTEM = 'system' |
◆ INSTALL_TYPE_USER
const INSTALL_TYPE_USER = 'user' |
◆ LIST_ALL
◆ LIST_OPENLINE
const LIST_OPENLINE = 'openline' |
◆ LOGIN_START
const LOGIN_START = 'bot_' |
◆ PLATFORM_CONTEXT_MOBILE
const PLATFORM_CONTEXT_MOBILE = 'mobile' |
◆ PLATFORM_CONTEXT_WEB
const PLATFORM_CONTEXT_WEB = 'web' |
◆ TYPE_BOT
◆ TYPE_HUMAN
◆ TYPE_NETWORK
◆ TYPE_OPENLINE
const TYPE_OPENLINE = 'O' |
◆ TYPE_SUPERVISOR
const TYPE_SUPERVISOR = 'S' |
Объявления и описания членов класса находятся в файле: