Posted 19 Days Ago Job ID: 2084900 20 quotes received

I Need a PHP bot to run on CPanel's Cron

Fixed PriceUnder $250
Quotes (20)  ·  Premium Quotes (0)  ·  Invited (0)  ·  Hired (0)

  Send before: May 10, 2024

Send a Quote

Programming & Development Programming & Software

I need to create a PHP bot to run on the Cron of my hosting service's CPanel to post multiple ads in many WhatsApp groups of which I am a member, just as if I were doing it myself.



It must meet the following requirements:



Each ad will have the following information:


 - Ad text (it would be ideal to have several versions of the text and for the bot to rotate them so that the same text is not always displayed)


 - An image


 - Status: Enabled/Disabled


 - Initial date from which the ad will be displayed.


 - End date, after which the ad will no longer be displayed.


 - Daily schedule in which the ad should be displayed, for example: from 8:00 am to 11:59 am and 1:30 pm to 6:00 pm


 - How often the ad should be reposted, for example each: 40m, 2h, 1d


 - Groups: List of groups where the ad will be posted. If desired, collections of groups can be created and named here, thus avoiding having to repeat the same list of groups in each ad.


 - Delete previous publication: Yes/No. This indicates whether the previous publication of this ad in this group should be deleted once reposted, to avoid having the ad repeated many times in each group.


 - Skip previous deletion: time interval. This is, if the previous field is Yes, to specify how often we should leave an old copy of the ad in each group to continue having backward visibility.




These last two fields are used if we are posting the ad very frequently to always be visible, to delete almost all previous publications to avoid saturating the group with our ad, but at the same time leaving some. For example: I want my ad to be posted every 20 minutes, to have great visibility, but for the previous publications to be deleted, but, for example, every 1 hour, not to be deleted, so that when a user scrolls through old messages, they continue to see my ads every hour.




Bot functionalities


 - The bot must be programmed entirely in PHP and MySQL, using extensions that are normally enabled in CPanel on a Linux hosting service.


 - The bot will run as a task in the CPanel Cron, every 1 or 2 minutes. It must be programmed properly to avoid multiple instances of the bot running simultaneously.


 - The bot should take each ad from the list of ads and if appropriate, according to its parameters, post it in each group it has in its group list.


 - The bot should check if the last ad posted in a group is the same as the one to be posted now, to avoid posting it on this occasion, to prevent the same ad from being repeated one after the other.


 - The bot should save all kinds of logs and statistics about each ad in each group, errors, failed posting attempts with their causes, successful postings, of each ad in each group.


 - Regarding its operation with WhatsApp:


  - Ads must be posted through my normal WhatsApp account, they must appear as if I had posted them manually.


  - The bot must function as a client app, for WhatsApp, perhaps with some existing library and perhaps reverse engineering may be necessary to know how the WhatsApp protocol works and program it. No third-party paid services should be used.


  - A web tool must be created to assist in the authentication process to open the session when necessary to enter security codes or scan QR codes.




Also, a simple web interface should be created to manage the ads.




Any question?

... Show more
Juany C Mexico