threema-msgapi-sdk-python
threema-msgapi-sdk-python copied to clipboard
message_handler returns now the connection too
message_handler returns now the connection too and not only the message. That way after receiving a message, more messages can be sent back to the user as a reaction to that message or command. This should solve the issue #70.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
Makes sense, thank you both! Shouldn't then #70 be closed and the callback.py example updated? I think that would allow many understand how they can do it.
Yeah, I've closed #70. Yep, of course we can update the example accordingly although a useful usage of the Connection instance in that example would be helpful, e.g. checking the feature level of the sender upon reception.
I'm closing this based on the assumption that binding the connection to the message handler can be done as outlined in https://github.com/threema-ch/threema-msgapi-sdk-python/pull/72#discussion_r2062668356