mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-09-23 09:49:06 +03:00
feat(): disabling global catch support
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { TelegrafContext } from 'telegraf/typings/context';
|
||||
|
||||
export interface Context extends TelegrafContext {
|
||||
[key: string]: any;
|
||||
[key: string]: any; // TBD
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -5,6 +5,7 @@ import {
|
||||
LaunchWebhookOptions,
|
||||
} from 'telegraf/typings/telegraf';
|
||||
import { Middleware } from 'telegraf/typings/composer';
|
||||
import { Context } from './context.interface';
|
||||
|
||||
export interface TelegrafModuleOptions {
|
||||
token: string;
|
||||
@@ -15,7 +16,8 @@ export interface TelegrafModuleOptions {
|
||||
};
|
||||
botName?: string;
|
||||
include?: Function[];
|
||||
middlewares?: ReadonlyArray<Middleware<any>>;
|
||||
middlewares?: ReadonlyArray<Middleware<Context>>;
|
||||
disableGlobalCatch?: boolean;
|
||||
}
|
||||
|
||||
export interface TelegrafOptionsFactory {
|
||||
|
Reference in New Issue
Block a user