Skip to content

threema-msgapi-sdk-python 4.0.0

Compare
Choose a tag to compare
@lgrahl lgrahl released this 22 Jan 23:35
· 28 commits to master since this release
v4.0.0
ad3b718

General

  • Dropped support for Python versions below 3.6.1.
  • Deprecated ReceiptType.user_ack has been removed. Use ReceiptType.user_acknowledge instead.
  • util.aio_run has been simplified. It does not allow for passing a specific event loop or closing the event loop on completion any longer.
  • util.aio_run_proxy_decorator has been renamed to aio_run_proxy and now always creates the class instance within a running event loop.

Client

  • In async mode, creation of the Connection instance must now be done within an async function.
  • If you have used a with context manager block in async mode before, you must now do this within an async with asynchronous context manager. No change is required in blocking mode.
  • Connection.close is now an async function.

Server

  • The callback server has been refactored and the AbstractCallback class has been removed for more flexibility and control of the underlying aiohttp server. Take a look at examples/callback.py on how to use it.
  • The callback server CLI has been removed because it was redundant. The example provides the same functionality.