Event

webhook event

There are some actions that will trigger the event to the webhook.

Currently we only have 2 actions, Message Event that will trigger when someone send a message and 2nd is Join Event that will trigger when user initiate a direct chat with the bot.

once the event message is sent to the setting webhook, developer can reply the message via message api

Message Event

Webhook event object which contains the sent message. The message property contains a message object which corresponds with the message type. You can reply to message events.

Property
Type
Description

type

String

message

replyToken

String

Token for replying to the event

message

Object

message's info (information below)

source

Object

event's source info

timestamp

Datetime

timestamp of the event

Join event

Event object for when user initiate chat to the bot. You can reply to join events.

Property
Type
Description

type

String

join

replyToken

String

Token for replying to this event

source

Object

event's source info

timestamp

Datetime

timestamp of the event

Message Object

Property
Type
Description

id

String

message

type

String

can be 'text', 'file', 'sticker'

groupId

String

gid

topicId

String

tid

text

String

content of the message

Source Object

Property
Type
Description

type

String

can be 'text', 'file', 'sticker'

uid

String

User ID

gid

String

Group ID (Add. Version 14.1.0)

Image Retrieval API

GET {domain}/file/image/:pictureID?size=large

Description

This endpoint retrieves an image file that was sent by a user. The image is identified by its unique pictureID.

Header

Key
Value
Descriptiom

Authorization

Bearer {token}

Access token

Path Parameters

Parameter

Type

Description

pictureID

String

The unique identifier of the image to be retrieved.

Query Parameters

Parameter

Type

Required

Description

size

String

Optional

Specifies the size of the returned image. Supported values include: small, medium, and large. Default is medium.

Last updated