hothost icon indicating copy to clipboard operation
hothost copied to clipboard

Can't get telegram bot working

Open N1k145 opened this issue 1 year ago • 5 comments

When I try to setup the telegram bot I can't send a test message, it always prints undefinedChatId and invalidChatId in the docker log.

When I send a message to the bot it seems that it can't get the chat id.

When I set the chat id manually in the JSON file as "telegramLastChannelId": "12345" (with my correct Id) I don't get the error anymore but I also don't get a message

Is this something you can look into?

N1k145 avatar Aug 22 '23 06:08 N1k145

HotHost_issue I've the same problem in a docker installation. When I try to send the test message after the configuration, the LOG register this event:

Incorrect chat id

and

[90mundefined[39m chatId

edoardolimone avatar Sep 19 '23 12:09 edoardolimone

Notifications in Telegram and Gmail do not work

SkiperX avatar Jan 22 '24 14:01 SkiperX

Please make telegram chat id a separate field, now it’s not clear how to make sure that it is defined correctly in the application. And how to change it

SkiperX avatar Jan 22 '24 15:01 SkiperX

Managed to launch telegram alerts

  1. create a volume for the data folder volumes: - ./data:/var/lib/hothost/data/
  2. add the bot token to the plugin settings
  3. stop the container
  4. replace in the hothost.json file in the line "telegramLastChannelId": ["-111111111111111"] your chatid
  5. run the container
  6. send a test notification in the plugin

SkiperX avatar Jan 23 '24 11:01 SkiperX

Thanks, we will take a look. We are now working on v2. Probably fix will be there, probably in this version. @MultiFox200 how do you think?

ivictbor avatar May 03 '24 08:05 ivictbor