module Slack::Web::Api::Endpoints::Chat
def chat_unfurl(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/chat/chat.unfurl.json -
See: https://api.slack.com/methods/chat.unfurl -
Options Hash:
(**options)
-
:user_auth_url
(Object
) -- -
:user_auth_required
(Object
) -- -
:user_auth_message
(Object
) -- -
:unfurls
(Object
) -- -
:ts
(timestamp
) -- -
:channel
(channel
) --
def chat_unfurl(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? throw ArgumentError.new('Required arguments :ts missing') if options[:ts].nil? throw ArgumentError.new('Required arguments :unfurls missing') if options[:unfurls].nil? options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('chat.unfurl', options) end