A hotel is a building where rooms complete with furniture are rented to people. This includes the room service like cleaning, changing the bed sheets, etc. and also having ones prepared meals and drinks served to the room if one desires so. There are also meals available in common rooms like in restaurants. Some hotels offer only 'bed and breakfast', although there are often called 'hostel'. Many hotels also offer other services like sauna, swimming pool, conference and party rooms, etc. One can stay one night or as long as one want and is able to pay. There are hotels one has to pay in advance and others one pays when one leaves.
Restaurants are buildings were food and drinks are sold. One can consume these in a closed room with many tables or some times the tables are on an open terrace. The prepared food and the drinks are served by a person called waiter (what some times means that one has to wait quite some time after one has ordered...) There can be TV in the room or in exclusive restaurants there can be a life band. One can also sleep in a restaurant after the meal, especially if one had too much drinks, but this has to happen without bed and is not seen well by the restaurant owner. One also has to behave and can't sing or make other noise to express oneself. like burbling and farting.
It is the same in hotels and restaurants: One has to pay the expensive bill and then they expect a generous tip, if not they look at you with a strange face and think you are a ******, miser, niggard, skinflint, meanie and tightwad. But in general people who verve's you in hotels and restaurants are nice people, but of course one pays for it and the smile in included. What doesn't mean that some times they are really friendly, although they are often stressed out because there are many people who abuse them, but with this there is no difference anywhere...