diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 4277afa7..bf6cbfc3 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -23,8 +23,8 @@ assignees: '' ``` > You can get the WAHA version by calling `GET /api/version` Try to update to -> [the latest version](https://github.com/devlikeapro/whatsapp-http-api/releases) -> before creating an issue! +> [the latest version](https://github.com/devlikeapro/waha/releases) before +> creating an issue! **To Reproduce** Steps to reproduce the behavior: diff --git a/.github/clear-gh-runs.sh b/.github/clear-gh-runs.sh index 11f3009d..7138edb7 100644 --- a/.github/clear-gh-runs.sh +++ b/.github/clear-gh-runs.sh @@ -3,7 +3,7 @@ # OWNER=devlikeapro -REPO=whatsapp-http-api-plus +REPO=waha-plus # list workflows gh api -X GET /repos/$OWNER/$REPO/actions/workflows | jq '.workflows[] | .name,.id' diff --git a/Dockerfile b/Dockerfile index ca5de83b..da293634 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,7 +29,7 @@ RUN yarn build && find ./dist -name "*.d.ts" -delete FROM node:${NODE_VERSION} as release ENV PUPPETEER_SKIP_DOWNLOAD=True # Quick fix for memory potential memory leaks -# https://github.com/devlikeapro/whatsapp-http-api/issues/347 +# https://github.com/devlikeapro/waha/issues/347 ENV NODE_OPTIONS="--max-old-space-size=16384" ARG USE_BROWSER=chromium diff --git a/Makefile b/Makefile index 0665d2fc..f62e1f8d 100644 --- a/Makefile +++ b/Makefile @@ -1,32 +1,32 @@ build: - docker build . -t devlikeapro/whatsapp-http-api + docker build . -t devlikeapro/waha build-chrome: - docker build . -t devlikeapro/whatsapp-http-api-plus:chrome --build-arg USE_BROWSER=chrome + docker build . -t devlikeapro/waha-plus:chrome --build-arg USE_BROWSER=chrome build-noweb: - docker build . -t devlikeapro/whatsapp-http-api:noweb --build-arg USE_BROWSER=none + docker build . -t devlikeapro/waha:noweb --build-arg USE_BROWSER=none build-all: build build-chrome build-noweb build-plus: - docker build . -t devlikeapro/whatsapp-http-api-plus + docker build . -t devlikeapro/waha-plus build-ssh: # check IMAGE provided - @[ "${IMAGE}" ] || ( echo "Add APP: make build-ssh image=devlikeapro/whatsapp-http-api"; exit 1 ); + @[ "${IMAGE}" ] || ( echo "Add APP: make build-ssh image=devlikeapro/waha"; exit 1 ); eval $(ssh-agent) && \ ssh-add ~/.ssh/id_rsa && \ docker buildx build --ssh default=${SSH_AUTH_SOCK} . -t ${IMAGE} --build-arg USE_BROWSER=none stop: - docker stop whatsapp-http-api + docker stop waha clean: stop sudo rm -rf .sessions push: - docker push devlikeapro/whatsapp-http-api + docker push devlikeapro/waha for-swagger: WHATSAPP_SWAGGER_CONFIG_ADVANCED=true npm run start diff --git a/README.md b/README.md index e9edd0f4..eede8158 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ **WAHA** - **W**hats**A**pp **H**TTP **A**PI (REST API) that you can install on your own server and run in less than 5 minutes! -[![Docker Pulls](https://img.shields.io/docker/pulls/devlikeapro/whatsapp-http-api)](https://hub.docker.com/r/devlikeapro/whatsapp-http-api) +[![Docker Pulls](https://img.shields.io/docker/pulls/devlikeapro/waha)](https://hub.docker.com/r/devlikeapro/waha) - Documentation: [https://waha.devlike.pro/](https://waha.devlike.pro/) - Swagger Example: [https://waha.devlike.pro/swagger](https://waha.devlike.pro/swagger) @@ -104,13 +104,13 @@ Assuming you have installed [Docker](https://docs.docker.com/get-docker/), let's ```bash -docker pull devlikeapro/whatsapp-http-api +docker pull devlikeapro/waha ``` ```bash docker login -u devlikeapro -p {KEY} -docker pull devlikeapro/whatsapp-http-api-plus +docker pull devlikeapro/waha-plus docker logout ``` @@ -121,7 +121,7 @@ Read more about how to get `PASSWORD` for [Plus Version →]({{< relref "plus-ve Run WhatsApp HTTP API: ```bash -docker run -it --rm -p 3000:3000/tcp --name whatsapp-http-api devlikeapro/whatsapp-http-api +docker run -it --rm -p 3000:3000/tcp --name waha devlikeapro/waha # It prints logs and the last line must be # WhatsApp HTTP API is running on: http://[::1]:3000 diff --git a/docker-compose.yaml b/docker-compose.yaml index 0e0c1983..eb23960d 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,10 +1,10 @@ version: '3' services: - whatsapp-http-api: + waha: # Check available Docker images: # https://waha.devlike.pro/docs/how-to/engines/#docker-images - image: devlikeapro/whatsapp-http-api - container_name: whatsapp-http-api + image: devlikeapro/waha + container_name: waha ports: - '3000:3000/tcp' environment: @@ -14,11 +14,11 @@ services: - WHATSAPP_DEFAULT_ENGINE=WEBJS restart: always - whatsapp-http-api-plus: + waha-plus: # Check available Docker images: # https://waha.devlike.pro/docs/how-to/engines/#docker-images - image: devlikeapro/whatsapp-http-api-plus:chrome - container_name: whatsapp-http-api-plus + image: devlikeapro/waha-plus:chrome + container_name: waha-plus ports: - '3000:3000/tcp' volumes: @@ -43,11 +43,11 @@ services: # - WAHA_WEBJS_WEB_VERSION=2.2412.54-videofix restart: always - whatsapp-http-api-plus--mongodb: + waha-plus--mongodb: # Check available Docker images: # https://waha.devlike.pro/docs/how-to/engines/#docker-images - image: devlikeapro/whatsapp-http-api-plus:chrome - container_name: whatsapp-http-api-plus--mongodb + image: devlikeapro/waha-plus:chrome + container_name: waha-plus--mongodb ports: - '3000:3000/tcp' volumes: diff --git a/examples/python/README.md b/examples/python/README.md index ea110aa9..f26d87d2 100644 --- a/examples/python/README.md +++ b/examples/python/README.md @@ -19,9 +19,9 @@ Download and start WhatsApp HTTP API docker container ```bash # Download the image -docker pull devlikeapro/whatsapp-http-api +docker pull devlikeapro/waha # Run the docker container -docker run -it --rm --network=host -e WHATSAPP_HOOK_URL=http://localhost:5000/bot -e "WHATSAPP_HOOK_EVENTS=*" --name whatsapp-http-api devlikeapro/whatsapp-http-api +docker run -it --rm --network=host -e WHATSAPP_HOOK_URL=http://localhost:5000/bot -e "WHATSAPP_HOOK_EVENTS=*" --name waha devlikeapro/waha # It prints logs and the last line must be # WhatsApp HTTP API is running on: http://[::1]:3000 @@ -36,11 +36,11 @@ commands to download the image ```bash # Download the image -docker pull devlikeapro/whatsapp-http-api:arm -# Rename it, so you can use devlikeapro/whatsapp-http-api image in other place -docker tag devlikeapro/whatsapp-http-api:arm devlikeapro/whatsapp-http-api +docker pull devlikeapro/waha:arm +# Rename it, so you can use devlikeapro/waha image in other place +docker tag devlikeapro/waha:arm devlikeapro/waha # Run the docker container -docker run -it --rm --network=host -e WHATSAPP_HOOK_URL=http://localhost:5000/bot -e "WHATSAPP_HOOK_EVENTS=*" --name whatsapp-http-api devlikeapro/whatsapp-http-api +docker run -it --rm --network=host -e WHATSAPP_HOOK_URL=http://localhost:5000/bot -e "WHATSAPP_HOOK_EVENTS=*" --name waha devlikeapro/waha # It prints logs and the last line must be # WhatsApp HTTP API is running on: http://[::1]:3000 @@ -79,9 +79,9 @@ set up webhooks and reply to incoming messages. ```bash # Clone the git repository with example -git clone https://github.com/devlikeapro/whatsapp-http-api.git +git clone https://github.com/devlikeapro/waha.git # Open python example folder -cd whatsapp-http-api/examples/python +cd waha/examples/python # Install requirements python -mpip install -r requirements.txt # Run the bot @@ -106,18 +106,18 @@ Download **WAHA Plus** version: ```bash # Download the image -docker pull devlikeapro/whatsapp-http-api-plus +docker pull devlikeapro/waha-plus # Run the docker container -docker run -it --rm --network=host -e WHATSAPP_HOOK_URL=http://localhost:5000/bot -e "WHATSAPP_HOOK_EVENTS=*" --name whatsapp-http-api devlikeapro/whatsapp-http-api-plus +docker run -it --rm --network=host -e WHATSAPP_HOOK_URL=http://localhost:5000/bot -e "WHATSAPP_HOOK_EVENTS=*" --name waha devlikeapro/waha-plus ``` Run the WhatsApp Download Files bot: ```bash # Clone the git repository with example -git clone https://github.com/devlikeapro/whatsapp-http-api.git +git clone https://github.com/devlikeapro/waha.git # Open python example folder -cd whatsapp-http-api/examples/python +cd waha/examples/python # Install requirements python -mpip install -r requirements.txt # Run the bot diff --git a/package.json b/package.json index 42a49055..7a6e5f7c 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "whatsapp-http-api", + "name": "waha", "version": "0.0.1", "description": "", "author": "", diff --git a/src/api/exception.filter.ts b/src/api/exception.filter.ts index c1f56767..2f57c808 100644 --- a/src/api/exception.filter.ts +++ b/src/api/exception.filter.ts @@ -31,7 +31,7 @@ export class AllExceptionsFilter implements ExceptionFilter { /** * If file not found - we get weird 500 error * So we convert that exception manually to 404 and send appropriate JSON response - * @issue https://github.com/devlikeapro/whatsapp-http-api/issues/134 + * @issue https://github.com/devlikeapro/waha/issues/134 * @solution https://github.com/nestjs/serve-static/issues/139#issuecomment-612429557 */ if (exception.code === 'ENOENT') { diff --git a/src/core/SwaggerConfiguratorCore.ts b/src/core/SwaggerConfiguratorCore.ts index ddcc4bf5..f7c633f2 100644 --- a/src/core/SwaggerConfiguratorCore.ts +++ b/src/core/SwaggerConfiguratorCore.ts @@ -21,8 +21,8 @@ export class SwaggerConfiguratorCore { '