Latest stories

set_comment_status

  • Inputs
{
    "message_id": "integer: id of message",
    "off_comment": "integer:  0 for allow commenting and 1 for block commenting on this message"
}

  • Errors
{
    "message_id_not_valid": "message id is not valid or not exist or message not in blog",
    "must_login": "must login",
    "off_comment": [
        {
            "max value is 1": "maximum valid value is  1"
        },
        {
            "min value is 0": "minimum valid value is  0"
        }
    ],
    "user_does_not_have_permission": "user dont have permission for change comment status on this chat"
}

  • Extra Description
Active or deactive commenting on one message in blog

  • Sample
  • Url:
https://api.pantel.me/a/set_comment_status?message_id=1566971856181086&off_comment=1
  • Output:
                                {
    "status": "success",
    "time": 1547890173.7307055
}