{"id":13405467,"url":"https://github.com/wppconnect-team/WPP4Delphi","last_synced_at":"2025-03-14T09:32:55.474Z","repository":{"id":37357632,"uuid":"492643538","full_name":"wppconnect-team/WPP4Delphi","owner":"wppconnect-team","description":"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.","archived":false,"fork":false,"pushed_at":"2025-02-22T19:42:10.000Z","size":102886,"stargazers_count":214,"open_issues_count":6,"forks_count":71,"subscribers_count":30,"default_branch":"main","last_synced_at":"2025-03-03T14:05:30.957Z","etag":null,"topics":["delphi","lazarus","pascal","tinject","whats4delphi","whatsapp","whatsapp-api","whatsapp-bot","whatsapp-chat","whatsapp-web"],"latest_commit_sha":null,"homepage":"","language":"Pascal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wppconnect-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["joaosouz4dev"],"open_collective":"wppconnect"}},"created_at":"2022-05-16T01:07:14.000Z","updated_at":"2025-02-23T15:06:29.000Z","dependencies_parsed_at":"2023-02-15T14:31:53.961Z","dependency_job_id":"2663413c-a2b6-4f0a-bc2a-7ffad51c160d","html_url":"https://github.com/wppconnect-team/WPP4Delphi","commit_stats":{"total_commits":521,"total_committers":16,"mean_commits":32.5625,"dds":0.5585412667946257,"last_synced_commit":"b2cb68d9fe727275649dbd340d239d6b30819b30"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wppconnect-team%2FWPP4Delphi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wppconnect-team%2FWPP4Delphi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wppconnect-team%2FWPP4Delphi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wppconnect-team%2FWPP4Delphi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wppconnect-team","download_url":"https://codeload.github.com/wppconnect-team/WPP4Delphi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242864321,"owners_count":20197690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["delphi","lazarus","pascal","tinject","whats4delphi","whatsapp","whatsapp-api","whatsapp-bot","whatsapp-chat","whatsapp-web"],"created_at":"2024-07-30T19:02:03.035Z","updated_at":"2025-03-14T09:32:55.446Z","avatar_url":"https://github.com/wppconnect-team.png","language":"Pascal","funding_links":["https://github.com/sponsors/joaosouz4dev","https://opencollective.com/wppconnect"],"categories":["Pascal"],"sub_categories":[],"readme":"# WPPConnect/WPP4Delphi 📞\r\n\r\n![WPPConnect Banner](./img/wppconnect-banner.jpeg)\r\n\r\n\u003e 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.\r\n\r\n## Our online channels\r\n\r\n[![Discord](https://img.shields.io/discord/844351092758413353?color=blueviolet\u0026label=Discord\u0026logo=discord\u0026style=flat)](https://discord.gg/JU5JGGKGNG)\r\n[![Telegram Group](https://img.shields.io/badge/Telegram-Group-32AFED?logo=telegram)](https://t.me/wppconnect)\r\n[![WhatsApp Group](https://img.shields.io/badge/WhatsApp-Group-25D366?logo=whatsapp)](https://chat.whatsapp.com/HzLflMQVjOPK9bpjzlxcMO)\r\n[![YouTube](https://img.shields.io/youtube/channel/subscribers/UCD7J9LG08PmGQrF5IS7Yv9A?label=YouTube)](https://www.youtube.com/c/wppconnect)\r\n\r\n![image](https://user-images.githubusercontent.com/26030963/216709406-ef34a678-c5df-4b01-b2b1-cbb4db5539fe.png)\r\n\r\n\r\n![image](https://user-images.githubusercontent.com/26030963/212915033-f27d217b-363a-4ee9-bf84-a93038628ec2.png)\r\n\r\n\r\n## ⚙️ Installation\r\nInstallation is done using the [`boss install`](https://github.com/HashLoad/boss) command:\r\n``` sh\r\nboss install github.com/wppconnect-team/WPP4Delphi\r\n```\r\n\r\n## ⚡️ Quickstart Delphi\r\n```delphi\r\n\r\n```\r\n## Funções\r\n|                                                                            |     |\r\n| -------------------------------------------------------------------------- | --- |\r\n| Geração automática de QRCode                                               | ✔  |\r\n| Envio de mensagens **texto, imagens, videos, áudios e docs**               | ✔  |\r\n| Envio de mensagens **lista, botões, links**                                | ✔  |\r\n| Busca de **contatos, chats, grupos, membros de grupos, lista de bloqueio** | ✔  |\r\n| Envio de Contatos                                                          | ✔  |\r\n| Envio de stickers                                                          | ✔  |\r\n| Sessões Múltiplas                                                          | ✔  |\r\n| Responder Mensagens                                                        | ✔  |\r\n| Receber mensagens                                                          | ✔  |\r\n| Receber mensagens e obter retorno com o id                                 | ✔  |\r\n| Enviar _localização_                                                       | ✔  |\r\n| **e muito mais**                                                           | ✔  |\r\n\r\n## Instalação \r\n\r\nDependências: \r\n- [`WPPConnect/wa-js`] \u003ca href=\"https://github.com/wppconnect-team/wa-js\"\u003ewa-js\u003c/a\u003e \u003cbr\u003e\r\n- [`CEF4Delphi`]  \u003ca href=\"https://github.com/salvadordf/CEF4Delphi/releases/tag/109.0.5414.120\"\u003eCEF4Delphi\u003c/a\u003e \u003cbr\u003e \r\nAtualmente utilizando o CEF Versão: 109.0.5414.120- Binários: 109.1.18, compatível com o Windows 7 e 8 e Sever 2012, as versões superiores do CEF perdeu o suporte para esses Sistemas Operacionais;\r\n\r\n## Download: \r\n- [`CEF4Delphi`] \u003ca href=\"https://github.com/salvadordf/CEF4Delphi/releases/tag/109.0.5414.120\"\u003eCEF4Delphi-Fontes\u003c/a\u003e \u003cbr\u003e\r\n- [`CEF Binários 32bit`] \u003ca href=\"https://cef-builds.spotifycdn.com/cef_binary_109.1.18%2Bgf1c41e4%2Bchromium-109.0.5414.120_windows32.tar.bz2\"\u003eCEF4Delphi-Binários\u003c/a\u003e \u003cbr\u003e\r\n- [`CEF Binários 64bit`] \u003ca href=\"https://cef-builds.spotifycdn.com/cef_binary_109.1.18%2Bgf1c41e4%2Bchromium-109.0.5414.120_windows64.tar.bz2\"\u003eCEF4Delphi-Binários\u003c/a\u003e \u003cbr\u003e\r\n\r\nTutorial de instalação em vídeo: \r\n[`Youtube`]  \r\n  \r\nLink do grupo WhatsApp: https://chat.whatsapp.com/HzLflMQVjOPK9bpjzlxcMO\r\n\r\nInstalação Passo a Passo: \r\n  - Extraia para uma pasta os arquivos do CEF4Delphi \r\n  - Extraia para uma pasta os binários do CEF \r\n  - No Delphi adicione em Tools \u003e Options \u003e Library Path a pasta sources do CEF4Delphi \"...\\CEF4Delphi\\source\"\r\n  - 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)\r\n  - Após instalar, feche o projeto. \r\n  - Adicione em Tools \u003e Options \u003e Library Path as pastas source do WPP4Delphi \"...WPP4Delphi\\Source\\Model\", \"...WPP4Delphi\\Source\\Services\", \"...WPP4Delphi\\Source\\View\", \"...WPP4Delphi\\Packages\\Compilados\", \"...WPP4Delphi\\Source\\Other\"\r\n  - Dentro da pasta Packages\\Compilados, existem subpastas D23, D24, D25, D26, D27 e D28, adicione no library path a pasta correta conforme a sua versão do delphi \r\n        Consulte em: https://delphidabbler.com/notes/version-numbers ou http://docwiki.embarcadero.com/RADStudio/Sydney/en/Compiler_Versions\r\n  - Abra o arquivo \"...WPP4Delphi\\Packages\\TWPP4DelphiCollection.dpk\"\r\n  - Na Instalação do CEF4Delphi Superior a versão \"120\" precisa ser adicionado na Diretiva de Compilação --\u003e \"CEFCurrentVersion\" antes de dar o Build no DPK \r\n  - Então faça um Build (shift+F9) e então \"Install\" (botão direito do mouse no Project Manager)\r\n  - Abra o DEMO que está junto dos fontes do WPP4Delphi. \r\n  - Compile o projeto DEMO uma única vez e será criada a Pasta: C:\\Executáveis\\WPPConnectDemo \r\n  - Cole dentro dessa pasta o arquivo ConfTWPPConnect.ini que está em \"...WPP4Delphi\\Demo\\BIN\"\r\n  - Cole dentro da pasta: \"C:\\Executáveis\\WPPConnectDemo\" os binários do CEF que estão disponíveis: \u003ca href=\"https://cef-builds.spotifycdn.com/cef_binary_109.1.18%2Bgf1c41e4%2Bchromium-109.0.5414.120_windows32.tar.bz2\"\u003eCEF4Delphi-Binários\u003c/a\u003e \r\n  - Extraia todos eles e copie para junto do executável do DEMO ou da sua aplicação, lembrar de copiar o binários, da mesma versão correspondente. \r\n  \r\n\r\n## ⚡️ Quickstart Lazarus\r\n```delphi\r\n// under construction\r\n```\r\n\u003cimg align=\"Left\" alt=\"Csharp\" height=\"80\" width=\"500\" src=\"https://user-images.githubusercontent.com/26030963/216707873-68d32738-3c21-4a31-a7ef-98e0d3906e04.png\"\u003e\r\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cp\u003e\u003cp\u003e\u003cp\u003e\r\n## ⚡️ Quickstart OpenAI for Delphi in WPP4Delphi\u003cp\u003e\r\n\r\n\u003cimg align=\"Left\" alt=\"Csharp\" height=\"40\" width=\"40\" src=\"https://user-images.githubusercontent.com/26030963/216707110-d332df6c-605a-4273-8667-583712fd841d.png\"\u003e\r\n\u003cimg align=\"Left\" alt=\"Csharp\" height=\"40\" width=\"40\" src=\"https://user-images.githubusercontent.com/26030963/216706944-fb46fda8-c6fa-471c-8adb-9e23967b86c6.png\"\u003e\r\n\r\n[OpenAI for Delphi](https://github.com/landgraf-dev/openai-delphi) é uma biblioteca cliente para conectar-se à API OpenAI. A partir desta biblioteca, você pode usar serviços OpenAI populares, como [ChatGPT](https://openai.com/blog/chatgpt/) , em seu aplicativo Delphi ou Lazarus.\u003cbr\u003e\r\n\r\nExample ChatGPT em Delphi com WPP4Delphi | [Demo View](https://www.youtube.com/watch?v=zwA2KYIoxiM\u0026t=2s\u0026ab_channel=WPPConnect)\u003cp\u003e\r\n```\r\nfunction TfrDemo.AskQuestion(const Question, phoneNumber: string): string;\r\nvar\r\n  Request: TCreateCompletionRequest;\r\n  Response: TCreateCompletionResponse;\r\nbegin\r\n  Response := nil;\r\n  Request := TCreateCompletionRequest.Create;\r\n  try\r\n    //Request.User := '17981388414'\r\n    Request.Prompt := Question;\r\n    Request.Model := 'text-davinci-003';\r\n    Request.User := phoneNumber;\r\n    Request.MaxTokens := 2048; // Be careful as this can quickly consume your API quota. \r\n    Response := Client.OpenAI.CreateCompletion(Request);///Client credits in https://github.com/landgraf-dev/openai-delphi\r\n\r\n    if Assigned(Response.Choices) and (Response.Choices.Count \u003e 0) then\r\n      Result := phoneNumber + '#' + Response.Choices[0].Text\r\n    else\r\n      Result := phoneNumber + '#' + '';\r\n  finally\r\n    Request.Free;\r\n    Response.Free;\r\n  end;\r\nend;\r\n```\r\nMais informações, acesse a [OpenAI for Delphi](https://github.com/landgraf-dev/openai-delphi)\r\n\r\n## License\r\n\r\nCopyright 2022 WPPConnect Team \u003chttps://wppconnect-team.github.io/\u003e\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software\r\ndistributed under the License is distributed on an \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\nSee the License for the specific language governing permissions and\r\nlimitations under the License.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwppconnect-team%2FWPP4Delphi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwppconnect-team%2FWPP4Delphi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwppconnect-team%2FWPP4Delphi/lists"}