Skip to content

Commit 35033bb

Browse files
committed
Update documentation to include mautrix-twitter
Playbook config copied from mautrix-facebook and altered accordingly.
1 parent 0f49ce0 commit 35033bb

4 files changed

+41
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Using this playbook, you can get the following services configured on your serve
5151

5252
- (optional) the [mautrix-facebook](https://github.com/mautrix/facebook) bridge for bridging your Matrix server to [Facebook](https://facebook.com/)
5353

54+
- (optional) the [mautrix-twitter](https://github.com/mautrix/twitter) bridge for bridging your Matrix server to [Twitter](https://twitter.com/)
55+
5456
- (optional) the [mautrix-hangouts](https://github.com/mautrix/hangouts) bridge for bridging your Matrix server to [Google Hangouts](https://en.wikipedia.org/wiki/Google_Hangouts)
5557

5658
- (optional) the [mautrix-googlechat](https://github.com/mautrix/googlechat) bridge for bridging your Matrix server to [Google Chat](https://en.wikipedia.org/wiki/Google_Chat)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Setting up Mautrix Twitter (optional)
2+
3+
The playbook can install and configure [mautrix-twitter](https://github.com/tulir/mautrix-twitter) for you.
4+
5+
See the project's [documentation](https://github.com/tulir/mautrix-twitter/wiki#usage) to learn what it does and why it might be useful to you.
6+
7+
```yaml
8+
matrix_mautrix_twitter_enabled: true
9+
```
10+
11+
12+
## Set up Double Puppeting
13+
14+
If you'd like to use [Double Puppeting](https://github.com/tulir/mautrix-twitter/wiki/Authentication#double-puppeting) (hint: you most likely do), you have 2 ways of going about it.
15+
16+
### Method 1: automatically, by enabling Shared Secret Auth
17+
18+
The bridge will automatically perform Double Puppeting if you enable [Shared Secret Auth](configuring-playbook-shared-secret-auth.md) for this playbook.
19+
20+
This is the recommended way of setting up Double Puppeting, as it's easier to accomplish, works for all your users automatically, and has less of a chance of breaking in the future.
21+
22+
### Method 2: manually, by asking each user to provide a working access token
23+
24+
This method is currently not available for the Mautrix-Twitter bridge, but is on the [roadmap](https://github.com/tulir/mautrix-twitter/blob/master/ROADMAP.md) under Misc/Manual login with `login-matrix`
25+
26+
## Usage
27+
28+
1. You then need to start a chat with `@twitterbot:YOUR_DOMAIN` (where `YOUR_DOMAIN` is your base domain, not the `matrix.` domain).
29+
2. Send login-cookie to start the login. The bot should respond with instructions on how to proceed.
30+
31+
You can learn more here about authentication from the bridge's [official documentation on Authentication](https://docs.mau.fi/bridges/python/twitter/authentication.html).
32+
33+
If you run into trouble, check the [Troubleshooting](#troubleshooting) section below.
34+
35+
After successfully enabling bridging, you may wish to [set up Double Puppeting](#set-up-double-puppeting), if you haven't already done so.

docs/configuring-playbook.md

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ When you're done with all the configuration you'd like to do, continue with [Ins
102102

103103
- [Setting up Mautrix Instagram bridging](configuring-playbook-bridge-mautrix-instagram.md) (optional)
104104

105+
- [Setting up Mautrix Twitter bridging](configuring-playbook-bridge-mautrix-twitter.md) (optional)
106+
105107
- [Setting up Mautrix Signal bridging](configuring-playbook-bridge-mautrix-signal.md) (optional)
106108

107109
- [Setting up Appservice IRC bridging](configuring-playbook-bridge-appservice-irc.md) (optional)

docs/container-images.md

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ These services are not part of our default installation, but can be enabled by [
4646

4747
- [mautrix/facebook](https://mau.dev/mautrix/facebook/container_registry) - the [mautrix-facebook](https://github.com/mautrix/facebook) bridge to [Facebook](https://facebook.com/) (optional)
4848

49+
- [tulir/mautrix-twitter](https://mau.dev/mautrix/twitter/container_registry) - the [mautrix-twitter](https://github.com/tulir/mautrix-twitter) bridge to [Twitter](https://twitter.com/) (optional)
50+
4951
- [mautrix/hangouts](https://mau.dev/mautrix/hangouts/container_registry) - the [mautrix-hangouts](https://github.com/mautrix/hangouts) bridge to [Google Hangouts](https://en.wikipedia.org/wiki/Google_Hangouts) (optional)
5052

5153
- [mautrix/googlechat](https://mau.dev/mautrix/googlechat/container_registry) - the [mautrix-googlechat](https://github.com/mautrix/googlechat) bridge to [Google Chat](https://en.wikipedia.org/wiki/Google_Chat) (optional)

0 commit comments

Comments
 (0)