Finally came across the name of a country with few words, and I could type the whole question.

German Togo (1884-1916)
Togo and Benin, located in the infamous Bay of Benin – another name is called Slave Coast. In 1884, during a period known as the "partition of Africa," the German Empire established Togo.
French Togo (1916-1958)
In 1916, Togoland was divided into France and Great Britain.
Togo (Autonomous Republic within the French Community, 1958-1960)
Republic of Togo (1960-present)
On April 27, 960, during a smooth transition, Togo's constitutional relations with France were separated, and Togo gained full independence. The national flag consists of three green bars and two yellow bars arranged interchangeably, with a red square in the upper left corner of the flag and a white five-pointed star in the middle. Green represents agriculture and hope; yellow symbolizes the country's mineral deposits, but also indicates the people's confidence and concern for the destiny of the motherland; red symbolizes the sincerity, fraternity and dedication of mankind; white symbolizes purity; the five-pointed star symbolizes the independence of the country and the rebirth of the people.
---------------------------------------------------------------------------------------------------------------------------------
French West Africa (1851-1958)
Originally known as Dahomey, Benin became a French colony in 1851.
Dahomey (Autonomous Republic within the French Community, 1958-1960)
In 1958 Dahomey became an autonomous republic within the French Community.
Republic of Dahomey (1960-1975)
In 1960, Dahomey gained full independence and established the Republic of Dahomey.
People's Republic of Benin (1975-1990)
On 26 October 1972, Lieutenant Colonel Krékou staged a coup d'état and on 1 December 1975 it was renamed the People's Republic of Benin and became a socialist state.
Republic of Benin (1990-present)
In 1990, Benin was renamed the Republic of Benin and adopted a multi-party system. On the left side of the flag is a green vertical rectangle, and on the right side are two parallel and equal horizontal rectangles of upper yellow and lower red. Green symbolizes prosperity, yellow represents the land, and red represents the sun.
French West Africa (1897-1956)
Niger (Autonomous Republic within the French Community, 1956-1959)
Republic of the Niger (1960–present)
Niger is the country with the lowest human development index in the world, the least developed country and, if nothing else, has two universities, one of which is a religious university. However, Niger is rich in mineral deposits, rich in gold, uranium ore and phosphate. The flag is composed of three parallel and equal horizontal rectangles of orange, white and green from top to bottom, with an orange round wheel in the middle of the white part. Orange symbolizes the Sahara Desert; white symbolizes purity; green represents beautiful and fertile land, as well as fraternity and hope. The wheel symbolizes the sun and the desire of the people of Niger to sacrifice to protect their power.
--------------------------------------------------------------------------------------------------------------------------------
British Colony on the Niger (1887-1888)
Niger Delta Colony (1888-1889)
British West African Colonies (1870-1888)
British Colony of Lagos (1886-1906)
Protectorate of the Ayr River Colony (1885-1893)
Niger Delta Protectorate (1883-1993)
Colony of Northern Nigeria (1900-1914)
Colony of Southern Nigeria (1900-1914)
British Nigeria (1914-1952)
British Nigeria (1952-1960)
The crown inside the badge in the lower right corner was changed. The crown inside the flag above is the Imperial State Crown, and the one below is the St. Edward Crown. Edward's Crown)。
Federal Republic of Nigeria (1960–present)
African Eagle Nigeria, the country with the largest population of blacks and the largest economy in Africa. The three longitudinal rectangles of green, white and green symbolize the three regions of the north, south and west of different races. Among them, green symbolizes rich forests and fertile farmland; white symbolizes peaceful reunification.