new(core.gbapp): New API endpoint.
This commit is contained in:
parent
63cbf7e733
commit
df41f1c55b
2 changed files with 2 additions and 4 deletions
|
@ -1259,6 +1259,7 @@ export class DialogKeywords {
|
||||||
await client.apis.Conversations.Conversations_PostActivity({
|
await client.apis.Conversations.Conversations_PostActivity({
|
||||||
conversationId: conversation.conversationId,
|
conversationId: conversation.conversationId,
|
||||||
activity: {
|
activity: {
|
||||||
|
pid: pid,
|
||||||
textFormat: 'plain',
|
textFormat: 'plain',
|
||||||
text: text,
|
text: text,
|
||||||
type: 'message',
|
type: 'message',
|
||||||
|
@ -1272,11 +1273,8 @@ export class DialogKeywords {
|
||||||
|
|
||||||
let messages = [];
|
let messages = [];
|
||||||
|
|
||||||
|
|
||||||
GBLog.info(`MessageBot: Starting message polling ${conversation.conversationId}).`);
|
GBLog.info(`MessageBot: Starting message polling ${conversation.conversationId}).`);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const worker = async () => {
|
const worker = async () => {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
|
|
@ -1419,7 +1419,7 @@ export class GBMinService {
|
||||||
await sec.setParam(userId, 'welcomed', 'true');
|
await sec.setParam(userId, 'welcomed', 'true');
|
||||||
min['conversationWelcomed'][step.context.activity.conversation.id] = true;
|
min['conversationWelcomed'][step.context.activity.conversation.id] = true;
|
||||||
GBLog.info(
|
GBLog.info(
|
||||||
`Auto start (whatsapp) dialog is now being called: ${startDialog} for ${min.instance.instanceId}...`
|
`Auto start (4) dialog is now being called: ${startDialog} for ${min.instance.instanceId}...`
|
||||||
);
|
);
|
||||||
await GBVMService.callVM(startDialog.toLowerCase(), min, step, pid);
|
await GBVMService.callVM(startDialog.toLowerCase(), min, step, pid);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue