Allow assistant photo directives
This commit is contained in:
22
.codex/skills/telegram-photo/SKILL.md
Normal file
22
.codex/skills/telegram-photo/SKILL.md
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
name: telegram-photo
|
||||
description: Use when Codex should send, show, or share a local picture into the Telegram chat through the bot without calling Telegram tools.
|
||||
metadata:
|
||||
short-description: Send Telegram photos from assistant output
|
||||
---
|
||||
|
||||
# Telegram Photo
|
||||
|
||||
When asked to send/show/share a picture in Telegram, emit a photo directive in normal assistant output. The bot strips the directive and sends the image as a Telegram photo.
|
||||
|
||||
Use exactly one directive line per image, outside code fences:
|
||||
|
||||
`<!-- telegram-photo {"path":"<absolute-local-image-path>","caption":"<optional caption>"} -->`
|
||||
|
||||
Rules:
|
||||
- Replace `<absolute-local-image-path>` with an absolute path that exists in the current workspace or another location visible to the bot process.
|
||||
- Do not hardcode machine-specific directories, user names, repository paths, or sample filenames in this skill.
|
||||
- Supported extensions are `.jpg`, `.jpeg`, `.png`, `.webp`, and `.gif`.
|
||||
- `caption` is optional and should be short; omit the `caption` field when no caption is needed.
|
||||
- Do not use external Telegram tool calls for this.
|
||||
- If no usable image path is known, ask for the path or explain what local file is needed.
|
||||
4
.codex/skills/telegram-photo/agents/openai.yaml
Normal file
4
.codex/skills/telegram-photo/agents/openai.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
interface:
|
||||
display_name: "Telegram Photo"
|
||||
short_description: "Send Telegram photos from assistant output."
|
||||
default_prompt: "Send a local image to the Telegram chat using the bot photo directive."
|
||||
Reference in New Issue
Block a user