You are eligible for bonus shares if you are holding the shares for the same company, bought before the ex-date. You can find the details of the ex-date and record date on the NSE/BSE website.