"For developers", "Server scripts", "Functions description", "Broadcasts", "mSendBroadcast".
Send a message with return receipt to multiple users.
function mSendBroadcast(sMsg, sUINsList: string; dtActualTo: TDateTime; iStyle: integer): integer;
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. |
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. |
begin
mSendBroadcast('Hello!' + CRLF + 'Second line', '6', IncDay(Now, 1), 0);
end.