synology_apm_repo.sdk.units.content.saas_teams_chat module

Content Layer — Teams/Chat’s HTML rendering: pure rows -> HTML string formatting, no I/O. units/saas/teams_chat.py calls it.

synology_apm_repo.sdk.units.content.saas_teams_chat.render_channel_html(rows, *, channel_name, stickers_by_msg_id=None)

One self-contained HTML page (no external resources or JS) for a Teams channel/chat’s msg_info_table rows. stickers_by_msg_id is {msg_id: {sticker_url: base64_content}}. Messages sort by timestamp (undated first), group under date separators, and show a reply’s parent sender and preview. The whole history is rendered into one string.