skip to Main Content

Is there a way to check if session is in use?

I want to make sure that I do not use a session if it is already in use on a different IP address.

I am currently using telethon-session-sqlalchemy

2

Answers


  1. I think you can use this to get active session:

    GetAuthorizationsRequest()
    
    Login or Signup to reply.
  2. You can make some request, if session down, you will get exception

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search