sendMessageで(公開範囲)ダイレクトに送信するようにする (#121)

This commit is contained in:
taichan 2023-09-03 14:32:23 +09:00 committed by GitHub
parent f0ceeb693b
commit 341b0eadb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -372,8 +372,9 @@ export default class 藍 {
*/ */
@autobind @autobind
public sendMessage(userId: any, param: any) { public sendMessage(userId: any, param: any) {
return this.api('messaging/messages/create', Object.assign({ return this.post(Object.assign({
userId: userId, visibility: 'specified',
visibleUserIds: [userId],
}, param)); }, param));
} }