diff options
Diffstat (limited to 'bridge/keybase/keybase.go')
-rw-r--r-- | bridge/keybase/keybase.go | 7 |
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 } |