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
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
I think you can use this to get active session:
You can make some request, if session down, you will get exception