From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [101.128.125.87]) by gnuweeb.org (Postfix) with ESMTPSA id 93C7381116; Tue, 18 Oct 2022 08:17:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1666081068; bh=tecJrPkYhbAzRzfUFSbwE8xvCABDn8qL6VNdUqitiLo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CLLTIZttF7amj+OSg0peLo37Oh9/3C7DbS8PIUueVTZeLYQj7r/WLTArw48A1F/PE vMuQoLs0+ev/+Gb76E7iIAMizla4eqOvX1R2sFFnPiQBYQJTcN7TMvhWyD45EXmH0B j0iX/2BVKMMPW3fXIlQGoiUS53oOP9hPt7q2UoSPPEVUeFqcWQg6fcxRsWk4hJHbDA cN5EINz4MroQdOHGtUP9cW21R+kEbPUDZxCGe2ekamD7D9Gj9Jn77yfXC1R/DBv96L 3G8cbLmPSoXSqOmJmc81JmGFGnhSMaopCMDaUM0chv1FYiBoGDCn0Q8abh7OkujBLr mNfAWSrR3/D6Q== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v1 7/7] telegram: Fix get lore command Date: Tue, 18 Oct 2022 15:16:35 +0700 Message-Id: <20221018081635.1617-8-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20221018081635.1617-1-kiizuha@gnuweeb.org> References: <20221018081635.1617-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Fix the `/lore {raw lore url}` to add "telegram" on the create_template() platform parameter. Signed-off-by: Muhammad Rizki --- daemon/telegram/packages/plugins/commands/scrape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/telegram/packages/plugins/commands/scrape.py b/daemon/telegram/packages/plugins/commands/scrape.py index 52ddb0b..860e993 100644 --- a/daemon/telegram/packages/plugins/commands/scrape.py +++ b/daemon/telegram/packages/plugins/commands/scrape.py @@ -37,7 +37,7 @@ async def scrap_email(c: DaemonClient, m: Message): s = Scraper() mail = await s.get_email_from_url(url) - text, files, is_patch = utils.create_template(mail) + text, files, is_patch = utils.create_template(mail, "telegram") if is_patch: m = await c.send_patch_email( -- Muhammad Rizki