Comments (7)
Adicione o createChat: true no options como o exemplo abaixo
options :=
' createchat: true, ' +
' type: "image", ' +
' caption: "' + caption + '", ' +
' isViewOnce: false '; //Temporaria Somente 1 Visualização
frDemo.TWPPConnect1.SendFileMessageNew(ed_num.text, LBase64.Text, options, '123');
from wpp4delphi.
Me desculpe por não ter passado todas as informações, mas eu já havia feito isto e o erro continua.
incluí no próprio Demo na procedure do btnImagem e apresenta o erro.
Error: Chat not found for [email protected]
from wpp4delphi.
No Demo está sem o createChat: true
Passa o número que vc testou oculta só os 2 últimos digitos, vc informou o ddi 55
from wpp4delphi.
sim, eu acrescentei createChat: true no demo
o número que estou usando para testar é este, 5532982650XX (um numero de um zap daqui da empresa que nunca interagi)
options :=
' createchat: true, ' +
' type: "image", ' +
' caption: "' + caption + '", ' +
' isViewOnce: false '; //Temporaria Somente 1 Visualização
frDemo.TWPPConnect1.SendFileMessageNew(ed_num.text, LBase64.Text, options, '123');
from wpp4delphi.
Boa tarde Marcelo!
Conseguiu simular aí? realmente não está dando certo aqui.
from wpp4delphi.
O problema deve estar no seu base64, vc está passando o DataURI Igual a função presente no Demo
from wpp4delphi.
OpenDialog1.Execute;
Image1.Picture.LoadFromFile(OpenDialog1.FileName);
lblCaminhoImagem.Caption := OpenDialog1.FileName;
LBase64.text := ImageToBase64( Image1 ) ;
LBase64.text := StrExtFile_Base64Type( ExtractFileName(OpenDialog1.FileName) ) + LBase64.text; //add DataURI
memo1.clear;
memo1.Text := LBase64.text ;
Manda Mensagem no nosso Grupo, fica mais fácil pra te ajudar
Link do grupo: https://chat.whatsapp.com/HzLflMQVjOPK9bpjzlxcMO
from wpp4delphi.
Related Issues (20)
- send buttons not work can you check it ? HOT 1
- Há um problema com a seguinte função sendImage HOT 2
- demo in english
- default country code HOT 1
- Bug: TWPPConnect.IsConnected always return False HOT 1
- TWPPConnect.Config.ReceiveAttachmentAuto HOT 1
- O número enviado é rapidamente bloqueado após enviar apenas 4 ou 5 mensagens HOT 1
- Whatsapp Bussiness 2.3 HOT 1
- Erro no pedido getAllChats , getAllGroups HOT 1
- GetIncomingiCall Não disparando HOT 2
- AChat: TChatClass não retornando Link foto perfil e nem nome perfil
- Há um erro na função CheckNumberExists HOT 5
- update cache, userdata and log folders RunTime HOT 3
- Acréscimo de informação em instrução de instalação... HOT 1
- Unable create ConfTWPPConnect.ini HOT 1
- uTWPPConnect.Console Chromium1.OnConsoleMessage has incompatible parameter list HOT 2
- Demo send images but with message errors and have problem with italian mobile number HOT 3
- Get_SendPollMessageResponse not triggering HOT 1
- Undeclared identifier: 'WOD_NEW_FOREGROUND_TAB' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wpp4delphi.