TsgcWSPClient_E2EE › Events › OnE2EEGroupMessageBinary
Fired when a decrypted group binary message is received.
property OnE2EEGroupMessageBinary: TsgcWSE2EEOnGroupMessageBinary;
// TsgcWSE2EEOnGroupMessageBinary = procedure(Sender: TObject; const aGroup, aFrom: string; const aBytes: TBytes) of object
—
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.
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;