## requirements * token type: padlocal * version of python-wechaty ``` 21:30:03 βΊ pip freeze|grep wechat wechaty==0.8.63 wechaty-grpc==0.20.19 wechaty-puppet==0.4.21 wechaty-puppet-service==0.8.10 ``` * version of wechaty docker image: 0.65 ## Describe your problem > Puppet is ok, handle other events normally, but invitation accept failed. ## Reproduce your problem ```python async def on_room_invite(self, room_invitation: RoomInvitation) -> None: logger.info("room_invitation: %s", room_invitation) await room_invitation.accept() ``` ## Error info ```shell 2022-08-02 21:17:33,083 - Wechaty - INFO - receive <room-invite> event <EventRoomInvitePayload(room_invitation_id='2660393251955049397')> 2022-08-02 21:17:33,083 - RoomInvitation - INFO - load () <2660393251955049397> 2022-08-02 21:17:33,083 - RoomInvitation - INFO - __init__ () <RoomInvitation <2660393251955049397>> 2022-08-02 21:17:33,083 - bot - INFO - room_invitation: RoomInvitation <2660393251955049397> 2022-08-02 21:17:33,083 - RoomInvitation - INFO - accept() <RoomInvitation <2660393251955049397>> 2022-08-02 21:17:33,083 - Wechaty - ERROR - internal error <puppet not set> ```
Activity
dwro0121 commentedon Aug 16, 2023
I modified two codes and was able to solve errors related to room_invitation.
hope you can solve it by referring to the method below.
in
python-wechaty/src/wechaty/user/room_invitation.py,python-wechaty/src/wechaty/user/room_invitation.py
Lines 82 to 95 in e9a04a9
modify as:
in
python-wechaty-puppet-service/src/wechaty_puppet_service/puppet.py,https://github.com/wechaty/python-wechaty-puppet-service/blob/5174faf061ea705dc887d615f1268a8c5d4b886a/src/wechaty_puppet_service/puppet.py#L667-L678
modify as: