alik0211 / mtproto-core

Telegram API JS (MTProto) client library for Node.js and browser
https://mtproto-core.js.org
GNU General Public License v3.0
625 stars 111 forks source link

When 140, 141, 142, 143, 144, 145 schema? #272

Open VityaSchel opened 1 year ago

VityaSchel commented 1 year ago

Let me list missing features:

VityaSchel commented 1 year ago

@alik0211

VityaSchel commented 1 year ago

Dirty fix with changing layer value in src/rpc/index.js:592 doesn't work 😢

Not found predicate with id: 589653676
Not found predicate with id: 3299998783
Not found predicate with id: 0
Not found predicate with id: 2822439974
Not found predicate with id: 63
Not found predicate with id: 0
Not found predicate with id: 2548612798
Not found predicate with id: 2198575844
Not found predicate with id: 1717920775
Not found predicate with id: 1953264993
Not found predicate with id: 1717920775
Not found predicate with id: 1953264993
Not found predicate with id: 2198575844
Not found predicate with id: 1717920775
Not found predicate with id: 1953264993
Not found predicate with id: 1717920775
Not found predicate with id: 1953264993
Not found predicate with id: 0
Not found predicate with id: 1570352622
Not found predicate with id: 33555575
Not found predicate with id: 1619091339
Not found predicate with id: 0
Not found predicate with id: 3957391415
Not found predicate with id: 3777088770
Not found predicate with id: 3500003342
Not found predicate with id: 3501904056
Not found predicate with id: 3501969598
Not found predicate with id: 12177584
Not found predicate with id: 3500331026
Not found predicate with id: 3498103221
Not found predicate with id: 3498693045
Not found predicate with id: 3502100661
Not found predicate with id: 12505274
Not found predicate with id: 909719307
Not found predicate with id: 959984949
Not found predicate with id: 926036793
alexsanderluisdev commented 1 year ago

I also urgently need this update

alexsanderluisdev commented 1 year ago

@alik0211

Lucienest commented 1 year ago

@alik0211 are u alive or dead? why not respond??

ngrushet commented 3 weeks ago

So hello guys who came here, you're the top 0.1% of coders

I got the solution for that problem you can manually produce. How to update @mtproto-core library to last Telegram api version (called Layer with any number)

  1. Create folder @mtproto/core/scheme
  2. Create files at @mtproto/core/scheme/ named api.json and mtproto.json
  3. Fill the file api.json with data from latest Telegram API JSON Schema (https://core.telegram.org/schema/json)
  4. Fill the file mtproto.json with data from latest MTProto JSON Schema (https://core.telegram.org/schema/mtproto-json)
  5. Copy folder @mtproto/core/scripts from original repository to your node_modules
  6. Run scripts npm run generate-builder and npm run generate-parser to update protocol builder and parser with latest telegram schemes
  7. ???
  8. Do the dirty fix near src/rpc/index.js:590 as @VityaSchel. Our goal is to change the layer number of Serializer.
    const serializer = new Serializer(builderMap.invokeWithLayer, {
      layer: 170,  < ---- That number
    ...

After that problem was solved

VityaSchel commented 3 weeks ago

So hello guys who came here, you're the top 0.1% of coders

I got the solution for that problem you can manually produce. How to update @mtproto-core library to last Telegram api version (called Layer with any number)

  1. Create folder @mtproto/core/scheme
  2. Create files at @mtproto/core/scheme/ named api.json and mtproto.json
  3. Fill the file api.json with data from latest Telegram API JSON Schema (https://core.telegram.org/schema/json)
  4. Fill the file mtproto.json with data from latest MTProto JSON Schema (https://core.telegram.org/schema/mtproto-json)
  5. Copy folder @mtproto/core/scripts from original repository to your node_modules
  6. Run scripts npm run generate-builder and npm run generate-parser to update protocol builder and parser with latest telegram schemes
  7. ???
  8. Do the dirty fix near src/rpc/index.js:590 as @VityaSchel. Our goal is to change the layer number of Serializer.
    const serializer = new Serializer(builderMap.invokeWithLayer, {
      layer: 170,  < ---- That number
    ...

After that problem was solved

or use gramjs:)

ngrushet commented 3 weeks ago

So hello guys who came here, you're the top 0.1% of coders I got the solution for that problem you can manually produce. How to update @mtproto-core library to last Telegram api version (called Layer with any number)

  1. Create folder @mtproto/core/scheme
  2. Create files at @mtproto/core/scheme/ named api.json and mtproto.json
  3. Fill the file api.json with data from latest Telegram API JSON Schema (https://core.telegram.org/schema/json)
  4. Fill the file mtproto.json with data from latest MTProto JSON Schema (https://core.telegram.org/schema/mtproto-json)
  5. Copy folder @mtproto/core/scripts from original repository to your node_modules
  6. Run scripts npm run generate-builder and npm run generate-parser to update protocol builder and parser with latest telegram schemes
  7. ???
  8. Do the dirty fix near src/rpc/index.js:590 as @VityaSchel. Our goal is to change the layer number of Serializer.
const serializer = new Serializer(builderMap.invokeWithLayer, {
      layer: 170,  < ---- That number
...

After that problem was solved

or use gramjs:)

I'll try it some later