Dennis
9e139a0f3e
This commit releases a custom Matrix Python SDK. This means that the most important classes---MatrixClient, Room, and MatrixHttpApi---are inherited by Custom classes. This enables us to change behaviour or add new features in a well structured and predictable way. The first issue that is solved with this new custom SDK is the problem that was introduced in #2.
11 lines
329 B
Python
11 lines
329 B
Python
from matrix_client.api import MatrixHttpApi
|
|
|
|
class CustomMatrixHttpApi(MatrixHttpApi):
|
|
def __init__(
|
|
self, base_url, token=None, identity=None,
|
|
default_429_wait_ms=5000,
|
|
use_authorization_header=True
|
|
):
|
|
|
|
super().__init__(base_url, token, identity, default_429_wait_ms)
|