Show selftext in posts
This commit is contained in:
parent
672732670d
commit
3fe4b3b9ba
|
@ -251,6 +251,10 @@ async def main():
|
|||
files[a] = i + ext
|
||||
await _start_broadcast(captions, files, chats)
|
||||
else:
|
||||
if getattr(random_post, 'selftext', None):
|
||||
text += '\n'
|
||||
caplength = 4096 - len(client.parse_mode.parse(text)[0])
|
||||
text += html.escape(random_post.selftext[:caplength])
|
||||
await _start_broadcast([text], None, chats)
|
||||
|
||||
def register(pattern):
|
||||
|
|
Loading…
Reference in New Issue