From 341b0eadb4b86d5c129b89caf1a9a2c97f883a5f Mon Sep 17 00:00:00 2001 From: taichan <40626578+taichanNE30@users.noreply.github.com> Date: Sun, 3 Sep 2023 14:32:23 +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=20(#121)?= 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)); }