Fixed minor bug
This commit is contained in:
@@ -13,7 +13,7 @@ public class HandleDbBackup
|
||||
{
|
||||
logger?.LogInformation("Backup requested");
|
||||
|
||||
await using Stream stream = System.IO.File.OpenRead("./" + dbname);
|
||||
await using Stream stream = System.IO.File.OpenRead("./" + dbname+".json");
|
||||
var message = await _bot.SendDocumentAsync(adminId, document: InputFile.FromStream(stream, dbname+".json"),
|
||||
caption: "Backup of " + dbname + "\nCreated at " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss" + "\nCurrent post count: " + _db.AsQueryable().Count()), parseMode: ParseMode.Html);
|
||||
|
||||
|
Reference in New Issue
Block a user