8000 GitHub - AnshumanAtrey/WhatsApp-Robocorp-Robot
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AnshumanAtrey/WhatsApp-Robocorp-Robot

Repository files navigation

WhatsApp Automation for Sending Videos With Caption

This project automates the process of sending WhatsApp video messages to a list of users. It reads details from a JSON file, sends a message via WhatsApp, and logs any errors to an error.json file.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed the latest version of Python.
  • You have a Windows machine with WhatsApp installed.
  • You have robot framework installed pip install robotframework
  • You have read Robocorp's documentation.

Installation

Clone this repository

Usage

To use this automation, you need to have a data.json file in the same directory as your robot script. This file should contain a list of users with their phone numbers and names.

Here's an example of how your data.json might look:

[
  {
    "phoneNumbers": ["+1234567890"],
    "name": "Restaurant A"
  },
  {
    "phoneNumbers": ["+0987654321"],
    "name": "Restaurant B"
  }
]

Create a shortcut of your whatsapp.exe in a folder and add that folder path to System Settings > Environment Variable > Path. (If you can't find the file path of WhatsApp, open Task Manager, right-click on WhatsApp, and open the file path, then create its shortcut.)

Copy the video file before running the code.

If you want to edit the caption of the video, go to line 36 of tasks.robot

Logging

All numbers may not be present on Whatsapp so if this robot encounter any error it will log the user data that got the error into error.json file in the same directory.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0