[APP][Pro] Telegram

Indeed yeah!

Dont forget the await before the bl.decode (it’s an async method).

And you need the setup steps:

  • Add the permission to your app.json
    "permissions": ["homey:app:net.i-dev.betterlogic"]
  • Import the BL module in the app.js:.
    const { BL } = require('../../lib/bll/bl');
  • Initialize the BLL in the app.js onInit:
    let bl = await new BL({homey:this.homey, silent:true]});
  • Create a file /lib/bll/bll-loader.js and place the next code into it:

Source

But beside those few steps, yeah it’s just a matter of running it through the await bl.decode.
It will be run through the AppApi on the BLL app, so you don’t need to include anything.

If you would ever need the DateTime to convert a lott of dates to show in a app settings or something like that, the Datetime module is a beter use, because it runs within your own app and only sync’s the BLL app settings.

But for the BLL decoding in text-arguments, its just a simple inlude into your app and than the simple bl.decode :slight_smile: .