As used in this section legislative body means (A) the board of selectmen in a town that does not have a charter, special act or home rule ordinance relating to its government, (B) the council, board of aldermen, representative town meeting, board of selectmen or other elected legislative body described in a charter, special act or home rule ordinance relating to government in a city, consolidat