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 B329081214; Fri, 21 Oct 2022 13:45:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1666359952; bh=tecJrPkYhbAzRzfUFSbwE8xvCABDn8qL6VNdUqitiLo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jJ+f8sdo8CXgHXdxCtNzjlO72tH+lxPma0icqiMp50GkF6jZt3bw43A6OUZTMJe+Q 88pZET1Pz66upsevfgQ44+/jb3ppgQcJu7f0Fw6eumcabwn/1a3G9l81Dj+sxDcewD hLqqOcgXRylVU1Uoy0LF/QDflP8KHBWvQT3L6imKnQyugACrQMRSDCajqgXt4+sHDK +cfttHZPlvb7X3eIPx06SG66kNQV3N9LYQpDGSOM+hjaG8CdNgUxD7Bxr10GXl2SKc YEewFvxH+wKOFp1VakNq4mOtO1qV0MUXnKQ9uDfFnWn1jjwEdBerbLZSgXNylKOmO7 oEXCA4bF9oAQQ== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v3 6/9] telegram: Fix get lore command Date: Fri, 21 Oct 2022 20:45:17 +0700 Message-Id: <20221021134520.701-7-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20221021134520.701-1-kiizuha@gnuweeb.org> References: <20221021134520.701-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