Home Manual Reference Source Repository
import {TemplatePostbackAction} from '@3846masa/linebot/lib/LineActions'
public class | source

TemplatePostbackAction

Extends:

TemplateAction → TemplatePostbackAction

Postback action

See:

Constructor Summary

Public Constructor
public

constructor(params: Object)

Member Summary

Public Members
public

String returned via webhook in the postback.data property of the postback event.

public

Text sent when the action is performed.

Inherited Summary

From class TemplateAction
public

Label for the action.

public

Identifier for the type of action.

Public Constructors

public constructor(params: Object) source

Params:

NameTypeAttributeDescription
params Object
params.label string

Label for the action. (Max: 20 chars)

params.text string
  • optional

Text sent when the action is performed. (Max: 300 chars)

params.data string

String returned via webhook in the postback.data property of the postback event. (Max: 300 chars)

Public Members

public data: string source

String returned via webhook in the postback.data property of the postback event. (Max: 300 chars)

public text: string source

Text sent when the action is performed. (Max: 300 chars)