Two teens have pleaded guilty to using a gay hook-up app to lure a victim, before attacking and robbing him.

Joshua Friel (19) and Eoin Curley Rafferty (18) of the village Newtowncunningham in Ireland beat the male victim with a baseball bat when they met up with him, before making away with his money and mobile phone.

They had agreed to meet him at 3am in a remote area known as The Castle, reports the Irish Independent.

The pair had exchanged pictures with the victim, as well as falsely telling him that they were a 17-year-old male.

When the victim arrived, he was accused of being a paedophile before being physically attacked.

The pair pleaded guilty to robbery, assault causing harm, and criminal damage at Letterkenny District Court earlier this week.

They have been ordered to pay their victim €4,000 between them.

He suffered bruising and suspected broken ribs in the attack and required hospital treatment immediately after.

“Clearly this unfortunate young man suffered greatly in what was a particularly mean-minded and calculated attack,” said Judge Paul Kelly.

“He was robbed and had his phone smashed after being lured into an area by another person for the express purpose of carrying out this assault and attack.

“The probation report says that they show their remorse but I would have expected more tangible remorse before the courts.”

The case has now been adjourned until 16 July so Friel and Rafferty have time to come up with €2,000 each.