mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 04:29:16 +00:00
fix(bot): 🔥 endFlow with ctx
This commit is contained in:
@@ -166,7 +166,14 @@ class CoreClass {
|
|||||||
if (next) return continueFlow()
|
if (next) return continueFlow()
|
||||||
return this.sendProviderAndSave(from, {
|
return this.sendProviderAndSave(from, {
|
||||||
...prevMsg,
|
...prevMsg,
|
||||||
answer: message ?? prevMsg.answer,
|
answer:
|
||||||
|
typeof message === 'string'
|
||||||
|
? message
|
||||||
|
: message?.body ?? prevMsg.answer,
|
||||||
|
options: {
|
||||||
|
...prevMsg.options,
|
||||||
|
buttons: message?.buttons ?? prevMsg.options?.buttons,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@bot-whatsapp/bot",
|
"name": "@bot-whatsapp/bot",
|
||||||
"version": "0.0.84-alpha.0",
|
"version": "0.0.89-alpha.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./lib/bundle.bot.cjs",
|
"main": "./lib/bundle.bot.cjs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user