mautrix.appservice
- class mautrix.appservice.AppService
Bases:
mautrix.appservice.AppServiceServerMixin
The main AppService container.
- __init__(server, domain, as_token, hs_token, bot_localpart, id, loop=None, log=None, verify_ssl=True, tls_cert=None, tls_key=None, query_user=None, query_alias=None, bridge_name=None, state_store=None, aiohttp_params=None, ephemeral_events=False, encryption_events=False, default_ua='mautrix-python/0.20.6 aiohttp/3.8.1 Python/3.10.0', default_http_retry_count=0, connection_limit=None)
- Parameters
server (str) –
domain (str) –
as_token (str) –
hs_token (str) –
bot_localpart (str) –
id (str) –
loop (Optional[asyncio.events.AbstractEventLoop]) –
log (Optional[Union[logging.Logger, str]]) –
verify_ssl (bool) –
tls_cert (Optional[str]) –
tls_key (Optional[str]) –
query_user (Optional[Callable[[aiohttp.web_request.Request], Awaitable[Optional[aiohttp.web_response.Response]]]]) –
query_alias (Optional[Callable[[aiohttp.web_request.Request], Awaitable[Optional[aiohttp.web_response.Response]]]]) –
bridge_name (Optional[str]) –
state_store (Optional[mautrix.appservice.ASStateStore]) –
aiohttp_params (Optional[dict]) –
ephemeral_events (bool) –
encryption_events (bool) –
default_ua (str) –
default_http_retry_count (int) –
connection_limit (Optional[int]) –
- Return type
- property http_session: aiohttp.ClientSession
- property intent: mautrix.appservice.IntentAPI
- bot_mxid: UserID
- state_store: ASStateStore
- query_user: Callable[[UserID], JSON]
- query_alias: Callable[[RoomAlias], JSON]
- log: TraceLogger
- app: web.Application