A drug dealer who had incriminating text messages on his mobile phone has been jailed for two years and eight months.
Sonny Culverwell (23) was arrested after police raided his then home in Vernon Road, Aylestone, Leicester, on November 8.
Alan Murphy, prosecuting, told the city's crown court officers seized 0.3 grams of crack cocaine, 7.8 grams of cannabis, 30 Diazepam tablets, scales and dealer bags.
He said the defendant's four mobile phones were examined.
Mr Murphy said: "There was clear evidence relating to text massages involving drug dealing, including offering heroin and cocaine for sale.
"Messages also indicated arrangements to sell seven grams of cannabis and Diazepam tablets on November 6."
In his first police interview, Culverwell accepted possessing drugs.
In a subsequent interview, he admitted supplying to friends for no profit, which was not accepted by the prosecution.
He now accepted supplying on a small scale to fund his own drug use.
Culverwell, who later moved to Ratby Meadow Lane, Enderby, admitted possessing crack cocaine, cannabis, a class B drug, and Diazepam, a class C drug, with intent to supply them .
He also admitted offering to supply class A drugs heroin and cocaine.
Sentencing, Robert Brown said: "You've been a regular drug user since your teens and using heroin for 12 months.
"It's plain from the text messages your behaviour involving dealing in drugs goes back to June last year.
"It was commercial street-level dealing, albeit low quantities were involved.
"You have shown a very positive attitude since your arrest and are now living with your parents, who are giving you full support."
Michael Garvey, mitigating, said Culverwell was drawn into the offences through others.
He said: "He was funding his own usage."
He urged the judge to impose a suspended sentence, enabling him to take up a building apprenticeship and also do unpaid work, as well as receiving drug rehabilitation.
Culverwell was said to be keen to turn his life around for the better.