mirror of https://github.com/matrix-org/gomatrix
Fix function signature
This commit is contained in:
parent
4bc46014ae
commit
63c361cb61
|
@ -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
|
// 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
|
// 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",
|
return cli.SendMessageEvent(roomID, "m.room.message",
|
||||||
ImageMessage{
|
ImageMessage{
|
||||||
MsgType: "m.image",
|
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
|
// 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
|
// 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",
|
return cli.SendMessageEvent(roomID, "m.room.message",
|
||||||
VideoMessage{
|
VideoMessage{
|
||||||
MsgType: "m.video",
|
MsgType: "m.video",
|
||||||
|
|
Loading…
Reference in New Issue