On September 30, 1788, Pennsylvania became the first state to elect its two senators. On March 4, 1789, the first group of elected senators reported for duty. From 1789 to 1913, when the Seventeenth Amendment to the U.S. Constitution was ratified, senators were elected by state legislatures.
I hope this helped figure out your question!