Queer European MD passionate about IT
Browse Source

'string' != string
Log message edited

Davte 6 years ago
parent
commit
085f473257
2 changed files with 3 additions and 3 deletions
  1. 1 1
      davtelepot/__init__.py
  2. 2 2
      davtelepot/custombot.py

+ 1 - 1
davtelepot/__init__.py

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

+ 2 - 2
davtelepot/custombot.py

@@ -1644,7 +1644,7 @@ class Bot(telepot.aio.Bot, Gettable):
                     type(update) is not dict
                     type(update) is not dict
                     or 'chat' not in update
                     or 'chat' not in update
                     or 'id' not in update['chat']
                     or 'id' not in update['chat']
-                    or message_id not in update
+                    or 'message_id' not in update
                 ):
                 ):
                     raise Exception("Wrong parameters, cannot forward.")
                     raise Exception("Wrong parameters, cannot forward.")
                 from_chat_id = update['chat']['id']
                 from_chat_id = update['chat']['id']
@@ -1660,7 +1660,7 @@ class Bot(telepot.aio.Bot, Gettable):
                 raise Exception("Forwarding failed.")
                 raise Exception("Forwarding failed.")
         except Exception as e:
         except Exception as e:
             logging.error(
             logging.error(
-                "Error sending photo\n{}".format(
+                "Error forwarding message:\n{}".format(
                     e
                     e
                 ),
                 ),
                 exc_info=False  # Set exc_info=True for more information
                 exc_info=False  # Set exc_info=True for more information