Skip to content

Commit 610fd60

Browse files
committed
fix: allow adminLog to be false
1 parent c59e54d commit 610fd60

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

example.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ const config = {
4242

4343

4444
chats: {
45+
/**
46+
* @type {(number | false)}
47+
* Chat to send member (un)ban/(un)warn/report notifications and relevant messages to.
48+
* Pass false to disable this feature.
49+
*/
50+
adminLog: false,
4551

4652
/**
4753
* @type {(number | false)}

typings/config.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { InlineKeyboardMarkup } from "telegraf/typings/telegram-types";
1+
import type { InlineKeyboardMarkup } from "telegraf/types";
22

33
export type InlineKeyboard = InlineKeyboardMarkup["inline_keyboard"];
44

@@ -25,7 +25,7 @@ export interface Config {
2525
/**
2626
* Chat to log all admin actions to.
2727
*/
28-
adminLog?: number;
28+
adminLog?: number | false;
2929

3030
/**
3131
* Chat to send member join/leave notifications to.

0 commit comments

Comments
 (0)