Conversation
| I found a design mismatch in the ProblemLet's say:
|
| Parent | Child | |
|---|---|---|
| message.reply(argSayable) | message | argSayable |
| post.reply(argPost) | argPost | post |
After (the correct design)
| Parent | Child | |
|---|---|---|
| message.reply(argSayable) | message | argSayable |
| post.reply(argPost) | post | argPost |
| Any comments? It would be great if you can send a PR to modify this because you can make sure every API is correct. Or I will do it later next week. Thanks! |
In my oppinion, Because the originalMessage here is the instance of message representing an actual message in the IM.
The post builder here is the builder intance inside wechaty creating a new message. |
| I can not understand. Can you explain more in details? |
| In my mind, the scenario is this: bot.on('message', async (message) => { await message.reply('replied message') })So when I call When building a post with const builder = bot.Post.builder() builder.add('some message') builder.reply(message) const post = await builder.build() |
WHAT
🤖 Generated by Copilot at c398075
Added a
replymethod toMessageMixinto support replying to messages. The method uses thewechaty-puppetPosttype to create and send the reply.
🤖 Generated by Copilot at c398075
WHY
HOW
🤖 Generated by Copilot at c398075
Posttype fromwechaty-puppetto use for replying messages (link)replymethod toMessageMixinclass to allow a message to reply to another message with various content types (link)#2387
syntactic sugar for