How to use uri action
this.client.replyMessage(this.event.replyToken,{ type : "uri", uri : "line://home/public/profile?id=xxxx", });
i try it but not working? i think my method is false
There is no separate URI message. You can just send URI as a text message.
this.client.replyMessage(this.event.replyToken, {
type: "text",
text: "..."
});
For the types of messages, please refer to the documentation.
https://developers.line.biz/en/reference/messaging-api/#message-objects
so just paste the URI inside ( text : " " ) ? like this ?
this.client.replyMessage(this.event.replyToken, { type: "text", text: "line://home/public/profile?id=xxxx" });
Yes, it must work. Or you can use Flex Message if you like to implement fancier UI.
thanks for fast respond!