[**RongIMLib**](../README.md) *** [RongIMLib](../globals.md) / getRobotById # Function: getRobotById() > **getRobotById**(`robotId`): `Promise`\<[`RCResult`](../interfaces/RCResult.md)\<[`IRobotInfo`](../interfaces/IRobotInfo.md) \| `null`\>\> 获取指定机器人信息,若不存在,则返回 RCResult ## Parameters ### robotId `string` 机器人 ID ## Returns `Promise`\<[`RCResult`](../interfaces/RCResult.md)\<[`IRobotInfo`](../interfaces/IRobotInfo.md) \| `null`\>\> ## Since 5.32.0