matrix-reportbot/callbacks/sync.py

6 lines
209 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
bot.sync_token = SYNC_TOKEN