1. A stapler attached to an endoscope and used for insertion into the body, comprising: a front part; a rear part with the ability to move closer to or from the front part; means for moving parts designed to move the front part and the back part closer to each other or farther apart; means for swinging intended for relative swinging of the front part and the back part about the axis of the swinging lever parallel to the direction in which the front part and the back part can be moved closer to each other or further apart, characterized in that the back part contains: needle-like element provided so that the tip of the needle-like element faces the front part, and its central axis is parallel to the direction in which the front part and the back part can be moved closer to each other or further e from each other, while the front part contains: a pair of branch parts, the base ends of which are connected to each other, each pair of branch parts being made with a holding space capable of containing the tip of the needle-like element when the front part and the back part are moved closer to each other, moreover, each of the enclosing spaces accommodates an engagement element that can engage with a needle-like element, and the engagement elements placed in the corresponding enclosing spaces are connected by suture thread. 2. The stapler according to claim 1, characterized in that the engagement element comprises: a through hole through which the tip of the needle-like element can be inserted, the icon of the needle-like element is made with a part to prevent a lunge1. Сшивающий аппарат, прикрепляемый к эндоскопу и применяемый для введения в тело, содержащий:переднюю часть;заднюю часть с возможностью перемещения ближе к передней части или от нее;средство для перемещения частей, предназначенное для перемещения передней части и задней части ближе друг к другу или дальше друг от друга; исредство для качания, предназначенное для относительного качания передней части и задней