GithubHelp home page GithubHelp logo

Comments (7)

marcelo386 avatar marcelo386 commented on May 25, 2024

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.

fabiogrezende avatar fabiogrezende commented on May 25, 2024

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.

marcelo386 avatar marcelo386 commented on May 25, 2024

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.

fabiogrezende avatar fabiogrezende commented on May 25, 2024

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.

fabiogrezende avatar fabiogrezende commented on May 25, 2024

Boa tarde Marcelo!

Conseguiu simular aí? realmente não está dando certo aqui.

from wpp4delphi.

marcelo386 avatar marcelo386 commented on May 25, 2024

O problema deve estar no seu base64, vc está passando o DataURI Igual a função presente no Demo

from wpp4delphi.

marcelo386 avatar marcelo386 commented on May 25, 2024
    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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.