-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
area:platformThe bug / feature is about IM platform adapter, such as QQ, Lark, Telegram, WebChat and so on.The bug / feature is about IM platform adapter, such as QQ, Lark, Telegram, WebChat and so on.
Description
Description
Currently, AstrBot's OneBot V11 adapter attempts to send files using / which doesn't properly support file sending. OneBot V11 provides dedicated APIs for file transmission:
-
- Send private file to user
-
- Send file to group
Expected Behavior
When using or in a message chain, the bot should:
- Use or for file messages
- Pass the file path or URL as parameter
- Pass the display name as parameter
Current Issue
The current implementation in treats File segments the same as regular messages and uses /, which doesn't properly handle file transmission.
Implementation Suggestion
Modify or create a separate handler for File segments to use the appropriate OneBot V11 file APIs:
This would be a significant improvement for users who need to transfer files through their QQ bots.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:platformThe bug / feature is about IM platform adapter, such as QQ, Lark, Telegram, WebChat and so on.The bug / feature is about IM platform adapter, such as QQ, Lark, Telegram, WebChat and so on.