mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-12 06:55:58 +08:00
🐛 修复telegram
重复发送消息的问题 (#483)
* 修复ntchat消息解析和reply获取失败
* 增加re依赖
* 修复re匹配bug
* 🚨 `pre-commit-ci`修复格式错误
* 去除不必要的replace
* 修复telegram重复发送的问题
* 暂时忽略Telegram mention的报错问题
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
20568a1ae4
commit
d727d80a73
@ -250,5 +250,6 @@ def convert_message(_msg: Any, message: List[Message]):
|
||||
else:
|
||||
message.append(Message('reply', _msg.data['id']))
|
||||
elif _msg.type == 'mention':
|
||||
message.append(Message('at', _msg.data['user_id']))
|
||||
if 'user_id' in _msg.data:
|
||||
message.append(Message('at', _msg.data['user_id']))
|
||||
return message
|
||||
|
@ -500,7 +500,6 @@ async def telegram_send(
|
||||
await _send(_msg['data'], None)
|
||||
else:
|
||||
await _send(content, image)
|
||||
await _send(content, image)
|
||||
|
||||
|
||||
async def feishu_send(
|
||||
|
Loading…
x
Reference in New Issue
Block a user