ehForwarderBot / efb-telegram-master

EFB Telegram Master Channel, a channel for EH Forwarder Bot.
GNU Affero General Public License v3.0
223 stars 79 forks source link

Add a "bridge" mode that allows any users to chat in specific groups. #98

Open mochaaP opened 4 years ago

mochaaP commented 4 years ago

As the title says, the "bridge" mode allows not only admins but also normal users to chat in specific groups. When linking a chat to a group, add an option for "bridge".

Also, is it difficult to add a "sender indicator" from master to slave in a less hacky way? As far as I know, EFB doesn't seems to support the "sender" field, and we could only achieve it with manually prefixing a message.

blueset commented 4 years ago

I did have the same concept in vision when I was first designing the EFB framework as a whole. I called it chat syncing/group tunneling back then, but it’s basically the same thing. Instead of modifying EFB Telegram Master channel (ETM), I was thinking of making a separate master channel just for chat syncing, and using slave channels purely as wrappers of API.

image

You may want to read more about the design I had (back in 2017) here.

But that idea didn’t fruit in the end as I was short of time and lacking of motivation to write such a master channel.

I’m marking this as “help wanted” here in hope that someone enthusiastic would implement such a module. Or if there is a significant need on that to be implemented with EFB, I might find a time in the future (no ETA) to at least write out something that performs the basic task of it.