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)
|
logging.basicConfig(level=logging.INFO)
|
||||||
async def main():
|
async def main():
|
||||||
zws = '\u200b'
|
|
||||||
_added_chats = []
|
_added_chats = []
|
||||||
client = await TelegramClient('redditbot', tg_api_id, tg_api_hash).start(bot_token=bot_token)
|
client = await TelegramClient('redditbot', tg_api_id, tg_api_hash).start(bot_token=bot_token)
|
||||||
client.parse_mode = 'html'
|
client.parse_mode = 'html'
|
||||||
|
@ -372,8 +371,6 @@ async def main():
|
||||||
pimg = urlunparse(urlparse(pimg, 'https'))
|
pimg = urlunparse(urlparse(pimg, 'https'))
|
||||||
await _download_file(filename, pimg)
|
await _download_file(filename, pimg)
|
||||||
files.append(filename)
|
files.append(filename)
|
||||||
else:
|
|
||||||
tat = f'<a href="{url}">{zws}</a>{tat}'
|
|
||||||
if pdesc:
|
if pdesc:
|
||||||
caplength = 1023 if pimg else 4095
|
caplength = 1023 if pimg else 4095
|
||||||
caplength -= len(client.parse_mode.parse(tat)[0])
|
caplength -= len(client.parse_mode.parse(tat)[0])
|
||||||
|
|
Loading…
Reference in New Issue