Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions messaging-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2109,6 +2109,32 @@ paths:
schema:
"$ref": "#/components/schemas/ErrorResponse"

"/v2/bot/chat/markAsRead":
post:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#mark-as-read
tags:
- messaging-api
operationId: markMessagesAsReadByToken
description: "Mark messages from users as read by token"
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/MarkMessagesAsReadByTokenRequest"
example:
markAsReadToken: nz0x74mZT2mRn...
required: true
responses:
"200":
description: "OK"
"400":
description: "An invalid markAsReadToken is specified. Tokens must be used by the bot that received them via Webhook."
content:
"application/json":
schema:
"$ref": "#/components/schemas/ErrorResponse"

components:
securitySchemes:
Bearer:
Expand Down Expand Up @@ -5828,6 +5854,16 @@ components:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#display-a-loading-indicator-response
type: object
MarkMessagesAsReadByTokenRequest:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#mark-as-read-request-body
required:
- markAsReadToken
type: object
properties:
markAsReadToken:
type: string
description: "Token used to mark messages as read."

# Error response
ErrorResponse:
Expand Down
28 changes: 28 additions & 0 deletions webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ components:
quotedMessageId:
type: string
description: "Message ID of a quoted message. Only included when the received message quotes a past message."
markAsReadToken:
type: string
description: |+
Token used to mark the message as read.
Emoji:
required:
- index
Expand Down Expand Up @@ -362,6 +366,10 @@ components:
type: string
description: |+
Quote token to quote this message.
markAsReadToken:
type: string
description: |+
Token used to mark the message as read.
ImageSet:
type: object
required:
Expand Down Expand Up @@ -396,6 +404,10 @@ components:
type: string
description: |+
Quote token to quote this message.
markAsReadToken:
type: string
description: |+
Token used to mark the message as read.
AudioMessageContent:
allOf:
- $ref: "#/components/schemas/MessageContent"
Expand All @@ -410,6 +422,10 @@ components:
type: integer
format: int64
description: "Length of audio file (milliseconds)"
markAsReadToken:
type: string
description: |+
Token used to mark the message as read.
FileMessageContent:
allOf:
- $ref: "#/components/schemas/MessageContent"
Expand All @@ -425,6 +441,10 @@ components:
fileSize:
type: integer
description: "File size in bytes"
markAsReadToken:
type: string
description: |+
Token used to mark the message as read.
LocationMessageContent:
allOf:
- $ref: "#/components/schemas/MessageContent"
Expand All @@ -448,6 +468,10 @@ components:
type: number
format: double
description: "Longitude"
markAsReadToken:
type: string
description: |+
Token used to mark the message as read.
StickerMessageContent:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#wh-sticker
Expand Down Expand Up @@ -504,6 +528,10 @@ components:
type: string
description: |+
Message ID of a quoted message. Only included when the received message quotes a past message.
markAsReadToken:
type: string
description: |+
Token used to mark the message as read.

# https://developers.line.biz/en/reference/messaging-api/#unsend-event
UnsendEvent:
Expand Down