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.123]) by gnuweeb.org (Postfix) with ESMTPSA id D50E581214; Sat, 22 Oct 2022 06:52:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1666421541; bh=tecJrPkYhbAzRzfUFSbwE8xvCABDn8qL6VNdUqitiLo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iw2ojs9fMWSy74QTkxc3sHV3xSKF7EziMjb3q3mnfJfdIspPqFj4MS1pty7wQnMlM tU4RKGb1loJwDNXM7FavJexXvSWbzIVpLYAGRoPp71Y0AiIYtoI0ycvVLLa9GIwslh jWLOpm3QeMsmZyZtFYtcanQExhcRGmfBWYK2Fwn+zevImaQK3RYC+hduvzr3dFsLXT 2uEzOGaHIuzgCu/egEZSy/LfqZRti1MPfwckoCwTHFz2js9nhzU7bxH8MRSfK4k8yk mJnwrN06d17BuYq0B1revQIGGBicD1+7qeQxJSlHdqelHuyvK/dijnLR5bom7Bn8EZ qEb0+Dchc0yhw== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v4 6/9] telegram: Fix get lore command Date: Sat, 22 Oct 2022 13:51:46 +0700 Message-Id: <20221022065149.865-7-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20221022065149.865-1-kiizuha@gnuweeb.org> References: <20221022065149.865-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