anoadragon453 / nio-template

A template for creating matrix bots in python with matrix-nio
Apache License 2.0
79 stars 27 forks source link

Enable logging in using an access token #21

Closed jaywink closed 3 years ago

jaywink commented 3 years ago

We do a client.load_store() to restore a previous session.

If both token and password are defined, token is preferred, since it wont create a new device for the bot. One or the other needs to be defined.

Requires https://github.com/anoadragon453/nio-template/pull/20 for the configuration change since password and access token must both be optional (but one must be given).