Chatwoot/app/services/line/send_on_line_service.rb

12 lines
266 B
Ruby
Raw Permalink Normal View History

class Line::SendOnLineService < Base::SendOnChannelService
private
def channel_class
Channel::Line
end
def perform_reply
channel.client.push_message(message.conversation.contact_inbox.source_id, [{ type: 'text', text: message.content }])
end
end