score:0

seems like i found a solution,

def filePrepareResponse[F[_]: TelegramClient](semaphore: Semaphore[F]): Scenario[F, Unit] = {
   val in: InputFile.Upload = InputFile.fromBytes("file.pdf", Files.readAllBytes(new File("/home/dmitry/Downloads/Обращение.PDF").toPath))
   for {
     chat <- Scenario.expect(command("download").chat)
     _    <- Scenario.eval(chat.send(DocumentContent(in)))
   } yield ()}

works for me


Related Query

More Query from same tag