#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)

steel smelt
#

Every time I ask a claw to send me a file it fails. If I tell it to use the direct file method it usually works but it's a pain. I assume this is a quick correction in its instructions to use the file method. Can we get it fixed? Or is it just me getting this issue

gloomy coralBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> βœ… Mark Solution

vagrant tulip
#

same pain here brother πŸ˜… so i used it as signal finder instead then for files I use either claude/chatgpt

steel smelt
#

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

vagrant tulip
#

Thank you brother! Will try it out and update you

vagrant tulip
#

That worked. Thank you so much @steel smelt