python-zatolox-bot 0.1.2__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_zatolox_bot-0.1.2 → python_zatolox_bot-0.1.3}/PKG-INFO +1 -1
- {python_zatolox_bot-0.1.2 → python_zatolox_bot-0.1.3}/python_zatolox_bot.egg-info/PKG-INFO +1 -1
- {python_zatolox_bot-0.1.2 → python_zatolox_bot-0.1.3}/setup.py +1 -1
- {python_zatolox_bot-0.1.2 → python_zatolox_bot-0.1.3}/zatolox/__init__.py +1 -1
- {python_zatolox_bot-0.1.2 → python_zatolox_bot-0.1.3}/zatolox/types.py +4 -0
- {python_zatolox_bot-0.1.2 → python_zatolox_bot-0.1.3}/python_zatolox_bot.egg-info/SOURCES.txt +0 -0
- {python_zatolox_bot-0.1.2 → python_zatolox_bot-0.1.3}/python_zatolox_bot.egg-info/dependency_links.txt +0 -0
- {python_zatolox_bot-0.1.2 → python_zatolox_bot-0.1.3}/python_zatolox_bot.egg-info/requires.txt +0 -0
- {python_zatolox_bot-0.1.2 → python_zatolox_bot-0.1.3}/python_zatolox_bot.egg-info/top_level.txt +0 -0
- {python_zatolox_bot-0.1.2 → python_zatolox_bot-0.1.3}/setup.cfg +0 -0
- {python_zatolox_bot-0.1.2 → python_zatolox_bot-0.1.3}/zatolox/bot.py +0 -0
|
@@ -5,7 +5,7 @@ from setuptools import setup, find_packages
|
|
|
5
5
|
# sono, meno se ne rompono.
|
|
6
6
|
setup(
|
|
7
7
|
name="python-zatolox-bot",
|
|
8
|
-
version="0.1.
|
|
8
|
+
version="0.1.3",
|
|
9
9
|
description="SDK ufficiale per costruire bot su Zatolox",
|
|
10
10
|
long_description=(
|
|
11
11
|
"Wrapper leggero attorno al gateway HTTP dei bot di Zatolox. "
|
|
@@ -38,6 +38,9 @@ class Message:
|
|
|
38
38
|
type: str = "TEXT"
|
|
39
39
|
date: Optional[int] = None
|
|
40
40
|
from_user: Optional[User] = None
|
|
41
|
+
# URL del media per foto/file (type IMAGE/FILE/...); None per il testo. Serve, p.es., a un bot
|
|
42
|
+
# che accetta un'immagine e la usa come avatar.
|
|
43
|
+
media_url: Optional[str] = None
|
|
41
44
|
|
|
42
45
|
@classmethod
|
|
43
46
|
def from_dict(cls, d: Optional[Dict[str, Any]]) -> Optional["Message"]:
|
|
@@ -50,6 +53,7 @@ class Message:
|
|
|
50
53
|
type=d.get("type", "TEXT"),
|
|
51
54
|
date=d.get("date"),
|
|
52
55
|
from_user=User.from_dict(d.get("from")),
|
|
56
|
+
media_url=d.get("media_url"),
|
|
53
57
|
)
|
|
54
58
|
|
|
55
59
|
@property
|
{python_zatolox_bot-0.1.2 → python_zatolox_bot-0.1.3}/python_zatolox_bot.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_zatolox_bot-0.1.2 → python_zatolox_bot-0.1.3}/python_zatolox_bot.egg-info/requires.txt
RENAMED
|
File without changes
|
{python_zatolox_bot-0.1.2 → python_zatolox_bot-0.1.3}/python_zatolox_bot.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|