The word "they" refers to the magistrates. All instances of "we" and "us" refer only to Paul and Silas and so are exclusive. (See: [[rc://en/ta/man/translate/figs-exclusive]])
Probably Paul is speaking to the jailer, but he intends for the jailer to tell the magistrates what he says. Alternate translation: "said to the jailer" (See: [[rc://en/ta/man/translate/figs-explicit]])
Here "They" refers to the magistrates who commanded their soldiers to beat them. Alternate translation: "The magistrates ordered their soldiers to beat us in public" (See: [[rc://en/ta/man/translate/figs-metonymy]])
Paul uses a question to emphasize that he will not allow the magistrates to send them out the city in secret after they had mistreated Paul and Silas. Alternate translation: "I will certainly not let them send us out of the city in secret!" (See: [[rc://en/ta/man/translate/figs-rquestion]])