You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example:
I use the client.getMessages(chat id, {limit: 1 }) for get channel`s posts and receive a message with id == 139
After this i want to comment last post with help await client.sendMessage(channelId, { message: message, commentTo: 139 })
This code will return the error - MSG_ID_INVALID, but if I replace 139 with 136 (for example, 136), it will work.
Can you tell me how I can get the correct message ID?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Example:
I use the
client.getMessages(chat id, {limit: 1 })
for get channel`s posts and receive a message with id == 139After this i want to comment last post with help
await client.sendMessage(channelId, { message: message, commentTo: 139 })
This code will return the error - MSG_ID_INVALID, but if I replace 139 with 136 (for example, 136), it will work.
Can you tell me how I can get the correct message ID?
Beta Was this translation helpful? Give feedback.
All reactions