[APP][Pro] Telegram

Thanks for the fast respons.

I was already afraid of that.

I have installed this app on my Homey Self-Hosted (SHS) on Synology.
My previous HP23 had no issue sending images together with a message. But I am unable to do the same on the SHS. I had installed a new Telegram Bot on the SHS.

Would you be able to help see whether it is an app issue or SHS issue?
Thank you.

e6b98dc8-aafd-4d1f-995a-e69e4c0d1e86

[err] GrammyError: Call to 'sendPhoto' failed! (400: Bad Request: IMAGE_PROCESS_FAILED) 
payload: { chat_id: REDACTED , photo: 'attach://REDACTED', caption: REDACTED, parse_mode: undefined, message_thread_id: undefined, disable_notification: false }, ok: false, error_code: 400, description: 'Bad Request: IMAGE_PROCESS_FAILED', parameters: {} }

The API Returns a 400 error. Looks like the format of the “attach” url won’t work. I don’t know what changed Athom did to the SHS platform. Telegram needs full HTTPS Url. In the code I convert the Image tag to a Local or a Homey Cloud URL. I don’t know why it will tries to send the image like this.

Maybe I find some time to install a SHS Server if Athom gives us free access…

1 Like

confirmed image sending tested from home assistant Self hosted server homey

Hi! I need a tutorial to start using the bot.

I followed these steps:

1. Install the app on your smart home hub.
2. Create a Telegram bot by searching for @Botfather in the Telegram search bar and selecting the @Botfather bot@Botfather
3. Start the @Botfather b@Botfathert by click@Botfatherng the “Start” butt@Botfathern or by sending@Botfatherthe /newbot command@Botfatherto create a new bot.
4. (Optional) To ensure privacy, set the bot to private by entering /setjoingroup DISABLED and set the privacy to DISABLED by entering /setprivacy.
5. Enter the token in the app settings.
6. Start the bot by sending the /start command in Telegram, and follow the instructions. Each user must also send the bot the /start command. You can share the bot with others by searching for it in Telegram or by sharing the profile link.
7. Enjoy controlling your smart home from Telegram!

And I was able to add my bot to two private groups (done many months ago).

Now I added to one of the groups the “Topics” from Telegram, and it immediately stopped working and now I don’t know how to restore it to simple group or how to make it work with topics.

Is there a well written and clear tutorial on how to do that? I think a tutorial with screenshots would be perfect, this bot is quite complex to configure (i did in the past and now I don’t even know how to do it for one simple group).

If a donation is needed, I will be happy to do it

You have to re-register the group, since you probably upgraded from a group to a supergroup.
use /start again and fix your flows with the new group

Many thank you for your reply! /start where should I type it? If I type it inside the bot’s chat, does not do anything.

Edit: I stopped the bot, changed API Token, updated API Token but still to no avail

When the App Settings says it’s running. It running. But somehow you manged to use the API twice.
terminated by other getUpdates request; make sure that only one bot instance is running

And as I said, the old group chat was upgraded. Make sure /setprivacy is set to false/DISABLED
Make sure the Bot is the the group AND has rights to read/write. Supergroup has permissions.
And then use /start. It should register… Then update the flows
Bad Request: group chat was upgraded to a supergroup chat