Giter VIP home page Giter VIP logo

Comments (21)

danog avatar danog commented on May 17, 2024 1

Yes.
MadelineProto generates both the temporary and the permanent authorization key, but does not bind them to each other.

from madelineproto.

danog avatar danog commented on May 17, 2024 1

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.

danog avatar danog commented on May 17, 2024 1

Done.

from madelineproto.

danog avatar danog commented on May 17, 2024

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.

7vasko avatar 7vasko commented on May 17, 2024

Thank you. I will try.

from madelineproto.

2012mjm avatar 2012mjm commented on May 17, 2024

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.

2012mjm avatar 2012mjm commented on May 17, 2024

Ok i will help to close other issues ;)

from madelineproto.

danog avatar danog commented on May 17, 2024

:D

from madelineproto.

2012mjm avatar 2012mjm commented on May 17, 2024

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.

danog avatar danog commented on May 17, 2024

Yeah, you're right, MadelineProto is pretty complex.
I'll whip something up.

from madelineproto.

2012mjm avatar 2012mjm commented on May 17, 2024

It's so awesome ;)

from madelineproto.

danog avatar danog commented on May 17, 2024

@2012mjm Ikr xd

from madelineproto.

danog avatar danog commented on May 17, 2024

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.

7vasko avatar 7vasko commented on May 17, 2024

hi. webogram uses port :80. in my.telegram.org :443. and webogram does not use the MTProto, I think.

from madelineproto.

danog avatar danog commented on May 17, 2024

@7vasko Webogram uses mtproto.

from madelineproto.

danog avatar danog commented on May 17, 2024

@7vasko Mtproto servers can be accessed using http (on port 80), tcp (on port 443) or udp (?).

from madelineproto.

danog avatar danog commented on May 17, 2024

@danog Webogram accesses the mtproto servers using also https on port 443 of the pluto, flora, etc domain names.

from madelineproto.

7vasko avatar 7vasko commented on May 17, 2024

exactly. you're right. I made a mistake.

from madelineproto.

danog avatar danog commented on May 17, 2024

Welp, binding of authorization keys is fixed

from madelineproto.

androidformax avatar androidformax commented on May 17, 2024

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.

danog avatar danog commented on May 17, 2024

Fixed

from madelineproto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.