0a38632f14
- Ability to configure line bots as a channel in chatwoot - Receive a message sent to the line bot in chatwoot - Ability to reply to line users from chatwoot fixes: #2738
11 lines
266 B
Ruby
11 lines
266 B
Ruby
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
|