Method: Slack::Web::Api::Endpoints::Conversations#conversations_history
- Defined in:
- lib/slack/web/api/endpoints/conversations.rb
#conversations_history(options = {}) ⇒ Object
Fetches a conversation’s history of messages and events.
68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/slack/web/api/endpoints/conversations.rb', line 68 def conversations_history( = {}) throw ArgumentError.new('Required arguments :channel missing') if [:channel].nil? = .merge(channel: conversations_id()['channel']['id']) if [:channel] if block_given? Pagination::Cursor.new(self, :conversations_history, ).each do |page| yield page end else post('conversations.history', ) end end |