Closed ismenc closed 5 years ago
Hey ismenc,
I tried the messages.readHistory
method, and it works well in api-57.
I think maybe you should check if your params are in correct format.
BTW, these are what passed as parameters:
telegram('messages.readHistory', {
peer: {
_: "inputPeerUser",
access_hash: "access_hash",
user_id: 111111111,
}
}
Forgot to point that im trying to read a channel and im using version 2.2.2. Im using the same format i usually do with getHistory, Example
peer: {
_ : 'inputPeerChannel',
channel_id : 1000333444,
access_hash: '246767425009898989'
}
These values come from a chat in a previously performed getMessages operation.
Aditional failed attemps:
Is there any updates?
Is there any updates?
@zerobias is recomending on readme.md to use Telethon. So this library is probably not getting supported anymore. I would not recommend you to use it
Hello there, I'm having a trhouble when trying to perform
messages.readHistory
andchannels.readHistory
either in api-57 or api-82.Outputs
### api-57 #### messages.readHistory ``` { "code": 400, "type": "PEER_ID_INVALID", "description": "CODE#400 PEER_ID_INVALID", "originalError": { "_": "rpc_error", "error_code": 400, "error_message": "PEER_ID_INVALID" } } ``` (im using the same peer than in a successful getHistory operation) #### channels.readHistory ``` Error: No predicate undefined found ```
### api-82 #### messages.readHistory ``` parse error Constructor not found: 2430458897 26304 2281 Error: Constructor not found: 2430458897 26304 2281 ``` (im using the same peer than in getHistory operation) #### channels.readHistory ``` parse error Constructor not found: 2430458897 26304 3138 Error: Constructor not found: 2430458897 26304 3138 ``` ```Encrypted request failed TypeError: Cannot read property 'toString' of undefined```
Has anyone sort this problem?