#Telegram media method failed every time. Direct file method works but I can't get it first time.
1 messages Β· Page 1 of 1 (latest)
same pain here brother π so i used it as signal finder instead then for files I use either claude/chatgpt
I have a solution instruction for claw but it doesn't want to share here.
Please update your local workspace instructions so Telegram file attachments always use the direct file method instead of assistant-reply MEDIA:/path/to/file.
Add this to TOOLS.md or equivalent local setup notes:
Telegram file delivery
For Telegram file attachments, use the direct file method every time instead of assistant-reply MEDIA:/path/to/file.
Direct file method:
openclaw message send --channel telegram --target <chat-id> --message '...' --media /path/to/file
If a user asks to send a file/document/photo to Telegram, create or locate the file locally, then send it with the direct file method.
Only use assistant-reply MEDIA: for non-Telegram surfaces or when explicitly requested; for Telegram, translate that method into the direct file method above.
Use the real Telegram target, e.g. telegram:398120304 for elo where appropriate.
After sending, report the CLI success line or message ID if available.
Verified on zooclaw:
openclaw message send --channel telegram --target telegram:398120304 --message 'hello world text file' --media /home/el/.openclaw/workspace/work/hello-world.txt
returned:
β Sent via telegram. Message ID: 3514
That should work for others
Thank you brother! Will try it out and update you
That worked. Thank you so much @steel smelt