Q&A

How could a bot reply_message the same sticker which was sent from a user?

@_handler.add(MessageEvent, message=StickerMessage) def handle_sticker_message(event): print("handle_sticker_message(): ", event.message.package_id, event.message.sticker_id) reply_sticker_msg = StickerSendMessage( package_id=event.message.package_id, sticker_id=event.message.sticker_id) line_bot_api.reply_message( event.reply_token, reply_sticker_msg )

The above code got error! But if I set package_id=1, sticker_id=1, then it's OK!

I am wondering how could a bot reply_message the same sticker which was sent from a user?

Looking forward to you help!

Thanks!

  • 0
  • 1
  • 1278
  • twitter facebook

You can only send the default stickers in the list: https://developers.line.biz/media/messaging-api/sticker_list.pdf

  • 0

関連する質問

    関連する質問はありません

本当によろしいですか? question.vm