FIELD: chemistry.SUBSTANCE: invention relates to piperidine compounds of formula and their pharmaceutically acceptable salts, based on them pharmaceutical composition, treatment method with therein application and therein application for treatment of gastrointestinal diseases. In formula (I) m represents integer number 1 or 2; n represents integer number from 0 to 2, A is selected from phenyl group and benzimidazole group, where phenyl group is substituted with one or more groups, independently selected from C1-C6 linear or branched alkyl group, C1-C6 linear or branched alkoxygroup, aminogroup and halogen, and benzimidazole group is substituted with one or more groups, independently selected from C1-C6 linear or branched alkyl group, C1-C6 linear or branched alkoxygroup, C3-C7 cyclic alkyl group, aminogroup, halogen and oxogroup; X represents hydroxyl or OCONR1R2, where R1 and R2 are independently selected from hydrogen and C1-C6 linear or branched alkyl group, or R1 and R2 form 5-7-membered heterocyclic ring or 3,5-dimethylpiperidine ring, together with nitrogen atom, to which they are attached, and B is selected from phenyl group, phenoxygroup, thienyl group and naphthyl group, where phenyl group, phenoxygroup, thienyl group or naphthyl group is substituted with one or more groups, independently selected from hydrogen, halogen, nitro, cyano, trifluoromethyl, trifluoromethoxy, difluoromethoxy, phenyl, C1-C6 linear or branched alkyl group and C1-C6 linear or branched alkoxygroup.EFFECT: obtaining novel compounds.25 cl, 3 tbl, 163 exИзобретение относится к пиперидиновым соединениям формулы (I) и их фармацевтически приемлемым солям, фармацевтической композиции на их основе, способу лечения с их использованием и их применению для лечения желудочно-кишечных заболеваний. В формуле (I)m представляет собой целое число 1 или 2; n представляет собой целое число от 0 до 2; A выбран из фенильной группы и бензимидазольной группы, где фенильная группа замещена одной или более