Is cannabis legal in Ukraine?

In Ukriane weed is illegal, but most of the time people who get busted smoking it get away by giving the money to the police. I hear a story from my friend that a group of teens got away with it by paying 1000 grivn each