Sending a message to a text conference on behalf of any user, who already exists in the conference.
function mSendConfMessage(iUID, iUINFrom: integer; sMsg: string; iMsgType: integer): integer;
Parameter |
Type |
Value |
---|---|---|
iUID |
integer |
conference identifier. The conference must exists at the moment of message sending; |
iUINFrom |
integer |
sender identifier. You can use the built-in bot (UIN 0) or any other user, who already exist in the conference; |
sMsg |
string |
message text. You can use line breaks (CRLF); |
iMsgType |
integer |
Result |
Value |
---|---|
0 |
all OK, message sent successfully; |
-1 |
conference with the specified UID does not exist; |
-2 |
there is no user with such UIN in the specified conference; |
-3 |
message cannot be empty. |
begin
mSendConfMessage(1, 0, 'Hello!' + CRLF + 'This is the test multi-line message in the conference', 1);
end.