satori-python-adapter-onebot11 0.3.1__tar.gz → 0.3.2__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_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/.mina/adapter_onebot11.toml +1 -1
- {satori_python_adapter_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/PKG-INFO +1 -1
- {satori_python_adapter_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/pyproject.toml +1 -1
- {satori_python_adapter_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/src/satori/adapters/onebot11/api.py +12 -12
- {satori_python_adapter_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/src/satori/adapters/onebot11/forward.py +1 -1
- {satori_python_adapter_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/src/satori/adapters/onebot11/reverse.py +0 -1
- {satori_python_adapter_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/LICENSE +0 -0
- {satori_python_adapter_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/README.md +0 -0
- {satori_python_adapter_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/src/satori/adapters/onebot11/__init__.py +0 -0
- {satori_python_adapter_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/src/satori/adapters/onebot11/events/__init__.py +0 -0
- {satori_python_adapter_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/src/satori/adapters/onebot11/events/base.py +0 -0
- {satori_python_adapter_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/src/satori/adapters/onebot11/events/message.py +0 -0
- {satori_python_adapter_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/src/satori/adapters/onebot11/events/notice.py +0 -0
- {satori_python_adapter_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/src/satori/adapters/onebot11/events/request.py +0 -0
- {satori_python_adapter_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/src/satori/adapters/onebot11/message.py +0 -0
- {satori_python_adapter_onebot11-0.3.1 → satori_python_adapter_onebot11-0.3.2}/src/satori/adapters/onebot11/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: satori-python-adapter-onebot11
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Satori Protocol SDK for python, adapter for OneBot 11
|
|
5
5
|
Home-page: https://github.com/RF-Tar-Railt/satori-python
|
|
6
6
|
Author-Email: RF-Tar-Railt <rf_tar_railt@qq.com>
|
|
@@ -223,18 +223,18 @@ def apply(adapter: Adapter, net_getter: Callable[[str], OneBotNetwork], login_ge
|
|
|
223
223
|
@adapter.route(Api.CHANNEL_LIST)
|
|
224
224
|
async def channel_list(request: Request[ChannelListParam]):
|
|
225
225
|
net = net_getter(request.self_id)
|
|
226
|
-
result
|
|
227
|
-
|
|
228
|
-
[
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
)
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
)
|
|
226
|
+
result = await net.call_api("get_group_info", {"group_id": int(request.params["guild_id"])})
|
|
227
|
+
if not result:
|
|
228
|
+
raise RuntimeError(f"Failed to get group {request.params['guild_id']}")
|
|
229
|
+
channels = [
|
|
230
|
+
Channel(
|
|
231
|
+
str(result["group_id"]),
|
|
232
|
+
ChannelType.TEXT,
|
|
233
|
+
result["group_name"],
|
|
234
|
+
GROUP_AVATAR_URL.format(group=result["group_id"]),
|
|
235
|
+
)
|
|
236
|
+
]
|
|
237
|
+
return PageResult(channels)
|
|
238
238
|
|
|
239
239
|
@adapter.route(Api.GUILD_LIST)
|
|
240
240
|
async def guild_list(request: Request[GuildListParam]):
|
|
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
|