send-file

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Send File Skill

文件发送技能

Send files directly to the current Telegram chat. The
ALMA_CHAT_ID
environment variable is automatically available in your Bash environment.
直接向当前Telegram聊天发送文件。Bash环境中会自动提供
ALMA_CHAT_ID
环境变量。

Commands

命令

bash
undefined
bash
undefined

Send a photo/image

发送照片/图片

alma send photo /path/to/image.jpg "optional caption"
alma send photo /path/to/image.jpg "可选标题"

Send a document/file

发送文档/文件

alma send file /path/to/document.pdf "optional caption"
alma send file /path/to/document.pdf "可选标题"

Send audio/music

发送音频/音乐

alma send audio /path/to/song.mp3 "optional caption"
alma send audio /path/to/song.mp3 "可选标题"

Send a video

发送视频

alma send video /path/to/video.mp4 "optional caption"
alma send video /path/to/video.mp4 "可选标题"

Send a voice message (ogg format)

发送语音消息(ogg格式)

alma send voice /path/to/voice.ogg
undefined
alma send voice /path/to/voice.ogg
undefined

Type Aliases

类型别名

  • photo
    /
    image
    → sends as photo (compressed, inline preview)
  • file
    /
    document
    /
    doc
    → sends as document (original quality, download)
  • audio
    /
    music
    → sends as audio (with player UI)
  • video
    → sends as video (inline player)
  • voice
    → sends as voice message
  • photo
    /
    image
    → 以照片形式发送(已压缩,支持在线预览)
  • file
    /
    document
    /
    doc
    → 以文档形式发送(原始画质,可下载)
  • audio
    /
    music
    → 以音频形式发送(带播放器界面)
  • video
    → 以视频形式发送(带在线播放器)
  • voice
    → 以语音消息形式发送

Tips

提示

  • Photos are compressed by Telegram. If quality matters, send as
    file
    instead.
  • Caption is optional — omit it if not needed.
  • ALMA_CHAT_ID
    is set automatically. You do NOT need to figure out the chat ID.
  • If you want to send to a different chat, use
    --chat <chatId>
    :
    alma send photo --chat 12345 /path/to/img.jpg
  • Always verify the file exists before sending.
  • 照片会被Telegram压缩。如果对画质有要求,请改为以
    file
    形式发送。
  • 标题为可选内容——不需要时可省略。
  • ALMA_CHAT_ID
    会自动设置,你无需自行查找聊天ID。
  • 如果你想发送到其他聊天,请使用
    --chat <chatId>
    参数:
    alma send photo --chat 12345 /path/to/img.jpg
  • 发送前请务必确认文件存在。

⚠️ IMPORTANT

⚠️ 重要提示

When you generate an image, create a file, or produce any output the user should receive as a file:
  1. Generate/create the file
  2. Use
    alma send
    to deliver it
  3. Mention what you sent in your text reply (but do NOT include the raw file path)
Do NOT just paste file paths in your reply and expect them to be auto-sent. YOU must explicitly send files.
当你生成图片、创建文件,或生成任何用户需要以文件形式接收的输出内容时:
  1. 生成/创建文件
  2. 使用
    alma send
    命令发送
  3. 在文本回复中提及你发送的内容(但不要包含原始文件路径)
不要只在回复中粘贴文件路径并期望自动发送。你必须主动明确地发送文件。