After caving to legal pressure Telegram is on track to make a profit