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

<AndroidTelePorter.androidsession.AndroidSession object at 0x000001F518A9F3D0> #23

Open
97taytrang opened this issue Feb 9, 2025 · 14 comments

Comments

@97taytrang
Copy link

<AndroidTelePorter.androidsession.AndroidSession object at 0x000001F518A9F3D0>

Can I ask what happened when I converted to tdata? When I used tdata to log in for the first time, it worked, but the second time my account died. Is there any way to fix it? Thank you

@batreller
Copy link
Owner

Hi, don't log into one session from 2 sources (for example don't long into same session from tdata and from android at the same time) and you should be fine

@97taytrang
Copy link
Author

Hi, don't log into one session from 2 sources (for example don't long into same session from tdata and from android at the same time) and you should be fine

Thank you. But I don't log it at the same time. Luckily after reinstalling the library everything was stable.

But let me ask, is there any way to transfer tdata if the device is a PC? We hope you will reply

@batreller
Copy link
Owner

What do you mean by "transfer tdata"?

@97taytrang
Copy link
Author

Convert the tdata that the device displays to PC, not Android

Is there any way, bro?

@batreller
Copy link
Owner

I have no idea what you asking for. tdata is PC session format on windows, what does "tdata that the device displays" mean? What device?

@97taytrang
Copy link
Author

sorry bro. I mean want to create 2 separate versions.

  • 1 is Android
  • 2 is PC

@batreller
Copy link
Owner

If you want to have 2 separate sessions you can just create another session by entering phone number and code, this way you will have second session, is that what you need?

@97taytrang
Copy link
Author

If you want to have 2 separate sessions you can just create another session by entering phone number and code, this way you will have second session, is that what you need?

thank you. but when i have a little question. when i transfer tgnet -> tdata

  • open on pc 1 it's great

  • same file to pc 2 then after 10 minutes my account is banned

(don't open 1 file on 2 files at the same time)

is there any way to fix it. i have trouble with it when reinstalling windows

@batreller
Copy link
Owner

it's just telegram's protection against bots and things like that, they are fighting this things, I am not sure if it's possible to bypass, because you pass your device info every time you connect to session and if you have 2 devices for 1 session of course they will suspect you. Usually this problem is caused by bad quality of account, it's either new or was used for spamming or sometimes like that

@97taytrang
Copy link
Author

it's just telegram's protection against bots and things like that, they are fighting this things, I am not sure if it's possible to bypass, because you pass your device info every time you connect to session and if you have 2 devices for 1 session of course they will suspect you. Usually this problem is caused by bad quality of account, it's either new or was used for spamming or sometimes like that

i tried to create tdata with the official version of telegram.exe

It switches between pc 1 and pc 2 without any problem.

so is there any way to get the login code from tgnet. or create a new device like opentele library?

@batreller
Copy link
Owner

well maybe switching tdata is less suspicious for telegram because of portable telegram where you can just send files to someone and they will contain session, but in case of android session there is no easy way to extract the session for regular user.

If you want to extract code yes of course you can do that and it will be much more reliable way of transferring session, but to do it you need to actually understand what is transmitted by telegram, you can use telethon or pyrogram for this type of tasks, but keep in mind that you would need to copy all device info and all packets sent right.

@97taytrang
Copy link
Author

well maybe switching tdata is less suspicious for telegram because of portable telegram where you can just send files to someone and they will contain session, but in case of android session there is no easy way to extract the session for regular user.

If you want to extract code yes of course you can do that and it will be much more reliable way of transferring session, but to do it you need to actually understand what is transmitted by telegram, you can use telethon or pyrogram for this type of tasks, but keep in mind that you would need to copy all device info and all packets sent right.

i used telethon or pyrogram but when i login and account after 5-10 minutes the account is still locked. do you have the login code, can you please give it to me to test.

and i see tdata from tgnet created in D877F783D5D3EF8C there is no configs file is that the difference between creating tdata from tgnet and Telegram.exe ?

@batreller
Copy link
Owner

Your account is locked when you use it via telethon/pyrogram because you do not copy your behaviour right, telegram can see that you are not using actual phone.

You need to deeply inspect what packets (tdlib objects) telegram on android sends and copy all of them in order to copy behaviour of actual android's phone.

What you are trying to do is a bot that looks like actual user for Telegram's servers, and the issue you face is Telegram's protection against bots like this.

@97taytrang
Copy link
Author

Your account is locked when you use it via telethon/pyrogram because you do not copy your behaviour right, telegram can see that you are not using actual phone.

You need to deeply inspect what packets (tdlib objects) telegram on android sends and copy all of them in order to copy behaviour of actual android's phone.

What you are trying to do is a bot that looks like actual user for Telegram's servers, and the issue you face is Telegram's protection against bots like this.

thank you very much. thanks to you i found out how to login.

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

2 participants