Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manyakrus/whatsapp_chatgpt
Autoresponder for WhatsApp and Telegram messenger, with artificial intelligence ChatGPT
https://github.com/manyakrus/whatsapp_chatgpt
autoresponder chatgpt messenger messenger-bot telegram telegram-bot whatsapp whatsapp-bot
Last synced: about 1 month ago
JSON representation
Autoresponder for WhatsApp and Telegram messenger, with artificial intelligence ChatGPT
- Host: GitHub
- URL: https://github.com/manyakrus/whatsapp_chatgpt
- Owner: ManyakRus
- License: gpl-2.0
- Created: 2023-01-26T11:52:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-28T06:48:06.000Z (7 months ago)
- Last Synced: 2024-06-28T16:53:03.172Z (7 months ago)
- Topics: autoresponder, chatgpt, messenger, messenger-bot, telegram, telegram-bot, whatsapp, whatsapp-bot
- Language: Go
- Homepage:
- Size: 32.5 MB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Autoresponder for WhatsApp and Telegram messenger, with artificial intelligence ChatGPT
Made by Aleksander NikitinCan:
- automatically respond to user messages,
using artificial intelligence ChatGPT
- understands Russian (any) language
- answer in Russian (any) language
- respond on behalf of a man (woman)
- does not respond in group chatsTo get started:
1. Register on the website www.openai.com
and get API_KEY there (paid),
or on the website www.proxyapi.ru (paid, for Russian users)
2. Fill in the settings in the settings.txt (or .env) file:
```
WHATSAPP_ENABLED=true
WHATSAPP_PHONE_FROM= your phone number in WhatsApp messenger,
in the format "7ХХХХХХХХХХ" for Russia
CHATGPT_API_KEY= API_KEY from point (1)
CHATGPT_NAME= name to display in chat = "Answering machine:"
CHATGPT_START_TEXT= request start text for ChatGPT
CHATGPT_END_TEXT= request end text for ChatGPT
=" Answer in Russian on behalf of the man."
```
You can connect through a proxy proxyapi.ru (for Russian users),
if you fill in the parameters:
```
CHATGPT_PROXY_API_URL="https://api.proxyapi.ru/openai/v1"
CHATGPT_PROXY_API_KEY= API_KEY from the website proxyapi.ru
```For use in the Telegam messenger:
```
TELEGRAM_ENABLED=true
TELEGRAM_APP_ID=
TELEGRAM_APP_HASH=
TELEGRAM_PHONE_FROM=
```
You can find your APP_ID and APP_HASH from website:
https://my.telegram.org/apps3. Compile the code and run the file
for linux:
>make build>./bin/whatsapp_chatgpt
4. After launching, you need to scan the QR code
from the monitor screen in WhatsApp on your phone.
Telegram will receive a message from the user "Telegram" with a code,
which must be entered into the console to confirm the connection.
5. Write a message to yourself on WhatsApp (and Telegram):
On = enable answering machine
Off = turn off answering machineTested on Linux Ubuntu 20.04.5, Windows 10
Readme version from: 26.06.2024The source code is open:
https://github.com/ManyakRus/whatsapp_chatgpt