Queer European MD passionate about IT
Przeglądaj źródła

Cannot use_stored if type(photo) is not str

Davte 6 lat temu
rodzic
commit
12a5537291
2 zmienionych plików z 3 dodań i 1 usunięć
  1. 1 1
      davtelepot/__init__.py
  2. 2 0
      davtelepot/custombot.py

+ 1 - 1
davtelepot/__init__.py

@@ -7,7 +7,7 @@ __author__ = "Davide Testa"
 __email__ = "davte@libero.it"
 __credits__ = "Marco Origlia"
 __license__ = "GNU General Public License v3.0"
-__version__ = "1.4.3"
+__version__ = "1.4.4"
 __maintainer__ = "Davide Testa"
 __contact__ = "t.me/davte"
 

+ 2 - 0
davtelepot/custombot.py

@@ -1489,6 +1489,8 @@ class Bot(telepot.aio.Bot, Gettable):
                         ) as photo_file:
                             buffered_picture.write(photo_file.read())
                         photo = buffered_picture.getvalue()
+        else:
+            use_stored = False
         caption = escape_html_chars(caption)
         if len(caption) > 199:
             new_caption = ''