Type Alias ServerInteractiveMessage
ServerInteractiveMessage: {
interactive:
| {
button_reply: { id: string; title: string };
list_reply: never;
nfm_reply: never;
type: "button_reply";
}
| {
button_reply: never;
list_reply: { description: string; id: string; title: string };
nfm_reply: never;
type: "list_reply";
}
| {
button_reply: never;
list_reply: never;
nfm_reply: | {
body?: string;
name: "address_message";
response_json: unknown;
}
| { body: "Sent"; name: "flow"; response_json: unknown }
| { body?: string; name?: string; response_json: unknown };
type: "nfm_reply";
};
type: "interactive";
}
Type declaration
interactive:
| {
button_reply: { id: string; title: string };
list_reply: never;
nfm_reply: never;
type: "button_reply";
}
| {
button_reply: never;
list_reply: { description: string; id: string; title: string };
nfm_reply: never;
type: "list_reply";
}
| {
button_reply: never;
list_reply: never;
nfm_reply: | {
body?: string;
name: "address_message";
response_json: unknown;
}
| { body: "Sent"; name: "flow"; response_json: unknown }
| { body?: string; name?: string; response_json: unknown };
type: "nfm_reply";
}
type: "interactive"