Rotkiv
Rotkiv

Reputation: 1143

How can I check if telegram session is currently in use?

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

Upvotes: 0

Views: 1100

Answers (2)

Sakty
Sakty

Reputation: 26

I think you can use this to get active session:

GetAuthorizationsRequest()

Upvotes: 1

scam_man
scam_man

Reputation: 1

You can make some request, if session down, you will get exception

Upvotes: 0

Related Questions