Appservice server mixin

class mautrix.appservice.AppServiceServerMixin

Bases: object

__init__(ephemeral_events=False)
Parameters

ephemeral_events (bool) –

Return type

None

handle_matrix_event(event)
Parameters

event (mautrix.types.Event) –

Return type

None

async handle_transaction(txn_id, *, events, extra_data, ephemeral=None, device_otk_count=None, device_lists=None)
Parameters
Return type

mautrix.types.JSON

matrix_event_handler(func)
Parameters

func (Callable[[mautrix.types.Event], Awaitable]) –

Return type

Callable[[mautrix.types.Event], Awaitable]

register_routes(app)
Parameters

app (aiohttp.web_app.Application) –

Return type

None

loop: asyncio.AbstractEventLoop
log: logging.Logger
hs_token: str
ephemeral_events: bool
query_user: Callable[[UserID], JSON]
query_alias: Callable[[RoomAlias], JSON]
transactions: set[str]
event_handlers: list[HandlerFunc]