FIELD: chemistry.SUBSTANCE: invention relates to field of organic chemistry, namely to alkaloid derivatives, based on aminoesters of general formula and to their pharmaceutically acceptable salts, wherein R1 represents phenyl, optionally substituted with one-three substituents, selected from the group, consisting of halogen atoms, COOH; R2 represents phenyl, optionally substituted with one substituent, selected from the group, consisting of halogen atoms; W is selected from the group, consisting of phenyl, naphthalenyl and heteroaryl (selected from dihydrobenzodioxynyl, dihydrobenzodioxepinyl, dihydrobenzoxazinyl and thiophenyl), with each of phenyl and naphthalenyl is optionally substituted with one or two substituents, similar or different, selected from the group, consisting of halogen atoms, -NO2, -CN, (C1-C6)alkyl, (C1-C6)alkoxy, halogen(C1-C6)alkyl, halogen(C1-C6)alkoxy, heterocyclyl (selected from pyrrolidinyl, morpholinyl), phenyl, phenyloxy, halogenphenyl, (C1-C6)alkyl-NHCO -(C1-C6)alkyl, -OR3, -N(R3)2, -SR3, -OSO2R3, -CO2R3, -OCOR3, -CON(R3)2, -NHCOR3, -NHCO2R3, -NHSO2R3, -NHCO-(C1-C6)alkyl-COOH, -CO2-(C1-C6)alkyl-N (R3)2 and -CO-morpholinyl; R3 represents H or is selected from the group, consisting of (C1-C6)alkyl; A- represents physiologically acceptable anion, selected from Cl-, Br-, TFA-. The invention also relates to application of formula (I) compound.EFFECT: novel heterocyclic compounds, useful as antagonists of muscarine receptors, have been obtained.10 cl, 12 tbl, 39 exИзобретение относится к области органической химии, а именно к алкалоидным производным на основе сложных аминоэфиров общей формулы (I) и к их фармацевтически приемлемым солям, где R1 представляет собой фенил, необязательно замещенный одним-тремя заместителями, выбранными из группы, состоящей из атомов галогена, СООН; R2 представляет собой фенил, необязательно замещенный одним заместителем, выбранным из группы, состоящей из атомов галогена; W выбирают из группы, состоящей из фени