Forichok / TelegramOnlineSpy

Simple telegram online spy logger bot
Mozilla Public License 2.0
374 stars 81 forks source link

Logged out on all devices after adding a user #36

Open rufus20145 opened 1 year ago

rufus20145 commented 1 year ago

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.

DUBINCA commented 1 year ago

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

a-poluyanov commented 10 months ago

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 commented 7 months ago

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 commented 7 months ago

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