Sending a message to a text conference on behalf of any user, who already exists in the conference.

 

Syntax

function mSendConfMessage(iUID, iUINFrom: integer; sMsg: string; iMsgType: integer): integer;

 

Parameters and return values

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

message type.

 

Function result

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.

 

Example


begin
  mSendConfMessage(1, 0, 'Hello!' + CRLF + 'This is the test multi-line message in the conference', 1);
end.


Script work result

Multi-line message that was sent from the script to the MyChat conference

 

See also

CRLF