mirror of
https://github.com/EvolutionAPI/evolution-client-python.git
synced 2025-07-13 15:14:48 -06:00
39 lines
725 B
Python
39 lines
725 B
Python
from typing import List, Optional, Literal
|
|
from dataclasses import dataclass
|
|
|
|
@dataclass
|
|
class CreateGroup:
|
|
subject: str
|
|
participants: List[str]
|
|
description: Optional[str] = None
|
|
|
|
@dataclass
|
|
class GroupPicture:
|
|
image: str
|
|
|
|
@dataclass
|
|
class GroupSubject:
|
|
subject: str
|
|
|
|
@dataclass
|
|
class GroupDescription:
|
|
description: str
|
|
|
|
@dataclass
|
|
class GroupInvite:
|
|
groupJid: str
|
|
description: str
|
|
numbers: List[str]
|
|
|
|
@dataclass
|
|
class UpdateParticipant:
|
|
action: Literal["add", "remove", "promote", "demote"]
|
|
participants: List[str]
|
|
|
|
@dataclass
|
|
class UpdateSetting:
|
|
action: Literal["announcement", "not_announcement", "locked", "unlocked"]
|
|
|
|
@dataclass
|
|
class ToggleEphemeral:
|
|
expiration: int |