tulir / whatsmeow

Go library for the WhatsApp web multidevice API
https://go.mau.fi/whatsmeow
Mozilla Public License 2.0
2.14k stars 397 forks source link

List Message not working #600

Closed askareija closed 4 months ago

askareija commented 4 months ago

So i tried to send list message like this:

message := &waE2E.Message{
        ListMessage: &waE2E.ListMessage{
            Title:       proto.String("Daftar Menu"),
            Description: proto.String("Silakan lihat daftar menu dengan klik tombol dibawah"),
            ButtonText:  proto.String("ButtonText"),
            FooterText:  proto.String("Footer Section"),
            ListType:    waE2E.ListMessage_PRODUCT_LIST.Enum(),
            ProductListInfo: &waE2E.ListMessage_ProductListInfo{
                ProductSections: []*waE2E.ListMessage_ProductSection{
                    {
                        Title: proto.String("Row 1"),
                        Products: []*waE2E.ListMessage_Product{
                            {
                                ProductID: proto.String("row1"),
                            },
                        },
                    },
                    {
                        Title: proto.String("row 2"),
                        Products: []*waE2E.ListMessage_Product{
                            {
                                ProductID: proto.String("row2"),
                            },
                        },
                    },
                },
            },
        },
    }

I send it and received both on Android and web. But the button doesn't work. gambar

when i clicked on web it doesn't show anything, and when i click on Android the WhatsApp force closed. Is there anything wrong with my code or is it doesnt supported yet?

ahmedRSA commented 4 months ago

baileys got rekt because they constantly pushed button fixes we don't need anything button related on whatsmeow.

if you need buttons, use official API. close the issue pls.

askareija commented 4 months ago

@ahmedRSA i'm not using buttons, i'm using list message. i'm asking why the menu list is not working, is it deprecated or there is something wrong with my code

hrizal commented 4 months ago

No you cannot use this for list message and buttons since last year

Pada Kam, 30 Mei 2024 15.51, Aden Aziz H @.***> menulis:

@ahmedRSA https://github.com/ahmedRSA i'm not using buttons, i'm using list message. i'm asking why the menu list is not working, is it deprecated or there is something wrong with my code

— Reply to this email directly, view it on GitHub https://github.com/tulir/whatsmeow/issues/600#issuecomment-2139072015, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJQY2AFDNVCKRRV54WLDH3ZE3SBBAVCNFSM6AAAAABIQH4FGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZZGA3TEMBRGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

tulir commented 4 months ago

The protobufs are defined by whatsapp, the fields and what is deprecated or not deprecated is not related to whatsmeow.

askareija commented 4 months ago

List message is working on Evolution API (https://github.com/EvolutionAPI/evolution-api) gambar

gambar

maybe we should check that out

ahmedRSA commented 4 months ago

Are you dumb? No, you are very dumb. Sorry for the strong words, but they are needed. We got patched in a day last time, you want to try your luck again? All I will say is good luck to whatsmeow and I hope that this isn't repeated. I received this a month after re-hosting Baileys, after adiwajshing himself was hit, as a cause of this (adding the biz node within the body).

https://github.com/tulir/whatsmeow/pull/461#issuecomment-1720108089