Поддержка серверов

IMBOT: методы, функции, константы класса Битрикс


Блог разработчика

9 августа 2016 ResizeImageGet и простой водяной знак налету

Сегодня поговорим о том как проще всего воткнуть водяной знак на картинки в Битрикс. Например, на все изображения каталога.

21 июля 2016 Добавление вкладки в CRM коробки Битрикс24

В этом посте я покажу, как легко и просто добавить вкладку в сущность CRM. И не просто добавить, а вывести там свой контент.

21 июля 2016 Как просто обращаться из коробки Битрикс24 на сайт на базе Битрикс

К примеру вам хочется внутренним скриптом дернуть с сайта-магазина информацию, которая там, в свою очередь, закрыта некоторыми правами. Например, админскими. Можно конечно мутить свой REST, или иной формат общения, но проще всего воспользоваться штатным инструментом:

Константы модуля imbot

КонстантаПроверяется
BOT_CLIENT_GEO_DATANetwork::getUserGeoData
BOT_CLIENT_URLHttp::getServerAddress
BOT_CONTROLLER_URLHttp::query
BOT_IFRAME_URLGiphy::getIframeUrl

Список функций и методов модуля imbot

Метод
Base::getBotId()
Base::getBotOption()
Base::getClassName()
Base::getError()
Base::onAnswerAdd()
Base::onBotDelete()
Base::onChatStart()
Base::onCommandAdd()
Base::onCommandLang()
Base::onMessageAdd()
Base::setBotId()
Base::setBotOption()
Base::uploadAvatar()
Base::uploadIcon()
Controller::sendToBot()
Controller::sendToService()
Designer::__construct()
Designer::addMenu()
Designer::execMenuItem()
Designer::getCurrentMenu()
Designer::getMenuItems()
Designer::run()
Designer::setCurrentMenu()
Error::__construct()
Event::onMessageLike()
Event::onSessionVote()
Event::onStartWriting()
Event::onUserRead()
Giphy::getIframeUrl()
Giphy::getLangMessage()
Giphy::onAnswerAdd()
Giphy::onAppLang()
Giphy::onChatStart()
Giphy::onCommandAdd()
Giphy::onCommandLang()
Giphy::onMessageAdd()
Giphy::register()
Giphy::sendAnswer()
Giphy::sendMessage()
Giphy::unRegister()
Http::__construct()
Http::getError()
Http::getPortalType()
Http::getServerAddress()
Http::query()
Http::requestSign()
Http::sendMessage()
Item::execFunction()
Item::finishSession()
Item::openMenu()
Item::sendText()
Item::transferToBot()
Item::transferToQueue()
Item::transferToUser()
Item::void()
Log::write()
Log::writeToFile()
Marta::addPlannerMessageAgent()
Marta::addRenameMessageAgent()
Marta::addWelcomeMessageAgent()
Marta::getHelloMessage()
Marta::getLangMessage()
Marta::notifyAboutPlans()
Marta::onAfterTmDayStart()
Marta::onAfterUserAuthorize()
Marta::onAnswerAdd()
Marta::onAppLang()
Marta::onChatStart()
Marta::onCommandAdd()
Marta::onLocalCommandAdd()
Marta::onMessageAdd()
Marta::onRenamePortalDomainChange()
Marta::onRenamePortalLaterCommand()
Marta::onSettingsCommandAdd()
Marta::register()
Marta::sendAnswer()
Marta::sendAnswerCommand()
Marta::sendCommand()
Marta::sendMessage()
Marta::unRegister()
Menu::__construct()
Menu::addItem()
Menu::getId()
Menu::getItems()
Menu::getText()
Menu::setText()
Network::addFdc()
Network::clientMessageAdd()
Network::clientMessageDelete()
Network::clientMessageReceived()
Network::clientMessageSend()
Network::clientMessageUpdate()
Network::clientSessionVote()
Network::clientStartWriting()
Network::fdcAddWelcomeMessageAgent()
Network::fdcOnAfterUserAuthorize()
Network::fdcOnChatStart()
Network::fdcOnMessageAdd()
Network::getBotId()
Network::getLangMessage()
Network::getNetworkBotId()
Network::getUserGeoData()
Network::isFdcCode()
Network::isNeedUpdateBotFieldsAfterNewMessage()
Network::join()
Network::onAnswerAdd()
Network::onChatStart()
Network::onLocalCommandAdd()
Network::onMessageAdd()
Network::onMessageDelete()
Network::onMessageUpdate()
Network::onReceiveCommand()
Network::onSessionVote()
Network::onStartWriting()
Network::operatorMessageAdd()
Network::operatorMessageDelete()
Network::operatorMessageReceived()
Network::operatorMessageUpdate()
Network::operatorStartWriting()
Network::register()
Network::registerConnector()
Network::removeFdc()
Network::search()
Network::sendTextFdc()
Network::sendUnregisterRequest()
Network::setBotId()
Network::setNetworkBotId()
Network::unRegister()
Network::unRegisterConnector()
Network::updateConnector()
Network::uploadAvatar()
Openlines::onReceiveCommand()
Openlines::operatorMessageAdd()
Openlines::operatorMessageDelete()
Openlines::operatorMessageReceived()
Openlines::operatorMessageUpdate()
Openlines::operatorStartWriting()
OpenlinesListenerExample::getBotId()
OpenlinesListenerExample::getLastMessageId()
OpenlinesListenerExample::onBotDelete()
OpenlinesListenerExample::onChatStart()
OpenlinesListenerExample::onMessageAdd()
OpenlinesListenerExample::prepareText()
OpenlinesListenerExample::register()
OpenlinesListenerExample::setBotId()
OpenlinesListenerExample::setLastMessageId()
OpenlinesListenerExample::unRegister()
OpenlinesMenuExample::getBotId()
OpenlinesMenuExample::itrRun()
OpenlinesMenuExample::onBotDelete()
OpenlinesMenuExample::onChatStart()
OpenlinesMenuExample::onMessageAdd()
OpenlinesMenuExample::prepareText()
OpenlinesMenuExample::register()
OpenlinesMenuExample::setBotId()
OpenlinesMenuExample::unRegister()
Partner24::acceptRequest()
Partner24::activate()
Partner24::change()
Partner24::deactivate()
Partner24::declineRequest()
Partner24::getAdministrators()
Partner24::getBotAvatar()
Partner24::getBotCode()
Partner24::getBotDesc()
Partner24::getBotId()
Partner24::getBotName()
Partner24::getBusinessUsers()
Partner24::getLicenceLanguage()
Partner24::getMessage()
Partner24::getPartnerName()
Partner24::getSupportLevel()
Partner24::isActiveSupport()
Partner24::isActiveSupportForAll()
Partner24::isActiveSupportForUser()
Partner24::isEnabled()
Partner24::isNeedUpdateBotAvatarAfterNewMessage()
Partner24::isNeedUpdateBotFieldsAfterNewMessage()
Partner24::isUserAdmin()
Partner24::isUserIntegrator()
Partner24::isWaitingActivation()
Partner24::onAfterSupportCodeChange()
Partner24::onAnswerAdd()
Partner24::onMessageAdd()
Partner24::onReceiveCommand()
Partner24::onStartWriting()
Partner24::onWelcomeMessage()
Partner24::register()
Partner24::replacePlaceholders()
Partner24::sendMessage()
Partner24::sendMessageForRecent()
Partner24::sendRequest()
Partner24::sendRequestFinalizeSession()
Partner24::setOptions()
Partner24::unRegister()
Partner24::updateBotProperties()
Properties::convertIpToAttach()
Properties::convertOrganizationToAttach()
Properties::convertSearchResultsToAttach()
Properties::getLangMessage()
Properties::onAnswerAdd()
Properties::onChatStart()
Properties::onMessageAdd()
Properties::parseRequest()
Properties::register()
Properties::sendAnswer()
Properties::sendMessage()
Properties::unRegister()
Properties::validateRequest()
PropertiesUa::convertFoToAttach()
PropertiesUa::convertSearchResultsToAttach()
PropertiesUa::convertUoToAttach()
PropertiesUa::getLangMessage()
PropertiesUa::onAnswerAdd()
PropertiesUa::onChatStart()
PropertiesUa::onMessageAdd()
PropertiesUa::parseRequest()
PropertiesUa::register()
PropertiesUa::sendAnswer()
PropertiesUa::sendMessage()
PropertiesUa::unRegister()
PropertiesUa::validateRequest()
ServiceExample::getBotId()
ServiceExample::onBotDelete()
ServiceExample::onChatStart()
ServiceExample::onMessageAdd()
ServiceExample::onMessageDelete()
ServiceExample::onMessageUpdate()
ServiceExample::register()
ServiceExample::setBotId()
ServiceExample::unRegister()
Support24::deleteScheduledAction()
Support24::execScheduleAction()
Support24::getAdministrators()
Support24::getBotAvatar()
Support24::getBotCode()
Support24::getBotDesc()
Support24::getBotId()
Support24::getBotName()
Support24::getBusinessUsers()
Support24::getFreeSupportLifeTime()
Support24::getLicenceLanguage()
Support24::getMessage()
Support24::getPartnerCode()
Support24::getPartnerData()
Support24::getPartnerId()
Support24::getPartnerName()
Support24::getSupportLevel()
Support24::getUserSupportLevel()
Support24::isActiveFreeSupport()
Support24::isActiveFreeSupportForAll()
Support24::isActiveFreeSupportForUser()
Support24::isActivePaidSupport()
Support24::isActivePaidSupportForAll()
Support24::isActivePaidSupportForUser()
Support24::isActivePartnerSupport()
Support24::isEnabled()
Support24::isFreeSupportLifeTimeExpired()
Support24::isNeedUpdateBotAvatarAfterNewMessage()
Support24::isNeedUpdateBotFieldsAfterNewMessage()
Support24::isUserAdmin()
Support24::isUserIntegrator()
Support24::onAfterLicenseChange()
Support24::onAfterSupportCodeChange()
Support24::onAfterUserAuthorize()
Support24::onAnswerAdd()
Support24::onCommandAdd()
Support24::onMessageAdd()
Support24::onReceiveCommand()
Support24::onStartWriting()
Support24::onWelcomeMessage()
Support24::register()
Support24::replacePlaceholders()
Support24::scheduleAction()
Support24::scheduledActionAgent()
Support24::sendMessage()
Support24::sendNotifyAboutChangeLevel()
Support24::sendRequestFinalizeSession()
Support24::unRegister()
Support24::updateBotProperties()
Support::checkPublicUrl()
Support::getBotId()
Support::getCode()
Support::isEnabled()
Support::onChatStart()
Support::onMessageAdd()
Support::register()
Support::unRegister()
imbot::CheckModules()
imbot::DoInstall()
imbot::DoUninstall()
imbot::InstallDB()
imbot::InstallEvents()
imbot::InstallFiles()
imbot::UnInstallDB()
imbot::UnInstallEvents()
imbot::UnInstallFiles()
imbot::imbot()