mirror of
https://github.com/EvolutionAPI/evolution-client-python.git
synced 2025-07-13 15:14:48 -06:00
version: 0.0.7
This commit is contained in:
parent
69112cd4c4
commit
f14781cdb6
@ -66,4 +66,17 @@ class ChatService:
|
|||||||
f'chat/sendPresence/{instance_id}',
|
f'chat/sendPresence/{instance_id}',
|
||||||
data=data.__dict__,
|
data=data.__dict__,
|
||||||
instance_token=instance_token
|
instance_token=instance_token
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def get_messages(self, instance_id: str, remote_jid: str, instance_token: str, page: int = 1, offset: int = 50):
|
||||||
|
'''Get messages from a chat'''
|
||||||
|
payload = {
|
||||||
|
"where": {"key": {"remoteJid": remote_jid}},
|
||||||
|
"page": page,
|
||||||
|
"offset": offset,
|
||||||
|
}
|
||||||
|
return self.client.post(
|
||||||
|
f'chat/findMessages/{instance_id}',
|
||||||
|
data=payload,
|
||||||
|
instance_token=instance_token,
|
||||||
|
)
|
||||||
|
BIN
dist/evolutionapi-0.0.6.tar.gz
vendored
BIN
dist/evolutionapi-0.0.6.tar.gz
vendored
Binary file not shown.
Binary file not shown.
BIN
dist/evolutionapi-0.0.7.tar.gz
vendored
Normal file
BIN
dist/evolutionapi-0.0.7.tar.gz
vendored
Normal file
Binary file not shown.
9
evolutionapi.egg-info/PKG-INFO
Normal file
9
evolutionapi.egg-info/PKG-INFO
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Metadata-Version: 2.1
|
||||||
|
Name: evolutionapi
|
||||||
|
Version: 0.0.7
|
||||||
|
Summary: Client Python para a API Evolution
|
||||||
|
Author: Davidson Gomes
|
||||||
|
Author-email: contato@agenciadgcode.com
|
||||||
|
Requires-Python: >=3.6
|
||||||
|
Requires-Dist: requests>=2.25.1
|
||||||
|
Requires-Dist: requests_toolbelt>=1.0.0
|
28
evolutionapi.egg-info/SOURCES.txt
Normal file
28
evolutionapi.egg-info/SOURCES.txt
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
README.md
|
||||||
|
setup.py
|
||||||
|
evolutionapi/__init__.py
|
||||||
|
evolutionapi/client.py
|
||||||
|
evolutionapi/exceptions.py
|
||||||
|
evolutionapi.egg-info/PKG-INFO
|
||||||
|
evolutionapi.egg-info/SOURCES.txt
|
||||||
|
evolutionapi.egg-info/dependency_links.txt
|
||||||
|
evolutionapi.egg-info/requires.txt
|
||||||
|
evolutionapi.egg-info/top_level.txt
|
||||||
|
evolutionapi/models/__init__.py
|
||||||
|
evolutionapi/models/call.py
|
||||||
|
evolutionapi/models/chat.py
|
||||||
|
evolutionapi/models/group.py
|
||||||
|
evolutionapi/models/instance.py
|
||||||
|
evolutionapi/models/label.py
|
||||||
|
evolutionapi/models/message.py
|
||||||
|
evolutionapi/models/presence.py
|
||||||
|
evolutionapi/models/profile.py
|
||||||
|
evolutionapi/services/__init__.py
|
||||||
|
evolutionapi/services/call.py
|
||||||
|
evolutionapi/services/chat.py
|
||||||
|
evolutionapi/services/group.py
|
||||||
|
evolutionapi/services/instance.py
|
||||||
|
evolutionapi/services/instance_operations.py
|
||||||
|
evolutionapi/services/label.py
|
||||||
|
evolutionapi/services/message.py
|
||||||
|
evolutionapi/services/profile.py
|
1
evolutionapi.egg-info/dependency_links.txt
Normal file
1
evolutionapi.egg-info/dependency_links.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
2
evolutionapi.egg-info/requires.txt
Normal file
2
evolutionapi.egg-info/requires.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
requests>=2.25.1
|
||||||
|
requests_toolbelt>=1.0.0
|
1
evolutionapi.egg-info/top_level.txt
Normal file
1
evolutionapi.egg-info/top_level.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
evolutionapi
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='evolutionapi',
|
name='evolutionapi',
|
||||||
version='0.0.6',
|
version='0.0.7',
|
||||||
description='Client Python para a API Evolution',
|
description='Client Python para a API Evolution',
|
||||||
author='Davidson Gomes',
|
author='Davidson Gomes',
|
||||||
author_email='contato@agenciadgcode.com',
|
author_email='contato@agenciadgcode.com',
|
||||||
|
Loading…
Reference in New Issue
Block a user