From 14b57586669ac68b354d69563df34bcff8d76438 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 30 Nov 2024 09:27:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE=D1=8F=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=B4=D0=B2=D0=BE=D0=B9=D0=BD=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=B7=D0=BD=D0=B0=D0=BA=D0=B0=20=D0=BC=D0=B8=D0=BD?= =?UTF-8?q?=D1=83=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tg.py b/tg.py index d294da0..2078362 100644 --- a/tg.py +++ b/tg.py @@ -189,6 +189,8 @@ def pay(message): bot.reply_to(message, '/pay ник количество') def format_sign(number): + if '-' in str(number): + return f"{number}" if number > 0: return f"+{number}" elif number == 0: