From 63c361cb6176a2c30f081bb4a428270c1fa86dae Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Mon, 8 May 2017 10:57:04 +0100 Subject: [PATCH] Fix function signature --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index f560932..a18204a 100644 --- a/client.go +++ b/client.go @@ -452,7 +452,7 @@ func (cli *Client) SendText(roomID, text string) (*RespSendEvent, error) { // SendImage sends an m.room.message event into the given room with a msgtype of m.image // See https://matrix.org/docs/spec/client_server/r0.2.0.html#m-image -func (cli *Client) SendImage(roomID, body string, url string) (*RespSendEvent, error) { +func (cli *Client) SendImage(roomID, body, url string) (*RespSendEvent, error) { return cli.SendMessageEvent(roomID, "m.room.message", ImageMessage{ MsgType: "m.image", @@ -463,7 +463,7 @@ func (cli *Client) SendImage(roomID, body string, url string) (*RespSendEvent, e // SendVideo sends an m.room.message event into the given room with a msgtype of m.video // See https://matrix.org/docs/spec/client_server/r0.2.0.html#m-video -func (cli *Client) SendVideo(roomID, body string, url string) (*RespSendEvent, error) { +func (cli *Client) SendVideo(roomID, body, url string) (*RespSendEvent, error) { return cli.SendMessageEvent(roomID, "m.room.message", VideoMessage{ MsgType: "m.video",