Authentication
You may want to use mautrix-manager instead of bot commands. It will automate extracting cookies so you don't need to mess with browser devtools.
- Open a private chat with the bridge bot. Usually
@twitterbot:your.server.- If the bot doesn't accept the invite, see the troubleshooting page
- Log into Twitter in a private browser window.
- Press F12 to open developer tools.
- Select the "Application" (Chrome) or "Storage" (Firefox) tab.
- In the sidebar, expand "Cookies" and select
https://twitter.com. - In the cookie list, find the values for
ct0andauth_token.
- Send
login ct0 authto the bot (replacingct0andauthwith the respective values). - Recent chats should now get portals automatically. Other chats will get portals as you receive messages.