Fix bug with caplength, I should get a dev branch

This commit is contained in:
blank X 2020-09-04 15:45:54 +07:00
parent 3fe4b3b9ba
commit c482c1d857
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ async def main():
else:
if getattr(random_post, 'selftext', None):
text += '\n'
caplength = 4096 - len(client.parse_mode.parse(text)[0])
caplength = 4095 - len(client.parse_mode.parse(text)[0])
text += html.escape(random_post.selftext[:caplength])
await _start_broadcast([text], None, chats)