From 887df13b2eb9dd168f664138fd15ddd3d27b495d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 4 Dec 2018 10:38:00 +0000 Subject: [PATCH] Remove now useless error --- telegrambot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/telegrambot.py b/telegrambot.py index 1ef3e81e..9cf877f1 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -199,8 +199,7 @@ def cmd_diario(bot: Bot, update: Update): saver = author except IndexError: if update.message.reply_to_message is None: - bot.send_message(update.message.chat.id, f"⚠ Non hai specificato cosa aggiungere al diario! Puoi rispondere `/diario@royalgamesbot` al messaggio che vuoi salvare nel diario oppure scrivere `/diario@royalgamesbot ` per aggiungere quel messaggio nel diario.\n" - f"Se l'hai fatto, e continua a comparire questo errore, allora Telegram è stupido e non mi vuole far vedere il messaggio a cui hai risposto.", parse_mode="Markdown") + bot.send_message(update.message.chat.id, f"⚠ Non hai specificato cosa aggiungere al diario! Puoi rispondere `/diario@royalgamesbot` al messaggio che vuoi salvare nel diario oppure scrivere `/diario@royalgamesbot ` per aggiungere quel messaggio nel diario.", parse_mode="Markdown") return text = update.message.reply_to_message.text author = session.query(db.Telegram).filter_by(telegram_id=update.message.reply_to_message.from_user.id).one_or_none()