mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-09-23 09:49:06 +03:00
Update to Telegraf v4.0.0 (#212)
* feat(telegraf): update to v4.0.0 * chore(lock): update package-lock * chore(deps): remove telegraf from dependencies * chore(readme): update installation command * chore(deps): add telegraf to dev dependencies
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { BaseScene, Composer, Middleware } from 'telegraf';
|
||||
import { Composer, Middleware, Telegraf } from 'telegraf';
|
||||
|
||||
export type Filter<T extends any[], F> = T extends []
|
||||
? []
|
||||
@@ -17,5 +17,5 @@ export type ComposerMethodArgs<
|
||||
U extends OnlyFunctionPropertyNames<T> = OnlyFunctionPropertyNames<T>
|
||||
> = Filter<Parameters<T[U]>, Middleware<never>>;
|
||||
|
||||
export type ComposerMethods = OnlyFunctionPropertyNames<Composer<never>>;
|
||||
export type SceneMethods = OnlyFunctionPropertyNames<BaseScene<never>>;
|
||||
export type LaunchOptions = Parameters<Telegraf['launch']>[0];
|
||||
export type TelegrafOptions = ConstructorParameters<typeof Telegraf>[1];
|
||||
|
Reference in New Issue
Block a user