|
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 | startWriting (array $bot, $dialogId, $userName='') |
|
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 | getCache ($botId) |
|
static | clearCache () |
|
static | getListCache ($type=self::LIST_ALL) |
|
static | getListForJs () |
|
static | changeChatMembers ($chatId, $botId, $append=true) |
|
static | getDefaultLanguage () |
|
static | deleteExpiredTokenAgent () |
|
См. определение в файле bot.php строка 10
◆ addMessage()
static addMessage |
( |
array | $bot, |
|
|
array | $messageFields ) |
|
static |
- Аргументы
-
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 строка 952
◆ changeChatMembers()
static changeChatMembers |
( |
| $chatId, |
|
|
| $botId, |
|
|
| $append = true ) |
|
static |
◆ clearCache()
◆ deleteExpiredTokenAgent()
static deleteExpiredTokenAgent |
( |
| ) |
|
|
static |
◆ deleteMessage()
static deleteMessage |
( |
array | $bot, |
|
|
| $messageId ) |
|
static |
◆ getCache()
static getCache |
( |
| $botId | ) |
|
|
static |
◆ getDefaultLanguage()
static getDefaultLanguage |
( |
| ) |
|
|
static |
◆ getDialogId()
static getDialogId |
( |
| $messageFields | ) |
|
|
static |
◆ getListCache()
static getListCache |
( |
| $type = self::LIST_ALL | ) |
|
|
static |
◆ getListForJs()
◆ likeMessage()
static likeMessage |
( |
array | $bot, |
|
|
| $messageId, |
|
|
| $action = 'AUTO' ) |
|
static |
◆ onJoinChat()
static onJoinChat |
( |
| $dialogId, |
|
|
| $joinFields ) |
|
static |
◆ onLeaveChat()
static onLeaveChat |
( |
| $dialogId, |
|
|
| $leaveFields ) |
|
static |
◆ onMessageAdd()
static onMessageAdd |
( |
| $messageId, |
|
|
| $messageFields ) |
|
static |
◆ onMessageDelete()
static onMessageDelete |
( |
| $messageId, |
|
|
| $messageFields ) |
|
static |
◆ onMessageUpdate()
static onMessageUpdate |
( |
| $messageId, |
|
|
| $messageFields ) |
|
static |
◆ register()
static register |
( |
array | $fields | ) |
|
|
static |
- Аргументы
-
- Возвращает
- int|bool
См. определение в файле bot.php строка 35
◆ sendPullNotify()
static sendPullNotify |
( |
| $botId, |
|
|
| $messageType ) |
|
static |
- Аргументы
-
int | $botId | Bot Id. |
string | $messageType | Notify type - addBot|updateBot|deleteBot |
- Возвращает
- bool
См. определение в файле bot.php строка 504
◆ sendPullOpenDialog()
static sendPullOpenDialog |
( |
int | $botId, |
|
|
int | $userId = null ) |
|
static |
- Аргументы
-
int | $botId | Bot Id. |
int | null | $userId | User Id. |
- Возвращает
- bool
См. определение в файле bot.php строка 560
◆ startWriting()
static startWriting |
( |
array | $bot, |
|
|
| $dialogId, |
|
|
| $userName = '' ) |
|
static |
◆ unRegister()
static unRegister |
( |
array | $bot | ) |
|
|
static |
- Аргументы
-
- Возвращает
- bool
См. определение в файле bot.php строка 245
◆ update()
static update |
( |
array | $bot, |
|
|
array | $updateFields ) |
|
static |
- Аргументы
-
array | $bot | |
array | $updateFields | |
- Возвращает
- bool
См. определение в файле bot.php строка 326
◆ updateMessage()
static 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 строка 1118
◆ 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_' |
◆ TYPE_BOT
◆ TYPE_HUMAN
◆ TYPE_NETWORK
◆ TYPE_OPENLINE
const TYPE_OPENLINE = 'O' |
◆ TYPE_SUPERVISOR
const TYPE_SUPERVISOR = 'S' |