Componente para criação de chatBots com delphi
Component for creating chatBots with delphi
Delphi versions: Seattle, Berlin, Tokyo, Rio, Sydney, Alexandria.
https://www.youtube.com/watch?v=EIxFdtenNxI&t=31s
Videos demo:
https://youtu.be/YEmwghSGoFA
https://youtu.be/07RoReOHaT4
https://youtu.be/cbWW7VNYwEo
Instalação manual:
NOVO: Para usar com o delphi 11 Alexandria, incluir no library path 32 bits a pasta Compilados e suas subpastas.
1-Clonar o repositório Projeto-TInject
2-Baixar e instalar o CEF4Delphi em: http://www.softmaisbrasil.com.br/#blog
3-Baixar a pasta BIN em: http://www.softmaisbrasil.com.br/#blog
4-Copiar todo o conteúdo baixado da pasta BIN no passo 3 para a pasta BIN na raiz do projeto (Caso não exista a pasta BIN em seu projeto Crie)
5-Adicione ao libary path do Delphi a pasta TInject-whatsapp-delphi e todas as subpastas
6-Clique no menu Component > Install component. Selecione a unit uTinject pasta(service) e selecionar a opção install into a new package. Por fim, digite o nome TInject em Package name.
7-Dê um Compile e depois dê um build
8-Abra o arquivo demo Tinject.dproj
✔️  Login
✔️  Logout
✔️  Enviar mensagens de texto com botões - Send text message with buttons (NEW)
✔️  Enviar mensagens de texto para números fora da agenda- Send text message
✔️  Enviar mensagens para grupos - Send group messages
✔️  Enviar contatos - Send phone contacts
✔️  Enviar MP3 - Send MP3
✔️  Enviar MP4 - Send MP4
✔️  Enviar IMG - Send IMG
✔️  Enviar RAR - Send RAR
❌  Enviar Link com prévia - Sending and preview
✔️  Enviar localização - Location sending
✔️  Listar contatos - Contact list
✔️  Listar bate papos - Conversation list
❌  Status da bateria - Battery status
✔️  Simular digitando - Typing simulation
✔️  Recebimento de novas mensagem - Receiving new messages
✔️  Configurações de DDI - International number configuration
✔️  Validação de números - number validator
✔️  Checagem de conexão - check connection
✔️  Download de arquivos - Download files
✔️  Download da foto de perfil - Download profile picture
✔️  Criar grupo - Create group
❌  Sair do grupo - Leave the group
❌  Adicionar participante ao grupo - Add participant to the group
❌  Remover participante do grupo - Remove group member
❌  Promover participante adminstrador do grupo - Promote participant group administrator
❌  Despromover participanete adminstrador do grupo - Demote participating group administrator
✔️  Listar todos os grupos - List all groups
✔️  Listar participantes do grupo - List group participants
✔️  Entrar em grupo via link convite - Join group via invitation link
❌  Enviar botões na conversa - Send buttons in chat(Not functional in WhatsApp Multi devices Beta)
✔️  Criar enquetes. Create Pool
Nota 1: O TInject é de código aberto desenvolvido em comunidade, e não possui nenhum outro componente de terceiro além do TChromium vinculado ao código.
Nota 2: Desenvolvido no rad studio 10.3.0 (RIO).
Doações via PIX / Donations PIX: [email protected]
| event | Description | Example | return | 
|---|---|---|---|
| send | Send text message | TInject1.send('[email protected]', 'hello'); | - | 
| sendFile | Send file and text message | TInject1.SendFile('[email protected]', 'c:\myFile.pdf', 'hello'); | - | 
| sendContact | Send whatsapp contact | TInject1.sendContact('[email protected]', '[email protected]'); | - | 
| sendLinkPreview | Send preview link | TInject1.sendLinkPreview('[email protected]', 'https://youtube.com/video', 'hello'); | - | 
| sendLocation | Send Location | TInject1.sendLocation('[email protected]', '-70.4078', '25.3789', 'my location'); | 
| event | Description | example | event return | return | 
|---|---|---|---|---|
| CheckIsConnected | Checks the connection between the device and whatsapp | TInject1.CheckIsConnected(); | OnIsConnected | boolean | 
| NewCheckIsValidNumber | Checks whether one or more numbers are whatsapp numbers | TInject1.NewCheckIsValidNumber('[email protected]'); | OnNewGetNumber | TReturnCheckNumber | 
| GetBatteryStatus | Checks the device's battery level | TInject1.GetBatteryStatus; | OnGetBatteryLevel | TInject(Sender).BatteryLevel |