threema-msgapi-sdk-python icon indicating copy to clipboard operation
threema-msgapi-sdk-python copied to clipboard

message_handler returns now the connection too

Open rafdiafer opened this issue 8 months ago • 1 comments

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.

rafdiafer avatar Mar 06 '25 16:03 rafdiafer

CLA assistant check
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.

CLAassistant avatar Mar 06 '25 16:03 CLAassistant

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.

threema-rafa avatar Apr 28 '25 09:04 threema-rafa

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.

threema-lenny avatar Apr 28 '25 13:04 threema-lenny

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

threema-lenny avatar Aug 12 '25 12:08 threema-lenny