From 085f47325744c265d495f37f21b983004b73786e Mon Sep 17 00:00:00 2001 From: Davte Date: Sun, 25 Nov 2018 01:09:47 +0100 Subject: [PATCH] 'string' != string Log message edited --- davtelepot/__init__.py | 2 +- davtelepot/custombot.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index c371af1..96dc216 100644 --- a/davtelepot/__init__.py +++ b/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.13" +__version__ = "1.4.14" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/davtelepot/custombot.py b/davtelepot/custombot.py index f33bf38..fe7c646 100644 --- a/davtelepot/custombot.py +++ b/davtelepot/custombot.py @@ -1644,7 +1644,7 @@ class Bot(telepot.aio.Bot, Gettable): type(update) is not dict or 'chat' not in update or 'id' not in update['chat'] - or message_id not in update + or 'message_id' not in update ): raise Exception("Wrong parameters, cannot forward.") from_chat_id = update['chat']['id'] @@ -1660,7 +1660,7 @@ class Bot(telepot.aio.Bot, Gettable): raise Exception("Forwarding failed.") except Exception as e: logging.error( - "Error sending photo\n{}".format( + "Error forwarding message:\n{}".format( e ), exc_info=False # Set exc_info=True for more information