From: Someone Date: Sun, 24 Aug 2025 20:10:27 +0000 (+0200) Subject: Various changes. X-Git-Tag: RELEASE_10.11.0 X-Git-Url: https://git.somenet.org/pub/jan/mattermost-api-python.git/commitdiff_plain Various changes. --- diff --git a/mattermost/__init__.py b/mattermost/__init__.py index 8e89d9e..3bebf8e 100644 --- a/mattermost/__init__.py +++ b/mattermost/__init__.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """ Someone's Mattermost API v4 bindings. - Copyright (c) 2016-2023 by Someone (aka. Jan Vales ) + Copyright (c) 2016-2025 by Someone (aka. Jan Vales ) published under MIT-License """ diff --git a/mattermost/stdin2channel.py b/mattermost/stdin2channel.py index 0fec259..a7e4113 100755 --- a/mattermost/stdin2channel.py +++ b/mattermost/stdin2channel.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """ Someone's Mattermost API v4 bindings. - Copyright (c) 2016-2023 by Someone (aka. Jan Vales ) + Copyright (c) 2016-2025 by Someone (aka. Jan Vales ) published under MIT-License post stdin to a channel. diff --git a/mattermost/version.py b/mattermost/version.py index 97effc8..89d3c83 100755 --- a/mattermost/version.py +++ b/mattermost/version.py @@ -1,9 +1,9 @@ #!/usr/bin/env python3 """ Someone's Mattermost API v4 bindings. - Copyright (c) 2016-2023 by Someone (aka. Jan Vales ) + Copyright (c) 2016-2025 by Someone (aka. Jan Vales ) published under MIT-License """ # Set this package's version. -__version__ = "7.5.0" +__version__ = "10.11.0" diff --git a/mattermost/ws.py b/mattermost/ws.py index 9079819..cc2519d 100644 --- a/mattermost/ws.py +++ b/mattermost/ws.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """ Someone's Mattermost API v4 bindings. - Copyright (c) 2016-2023 by Someone (aka. Jan Vales ) + Copyright (c) 2016-2025 by Someone (aka. Jan Vales ) published under MIT-License """ @@ -60,7 +60,7 @@ class MMws: async def _websocket_run(self): logger.info("Starting websocket client.") - async with websockets.connect(self.ws_url, ping_interval=None, extra_headers={"Authorization": "Bearer "+self.api._bearer}) as websocket: + async with websockets.connect(self.ws_url, ping_interval=None, additional_headers={"Authorization": "Bearer "+self.api._bearer}) as websocket: #await websocket.send(json.dumps({"seq": 1, "action":"authentication_challenge", "data":{"token":self.api._bearer}})) logger.info(json.loads(await websocket.recv())) logger.info("websocket client connected. looping...")