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 kanazawa.. (unknown [101.128.126.198]) by gnuweeb.org (Postfix) with ESMTPSA id B124F814A4; Fri, 4 Nov 2022 18:10:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1667585403; bh=STXCwWjqrBNuRIdRMjQCxxAZk1RYiiBQhoFEIGyrSHU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NWFvK2a2kvk33QUwXr4SpPqPfHcGc++67qTrnY/OAz0Hu8JK4tFWE6ogC5NfzXLVt Ildj/E72q3V50FgkuIfE4IoUm5v8WGLCI1+K3/TV4mqWh45FUrx0ZbU8vZVCSEoa05 w52NQjUyiYEloi5V+/AJIPq5pN383FU7msmxam9C+84Fep6Te+COO1ecYpMKNdNq6w FxWHCJIFyuo3293mwXDV90SW3eR0OC6EIlt75UJB5DgbqYw9Psk7XxLjP7PvC56dQT 1TtQIF/eF9pT61AnOFC7iOlrkcRxCGA1ZMX/CffZMFZK4ckC9upH8+LpwQB2UgVq+z xyt6yFAyVoXkA== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v1 09/16] telegram: Add variable LOG_CHANNEL_ID declaration Date: Sat, 5 Nov 2022 01:09:17 +0700 Message-Id: <20221104180931.3852-11-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221104180931.3852-1-kiizuha@gnuweeb.org> References: <20221104180931.3852-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Declare a variable LOG_CHANNEL_ID in the config.py.example for the send_log_file() in the next commit. Signed-off-by: Muhammad Rizki --- daemon/telegram/config.py.example | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/telegram/config.py.example b/daemon/telegram/config.py.example index 3818d27..221e0c1 100644 --- a/daemon/telegram/config.py.example +++ b/daemon/telegram/config.py.example @@ -4,6 +4,10 @@ from pyrogram.types import Message # Insert Telegram admin id in the list below ADMINS = [] +# Insert Telegram channel ID to send the log file +# type (int) +LOG_CHANNEL_ID = + async def adm_flt(_, __, m: Message): return m.from_user.id in ADMINS -- Muhammad Rizki