Publishers will be available in version 1.3.0

Publishers can be used to publish events to external services and destinations. All publishers are configured in the backstage.

In general a publisher has 3 events it triggers on:

  • publish: once the event is published in lauti
  • update: once the event is updated in lauti
  • unpublish: once the event is deleted or unpublished in lauti

Each publisher always has two fields:

  • Enabled: wether the publisher is active
  • Name: Name of the publisher

Telegram Publisher

The telegram publisher send messages to a telegram channel or chat. To configure it you need to follow these steps:

  1. Create a telegram bot using the telegram bot documentation and save the bot token.
  2. Add your bot to your telegram channel or chat
  3. Write a message in that channel or chat and mention your bot. The message must contain the word “init”. This will allow LAUTI to pick up the chat id.
  4. Configure the LAUTI telegram publisher. You only need to set the token and everything should work.

Webhook Publisher

The webhook publisher is a very generic one that will send a post request for each event to a configured url.

Fields

Url: The external url e.g. https://example.com

Authorization Header: Will set the Authorization header e.g. my-secret

Payloads

Publish payload:

{
  action: "publish",
  event: {
    id: "...",
    ...
  }
}

Update payload:

{
  action: "update",
  event: {
    id: "...",
    ...
  },
  id: "..."
}

Unpublish payload:

{
  action: "unpublish",
  id: "..."
}