Repository navigation
-
Choose the image generator in chat. The assistant asks for an image
provider the first time, remembers the choice across restarts and can switch
when requested. The choice is shared across sessions; selecting it through
/modulesremains available. Existing installations are asked once. -
HTTP API actions.
http_requestsends authenticated requests with a
method, URL, headers and body, and returns HTTP status and text/JSON even
for API errors. It follows session permissions, rejects private addresses,
requires HTTPS for credential headers and never follows redirects. The
assistant is told to use it for authorized API actions and report actual
errors instead of assuming network access is unavailable. A matching pair
of quotes around a header name is removed before validation, so a copied
curl header does not silently lose authentication; values stay unchanged. -
Images through an external agent. The image module can hand
generate_imageto an external agent that draws with its own tools:
Codex, through its image generation tool and the Codex CLI's ChatGPT
sign-in. Pick "Codex (external agent)" as the provider in/modules->
Image generation; it edits attached photos too. Claude Code does not draw
and is not offered. -
Files reach the assistant. A document sent in Telegram (PDF, Word,
Excel, text, zip, ...) goes to the session with its caption as a file
attachment. Before, the bot only replied "Temporary file saved" and the
model never saw the file or the caption. Videos, video notes and GIFs go
the same way undertelegram/videos/; before, the bot ignored them. -
storage_readreads attachments and documents. It finds temporary
files, where every attachment lies, and returns the text of PDF, Word,
Excel, PowerPoint and OpenDocument files, the file list of a zip, and text
in Windows-1251. Before, it found only stored files and returned binary
files as garbage. -
Telegram albums, replies, stickers. Photos and files sent together go
as one message with the caption, not one run each. A reply to a photo or
file attaches it again. A still sticker is shown as a picture. -
Pictures the model can take. BMP and TIFF are converted; a picture over
4 MB or 4096 px is scaled down to 2560 px for the model and kept whole as a
file. HEIC, SVG and other formats go as files instead of "I can't open".
An image too large for the model is noted instead of failing the run. -
External agents get attachments. Claude Code and Codex sessions get
the message's photos and files by local path; Codex is also shown the
pictures. Before, they got the text only. -
Cyrillic file names from macOS. Storage paths are kept in Unicode NFC,
so a name withйsent decomposed is found when the model types it back. -
Telegram: a picture Telegram refuses as a photo is sent as a document.
-
Telegram: files over the Bot API's 20 MB download limit get a reply saying
so. -
Model lists. A session's model list gives the provider 8 s, under the
10 s clients wait. The provider is asked every time; only when it is slow or
down does the picker show its last listing, marked "showing the list from
HH:MM", instead of acontext deadline exceeded. -
Telegram: a photo or file that storage failed to save no longer crashes
the handler after the bot reported the failure.