mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-30 09:40:05 +00:00
🐛 fix ding adapter issues
1. cannot send complicate message, such as actionCard 2. fix judge current connection mode
This commit is contained in:
@ -114,7 +114,7 @@ class Bot(BaseBot):
|
||||
api: str,
|
||||
event: Optional[MessageEvent] = None,
|
||||
**data) -> Any:
|
||||
if self.connection_type != "http":
|
||||
if not isinstance(self.request, HTTPRequest):
|
||||
log("ERROR", "Only support http connection.")
|
||||
return
|
||||
|
||||
|
Reference in New Issue
Block a user