Open fjcaballero opened 7 years ago
Current API version 45. If you want to use newer, you should update API schema on Config object
Config.Schema.API = {/* Your API schema */}
Config.Schema.API.layer = /* Your layer version */
See src/js/lib/config.js
Ty, had no idea about layers. Also the telegram API doc ends on layer 23 (2014 update), latest is about 54 and you need to find it on the official Telegram clients source code, not the best way imo. Anyways sorry for the noob question xD and ty for your help
It is defined in the .files/schema.txt as follows:
messages.getDialogs#6b47f94d offset_date:int offset_id:int offset_peer:InputPeer limit:int = messages.Dialogs;
And on the telegram API doc:
messages.getDialogs#eccf1df6 offset:int max_id:int limit:int = messages.Dialogs;
Seems like offset_date and offset_peer disappeared while offset_id changed name to max_id. I'm trying to call this method from telegramApi.invokeAPI but i always get the:
Invalid object for type InputPeer at telegramApi.js:2032
Do you think that this could be the cause?
Thanks