I cant send Template Messages #569
Unanswered
kingmariano
asked this question in
WhatsApp protocol Q&A
Replies: 2 comments 2 replies
-
I cant send any other message except conversation. please help |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's been a long time since messages in template form can no longer be sent
(they can be sent, but the message will never reach the destination number)
this may be due to restrictions from WhatsApp side
Forget about sending messages in the form of buttons or templates
Pada Sab, 13 Apr 2024 pukul 07.27 Charles Ozochukwu <
***@***.***> menulis:
… I cant send any other message except conversation. please help
—
Reply to this email directly, view it on GitHub
<#569 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJQY2AHB73JDN3DACVYND3Y5B3XXAVCNFSM6AAAAABGE5B7S6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TCMBRGAYTQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`func (cfg *waConfig) SendMessage(ctx context.Context, client *whatsmeow.Client, chatJID , senderJID types.JID, message, username, messageType string) error {
switch messageType {
case "templateMessage":
TemplateMessage := &waProto.TemplateMessage{
HydratedTemplate: &waProto.TemplateMessage_HydratedFourRowTemplate{
Title: &waProto.TemplateMessage_HydratedFourRowTemplate_HydratedTitleText{
HydratedTitleText: "The Title",
},
TemplateId: proto.String("template-id"),
HydratedContentText: proto.String("The Content"),
HydratedFooterText: proto.String("The Footer"),
// MaskLinkedDevices: proto.Bool(true),
HydratedButtons: []*waProto.HydratedTemplateButton{
// This for URL button
{
Index: proto.Uint32(1),
HydratedButton: &waProto.HydratedTemplateButton_UrlButton{
UrlButton: &waProto.HydratedTemplateButton_HydratedURLButton{
DisplayText: proto.String("The Link"),
Url: proto.String("https://fb.me/this"),
},
},
},
// This for call button
{
Index: proto.Uint32(2),
HydratedButton: &waProto.HydratedTemplateButton_CallButton{
CallButton: &waProto.HydratedTemplateButton_HydratedCallButton{
DisplayText: proto.String("Call us"),
PhoneNumber: proto.String("1234567890"),
},
},
},
{
Index: proto.Uint32(3),
HydratedButton: &waProto.HydratedTemplateButton_QuickReplyButton{
QuickReplyButton: &waProto.HydratedTemplateButton_HydratedQuickReplyButton{
DisplayText: proto.String("Quick reply"),
Id: proto.String("quick-id"),
},
},
},
},
},
}`
[Client WARN] Server returned different participant list hash when sending to [email protected]. Some devices may not have received the message.
Yet i am still getting this error
Beta Was this translation helpful? Give feedback.
All reactions