Compare commits

..

No commits in common. "ce12028aa204031ab0fa4715117760315d833936" and "aabc6d142ffb2af09ddca865b72bed122405b979" have entirely different histories.

2 changed files with 8 additions and 8 deletions

View File

@ -22,14 +22,13 @@ async def main():
text = log_ring.popleft()
except IndexError:
pass
else:
while True:
try:
await slave.send_message(config['config']['log_chat'], text, disable_web_page_preview=True)
except FloodWait as ex:
await asyncio.sleep(ex.x + 1)
else:
break
while True:
try:
await slave.send_message(config['config']['log_chat'], text, disable_web_page_preview=True)
except FloodWait as ex:
await asyncio.sleep(ex.x + 1)
else:
break
asyncio.create_task(log_ring_worker())
await asyncio.gather(*(_start_app(app) for app in apps), slave.start())
await idle()

View File

@ -93,3 +93,4 @@ async def log_reports(client, message):
text += f'</a></b> {html.escape(mtext.strip()[:1000])}'
log_ring.append(text)
reported[message.chat.id].add(message.message_id)
reported[reply.chat.id].add(reply.message_id)