Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to send files in Extra via /api/message #1993

Merged

Conversation

adbenitez
Copy link
Contributor

feel free to take over the PR if something is wrong or to tweak, I am a golang noob

@adbenitez adbenitez force-pushed the add-support-for-sending-extra-files-api branch from d0a4c06 to 147e92e Compare February 27, 2023 10:37
@codeclimate
Copy link

codeclimate bot commented Feb 27, 2023

Code Climate has analyzed commit 147e92e and detected 0 issues on this pull request.

View more on Code Climate.

@42wim
Copy link
Owner

42wim commented Mar 11, 2023

LGTM, thanks!

@42wim 42wim merged commit 0917e17 into 42wim:master Mar 11, 2023
@42wim 42wim added this to the 1.27.0 milestone Mar 11, 2023
@42wim 42wim added the api label Mar 11, 2023
@adbenitez adbenitez deleted the add-support-for-sending-extra-files-api branch March 12, 2023 00:06
@tehsu
Copy link

tehsu commented Jul 20, 2024

can this be used to send images?

@adbenitez
Copy link
Contributor Author

any file you want

@LawrenceWence
Copy link

@adbenitez any chance that you would provide a working example? I can't figure our how to properly submit a png/jpeg via extra data

@UnkwUsr
Copy link

UnkwUsr commented Sep 5, 2024

@LawrenceWence you have to send next json to api endpoint just as you sending text:

"Extra" : {
    "file": [
        {
            "Data": "here should be base64 encoded file",
            "Name": "filename"
            "Comment": "comment, just text"
        }
    ]
}

But there is also problem that current latest release version (1.26.0) is broken (at least for me, with forwarding to telegram), so you might need to build manually master branch version of matterbridge. #2182

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants