Closed sidorov89 closed 5 years ago
To use it in a browser, copy the so file and configuration to the fpm configuration folder; anyway, I suggest you use the native client, instead: https://github.com/danog/MadelineProto
I can't use https://github.com/danog/MadelineProto because I want to register new telegram users. When a user signing up via a web site, his number is sometimes banned. If I register a new number through the application on the phone, the user is not banned. I want to try using tdlib to send headers and signs that the user is signing up through the application.
To use it in a browser, copy the so file and configuration to the fpm configuration folder; anyway, I suggest you use the native client, instead: https://github.com/danog/MadelineProto
It doesn't help me.
After that I have same error, nothing changed.
MadelineProto works exactly like tdlib, telegram cannot possibly detect that you are using client X instead of client Y. You will still get account bans if you sign up with tdlib. The only difference are the API ID parameters, that can be tweaked in both MadelineProto and tdlib to simulate an official client, if you need to do so. Anyway, if you need to create accounts for userbots, the best way to do so is recover deleted accounts through an email to recover@telegram.org: this will manually whitelist the number, which will allow you to signup again and use the account normally, through any API or client.
The only difference are the API ID parameters, that can be tweaked in both MadelineProto and tdlib to simulate an official client, if you need to do so.
How can I simulate the official telegram app? Perhaps this will help and there will be no blocking of accounts.
You can decompile the android app and extract the api id, api hash and app info parameters from it.
Hi. I type this code in index.php
var_dump($a = new \danog\MadelineProto\X\API('session.madelinex')); exit();
If I call index.php in command line I get object
object(danog\MadelineProto\X\API)#1
, but if I call it from browser I get error "Class 'danog\MadelineProto\X\API' not found".Can I use this library in browser? Can you show example with user login?