Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logged out on all devices after adding a user #36

Open
rufus20145 opened this issue Jul 7, 2023 · 4 comments
Open

Logged out on all devices after adding a user #36

rufus20145 opened this issue Jul 7, 2023 · 4 comments

Comments

@rufus20145
Copy link

Main idea is in title. Installed telethon, cloned repo, created application and bot, ran python spy.py with my python 3.11, sent 'add' command to bot, but got logged out on all my devices instead of something other.

@CrocoUser
Copy link

try client = TelegramClient('current-session', API_ID, API_HASH, system_version="4.16.30-vxCUSTOM")

@a-poluyanov
Copy link

I experienced the same problem when I was debugging locally, everything worked well, but when I moved this code to the cloud on another server, when I started it, I was immediately thrown offline. I got scared and thought that I could have been hacked, what was it and why did it happen?

@NekoNya333
Copy link

NekoNya333 commented Jan 15, 2024

I experienced the same problem when I was debugging locally, everything worked well, but when I moved this code to the cloud on another server, when I started it, I was immediately thrown offline. I got scared and thought that I could have been hacked, what was it and why did it happen?

@a-poluyanov, (i'm russian) it's because spammer using telethon, Telegram's servers learned to detect spammers and block all session and (in some situations) block account for 24 hours. Try to use:

try client = TelegramClient('current-session', API_ID, API_HASH, system_version="4.16.30-vxCUSTOM")

Where bold "CUSTOM", name of "custom system version". For example: system_version="4.16.30-vxNekoNya")

@NekoNya333
Copy link

I experienced the same problem when I was debugging locally, everything worked well, but when I moved this code to the cloud on another server, when I started it, I was immediately thrown offline. I got scared and thought that I could have been hacked, what was it and why did it happen?

i was scared too when i'm logout from all my devices. if you have more information - tell me here please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants