Remove the usage of zero-width space

This commit is contained in:
blank X 2020-09-17 09:44:24 +07:00
parent baefd09f65
commit 8ce1c99a3f
1 changed files with 0 additions and 3 deletions

View File

@ -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'<a href="{url}">{zws}</a>{tat}'
if pdesc:
caplength = 1023 if pimg else 4095
caplength -= len(client.parse_mode.parse(tat)[0])