Function getPlatformFromMessage

  • Get the platform message from message ID

    The platform can be:

    • android
    • iphone
    • web
    • unknown

    Parameters

    • messageId:
          | string
          | MsgModel
          | MsgKey
          | Stringable

    Returns
        | "android"
        | "iphone"
        | "web"
        | "unknown"

    // to get platform from a message
    const platform = WPP.chat.getPlatformFromMessage('[message_id]');