Skip to content

Conversation

@nanato12
Copy link
Contributor

Overview

On May 13th, a function to open and close the rich menu automatically when you tap the rich menu, etc. were added.

Related issue

Reference

https://developers.line.biz/en/news/2022/05/13/richmenu-keyboard/

Operation check

templateMessage := linebot.NewTemplateMessage(
	"タイトル",
	linebot.NewButtonsTemplate(
		"",
		"タイトル",
		"テキスト",
		linebot.NewPostbackAction("Buy", "action=buy&itemid=123", "", "", linebot.InputOptionOpenKeyboard, ""),
		linebot.NewPostbackAction("Buy", "action=buy&itemid=123", "", "", "openKeyboard", "t"),
	),
)
if _, err = bot.ReplyMessage(event.ReplyToken, templateMessage).Do(); err != nil {
	log.Print(err)
}

Copy link
Member

@kkdai kkdai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@kkdai kkdai merged commit f5a97c8 into line:master May 18, 2022
@kkdai kkdai linked an issue May 18, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New properties of postback action

2 participants