# \[APP\]\[Pro\] Telegram

**URL:** <https://community.homey.app/t/app-pro-telegram/66622>\
**Category:** Apps\
**Tags:** app, flow, homey-pro\
**Created:** [July 28, 2022, 1:34pm UTC](https://community.homey.app/t/app-pro-telegram/66622 "2022-07-28T13:34:36Z")\
**Posts on this page:** 1\
**Showing post:** 126

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 13, 2022, 7:24pm UTC](https://community.homey.app/t/app-pro-telegram/66622/126 "2022-11-13T19:24:37Z")

</div>

> [@spkesDE](#):
>
> app.bot.telegram.sendMessage(args.user.id, bl.decode(args.message))

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

> [@\[APP\]\[Pro\] Better Logic Library - For developers](https://community.homey.app/t/app-pro-better-logic-library-for-developers/71761/3):
>
> How to include the Better Logic Library? The Basic There are just a few simple steps to start with the most basic: include the BLL and initialize it: Add BLL through NPM. [npm install betterlogiclibrary](https://www.npmjs.com/package/betterlogiclibrary) 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('betterlogiclibrary'); Initialize the BL in the app.js onInit: await BL.init({homey:this.homey}); There will be no error’s thrown if BLL i…

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 🙂 .

---

_[View the full topic](https://community.homey.app/t/app-pro-telegram/66622)._
