fix: unable to use plugin when group nickname is set

This commit is contained in:
zhayujie
2023-08-06 15:44:48 +08:00
parent 68208f82a0
commit 2386eb8fc2
4 changed files with 14 additions and 7 deletions

View File

@@ -24,9 +24,7 @@ is_at: 是否被at
- (群消息时一般会存在实际发送者是群内某个成员的id和昵称下列项仅在群消息时存在)
actual_user_id: 实际发送者id (群聊必填)
actual_user_nickname实际发送者昵称
self_display_name: 自身的展示名,设置群昵称时,该字段表示群昵称
_prepare_fn: 准备函数,用于准备消息的内容,比如下载图片等,
_prepared: 是否已经调用过准备函数
@@ -49,6 +47,7 @@ class ChatMessage(object):
other_user_id = None
other_user_nickname = None
my_msg = False
self_display_name = None
is_group = False
is_at = False