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.209]) by gnuweeb.org (Postfix) with ESMTPSA id 6F5838194C; Wed, 21 Dec 2022 01:34:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1671586473; bh=STXCwWjqrBNuRIdRMjQCxxAZk1RYiiBQhoFEIGyrSHU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GMIwnqURWdDI1DrFiTGgtZxRMgGTF3O82nrRds6YZJ4R9rvSMl9nfFh0MgaVl9KIu EbuWSnYACcFcP/nd8bmfXHkHMeRCsmfjETXz927LVmCT9Fb/NC7ZAUhB2aPBkrIUqb zh7pFbgvv285CqRiOKNbRboLrqCwuAfLcguhClE6qTTirCxMogf535B9frC4pbpYNI 1TUcCDRUMSF/b6S2aC9ZFtYC0WMrpdTwfvWZvfFAzXEdCrlNpGidgaM9D6cMOJgKK6 15dkS6ATZSEipox/i1bObRjn+fIYloV89xhDuXRbnLJmFtXwBDY9kqGj7088YH2r2g w0DgicgoPNOfg== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v4 10/17] telegram: Add variable LOG_CHANNEL_ID declaration Date: Wed, 21 Dec 2022 08:33:40 +0700 Message-Id: <20221221013347.1704-11-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20221221013347.1704-1-kiizuha@gnuweeb.org> References: <20221221013347.1704-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