image display basic functionality
This commit is contained in:
@@ -133,7 +133,7 @@ async def archive_message(message_id: int) -> bool:
|
||||
logging.error(f"Exception during message archiving: {e}")
|
||||
return False
|
||||
|
||||
async def get_message_content(message_id: int, format: str = "html") -> Tuple[Optional[str], bool]:
|
||||
async def get_message_content(message_id: int) -> Tuple[Optional[str], bool]:
|
||||
"""
|
||||
Retrieve the content of a message by its ID.
|
||||
|
||||
@@ -148,8 +148,7 @@ async def get_message_content(message_id: int, format: str = "html") -> Tuple[Op
|
||||
"""
|
||||
try:
|
||||
cmd = f"himalaya message read {message_id}"
|
||||
if format == "text":
|
||||
cmd += " -t"
|
||||
|
||||
|
||||
process = await asyncio.create_subprocess_shell(
|
||||
cmd,
|
||||
|
||||
Reference in New Issue
Block a user