fix(test): 修复模拟消息发送返回类型不匹配的问题
将返回的消息ID从字符串类型改为包含message_id键的字典,以匹配实际接口的返回格式。
This commit is contained in:
@@ -144,9 +144,9 @@ class _FakeBot:
|
|||||||
|
|
||||||
async def send_msg(self, **kwargs):
|
async def send_msg(self, **kwargs):
|
||||||
self.messages.append(dict(kwargs))
|
self.messages.append(dict(kwargs))
|
||||||
message_id = str(self._next_message_id)
|
message_id = self._next_message_id
|
||||||
self._next_message_id += 1
|
self._next_message_id += 1
|
||||||
return message_id
|
return {"message_id": message_id}
|
||||||
|
|
||||||
|
|
||||||
class _InMemoryRoomStore:
|
class _InMemoryRoomStore:
|
||||||
|
|||||||
Reference in New Issue
Block a user