Skip to content

Commit

Permalink
Client Bot
Browse files Browse the repository at this point in the history
Setting unfurl_links and unfurl_media to false
  • Loading branch information
RodrigoMNardi committed Dec 12, 2023
1 parent 1ddbc31 commit 314cd40
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/slack/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ def initialize
end

def chat(message, channel: fetch_channel)
@client.chat_postMessage(channel: channel, text: message, username: fetch_bot_name)
@client.chat_postMessage(channel: channel,
text: message,
username: fetch_bot_name,
unfurl_links: false,
unfurl_media: false)
rescue Slack::Web::Api::Errors::TooManyRequestsError
sleep 60
retry
Expand Down

0 comments on commit 314cd40

Please sign in to comment.