# \[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:** 20\
**Page:** 8

<div class="post-metadata">

**Author:** ![Marcel\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_visser/32/66024_2.png) [@Marcel\_Visser](https://community.homey.app/u/Marcel_Visser)\
**Post date:** [December 5, 2022, 9:27pm UTC](https://community.homey.app/t/app-pro-telegram/66622/142 "2022-12-05T21:27:40Z")

</div>

Hi, thanks for the app! A really great alternative for Homey’s confimation notifications wich are currently broaken.

One question… I am using a Galaxy S21 with Android 13 and I cannot get a notification dialog with the answer buttons allready in the notification. So I have to open Telegram to press the right button. I tried to try some different settings in my phone, without luck.

---

<div class="post-metadata">

**Author:** ![spkesDE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spkesde/32/54352_2.png) [@spkesDE](https://community.homey.app/u/spkesDE)\
**Post date:** [December 5, 2022, 11:43pm UTC](https://community.homey.app/t/app-pro-telegram/66622/143 "2022-12-05T23:43:24Z")

</div>

That something that I can’t change. Its a thing that android/telegram has to develop into there system/app

---

<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:** [December 8, 2022, 1:43pm UTC](https://community.homey.app/t/app-pro-telegram/66622/144 "2022-12-08T13:43:15Z")

</div>

Hey spkes, just fyi: the script that reads the flowcards and other code, it’s pretty small and easy to implement.  
I have it in bll, advanced triggers and the countdown app.  
If you ever want to implement it, let me know, ill show you which code to include where.

(Adding it later does not break flows or anything, because you will still use the dropdown/select type argument).

---

<div class="post-metadata">

**Author:** ![spkesDE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spkesde/32/54352_2.png) [@spkesDE](https://community.homey.app/u/spkesDE)\
**Post date:** [December 8, 2022, 1:50pm UTC](https://community.homey.app/t/app-pro-telegram/66622/145 "2022-12-08T13:50:12Z")

</div>

Already included in a test version.

[Check it out](https://github.com/spkesDE/TelegramNotifications/commit/3f0fd98965cce1af1cc7e4b52e710f624bf0be13). The only problem I got reported that some people does get now {} as a result to telegram. I cannot test it since no homey pro yet 😃

If is that what you meant. If you meant cards to create questions/answers, then sure, let me know 🙂 I’m interested in it.

---

<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:** [December 8, 2022, 2:26pm UTC](https://community.homey.app/t/app-pro-telegram/66622/146 "2022-12-08T14:26:43Z")

</div>

> [@spkesDE](#):
>
> The only problem I got reported that some people does get now {} as a result to telegram. I cannot test it since no homey pro yet 😃

you need to put await before BL.decode, right now, you will get a Promise (resulting in an empty object when parsing to string).

So  
change

```auto
 card.registerRunListener((args) => {
            if (app.bot != null) {
                if (Utils.validateURL(args.url)) {
                    app.bot.telegram.sendPhoto(args.user.id, {filename: "", url: args.url}, {caption: args.message})
                    app.bot.telegram.sendPhoto(args.user.id, {
                        filename: "",
                        url: args.url
                    }, {caption: BL.decode(args.message)})
                        .catch(app.error)
                        .then();

```

TO

```auto
 card.registerRunListener(async (args) => {
            if (app.bot != null) {
                if (Utils.validateURL(args.url)) {
                    app.bot.telegram.sendPhoto(args.user.id, {filename: "", url: args.url}, {caption: args.message})
                    app.bot.telegram.sendPhoto(args.user.id, {
                        filename: "",
                        url: args.url
                    }, {caption: await BL.decode(args.message)})
                        .catch(app.error)
                        .then();

```

added the async and the await.

You also need to add it to the second BL.decode you use a few lines down: Async the function and place await before BL.decode.  
That should solve it.

---

<div class="post-metadata">

**Author:** ![spkesDE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spkesde/32/54352_2.png) [@spkesDE](https://community.homey.app/u/spkesDE)\
**Post date:** [December 8, 2022, 2:33pm UTC](https://community.homey.app/t/app-pro-telegram/66622/147 "2022-12-08T14:33:11Z")

</div>

Ahh, you could add a return type to the decode Definition.

```auto
    static decode(text: string, { locale, timeZone }?: {
        locale: any;
        timeZone: any;
    }, ...args: any[]): Promise<string>;

```

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/6/6630672bd1af81f2e23cce6065aafe4e3e080541.png)

---

<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:** [December 8, 2022, 2:45pm UTC](https://community.homey.app/t/app-pro-telegram/66622/148 "2022-12-08T14:45:31Z")

</div>

Ah, will do that! Sorry about that.

---

<div class="post-metadata">

**Author:** ![Seinuh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/seinuh/32/16357_2.png) [@Seinuh](https://community.homey.app/u/Seinuh)\
**Post date:** [December 16, 2022, 7:43pm UTC](https://community.homey.app/t/app-pro-telegram/66622/149 "2022-12-16T19:43:37Z")

</div>

Great app! But i cannot remove users/groups… i can press the remove button but nothing happens.

---

<div class="post-metadata">

**Author:** ![spkesDE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spkesde/32/54352_2.png) [@spkesDE](https://community.homey.app/u/spkesDE)\
**Post date:** [December 16, 2022, 7:46pm UTC](https://community.homey.app/t/app-pro-telegram/66622/150 "2022-12-16T19:46:41Z")

</div>

With the current test version or the live version?

---

<div class="post-metadata">

**Author:** ![Seinuh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/seinuh/32/16357_2.png) [@Seinuh](https://community.homey.app/u/Seinuh)\
**Post date:** [December 16, 2022, 7:47pm UTC](https://community.homey.app/t/app-pro-telegram/66622/152 "2022-12-16T19:47:55Z")

</div>

Live version

---

<div class="post-metadata">

**Author:** ![spkesDE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spkesde/32/54352_2.png) [@spkesDE](https://community.homey.app/u/spkesDE)\
**Post date:** [December 16, 2022, 7:48pm UTC](https://community.homey.app/t/app-pro-telegram/66622/153 "2022-12-16T19:48:52Z")

</div>

Then it should work. Could you send a diagnostic report?

Are you using a old mobile device?

---

<div class="post-metadata">

**Author:** ![Mole](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mole/32/10823_2.png) [@Mole](https://community.homey.app/u/Mole)\
**Post date:** [December 19, 2022, 11:16am UTC](https://community.homey.app/t/app-pro-telegram/66622/154 "2022-12-19T11:16:13Z")

</div>

Great App! maybe I missed it, but I have searched for a way to answer on a equation from the notification on a iPhone (trough quick reply) is this possible? I do not see the two answers I have programmed…

 ![IMG_7877](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/e/7e0874da6fe08a8d81005661910ed246d2f8bddf.jpeg)

The only way for now it seems to open telegram and then I can answer…

---

<div class="post-metadata">

**Author:** ![spkesDE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spkesde/32/54352_2.png) [@spkesDE](https://community.homey.app/u/spkesDE)\
**Post date:** [December 19, 2022, 11:32am UTC](https://community.homey.app/t/app-pro-telegram/66622/155 "2022-12-19T11:32:03Z")

</div>

The Buttons are not visible in quick reply. This is something I can’t change.  
You could build your own Question system with A Message is received card.

---

<div class="post-metadata">

**Author:** ![Mole](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mole/32/10823_2.png) [@Mole](https://community.homey.app/u/Mole)\
**Post date:** [December 19, 2022, 12:01pm UTC](https://community.homey.app/t/app-pro-telegram/66622/156 "2022-12-19T12:01:46Z")

</div>

ah ok, thanks for your quick reply!

---

<div class="post-metadata">

**Author:** ![Jasper\_vd](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jasper_vd/32/47913_2.png) [@Jasper\_vd](https://community.homey.app/u/Jasper_vd)\
**Post date:** [December 20, 2022, 1:07pm UTC](https://community.homey.app/t/app-pro-telegram/66622/157 "2022-12-20T13:07:45Z")

</div>

Hello all,

Is there a possibility to add variables to a question?  
Like I did with my push notification (that is currently not working because on android 13)

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/a/3a067aa0b82f56ae40bfec893cea1fce74303a39.png)

---

<div class="post-metadata">

**Author:** ![spkesDE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spkesde/32/54352_2.png) [@spkesDE](https://community.homey.app/u/spkesDE)\
**Post date:** [December 20, 2022, 1:12pm UTC](https://community.homey.app/t/app-pro-telegram/66622/158 "2022-12-20T13:12:09Z")

</div>

Not with the current system. You can use them with the Send a Message card though.  
As I can’t develop right now (see prev. posts) there is also nothing i can do currently about it.

---

<div class="post-metadata">

**Author:** ![Jasper\_vd](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jasper_vd/32/47913_2.png) [@Jasper\_vd](https://community.homey.app/u/Jasper_vd)\
**Post date:** [December 20, 2022, 1:15pm UTC](https://community.homey.app/t/app-pro-telegram/66622/159 "2022-12-20T13:15:56Z")

</div>

Thank you for the reply! Will use it as it is for now! Works really good!

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 21, 2022, 11:17pm UTC](https://community.homey.app/t/app-pro-telegram/66622/160 "2022-12-21T23:17:29Z")

</div>

Has anyone run into this issue?  
There seems to be a bug in v2.1.2 — Fixed BLL support  
When I save answers to new questions, or edit existing ones, the new answers do not get saved  
[Git issue](https://github.com/spkesDE/TelegramNotifications/issues/13)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 22, 2022, 11:02pm UTC](https://community.homey.app/t/app-pro-telegram/66622/161 "2022-12-22T23:02:05Z")

</div>

I can’t find (after a quick search) a post about this function, which I like to share.

#### _How to send a question from a flow, and let the user enter a value, which is then used in the flow conditions / actions of that flow._

With this question and ideas of @Hamster, I made this example flow.

Conditions:

- the flow should not respond to any message with coïncidental valid values
- the entered value should be within a defined value range
- the user should be informed when an invalid value has been entered
- when the value needs to be numbers only, the returned value needs to be converted from ‘text’ type to ‘numeric’ type

 ![Screenshot 2022-12-23 at 00-20-07 1.HomeyPro Peter](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/9/09d4ce04a531987ae14a000e4b45f2bfa84d6836.png)

- Question, reply and flow responses  

> ![Screenshot from 2022-12-23 00-18-52](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/f/2fc61caecd69adf11c068261846457886dc9c340.png)

---

<div class="post-metadata">

**Author:** ![Hamster](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hamster/32/16580_2.png) [@Hamster](https://community.homey.app/u/Hamster)\
**Post date:** [December 23, 2022, 7:24am UTC](https://community.homey.app/t/app-pro-telegram/66622/162 "2022-12-23T07:24:55Z")

</div>

@spkesDE,

I hope you’ll get your hands on a new Homey Pro soon!

Is it possible to use HomeyScript to remove/add answers from a question defined in your app?

That would allow us to dynamically create the answers.

[Previous page](https://community.homey.app/t/app-pro-telegram/66622.md?page=7)

[Next page](https://community.homey.app/t/app-pro-telegram/66622.md?page=9)
