-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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: