FIELD: chemistry.SUBSTANCE: invention relates to compounds of formula (I) with bifunctional structure of quaternary ammonium salt with agonist activity β2-adrenoreceptor and muscarinic receptor antagonist, a pharmaceutically acceptable salt thereof and an optical isomer, as well as a pharmaceutical composition, a method for production thereof and use thereof. In general formula (I) L is (4-10C) aryl or heteroaryl, where heteroatom heteroaryl is selected from N, O and S, and said groups can be unsubstituted or optionally substituted with one or more substitutes selected from halogen, -OR1, -SR1, -NR1R2, -NHCOR1, -CONR1R2, -CN, -NO2, -COOR1, -CF3 and C1-C4 unbranched or branched hydrocarbyl; W is independently selected from substituted or unsubstituted (3-6C) cycloalkyl, substitute selected from halogen, (1-4C) alkyl, (1-4C) alkoxy, alkoxyhydrocarbyl and heterocycle; R1 is a divalent group -(R1a)d-(A1)e-(R1b)f-; where d, e and f are each independently selected from 0, 1, 2 or 3 and the number of adjacent atoms in the shortest chain between two nitrogen atoms, to which R1 is attached, ranges from 3 to 14; R1a and R1b are each independently selected from (1-10C) alkylene, (2-10C) alkenylene, (1-4C) alkyleneoxy, alkyleneoxyalkyl, alkylene amido, alkyleneacyloxy and alkyleneamino, where each of alkylene, alkenylene, alkyleneoxy, alkyleneoxyalkyl, alkyleneamino, alkyleneacyloxy, alkylene amido is unsubstituted or substituted with substituents, independently selected from (1-4C) alkyl, chlorine, fluorine, hydroxy, phenyl and substituted phenyl, R1a and R1b can be identical or different; A1 is independently selected from (3-7C) cycloalkylene, (2-7C) alkylene, (6-10C) arylene, (4-9C) heteroarylene and (3-8C) heterocycloalkylene, where cycloalkylene can be unsubstituted or substituted with 1–4 substitutes independently selected from (1-6C) alkyl; each of arylene, heteroarylene and heterocycloalkylene can be unsubstituted or substituted with 1–3 substitutes independently select