Skip to content

Send Telegram chat files by URL - #76

Open
mysubcult wants to merge 1 commit into
LiveHelperChat:masterfrom
mysubcult:preserve-telegram-original-filenames
Open

Send Telegram chat files by URL#76
mysubcult wants to merge 1 commit into
LiveHelperChat:masterfrom
mysubcult:preserve-telegram-original-filenames

Conversation

@mysubcult

Copy link
Copy Markdown
Contributor

This keeps the Telegram chat file forwarding path aligned with the existing LiveHelperChat REST API file handling.\n\nCurrent code re-uploads the local storage file with Request::encodeFile(->file_path_server), so Telegram receives the internal stored filename instead of using the file download response.\n\nThis change:\n- reuses the existing uploaded $file object;\n- builds the same temporary ile/downloadfile URL pattern used by core REST API {{file_url}};\n- keeps the existing Telegram API method selection and caption handling;\n- avoids reading file contents, temp copies, hardlinks, custom Guzzle multipart, or filename sanitizing logic in the extension.\n\nThis should let Telegram fetch the file through LHC and use the existing download response headers/file metadata instead of the internal hashed storage path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant