Portex SDK Documentation
    Preparing search index...

    Class Portex

    Portex SDK namespace

    Index

    Constructors

    Properties

    webApp: WebApp

    Telegram Web App

    Accessors

    • get isVerified(): boolean

      Check if user is verified

      Returns boolean

      Whether user is verified

    Methods

    • Get start param from webapp

      Returns string

      Start param

    • Whether there is a pending payment URL

      Returns boolean

      Whether there is a pending payment URL

    • Report user set

      Parameters

      • data: Object = {}

        user data

      Returns Promise<boolean>

      boolean - true if success

      Error - if failed to report user set

    • Report track

      Parameters

      • eventName: string

        event name

      • data: Object = {}

        report track data

      Returns Promise<boolean>

      boolean - true if success

      Error - if failed to report track

    • Save game record

      Parameters

      • name: string
      • record: string

        game record

      Returns Promise<boolean>

      boolean - true if success

      Error - if failed to save game record