NIMRobotObject Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | NIMMessageObject |
| Declared in | NIMRobotObject.h |
– initWithRobot:robotId:
Bot message attachment object constructor
- (instancetype)initWithRobot:(NSString *)content robotId:(NSString *)robotIdParameters
content |
The content |
|---|---|
robotId |
Chatbot ID |
Return Value
Bot message instance
Discussion
Bot message attachment object constructor
The content parameter is not used for UI display. use message.text field for display, such as, dialog bubbles
Declared In
NIMRobotObject.h
– initWithRobotId:target:param:
Bot message attachment object constructor
- (instancetype)initWithRobotId:(NSString *)robotId target:(NSString *)target param:(NSString *)paramParameters
robotId |
Chatbot ID |
|---|---|
target |
module ID |
param |
module redirection parameter |
Return Value
Bot message instance
Discussion
Bot message attachment object constructor
Declared In
NIMRobotObject.h
isFromRobot
Determine whether the message is a chatbot reply
@property (nonatomic, assign, readonly) BOOL isFromRobotDiscussion
Determine whether the message is a chatbot reply
Declared In
NIMRobotObject.h
robotId
If the message is sent by the user to the chatbot, this field is the target robot Id, If the message is a message replied by a robot, this field is the ID of the chatbot to which the message belongs.
@property (nullable, nonatomic, copy, readonly) NSString *robotIdDiscussion
If the message is sent by the user to the chatbot, this field is the target robot Id, If the message is a message replied by a robot, this field is the ID of the chatbot to which the message belongs.
Declared In
NIMRobotObject.h
response
The response message replied by the robot. The field is valid only in the messages received by the robot.
@property (nullable, nonatomic, copy, readonly) NSDictionary *responseDiscussion
The response message replied by the robot. The field is valid only in the messages received by the robot.
Declared In
NIMRobotObject.h
responseForMessageId
The Id of the question message to which the message replied by the chatbot. The field is valid only in the messages received by the robot.
@property (nullable, nonatomic, copy, readonly) NSString *responseForMessageIdDiscussion
The Id of the question message to which the message replied by the chatbot. The field is valid only in the messages received by the robot.
Declared In
NIMRobotObject.h