Original: The Telugu speaking area of Hyderabad state, also known as Telangana, was merged with the Telugu speaking state of Andhra state to create Andhra Pradesh. Thus, Hyderabad city became the capital city of the new state of Andhra Pradesh.
Simplified: So, Hyderabad came into the Telugu speaking community and thus became the capital of Andhra Pradesh.