Added and updated repositories 2026-01-10 01:09:56

This commit is contained in:
github-actions[bot]
2026-01-10 01:09:56 +00:00
parent 1c99e02dd0
commit 572fb61011
67 changed files with 5294 additions and 1704 deletions

View File

@@ -27,11 +27,15 @@
# requires: zipfile
# ---------------------------------------------------------------------------------
import zipfile
import logging
import os
import zipfile
from datetime import datetime
from .. import loader, utils
logger = logging.getLogger(__name__)
@loader.tds
class SMArchiver(loader.Module):
@@ -64,7 +68,7 @@ class SMArchiver(loader.Module):
await utils.answer(message, self.strings["no_messages"])
return
archive_path = self.create_archive(saved_messages)
archive_path = await self.create_archive(saved_messages)
try:
await message.client.send_file(
@@ -79,7 +83,7 @@ class SMArchiver(loader.Module):
finally:
self.cleanup(archive_path)
def create_archive(self, saved_messages):
async def create_archive(self, saved_messages):
current_month = datetime.now().strftime("%B %Y")
archive_path = "saved_messages.zip"