mautrix / instagram

A Matrix-Instagram DM puppeting bridge
https://matrix.to/#/#instagram:maunium.net
GNU Affero General Public License v3.0
144 stars 28 forks source link

How to restore saved state? #130

Closed rvaidun closed 1 year ago

rvaidun commented 1 year ago

Hi, I recently ran this script https://github.com/mautrix/instagram/blob/master/mauigpapi/scripts/iglogin.py and was able to get the state in JSON.

How do I use this state on subsequent requests so I don't have to re login?

tulir commented 1 year ago

Using the login command in the bridge does the same thing, you don't need to save anything manually

rvaidun commented 1 year ago

I don't have a bridge setup and I'm trying to create a simple script instead of using matrix and a bridge. Possible to use mauigpapi seperately as a standalone script?

tulir commented 1 year ago

Using it for anything else is not supported. It's technically possible, but you'll have to figure out how it works yourself by reading the code