From a815f26aa6c0dd59b0040f68195a2ebfc779bdb6 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 24 Jul 2018 19:29:34 +0200 Subject: [PATCH] derp --- telegrambot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegrambot.py b/telegrambot.py index a281a498..bac395d9 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -508,7 +508,7 @@ def cmd_newevent(bot: Bot, update: Update): "[descrizione]```") return try: - name, description = name_desc.split("\n", 2) + name, description = name_desc.split("\n", 1) except IndexError: name = name_desc description = None