matrix

package
v0.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 16 Imported by: 1

Documentation

Overview

Package matrix provides a lightning.Plugin implementation for Matrix. To use Matrix support with lightning, see New

bot := lightning.NewBot(...)

bot.AddPluginType("matrix", matrix.New)

bot.UsePluginType("matrix", "matrix", map[string]string{
	// ...
})

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a new lightning.Plugin that provides Matrix support for Lightning

It only takes in a map with the following structure:

	map[string]string{
		"access_token": "", // a string with your Matrix bot token, sets up a bot using MSC4144 if specified
 		"as_token": "",     // a string with the random token your appservice will use
 		"as_local": "",     // a string with the localpart your appservice will use
 		"hs_token": "",     // a string with the random token your homeserver will use
		"homeserver": "",   // a string with your Matrix homeserver URL (always required)
 		"proxy_host": "",   // a string with your proxy host for files (required unless using the bridge)
		"mxid": "",         // a string with your Matrix bot ID
	}

Types

This section is empty.

Directories

Path Synopsis
Package mautrix implements the Matrix Client-Server API.
Package mautrix implements the Matrix Client-Server API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL