From e58a02261bebfc35ed82d84dfeacacd15d17ac5e Mon Sep 17 00:00:00 2001 From: taichanne30 Date: Thu, 31 Aug 2023 11:40:38 +0900 Subject: [PATCH] =?UTF-8?q?sendMessage=E3=81=A7=EF=BC=88=E5=85=AC=E9=96=8B?= =?UTF-8?q?=E7=AF=84=E5=9B=B2=EF=BC=89=E3=83=80=E3=82=A4=E3=83=AC=E3=82=AF?= =?UTF-8?q?=E3=83=88=E3=81=AB=E9=80=81=E4=BF=A1=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ai.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ai.ts b/src/ai.ts index 427e266..94a11fe 100644 --- a/src/ai.ts +++ b/src/ai.ts @@ -372,8 +372,9 @@ export default class 藍 { */ @autobind public sendMessage(userId: any, param: any) { - return this.api('messaging/messages/create', Object.assign({ - userId: userId, + return this.post(Object.assign({ + visibility: 'specified', + visibleUserIds: [userId], }, param)); }