Skip to content

Commit

Permalink
fix: add one_time_notif_req to optin type (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
chentsulin authored Apr 15, 2020
1 parent 2de683a commit 4404437
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/bottender/src/messenger/MessengerEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,16 @@ export type GamePlay = {
payload: string;
};

export type Optin = {
ref: string;
userRef?: string;
};
export type Optin =
| {
ref: string;
userRef?: string;
}
| {
type: 'one_time_notif_req';
payload: string;
oneTimeNotifToken: string;
};

export type Payment = {
payload: string;
Expand Down

0 comments on commit 4404437

Please sign in to comment.