@@ -162,6 +162,8 @@ async def _post_send(self, stream: dict | None = None):
162162 )
163163 payload ["media" ] = media
164164 payload ["msg_type" ] = 7
165+ payload .pop ("markdown" , None )
166+ payload ["content" ] = plain_text or None
165167 if record_file_path : # group record msg
166168 media = await self .upload_group_and_c2c_record (
167169 record_file_path ,
@@ -170,6 +172,8 @@ async def _post_send(self, stream: dict | None = None):
170172 )
171173 payload ["media" ] = media
172174 payload ["msg_type" ] = 7
175+ payload .pop ("markdown" , None )
176+ payload ["content" ] = plain_text or None
173177 ret = await self ._send_with_markdown_fallback (
174178 send_func = lambda retry_payload : self .bot .api .post_group_message (
175179 group_openid = source .group_openid , # type: ignore
@@ -188,6 +192,8 @@ async def _post_send(self, stream: dict | None = None):
188192 )
189193 payload ["media" ] = media
190194 payload ["msg_type" ] = 7
195+ payload .pop ("markdown" , None )
196+ payload ["content" ] = plain_text or None
191197 if record_file_path : # c2c record
192198 media = await self .upload_group_and_c2c_record (
193199 record_file_path ,
@@ -196,6 +202,8 @@ async def _post_send(self, stream: dict | None = None):
196202 )
197203 payload ["media" ] = media
198204 payload ["msg_type" ] = 7
205+ payload .pop ("markdown" , None )
206+ payload ["content" ] = plain_text or None
199207 if stream :
200208 ret = await self ._send_with_markdown_fallback (
201209 send_func = lambda retry_payload : self .post_c2c_message (
0 commit comments