While there's no legal prohibition for Indian residents to purchase tickets for foreign lotteries, the act of selling these tickets within India is illegal. You can legally buy a foreign lottery ticket if the vendor holds a valid license to sell such tickets.