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,9 +27,12 @@
# ---------------------------------------------------------------------------------
import io
import logging
from .. import loader, utils
logger = logging.getLogger(__name__)
@loader.tds
class Text2File(loader.Module):
@@ -63,13 +66,15 @@ class Text2File(loader.Module):
args = utils.get_args_raw(message)
if not args:
await utils.answer(message, self.strings("no_args"))
else:
text = args
by = io.BytesIO(text.encode("utf-8"))
by.name = self.config["name"]
return
await utils.answer_file(
message,
by,
reply_to=getattr(message, "reply_to_msg_id", None),
)
text = args
by = io.BytesIO(text.encode("utf-8"))
by.name = self.config["name"]
await utils.send_file(
message.chat_id,
by,
caption=None,
reply_to=message.reply_to_msg_id,
)