Database import
This commit is contained in:
@@ -107,6 +107,11 @@ bot.on('message', async (msg) => {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check for database dump import
|
||||
if (await adminDumpHandler.handleDumpImport(msg)) {
|
||||
return;
|
||||
}
|
||||
|
||||
logDebug(msg.text, 'handleMessage');
|
||||
|
||||
switch (msg.text) {
|
||||
@@ -339,8 +344,10 @@ bot.on('callback_query', async (callbackQuery) => {
|
||||
}
|
||||
// Dump manage
|
||||
else if (action === "export_database") {
|
||||
await adminDumpHandler.exportDatabase(callbackQuery);
|
||||
await adminDumpHandler.handleExportDatabase(callbackQuery);
|
||||
return;
|
||||
} else if (action === "import_database") {
|
||||
await adminDumpHandler.handleImportDatabase(callbackQuery);
|
||||
}
|
||||
|
||||
await bot.answerCallbackQuery(callbackQuery.id);
|
||||
|
||||
Reference in New Issue
Block a user