# \[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:** 4

<div class="post-metadata">

**Author:** ![TheMac](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/themac/32/25871_2.png) [@TheMac](https://community.homey.app/u/TheMac)\
**Post date:** [October 3, 2022, 5:45pm UTC](https://community.homey.app/t/app-pro-telegram/66622/61 "2022-10-03T17:45:50Z")

</div>

Potential bug report - @spkesDE

So as I mentioned earlier I created a few flows, with advanced flows, where Telegram Notifications is called “if a message is received” and then I have set a logic asking for exact text + also if a by me predefined user is sending that text, also with logic. Then it triggers an action and a telegram message confirming the action was done or alternative - a message with a tag with info back as reply - for example current tibber price or such. I have noted that even if I have the Homey to do a reboot every night telegram notifications gets unresponsive during the day. Only after an app restart the flows kick back in. Something in the app in Homey gets stuck after a while during the day.

Do let me know if and how you wish to receive more details if you wish to have a closer look.  
app diag here: **a731c253-5ea6-4528-985e-819ade24766e**

---

<div class="post-metadata">

**Author:** ![Mats007](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mats007/32/61455_2.png) [@Mats007](https://community.homey.app/u/Mats007)\
**Post date:** [October 3, 2022, 5:46pm UTC](https://community.homey.app/t/app-pro-telegram/66622/62 "2022-10-03T17:46:43Z")

</div>

Hi,

I changed both of the settings to ‘enable’. The diagnostics report is just issued under the ID: 603d0b28-bfcc-4693-90ef-78fa420d5d47

---

<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:** [October 3, 2022, 6:36pm UTC](https://community.homey.app/t/app-pro-telegram/66622/63 "2022-10-03T18:36:29Z")

</div>

> [@TheMac](#):
>
> a731c253-5ea6-4528-985e-819ade24766e

This report looks fine. Could you send a report once this happens again? (Before you restart the app)

> [@Mats007](#):
>
> 603d0b28-bfcc-4693-90ef-78fa420d5d47

I see a bug where the username can’t be received from telegram. Will push a bugfix for that.  
Edit: @Mats007 please test out the [test version](https://homey.app/en-gb/app/com.spkes.telegramNotifications/Telegram-Notifications/test/)

---

<div class="post-metadata">

**Author:** ![Mats007](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mats007/32/61455_2.png) [@Mats007](https://community.homey.app/u/Mats007)\
**Post date:** [October 4, 2022, 6:18am UTC](https://community.homey.app/t/app-pro-telegram/66622/64 "2022-10-04T06:18:09Z")

</div>

Hi @spkesDE,

Tested your test version and works like a charm! Thanks very much for the swift help/bugfix! Is there anything I need to do or can I keep running this test version of yours?

Regards.

---

<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:** [October 4, 2022, 9:44am UTC](https://community.homey.app/t/app-pro-telegram/66622/65 "2022-10-04T09:44:01Z")

</div>

You don’t have todo anything. Homey updates automatically to the next version.

Best regards ✌

---

<div class="post-metadata">

**Author:** ![thobu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thobu/32/18357_2.png) [@thobu](https://community.homey.app/u/thobu)\
**Post date:** [October 4, 2022, 6:26pm UTC](https://community.homey.app/t/app-pro-telegram/66622/66 "2022-10-04T18:26:25Z")

</div>

is this high mem use just on my side?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/4/1417888d6eb7b6cc6df48561d66a4573840ebdda.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:** [October 4, 2022, 7:12pm UTC](https://community.homey.app/t/app-pro-telegram/66622/67 "2022-10-04T19:12:06Z")

</div>

Looks like it. I’m using only 20mb.  
Could u make a diagnostic report? And/or restart the app

---

<div class="post-metadata">

**Author:** ![thobu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thobu/32/18357_2.png) [@thobu](https://community.homey.app/u/thobu)\
**Post date:** [October 4, 2022, 7:12pm UTC](https://community.homey.app/t/app-pro-telegram/66622/68 "2022-10-04T19:12:44Z")

</div>

any idea what I can do about 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:** [October 4, 2022, 7:13pm UTC](https://community.homey.app/t/app-pro-telegram/66622/69 "2022-10-04T19:13:36Z")

</div>

I just made an edit to my previous post.

---

<div class="post-metadata">

**Author:** ![thobu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thobu/32/18357_2.png) [@thobu](https://community.homey.app/u/thobu)\
**Post date:** [October 4, 2022, 7:18pm UTC](https://community.homey.app/t/app-pro-telegram/66622/70 "2022-10-04T19:18:28Z")

</div>

> [@spkesDE](#):
>
> Could u make a diagnostic report? And/or restart the app

restart did not change a thing. here’s the diagnostics 7f0e0f69-f60e-49b5-b9ce-22317aa32a77

---

<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:** [October 4, 2022, 7:20pm UTC](https://community.homey.app/t/app-pro-telegram/66622/71 "2022-10-04T19:20:42Z")

</div>

Looks fine to me.  
Could you give me more informations?

- How many users?
- Could you clear the logs?
- what does you flows look like?

---

<div class="post-metadata">

**Author:** ![thobu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thobu/32/18357_2.png) [@thobu](https://community.homey.app/u/thobu)\
**Post date:** [October 4, 2022, 7:26pm UTC](https://community.homey.app/t/app-pro-telegram/66622/72 "2022-10-04T19:26:23Z")

</div>

- cleared the log
- so, there is 2 users, one is a group
- I only got a few standard flows (rather easy I’d say) and one large Adv Flow, that also contains the notifications along w/ Smart Presence. Does that help?

Update: I should mention that I’m using images via http

---

<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:** [October 4, 2022, 9:10pm UTC](https://community.homey.app/t/app-pro-telegram/66622/73 "2022-10-04T21:10:17Z")

</div>

The only thing that can think of is the caching of the image. I’m not sure if I can solve that, because it get handled by the telegram api.

I‘ll take a look at this once I got some time

---

<div class="post-metadata">

**Author:** ![KarlO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/karlo/32/79886_2.png) [@KarlO](https://community.homey.app/u/KarlO)\
**Post date:** [October 4, 2022, 10:18pm UTC](https://community.homey.app/t/app-pro-telegram/66622/74 "2022-10-04T22:18:55Z")

</div>

I am using Telegram Bot, but could not find a thread for it…

Is there a way to add line-break / newline to outgoing messages?

Answer found: Shift-Enter - that was easy…

---

<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:** [October 5, 2022, 6:43am UTC](https://community.homey.app/t/app-pro-telegram/66622/75 "2022-10-05T06:43:16Z")

</div>

Hey @thobu,

I tried to reproduce your problem and I wasn’t able too.  
My memory usage went from 20mb to 24mb after sending 100 different images with sizes from 1mb to 80mb.  
I cleaned some code and made some little changes. If you want to, you [can give it a try](https://homey.app/en-gb/app/com.spkes.telegramNotifications/Telegram-Notifications/test/) and maybe it will fix the problem.  
If keep running in high memory usage, please send before a app restart a diagnostic report 🙂

Thank you for your help! It’s really appreciated.

> [@KarlO](#):
>
> Answer found: Shift-Enter - that was easy…

I’m glad I could help 😁 I hope you enjoying my app 🙂

Best regards ✌

---

<div class="post-metadata">

**Author:** ![thobu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thobu/32/18357_2.png) [@thobu](https://community.homey.app/u/thobu)\
**Post date:** [October 5, 2022, 9:39am UTC](https://community.homey.app/t/app-pro-telegram/66622/76 "2022-10-05T09:39:00Z")

</div>

> [@spkesDE](#):
>
> Thank you for your help! It’s really appreciated.

Thank you for your efforts – that’s really appreciated! Today I’m down to 12MB. I restarted Homey again this morning, but this didn’t change anything y’day. Seems unclear what pushed the mem usage before.

---

<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:** [October 5, 2022, 12:13pm UTC](https://community.homey.app/t/app-pro-telegram/66622/77 "2022-10-05T12:13:25Z")

</div>

Dear users of my app 🙂

I’m currently developing the button based questions.  
There is one design question, where I self can’t decide what would be the best.

1. Create a question with a flow card and have a general “An answer is received” card as a trigger.  
The question itself will be deleted after a answer has been received. This would mean you would have to check for the right question text and answers.
2. Create a question with a flow card, these question will be saved and can be re-asked with a different card. The Trigger card would have a dropdown where you can select “An answer for [[question]] is received” and do your stuff. There would be also a possibility for “An answer for [[question]] is received with the answer [[answer]]” trigger card.
3. Would be 2 but the question have to be pre-created inside the settings page

The first would be fastest to program and and the third way would be the neatest but would need more developing time since I would have to redo a lot of the settings page to make space for this form.

Or would you take a different approach? If yes, let me know! 🙂

Best regards ✌

A little teaser 🙂

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/5/75c469dfb812be9ffee2b529742b33bc9de3bf53.png)

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

---

<div class="post-metadata">

**Author:** ![TheMac](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/themac/32/25871_2.png) [@TheMac](https://community.homey.app/u/TheMac)\
**Post date:** [October 5, 2022, 12:52pm UTC](https://community.homey.app/t/app-pro-telegram/66622/78 "2022-10-05T12:52:12Z")

</div>

Took a day or so - but today it became unresponsive again, here is the diagnostic report:  
835f5648-a21c-4914-86ab-b43a1cd7dbc6

After I did an app restart it came back to life again.

EDIT: noted that I have general connectivity issues with my homey and not sure something else is causing the unresponsiveness…

---

<div class="post-metadata">

**Author:** ![TheMac](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/themac/32/25871_2.png) [@TheMac](https://community.homey.app/u/TheMac)\
**Post date:** [October 5, 2022, 1:01pm UTC](https://community.homey.app/t/app-pro-telegram/66622/79 "2022-10-05T13:01:39Z")

</div>

I would go for option 3 - which would mean you could setup yes / no in the setup and use it from there. However, if you want to create more complex buttons then the initial setup could end up quite massive I guess if you pre define buttons from here and you want multiple buttons to use in your flows.

---

<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:** [October 5, 2022, 1:07pm UTC](https://community.homey.app/t/app-pro-telegram/66622/80 "2022-10-05T13:07:09Z")

</div>

Well, your report says that it can’t connect to telegram and get the updates. Looks like the problem its on your end. I’ll take a look into a way to enable some kind of auto reconnect once the bot says I wont retry again 🙂  
`Failed to fetch updates. Waiting: 1s request to ... failed, reason: read ETIMEDOUT Failed to fetch updates. Waiting: 1s request to ... failed, reason: read ECONNRESET`

> [@TheMac](#):
>
> However, if you want to create more complex buttons then the initial setup could end up quite massive

I would create a UI for that so it doesn’t get that messy. But that takes time since I’m not that fluid in writing HTML and CSS 🙂

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

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