summaryrefslogtreecommitdiffstats
path: root/bridge/keybase/keybase.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2020-02-08 16:50:53 +0100
committerWim <wim@42.be>2020-02-08 18:33:05 +0100
commitc01c8edeb8b367b1b9dcfd5a1982a2ba2b708c11 (patch)
treedd4564c0a1255063bfe97d17fdcd265f36b56146 /bridge/keybase/keybase.go
parentff8cf067b8328f8a49f0a2dfd69a6ae5569cda15 (diff)
downloadmatterbridge-msglm-c01c8edeb8b367b1b9dcfd5a1982a2ba2b708c11.tar.gz
matterbridge-msglm-c01c8edeb8b367b1b9dcfd5a1982a2ba2b708c11.tar.bz2
matterbridge-msglm-c01c8edeb8b367b1b9dcfd5a1982a2ba2b708c11.zip
Fix go-keybase-chat-bot api changes
Diffstat (limited to 'bridge/keybase/keybase.go')
-rw-r--r--bridge/keybase/keybase.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/bridge/keybase/keybase.go b/bridge/keybase/keybase.go
index 6d0b478d..d41e95f9 100644
--- a/bridge/keybase/keybase.go
+++ b/bridge/keybase/keybase.go
@@ -90,16 +90,17 @@ func (b *Bkeybase) Send(msg config.Message) (string, error) {
return "", err
}
- _, _ = b.kbc.SendAttachmentByTeam(b.team, fpath, fcaption, &b.channel)
+ _, _ = b.kbc.SendAttachmentByTeam(b.team, &b.channel, fpath, fcaption)
}
return "", nil
}
// Send regular message
- resp, err := b.kbc.SendMessageByTeamName(b.team, msg.Username+msg.Text, &b.channel)
+ text := msg.Username + msg.Text
+ resp, err := b.kbc.SendMessageByTeamName(b.team, &b.channel, text)
if err != nil {
return "", err
}
- return strconv.Itoa(resp.Result.MsgID), err
+ return strconv.Itoa(int(*resp.Result.MessageID)), err
}