You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 20, 2024. It is now read-only.
When using a send middleware with the Web adapter, the user ID is not available in the message object during a conversation (i.e. Dialog).
For instance, the middleware (bot, message, next) => { console.log(message); next(); } displays these data for a bot message:
Moreover, when a message is sent with bot.reply or bot.say, the user ID is not present in the traditional (legacy?) messager.user.
{type: 'message',text: 'Echo: pizza',// ...recipient: {id: '7a247882-bdab-c853-7175-f97d3978d663'},// ...user: '7a247882-bdab-c853-7175-f97d3978d663',// <= It would be great to have this// ...}
It could be great to add it in the function ensureMessageFormat(message) of botworker.ts: