Appservice server mixin
- class mautrix.appservice.AppServiceServerMixin
Bases:
object
- async handle_transaction(txn_id, *, events, extra_data, ephemeral=None, device_otk_count=None, device_lists=None)
- Parameters
txn_id (str) –
events (List[mautrix.types.JSON]) –
extra_data (mautrix.types.JSON) –
ephemeral (Optional[List[mautrix.types.JSON]]) –
device_otk_count (Optional[Dict[mautrix.types.UserID, mautrix.types.DeviceOTKCount]]) –
device_lists (Optional[mautrix.types.DeviceLists]) –
- Return type
Optional[mautrix.types.JSON]
- matrix_event_handler(func)
- Parameters
func (Callable[[mautrix.types.Event], Awaitable]) –
- Return type
Callable[[mautrix.types.Event], Awaitable]
- loop: asyncio.events.AbstractEventLoop
- log: logging.Logger
- query_user: Callable[[mautrix.types.UserID], mautrix.types.JSON]
- query_alias: Callable[[mautrix.types.RoomAlias], mautrix.types.JSON]
- event_handlers: List[Callable[[mautrix.types.Event], Awaitable]]