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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-zatolox-bot
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: SDK ufficiale per costruire bot su Zatolox
5
5
  Home-page: https://github.com/zatolox/python-zatolox-bot
6
6
  Author: Zatolox
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-zatolox-bot
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: SDK ufficiale per costruire bot su Zatolox
5
5
  Home-page: https://github.com/zatolox/python-zatolox-bot
6
6
  Author: Zatolox
@@ -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.2",
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. "
@@ -3,5 +3,5 @@
3
3
  from .bot import ZatoloxBot, ZatoloxApiError
4
4
  from .types import User, Message, CallbackQuery, Update
5
5
 
6
- __version__ = "0.1.2"
6
+ __version__ = "0.1.3"
7
7
  __all__ = ["ZatoloxBot", "ZatoloxApiError", "User", "Message", "CallbackQuery", "Update"]
@@ -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