Remove the usage of zero-width space
This commit is contained in:
parent
baefd09f65
commit
8ce1c99a3f
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue