In the absence of details of messages, it is not possible to say with exactness as to what would be the nature of complaint that could be filed. It could generally be under provisions of stalking (Section 354-D of IPC), or using obscene or abusive language (for example, under S. 509) or under the Information Technology Act (IT Act). You may consult some lawyer by showing him the messages / chat.
Dr. Ashok Dhamija is a New Delhi based Supreme Court Advocate and author of law books. Read more about him by clicking here. List of his Forum Replies. List of his other articles. List of his Quora Answers. List of his YouTube Videos.