Comments (21)
Yes.
MadelineProto generates both the temporary and the permanent authorization key, but does not bind them to each other.
from madelineproto.
As I said, this is a WIP.
It cannot be used in production yet, I suggest you help me close all of the other issues, that would really help me bring this library to a working state faster :D
from madelineproto.
Done.
from madelineproto.
Currently, requests cannot be made reliably because I haven't finished writing the response handler module yet, and I also have to implement some changes in the API class.
But, it should be as easy as creating an instance of the API class, and calling it like this:
$API->session->method_call("function.name", ["params"]);
from madelineproto.
Thank you. I will try.
from madelineproto.
I tried to auth.sendCode
var_dump($MadelineProto->session->method_call('auth.sendCode', [
'phone_number'=>'*********',
'sms_type'=>0,
'api_id'=>$config['app_info']['api_id'],
'api_hash'=>$config['app_info']['api_hash'],
'lang_code'=>'en'
]));
But I got the following error
...
'result' => array ( '_' => 'rpc_error', 'error_code' => 401, 'error_message' => 'AUTH_KEY_PERM_EMPTY', )
...
I check here: https://core.telegram.org/api/errors
AUTH_KEY_PERM_EMPTY: The method is unavailble for temporary authorization key, not bound to permanent
Do you know where is the problem?
from madelineproto.
Ok i will help to close other issues ;)
from madelineproto.
:D
from madelineproto.
The source code is very complicated
I barely understand the structure of the source code :(
You have to write documentation for develop this source code
from madelineproto.
Yeah, you're right, MadelineProto is pretty complex.
I'll whip something up.
from madelineproto.
It's so awesome ;)
from madelineproto.
@2012mjm Ikr xd
from madelineproto.
Weird. https://github.com/zhukov/webogram/blob/82aec7a6daea93631b9eb14a89248d2b9580a906/app/js/lib/mtproto.js does not contain the default datacenter ip address that was given to me by my.telegram.org (149.154.167.50).
from madelineproto.
hi. webogram uses port :80. in my.telegram.org :443. and webogram does not use the MTProto, I think.
from madelineproto.
@7vasko Webogram uses mtproto.
from madelineproto.
@7vasko Mtproto servers can be accessed using http (on port 80), tcp (on port 443) or udp (?).
from madelineproto.
@danog Webogram accesses the mtproto servers using also https on port 443 of the pluto, flora, etc domain names.
from madelineproto.
exactly. you're right. I made a mistake.
from madelineproto.
Welp, binding of authorization keys is fixed
from madelineproto.
Hey guys! How to fix AUTH_KEY_PERM_EMPTY on php? Two days ago my project is break - I try register a new app has a new id and hash - did not help, it is still not working. Did you have any idea why madelin stop work and not autorize.
from madelineproto.
Fixed
from madelineproto.
Related Issues (20)
- Sometimes have auth error HOT 3
- Graceful Shutdown of MadelineProto Event Handler via Symfony Command HOT 1
- Memory leaks in handling updates loop HOT 5
- Sending a message to the chat topic does not work HOT 1
- $message->read() return type issue HOT 1
- missing feature sendMediaGroup itβs very important but not available HOT 1
- Class Naming Mismatch in `danog\MadelineProto\EventHandler\Pinned` HOT 1
- upload mp4 to group, something error HOT 6
- inputMediaUploadedVideo is not available for sendMultiMedia HOT 1
- getHistory generate exception MSG_ID_INVALID HOT 1
- messages.gethistory and messages.search return no messages HOT 1
- Return Type In Read Method From Mesage Object HOT 1
- I've this error when i try to use InviteToChannel function HOT 2
- Not working with stable amphp v2 version HOT 2
- getFullInfo() error HOT 2
- How to avoid "This peer is not present in the internal peer database" HOT 1
- This block breaks integration with Symfony HOT 2
- How filter incoming messages: all messages without Scheduled HOT 2
- RPC error with getFullInfo() HOT 2
- getPropicInfo() returns NULL HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from madelineproto.