mautrix.client
- class mautrix.client.Client
Bases:
EncryptingAPI,SyncerClient is a high-level wrapper around the client API.
- __init__(*args, sync_store=None, state_store=None, **kwargs)
Initialize a ClientAPI. You must either provide the
apiparameter with an existingmautrix.api.HTTPAPIinstance, or provide thebase_urland other arguments for creating it as kwargs.- Parameters:
mxid – The Matrix ID of the user. This is used for things like setting profile metadata. Additionally, the homeserver domain is extracted from this string and used for setting aliases and such. This can be changed later using set_mxid.
device_id – The device ID corresponding to the access token used.
api – The
mautrix.api.HTTPAPIinstance to use. You can also pass thekwargsto create a HTTPAPI instance rather than creating the instance yourself.kwargs – If
apiis not specified, then the arguments to pass when creating a HTTPAPI.sync_store (SyncStore | None)
state_store (StateStore | None)
- Return type:
None