lib/ruboty/adapters/slack_rtm.rb in ruboty-slack_rtm-3.0.0 vs lib/ruboty/adapters/slack_rtm.rb in ruboty-slack_rtm-3.1.0
- old
+ new
@@ -47,13 +47,13 @@
title: message[:file][:title] || path,
filename: File.basename(path),
initial_comment: message[:body] || ''
)
else
- realtime.send_message(
- type: 'message',
+ client.chat_postMessage(
channel: channel,
text: message[:code] ? "```\n#{message[:body]}\n```" : resolve_send_mention(message[:body]),
+ as_user: true,
mrkdwn: true
)
end
end