Skip to main content
POST

Path Parameters

string
required
Chat ID containing the message

Body Parameters

string
required
Chat ID (must match path parameter)
string
required
Message ID to vote on
boolean
required
Whether this is an upvote (true) or downvote (false)

Response

boolean
Indicates if the vote was created or updated successfully
string
Success or error message
object
The created or updated vote object

Notes

  • If a vote already exists for the message, it will be updated with the new value
  • Each user can have only one vote per message
  • Changing from upvote to downvote (or vice versa) updates the existing vote