TsgcWSPClient_E2EEEvents › OnE2EEGroupMessageBinary

OnE2EEGroupMessageBinary Event

Fired when a decrypted group binary message is received.

Syntax

property OnE2EEGroupMessageBinary: TsgcWSE2EEOnGroupMessageBinary;
// TsgcWSE2EEOnGroupMessageBinary = procedure(Sender: TObject; const aGroup, aFrom: string; const aBytes: TBytes) of object

Default Value

Remarks

Fired for group messages sent through the TStream or TBytes overloads of SendGroupMessage. aBytes is the fully decrypted payload as it was passed by aFrom. The event is not fired for messages sent by the local user.

Example

procedure TForm1.oE2EEE2EEGroupMessageBinary(Sender: TObject; const aGroup, aFrom: string; const aBytes: TBytes);
begin
  Log(Format('[%s] %s sent %d bytes', [aGroup, aFrom, Length(aBytes)]));
end;

Back to Events