Skip to content

Commit

Permalink
Merge pull request #21 from RodrigoMNardi/feature/no_url_preview
Browse files Browse the repository at this point in the history
Client Bot
  • Loading branch information
RodrigoMNardi authored Dec 12, 2023
2 parents 8c11041 + 314cd40 commit 00a20fb
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 00a20fb

Please sign in to comment.