16 May 2024 |
PulseDev | * Hi there, did I understand this correctly: https://github.com/mautrix/go is the framework which can be/get used for creating matrix bridges? | 15:20:10 |
PulseDev | Cool work man appreciate it | 15:20:33 |
PulseDev | I've planned to try to create a MS Teams Bridge. Any tips where to start? | 15:28:02 |
david | Hmmmm, so best is to read through the gmessages bridge I think, and then puzzle the base together | 15:31:58 |
david | If you want I can push my stuff to github early, it’s just still very WIP and full of debug comments. But it includes a veeeeeeerry small boilerplate that can help you get started
But I’m also still learning so no idea if my stuff is correct or not
| 15:33:17 |
tulir | waiting a few months is still recommended for new bridges | 15:34:26 |
tulir | or at least a few weeks so the bridgev2 module has all the basics | 15:34:55 |
PulseDev | In reply to @davicorn:beeper.com
If you want I can push my stuff to github early, it’s just still very WIP and full of debug comments. But it includes a veeeeeeerry small boilerplate that can help you get started
But I’m also still learning so no idea if my stuff is correct or not
Would be really cool 🙃 | 15:40:32 |
PulseDev | In reply to @tulir:maunium.net or at least a few weeks so the bridgev2 module has all the basics Okay, Ill just try out the Graph API for now then | 15:40:50 |
tulir | yeah I'd definitely recommend figuring out the remote API first | 15:43:01 |
tulir | you'll probably have to reverse-engineer it, I doubt the official apis will work for normal users | 15:43:20 |
PulseDev | In reply to @tulir:maunium.net yeah I'd definitely recommend figuring out the remote API first Yeah makes sende | 15:44:08 |
PulseDev | In reply to @tulir:maunium.net you'll probably have to reverse-engineer it, I doubt the official apis will work for normal users Depends, most stuff is actually included in the graph Api and I was able to retrieve some relevant data on a very quck first look with a normal user token | 15:44:51 |
PulseDev | Hardest part will be figuring out a way to keep the user authenticated w/o having to go through the signin process over and over again especially with corp logins which are secured over 2FA/ | 15:45:38 |
david | oof yeah, when we migrated to Okta it broke a bunch of internal tools | 15:46:03 |
PulseDev | yeah | 15:46:52 |
david | I’d check how far you can get with the official apis, and see what’s on github for 3rd party SDKs | 15:48:15 |
PulseDev | actually theres also an official go library of the graph api so everything looks good so far | 15:48:43 |
PulseDev | In reply to @davicorn:beeper.com I’d check how far you can get with the official apis, and see what’s on github for 3rd party SDKs thats what I was gonna do anyways. Looks like most of the stuff is solvable via the official sdk/api on the first sight the other few % ill have to reverse engineer from the teams webclient | 15:50:16 |
PulseDev | But the api is really fckd up and completely unlogical formatted on the first sight, as every Ms product is 😂 | 15:51:42 |
PulseDev | like i didn’t find any endpoints to retrieve the user chats at all only one to get the messages in the channel. Really messed up. Ill have to further investigate as soon as I‘m home | 15:52:42 |
PulseDev | I guess Ill try to make a small bridge which only supports direct messages for now until the lib v2 is out | 15:53:20 |
tulir | In reply to @pulsedev:pulseflow.ch Depends, most stuff is actually included in the graph Api and I was able to retrieve some relevant data on a very quck first look with a normal user token yeah if you're lucky it's just the documented api with an undocumented token, discord and slack work like that | 15:55:03 |
PulseDev | In reply to @tulir:maunium.net yeah if you're lucky it's just the documented api with an undocumented token, discord and slack work like that I‘ll have a deeper look at it :D | 15:56:50 |
PulseDev | i think im gonna do a cli tool to get used to the library etc first | 15:57:03 |
PulseDev | and then do a very stripped down bridge | 15:57:12 |
tulir | a very stripped down bridge can already be done in the new architecture (it supports sending/receiving messages, but nothing else) | 15:58:07 |
PulseDev | Oh, perfect! | 15:58:25 |
PulseDev | But I suppose there are no sample bridges for the new versions out there? | 15:58:52 |
tulir | there's signal | 15:59:12 |