Skip to content

Commit

Permalink
sendMessageで(公開範囲)ダイレクトに送信するようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
tai-cha committed Aug 31, 2023
1 parent f0ceeb6 commit e58a022
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit e58a022

Please sign in to comment.