Skip to main content
Defined in: WAProto/index.d.ts:13179

Implements

Constructors

new TemplateButton()

new TemplateButton(p?): TemplateButton
Defined in: WAProto/index.d.ts:13180

Parameters

p?
ITemplateButton

Returns

TemplateButton

Properties

button?

optional button: "quickReplyButton" | "urlButton" | "callButton"
Defined in: WAProto/index.d.ts:13185

callButton?

optional callButton: null | ICallButton
Defined in: WAProto/index.d.ts:13184

Implementation of

ITemplateButton.callButton

index?

optional index: null | number
Defined in: WAProto/index.d.ts:13181

Implementation of

ITemplateButton.index

quickReplyButton?

optional quickReplyButton: null | IQuickReplyButton
Defined in: WAProto/index.d.ts:13182

Implementation of

ITemplateButton.quickReplyButton

urlButton?

optional urlButton: null | IURLButton
Defined in: WAProto/index.d.ts:13183

Implementation of

ITemplateButton.urlButton

Methods

create()

static create(properties?): TemplateButton
Defined in: WAProto/index.d.ts:13186

Parameters

properties?
ITemplateButton

Returns

TemplateButton

decode()

static decode(r, l?): TemplateButton
Defined in: WAProto/index.d.ts:13188

Parameters

r
Uint8Array<ArrayBufferLike> | Reader
l?
number

Returns

TemplateButton

encode()

static encode(m, w?): Writer
Defined in: WAProto/index.d.ts:13187

Parameters

m
ITemplateButton
w?
Writer

Returns

Writer

fromObject()

static fromObject(d): TemplateButton
Defined in: WAProto/index.d.ts:13189

Parameters

d

Returns

TemplateButton

getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string
Defined in: WAProto/index.d.ts:13192

Parameters

typeUrlPrefix?
string

Returns

string

toJSON()

toJSON(): object
Defined in: WAProto/index.d.ts:13191

Returns

object

toObject()

static toObject(m, o?): object
Defined in: WAProto/index.d.ts:13190

Parameters

m
TemplateButton
o?
IConversionOptions

Returns

object