[nodebb-plugin-telegram] Telegram Notifications on NodeBB
-
@ngsankar said:
@exodo , I want to use this plugin. After activating the plugin, it seems to break something and bringing nodebb down. Not 100% sure if this is to do with this plugin, but after removing the plugin, nodebb is back. log output is below, any advise ? thanks.
I am using nodebb v0.8.2 , mongodb 3.0.7 with nodejs v0.10.40.
30/10 10:40 [12462] - info: Time: Fri Oct 30 2015 10:40:44 GMT-0400 (EDT)
30/10 10:40 [12462] - info: Initializing NodeBB v0.8.2
30/10 10:40 [12462] - info: [database] Checking database indices.
30/10 10:40 [12462] - warn: [socket.io] Clustering detected, you are advised to configure Redis as a websocket store.
30/10 10:40 [12462] - warn: [plugins/nodebb-plugin-sso-google] Hookfilter:user.delete
is deprecated, please use an alternative
30/10 10:40 [12462] - warn: [plugins/nodebb-plugin-sso-facebook] Hookfilter:user.delete
is deprecated, please use an alternative
30/10 10:40 [12462] - error: ReferenceError: callback is not defined
at /home/ngsankar/nodebb/node_modules/nodebb-plugin-telegram-notifications/library.js:76:11
at handleCallback (/home/ngsankar/nodebb/node_modules/mongodb/lib/utils.js:96:12)
at /home/ngsankar/nodebb/node_modules/mongodb/lib/collection.js:1322:5
at handleCallback (/home/ngsankar/nodebb/node_modules/mongodb/lib/utils.js:96:12)
at /home/ngsankar/nodebb/node_modules/mongodb/lib/cursor.js:666:5
at handleCallback (/home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:244:5)
at setCursorNotified (/home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:564:3)
at /home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:672:16
at queryCallback (/home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:323:5)
at Callbacks.emit (/home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:95:3)
at null.messageHandler (/home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:243:23)
at Socket.<anonymous> (/home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:262:22)
at Socket.emit (events.js:95:17)
at Socket.<anonymous> (stream_readable.js:765:14)
at Socket.emit (events.js:92:17)
at emitReadable (_stream_readable.js:427:10)
ReferenceError: callback is not defined
at /home/ngsankar/nodebb/node_modules/nodebb-plugin-telegram-notifications/library.js:76:11
at handleCallback (/home/ngsankar/nodebb/node_modules/mongodb/lib/utils.js:96:12)
at /home/ngsankar/nodebb/node_modules/mongodb/lib/collection.js:1322:5
at handleCallback (/home/ngsankar/nodebb/node_modules/mongodb/lib/utils.js:96:12)
at /home/ngsankar/nodebb/node_modules/mongodb/lib/cursor.js:666:5
at handleCallback (/home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:244:5)
at setCursorNotified (/home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:564:3)
at /home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:672:16
at queryCallback (/home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:323:5)
at Callbacks.emit (/home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:95:3)
at null.messageHandler (/home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:243:23)
at Socket.<anonymous> (/home/ngsankar/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:262:22)
at Socket.emit (events.js:95:17)
at Socket.<anonymous> (stream_readable.js:765:14)
at Socket.emit (events.js:92:17)
at emitReadable (_stream_readable.js:427:10)
30/10 10:40 [12462] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
30/10 10:40 [12462] - info: [app] Database connection closed.net.js:1237
throw new Error('Not running');
^
Error: Not running
at Server.close (net.js:1237:11)
at shutdown (/home/ngsankar/nodebb/app.js:294:36)
at process.<anonymous> (/home/ngsankar/nodebb/app.js:174:3)
at process.emit (events.js:95:17)
at process._fatalException (node.js:301:26)Hi! We have fixed the error
Now it should work well! Thank you for use our plugin! -
@exodo . thank you . I managed to install and configure. However after first msg is sent from telegram, nodebb got broken and stopped working.
Its strange , there is no reference to the plugin in the error log...luckily i was clearly noting down action i was doing...and guessed something going wrong here...after i removed the plug in , forum got up and running...i am able to reproduce it now..v0.8.2 is not liking something, but dont know what. Hope u r able to find it...I like the plug in..if this is resolved,...i will surely use it..thanks for ur effort...
following is the error log
3/11 13:14 [15929] - info: NodeBB v0.8.2 Copyright (C) 2013-2014 NodeBB Inc.
3/11 13:14 [15929] - info: This program comes with ABSOLUTELY NO WARRANTY.
3/11 13:14 [15929] - info: This is free software, and you are welcome to redistribute it under certain conditions.
3/11 13:14 [15929] - info:
3/11 13:14 [15929] - info: Time: Tue Nov 03 2015 13:14:10 GMT-0500 (EST)
3/11 13:14 [15929] - info: Initializing NodeBB v0.8.2
3/11 13:14 [15929] - warn: [plugins/nodebb-plugin-sso-facebook] Hookfilter:user.delete
is deprecated, please use an alternative
3/11 13:14 [15929] - warn: [plugins/nodebb-plugin-sso-google] Hookfilter:user.delete
is deprecated, please use an alternative
3/11 13:14 [15929] - info: NodeBB Ready
3/11 13:14 [15929] - info: NodeBB is now listening on: 0.0.0.0:4567
3/11 13:14 [15929] - error: TypeError: undefined is not a function
at /home/ngsankar/nodebb/src/user/posts.js:37:12
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:697:13
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:52:16
at done (/home/ngsankar/nodebb/node_modules/async/lib/async.js:248:21)
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:44:16
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:694:17
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:173:37
at /home/ngsankar/nodebb/src/user.js:405:5
at fireFilterHook (/home/ngsankar/nodebb/src/plugins/hooks.js:86:11)
at Object.Plugins.fireHook (/home/ngsankar/nodebb/src/plugins/hooks.js:70:5)
at filterIsModerator (/home/ngsankar/nodebb/src/user.js:400:12)
at /home/ngsankar/nodebb/src/user.js:462:6
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:697:13
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:52:16
at done (/home/ngsankar/nodebb/node_modules/async/lib/async.js:248:21)
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:44:16 -
@ngsankar said:
@exodo . thank you . I managed to install and configure. However after first msg is sent from telegram, nodebb got broken and stopped working.
Its strange , there is no reference to the plugin in the error log...luckily i was clearly noting down action i was doing...and guessed something going wrong here...after i removed the plug in , forum got up and running...i am able to reproduce it now..v0.8.2 is not liking something, but dont know what. Hope u r able to find it...I like the plug in..if this is resolved,...i will surely use it..thanks for ur effort...
following is the error log
3/11 13:14 [15929] - info: NodeBB v0.8.2 Copyright (C) 2013-2014 NodeBB Inc.
3/11 13:14 [15929] - info: This program comes with ABSOLUTELY NO WARRANTY.
3/11 13:14 [15929] - info: This is free software, and you are welcome to redistribute it under certain conditions.
3/11 13:14 [15929] - info:
3/11 13:14 [15929] - info: Time: Tue Nov 03 2015 13:14:10 GMT-0500 (EST)
3/11 13:14 [15929] - info: Initializing NodeBB v0.8.2
3/11 13:14 [15929] - warn: [plugins/nodebb-plugin-sso-facebook] Hookfilter:user.delete
is deprecated, please use an alternative
3/11 13:14 [15929] - warn: [plugins/nodebb-plugin-sso-google] Hookfilter:user.delete
is deprecated, please use an alternative
3/11 13:14 [15929] - info: NodeBB Ready
3/11 13:14 [15929] - info: NodeBB is now listening on: 0.0.0.0:4567
3/11 13:14 [15929] - error: TypeError: undefined is not a function
at /home/ngsankar/nodebb/src/user/posts.js:37:12
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:697:13
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:52:16
at done (/home/ngsankar/nodebb/node_modules/async/lib/async.js:248:21)
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:44:16
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:694:17
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:173:37
at /home/ngsankar/nodebb/src/user.js:405:5
at fireFilterHook (/home/ngsankar/nodebb/src/plugins/hooks.js:86:11)
at Object.Plugins.fireHook (/home/ngsankar/nodebb/src/plugins/hooks.js:70:5)
at filterIsModerator (/home/ngsankar/nodebb/src/user.js:400:12)
at /home/ngsankar/nodebb/src/user.js:462:6
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:697:13
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:52:16
at done (/home/ngsankar/nodebb/node_modules/async/lib/async.js:248:21)
at /home/ngsankar/nodebb/node_modules/async/lib/async.js:44:16We use 0.7.3 in our forum... But i have updated it to work on 0.8.2
Now it should work fine! Thanks you for using! -
Working Gr8. Thanks for a gr8 plug in.
Following are may questions/clarification/feedback
- It seems to be working in pull mode from telegram (ie. i hv to give /recent or /read topicid etc) to get info from forum.
- Is it possible to make it work in push mode (when a topic gets new post, can it be pushed to telegram if i am subscribed to it ?
The plugin has a great potential to be a killer one, especially the more and more people are getting into telegram for obvious advantages of multi platform / multi phone.
-
@ngsankar said:
Working Gr8. Thanks for a gr8 plug in.
Following are may questions/clarification/feedback
- It seems to be working in pull mode from telegram (ie. i hv to give /recent or /read topicid etc) to get info from forum.
- Is it possible to make it work in push mode (when a topic gets new post, can it be pushed to telegram if i am subscribed to it ?
The plugin has a great potential to be a killer one, especially the more and more people are getting into telegram for obvious advantages of multi platform / multi phone.
it actually send all notifications from nodebb to telegram in push mode, command from the bot is just additional features
just have to follow the instructions on configuration of your bot and then congif it on your user profile -
We are looking into developers help to make this plugin 100% compatible with 1.0 and beyond and also keeping improving it for the community
PM or reply here if interested -
@julian said in [nodebb-plugin-telegram] Telegram Notifications on NodeBB:
@exodo There's the NodeBB-Community org on NodeBB... typically a catch-all for plugins that need maintainers
No guarantees though.
thanks
-
@exodo said in [nodebb-plugin-telegram] Telegram Notifications on NodeBB:
@julian said in [nodebb-plugin-telegram] Telegram Notifications on NodeBB:
@exodo There's the NodeBB-Community org on NodeBB... typically a catch-all for plugins that need maintainers
No guarantees though.
thanks
I've sent the three members of exo-do on github an invitation Whomsoever I'm just talking to... Or do you actually share an account here
-
- transfered to https://github.com/NodeBB-Community/nodebb-plugin-telegram-notifications
- updated first post and added screenshot
- now should be fully compatible with 1.0
- thanks to @yariplus @frissdiegurke and others for the support
- actually need some help for internationalization, see issues on github
-
looking for help to update this plugin to nodebb 1.9.x and beyond
the plugin is part of the nodebb 3rd party community and its a very good addition to your nodebb notifications
telegram is the most used app for communication over the internet nowadays
it need lots of loveGitHub - NodeBB-Community/nodebb-plugin-telegram-notifications
Contribute to NodeBB-Community/nodebb-plugin-telegram-notifications development by creating an account on GitHub.
GitHub (github.com)
-
Hi,
I recently have updated Nodebb to 1.12.2 and this plugin to ver 0.3.1. I did put the Telegram Token and the room Id but I don't receive new topics nor reply to the Telegram group.
I have tried this from the server:
curl -X POST "https://api.telegram.org/botMyToken/sendMessage" -d "chat_id=-My_Chat_id&text=testing"
This works fine. Furthermore, if I talk to the bot it reply nothing and If I put a command, I get this message:
UserID not found.. Put your TelegramID again in the telegram settings of the forum. :(
I was able to get my TelegramID by checking bot's status in:
https://api.telegram.org/botMyToken/getUpdates
It still gives me the "Uid not found" message furthermore I don't receive notifications like upvotes and so on.
I have two questions:
- Why it is not sending messages to the group?
- Why the bot is answering with an error message instead of my TelegramID. This is important since forum users should be able to configure it in a esay way.
Thanks!
EDIT: I noticed that if I enter the TelegramID into a user, when I create a new topic or reply to an existing topic, Nodebb restats with this error message:
2019-08-26T18:03:52.827Z [4567/14717] - error: uncaughtException: forumURL is not defined ReferenceError: forumURL is not defined at /server/nodebb/node_modules/nodebb-plugin-telegram-notifications/library.js:380:55 [...] Otherwise if I interact with a user without TelegramID, Nodebb doesn't restart. If I uninstall nodebb-plugin-telegram, all users works fine.
-
This post is deleted!
-
Probably, this plugin is very outdated. An error occurs during installation:
/admin/plugins/telegrambot Not Found
You seem to have stumbled upon a page that does not exist. Return to the home page. -
I have two telegram groups. I want to post news from the forum there, but the plugin is very outdated. Can anyone help with updating this plugin? Thanks
-
Very sad, this plugin not work
-