mirror of
https://github.com/EvolutionAPI/evolution-client-python.git
synced 2025-12-13 03:49:34 -06:00
refactor: replace star imports with explicit imports
This commit is contained in:
parent
0126359ec3
commit
21115cca06
@ -55,7 +55,7 @@ class EvolutionClient:
|
|||||||
error_detail = ""
|
error_detail = ""
|
||||||
try:
|
try:
|
||||||
error_detail = f" - {response.json()}"
|
error_detail = f" - {response.json()}"
|
||||||
except:
|
except Exception:
|
||||||
error_detail = f" - {response.text}"
|
error_detail = f" - {response.text}"
|
||||||
raise EvolutionAPIError(f"Erro na requisição: {response.status_code}{error_detail}")
|
raise EvolutionAPIError(f"Erro na requisição: {response.status_code}{error_detail}")
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
from ..models.call import *
|
from ..models.call import FakeCall
|
||||||
|
|
||||||
|
|
||||||
class CallService:
|
class CallService:
|
||||||
|
|||||||
@ -1,6 +1,16 @@
|
|||||||
from typing import Optional
|
from typing import List, Optional
|
||||||
|
|
||||||
from ..models.chat import *
|
from ..models.chat import (
|
||||||
|
ArchiveChat,
|
||||||
|
CheckIsWhatsappNumber,
|
||||||
|
MediaMessage,
|
||||||
|
MessageKey,
|
||||||
|
Presence,
|
||||||
|
ProfilePicture,
|
||||||
|
ReadMessage,
|
||||||
|
UnreadChat,
|
||||||
|
UpdateMessage,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class ChatService:
|
class ChatService:
|
||||||
|
|||||||
@ -1,4 +1,13 @@
|
|||||||
from ..models.group import *
|
from ..models.group import (
|
||||||
|
CreateGroup,
|
||||||
|
GroupDescription,
|
||||||
|
GroupInvite,
|
||||||
|
GroupPicture,
|
||||||
|
GroupSubject,
|
||||||
|
ToggleEphemeral,
|
||||||
|
UpdateParticipant,
|
||||||
|
UpdateSetting,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class GroupService:
|
class GroupService:
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
from ..models.label import *
|
from ..models.label import HandleLabel
|
||||||
|
|
||||||
|
|
||||||
class LabelService:
|
class LabelService:
|
||||||
|
|||||||
@ -4,7 +4,22 @@ from typing import BinaryIO, Union
|
|||||||
import requests
|
import requests
|
||||||
from requests_toolbelt import MultipartEncoder
|
from requests_toolbelt import MultipartEncoder
|
||||||
|
|
||||||
from ..models.message import *
|
from ..models.message import (
|
||||||
|
Button,
|
||||||
|
ButtonMessage,
|
||||||
|
Contact,
|
||||||
|
ContactMessage,
|
||||||
|
ListMessage,
|
||||||
|
ListRow,
|
||||||
|
ListSection,
|
||||||
|
LocationMessage,
|
||||||
|
MediaMessage,
|
||||||
|
PollMessage,
|
||||||
|
QuotedMessage,
|
||||||
|
ReactionMessage,
|
||||||
|
StatusMessage,
|
||||||
|
TextMessage,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class MessageService:
|
class MessageService:
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
from ..models.profile import *
|
from ..models.profile import FetchProfile, PrivacySettings, ProfileName, ProfilePicture, ProfileStatus
|
||||||
|
|
||||||
|
|
||||||
class ProfileService:
|
class ProfileService:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user