diff --git a/src/client.js b/src/client.js index 5933433f3..e1596bb40 100644 --- a/src/client.js +++ b/src/client.js @@ -1334,12 +1334,13 @@ MatrixClient.prototype.sendStickerMessage = function(roomId, url, info, text, ca text = "Sticker"; } const content = { - msgtype: "m.sticker", url: url, info: info, body: text, }; - return this.sendMessage(roomId, content, callback); + return this.sendEvent( + roomId, "m.room.sticker", content, callback, undefined, + ); }; /**