riban-bw / lone_working

Telegram messenger bot lone working service
GNU General Public License v3.0
0 stars 0 forks source link

Feature request: Ability to send message to everyone in a session #2

Open riban-bw opened 3 months ago

riban-bw commented 3 months ago

It may be advantageous for users to be able to send adhoc messages to other users, e.g. "I am stopping for lunch".

Currently, because each user is connected to the bot in their own personal chat, the only messaging to other users is driven by the bot. We could have a system whereby any non-commands (not prefixed with slash) are broadcast to other users, e.g. a monitored user typing "Tea break" will trigger that message being sent to all the users supervising the session.

Or we could have a command, e.g. /broadcast that can be used to prefix messages (although not ideal because commands are usually triggered by clicking on a menu item and there is the chance of error.

I think the first idea hold up best. Commands are interpreted by the bot and non-commands are passed on verbatim to other members in the session.

riban-bw commented 3 months ago

This is not quite that simple. A user may (currently) only own one monitored session but may supervise any quantity of sessions so a supervisor sending a message needs to target the session.