Install
openclaw skills install minimax-to-telegramGenerate images, audio, video using MiniMax MCP and send to Telegram. Use when user wants to create media with MiniMax and deliver it via Telegram.
openclaw skills install minimax-to-telegram# 如果未有 npm/npx
npm install -g mcporter
或者用 npx 直接跑:
npx mcporter --help
响 terminal 度 set 環境變數:
export MINIMAX_API_KEY="your-api-key-here"
或者响 ~/.mcporter/config.json 入面 set:
{
"env": {
"MINIMAX_API_KEY": "your-api-key-here",
"MINIMAX_RESOURCE_MODE": "url"
}
}
mcporter mcp add minimax-mcp
Use mcporter to call MiniMax MCP server tools.
| Tool | Description |
|---|---|
| text_to_image | Generate images from text prompts |
| text_to_audio | Convert text to speech (TTS) |
| generate_video | Generate videos from text prompts |
| image_to_video | Generate videos from images |
| music_generation | Generate music from prompt + lyrics |
| voice_clone | Clone voice from audio file |
| voice_design | Generate voice from description |
| list_voices | List available voice IDs |
| play_audio | Play audio file |
mcporter call minimax-mcp.text_to_image prompt:"your prompt" aspectRatio:"4:3"
mcporter call minimax-mcp.text_to_audio text:"Hello world" voiceId:"male-qn-qingse"
mcporter call minimax-mcp.generate_video prompt:"your video description"
IMPORTANT: When MiniMax returns a URL, it includes a query string with authentication token. You MUST use the FULL URL including all query parameters.
Correct (full URL with token):
<MINIMAX_OUTPUT_URL>?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx
Incorrect (URL without token):
<MINIMAX_OUTPUT_URL>
message(
action="send",
channel="telegram",
target="<chat_id>",
media="<full_url_with_token>",
message="Your caption"
)
Same approach - use FULL URL with token:
message(
action="send",
channel="telegram",
target="<chat_id>",
media="<full_url_with_token>",
message="Your caption"
)
IMPORTANT: When sending audio, ALWAYS include the text content as the message caption below the audio!
Example:
# Generate audio
audio_url = "<MINIMAX_AUDIO_URL>?Expires=xxx&Signature=xxx"
text_content = "呢段係你想既文字內容..."
# Send with both audio and text
message(
action="send",
channel="telegram",
target="<chat_id>",
media=audio_url,
message=text_content # Always include the text!
)
--timeout value (e.g., --timeout 1800000) to mcporter to prevent early termination.generate_video with background: true or inside a background process.MiniMax-Hailuo-02 for higher quality 10-second videos.If you get 403 Forbidden when sending to Telegram:
When generating Cantonese audio:
languageBoost:"Chinese,Yue" or languageBoost:"Chinese"mcporter call minimax-mcp.text_to_audio text:"新年快樂" voiceId:"Cantonese_PlayfulMan" languageBoost:"Chinese,Yue"