Is there a way to send message to a contact instead of making a reply using say()?
Created by: psfr937
Problem: I would like to send a message to a contact in one-to-one chat instead of making a reply. If I understand correctly, say() can only send a reply to the sender or in a room with @mention. So if I have a contact's id, is there a way I can initiate a one-to-one chat message to that contact instead of requiring a sender to send a message to the bot first?
Possible solution: Do you think the say function should take 2 more parameters, which let us specify roomId and contactId? If roomId and contactId are both unspecified, then it could send a reply as usual.
m.say (
textOrContactOrFileOrUrl : string | Contact | FileBox | UrlLink,
roomId,
contactId
)
[enhancement]