can not use ClipboardAction
Closed this issue · 2 comments
Do this before creating an issue
- Check our developers documentation, FAQ, and developers community for more information on LINE bots and the Messaging API
When creating an issue
- Make sure your issue is related to the LINE Bot SDK. For general questions about LINE bots, please ask in https://www.linebiz.com/contact/
- Provide detailed information about the issue you had with the SDK as below
System Informations
- Python version: 3.9
- SDK version: 3.11.0
- OS: MacOS
Expected Behavior
I want import "ClipboardAction", and QuickReplyButton(action=ClipboardAction(label="Label", clipboardText="Text"))
and send message QuickBtn with ClipboardAction。
Current Behavior
from linebot.models import QuickReply, QuickReplyButton, MessageAction, PostbackAction, URIAction, ClipboardAction
ImportError: cannot import name 'ClipboardAction' from 'linebot.models' (/Users/ccwu/Library/Python/3.9/lib/python/site-packages/linebot/models/init.py)
QuickReply, QuickReplyButton, MessageAction, PostbackAction, URIAction: Works Great!!!
when i import ClipboardAction, it show me ImportError.
from linebot.v3.messaging.models.clipboard_action import ClipboardAction
from linebot.v3.messaging.models import ClipboardActionmay work. https://github.com/line/line-bot-sdk-python/pull/595/files added ClipboardAction.
The latest usage of quick reply in line-bot-sdk is here. This will help you to use new library.
line-bot-sdk-python/examples/flask-kitchensink/app.py
Lines 609 to 641 in 292a449