module

Delivery::Notify

Delivery::Notify — formats and sends the "notify" mode Telegram card. A card is a send_photo (when feed.image_url is present) with the episode title in the caption and a Mini-App-launching Listen button; falls back to send_message with the same text/button when no cover or when send_photo fails (bad URL, upstream 404, etc).

Constants

MONTH_ABBR = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] of ::String

Class methods

build_caption(feed_title : String, episode_title : String, published_at : Time | Nil, duration_sec : Int32 | Nil) : String

Pure: build the markdown caption. Extracted so it's unit-testable.

Source
send(telegram_id : Int64, feed : Feed, episode : Episode)
Source