A top Republican staffer in Maryland has been charged with an election law violation for a robocall that said that a primary opponent supported transgender rights.

Tyler Walch, the former chief of staff to Maryland delegate Rick Impallaria (R), ran the robocall this past June when Impallaria and Maryland delegate Kathy Szeliga (R) were competing in a Republican primary for a district that has three delegates.

Both ended up winning the primary and the general election. Both are conservatives who have opposed civil rights for transgender people.

A transcript of the robocall appears in court records:

Hi this is Ali, a donor to the National Center for Transgender Equality calling to ask you to support Delegate Kathy Szeliga in tomorrow’s Republican Primary Election. Kathy Szeliga is a true friend of the Transgender Community having voted for House Bill 1003 making it illegal to discriminate against Transgendered persons in the workplace. With the support of lawmakers willing to work across the aisle like Kathy Szeliga, Transgenders will soon be able to use the bathrooms of their choice. Again this Ali calling to ask you to support Kathy Szeliga, a friend of the transgender community. Thank you!

Related: Maryland lawmaker to introduce bill to ban conversion therapy for LGBT youth

The call referred to the Maryland Equal Pay for Equal Work Act, which was a larger bill about wage discrimination that included the category of gender identity.

Szeliga actually voted against the bill when it was in the Maryland House, but then she voted for an amended version when it got through the state senate.

“Willfully and knowingly misleading voters is shameful and wrong,” Szeliga said.

Walch faces up to a year in prison or fines up to $1,000 for his role in the crime.

A spokesperson for the National Center for Transgender Equality (NCTE) – which is an actual organization that works for transgender people’s equality – said that the robocall was “outrageous” and used “transgender people as a political weapon.”

“Since it clearly did not help his campaign, the people of Maryland have proven they know better than to fall for such a cynical ploy,” the spokesperson said. Impallaria finished behind Szeliga in the primary.

The call used “transgenders” as a noun and the word “transgendered,” both of which are unlikely to occur in a text prepared by the NCTE.

The General Assembly, which is controlled by Democrats, has already officially dismissed Walch. He is being prosecuted for not identifying who paid for the ad, information to help voters decide if the information in the ad is true.

Prosecutors believe that Impallaria knew about the contents of the robocall, but he denies it.

Impallaria, though, made light of the charge, saying that Walch is “a disabled American veteran who was honorably discharged and came to work for me after he left the service” and said that not including information about his campaign in the call was “not dotting an ‘i’ and crossing a ‘t.’”

Impallaria is not being charged.