-
Notifications
You must be signed in to change notification settings - Fork 625
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
Add support to upload files to xmpp from bridges with private urls like slack/mattermost/telegram (xmpp) #295
Comments
Unfortunately the library I use (https://github.com/mattn/go-xmpp) doesn't support this. |
@srgcdev I've just added support for sending files to your own "mediaserver". This is supported for the irc, xmpp and gitter bridges (who don't support native uploading). An example of how to setup your own with caddy can be found on https://github.com/42wim/matterbridge/wiki/Mediaserver-setup-%5Badvanced%5D |
@42wim Thanks! But having on my own server apache I think its a bit more difficult to configure caddy. I opened an enhancement issue to go-xmpp (xmppo/go-xmpp#94) library to support native http upload for xmpp. I hope they implement it someday. |
Oh, could be possible to use caddy for media server upload and apache for media server download, something like this: [general] |
Hello. tell me. I configured the caddy according to your wiki. Added line in the config matterbridge. For example: investments of the telegram now appear in the folder according to the settings, but no change in xmpp. that is, they do not appear in any way in the conference. How to configure this feature |
@42wim I also use this project for SpaceVim's comunity; here is the channels:
now all work well except telegram, when user send message in telegram, we can not get message in irc gitter and matrix. |
@Madji it should show the link. You also added Could you please run with |
@wsdjeg this is probably an issue with the telegram configuration. Check out https://core.telegram.org/bots#privacy-mode and yagop/node-telegram-bot-api#174 (comment) Also run with |
Thanks,fixed. |
Yes, of course I added in the config MediaServerDownload. |
@42wim I want to use tools like this https://img.vim-cn.com/ is it possible to implement this feature? when user in tg/matrix/slack upload a file, just send them to https://img.vim-cn.com/ , and then post the url to other channels. then no need to upload file to the bridges (who don't support native uploading) |
@Madji it's probably something at telegram, does it still happen ? |
@wsdjeg please open a new issue with this feature request. It seems http://img.vim-cn.com/ only supports images ? and not videos/files ? |
@42wim ok, I will open new issue about it. |
How should it work with XMPP-Telegram? I've configured Caddy, I can see that the image gets uploaded to Caddy by matterbridge, but matterbridge does not send the link to the image to XMPP. Does it use some XEP to push image to XMPP? |
@42wim, I'm running Matterbridge v1.6.3 and it does not send the link for uploaded file to the XMPP room.
And that's all. You can't see this link anywhere except in the logs. |
@ValdikSS I also need the debug messages from |
@42wim, how can I activate them? No message is sent to XMPP after |
But for normal messages the xmpp bridge works ? |
I tried to downgrade down to 1.4.1, and to use current git version, but it doesn't work. |
Ok, retry the current master, I've added a possible fix. (binaries are available now) |
Works now, thanks a lot! |
@ValdikSS good to hear, thanks for testing and reporting back. |
Going to close this as this needs to be fixed by the xmpp library. |
Just in case you haven't seen my comment at xmppo/go-xmpp#94 (comment): I was also missing http-upload in mattn/go-xmpp so I wrote it directly in my program: https://salsa.debian.org/mdosch/go-sendxmpp/-/blob/master/httpupload.go |
@mdosch looks cool, willing to open a PR for this in matterbridge?:) |
Sorry, I am neither using matterbridge nor do I know the code so I'm not
able to PR this. Also I'm quite busy these times.
But maybe someone who is involved with matterbridge can easily PR this.
:)
|
@mdosch I have noticed, that your program is licensed under BSD 2, but matterbridge is licensed under Apache2. I have no idea if these licenses are compatible, but I think it would be helpfull to clearify this point to prevent work which can't be merged. |
I am not a lawyer so I can't tell you what to do on this but afaik you
can do pretty much anything with BSD licensed code and it seems that
apache sees BSD-2-clause as almost similar to the apache license: https://www.apache.org/legal/resolved.html#category-a
On 18.02.2022 11:17, sirdrakeistda wrote:
***@***.*** I have noticed, that your program is licensed under BSD 2, but matterbridge is licensed under Apache2. I have no idea if these licenses are compatible, but I think it would be helpfull to clearify this point to prevent work which can't be merged.
…
--
Reply to this email directly or view it on GitHub:
#295 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
I'm using matterbridge within xmpp and telegram and I noticed that when someone sends a file in telegram I can't receive it in xmpp.
Once that #278 is solved for telegram, could it be possible to add support for upload files to xmpp using this xep:
https://xmpp.org/extensions/xep-0363.html
Basically consists in upload the file to the xmpp server and share de url link.
Some xmpp clients supports this xep (Conversations, gajim (via plugin), dino, movim...)
Thanks in advance.
The text was updated successfully, but these errors were encountered: