consciousness/channels
Kent Overstreet c303653dd0 telegram: bridge photos via [image: <path>] markers
When an incoming update has a photo array, pick the largest size,
resolve the file_id via getFile, and download to
~/.consciousness/channels/telegram.logs/media/<file_id>.<ext>. The
message line surfaced to the channel is

    [image: /abs/path/to/file.jpg]
    <caption if any>

so a multimodal Read on the path works end-to-end. On download
failure we still surface the caption with an [image: download
failed: ...] marker so context isn't lost.

Other media types (voice/video/sticker/etc.) log a one-line "skipping"
notice — easy hook to extend later. The media/ dir was already being
created at startup; this fills in the rest.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-05-01 17:58:43 -04:00
..
irc irc: split PRIVMSG on embedded newlines + widen host overhead 2026-04-24 11:54:25 -04:00
socat delete claude code integration 2026-04-09 19:58:07 -04:00
telegram telegram: bridge photos via [image: <path>] markers 2026-05-01 17:58:43 -04:00
tmux channels: improve tmux state tracking and config persistence 2026-04-12 20:11:34 -04:00