Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

greenapi-client-python

Skill by green-api

Writes Python code that calls the official GREEN-API SDK, whatsapp-api-client-python, for WhatsApp messaging. It covers sending messages and files, receiving notifications, groups and instance setup. Built for Python developers who automate WhatsApp through GREEN-API.

  • Score 75
  • 210 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install greenapi-client-python

Built from the published package, never by AI.

git clone --depth 1 https://github.com/green-api/whatsapp-api-client-python /tmp/whatsapp-api-client-python && mkdir -p ~/.claude/skills && cp -r /tmp/whatsapp-api-client-python/skills ~/.claude/skills/greenapi-client-python

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install greenapi-client-python in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill helps an AI assistant write Python code that uses the official GREEN-API SDK, whatsapp-api-client-python. It tells the assistant to use only the methods listed in the SDK inventory and to take parameter details from the official GREEN-API docs. The guidance covers client setup, the Response object with its code, data and error attributes, and the chatId format for personal and group chats.

The skill also explains sending text messages, sending files by URL or upload, receiving notifications by polling or by a webhook endpoint, creating groups, and the sending delay setting. It lists common pitfalls, such as clearing webhookUrl before polling and deleting processed notifications. It is aimed at Python developers who build WhatsApp messaging on GREEN-API.

Written from the project's SKILL.md and checked against it.

What it can do

  • Client setupCreates a GreenAPI client from idInstance and apiTokenInstance, with optional host and timeout settings.
  • Send text messagesSends a text message to a chatId, with optional typing time and link preview settings.
  • Send files by URLSends a file from a URL with a file name and an optional caption.
  • Send files by uploadUploads a local file through the media host and returns a message ID and file URL.
  • Poll notificationsReceives incoming notifications with receiveNotification and startReceivingNotifications.
  • Webhook setupSets webhookUrl and notification flags with setSettings for push delivery.
  • Create groupsCreates a WhatsApp group with createGroup and returns its chatId.
  • Message delay settingSets delaySendMessagesMilliseconds to control the outgoing message queue.
  • Partner instancesLists, creates and deletes instances through the GreenApiPartner client.
  • Method inventoryPoints to a reference list of SDK methods and signatures to avoid invented calls.

What you need

  • Python 3.10 or later
  • GREEN-API account with idInstance and apiTokenInstance
  • whatsapp-api-client-python package installed with pip
  • An authorized WhatsApp instance

Try asking

  • Write Python code to send a WhatsApp text message with GREEN-API
  • Poll incoming WhatsApp notifications with whatsapp-api-client-python
  • Send a file by URL to a WhatsApp chat using GREEN-API in Python

Good to know

  • Polling needs the instance webhookUrl to be empty.
  • Maximum file size for sending is 100 MB.
  • Create groups no faster than about one per five minutes.
  • Messages wait in the send queue up to 24 hours until the instance is authorized.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to greenapi-client-python

All alternatives →

Compare with setup-zoom-webhooks, baoyu-post-to-weibo or add-dial-number

greenapi-client-python: common questions

Does the SDK include a webhook HTTP server?

No. The source says the SDK does not ship a webhook server, so you must run your own endpoint that accepts POST JSON and returns 200.

What chatId format does GREEN-API use?

Personal chats use the form phone@c.us with digits only, and group chats use the form id@g.us. Group IDs should come from createGroup, journals or notifications, not be hand-made.

Can I use polling and a webhook at the same time?

No, the source says they are mutually exclusive for the same traffic. Clear webhookUrl to poll, and set webhookUrl to receive pushed notifications.

How do I install greenapi-client-python?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is greenapi-client-python free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is greenapi-client-python safe to use?

It scores 75 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to greenapi-client-python?

Similar skills: setup-zoom-webhooks, baoyu-post-to-weibo, add-dial-number, setup-zoom-websockets.

greenapi-client-python Install

Add to stack

Loading.