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

how to send button message #43

Open
Hendroarifin opened this issue Sep 29, 2024 · 0 comments
Open

how to send button message #43

Hendroarifin opened this issue Sep 29, 2024 · 0 comments

Comments

@Hendroarifin
Copy link

Hendroarifin commented Sep 29, 2024

how to send button message to another number

client.send_message(build_jid(
    number),
    Message(
        interactiveMessage=InteractiveMessage(
            body=InteractiveMessage.Body(text=text),
            footer=InteractiveMessage.Footer(text="Footer Text"),
            header=InteractiveMessage.Header(
                title="Header Title",
                subtitle="Header Subtitle",
                hasMediaAttachment=False,
            ),
            nativeFlowMessage=InteractiveMessage.NativeFlowMessage(
                buttons=[
                    InteractiveMessage.NativeFlowMessage.NativeFlowButton(
                        name="single_select",
                        buttonParamsJSON='{"title":"List Buttons","sections":[{"title":"title","highlight_label":"label","rows":[{"header":"header","title":"title","description":"description","id":"select 1"},{"header":"header","title":"title","description":"description","id":"select 2"}]}]}',
                    ),
                    InteractiveMessage.NativeFlowMessage.NativeFlowButton(
                        name="quick_reply",
                        buttonParamsJSON='{"display_text":"Visit URL","url":"https://example.com"}'
                    )
                ]
            )
        )
    )
)
@Hendroarifin Hendroarifin changed the title Kirim pesan + tombol how to send button message Sep 29, 2024
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

No branches or pull requests

1 participant