-
Notifications
You must be signed in to change notification settings - Fork 119
messages.SendMessage not working as expected #292
Comments
I assume that this is your channel id. Since it has a negative value.
|
It is a supergroup. |
May be this is the same issue? |
Supergroups are also considered channels. Also, the values for IDs (which in telegram docs are considered |
@asror797 check the validity of your Also, I'm not 100% sure about this, but try to remove the |
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,
})
The text was updated successfully, but these errors were encountered: