I was trying to create a app for my project and when I used the SendMessage method it returned peer id invalid all the id and code was correct
api.call('messages.sendMessage', {
clear_draft: true,
peer: {
_: 'inputPeerChat',
chat_id : -1001844107989
},
message: 'Hello',
random_id: 1990,
})

I was trying to create a app for my project and when I used the SendMessage method it returned peer id invalid all the id and code was correct
api.call('messages.sendMessage', {
clear_draft: true,
peer: {
_: 'inputPeerChat',
chat_id : -1001844107989
},
message: 'Hello',
random_id: 1990,
})