-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add custom buy option * Add admin message * Add error handling
- Loading branch information
1 parent
d839b79
commit f514eb8
Showing
6 changed files
with
154 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
import { Scenes } from 'telegraf' | ||
import { Product, ProductIn } from '../products.js' | ||
import { TransactionInsert } from '../transactions.js' | ||
import { User } from '@telegraf/types' | ||
import { Product, ProductIn } from './products.js' | ||
import { TransactionInsert } from './transactions.js' | ||
|
||
interface MyWizardSession extends Scenes.WizardSessionData { | ||
// available in scene context under ctx.scene.session | ||
newProduct: ProductIn | ||
product: Product | ||
transactions: TransactionInsert[] | ||
customBuy: { | ||
description: string | ||
priceCents: string | ||
} | ||
from: User | ||
} | ||
|
||
export type ContextWithScenes = Scenes.WizardContext<MyWizardSession> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters