Is Telegram working?
-
OK, you've found the issue.
-
OK, you've found the issue.
-
No worries. Just trying to teach fishing rather than just handing the fish over...
The last line of your log snippet:
[latest-21342]2021-12-09T18:38:19.250Z <NotifyTelegram:ERR> NotifyTelegram failure response text: {"ok":false,"error_code":400,"description":"Bad Request: chat not found"}
It's not happy with the chat ID, it appears. That's a pretty specific message. Where did you get it? Have you verified it?
Getting the chat ID can be a bit of work. Sometimes it's in the message you get when you set up in Bot Father, sometimes not. The config file template's comments give you some instructions and a link for how to get the chat ID.
# # default_chat_id - (required) Default chat ID to use if not specified in message. See # this link for how to get chat ID: # https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id default_chat_id: "123456789"
At the very least, I'd go through this process and confirm. Watch the case on the ending of the URL that you're asked to fetch. If it's incorrect, the API will give you a bogus empty-ish response rather than an error, which can be frustrating to figure out.
-
No worries. Just trying to teach fishing rather than just handing the fish over...
The last line of your log snippet:
[latest-21342]2021-12-09T18:38:19.250Z <NotifyTelegram:ERR> NotifyTelegram failure response text: {"ok":false,"error_code":400,"description":"Bad Request: chat not found"}
It's not happy with the chat ID, it appears. That's a pretty specific message. Where did you get it? Have you verified it?
Getting the chat ID can be a bit of work. Sometimes it's in the message you get when you set up in Bot Father, sometimes not. The config file template's comments give you some instructions and a link for how to get the chat ID.
# # default_chat_id - (required) Default chat ID to use if not specified in message. See # this link for how to get chat ID: # https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id default_chat_id: "123456789"
At the very least, I'd go through this process and confirm. Watch the case on the ending of the URL that you're asked to fetch. If it's incorrect, the API will give you a bogus empty-ish response rather than an error, which can be frustrating to figure out.
@toggledbits Thank you for your patience!
After two hours of digging, google searching and some trial and errors, I finally found why it didn't work...
It's easier if the reactor is activated...
It do not work even in the editing menu, as long as it's not activated. This is strange, since I can activate a specific entity/step to try it out. But that was not the case with the notify function. All of my tries have been in the editing menu with the reaction not activated. Now it's working perfectly, and so are my other notify services. Have a great weekend!
-
Well, it depends on which "try" button you use. The Entity Action "try" button, on the same row as the entity action itself, will run any time. But the "Try Reaction" button in the reaction's header... no... that requires the rule to be enabled. And that fact is logged (attempting to run a reaction in a disabled rule), by the way, so again, careful review of the logs can be very helpful.
But... that resolution does not reconcile at all with the error message handed back from Telegram that you posted earlier. But if it's working for you now, I guess I won't go down that rabbit hole.
-
Well, it depends on which "try" button you use. The Entity Action "try" button, on the same row as the entity action itself, will run any time. But the "Try Reaction" button in the reaction's header... no... that requires the rule to be enabled. And that fact is logged (attempting to run a reaction in a disabled rule), by the way, so again, careful review of the logs can be very helpful.
But... that resolution does not reconcile at all with the error message handed back from Telegram that you posted earlier. But if it's working for you now, I guess I won't go down that rabbit hole.
@toggledbits No, I guess we shouldn't spend any more time trying to understand. It works and I'm delighted. I do appreciate that you try to teach us fishing instead of handing the fish. I always try for hours before I ask for assistence. That's the way to learn and grow. Take care!
-
T toggledbits locked this topic on