Class: LineBot

LineBot

Class representing a line bot api client.

Constructor

new LineBot(credentials)

create a line bot api client
Parameters:
Name Type Description
credentials Object input Channel Access Token and Channel Secret.
Source:

Methods

getContent(messageId)

Retrieve image, video, and audio data sent by users.
Parameters:
Name Type Description
messageId String
Source:

getProfile(userId)

Get user profile information.
Parameters:
Name Type Description
userId String
Source:

leaveRoom(roomId)

Leave a group or room.
Parameters:
Name Type Description
roomId String
Source:

pushMessage(userId, messages)

Send messages to users, groups, and rooms
Parameters:
Name Type Description
userId String
messages Object | Array
Source:

replyMessage(replyToken, messages)

Respond to events from users, groups, and rooms.
Parameters:
Name Type Description
replyToken String
messages Object | Array
Source:

validateSignature(content, channelSignature)

Verify the request was sent from the LINE Platform.
Parameters:
Name Type Description
content Buffer raw body of http
channelSignature string Channel Secret
Source: