
WPPConNect/WPP4Delphi is an Open-Source Project with the aim of exporting functions from whatsapp Web for Delphi/Lazarus, Which Can Be Used to Support The Creation of Any Interaction.


Installation is done Using the boss install Command:
boss install github.com/wppconnect-team/WPP4Delphi| Automatic generation of QRCODE | ✔ |
| Sending text messages, images, videos, audios and docs | ✔ |
| Shipping Messages list, buttons, links | ✔ |
| Search for contacts, chats, groups, group members, lock list | ✔ |
| Submission of contacts | ✔ |
| Sending stickers | ✔ |
| Multiple sessions | ✔ |
| Answer messages | ✔ |
| Get messages | ✔ |
| Receive messages and get return with ID | ✔ |
| Send location | ✔ |
| And more | ✔ |
Dependencies:
WPPConnect/wa-js ] WA-JSCEF4Delphi ] CEF4DELPHICEF4Delphi ] CEF4DELPHI-FONTESCEF Binários 32bit ] CEF4Delphi-BinariesCEF Binários 64bit ] Video Installation Tutorial: [ Youtube ]
Group link WhatsApp: https://chat.whatsapp.com/hzlflmqvjopk9bpjzlxcmo
Step by Step Installation:
// under construction 
## ⚡️ Quickstart OpenAi for Delphi in Wpp4delphi
![]()
![]()
OpenAi for Delphi is a client library to connect to the OpenAi API. From this library, you can use popular OpenAi services such as chatgPT in your Delphi or Lazarus app.
Example Chatgpt in Delphi with WPP4Delphi | Demo view
function TfrDemo.AskQuestion(const Question, phoneNumber: string): string;
var
Request: TCreateCompletionRequest;
Response: TCreateCompletionResponse;
begin
Response := nil;
Request := TCreateCompletionRequest.Create;
try
//Request.User := '17981388414'
Request.Prompt := Question;
Request.Model := 'text-davinci-003';
Request.User := phoneNumber;
Request.MaxTokens := 2048; // Be careful as this can quickly consume your API quota.
Response := Client.OpenAI.CreateCompletion(Request);///Client credits in https://github.com/landgraf-dev/openai-delphi
if Assigned(Response.Choices) and (Response.Choices.Count > 0) then
Result := phoneNumber + '#' + Response.Choices[0].Text
else
Result := phoneNumber + '#' + '';
finally
Request.Free;
Response.Free;
end;
end;
More information, go to OpenAi for Delphi
Copyright 2022 Wpponnect Team https://wppconnect-team.github.io/
Licensed Under The Apache License, Version 2.0 (The "License"); You may not use this file except in compliance with the license. You May obtain a copy of the license at
http://www.apache.org/licenses/LICENSE-2.0
Unless Required by Applicable Law or Agreement to In Writing, Software Distributed Under the License is distributed on an "As Is" Basis, Without Warranties or Conditions of Any Kind, Either Express or Implied. See the License for the Specific Language Governing Permissions and Limitations Under The License.