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
630 stars 113 forks source link

Update layer to 137 #232

Closed KishanBagaria closed 2 years ago

KishanBagaria commented 2 years ago
curl https://core.telegram.org/schema/json > scheme/api.json

curl https://core.telegram.org/schema/mtproto-json > scheme/mtproto.json resulted in the following error:

unhandledRejection TypeError: Cannot read properties of undefined (reading 'call')
    at new Counter (/Users/kb/Downloads/mtproto-core/src/tl/counter/index.js:7:8)
    at new Serializer (/Users/kb/Downloads/mtproto-core/src/tl/serializer/index.js:7:21)
    at RPC.handlePQResponse (/Users/kb/Downloads/mtproto-core/src/rpc/index.js:140:24)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
pogudin-sergey commented 2 years ago

Last layer is 133

KishanBagaria commented 2 years ago

https://core.telegram.org/api/layers hasn't been updated but you can see layer 137 mentioned on https://core.telegram.org/schema

137 includes the new reaction methods like https://core.telegram.org/method/messages.getMessagesReactions

alik0211 commented 2 years ago

The layer has been updated to 139 in version 6.2.0.