Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def build_request(self) -> Request:
data: Dict[str, Any] = self.dict()
return Request(method="getUserProfilePhotos", data=data)
def build_request(self) -> Request:
data: Dict[str, Any] = self.dict()
return Request(method="getFile", data=data)
def build_request(self) -> Request:
data: Dict[str, Any] = self.dict(exclude={"animation", "thumb"})
files: Dict[str, InputFile] = {}
prepare_file(data=data, files=files, name="animation", value=self.animation)
prepare_file(data=data, files=files, name="thumb", value=self.thumb)
return Request(method="sendAnimation", data=data, files=files)
def build_request(self) -> Request:
data: Dict[str, Any] = self.dict()
return Request(method="setStickerPositionInSet", data=data)
def build_request(self) -> Request:
data: Dict[str, Any] = self.dict()
return Request(method="sendLocation", data=data)
def build_request(self) -> Request:
data: Dict[str, Any] = self.dict()
return Request(method="answerPreCheckoutQuery", data=data)
def build_request(self) -> Request:
data: Dict[str, Any] = self.dict()
return Request(method="getWebhookInfo", data=data)
def build_request(self) -> Request:
data: Dict[str, Any] = self.dict()
return Request(method="sendContact", data=data)
def build_request(self) -> Request:
data: Dict[str, Any] = self.dict()
return Request(method="getStickerSet", data=data)
def build_request(self) -> Request:
data: Dict[str, Any] = self.dict()
return Request(method="editMessageText", data=data)