Giter Site home page Giter Site logo

button message about neonize HOT 7 CLOSED

brutalX-04 avatar brutalX-04 commented on August 17, 2024
button message

from neonize.

Comments (7)

krypton-byte avatar krypton-byte commented on August 17, 2024 1

cek https://github.com/krypton-byte/neonize/blob/master/examples/basic.py#L232

client.send_message(
                message.Info.MessageSource.Chat,
                Message(
                    viewOnceMessage=FutureProofMessage(
                        message=Message(
                            messageContextInfo=MessageContextInfo(
                                deviceListMetadata=DeviceListMetadata(),
                                deviceListMetadataVersion=2,
                            ),
                            interactiveMessage=InteractiveMessage(
                                body=InteractiveMessage.Body(text="Body Message"),
                                footer=InteractiveMessage.Footer(text="@krypton-byte"),
                                header=InteractiveMessage.Header(
                                    title="Title Message",
                                    subtitle="Subtitle Message",
                                    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":"Quick URL","url":"https://www.google.com","merchant_url":"https://www.google.com"}',
                                        ),
                                        InteractiveMessage.NativeFlowMessage.NativeFlowButton(
                                            name="cta_call",
                                            buttonParamsJSON='{"display_text":"Quick Call","id":"message"}',
                                        ),
                                        InteractiveMessage.NativeFlowMessage.NativeFlowButton(
                                            name="cta_copy",
                                            buttonParamsJSON='{"display_text":"Quick Copy","id":"123456789","copy_code":"message"}',
                                        ),
                                        InteractiveMessage.NativeFlowMessage.NativeFlowButton(
                                            name="cta_remainder",
                                            buttonParamsJSON='{"display_text":"Reminder","id":"message"}',
                                        ),
                                        InteractiveMessage.NativeFlowMessage.NativeFlowButton(
                                            name="cta_cancel_remainder",
                                            buttonParamsJSON='{"display_text":"Cancel Reminder","id":"message"}',
                                        ),
                                        InteractiveMessage.NativeFlowMessage.NativeFlowButton(
                                            name="address_message",
                                            buttonParamsJSON='{"display_text":"Address","id":"message"}',
                                        ),
                                        InteractiveMessage.NativeFlowMessage.NativeFlowButton(
                                            name="send_location", buttonParamsJSON=""
                                        ),
                                    ]
                                ),
                            ),
                        )
                    )
                ),
            )

from neonize.

brutalX-04 avatar brutalX-04 commented on August 17, 2024 1

mantep bang makasih banyak

from neonize.

galihmrd avatar galihmrd commented on August 17, 2024 1

Makasih banyak bang

from neonize.

galihmrd avatar galihmrd commented on August 17, 2024

Kalo buat nambahin tombol ke media message gimana bang?

from neonize.

brutalX-04 avatar brutalX-04 commented on August 17, 2024

Kalo buat nambahin tombol ke media message gimana bang?

contoh untuk image, hasil ngulik sendiri, mungkin ada cara yang lebih bagus


client.send_message(
  message.Info.MessageSource.Chat,
  Message(
      viewOnceMessage=FutureProofMessage(
          message=Message(
              messageContextInfo=MessageContextInfo(
                  deviceListMetadata=DeviceListMetadata(),
                  deviceListMetadataVersion=2,
              ),
              interactiveMessage=InteractiveMessage(
                  body=InteractiveMessage.Body(text="Body Message"),
                  footer=InteractiveMessage.Footer(text="@brutalx-04"),
                  header=InteractiveMessage.Header(
                      title="Title Message",
                      subtitle="Subtitle Message",
                      hasMediaAttachment=True,
                      imageMessage=client.build_image_message("src/image/bg.jpg").imageMessage
                  ),
                  nativeFlowMessage=InteractiveMessage.NativeFlowMessage(
                      buttons=[
                          InteractiveMessage.NativeFlowMessage.NativeFlowButton(
                              name="cta_url",
                              buttonParamsJSON='{"display_text":"Profile","url":"https://profile.brutalx.my.id","merchant_url":"https://profile.brutalx.my.id"}',
                          )
                      ]
                  ),
              ),
          )
      )
  ),
  )

from neonize.

klauskkj10 avatar klauskkj10 commented on August 17, 2024

Do you know how to solve the problem just using the list says that the WhatsApp version is not compatible? This is for other members

from neonize.

klauskkj10 avatar klauskkj10 commented on August 17, 2024

Do you know how to solve the problem just using the list says that the WhatsApp version is not compatible? This is for other members

from neonize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.