Fix bug with caplength, I should get a dev branch
This commit is contained in:
parent
3fe4b3b9ba
commit
c482c1d857
|
@ -253,7 +253,7 @@ async def main():
|
||||||
else:
|
else:
|
||||||
if getattr(random_post, 'selftext', None):
|
if getattr(random_post, 'selftext', None):
|
||||||
text += '\n'
|
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])
|
text += html.escape(random_post.selftext[:caplength])
|
||||||
await _start_broadcast([text], None, chats)
|
await _start_broadcast([text], None, chats)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue