Skip to content

Hydrated message appears at desktop browser, but not appearing at mobile device #178

Discussion options

You must be logged in to vote

Below worked fine with me:

package responces

import (
	"DigitalAssistance/global"
	"context"
	"fmt"
	"io/ioutil"

	"go.mau.fi/whatsmeow"
	waProto "go.mau.fi/whatsmeow/binary/proto"
	"google.golang.org/protobuf/proto"
)

func Bye(sender string) {

	content, err := ioutil.ReadFile("./documents/kottouf.png")
	if err != nil {
		fmt.Println(err)
	}
	resp, err := global.Cli.Upload(context.Background(), content, whatsmeow.MediaImage)
	if err != nil {
		fmt.Println(err)
	}

	// Creating template message
	msg := waProto.Message{
		TemplateMessage: &waProto.TemplateMessage{
			HydratedTemplate: &waProto.HydratedFourRowTemplate{
				Title: &waProto.HydratedFourRowTemplate_ImageMessage{
					ImageMe…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by hajsf
Comment options

You must be logged in to vote
1 reply
@hrizal
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants