From 8ce1c99a3fb93ed47e57b4851772bfa865653442 Mon Sep 17 00:00:00 2001 From: blank X Date: Thu, 17 Sep 2020 09:44:24 +0700 Subject: [PATCH] Remove the usage of zero-width space --- redditbot.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/redditbot.py b/redditbot.py index 7ffd7d7..a6534a7 100644 --- a/redditbot.py +++ b/redditbot.py @@ -50,7 +50,6 @@ bot_admins = config_data['config']['bot_admins'] logging.basicConfig(level=logging.INFO) async def main(): - zws = '\u200b' _added_chats = [] client = await TelegramClient('redditbot', tg_api_id, tg_api_hash).start(bot_token=bot_token) client.parse_mode = 'html' @@ -372,8 +371,6 @@ async def main(): pimg = urlunparse(urlparse(pimg, 'https')) await _download_file(filename, pimg) files.append(filename) - else: - tat = f'{zws}{tat}' if pdesc: caplength = 1023 if pimg else 4095 caplength -= len(client.parse_mode.parse(tat)[0])