mirror of
https://github.com/EvolutionAPI/evolution-client-python.git
synced 2025-12-19 11:52:19 -06:00
adjusts in package
This commit is contained in:
19
build/lib/evolutionapi/services/label.py
Normal file
19
build/lib/evolutionapi/services/label.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from typing import Union, BinaryIO
|
||||
from ..models.label import *
|
||||
|
||||
class LabelService:
|
||||
def __init__(self, client):
|
||||
self.client = client
|
||||
|
||||
def find_labels(self, instance_id: str, instance_token: str):
|
||||
return self.client.get(
|
||||
f'label/findLabels/{instance_id}',
|
||||
instance_token=instance_token
|
||||
)
|
||||
|
||||
def handle_label(self, instance_id: str, data: HandleLabel, instance_token: str):
|
||||
return self.client.post(
|
||||
f'label/handleLabel/{instance_id}',
|
||||
data=data.__dict__,
|
||||
instance_token=instance_token
|
||||
)
|
||||
Reference in New Issue
Block a user