/
mega.kefi36
/
gigaPractic
Обзор
Документация
Войти
/
mega.kefi36
/
gigaPractic
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
utils.py
15 строк
442 B
Ada-lave
init
06 май 2024, 22:13
06 май 2024, 22:13
c653a0d
Код
Авторство
О чём код?
from giga_chat import Chat from document import Doc import os async def get_and_save_document(chat_id: int, applications: str) -> str: document = Doc() for app in applications: chat = Chat() response = chat.send_message(app) document.add_text(response) if not os.path.exists(f"files/{chat_id}"): os.makedirs(f"files/{chat_id}") return document.save(f"{chat_id}/Акты внедрения")