Send a message with return receipt to multiple users.

 

Syntax

function mSendBroadcast(sMsg, sUINsList: string; dtActualTo: TDateTime; iStyle: integer): integer;


Parameters and return values

Parameter

Type

Value

sMsg

string

message text;

sUINsList

string

announcement expiration time. Calculated in UTC automatically;

dtActualTo

double

if "true", then a message will be placed on top of all messages ignoring date sorting;

iStyle

integer

broadcast type: 0 — regular; 1— must read; 2 — must reply.

 

Function result

0

broadcast sent successfully;

-1

no list of UINs for broadcasting;

-2

incorrect UINs list (only numbers and commas)

-3

broadcast type must be from 0 to 2;

-4

broadcast text can't be empty.

 

Example


begin
  mSendBroadcast('Hello!' + CRLF + 'Second line', '6', IncDay(Now, 1), 0);
end.


Script work result

 

MyChat broadcast

 

See also

CRLF

IncDay