BoKKeR Posted August 15, 2020 Share Posted August 15, 2020 (edited) Overview: Support for Docker image RSSTT in the bokker/rss.to.telegram repo. Application: RSS-To-Telegram - http://deluge-torrent.org/ Docker Hub: https://hub.docker.com/r/bokker/rss.to.telegram GitHub: https://github.com/BoKKeR/RSS-to-Telegram-Bot PS: Icon was made in PS under 10 minutes Edited August 23, 2020 by BoKKeR 1 Quote Link to comment
m0ngr31 Posted August 23, 2020 Share Posted August 23, 2020 I just discovered this yesterday, and it does everything I need. Except one thing. Is there a reason it only grabs the most recent item in the list? For example, I'm grabbing an RSS feed for a subreddit that has a sticky message. So I never get any notifications for it. Can you bump it to like 20 or something? Quote Link to comment
BoKKeR Posted August 23, 2020 Author Share Posted August 23, 2020 Hey! sure I will look what I can do about it! Quote Link to comment
BoKKeR Posted August 23, 2020 Author Share Posted August 23, 2020 if you preset new like https://www.reddit.com/r/funny/new/.rss it should give you the newest submissions without the stickies. By default it uses top afaik. Does this work for you? @m0ngr31 1 Quote Link to comment
m0ngr31 Posted August 24, 2020 Share Posted August 24, 2020 That did work thanks! Quote Link to comment
mugennas Posted November 29, 2020 Share Posted November 29, 2020 somehow the RSS I added get cleared when the container is restarted, does anyone know how to get them to be persistent? Quote Link to comment
BoKKeR Posted November 29, 2020 Author Share Posted November 29, 2020 I can look into this, can you share your docker run command that you get after adding the container? Quote Link to comment
mugennas Posted November 29, 2020 Share Posted November 29, 2020 29 minutes ago, BoKKeR said: I can look into this, can you share your docker run command that you get after adding the container? it's installed straight from CA root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='RSSTT---RSS-To-Telegram' -e TZ="America/Los_Angeles" -e HOST_OS="Unraid" -e 'TOKEN'='my_token' -e 'CHATID'='my_bot' -e 'DELAY'='600' --net=container:OpenVPN-Client 'bokker/rss.to.telegram:latest' I removed the token and id. I also passed this through a OpenVPN container so network is set to none if that matters. Quote Link to comment
BoKKeR Posted November 29, 2020 Author Share Posted November 29, 2020 can you try adding a mounted config folder and reproduce the problem? -v /path/to/host/config:/config Quote Link to comment
mugennas Posted November 29, 2020 Share Posted November 29, 2020 I added a path from /config to /mnt/user/appdata/rsstt, and that worked! Thanks for the help. Also I think you should update the CA app with default path for this. 1 Quote Link to comment
BoKKeR Posted November 29, 2020 Author Share Posted November 29, 2020 thanks I will do that, if you have a chance can you star the docker hub repo. 1 Quote Link to comment
Arndroid Posted October 8, 2021 Share Posted October 8, 2021 Thank you so much for taking the time to create this! 1 Quote Link to comment
BoKKeR Posted October 10, 2021 Author Share Posted October 10, 2021 thanks for commenting! Quote Link to comment
Joeri1594 Posted November 17, 2021 Share Posted November 17, 2021 This is awesome, thankyou Quote Link to comment
Nicooo76 Posted February 4, 2022 Share Posted February 4, 2022 Hello all, I installed the dokker and it seems to work. My question is: How do I get the bot to post to a channel now? The bot itself posts, but it should post in a channel. Thanks for your assistance and very cool project! 👍 Quote Link to comment
BoKKeR Posted February 4, 2022 Author Share Posted February 4, 2022 (edited) Add the bot to your chat, get the chatID and pass it to the container! @Nicooo76 Edited February 4, 2022 by BoKKeR Quote Link to comment
Nicooo76 Posted February 4, 2022 Share Posted February 4, 2022 So you mean the chatID of the bot itself or the one of the group I added the bot to? When I run /help in the group the following message appears in the log. telegram.error.BadRequest: Can't parse entities: character '-' is reserved and must be escaped with the preceding '\' 2022-02-04 15:55:49,270 - telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception. Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/telegram/ext/dispatcher.py", line 432, in process_update handler.handle_update(update, self, check, context) File "/usr/local/lib/python3.7/site-packages/telegram/ext/handler.py", line 156, in handle_update return self.callback(update, context) File "telegramRSSbot.py", line 126, in cmd_help "\n\nIf you like the project, star it on [DockerHub](https://hub.docker.com/r/bokker/rss.to.telegram)") File "/usr/local/lib/python3.7/site-packages/telegram/message.py", line 655, in reply_markdown_v2 return self.bot.send_message(self.chat_id, *args, **kwargs) File "<decorator-gen-2>", line 2, in send_message File "/usr/local/lib/python3.7/site-packages/telegram/bot.py", line 135, in decorator result = func(*args, **kwargs) File "/usr/local/lib/python3.7/site-packages/telegram/bot.py", line 466, in send_message api_kwargs=api_kwargs, File "/usr/local/lib/python3.7/site-packages/telegram/bot.py", line 281, in _message result = self._post(endpoint, data, timeout=timeout, api_kwargs=api_kwargs) File "/usr/local/lib/python3.7/site-packages/telegram/bot.py", line 245, in _post return self.request.post(f'{self.base_url}/{endpoint}', data=data, timeout=timeout) File "/usr/local/lib/python3.7/site-packages/telegram/utils/request.py", line 354, in post **urlopen_kwargs, File "/usr/local/lib/python3.7/site-packages/telegram/utils/request.py", line 272, in _request_wrapper raise BadRequest(message) telegram.error.BadRequest: Can't parse entities: character '-' is reserved and must be escaped with the preceding '\' The bot successfully fetches the feed but posts it only in its own chat but not in the group. But /list and /add works in the group... Something I have not quite understood 🤔 Quote Link to comment
BoKKeR Posted February 5, 2022 Author Share Posted February 5, 2022 (edited) That must be some unresolved bug that got introduced by a package update. You need to get the chat-id of the chat where you want the bot to post to. Then you set that as an environmental variable in the container @Nicooo76 Edited February 5, 2022 by BoKKeR Quote Link to comment
Blacksus Posted June 9 Share Posted June 9 (edited) Used this for quite a while now, but believe a recent update broke it. Docker dies shortly after start: RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received NaN. at new NodeError (node:internal/errors:363:5) at validatePort (node:internal/validators:208:11) at lookupAndConnect (node:net:988:5) at Socket.connect (node:net:964:5) at connect (node:net:193:17) at /app/node_modules/ioredis/built/connectors/StandaloneConnector.js:54:66 at processTicksAndRejections (node:internal/process/task_queues:78:11) { code: 'ERR_SOCKET_BAD_PORT' } Prisma schema loaded from prisma/schema.prisma Datasource "db": SQLite database "rss_bot_database.db" at "file:./../config/rss_bot_database.db" 4 migrations found in prisma/migrations No pending migrations to apply. This docker has served me well, would appreciate any help on this Edited June 9 by Blacksus Quote Link to comment
BoKKeR Posted June 9 Author Share Posted June 9 Sorry I forgot to update the template, the container now uses a redis queue and it is much more reliable. With support for multiple chats . Check the docker page Quote Link to comment
BoKKeR Posted June 10 Author Share Posted June 10 (edited) On 6/9/2023 at 2:49 AM, Blacksus said: Used this for quite a while now, but believe a recent update broke it. Docker dies shortly after start: RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received NaN. at new NodeError (node:internal/errors:363:5) at validatePort (node:internal/validators:208:11) at lookupAndConnect (node:net:988:5) at Socket.connect (node:net:964:5) at connect (node:net:193:17) at /app/node_modules/ioredis/built/connectors/StandaloneConnector.js:54:66 at processTicksAndRejections (node:internal/process/task_queues:78:11) { code: 'ERR_SOCKET_BAD_PORT' } Prisma schema loaded from prisma/schema.prisma Datasource "db": SQLite database "rss_bot_database.db" at "file:./../config/rss_bot_database.db" 4 migrations found in prisma/migrations No pending migrations to apply. This docker has served me well, would appreciate any help on this I updated the template with the redis env variables Edited June 10 by BoKKeR Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.