matrix-reportbot/callbacks/sync.py

8 lines
249 B
Python
Raw Normal View History

async def sync_callback(response, bot):
bot.logger.log(
f"Sync response received (next batch: {response.next_batch})", "debug")
SYNC_TOKEN = response.next_batch
2023-05-01 15:04:01 +00:00
bot.sync_token = SYNC_TOKEN
await bot.accept_pending_invites()