Table of Contents

Getting started with TMS FNC WhatsApp Server

Prerequisites

  • TMS FNC Core and TMS FNC WebSocket installed and the runtime packages added to the project.
  • A WhatsApp Business API account and an HTTPS endpoint with a valid SSL certificate.

Add the component

  1. Drop TTMSFNCWhatsAppServer from the TMS FNC WebSocket palette page onto a form, or create one at runtime.
  2. Set Port to the HTTPS port (typically 443).
  3. Configure your SSL certificate via the SSL properties.
  4. Set Active := True to start the webhook server, or call Start from code.

Handle incoming webhook events

{ Assign OnWhatsAppMessageReceived to process inbound WhatsApp events: }
procedure TForm1.WhatsAppServer1WhatsAppMessageReceived(Sender: TObject;
  AMessage: TTMSFNCWhatsAppServerMessageEvent);
begin
  Memo1.Lines.Add('Incoming webhook payload received.');
end;

Next steps

  • Guides — webhook verification, SSL setup, and message broadcasting.
  • API reference — full class, property, method, and event reference.