Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add two optional properties to PostbackTemplateActionBuilder #380

Merged

Conversation

nanato12
Copy link
Contributor

@nanato12 nanato12 commented May 14, 2022

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 = new TemplateMessageBuilder(
    'タイトル',
    new ButtonTemplateBuilder(
        'タイトル',
        'テキスト',
        '',
        [
            new PostbackTemplateActionBuilder('keyboard', 'button=1', null, PostbackInputOption::OPEN_KEYBOARD),
            new PostbackTemplateActionBuilder(
                'keyboard with text',
                'button=0',
                null,
                PostbackInputOption::OPEN_KEYBOARD,
                'text'
            ),
        ]
    )
);
$bot->replyMessage($replyToken, $templateMessage);

@moririnson
Copy link
Contributor

LGTM! Thanks

@moririnson moririnson merged commit efb357a into line:master May 17, 2022
@moririnson
Copy link
Contributor

@nanato12 Thanks for your contribution!

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.

None yet

2 participants