send-file
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSend File Skill
文件发送技能
Send files directly to the current Telegram chat. The environment variable is automatically available in your Bash environment.
ALMA_CHAT_ID直接向当前Telegram聊天发送文件。Bash环境中会自动提供环境变量。
ALMA_CHAT_IDCommands
命令
bash
undefinedbash
undefinedSend 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
undefinedalma send voice /path/to/voice.ogg
undefinedType Aliases
类型别名
- /
photo→ sends as photo (compressed, inline preview)image - /
file/document→ sends as document (original quality, download)doc - /
audio→ sends as audio (with player UI)music - → sends as video (inline player)
video - → sends as voice message
voice
- /
photo→ 以照片形式发送(已压缩,支持在线预览)image - /
file/document→ 以文档形式发送(原始画质,可下载)doc - /
audio→ 以音频形式发送(带播放器界面)music - → 以视频形式发送(带在线播放器)
video - → 以语音消息形式发送
voice
Tips
提示
- Photos are compressed by Telegram. If quality matters, send as instead.
file - Caption is optional — omit it if not needed.
- is set automatically. You do NOT need to figure out the chat ID.
ALMA_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 - 标题为可选内容——不需要时可省略。
- 会自动设置,你无需自行查找聊天ID。
ALMA_CHAT_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:
- Generate/create the file
- Use to deliver it
alma send - 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.
当你生成图片、创建文件,或生成任何用户需要以文件形式接收的输出内容时:
- 生成/创建文件
- 使用命令发送
alma send - 在文本回复中提及你发送的内容(但不要包含原始文件路径)
不要只在回复中粘贴文件路径并期望自动发送。你必须主动明确地发送文件。