Group Errors#

class pywa.errors.GroupError#

Bases: WhatsAppError

Base exception for all group errors.

class pywa.errors.BadGroup#

Bases: GroupError

Cannot send messages to single member groups.

class pywa.errors.GroupUnknown#

Bases: GroupError

The group was not found, either because it doesn’t exist or you are not a member.

class pywa.errors.GroupInvalidCursor#

Bases: GroupError

The cursor has either expired or become corrupted. Start pagination from the beginning again.

class pywa.errors.GroupRequestPartiallySucceeded#

Bases: GroupError

Not all participant-level operations in the request succeeded.

class pywa.errors.GroupDuplicateParticipant#

Bases: GroupError

Duplicate participants in the participant array input.

class pywa.errors.GroupParticipantOverlimit#

Bases: GroupError

Group participant size exceeds limit.

class pywa.errors.GroupSuspended#

Bases: GroupError

The group violates platform policies.

class pywa.errors.GroupRateLimitHit#

Bases: GroupError

Group operation failed because there were too many group operations from this phone number in a short period.

class pywa.errors.GroupInvalidProfilePictureAspectRatio#

Bases: GroupError

Width and height of the image must be equal.

class pywa.errors.GroupImageTooSmall#

Bases: GroupError

Image width and height must be greater than 192px.

class pywa.errors.GroupCreationLimitReached#

Bases: GroupError

Reached the limit for the maximum number of groups that can be created for this number.

class pywa.errors.GroupParticipantNotInGroup#

Bases: GroupError

Participant is not a part of the group.

class pywa.errors.GroupJoinRequestDoesNotExist#

Bases: GroupError

Group join request does not exist.

class pywa.errors.GroupCreationTemporarilyDisabled#

Bases: GroupError

Group creation is temporarily disabled due to excessive marketing messages sent by the WABA in customer service window over the past 7 days.

class pywa.errors.GroupAPINotEligible#

Bases: GroupError

Groups APIs are only available for eligible phone numbers. Please check eligibility for Groups APIs in our documentation - /documentation/business-messaging/whatsapp/groups/get-started