Fixed minor bug
This commit is contained in:
1 parent
d680ae818d
commit
ae45c7aa5a
1 file changed
+1
-1
@@ -13,7 +13,7 @@ public class HandleDbBackup
|
|||||||
{
|
{
|
||||||
logger?.LogInformation("Backup requested");
|
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"),
|
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);
|
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