Latest stories

delete_message

  • Inputs
{
    "for_me": "integer equal 1:delete message just for you if set. you can't delete message for others if you are not message owner or chat manager. optional",
    "message_id": "list of integers"
}

  • Errors
{
    "for_me": [
        {
            "max value is 1": "maximum valid value is  1"
        },
        {
            "min value is 1": "minimum valid value is  1"
        }
    ],
    "must_login": "user must be login",
    "no_valid_message_id": "input message_id cannot be found or user not permitted for delete message"
}

  • Extra Description
Delete messages by message_id given in a list. for_me is an option that if exists only delete message for user

  • Sample
  • Url:
https://api.pantel.me/a/delete_message?message_id=[1545545268739953]&for_me=1
  • Output:
                                {
    "status": "success",
    "time": 1526966340.437936
}