fix: send adapters and requesters icons

This commit is contained in:
Junyan Qin
2025-11-16 19:26:30 +08:00
parent 33eb866660
commit deb725a2e2
4 changed files with 14 additions and 4 deletions

View File

@@ -41,5 +41,9 @@ def read_resource_file(resource_path: str) -> str:
return f.read()
def read_resource_file_bytes(resource_path: str) -> bytes:
return importlib.resources.files('langbot').joinpath(resource_path).read_bytes()
def list_resource_files(resource_path: str) -> list[str]:
return [f.name for f in importlib.resources.files('langbot').joinpath(resource_path).iterdir()]