We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1296a4d commit 243ca85Copy full SHA for 243ca85
1 file changed
src/middleware/ActionFilter.ts
@@ -1,11 +1,5 @@
1
-import { Logger } from "../config/logger";
2
import { SafeExecution } from "../decorators/SafeExecution";
3
import { Middleware } from "./mid";
4
-const logger = new Logger({
5
- file: "ActionFilter.log",
6
- level: "info",
7
- timestampFormat: "locale",
8
-});
9
export class ActionFilter extends Middleware {
10
@SafeExecution()
11
/**
@@ -90,8 +84,6 @@ export class ActionFilter extends Middleware {
90
84
}
91
85
isValidChatType() {
92
86
const chat = this.ctx.chat;
93
- console.log("chat:", chat);
94
-
95
87
if (chat) {
96
88
if (chat.type === "supergroup" || chat.type === "channel") {
97
89
return this.nxt();
0 commit comments