marshoai-melo/marshoai/extra_segment.py

8 lines
236 B
Python
Raw Normal View History

from melobot.protocols.onebot.v11.adapter.segment import Segment
from typing import Literal
from typing_extensions import TypedDict
class _TouchData(TypedDict):
id: str
TouchSegment = Segment.add_type(Literal['touch'], _TouchData)