Running examples/basic.py fails with AttributeError when replying to ping
When running examples/basic.py and sending a ping message to the app, replying with pong fails with an AttributeError:
# Define your custom message handler function
def handler(client: NewClient, message: MessageEv):
text = message.Message.conversation or message.Message.extendedTextMessage.text
chat = message.Info.MessageSource.Chat
# Example scenarios
if text == "ping":
client.reply_message(chat, "pong", message)
.venv/lib/python3.12/site-packages/neonize/client.py", line 574, in build_reply_message
partial_message.contextInfo.MergeFrom(self._make_quoted_message(quoted, reply_privately))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: contextInfo
Python 3.12
Package Version anyio 4.9.0 beautifulsoup4 4.13.4 certifi 2025.4.26 charset-normalizer 3.4.2 h11 0.16.0 httpcore 1.0.9 httpx 0.28.1 idna 3.10 linkpreview 0.11.0 neonize 0.3.10.post5 phonenumbers 9.0.5 pillow 11.2.1 protobuf 6.31.0 python-magic 0.4.27 requests 2.32.3 segno 1.6.6 sniffio 1.3.1 soupsieve 2.7 tqdm 4.67.1 typing-extensions 4.13.2 urllib3 2.4.0
Please update example or provide additional information. Thanks
I think I fixed this in my pull request