• Stars
    star
    204
  • Rank 192,063 (Top 4 %)
  • Language Pascal
  • License
    Apache License 2.0
  • Created over 2 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

WPP4Delphi is an open-source project with the aim of exporting functions from WhatsApp Web for Delphi, which can be used to support the creation of any interaction.

WPPConnect/WPP4Delphi 📞

WPPConnect Banner

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.

Our online channels

Discord Telegram Group WhatsApp Group YouTube

image

image

⚙️ Installation

Installation is done using the boss install command:

boss install github.com/wppconnect-team/WPP4Delphi

⚡️ Quickstart Delphi

Funções

Geração automática de QRCode
Envio de mensagens texto, imagens, videos, áudios e docs
Envio de mensagens lista, botões, links
Busca de contatos, chats, grupos, membros de grupos, lista de bloqueio
Envio de Contatos
Envio de stickers
Sessões Múltiplas
Responder Mensagens
Receber mensagens
Receber mensagens e obter retorno com o id
Enviar localização
e muito mais

Instalação

Dependências:

Tutorial de instalação em vídeo: [Youtube]

Instalação:

  • Extraia para uma pasta os arquivos do CEF4Delphi
  • Extraia para uma pasta os binários do CEF
  • No Delphi adicione em Tools > Options > Library Path a pasta sources do CEF4Delphi "...\CEF4Delphi\source"
  • Abra o arquivo "...CEF4Delphi\packages\CEF4Delphi.dpk" no Delphi e então faça um Build (shift+F9) e então "Install" (botão direito do mouse no Project Manager)
  • Após instalar, feche o projeto.
  • Adicione em Tools > Options > Library Path as pastas source do WPP4Delphi "...WPP4Delphi\Source\Model", "...WPP4Delphi\Source\Services", "...WPP4Delphi\Source\View", "...WPP4Delphi\Packages\Compilados"
  • Dentro da pasta Packages\Compilados, existem subpastas D23, D24, D25, D26 e D27, adicione no library path a pasta correta conforme a sua versão do delphi D27: Delphi 10.4 Sydney D26: Delphi 10.3 Rio D25: Delphi 10.2 Tokyo D24: Delphi 10.1 Berlin D23: Delphi 10 Seattle
  • Abra o arquivo "...WPP4Delphi\Packages\TWPP4DelphiCollection.dpk"
  • Então faça um Build (shift+F9) e então "Install" (botão direito do mouse no Project Manager)
  • Abra o DEMO que está junto dos fontes do WPP4Delphi.
  • Compile o projeto DEMO uma única vez e será criada a Pasta: C:\Executáveis\WPPConnectDemo
  • Cole dentro dessa pasta o arquivo ConfTWPPConnect.ini que está em "...WPP4Delphi\Demo\BIN"
  • Cole dentro da pasta: "C:\Executáveis\WPPConnectDemo" os binários do CEF que estão disponíveis: CEF4Delphi-Binários
  • Extraia todos eles e copie para junto do executável do DEMO ou da sua aplicação.

⚡️ Quickstart Lazarus

// under construction

Csharp




## ⚡️ Quickstart OpenAI for Delphi in WPP4Delphi

Csharp Csharp

OpenAI for Delphi é uma biblioteca cliente para conectar-se à API OpenAI. A partir desta biblioteca, você pode usar serviços OpenAI populares, como ChatGPT , em seu aplicativo Delphi ou Lazarus.

Example ChatGPT em Delphi com 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;

Mais informações, acesse a OpenAI for Delphi

License

Copyright 2022 WPPConnect 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 agreed 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.

More Repositories

1

wppconnect

WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligence recognition based on phrases artificial and many other things, use your imagination
TypeScript
1,857
star
2

wppconnect-server

Wppconnect Server is a ready-to-use API, just download, install, and start using, simple as that.
TypeScript
660
star
3

wa-js

WPPConnect/WA-JS is an open-source project with the aim of exporting functions from WhatsApp Web
TypeScript
376
star
4

wppconnect-frontend

WPPConnect FrontEnd has been designed to demonstrate how multi-session works dynamically.
JavaScript
234
star
5

wpp-docker

Crie facilmente imagens do Docker com diferentes versões/combinações de linguagens e dependências comuns, para uso no WPPConnect.
TypeScript
131
star
6

wa-version

HTML
124
star
7

wppconnect-php-client

Um simples cliente PHP que proporciona acesso fácil aos endpoints do WPPConnect Server.
PHP
47
star
8

whaticket

This is a fork of https://github.com/canove/whaticket: A very simple Ticket System based on WhatsApp messages, that allow multi-users in same WhatsApp account.
JavaScript
45
star
9

wppconnect-laravel-client

Uma API simples com empacotador Guzzle, fornecendo acesso fácil aos endpoints do WPPConnect Server.
PHP
37
star
10

server-cli

JavaScript
33
star
11

wppconnect-team.github.io

Simple page
JavaScript
27
star
12

wppconnect-loader

WPPConnectLoader is an open source project developed by the JavaScript community with the aim of exporting functions from Webpack modules
TypeScript
25
star
13

wppconnect-frontend-vue

Vue
24
star
14

mobile

WPPConnect/mobile is an open source project with the objective of automating whatsapp web using the android or ios mobile browser and being able to perform all the functions of our wa-js project, so it is possible to create a customer service, media sending, intelligence recognition based on artificial phrases and many other things, use your imagination to change and modify this project or collaborate on improvements...
TypeScript
22
star
15

wa-js-api-server

WPPConnect/WA-JS API SERVER is a small api server to provide url preview for @wppconnect/wa-js library
TypeScript
19
star
16

WPP4DotNet

C#
13
star
17

wppconnect-delphi-client

Pascal
11
star
18

wppconnect-csharp

C#
10
star
19

wppconnect-laravel-notification-channel

4
star
20

wa-proto

Protobuf files from WhatsApp WEB
JavaScript
4
star
21

wppconnect-manager

CSS
2
star