Files
tg-chat-bot/src/callback_commands/cancel.ts
T
melod1n 13b41c3026 bump libs
migrate to typescript 6
remove ytdl feature
2026-05-01 07:05:17 +03:00

22 lines
475 B
TypeScript

import {CallbackCommand} from "../base/callback-command";
export class Cancel extends CallbackCommand {
text = "❌ Отменить";
data = "";
constructor(text?: string, data?: string) {
super();
this.text = text ?? this.text;
this.data = data ?? this.data;
}
static withData(data?: string): Cancel {
return new Cancel("", data);
}
async execute(): Promise<void> {
return Promise.resolve();
}
}