Skip to content

Correct AudioMessage template #213

Discussion options

You must be logged in to vote

How to create a correct to fill fields AudioMessage protocol ?
It showing in Web Wa but doesn't appear on Mobile App.

		audioUploaded, err := WhatsAppClient[jid].Upload(context.Background(), audioBytes, whatsmeow.MediaAudio)
		if err != nil {
			return "", errors.New("Error While Uploading Media to WhatsApp Server")
		}

		Ptt := false
		if	caption == "ppt"{
			Ptt = true
		}

		// Compose WhatsApp Proto
		content := &waproto.Message{
			AudioMessage: &waproto.AudioMessage{
				Url:           proto.String(audioUploaded.URL),
				Ptt:           proto.Bool(Ptt),
				DirectPath:    proto.String(audioUploaded.DirectPath),
				Mimetype:      proto.String(audioType),
				FileLength:    proto.…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@mamur-rezeki
Comment options

@Diden05
Comment options

@mamur-rezeki
Comment options

@mamur-rezeki
Comment options

Answer selected by mamur-rezeki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants