Function getEntityTypeFromEncoded

  • A method to determine the type of entity encoded in an inboundMessage-like object.

    Parameters

    • encoded: unknown

      The deserialized inboundMessage-like object.

    Returns "chatMessage" | "reaction"

    The type of entity encoded in the message.

    ErrorInfo - If there is an error extracting the entity type from the message