Skip to content

green-api/whatsapp-api-client-python / skills

greenapi-client-python

Verified

Write correct Python code with the official GREEN-API SDK whatsapp-api-client-python (package whatsapp_api_client_python). Use when sending/receiving WhatsApp messages, files, polls, groups, journals, queues, statuses, contacts, partner instances, polling notifications, or configuring a GREEN-API instance in Python. Triggers: GREEN-API, green-api, whatsapp-api-client-python, GreenAPI, GreenApi, sendMessage, receiveNotification.

FileKindSize
SKILL.mdskill md12.9 KB
references/account.mdmarkdown2.9 KB
references/contacts.mdmarkdown796 B
references/device.mdmarkdown346 B
references/groups.mdmarkdown1.9 KB
references/inventory.mdmarkdown12.1 KB
references/journals.mdmarkdown1.1 KB
references/marking.mdmarkdown436 B
references/partner.mdmarkdown930 B
references/queues.mdmarkdown843 B
references/receiving.mdmarkdown4.1 KB
references/sending.mdmarkdown3.7 KB
references/service-methods.mdmarkdown2.0 KB
references/statuses.mdmarkdown1.3 KB

references/groups.md

View on GitHub
# Groups (`greenAPI.groups`)

Class: `Groups` in `tools/groups.py`.  
Index: https://green-api.com/en/docs/api/groups/

Group chat IDs end with `@g.us` and are **returned by the API** — do not invent them.
Docs: https://green-api.com/en/docs/api/chat-id/

## `createGroup`

Docs: https://green-api.com/en/docs/api/groups/CreateGroup/

| Param | Required | Notes |
| --- | --- | --- |
| `groupName` | yes | max 100 chars |
| `chatIds` | yes | list of participant `@c.us` ids |

Response: `created`, `chatId`, `groupInviteLink`.

**Rate:** create no more than ~1 group per 5 minutes. Numbers without WhatsApp can cause
errors or risk blocks.

```python
r = greenAPI.groups.createGroup("My group", ["79876543210@c.us"])
group_id = r.data["chatId"]
```

## Other methods

| Method | Required params | Docs |
| --- | --- | --- |
| `updateGroupName` | `groupId`, `groupName` | https://green-api.com/en/docs/api/groups/UpdateGroupName/ |
| `getGroupData` | `groupId` | https://green-api.com/en/docs/api/groups/GetGroupData/ |
| `addGroupParticipant` | `groupId`, `participantChatId` | https://green-api.com/en/docs/api/groups/AddGroupParticipant/ |
| `removeGroupParticipant` | `groupId`, `participantChatId` | https://green-api.com/en/docs/api/groups/RemoveGroupParticipant/ |
| `setGroupAdmin` | `groupId`, `participantChatId` | https://green-api.com/en/docs/api/groups/SetGroupAdmin/ |
| `removeAdmin` | `groupId`, `participantChatId` | https://green-api.com/en/docs/api/groups/RemoveAdmin/ |
| `setGroupPicture` | `groupId`, `path` (local file) | https://green-api.com/en/docs/api/groups/SetGroupPicture/ |
| `leaveGroup` | `groupId` | https://green-api.com/en/docs/api/groups/LeaveGroup/ |
| `updateGroupSettings` | `groupId`, optional booleans `allowParticipantsEditGroupSettings`, `allowParticipantsSendMessages` | https://green-api.com/en/docs/api/groups/UpdateGroupSettings/ |

All methods have `*Async` variants.
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 319kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 319kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 319kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 319kUpdated Claude CodeCodexVerifiedInstall