Метод rotateBotToken
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
306–339
~/bitrix/modulesim/lib/restbot.php
Исходный код
Сигнатура метода
private static function rotateBotToken(int $botId, string $oldClientId, string $newToken): string|false
Возвращает:
string|false
Описание
Rotates the APP_ID for a webhook bot under one transaction. After successful rotation, old REST event subscriptions are rebuilt by the caller ({@see update()}) using the new clientId.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$botId
|
int
|
-
|
-
|
$oldClientId
|
string
|
-
|
-
|
$newToken
|
string
|
-
|
-
|