Skip to content

Commit

Permalink
Merge pull request #27 from tecoad/main
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosNicolau authored May 14, 2024
2 parents 328fc75 + 718ca6d commit 3341ac4
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions src/types/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,30 +137,29 @@ export type WebhookMessage = {
* When a customer selected a button or list reply.
*/
interactive?: {
type: {
/**
* Sent when a customer clicks a button
*/
button_reply?: {
/**
* Unique ID of a button
*/
id: string;
title: string;
};
/**
* Sent when a customer selects an item from a list
*/
list_reply?: {
/**
* Unique ID of the selected list item
*/
id: string;
title: string;
description: string;
};
};
};
type: string;
/**
* Sent when a customer clicks a button
*/
button_reply?: {
/**
* Unique ID of a button
*/
id: string;
title: string;
};
/**
* Sent when a customer selects an item from a list
*/
list_reply?: {
/**
* Unique ID of the selected list item
*/
id: string;
title: string;
description: string;
};
};
/**
* Included in the messages object when a customer has placed an order. Order objects have the following properties:
*/
Expand Down

0 comments on commit 3341ac4

Please sign in to comment.