Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Only bridge certain senders #202

Open
hmlendea opened this issue Nov 23, 2021 · 4 comments
Open

[Request] Only bridge certain senders #202

hmlendea opened this issue Nov 23, 2021 · 4 comments
Assignees

Comments

@hmlendea
Copy link

hmlendea commented Nov 23, 2021

Hi,

Would you consider adding a feature that will make it so that the bridge will only forward messages coming from certain users?

There could be a (whitelist) config for a comma-separated list of Telegram users, and another for Discord users, and only their messages will be relayed, the other messages coming from other users being ignored.

Likewise, it might be nice to also have the opposite (a blacklist): configs with lists of users whose messages are not relayed, while everyone else's will be.

@trgwii
Copy link
Member

trgwii commented Nov 23, 2021

We would certainly accept a Pull Request.

@hmlendea
Copy link
Author

Good to know.

I'm going to look into this (when I will have some free time). But, I'm not really knowledgeable in regards to JS, so I can't promise anything.

@forcegk
Copy link

forcegk commented Oct 7, 2023

I'd totally support this feature. I can try making a PR whenever I have time. I'm not fluent in JS tho, but cmon it can not be that difficult (famous last words).

Maybe create an array of strings on the configuration files with the user IDs allowed to cross post, and check them at runtime comes to mind.

EDIT: I see that this is already implemented and in checking progress. Hope it gets merged into stable soon!

@hmlendea
Copy link
Author

hmlendea commented Oct 9, 2023

@forcegk I've already gave that a shot, and it seemed to have worked, but I never found the time/willingness to finish it up and make it proper enough to PR-able. If you want you can take a look and maybe finish it.

I have a few instances running with that code on RPI and they do get the job done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants