Telegram Bot
Posted: 31 Jul 2019 18:38
Hi all,
I use raspberry platform with razberry.
I usually spend some time to check new stuff so I've tested also Telegram bot too. I tested it with v2.3.7, v2.3.8 and now with v3.0.0 release. Every time, I have the same results:
"something went wrong",
"Cannot instantiate module: Zway-Telegram-Bot: TypeError: undefined is not a function".
Well, let me try to recap.
At first, I found this interesting project
https://github.com/CopyCat73/Zway-Telegram-Bot
so I cloned it in /opt/z-way-server/automation/modules and I've prepared bot on telegram as per instructions and as usual.
Rebooted z-way server I was able to see the new app between LocalApps but when I tried to instantiate it pushing on save button, the error appeared.
So I googled searching for a solution.
These posts
https://github.com/maros/Zway-InfluxDbStats/issues/2
https://github.com/maros/Zway-BaseModul ... /README.md
pushed me, as described referring to BaseModule, to edit and modify the index.js and module.json files directly.
Same results.
Just to attempt, I tried also this
https://github.com/CopyCat73/Zway-Teleg ... e7f33d2b28
Of course, the same results.
Now I'm here to ask if anyone of you have an idea to make the bot working. Do you have?
Thanks,
Marco
I use raspberry platform with razberry.
I usually spend some time to check new stuff so I've tested also Telegram bot too. I tested it with v2.3.7, v2.3.8 and now with v3.0.0 release. Every time, I have the same results:
"something went wrong",
"Cannot instantiate module: Zway-Telegram-Bot: TypeError: undefined is not a function".
Well, let me try to recap.
At first, I found this interesting project
https://github.com/CopyCat73/Zway-Telegram-Bot
so I cloned it in /opt/z-way-server/automation/modules and I've prepared bot on telegram as per instructions and as usual.
Rebooted z-way server I was able to see the new app between LocalApps but when I tried to instantiate it pushing on save button, the error appeared.
So I googled searching for a solution.
These posts
https://github.com/maros/Zway-InfluxDbStats/issues/2
https://github.com/maros/Zway-BaseModul ... /README.md
pushed me, as described referring to BaseModule, to edit and modify the index.js and module.json files directly.
Same results.
Just to attempt, I tried also this
https://github.com/CopyCat73/Zway-Teleg ... e7f33d2b28
Of course, the same results.
Now I'm here to ask if anyone of you have an idea to make the bot working. Do you have?
Thanks,
Marco