If you are staying in a Hotel, then principal supply is hotel services.
Input credit is available on hotel staying. So if you have a single bill for hotel staying, you are eligible for input credit.
However, if you have separate bills for hotel staying and restaurant then you will be able to take credit only on hotel stay.
Take a single bill from Hotel and you can avail input credit.