Appservice server mixin
- class mautrix.appservice.AppServiceServerMixin
Bases:
object
- __init__(ephemeral_events=False, encryption_events=False, log=None, hs_token=None)
- Parameters
ephemeral_events (bool) –
encryption_events (bool) –
log (Optional[logging.Logger]) –
hs_token (Optional[str]) –
- Return type
- async handle_matrix_event(event, ephemeral=False)
- async handle_transaction(txn_id, *, events, extra_data, ephemeral=None, to_device=None, otk_counts=None, device_lists=None)
- Parameters
txn_id (str) –
events (list[mautrix.types.JSON]) –
extra_data (mautrix.types.JSON) –
ephemeral (Optional[list[mautrix.types.JSON]]) –
to_device (Optional[list[mautrix.types.JSON]]) –
otk_counts (Optional[dict[mautrix.types.UserID, dict[mautrix.types.DeviceID, mautrix.types.DeviceOTKCount]]]) –
device_lists (Optional[mautrix.types.DeviceLists]) –
- Return type
- matrix_event_handler(func)
- Parameters
func (Callable[[mautrix.types.Event], Awaitable]) –
- Return type
Callable[[mautrix.types.Event], Awaitable]
- log: logging.Logger
- query_user: Callable[[UserID], JSON]
- query_alias: Callable[[RoomAlias], JSON]