mirror of https://github.com/Nofated095/Q2TG.git
fix: WaitForMessageHelper 用不了
This commit is contained in:
parent
a8b87a49dd
commit
5275f8830d
|
@ -8,7 +8,7 @@ export default class WaitForMessageHelper {
|
|||
|
||||
constructor(private tg: Telegram) {
|
||||
tg.addNewMessageEventHandler(async e => {
|
||||
if (!e.chat || e.chat.id) return false;
|
||||
if (!e.chat || !e.chat.id) return false;
|
||||
const handler = this.map.get(Number(e.chat.id));
|
||||
if (handler) {
|
||||
this.map.delete(Number(e.chat.id));
|
||||
|
|
|
@ -12,7 +12,7 @@ import ForwardController from './controllers/ForwardController';
|
|||
console: { type: 'console' },
|
||||
},
|
||||
categories: {
|
||||
default: { level: 'trace', appenders: ['console'] },
|
||||
default: { level: 'debug', appenders: ['console'] },
|
||||
},
|
||||
});
|
||||
const log = getLogger('Main');
|
||||
|
|
Loading…
Reference in New Issue