satori-python-adapter-milky 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/.mina/adapter_milky.toml +1 -1
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/PKG-INFO +1 -1
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/pyproject.toml +1 -1
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/src/satori/adapters/milky/message.py +9 -2
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/LICENSE +0 -0
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/README.md +0 -0
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/src/satori/adapters/milky/__init__.py +0 -0
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/src/satori/adapters/milky/api.py +0 -0
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/src/satori/adapters/milky/base.py +0 -0
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/src/satori/adapters/milky/events/__init__.py +0 -0
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/src/satori/adapters/milky/events/base.py +0 -0
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/src/satori/adapters/milky/events/group.py +0 -0
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/src/satori/adapters/milky/events/message.py +0 -0
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/src/satori/adapters/milky/events/request.py +0 -0
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/src/satori/adapters/milky/main.py +0 -0
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/src/satori/adapters/milky/sse.py +0 -0
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/src/satori/adapters/milky/utils.py +0 -0
- {satori_python_adapter_milky-0.3.0 → satori_python_adapter_milky-0.3.1}/src/satori/adapters/milky/webhook.py +0 -0
|
@@ -157,8 +157,13 @@ class MilkyMessageEncoder:
|
|
|
157
157
|
if poster := attrs.get("poster"):
|
|
158
158
|
payload["thumb_uri"] = poster
|
|
159
159
|
self.segments.append({"type": "video", "data": payload})
|
|
160
|
-
case "milky:face":
|
|
161
|
-
|
|
160
|
+
case "milky:face" | "emoji":
|
|
161
|
+
if ":" in attrs["id"]:
|
|
162
|
+
_, emj_id_str = attrs["id"].split(":", 1)
|
|
163
|
+
emj_id = emj_id_str
|
|
164
|
+
else:
|
|
165
|
+
emj_id = attrs["id"]
|
|
166
|
+
self.segments.append({"type": "face", "data": {"face_id": emj_id}})
|
|
162
167
|
case "file":
|
|
163
168
|
await self.flush()
|
|
164
169
|
await self._send_file(attrs)
|
|
@@ -362,6 +367,8 @@ async def _decode_segments(net: MilkyNetwork, payload: dict, segments: Sequence[
|
|
|
362
367
|
result.append(E.at(str(data.get("user_id"))))
|
|
363
368
|
case "mention_all":
|
|
364
369
|
result.append(E.at_all())
|
|
370
|
+
case "face":
|
|
371
|
+
result.append(E.emoji(str(data.get("face_id"))))
|
|
365
372
|
case "image":
|
|
366
373
|
result.append(E.image(_resource_url(data)))
|
|
367
374
|
case "record":
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|