MCPcopy Create free account
hub / github.com/wechaty/python-wechaty / wrapper

Function wrapper

src/wechaty/utils/async_helper.py:69–71  ·  view source on GitHub ↗
(plugin: WechatyPlugin, message: Message)

Source from the content-addressed store, hash-verified

67 """single message decorator"""
68 @functools.wraps(on_message_func)
69 async def wrapper(plugin: WechatyPlugin, message: Message) -> None:
70 if not SingleIdContainer.instance().exist(message.message_id):
71 await on_message_func(plugin, message)
72 return wrapper

Callers

nothing calls this directly

Calls 2

existMethod · 0.80
instanceMethod · 0.45

Tested by

no test coverage detected