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
Problem in connecting to telegram api #33
Comments
$MadelineProto->update_settings($settings); is absolutely unnecessary |
Thanks. First of all, When I run
I just copied the first part of this file and added the number manually:
That gives me the result that I mentioned in the end part of my question. Any idea? |
That is normal, you're supposed to create them manually and insert the $number (number.php), the bot $token (token.php) or some additional $settings (web_data.php). To solve the problems you mentioned, try with the latest version, please. |
I just downloaded the repo about a few days ago. I think I have some problems for running this library. Is there any kind of simplest code for this library just for getting started? (For example, setting a |
Please download the latest version, it has lots of bugfixes. The code you sent is correct. testing.php is the simplest code available, and does exactly what you described. |
I did it, but no difference. Again the same problem :( This time I tested this code:
Again, It's just printing these:
|
Refer to #36 pls |
@danog Still no way :( |
Gr8, but that is not a fix, it's a workaround. |
@danog Ohaiy |
@anupritaisno1 How are you? |
@danog just please, create initial examples of them (config.php and token.php ), that will save our hours... |
No. You're supposed to use your brain. |
Hi there. After struggling for some days, still I can not connect to telegram.
I installed dependencies by composer. Running the main
index.php
in the project, give me this error:{"ok":false,"error_code":404,"error_description":"Invalid token provided"}
I read the docs and changed the codes:
$settings
is the array that provided in the docs. I just changed api_id and api_hash to my own.The result is this and nothing happened:
Any idea?
The text was updated successfully, but these errors were encountered: